gads_get_ad
Google Ads read low risk
Part of the Google Ads Manager Agent.
What it does
Inspect a single ad by id — view one specific ad's creative detail: RSA headlines and descriptions with pinned fields (pins), final URLs, serving status, approval status, and Ad Strength. Fetches via GoogleAdsService.SearchStream over the ad_group_ad resource. Returns ad_group_ad.ad.id, ad_group_ad.ad.type (AdType enum: RESPONSIVE_SEARCH_AD, RESPONSIVE_DISPLAY_AD, VIDEO_RESPONSIVE_AD, DEMAND_GEN_*, APP_AD, ...), ad_group_ad.status, the ad's text for its own type (responsive_search_ad.headlines/descriptions incl. pinned_field per AdTextAsset; responsive_display_ad, demand_gen_multi_asset_ad, demand_gen_video_responsive_ad and video_responsive_ad headlines, long headlines and descriptions; demand_gen_carousel_ad and demand_gen_product_ad headline and description), final_urls, policy_summary (approval_status, policy_topic_entries), and optionally ad_group_ad.ad_strength. With include_metrics it adds impressions/clicks/ctr/cost_micros/conversions over a date range plus prior_period={metrics, delta_pct} when include_prior_period=true (translatable date ranges only). Accuracy: cost is micros (/1e6, currency-labeled); metrics with a segment multiply per row and must be summed; metrics reconcile to the UI within +/-1%; never fabricate creative or metrics not returned. Any asset_performance_label on the returned headline/description objects is the creative-level Ad-resource copy — for per-asset serving labels use gads_get_rsa_asset_performance (a DIFFERENT Google field sharing the same enum; the two can legitimately differ). (Related but different tools: gads_get_ad_strength = the account-wide Ad Strength report; gads_get_ad_schedule_performance = hour/day dayparting stats; gads_get_rsa_asset_performance = per-asset serving labels.)
When to use it
When the user asks to see, inspect, review, or audit ONE specific ad — its headlines, descriptions, pins, URLs, approval, or ad strength. Typical asks: 'show me this ad', 'what headlines does ad 123 have', 'why is this ad limited'. For lists of ads use gads_list_ads; fetch one ad by ad_id with this tool.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
ad_id | string | yes | Numeric ad id (ad_group_ad.ad.id). |
ad_group_id | string | yes | Parent ad group id (ad_group_ad is keyed by ad_group + ad). |
customer_id | string | yes | 10-digit CID, dashes stripped. |
include_metrics | boolean | no | Add metrics.* over date_range and prior-period delta. |
date_range | string | no | GAQL date macro or explicit range; used with include_metrics. |
include_prior_period | boolean | no | Opt-in: also run the equal-length preceding window and attach prior_period={date_range, metrics, delta_pct} to every row. Needs a translatable date_range (LAST_7/14/30_DAYS, TODAY, YESTERDAY, THIS_MONTH, LAST_MONTH, or explicit 'YYYY-MM-DD,YYYY-MM-DD'); untranslatable ranges skip with a warning. |
Safeguards
Policy
Read-only; metrics must reconcile to the Google Ads UI within +/-1%. Surface policy_summary verbatim (approval status, policy topics) — do not soften or invent a disapproval reason.
Reminder
Do not retain or expose ad creative/metrics beyond this request; per-account isolation enforced (server-derived tenant context + RLS).
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
CUSTOMER_NOT_FOUND | Customer ID not found / unauthorized. | Verify CID and authorization; re-auth if revoked. | no |
TOKEN_REVOKED | OAuth credential revoked/expired. | Prompt reconnect (needs_reauth). | no |
INVALID_ARGUMENT | GAQL rejected (bad field for this ad type) — surfacing Google's message. | Surface exact error; select only fields valid for the ad type. | no |
PERMISSION_DENIED | Scope/role does not permit reading this account. | Confirm adwords scope and access; CID may be outside the bearer scope. | no |
RESOURCE_EXHAUSTED | Rate/quota exceeded (429). | Backoff 5->10->20s cap 60s; honor retryDelay. | yes |
PLATFORM_UNAVAILABLE | Google Ads API 5xx. | Retry after backoff. | yes |
Edge cases
- Ad id valid but not found -> success:true, count:0, data:null.
- Type-specific creative fields only populate for the matching ad type — selecting responsive_search_ad fields on a video ad yields nulls.
- ad_strength populates only for supported ad types (RSA, Display, etc.); null for others.
- include_metrics with a segment multiplies rows — aggregate for totals.
- Disapproved ad: policy_summary.approval_status=DISAPPROVED with policy_topic_entries — surface them exactly.
- Expired token -> refresh once, retry.