אבל בעזרת הכלי לחיפוש פרוטו, אפשר להשתמש בטופס פשוט יותר:
campaign=client.resource.campaign
כשאוחזרים משאב, שירות או פעולה, מוחזרת מופע של הישות הזו. כשאוספים אוסף ערכים, מוחזר הפניה לכיתה בלי יצירה של מופע.
עבור ספירה, אפשר להשתמש בקיצור דרך כדי לעקוף את הצורך בחיפוש ה-protos של הספירה.
campaign.status=:PAUSED
מומלץ להשתמש בשיטה client.service כדי לאחזר שירותים, גם אם לא משתמשים בכלי הזה בתרחישי שימוש אחרים. השיטה הזו כוללת לוגיקה נוספת להעברת אסימון המפתח של המפתח ופרטי האימות, שצריך לטפל בהם באופן ידני אם משתמשים בשיטה אחרת.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-06-04 (שעון UTC)."],[[["The ProtoLookupUtil simplifies interactions with the Google Ads API by removing the need to specify API version numbers and namespaces when working with services, operations, enumerations, and resources."],["Instead of manually instantiating proto classes with complex paths, the utility allows you to create and access them using a more concise and intuitive syntax, such as `client.resource.campaign` instead of `Google::Ads::GoogleAds::V18::Resources::Campaign.new`."],["It offers a shortcut for using enumerations directly, like assigning `:PAUSED` to a campaign status, without requiring explicit proto lookups."],["Using `client.service` is recommended for fetching services, as it automatically handles developer token and authentication details."]]],[]]