Skip to content

أدوات Google Ads: الأصول ​

في هذه الصفحة 11 أداة. هذه الصفحة مولَّدة آليًا من قائمة الأدوات في الخادم نفسه، الإصدار 0.1.0، ولا تُحرَّر باليد. أوصاف الأدوات مكتوبة للمساعد الذكي، وهي بالإنجليزية ولم تُترجم، فكل ما تحت هذه الفقرة بالإنجليزية كما يقرؤه المساعد الذكي. لا تحتاج إلى معرفة اسم أي أداة لتطلب عملًا: هذه الصفحة مرجع لمن يريد أن يعرف ما تأخذه كل أداة بالضبط. صفحة كل الأدوات تسرد الصفحات كلها.

gads_list_assets ​

Kind: read. It is marked as changing nothing.

Sitelinks, callouts, structured snippets, call assets, images, lead forms, price lists and promotions: what each says, where it is linked, its link status and policy state, and its impressions, clicks and cost. With a campaign_id or an ad_group_id it lists the assets linked there; with neither, the ones linked to the whole account. all_assets=true lists every such asset the account holds, linked or not, without metrics - which is how to find an asset_id for gads_link_asset. Without a field_type that list also has the account's YouTube video assets (type YOUTUBE_VIDEO, with the video's id and title), which no field type here links.

ArgumentTypeRequiredDefaultDescription
customer_idtextyes10-digit Google Ads account id.
campaign_idtextnononeList the assets linked to this campaign.
ad_group_idtextnononeList the assets linked to this ad group.
field_typeone of SITELINK, CALLOUT, STRUCTURED_SNIPPET, CALL, AD_IMAGE, LEAD_FORM, PRICE, PROMOTIONnononeOptional: SITELINK, CALLOUT, STRUCTURED_SNIPPET, CALL, AD_IMAGE, LEAD_FORM, PRICE or PROMOTION.
all_assetstrue or falsenofalsetrue = every asset of these kinds in the account, without links or metrics.
date_rangetextno"LAST_30_DAYS"Named range for the metrics, e.g. LAST_7_DAYS, LAST_30_DAYS.
start_datetextnononeOptional custom range start, YYYY-MM-DD (with end_date).
end_datetextnononeOptional custom range end, YYYY-MM-DD.

Kind: write. It only previews the change unless dry_run is false. Not offered while the server is in read-only mode.

Create a sitelink: an extra link shown under an ad. Give campaign_id or ad_group_id to link it there in the same step; with neither it is only created. Google shows sitelinks once a campaign has at least two.

ArgumentTypeRequiredDefaultDescription
customer_idtextyes10-digit Google Ads account id.
link_texttextyesThe link's text, up to 25 characters.
final_urltextyesWhere the link goes, a full http(s) address.
description1textnononeOptional first line under the link, up to 35 characters (needs description2).
description2textnononeOptional second line, up to 35 characters (needs description1).
campaign_idtextnononeLink it to this campaign.
ad_group_idtextnononeLink it to this ad group.
dry_runtrue or falsenotruetrue = validate only (default). false = apply, only after the user confirms.

gads_create_callout ​

Kind: write. It only previews the change unless dry_run is false. Not offered while the server is in read-only mode.

Create a callout: a short phrase shown with an ad, such as "Free delivery". Give campaign_id or ad_group_id to link it there in the same step.

ArgumentTypeRequiredDefaultDescription
customer_idtextyes10-digit Google Ads account id.
texttextyesThe callout, up to 25 characters.
campaign_idtextnononeLink it to this campaign.
ad_group_idtextnononeLink it to this ad group.
dry_runtrue or falsenotruetrue = validate only (default). false = apply, only after the user confirms.

gads_create_structured_snippet ​

Kind: write. It only previews the change unless dry_run is false. Not offered while the server is in read-only mode.

Create a structured snippet: a header from Google's fixed list and 3 to 10 values, shown with an ad as "Services: Accounting, Payroll, Stock". The header must be one of Google's, in the language of the values. In English: Amenities, Brands, Courses, Degree programs, Destinations, Featured hotels, Insurance coverage, Models, Neighborhoods, Service catalog, Shows, Styles, Types. Give campaign_id or ad_group_id to link it there in the same step.

ArgumentTypeRequiredDefaultDescription
customer_idtextyes10-digit Google Ads account id.
headertextyesOne of Google's headers, exactly as Google spells it.
valueslist of textyes3 to 10 values, each up to 25 characters.
campaign_idtextnononeLink it to this campaign.
ad_group_idtextnononeLink it to this ad group.
dry_runtrue or falsenotruetrue = validate only (default). false = apply, only after the user confirms.

gads_create_call_asset ​

Kind: write. It only previews the change unless dry_run is false. Not offered while the server is in read-only mode.

Create a call asset: a phone number shown with an ad. Give campaign_id or ad_group_id to link it there in the same step. Calls are counted as conversions by the conversion action it names; without one it follows the account's own call conversion setting, and the result says which applies.

ArgumentTypeRequiredDefaultDescription
customer_idtextyes10-digit Google Ads account id.
country_codetextyesTwo-letter country of the number, e.g. KW, SA, EG.
phone_numbertextyesThe number, e.g. +965 2222 3333.
call_conversion_action_idtextnononeOptional conversion action that counts calls from this asset.
campaign_idtextnononeLink it to this campaign.
ad_group_idtextnononeLink it to this ad group.
dry_runtrue or falsenotruetrue = validate only (default). false = apply, only after the user confirms.

gads_create_image_asset ​

Kind: write. It only previews the change unless dry_run is false. Not offered while the server is in read-only mode.

Create an image asset from a file in your media library, to show beside a Search ad. The image is square (1:1, at least 300x300) or landscape (1.91:1, at least 600x314), JPEG or PNG, at most 5120 KB; it is measured here before anything is sent. Give campaign_id or ad_group_id to link it there in the same step. An image at a URL is added to the library first with meta_add_media (the library is shared by every platform), then named here.

ArgumentTypeRequiredDefaultDescription
customer_idtextyes10-digit Google Ads account id.
media_idtextyesThe image in your media library (meta_list_media lists them).
nametextnononeOptional name for the asset in Google Ads. Defaults to the file's name.
campaign_idtextnononeLink it to this campaign.
ad_group_idtextnononeLink it to this ad group.
dry_runtrue or falsenotruetrue = validate only (default). false = apply, only after the user confirms.

gads_create_lead_form_asset ​

Kind: write. It only previews the change unless dry_run is false. Not offered while the server is in read-only mode.

Create a lead form: a form people fill in on Google itself, from the ad, without visiting the site. It collects personal details, so it needs a privacy policy and the account must have accepted Google's lead form terms (in the Google Ads UI); Google refuses it otherwise and says so. Leads are downloaded in the Google Ads UI or sent to a webhook; this tool reads none of them, and leads_export does only where an administrator allows it. Give campaign_id to link it to that campaign in the same step; without one it is only created, for a person to review first.

ArgumentTypeRequiredDefaultDescription
customer_idtextyes10-digit Google Ads account id.
business_nametextyesThe business as shown on the form, up to 25 characters.
headlinetextyesThe form's headline, up to 30 characters.
descriptiontextyesWhat the person gets for filling it in, up to 200 characters.
privacy_policy_urltextyesThe https address of the privacy policy.
final_urltextyesThe site's page the form belongs to, a full http(s) address.
fieldslist of one of FULL_NAME, FIRST_NAME, LAST_NAME, EMAIL, PHONE_NUMBER, POSTAL_CODE, STREET_ADDRESS, CITY, REGION, COUNTRY, WORK_EMAIL, COMPANY_NAME, WORK_PHONE, JOB_TITLEyesWhat the form asks for, e.g. ["FULL_NAME", "PHONE_NUMBER", "EMAIL"].
call_to_action_descriptiontextyesThe line beside the button, up to 30 characters.
call_to_actionone of LEARN_MORE, GET_QUOTE, APPLY_NOW, SIGN_UP, CONTACT_US, SUBSCRIBE, DOWNLOAD, BOOK_NOW, GET_OFFER, REGISTER, GET_INFO, REQUEST_DEMO, JOIN_NOW, GET_STARTEDno"LEARN_MORE"The button: LEARN_MORE, GET_QUOTE, CONTACT_US, REQUEST_DEMO, SIGN_UP, ...
post_submit_headlinetextnononeOptional headline shown after the form is sent, up to 30 characters.
post_submit_descriptiontextnononeOptional text shown after it is sent, up to 200 characters.
post_submit_call_to_actionone of VISIT_SITE, DOWNLOAD, LEARN_MORE, SHOP_NOWnononeOptional button shown after it is sent, leading to final_url.
more_qualified_leadstrue or falsenofalsetrue = Google asks the person to review before sending: fewer, surer leads.
webhook_urltextnononeOptional https address Google sends each lead to (needs webhook_secret).
webhook_secrettextnononeThe key Google sends with each lead so the webhook can trust it.
campaign_idtextnononeLink it to this campaign.
dry_runtrue or falsenotruetrue = validate only (default). false = apply, only after the user confirms.

gads_create_price_asset ​

Kind: write. It only previews the change unless dry_run is false. Not offered while the server is in read-only mode.

Create a price asset: 3 to 8 items with their prices, shown under an ad, each with its own page. Give campaign_id or ad_group_id to link it there in the same step.

ArgumentTypeRequiredDefaultDescription
customer_idtextyes10-digit Google Ads account id.
price_typeone of BRANDS, EVENTS, LOCATIONS, NEIGHBORHOODS, PRODUCT_CATEGORIES, PRODUCT_TIERS, SERVICES, SERVICE_CATEGORIES, SERVICE_TIERSyesWhat the items are: SERVICES, SERVICE_TIERS, PRODUCT_CATEGORIES, BRANDS, ...
currency_codetextyesThe currency of every price, e.g. KWD.
offeringslist of PriceOfferyes3 to 8 items: header, description, price, final_url and an optional unit.
language_codetextno"en"The language of the text, e.g. en or ar.
price_qualifierone of FROM, UP_TO, AVERAGEnononeOptional FROM, UP_TO or AVERAGE, shown before every price.
campaign_idtextnononeLink it to this campaign.
ad_group_idtextnononeLink it to this ad group.
dry_runtrue or falsenotruetrue = validate only (default). false = apply, only after the user confirms.

gads_create_promotion_asset ​

Kind: write. It only previews the change unless dry_run is false. Not offered while the server is in read-only mode.

Create a promotion asset: an offer shown under an ad, such as "20% off Payroll". Give either percent_off or money_off (with currency_code). It can name a promotion code or a least order value, not both. Give campaign_id or ad_group_id to link it in the same step.

ArgumentTypeRequiredDefaultDescription
customer_idtextyes10-digit Google Ads account id.
promotion_targettextyesWhat the offer is on, up to 20 characters.
final_urltextyesThe page the offer leads to, a full http(s) address.
percent_offnumbernononeThe discount in percent, e.g. 20 for 20% off.
money_offnumbernononeThe discount as an amount in currency units (needs currency_code).
currency_codetextnononeThe currency of money_off and orders_over, e.g. KWD.
up_totrue or falsenofalsetrue = shown as "up to" the discount.
promotion_codetextnononeOptional code the buyer enters, up to 15 characters.
orders_overnumbernononeOptional least order value the offer needs, in currency units.
occasionone of NEW_YEARS, CHINESE_NEW_YEAR, VALENTINES_DAY, EASTER, MOTHERS_DAY, FATHERS_DAY, LABOR_DAY, BACK_TO_SCHOOL, HALLOWEEN, BLACK_FRIDAY, CYBER_MONDAY, CHRISTMAS, BOXING_DAY, INDEPENDENCE_DAY, NATIONAL_DAY, END_OF_SEASON, WINTER_SALE, SUMMER_SALE, FALL_SALE, SPRING_SALE, RAMADAN, EID_AL_FITR, EID_AL_ADHA, SINGLES_DAY, WOMENS_DAY, HOLI, PARENTS_DAY, ST_NICHOLAS_DAY, CARNIVAL, EPIPHANY, ROSH_HASHANAH, PASSOVER, HANUKKAH, DIWALI, NAVRATRI, SONGKRAN, YEAR_END_GIFTnononeOptional occasion, e.g. RAMADAN, EID_AL_FITR, NATIONAL_DAY, BLACK_FRIDAY.
language_codetextno"en"The language of the text, e.g. en or ar.
start_datetextnononeOptional first day the asset shows, YYYY-MM-DD.
end_datetextnononeOptional last day the asset shows, YYYY-MM-DD.
campaign_idtextnononeLink it to this campaign.
ad_group_idtextnononeLink it to this ad group.
dry_runtrue or falsenotruetrue = validate only (default). false = apply, only after the user confirms.

Kind: write. It only previews the change unless dry_run is false. Not offered while the server is in read-only mode.

Link an existing asset to a campaign, an ad group, or the whole account, so it can show with the ads there. An account-level link reaches every campaign.

ArgumentTypeRequiredDefaultDescription
customer_idtextyes10-digit Google Ads account id.
asset_idtextyesAsset id (gads_list_assets with all_assets=true lists them).
field_typeone of SITELINK, CALLOUT, STRUCTURED_SNIPPET, CALL, AD_IMAGE, LEAD_FORM, PRICE, PROMOTIONyesWhat the asset is used as: SITELINK, CALLOUT, STRUCTURED_SNIPPET, CALL, AD_IMAGE (an image), LEAD_FORM (a campaign only), PRICE or PROMOTION.
campaign_idtextnononeLink it to this campaign.
ad_group_idtextnononeLink it to this ad group.
account_leveltrue or falsenofalsetrue = link it to the whole account.
dry_runtrue or falsenotruetrue = validate only (default). false = apply, only after the user confirms.

Kind: write. It only previews the change unless dry_run is false. Removing needs confirm_remove to be true as well. Not offered while the server is in read-only mode.

Remove an asset's link to a campaign, an ad group or the account: it stops showing with the ads there. The asset itself stays and can be linked again. Needs confirm_remove=true.

ArgumentTypeRequiredDefaultDescription
customer_idtextyes10-digit Google Ads account id.
asset_idtextyesAsset id from gads_list_assets.
field_typeone of SITELINK, CALLOUT, STRUCTURED_SNIPPET, CALL, AD_IMAGE, LEAD_FORM, PRICE, PROMOTIONyesSITELINK, CALLOUT, STRUCTURED_SNIPPET, CALL, AD_IMAGE, LEAD_FORM, PRICE or PROMOTION.
campaign_idtextnononeUnlink it from this campaign.
ad_group_idtextnononeUnlink it from this ad group.
account_leveltrue or falsenofalsetrue = remove its account-level link.
confirm_removetrue or falsenofalseMust be true, after the user asked for it.
dry_runtrue or falsenotruetrue = validate only (default). false = apply, only after the user confirms.

Objects the arguments take ​

An argument whose type is a name takes an object with these fields.

PriceOffer ​

FieldTypeRequiredDefaultDescription
headertextyesWhat is priced, up to 25 characters, e.g. 'Payroll module'.
descriptiontextyesA line about it, up to 25 characters.
pricenumber (at least 0)yesThe price in currency units, e.g. 49.5.
final_urltextyesThe page for this item, a full http(s) address.
unitone of PER_HOUR, PER_DAY, PER_WEEK, PER_MONTH, PER_YEAR, PER_NIGHTnonone