AdLoop
v0.48.1Google Ads MCP server with Reddit Ads, GA4 and Tag Manager.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
health_check Connection health check
Test AdLoop connectivity — checks OAuth token, GA4 API, Google Ads API, and (when configured) the Reddit Ads and Microsoft Advertising APIs. Returns the status of each service and actionable guidance when something is broken, which makes it the diagnostic for failures in other tools. Google Ads API: https://developers.google.com/google-ads/api/docs/start, Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Reddit Ads API: https://ads-api.reddit.com/docs/v3/
get_account_summaries List Analytics properties
List all GA4 accounts and properties accessible by the authenticated user. Serves as the discovery step for which GA4 properties are available. Returns account names, property names, and property IDs. Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Admin API: https://developers.google.com/analytics/devguides/config/admin/v1
run_ga4_report Analytics report
Run a custom GA4 report with optional filters, ordering, paging and a comparison period. Returns the property, the date range, the dimension and metric headers, one row per dimension combination (values as strings), row_count and total_row_count (plus next_offset while more rows remain). At least one dimension or metric is required. With compare_start/compare_end the comparison period is a second date range: every row then carries a dateRange value of "current" or "comparison", and date_ranges maps both labels to their dates. Invalid filters or ordering return "Validation failed" with details…
| Parameter | Type | Description |
|---|---|---|
compare_end | string | End of the comparison period. |
compare_start | string | Start of the comparison period (same formats as date_range_start). Set together with compare_end. |
currency_code | string | ISO 4217 code (e.g. "EUR") to report revenue and cost metrics in that currency instead of the property's own. |
date_range_end | string | End date, same formats as date_range_start. |
date_range_start | string | Start date: "today", "yesterday", "NdaysAgo" (e.g. "7daysAgo", "28daysAgo", "90daysAgo"), or "YYYY-MM-DD". |
date_ranges | Up to four named periods in one report, replacing date_range_start/end (not combinable with compare_start/end): [{"start": "2026-10-01", "end": "2026-10-31", "name": "october"}, {"start": "2025-10-01"… | |
dimension_filter | Conditions on dimensions, all of which must hold (AND). Each is {"field": <dimension>, "op": <match>, "value": <string>}; op is EXACT (default), BEGINS_WITH, ENDS_WITH, CONTAINS, FULL_REGEXP, PARTIAL_… | |
dimensions | GA4 dimension API names, e.g. date, pagePath, sessionSource, sessionMedium, country, deviceCategory, eventName. Custom ones (customEvent:...) and every valid name are listed by list_ga4_dimensions_and… | |
limit | integer | Maximum number of rows returned (positive). |
metric_filter | Conditions on metrics, applied after aggregation, all of which must hold (AND). Each is {"field": <metric>, "op": <op>, "value": <number>}; op is EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, GREATER_THAN, GR… | |
metrics | GA4 metric API names, e.g. sessions, totalUsers, newUsers, screenPageViews, keyEvents, eventCount, bounceRate. | |
offset | integer | Zero-based row offset for paging; pass next_offset from the previous result to get the following page. |
order_by | Sort order as [{"field": <name>, "desc": true|false}]; each field must be one of the requested dimensions or metrics. | |
property_id | string | GA4 property as "properties/123456789" (see get_account_summaries). If empty, uses the default from config. |
run_realtime_report Analytics realtime report
Run a GA4 realtime report showing current active users and events. Useful for checking if tracking is firing correctly after code changes: filter on the event that just shipped, or compare the last few minutes with the minutes before. Returns the dimension and metric headers and one row per dimension combination over the realtime window (the last 30 minutes unless minute_ranges says otherwise). When a filter matches nothing, insights[] lists the usual causes. Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Admin API: https://developers.googl…
| Parameter | Type | Description |
|---|---|---|
dimension_filter | Same format as in run_ga4_report, e.g. [{"field": "eventName", "value": "purchase"}]. | |
dimensions | GA4 realtime dimension API names, e.g. unifiedScreenName, eventName, country, deviceCategory, minutesAgo. | |
limit | integer | Maximum rows; 0 uses GA4's default. |
metric_filter | Same format as in run_ga4_report. | |
metrics | GA4 realtime metric API names, e.g. activeUsers, eventCount, keyEvents. Defaults to ["activeUsers"]. | |
minute_ranges | Up to two windows, e.g. [{"start_minutes_ago": 4, "end_minutes_ago": 0, "name": "last_5"}, {"start_minutes_ago": 29, "end_minutes_ago": 5, "name": "before"}]. start_minutes_ago is at most 29 on standa… | |
order_by | [{"field": <requested dimension or metric>, "desc": true}]. | |
property_id | string | GA4 property as "properties/123456789" (see get_account_summaries). If empty, uses the default from config. |
get_ga4_property Analytics property overview
Show a GA4 property's configuration in one call: details, linked Google Ads accounts, data streams and data retention. Returns the property's display name, time zone, currency, industry, service level (standard or 360), type and create time; every linked Google Ads account (customer ID, whether it is a manager account, personalized advertising); every data stream with its measurement ID or app ID; how many months event and user data are kept; and the number of key events. insights[] flags settings that cost data: two-month retention, no Google Ads link while key events exist, the configured A…
| Parameter | Type | Description |
|---|---|---|
property_id | string | GA4 property as "properties/123456789" or the bare numeric ID (see get_account_summaries). If empty, uses the default from config. |
get_tracking_events List Analytics events
List all GA4 events and their volume for the given date range. Returns every distinct event name with its total event count, sorted by count (highest first). Shows what tracking is configured and active. Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Admin API: https://developers.google.com/analytics/devguides/config/admin/v1
| Parameter | Type | Description |
|---|---|---|
date_range_end | string | End date, same formats as date_range_start. |
date_range_start | string | Start date: "today", "yesterday", "NdaysAgo" (e.g. "28daysAgo"), or "YYYY-MM-DD". |
property_id | string | GA4 property as "properties/123456789" (see get_account_summaries). If empty, uses the default from config. |
list_key_events List Analytics key events
List the key events (conversions) configured on a GA4 property. Returns each key event's event name, counting method (ONCE_PER_EVENT or ONCE_PER_SESSION), create time, whether GA4 allows deleting it, whether it is a custom event, and its resource name, sorted by event name, plus the total. Reads the GA4 Admin API (keyEvents.list). Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Admin API: https://developers.google.com/analytics/devguides/config/admin/v1
| Parameter | Type | Description |
|---|---|---|
property_id | string | GA4 property as "properties/123456789" or the bare numeric ID (see get_account_summaries). If empty, uses the default from config. |
list_ga4_dimensions_and_metrics Analytics dimensions and metrics
List the dimensions and metrics a GA4 property can report on, including custom ones. Returns the exact API names valid in run_ga4_report for this property: each with its UI name, category, whether it is a custom definition (customEvent:..., customUser:...), and deprecated API names; metrics also carry their type and, for calculated metrics, the expression. Reads the GA4 Data API metadata (properties.getMetadata), which uses no report quota. Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Admin API: https://developers.google.com/analytics/dev…
| Parameter | Type | Description |
|---|---|---|
custom_only | boolean | True returns only the property's custom dimensions and metrics. |
include_descriptions | Include each field's description. Defaults to true when search is set and false otherwise (the full list is long). | |
kind | string | "all" (default), "dimensions" or "metrics". |
property_id | string | GA4 property as "properties/123456789" or the bare numeric ID. If empty, uses the default from config. |
search | string | Case-insensitive text matched against API name, UI name, category, description and deprecated API names (e.g. "channel", "revenue", or the legacy "conversions", which finds keyEvents). Empty returns e… |
run_ga4_funnel Analytics funnel report
Run a GA4 funnel report: how many users go from one step to the next, and where they drop off. Steps are event names or pages, in order. Returns per step the users, completion rate to the next step, abandonments and abandonment rate, plus how many started and finished, the overall completion rate and the biggest drop (after which step most users leave). With breakdown, the same per value of a dimension (e.g. deviceCategory); with next_action, the most common next event or page after each step, i.e. what users do instead. Uses the GA4 Data API v1alpha (runFunnelReport), the endpoint behind GA4…
| Parameter | Type | Description |
|---|---|---|
breakdown | string | Dimension to split every step by, e.g. deviceCategory, sessionDefaultChannelGroup, country. |
breakdown_limit | integer | How many values of the breakdown dimension (1-15). |
date_range_end | string | Same formats. |
date_range_start | string | "today", "yesterday", "NdaysAgo" or "YYYY-MM-DD". |
dimension_filter | Only count users matching these conditions, same format as in run_ga4_report, e.g. [{"field": "deviceCategory", "value": "mobile"}]. | |
next_action | string | Dimension for "what came next" after each step, e.g. eventName or pagePath. |
open_funnel | boolean | False (default) counts only users who start at step 1; true lets users enter at any step. |
property_id | string | GA4 property as "properties/123456789" or the bare numeric ID. If empty, uses the default from config. |
steps | 2 to 10 steps. Each is an event name ("add_to_cart") or an object: {"event": "purchase", "name": "Bought"}, {"page": "/checkout"} (page views whose URL contains the text), optional "directly_followed"… |
run_ga4_attribution Analytics conversion attribution
Show which channels, campaigns or sources get the credit for conversions under GA4's attribution models, or compare data-driven with last click. The view of GA4's Advertising workspace: conversions, revenue, ad cost and ROAS per channel (or campaign, source, country, device) attributed by the model, not by session. attribution_model COMPARE runs data-driven and last click side by side and returns each row's share of the credit under both and the shift in percentage points, with insights naming the channels that gain or lose most. Conversions can be named by key event name; empty means all. Us…
| Parameter | Type | Description |
|---|---|---|
attribution_model | string | DATA_DRIVEN (default), LAST_CLICK, or COMPARE. |
conversions | Key event names (e.g. ["purchase"]) or GA4 conversion action IDs ("conversionActions/123"); empty for all. | |
date_range_end | string | Same formats. |
date_range_start | string | "today", "yesterday", "NdaysAgo" or "YYYY-MM-DD". |
dimensions | Any of campaignName, continent, country, defaultChannelGroup (default), deviceCategory, medium, platform, primaryChannelGroup, source, sourceMedium, sourcePlatform, subcontinent. | |
limit | integer | Maximum rows per model. |
metrics | Any of allConversionsByConversionDate, allConversionsByInteractionDate, totalRevenueByConversionDate, totalRevenueByInteractionDate, advertiserAdCost, advertiserAdClicks, advertiserAdImpressions, adve… | |
property_id | string | GA4 property as "properties/123456789" or the bare numeric ID. If empty, uses the default from config. |
audit_ga4_property Analytics setup audit
Audit a GA4 property's setup in one call: the settings that quietly cost data or conversions. Checks data retention (two months is GA4's default and cuts explorations short), the Google Ads link (and whether the configured Ads account is linked), each data stream's activity in the last 7 days, key events that never fired in 28 days or no key events at all, enhanced measurement per web stream, Google signals (and the thresholding they cause), the custom dimension and metric limits, and a property in the trash. Returns checks with status warn, info or ok (warnings first), a summary count, and t…
| Parameter | Type | Description |
|---|---|---|
property_id | string | GA4 property as "properties/123456789" or the bare numeric ID. If empty, uses the default from config. |
list_ga4_annotations List Analytics annotations
List a GA4 property's annotations, the notes GA4 shows on a date or date range in its charts. Returns each annotation's ID (resource name), title, description, color, and its date or start and end date, newest first; Google's own annotations are marked system_generated. With a date range, only the annotations that overlap it. The first stop for "what happened on that day?" next to get_change_history in Google Ads. Reads the GA4 Admin API v1alpha (reportingDataAnnotations.list). Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Admin API: https…
| Parameter | Type | Description |
|---|---|---|
date_range_end | string | Optional end, same formats. |
date_range_start | string | Optional start: "today", "yesterday", "NdaysAgo" or "YYYY-MM-DD". Set together with date_range_end. |
property_id | string | GA4 property as "properties/123456789" or the bare numeric ID. If empty, uses the default from config. |
list_ga4_audiences List Analytics audiences
List a GA4 property's audiences and check whether they reach Google Ads. GA4 shares its audiences with every linked Google Ads account that allows personalized advertising; there they are remarketing lists (get_audience_lists) that draft_audience_attachment puts on a campaign. Returns each audience's resource name, display name, description, membership duration and what includes or excludes users: events, pages (include_pages / exclude_pages: the URL contains the text) or a sequence of steps (audiences built with other conditions in GA4's editor carry custom_conditions and the raw conditions;…
| Parameter | Type | Description |
|---|---|---|
property_id | string | GA4 property as "properties/123456789" or the bare numeric ID. If empty, uses the default from config. |
list_ga4_custom_definitions List Analytics custom definitions
List a GA4 property's custom dimensions and custom metrics, with how many slots are left. Returns each custom dimension's resource name, parameter name, display name, scope (EVENT, USER or ITEM) and description, and each custom metric's resource name, parameter name, display name, measurement unit and description, plus usage per kind against the property's limit (standard: 50 event, 25 user, 10 item dimensions, 50 metrics; 360: 125, 100, 25, 125). Use it before draft_ga4_custom_dimension or draft_ga4_custom_metric. For the field names to use in reports, see list_ga4_dimensions_and_metrics. Re…
| Parameter | Type | Description |
|---|---|---|
property_id | string | GA4 property as "properties/123456789" or the bare numeric ID. If empty, uses the default from config. |
list_gsc_sites List Search Console properties
List all Google Search Console properties the authenticated user can access. Serves as the discovery step for the site URLs that search analytics reports (run_gsc_report) take. Returns the site URL and permission level for each property. Search Console API: https://developers.google.com/webmaster-tools
run_gsc_report Search Console report
Run a Google Search Console search analytics report. Returns clicks, impressions, CTR, and average position broken down by the requested dimensions. Useful for diagnosing organic traffic drops, finding keyword opportunities, and cross-referencing with GA4 and Ads data. One request returns at most 25,000 rows; a full page carries next_start_row for the following request. With data_state "all" the response metadata names the first date whose data is still incomplete. Queries the Search Console API: https://developers.google.com/webmaster-tools/v1/searchanalytics/query
| Parameter | Type | Description |
|---|---|---|
aggregation_type | string | "auto" (default), "byPage" (aggregate by canonical URL) or "byProperty" (aggregate by property; not combinable with grouping or filtering by page). |
data_state | string | "final" (default) returns finalized data only; "all" adds fresh data from the last days that can still change; "hourly_all" is the state the hour dimension uses. |
date_range_end | string | End date, same formats as date_range_start. |
date_range_start | string | Start date as ISO "YYYY-MM-DD" or a relative value like "7daysAgo", "30daysAgo", "today". |
dimension_filter_groups | Optional list of GSC DimensionFilterGroup objects to filter by query, page, country, or device, e.g. [{"filters": [{"dimension": "query", "operator": "contains", "expression": "analytics"}]}]. searchA… | |
dimensions | One or more of "query", "page", "country", "device", "date", "searchAppearance" (search result feature, e.g. rich results) or "hour" (hourly rows for roughly the last 10 days; switches data_state to "… | |
limit | integer | Maximum rows to return (default 100, max 25000 per request; higher values are capped at 25000). |
search_type | string | "web" (default), "image", "video", "news", "discover", or "googleNews". |
site_url | string | The GSC property URL (e.g. "https://example.com/" or "sc-domain:example.com"), as listed by list_gsc_sites. Defaults to the configured Search Console site (gsc.site_url). |
start_row | integer | Zero-based offset of the first row, for paging past the 25,000-row cap (pass the previous response's next_start_row). |
analyze_page_speed PageSpeed analysis
Run PageSpeed Insights for a landing page — Lighthouse + real-user data. Returns the performance score (0-100), lab Core Web Vitals (LCP, CLS, TBT, FCP), CrUX field data from real Chrome users where available (p75 LCP/INP/CLS/FCP/TTFB + FAST/AVERAGE/SLOW ratings), and the top improvement opportunities with estimated savings. When the page itself has too little traffic for field data, the origin-wide field data is returned instead, marked field.scope="origin". Typical input is an ad final_url: slow landing pages depress Quality Score and waste paid clicks. Takes 10-30s; that is normal for a…
| Parameter | Type | Description |
|---|---|---|
url * | string | Full URL of the page to analyze, e.g. an ad's final_url ("https://example.com/landing"). |
strategy | string | "mobile" (default — most paid traffic) or "desktop". |
list_merchant_accounts List Merchant Center accounts
List Google Merchant Center accounts the connected user can access. Returns each account's numeric ID, name and whether it is a test account. Provides the account_id used by get_merchant_feed_health; not needed when merchant.account_id is set in the config. Merchant API: https://developers.google.com/merchant/api/overview
get_merchant_feed_health Merchant Center feed health
Merchant Center feed health — disapproved products + account issues. Disapproved feed items silently starve Shopping and Performance Max campaigns; this reports approved/pending/disapproved/expiring counts per reporting context and country, each context marked paid (Shopping, display, video ads, ...) or free (free listings), the top item issues by affected products (with documentation links), and account-level issues — CRITICAL ones stop offers serving entirely. A product counts once per reporting context, so contexts are never added together. Product-status data lags reality by ~30 minut…
| Parameter | Type | Description |
|---|---|---|
account_id | string | Numeric Merchant Center ID from list_merchant_accounts. Defaults to merchant.account_id in the config. |
get_merchant_product_issues Merchant Center product issues
The products behind the feed-health counts, each with its issues. Lists products by status with offer id, title, brand, click potential and every item issue: its code, the attribute it concerns, severity per reporting context with the affected countries, and whether the merchant has to act or Google is still processing. Products with high click potential come first, because fixing them recovers the most traffic. issues_by_code counts the products per issue. Data lags feed changes by about 30 minutes. Merchant API: https://developers.google.com/merchant/api/overview
| Parameter | Type | Description |
|---|---|---|
account_id | string | Numeric Merchant Center ID from list_merchant_accounts. Defaults to merchant.account_id in the config. |
issue_code | string | Only products with this issue code (from issues_by_code or get_merchant_feed_health). |
limit | integer | Maximum number of products to return (1-200, default 50). |
status | string | "disapproved" (default, not serving), "limited" (serving with restrictions), "pending" (still in review) or "any" (every product with at least one issue). |
list_accounts List Google Ads accounts
List accessible Google Ads accounts. Returns account names, IDs, status, and whether each is a manager account. When more accounts exist than `limit`, the response has 'truncated: true'; a much higher limit (e.g. list_accounts(limit=1000)) returns the full list. Workflows that target a specific account need no enumeration at all: get_campaign_performance, run_gaql, etc. take customer_id directly. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of accounts listed under the manager (MCC) account. The default cap of 200 covers the vast majority of agency MCCs in one call. |
get_campaign_performance Campaign performance
Get campaign-level performance metrics for a date range. Returns campaign name, status, type, impressions, clicks, cost, conversions, CPA, ROAS, CTR for each campaign, plus Search impression share and the share lost to budget and to ad rank (fractions with matching *_pct percentages; null for campaigns that do not serve on Search or had no impressions). Insights flag converting campaigns that lose a significant share of impressions to budget. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
compact | boolean | When true (for audits/overviews on large accounts), returns account totals, status/type breakdowns, the top-10 spenders, zero-conversion offenders and budget-limited converters instead of every row (~… |
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
date_range_end | string | End date as "YYYY-MM-DD" (inclusive). |
date_range_start | string | Start date as "YYYY-MM-DD". Both dates must be set to apply a range; if either is empty, the last 30 days are used. |
get_ad_performance Ad performance
Get ad-level performance data including headlines, descriptions, and metrics. Returns ad type, headlines, descriptions, final URL, impressions, clicks, CTR, conversions, cost for each ad, plus its policy approval status, review status and policy topic names. Disapproved and limited-by-policy ads are listed under policy_issues with their spend. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
compact | boolean | When true (for audits/overviews), returns totals, the top-10 ads with headline/description COUNTS instead of full asset lists, plus incomplete-RSA, single-ad ad-group and policy findings with approval… |
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
date_range_end | string | End date as "YYYY-MM-DD" (inclusive). |
date_range_start | string | Start date as "YYYY-MM-DD". Both dates must be set to apply a range; if either is empty, the last 30 days are used. |
get_keyword_performance Keyword performance
Get keyword metrics including quality scores and competitive data. Returns keyword text, match type, quality score, impressions, clicks, CTR, CPC, conversions for each keyword. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
compact | boolean | When true (for audits/overviews), returns totals, match-type distribution, the top-10 spenders, low-quality-score keywords, and zero-conversion spenders instead of every row (~90% smaller). |
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
date_range_end | string | End date as "YYYY-MM-DD" (inclusive). |
date_range_start | string | Start date as "YYYY-MM-DD". Both dates must be set to apply a range; if either is empty, the last 30 days are used. |
get_search_terms Search terms report
Get search terms report — what users actually typed before clicking your ads. Critical for finding negative keyword opportunities and understanding user intent. Returns search term, campaign, ad group, impressions, clicks, conversions. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
compact | boolean | When true (for audits/overviews), returns totals, the top-10 terms by clicks, ready-made negative-keyword waste candidates (5+ clicks, zero conversions), and top converters (~90% smaller). |
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
date_range_end | string | End date as "YYYY-MM-DD" (inclusive). |
date_range_start | string | Start date as "YYYY-MM-DD". Both dates must be set to apply a range; if either is empty, the last 30 days are used. |
get_negative_keywords List negative keywords
List existing negative keywords for a campaign or all campaigns. Shows the existing negatives, which reveals duplicates before new negative keywords are added. Returns each negative's campaign, keyword text, match type, and a resource_id ("campaignId~criterionId") as taken by remove_entity, plus the total count. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
campaign_id | string | Numeric campaign ID to filter by. If empty, returns negatives across all campaigns. |
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
get_negative_keyword_lists List shared negative keyword lists
List all shared negative keyword lists (SharedSets) in the account. Returns each list's ID, name, status, and keyword count. Useful before propose_negative_keyword_list: a suitable list may already exist and just need attaching to a campaign. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
get_negative_keyword_list_keywords Keywords in a negative keyword list
List the keywords inside a shared negative keyword list. Returns each negative keyword's text, match type, and a resource_id ("sharedSetId~criterionId"), with the total keyword count. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
shared_set_id * | string | Numeric ID from get_negative_keyword_lists (shared_set.id). |
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
get_negative_keyword_list_campaigns Campaigns using a negative keyword list
List which campaigns a shared negative keyword list is attached to. Returns each list-to-campaign attachment with the list and campaign IDs and names. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
shared_set_id | string | Numeric ID from get_negative_keyword_lists. When omitted, returns all list-to-campaign attachments across the account. |
get_recommendations Google Ads recommendations
Retrieve Google's auto-generated recommendations with estimated impact. Returns each recommendation's ID, type, associated campaign/ad group, current (base) and projected (potential) metrics, and the estimated improvement. Includes insights that flag budget-increase recommendations (their projected gain comes from spending more) and highlight high-impact suggestions. The `recommendation.id` is what draft_dismiss_recommendations takes. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
campaign_id | string | Optional numeric campaign ID to scope to a single campaign. |
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
recommendation_types | Optional filter of Google Ads RecommendationType names, e.g. ["KEYWORD", "TARGET_CPA_OPT_IN", "MAXIMIZE_CONVERSIONS_OPT_IN", "RESPONSIVE_SEARCH_AD"]. Empty = all types. |
draft_dismiss_recommendations Draft dismissing recommendations
Dismiss Google Ads recommendations — returns a PREVIEW. Turns down recommendations you will not take (e.g. "add broad match" on a deliberately narrow account) so they stop reappearing in get_recommendations. Nothing in the account changes, and Google can show a dismissed recommendation again later, so a single confirmation is enough. Each ID must be an active recommendation: unknown or already dismissed IDs are refused by name. The preview lists each one's type, campaign and estimated improvement, so the user sees what they are turning down. DismissRecommendation has no validate-only mode…
| Parameter | Type | Description |
|---|---|---|
recommendation_ids * | array | `recommendation.id` values from get_recommendations, or full resource names (customers/{customer_id}/recommendations/{id}). Duplicates are collapsed. |
customer_id | string | Ads account ID. Defaults to the configured account. |
get_recommendation_subscriptions Auto-apply recommendation subscriptions
List the recommendation types Google applies automatically (auto-apply). A subscription makes Google apply every new recommendation of its type without asking, so changes reach the account with no preview. Returns each subscription's type, status (ENABLED or PAUSED), create_date_time and modify_date_time. A type that is not listed is not auto-applied. insights[] names every ENABLED type and flags one modified in the last 30 days, so a recurring audit can catch auto-apply being switched on. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
draft_recommendation_subscriptions Draft pausing auto-apply recommendations
Pause auto-apply for recommendation types — returns a PREVIEW. Pausing is the only change this tool can make: it sets each type's subscription to PAUSED, so Google stops applying those recommendations on its own. Their recommendations still appear in get_recommendations. Re-enabling auto-apply is deliberately not supported; it lets Google change the account without a preview, so it stays a decision for the Google Ads UI. Pausing reduces automation, so a single confirmation is enough. Each type must have an ENABLED subscription (see get_recommendation_subscriptions); a type with none, or on…
| Parameter | Type | Description |
|---|---|---|
recommendation_types * | array | RecommendationType names with an ENABLED subscription, e.g. ["KEYWORD", "USE_BROAD_MATCH_KEYWORD"]. Duplicates are collapsed. |
customer_id | string | Ads account ID. Defaults to the configured account. |
get_pmax_performance Performance Max performance
Get Performance Max campaign and asset group performance. Returns two result sets. campaigns: PMax campaign metrics broken down by ad_network_type (SEARCH, CONTENT, YOUTUBE_SEARCH, YOUTUBE_WATCH, MIXED). MIXED is a catch-all that Google uses for most PMax traffic — full channel splits are not available via the API. asset_groups: per-asset-group metrics including ad_strength (EXCELLENT, GOOD, AVERAGE, POOR). Includes insights flagging weak ad strength, zero-conversion asset groups, and network type distribution. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
date_range_end | string | End date as "YYYY-MM-DD" (inclusive). |
date_range_start | string | Start date as "YYYY-MM-DD". Both dates must be set to apply a range; if either is empty, the last 30 days are used. |
get_pmax_assets Performance Max assets
List the assets of Performance Max campaigns with type, status and content. Returns each asset's field_type (HEADLINE, DESCRIPTION, MARKETING_IMAGE, YOUTUBE_VIDEO, etc.), primary_status (ELIGIBLE, NOT_ELIGIBLE, PAUSED, PENDING), and content (text or image URL), plus by_status and by_field_type summaries. Per-asset performance labels (BEST/GOOD/LOW) are not available for PMax assets in the Google Ads API. get_detailed_asset_performance reports which asset combinations Google selects most — the closest proxy for individual asset quality. Google Ads API: https://developers.google.com/google-…
| Parameter | Type | Description |
|---|---|---|
campaign_id | string | Optional numeric ID to filter to a single PMax campaign. |
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
get_detailed_asset_performance Performance Max asset combinations
Get top-performing asset combinations for Performance Max campaigns. Shows which headline + description + image combinations Google selects most often. Returns each combination with the assets used and their field types. This data helps identify which creative elements work well together. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
campaign_id | string | Optional numeric ID to filter to a single PMax campaign. |
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
get_audience_performance Audience performance
Get audience segment performance metrics. Returns performance by audience type — remarketing lists (USER_LIST), in-market segments (USER_INTEREST), affinity, demographics (AGE_RANGE, GENDER), etc. Shows display_name, impressions, clicks, cost, conversions, CTR, and CPC for each audience. Works for campaigns with explicit audience targeting (Search, Display). PMax audience targeting is automatic and may not appear in this report. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
campaign_id | string | Optional numeric ID to filter to a single campaign. |
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
date_range_end | string | End date as "YYYY-MM-DD" (inclusive). |
date_range_start | string | Start date as "YYYY-MM-DD". Both dates must be set to apply a range; if either is empty, the last 30 days are used. |
get_demographic_targeting Demographic targeting
List demographic targeting criteria (age, gender, parental status, income). Takes exactly one of ad_group_id or campaign_id. Returns each criterion's value, whether it's negative (excluded) or positive (narrowing), status, and a remove_id (composite resource ID) that can be passed directly to remove_entity with entity_type='ad_group_criterion' or 'campaign_criterion'. By default, Google Ads serves ads to ALL demographic segments — a criterion only appears here once a segment has been actively excluded or narrowed. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
ad_group_id | string | Numeric ad group ID. Mutually exclusive with campaign_id. |
campaign_id | string | Numeric campaign ID. Mutually exclusive with ad_group_id. |
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
get_change_history Change history
List recent account changes: who changed what, when, and through which tool. Answers "what changed before the drop?". Returns each change newest first with its time, the user's email, the client it came through (Google Ads UI, API, Google Ads scripts, Editor, automated rules, auto-applied recommendations, ...), the changed resource type, the operation (CREATE, UPDATE, REMOVE), the changed field paths, and the campaign and ad group names. Also returns counts by resource type, client, user and day, plus insights on auto-applied recommendations and budget or bidding changes. Google Ads keeps cha…
| Parameter | Type | Description |
|---|---|---|
campaign_id | string | Optional numeric campaign ID; only changes attributed to that campaign are returned. |
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
date_range_end | string | End date as "YYYY-MM-DD" (inclusive). Empty means today. |
date_range_start | string | Start date as "YYYY-MM-DD", at most 30 days back. Empty starts at the oldest day Google Ads still keeps. |
limit | integer | Maximum number of changes returned, newest first (1 to 10000; default 1000). The response is marked truncated when the limit is reached. |
resource_types | Optional filter of ChangeEventResourceType names, e.g. ["CAMPAIGN", "CAMPAIGN_BUDGET", "AD_GROUP_AD", "AD_GROUP_CRITERION"]. Empty = all types. |
analyze_campaign_conversions Campaign conversions against Analytics
Campaign clicks → GA4 conversions mapping — the real cost-per-conversion. Combines Google Ads campaign metrics with GA4 session/conversion data to reveal click-to-session ratios (GDPR indicator), compare Ads-reported vs GA4-reported conversions, and compute cost-per-GA4-conversion. Also returns non-paid channel conversion rates for comparison context. GA4 conversions are the property's key events (GA4 metric keyEvents). Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
campaign_name | string | Optional case-insensitive substring; only campaigns whose name contains it are included. Empty = all campaigns. |
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
date_range_end | string | End date as "YYYY-MM-DD" (inclusive). |
date_range_start | string | Start date as "YYYY-MM-DD". Both dates must be set to apply a range; if either is empty, the last 30 days are used. |
property_id | string | GA4 property as "properties/123456789" (see get_account_summaries). If empty, uses the default from config. |
landing_page_analysis Landing page analysis
Analyze which landing pages convert and which don't. Combines ad final URLs with GA4 page-level data. Returns paid traffic sessions, conversion rates, bounce rates, and engagement per landing page, and identifies pages that get ad clicks but zero conversions and orphaned URLs. Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
date_range_end | string | End date as "YYYY-MM-DD" (inclusive). |
date_range_start | string | Start date as "YYYY-MM-DD". Both dates must be set to apply a range; if either is empty, the last 30 days are used. |
property_id | string | GA4 property as "properties/123456789" (see get_account_summaries). If empty, uses the default from config. |
attribution_check Attribution check
Compare Ads-reported conversions vs GA4 — find tracking discrepancies. Checks whether conversions reported by Google Ads match what GA4 records, diagnoses GDPR consent gaps, attribution model differences, and missing conversion event configuration. Returns both sides' totals with the discrepancy and diagnostic insights. GA4 conversions are the property's key events (GA4 metric keyEvents). Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
conversion_events | Optional list of GA4 event names to specifically check (e.g. ["sign_up", "purchase"]). If omitted, compares aggregate totals only. | |
customer_id | string | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. |
date_range_end | string | End date as "YYYY-MM-DD" (inclusive). |
date_range_start | string | Start date as "YYYY-MM-DD". Both dates must be set to apply a range; if either is empty, the last 30 days are used. |
property_id | string | GA4 property as "properties/123456789" (see get_account_summaries). If empty, uses the default from config. |
draft_conversion_tracking_setup Set up conversion tracking
Set up conversion tracking from GA4 into Google Ads in one approved plan, returning a PREVIEW of only the missing steps. Use it when the user wants their conversions (sign-ups, purchases, leads) tracked and used for bidding, or after audit_ga4_property or check_key_event_imports found a gap. It reads both products and plans what is missing, in order: link the GA4 property to the Google Ads account, mark the events as GA4 key events, turn on auto-tagging, import the conversion actions Google Ads created for the key events (they start hidden and record nothing), make them primary, and use their…
| Parameter | Type | Description |
|---|---|---|
ads_personalization | boolean | Only for a new link. False (default) keeps personalized advertising off, so GA4 shares no audiences or remarketing data with Google Ads. |
customer_id | string | Google Ads customer ID, digits with or without dashes. Defaults to the configured ads.customer_id. |
data_retention | string | Optional, e.g. 14: also lengthen GA4 event data retention (months). Only lengthens; empty leaves it. |
events | GA4 event names to track as conversions, e.g. ["sign_up"], or objects {"event": "generate_lead", "counting_method": "ONCE_PER_SESSION"} (counting applies when the event is not a key event yet; default… | |
primary | boolean | True (default) makes the imports primary conversions that Smart Bidding optimizes toward; False imports them as secondary (reported only). |
property_id | string | GA4 property as "properties/123456789" or the bare numeric ID. If empty, uses the default from config. |
check_key_event_imports Key event import check
Check that every GA4 key event reaches Google Ads: imported, used for bidding, and actually receiving conversions. Matches the property's key events with the Google Ads conversion actions that import them (by GA4 property and event name), and compares GA4's key events from Google Ads traffic (google / cpc) with the conversions Google Ads recorded for each import. insights[] names key events no conversion action imports, imports that are only secondary (reported, not bid on), imports that stay at zero while GA4 counts Google Ads conversions (a broken link or auto-tagging), and imports of event…
| Parameter | Type | Description |
|---|---|---|
customer_id | string | Google Ads customer ID, digits with or without dashes. Defaults to the configured ads.customer_id. |
date_range_end | string | End date as "YYYY-MM-DD" (inclusive). |
date_range_start | string | Start date as "YYYY-MM-DD". Both dates must be set to apply a range; if either is empty, the last 30 days are used. |
property_id | string | GA4 property as "properties/123456789" or the bare numeric ID. If empty, uses the default from config. |
audit_event_coverage Tracking coverage audit
Three-way audit: codebase events ↔ GTM tags ↔ GA4 actual fires. Fetches the LIVE GTM container, joins it against GA4 event counts for the date range, and returns a per-event matrix with one of these statuses: ok — tag active and event firing ok_auto_collected — GA4 Enhanced Measurement event, no tag needed no_tag_no_fire — codebase event, no GTM tag, never fires tag_paused — GTM tag exists but is paused tag_active_but_not_firing — tag is active but no GA4 hits gtm_only_firing — GA4 event…
| Parameter | Type | Description |
|---|---|---|
expected_events * | array | Distinct event names found in the codebase's gtag('event', ...) and dataLayer.push({event: ...}) calls. |
date_range_end | string | End date "YYYY-MM-DD". Empty (or an empty date_range_start) means the last 30 days. |
date_range_start | string | Start date "YYYY-MM-DD". Empty (or an empty date_range_end) means the last 30 days. |
gtm_account_id | string | Numeric GTM account ID (Tag Manager UI → Admin → Container Settings, or list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (not the GTM-XXXXXXX public ID; see list_gtm_containers). Empty uses gtm.container_id from the config. |
property_id | string | GA4 property as "properties/123456789". Empty uses the default from config. |
list_gtm_accounts List Tag Manager accounts
List all GTM accounts the AdLoop service account / OAuth user can read. The first-time discovery step: provides the account_id that audit_event_coverage takes. Returns each account's ID and name. An empty list means the service account hasn't been added to any GTM container with at least Read permission. Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
list_gtm_containers List Tag Manager containers
List all containers under a GTM account. Returns container_id (the numeric ID needed by audit_event_coverage), public_id (the GTM-XXXXXXX string shown in the UI), name, and usage context (web / iOS / Android / amp / server). Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
| Parameter | Type | Description |
|---|---|---|
gtm_account_id | string | Numeric GTM account ID from list_gtm_accounts. Empty uses gtm.account_id from the config; the tool errors when neither is set. |
list_gtm_tags List Tag Manager tags
List every tag in the LIVE GTM container, or in one workspace. Each tag includes type, status, parsed parameters, the GA4 event name (for GA4 event tags), and resolved firing/blocking trigger names. Complements audit_event_coverage for inspecting specific tags. With workspace_id the list shows that workspace's unpublished state, so a just-drafted tag is visible; `source` says which state was read. Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
| Parameter | Type | Description |
|---|---|---|
gtm_account_id | string | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (see list_gtm_containers), not the GTM-XXXXXXX public ID. Empty uses gtm.container_id from the config. |
workspace_id | string | Workspace to read (see list_gtm_workspaces), which includes drafted changes that are not published yet. Empty reads the live (published) container version. |
get_gtm_tag Tag Manager tag details
Get the full RAW configuration for a single GTM tag. Includes every parameter, firing/blocking triggers (with their filter conditions resolved to text), priority, pause status, sampling, and monitoring metadata. Suited to inspecting a tag flagged by audit_event_coverage. An unknown tag_id returns an error with the available tag IDs. Reads the live container, or a workspace's unpublished state when workspace_id is set. Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
| Parameter | Type | Description |
|---|---|---|
tag_id * | string | Numeric GTM tag ID, as listed by list_gtm_tags. |
gtm_account_id | string | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
workspace_id | string | Workspace to read (see list_gtm_workspaces), which includes drafted changes that are not published yet. Empty reads the live (published) container version. |
list_gtm_triggers List Tag Manager triggers
List every trigger in the LIVE GTM container, or in one workspace. Each trigger has its filter conditions parsed to readable text (e.g. "{{Page Path}} matches RegExp ^/service-promotions/"). Helps diagnose why a tag fires or doesn't fire on specific pages. With workspace_id the list shows that workspace's unpublished state. Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
| Parameter | Type | Description |
|---|---|---|
gtm_account_id | string | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
workspace_id | string | Workspace to read (see list_gtm_workspaces), which includes drafted changes that are not published yet. Empty reads the live (published) container version. |
get_gtm_trigger Tag Manager trigger details
Get the full RAW configuration for a single GTM trigger. Includes filters, auto-event filters, custom-event filters, validation settings, and a list of every tag that uses this trigger. Helps diagnose why a tag with a specific trigger ID does or doesn't fire. An unknown trigger_id returns an error with the available trigger IDs. Reads the live container, or a workspace's unpublished state when workspace_id is set. Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
| Parameter | Type | Description |
|---|---|---|
trigger_id * | string | Numeric GTM trigger ID, as listed by list_gtm_triggers or a tag's firing/blocking triggers. |
gtm_account_id | string | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
workspace_id | string | Workspace to read (see list_gtm_workspaces), which includes drafted changes that are not published yet. Empty reads the live (published) container version. |
list_gtm_variables List Tag Manager variables
List GTM variables — both custom and enabled built-in. Without workspace_id both come from the live container version (the Default Workspace supplies the built-ins only when the live version lists none; built_in_source names where they came from). With workspace_id both come from that workspace's unpublished state. Variables matter because triggers reference them: if a trigger uses {{Form ID}} but Form ID isn't enabled, the trigger never matches. Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
| Parameter | Type | Description |
|---|---|---|
gtm_account_id | string | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
workspace_id | string | Workspace to read (see list_gtm_workspaces), which includes drafted changes that are not published yet. Empty reads the live (published) container version. |
list_gtm_workspaces List Tag Manager workspaces
List workspaces (drafts) under a GTM container. Returns each workspace's ID, name and description; the IDs are what `get_gtm_workspace_diff` takes. Most containers have a single Default Workspace; multiple workspaces appear when the team uses parallel drafts. Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
| Parameter | Type | Description |
|---|---|---|
gtm_account_id | string | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
get_gtm_workspace_diff Tag Manager workspace changes
Show drafted-but-not-published changes in a GTM workspace. Returns the list of entities (tags, triggers, variables) added, modified, or deleted relative to the live published version, plus any merge conflicts. Common cause of "I edited a tag but nothing happened" — the workspace was never published. is_clean=true means no pending changes and no conflicts. Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
| Parameter | Type | Description |
|---|---|---|
workspace_id * | string | Numeric GTM workspace ID from list_gtm_workspaces. |
gtm_account_id | string | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
list_gtm_versions Tag Manager version history
List GTM container version headers (newest first). Version headers include version_id, name, archived flag and entity counts. The Tag Manager API returns no creation or publish time and no author for a version, and does not mark which versions were published; get_gtm_version returns a version's notes and get_gtm_version_diff what changed between two versions. Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
| Parameter | Type | Description |
|---|---|---|
gtm_account_id | string | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
page_size | integer | Maximum number of version headers returned (newest first). |
get_gtm_version Tag Manager version details
Get metadata + entity counts for a single GTM container version. Returns name, description (the version notes), fingerprint, and lists of tag/trigger/variable names at that point in time. The API returns no timestamps or author for a version. Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
| Parameter | Type | Description |
|---|---|---|
container_version_id * | string | Numeric container version ID from list_gtm_versions. |
gtm_account_id | string | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
get_gtm_version_diff Tag Manager version diff
Compare two GTM container versions: what a publish changed. Returns added, removed and changed tags, triggers and variables (with names, types and the changed fields; parameters and trigger conditions are diffed key by key), plus built-in variables enabled or disabled. By default compares the live version with the version created before it. The Tag Manager API does not mark which versions were published, so that default "before" version may never have been live. Makes two or three Tag Manager API calls. Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
| Parameter | Type | Description |
|---|---|---|
from_version_id | string | Older version ID (see list_gtm_versions). Empty uses the newest non-archived version created before to_version_id. |
gtm_account_id | string | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
to_version_id | string | Newer version ID. Empty uses the live (published) version. |
draft_gtm_tag Draft a Tag Manager tag
Draft creating or updating a Tag Manager tag — returns a PREVIEW. Without tag_id this creates a tag in a workspace; with tag_id it updates the existing tag. The edit lands in the workspace and changes nothing on the site until the workspace is published. Refused unless gtm.write_enabled is set, and Custom HTML (html) is refused as well unless gtm.allow_custom_html is set. Returns the resolved workspace, the tag type, the fields that would change and a plan_id. Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
| Parameter | Type | Description |
|---|---|---|
blocking_trigger_ids | Trigger IDs that must not fire the tag. | |
firing_trigger_ids | Trigger IDs that fire the tag (see list_gtm_triggers). The built-in All Pages trigger is "2147479553". | |
gtm_account_id | string | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
name | string | Tag name, 1-200 characters. Required when creating a tag. |
notes | Free-form note stored on the tag. None keeps the current note. | |
parameters | GTM parameter dicts with at least "type" and "key", for example gaawe [{"type": "TEMPLATE", "key": "eventName", "value": "form_submit"}] or awct [{"type": "TEMPLATE", "key": "conversionId", "value": "… | |
paused | True stores the tag paused instead of deleting it. None keeps the current state. | |
tag_id | string | Existing tag ID to update (see list_gtm_tags). Empty creates a new tag. |
tag_type | string | Tag type, required when creating a tag because GTM cannot change a tag's type later: googtag, gaawe (GA4 event), awct (Ads conversion), awcc, awud, sp (Ads remarketing), gclidw, flc, fls, img, html (C… |
workspace_id | string | Workspace to edit (see list_gtm_workspaces). Empty uses the Default Workspace, or the only workspace there is. |
draft_gtm_trigger Draft a Tag Manager trigger
Draft creating or updating a Tag Manager trigger — returns a PREVIEW. Without trigger_id this creates a trigger in a workspace; with trigger_id it updates the existing one. The edit lands in the workspace and changes nothing on the site until the workspace is published. Refused unless gtm.write_enabled is set. Returns the resolved workspace, the trigger fields that would change and a plan_id. Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
| Parameter | Type | Description |
|---|---|---|
auto_event_filters | Conditions on automatic event parameters, same shape as filters. On update the list replaces the existing one. | |
custom_event_filters | Conditions on custom event parameters, same shape as filters. On update the list replaces the existing one. | |
custom_event_name | string | The dataLayer event name. Required for trigger type customEvent, rejected for every other type, and rejected on an existing trigger, where the event name sits in its custom event filter. |
filters | GTM conditions, each a dict with "type" (EQUALS, CONTAINS, MATCH_REGEX, ...) and "parameter" (arg0 = variable, arg1 = value), for example clicks on tel: links [{"type": "CONTAINS", "parameter": [{"typ… | |
gtm_account_id | string | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
name | string | Trigger name, 1-200 characters. Required when creating a trigger. |
notes | Free-form note stored on the trigger. None keeps the current note. | |
parameters | GTM parameter dicts with at least "type" and "key". On update they merge by key: passed keys replace, other keys stay. | |
trigger_id | string | Existing trigger ID to update (see list_gtm_triggers). Empty creates a new trigger. |
trigger_type | string | Trigger type, required when creating a trigger and rejected on an existing one, because GTM cannot change it later: pageview, domReady, windowLoaded, click, linkClick, formSubmission, customEvent, ele… |
workspace_id | string | Workspace to edit (see list_gtm_workspaces). Empty uses the Default Workspace, or the only workspace there is. |
draft_gtm_variable Draft a Tag Manager variable
Draft creating or updating a Tag Manager variable: returns a PREVIEW. Without variable_id this creates a variable in a workspace; with variable_id it updates the existing one. Data Layer Variables, the usual source for GA4 ecommerce values, take data_layer_key (e.g. "ecommerce.value") instead of raw parameters. Tags and triggers use a variable as {{name}}; renaming one they reference is refused, because the references would break (the GTM UI renames safely). Custom JavaScript variables run code on the site and are refused unless gtm.allow_custom_html is set. The edit lands in the workspace an…
| Parameter | Type | Description |
|---|---|---|
data_layer_key | string | For Data Layer Variables: the dataLayer key to read, dot notation for nested values, e.g. "ecommerce.transaction_id". |
default_value | For Data Layer Variables: the value when the key is missing. None sets no default. | |
gtm_account_id | string | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
name | string | Variable name, 1-200 characters without curly braces. Required when creating a variable. |
notes | Free-form note stored on the variable. None keeps the current note. | |
parameters | GTM parameter dicts with at least "type" and "key" for the other types, e.g. a Constant's [{"type": "TEMPLATE", "key": "value", "value": "G-ABC123"}]. On update they merge by key. | |
variable_id | string | Existing variable ID to update (see list_gtm_variables). Empty creates a new variable. |
variable_type | string | Required when creating, fixed afterwards: v (Data Layer Variable), c (Constant), u (URL), k (1st-party cookie), j (JavaScript Variable, reads a global), aev (Auto-Event Variable), d (DOM element), f (… |
workspace_id | string | Workspace to edit (see list_gtm_workspaces). Empty uses the Default Workspace, or the only workspace there is. |
draft_delete_gtm_entity Draft deleting a Tag Manager tag, trigger or variable
Draft deleting a Tag Manager tag, trigger or variable — returns a PREVIEW. The entity is removed from a workspace and stays on the site until the workspace is published. A trigger that any tag still references, or a variable that a tag, trigger or other variable uses as {{name}}, is refused up front, with the references named. Refused unless gtm.write_enabled is set. Returns the entity that would be deleted, the resolved workspace and a plan_id. Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | Numeric ID of the entity (see list_gtm_tags, list_gtm_triggers and list_gtm_variables). |
entity_type * | string | "tag", "trigger" or "variable". |
gtm_account_id | string | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
workspace_id | string | Workspace to edit (see list_gtm_workspaces). Empty uses the Default Workspace, or the only workspace there is. |
draft_publish_gtm_workspace Draft publishing a Tag Manager workspace
Draft publishing a Tag Manager workspace LIVE — returns a PREVIEW. Every pending change in the workspace goes live, including changes other people made in the GTM UI; the preview lists them all. Apply refuses when the workspace changed after the preview, has merge conflicts, or reports compiler errors in a quick preview, and it refuses a Custom HTML tag being added or changed while gtm.allow_custom_html is off. Refused unless gtm.write_enabled is set. Returns the pending changes, the version that is live now (for a one-step rollback), the version name that would be created and a plan_id. Th…
| Parameter | Type | Description |
|---|---|---|
gtm_account_id | string | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
version_name | string | Name of the container version created by the publish. Empty uses "AdLoop publish <UTC timestamp>". |
version_notes | string | Notes stored on the created version. Empty leaves them out. |
workspace_id | string | Workspace to publish (see list_gtm_workspaces). Empty uses the Default Workspace, or the only workspace there is. |
draft_rollback_gtm_version Draft rolling back Tag Manager to a version
Draft republishing an older Tag Manager version LIVE; returns a PREVIEW. A rollback publishes an existing container version again. The preview diffs the live version against the target, so it lists every tag, trigger and variable that changes on the site, and it pins the live version: apply refuses when another version went live after the preview, or when the target was modified or archived. Workspaces are not changed. Refused unless gtm.write_enabled is set, and refused when the target adds or changes a Custom HTML tag while gtm.allow_custom_html is off. Returns the diff, previous_live_versi…
| Parameter | Type | Description |
|---|---|---|
version_id * | string | Container version ID to make live again (see list_gtm_versions and get_gtm_version_diff). |
gtm_account_id | string | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. |
gtm_container_id | string | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
run_gaql Custom Google Ads query
Execute an arbitrary GAQL (Google Ads Query Language) query. For queries beyond the dedicated report tools. Returns the result rows in the requested format with the query echoed back; cost fields stay in raw micros (cost_micros / 1,000,000 = account currency). A failing query returns an error with a hint. Queries the Google Ads API. GAQL syntax and fields: https://developers.google.com/google-ads/api/docs/query/overview
| Parameter | Type | Description |
|---|---|---|
query * | string | The GAQL query, e.g. "SELECT campaign.name, metrics.clicks FROM campaign WHERE segments.date DURING LAST_7_DAYS". |
customer_id | string | Google Ads customer ID, digits with or without dashes (123-456-7890). Empty uses the configured default account. |
format | string | Output format: "table" (default, readable), "json" (structured), or "csv" (exportable). |
get_audience_lists Audience lists
The account's own audiences: remarketing and customer lists, custom segments, combined segments. Each user list comes with its type, membership status (OPEN or CLOSED), size for Search and Display, eligibility and membership duration; custom and combined segments with their id and description. Insights flag lists below the 100 active users Search needs and closed lists. Use the ids with draft_audience_attachment; for Google's in-market and affinity segments use search_audience_segments. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
search_audience_segments Search audience segments
Find Google's in-market and affinity segments by name, with the segment_id to attach. In-market segments are people actively researching a purchase; affinity segments are long-term interests. Matching is on the segment name, in English, e.g. "running", "insurance", "travel". Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
query * | string | Part of the segment name to look for (at least 2 characters). |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
kind | string | "in_market", "affinity" or "all" (default). |
limit | integer | Maximum number of segments to return (1-100, default 25). |
get_audience_targeting Audience targeting
Audiences attached to one campaign or ad group, its exclusions, and the audience mode. audience_mode is "observation" (audiences only adjust bids and report), "targeting" (ads only reach the audiences) or "not set". Every audience and exclusion carries a remove_id for remove_entity (entity_type "campaign_criterion" or "ad_group_criterion"). Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
ad_group_id | string | Numeric ad group id. Pass this or campaign_id. |
campaign_id | string | Numeric campaign id. Pass this or ad_group_id. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
draft_audience_attachment Draft audience attachment
Draft attaching audiences to a campaign or ad group as observation, targeting or exclusion: returns a PREVIEW. Observation (the default) keeps the reach: the audiences adjust bids and show up in reports. Targeting narrows delivery to the audiences and needs a double confirmation. Exclusions keep the people out and leave the mode alone. The draft refuses combinations Google does not allow (custom segments on Search, combined segments outside Search, audiences at both campaign and ad group level) and lists that cannot serve; Performance Max is refused with a pointer to draft_asset_group_signals…
| Parameter | Type | Description |
|---|---|---|
ad_group_id | string | Numeric ad group id. Pass this or campaign_id. |
campaign_id | string | Numeric campaign id. Pass this or ad_group_id. |
combined_audience_ids | array | Combined segments (combined_audience_id from get_audience_lists); Search only. |
custom_audience_ids | array | Custom segments (custom_audience_id from get_audience_lists); Display and Video only. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
exclude | boolean | True to exclude the audiences instead of adding them. |
mode | string | "observation" (default) or "targeting". Ignored for exclusions. |
segment_ids | array | In-market or affinity segments (segment_id from search_audience_segments). |
user_list_ids | array | Remarketing or customer lists (user_list_id from get_audience_lists). |
get_shopping_product_performance Shopping product performance
Spend, clicks, conversions, CPA and ROAS per product across Shopping and Performance Max. Each product (item id) is summed over the campaigns it ran in. Returns the account totals, the top products by spend, and the products that spent without a conversion, with insights on what to do with them. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
campaign_id | string | Optional numeric campaign id to limit the report to. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
date_range_end | string | End date "YYYY-MM-DD" (inclusive). |
date_range_start | string | Start date "YYYY-MM-DD". Both dates empty means the last 30 days. |
limit | integer | Maximum number of products to return (1-200, default 50). |
get_asset_group_signals Asset group signals
Search themes and the audience signal of a Performance Max asset group, plus the account's audiences. Returns each search theme and audience signal with its signal_id and approval status, the enabled audiences of the account that can become the group's audience signal (audience_id, name), and insights when a group has no themes or no audience signal. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
asset_group_id * | string | Numeric asset group id (from get_pmax_performance). |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
draft_asset_group_signals Draft Performance Max signal changes
Draft adding search themes or an audience signal to a Performance Max asset group, or removing signals — PREVIEW. Signals are hints that steer Performance Max, not targeting. A group has at most one audience signal and up to 50 search themes; replacing the audience means removing the current one in the same draft. Themes already on the group are skipped. Nothing changes until confirm_and_apply applies the plan_id; a dry run has Google validate it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
asset_group_id * | string | Numeric asset group id (from get_pmax_performance). |
add_search_themes | array | Search themes to add, short phrases people search for (at most 80 characters each). |
audience_id | string | Audience to set as the group's audience signal (from get_asset_group_signals available_audiences). |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
remove_signal_ids | array | Signals to remove (signal_id from get_asset_group_signals). |
draft_pmax_product_exclusions Draft Performance Max product exclusions
Draft which products a retail Performance Max asset group excludes — returns a PREVIEW. Sets the full list of excluded values on one product dimension (item id, brand or a custom label); everything else stays included. Pass the complete list each time: values left out are included again, and an empty list includes all products. Works on asset groups that advertise all products or are already split on that one dimension; more complex product filters are refused and stay a job for Google Ads. The filter is rebuilt in one atomic request. Nothing changes until confirm_and_apply applies the plan…
| Parameter | Type | Description |
|---|---|---|
asset_group_id * | string | Numeric asset group id of a Performance Max campaign with a Merchant Center feed (from get_pmax_performance). |
exclude_values * | array | Every value to exclude, e.g. item ids from the feed, brand names or custom label values. [] removes all exclusions. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
dimension | string | "item_id" (default), "brand", or "custom_label_0" to "custom_label_4". |
draft_asset_group_assets Draft Performance Max asset changes
Draft adding and/or removing assets of a Performance Max asset group — returns a PREVIEW. Adds new text, image and YouTube assets and unlinks existing ones in one atomic request, so an asset is replaced without the group dropping below Google's minimums (3 headlines, 1 long headline, 2 descriptions, one of them at most 60 characters). Texts already in the group are skipped. Images are checked and sorted by aspect ratio; removed assets stay in the account's asset library. The preview lists the asset counts per type after the change. Nothing changes until confirm_and_apply applies the plan_id…
| Parameter | Type | Description |
|---|---|---|
asset_group_id * | string | Numeric asset group id (from get_pmax_performance or get_pmax_assets). |
business_name | string | Business name to add, at most 25 characters (one per group). |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
descriptions | array | Descriptions to add, at most 90 characters (up to 5). |
headlines | array | Headlines to add, at most 30 characters each (up to 15 in the group). |
images | array | Images to add, each {"url": "..."} or {"upload_id": "up_..."} with an optional "role": "marketing" (default; landscape 1.91:1, square 1:1 or portrait 4:5 by aspect ratio), "logo" (1:1) or "landscape_l… |
long_headlines | array | Long headlines to add, at most 90 characters (up to 5). |
remove_asset_ids | array | Asset ids to unlink from the group (from get_pmax_assets). |
youtube_video_ids | array | YouTube video ids to add (the 11 characters after "v=" in the URL), up to 5 per group. |
draft_shopping_campaign Draft a Shopping campaign
Draft a Standard Shopping campaign that advertises a Merchant Center feed — returns a PREVIEW. Creates the budget, the campaign (PAUSED), a product ad group with its Shopping ad, and one "All products" product group, in one atomic request. The Merchant Center account must be linked to the Google Ads account; the draft checks that. Shopping campaigns take no keywords and no language targeting (the feed's language applies). Nothing changes until confirm_and_apply applies the plan_id; a dry run has Google validate it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
campaign_name * | string | Name of the new campaign. |
daily_budget * | number | Daily budget in account currency, checked against the max_daily_budget safety cap. |
geo_target_ids * | array | Countries or regions as geo target constant ids, e.g. ["2276"] for Germany. Required. |
merchant_id * | string | Numeric Merchant Center id (from list_merchant_accounts) whose products the campaign advertises. |
product_bid * | number | CPC bid of the "All products" group in account currency. Google requires it even when the bid strategy sets bids. |
ad_group_name | string | Optional ad group name; defaults to "<campaign> - All products". |
bidding_strategy | string | MANUAL_CPC (default), TARGET_SPEND (Maximize clicks) or TARGET_ROAS. |
campaign_priority | string | LOW (default), MEDIUM or HIGH. With several Shopping campaigns on the same products, the higher priority serves first. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
feed_label | string | Optional feed label to limit the campaign to one feed of the Merchant Center account. |
max_cpc | number | Optional CPC ceiling for TARGET_SPEND, in account currency. |
search_partners_enabled | boolean | Also serve on Google search partners. |
target_roas | number | Target return on ad spend for TARGET_ROAS, e.g. 4.0 for 400%. |
draft_campaign Draft a campaign
Draft a full campaign structure — returns a PREVIEW, does NOT create anything. Creates: CampaignBudget + Campaign (PAUSED) + AdGroup + optional Keywords + geo targeting + language targeting + optional geo exclusions and ad schedule, all in one atomic request. Ads are NOT included — draft_responsive_search_ad adds them once the campaign exists. Only SEARCH campaigns can be created: Performance Max needs an asset group with all its assets in one request, and DISPLAY, SHOPPING and VIDEO need channel-specific settings and ad group types, so the draft refuses them. Returns a preview with a pl…
| Parameter | Type | Description |
|---|---|---|
bidding_strategy * | string | MAXIMIZE_CONVERSIONS | TARGET_CPA | TARGET_ROAS | MAXIMIZE_CONVERSION_VALUE | TARGET_SPEND | MANUAL_CPC. BROAD keywords require a Smart Bidding strategy (MAXIMIZE_CONVERSIONS, MAXIMIZE_CONVERSION_VALU… |
campaign_name * | string | Name of the new campaign. |
daily_budget * | number | Daily budget in the account's currency (not micros); must be greater than 0 and at most the config's max_daily_budget. |
geo_target_ids * | array | REQUIRED list of geo target constant IDs. Common: "2276" Germany, "2040" Austria, "2756" Switzerland, "2840" USA, "2826" UK, "2250" France. Full list: Google Ads API geo target constants. |
ad_group_name | string | Name of the initial ad group. Empty uses campaign_name. |
ad_schedule | Windows the campaign serves in: list of {day_of_week (MONDAY..SUNDAY), start_hour 0-23, end_hour 0-24, start_minute, end_minute (0, 15, 30 or 45)}, whole numbers, in the account time zone. No overlaps… | |
channel_type | string | SEARCH (default). DISPLAY, SHOPPING, VIDEO and PERFORMANCE_MAX are refused with the reason (see above). |
customer_id | string | Google Ads customer ID (digits, e.g. "1234567890"). Empty uses the configured default account. |
display_expansion_enabled | Alias for display_network_enabled; both must match when both are given. | |
display_network_enabled | Enable Search campaign display expansion (SEARCH campaigns only). Defaults to off. | |
final_url_suffix | Parameters appended to the landing page URL, e.g. "utm_medium=cpc". Omitted leaves it unset. | |
geo_exclude_ids | Geo target constant IDs to exclude (negative location criteria), e.g. a city inside a targeted state. May not overlap geo_target_ids. | |
keywords | Optional list of {"text": "keyword", "match_type": "EXACT|PHRASE|BROAD"} added to the initial ad group. | |
language_ids | Optional list of language constant IDs. Google retired manual language targeting for Search campaigns in late September 2026 (ads match on the language of the ads and landing page), so leave it out; w… | |
location_option | string | Who the geo targets reach. PRESENCE (people in or regularly in the locations), PRESENCE_OR_INTEREST (also people elsewhere who show interest in them) or SEARCH_INTEREST (people searching for them). Em… |
max_cpc | number | In the account's currency: the manual CPC bid for the initial ad group when bidding_strategy is MANUAL_CPC, or the Maximize Clicks CPC cap when bidding_strategy is TARGET_SPEND. Not allowed with other… |
negative_location_option | string | Who the location exclusions exclude. PRESENCE or PRESENCE_OR_INTEREST; empty leaves Google's default, PRESENCE_OR_INTEREST. PRESENCE excludes fewer people (only those physically there), so it widens r… |
search_partners_enabled | boolean | Include ads on Search partners (SEARCH campaigns only). |
target_cpa | number | Target cost per acquisition in the account's currency; required if bidding_strategy is TARGET_CPA, optional target for MAXIMIZE_CONVERSIONS. 0 means none. |
target_roas | number | Target return on ad spend as a ratio (e.g. 4.0 = 400%); required if bidding_strategy is TARGET_ROAS, optional target for MAXIMIZE_CONVERSION_VALUE. 0 means none. |
tracking_url_template | Campaign tracking template, e.g. "{lpurl}?utm_source=google&utm_campaign={campaignid}". Must contain {lpurl} or a variant ({lpurl+2}, {unescapedlpurl}, {escapedlpurl+3}, ...). Omitted leaves it unset. | |
url_custom_parameters | List of {"key": "grp", "value": "b2c"}, used as {_grp} in the template. Keys alphanumeric, max 8 characters; values up to 250. |
draft_ad_group Draft an ad group
Draft a new ad group within an existing campaign — returns a PREVIEW, does NOT create. Creates an ad group (ENABLED, type SEARCH_STANDARD) in the specified campaign, optionally with keywords in the same atomic operation. Only SEARCH campaigns are supported. Ads are not included, so the ad group cannot serve until one of its ads is created and enabled. Returns a preview with a plan_id plus warnings (BROAD keywords on a non-Smart-Bidding campaign, a duplicate ad group name, a CPC bid that Smart Bidding ignores); nothing changes until confirm_and_apply applies it. Google Ads API: https://dev…
| Parameter | Type | Description |
|---|---|---|
ad_group_name * | string | Name for the new ad group. |
campaign_id * | string | The campaign to add the ad group to (numeric ID as returned by get_campaign_performance). |
cpc_bid_micros | integer | Optional ad group CPC bid in micros (1,000,000 = one unit of the account's currency); only used by MANUAL_CPC campaigns. 0 means no ad-group bid; must not be negative. |
customer_id | string | Google Ads customer ID (digits, e.g. "1234567890"). Empty uses the configured default account. |
keywords | Optional list of {"text": "keyword", "match_type": "EXACT|PHRASE|BROAD"}. |
update_campaign Draft campaign changes
Draft an update to an existing campaign — returns a PREVIEW, does NOT apply. Only the parameters passed are changed; omitted ones stay as they are, and at least one change is required. Replacing geo targets keeps the campaign's negative geo exclusions (the preview lists them) unless geo_exclude_ids is passed too. A budget change shows the current amount; when the budget is shared with other campaigns, the preview names them and needs a double confirmation, because the new amount covers all of them. A bidding change on a campaign in a portfolio bid strategy takes it out of the portfolio, als…
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | The numeric ID of the campaign to update (required). |
ad_schedule | REPLACES the campaign's schedule windows (shape as in draft_campaign). Omitted leaves them unchanged; [] removes them, so the campaign serves at all hours. The preview shows the current ones (current_… | |
bidding_strategy | string | MAXIMIZE_CONVERSIONS | TARGET_CPA | TARGET_ROAS | MAXIMIZE_CONVERSION_VALUE | TARGET_SPEND | MANUAL_CPC. Empty leaves the strategy unchanged. |
customer_id | string | Google Ads customer ID (digits, e.g. "1234567890"). Empty uses the configured default account. |
daily_budget | number | New daily budget in the account's currency (not micros), at most the config's max_daily_budget. 0 leaves it unchanged. On a shared budget it is the amount for every campaign sharing it. |
display_expansion_enabled | Alias for display_network_enabled; both must match when both are given. | |
display_network_enabled | Enable Search campaign display expansion. Omitted leaves the setting unchanged. | |
final_url_suffix | Parameters appended to the landing page URL. Omitted leaves it unchanged; "" removes it. | |
geo_exclude_ids | REPLACES the campaign's negative location criteria. Omitted leaves them unchanged; [] removes them. May not overlap geo_target_ids. The preview shows the current ones (current_geo_exclude_ids); droppi… | |
geo_target_ids | REPLACES all positive geo targets; must not be empty when given. Common IDs: "2276" Germany, "2040" Austria, "2756" Switzerland, "2840" USA, "2826" UK. | |
keyword_match_type | string | Campaign-level broad match. BROAD turns it on and CONVERTS every existing phrase and exact keyword in the campaign to broad match (the originals show as Removed; turning it off does not restore them),… |
language_ids | REPLACES all campaign-level language targets; [] removes them. Not for Search campaigns: Google retired manual language targeting there in late September 2026 and documents that existing criteria can… | |
location_option | string | PRESENCE | PRESENCE_OR_INTEREST | SEARCH_INTEREST. Who the geo targets reach; the preview shows the current value (current_location_option) and warns when the new one is anything but PRESENCE. Empty l… |
max_cpc | number | Maximize Clicks CPC cap in the account's currency when bidding_strategy is TARGET_SPEND, or when the existing campaign already uses TARGET_SPEND. Increases are limited by the config's max_bid_increase… |
negative_location_option | string | PRESENCE | PRESENCE_OR_INTEREST. Who the location exclusions exclude; the preview shows the current value. PRESENCE excludes fewer people (only those physically there), so it widens reach and the prev… |
search_partners_enabled | Include ads on Search partners. Omitted leaves the setting unchanged. | |
target_cpa | number | Target CPA in the account's currency; required if bidding_strategy is TARGET_CPA. 0 leaves it unchanged. |
target_roas | number | Target ROAS as a ratio (e.g. 4.0 = 400%); required if bidding_strategy is TARGET_ROAS. 0 leaves it unchanged. |
tracking_url_template | Campaign tracking template; must contain {lpurl} or a variant. Omitted leaves it unchanged; "" removes it. | |
url_custom_parameters | List of {"key", "value"}; REPLACES the campaign's custom parameters. Keys alphanumeric, max 8 characters. Omitted leaves them unchanged; [] removes them. The preview shows each current value (current_… |
draft_responsive_search_ad Draft a responsive search ad
Draft a Responsive Search Ad — returns a PREVIEW, does NOT create the ad. The preview shows exactly what will be created; confirm_and_apply executes the returned plan_id. The ad is created PAUSED. final_url is checked for reachability first and an unreachable URL is refused. Several headlines may pin to the same position (Google rotates them there) as long as every position stays fillable, by an asset pinned to it or by a distinct unpinned one. Mixed plain-string and dict entries are allowed within a single call (e.g. brand pinned to HEADLINE_1, the rest unpinned). Warnings note fewer than…
| Parameter | Type | Description |
|---|---|---|
ad_group_id * | string | Numeric ID of the ad group that gets the ad. |
descriptions * | array | 2-4 descriptions, max 90 chars each. Each entry is a plain string (unpinned) or {"text": "...", "pinned_field": "DESCRIPTION_1"}; valid pins are DESCRIPTION_1, DESCRIPTION_2. Insertion tags count as t… |
final_url * | string | Landing page URL the ad links to; must be reachable. |
headlines * | array | 3-15 headlines, max 30 chars each. Each entry is a plain string (unpinned) or {"text": "...", "pinned_field": "HEADLINE_1"}; valid pins are HEADLINE_1, HEADLINE_2, HEADLINE_3. Keyword or location inse… |
customer_id | string | Google Ads customer ID (digits, e.g. "1234567890"). Empty uses the configured default account. |
path1 | string | Optional first display-URL path segment (Google allows up to 15 chars). |
path2 | string | Optional second display-URL path segment (Google allows up to 15 chars). |
update_responsive_search_ad Update a responsive search ad
Update mutable fields on an existing RSA in place — returns a PREVIEW. Edits an existing RSA without creating a new ad; the ad keeps its ID. Google Ads API v23 (``AdService.MutateAds``) permits in-place mutation of ``final_urls``, ``path1``, ``path2``, ``headlines``, and ``descriptions``. At least one mutation must be requested. IMPORTANT: replacing headlines or descriptions is NOT a free in-place edit. Even though the ad ID is preserved, swapping the creative text RESETS the ad's asset-combination learning and performance history and sends the ad BACK THROUGH Google policy review — Goog…
| Parameter | Type | Description |
|---|---|---|
ad_id * | string | Numeric ID of the existing responsive search ad. |
clear_path1 | boolean | True sets path1 to an empty string (overrides path1). |
clear_path2 | boolean | True sets path2 to an empty string (overrides path2). |
customer_id | string | Google Ads customer ID (digits, e.g. "1234567890"). Empty uses the configured default account. |
descriptions | LIST-REPLACE: None or [] means no change; a non-empty list fully swaps in. 2-4 descriptions, max 90 chars each, pins to DESCRIPTION_1 or DESCRIPTION_2 with every position fillable. Same entry format a… | |
final_url | string | Empty means no change; non-empty replaces the final URL and is checked for reachability. |
headlines | LIST-REPLACE: None or [] means no change; a non-empty list fully swaps in for the existing headlines. Google's RSA constraints apply: 3-15 headlines, max 30 chars each, every pin position fillable. Ea… | |
path1 | string | Empty means no change; non-empty sets the first display path (max 15 chars). |
path2 | string | Empty means no change; non-empty sets the second display path (max 15 chars). |
draft_keywords Draft keywords
Draft keyword additions — returns a PREVIEW, does NOT add keywords. Returns a preview with a plan_id, plus a warning when BROAD keywords go into a campaign without Smart Bidding; nothing changes until confirm_and_apply applies the returned plan_id. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
ad_group_id * | string | Numeric ID of the ad group that gets the keywords. |
keywords * | array | List of {"text": "keyword phrase", "match_type": "EXACT|PHRASE|BROAD"}; at least one is required. |
customer_id | string | Google Ads customer ID (digits, e.g. "1234567890"). Empty uses the configured default account. |
get_custom_conversion_goals Custom conversion goals
Read the custom conversion goals and the campaign goal configuration. Returns every custom goal with its name, status and conversion actions, plus — optionally for one campaign — the goal config the campaign uses (`goal_config_level` CUSTOMER or CAMPAIGN and the assigned custom goal). A custom conversion goal bundles conversion actions into a named set that a campaign can be pointed at. Ahead of drafting, this shows which goals exist, which actions they contain and what a campaign currently uses. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
campaign_id | string | Numeric campaign ID. When omitted, the campaign config is skipped. |
customer_id | string | Ads account ID. Defaults to the configured account. |
draft_custom_conversion_goal Draft a custom conversion goal
Create a custom conversion goal — returns a PREVIEW. The goal bundles conversion actions into a named set that campaigns can then be pointed at with draft_assign_custom_conversion_goal. Only the goal is created: conversion actions are read for validation and never modified. It is always created ENABLED — a goal created as REMOVED would be invisible to every other tool, so there is nothing to plan. If a goal with the same name and exactly the same conversion actions already exists, nothing is planned and the result says `already_exists` with that goal's ID (REMOVED goals do not count). A…
| Parameter | Type | Description |
|---|---|---|
conversion_action_ids * | array | Numeric conversion action IDs. Duplicates are collapsed; unknown or REMOVED actions are refused. |
name * | string | Name for the new goal, e.g. "OHL | Kauf + qualifizierte Anrufe". |
customer_id | string | Ads account ID. Defaults to the configured account. |
draft_update_custom_conversion_goal Draft changes to a custom conversion goal
Rename and/or re-scope an existing custom conversion goal — PREVIEW. conversion_action_ids REPLACES the whole action list, it does not append. An empty parameter stays unchanged. The preview shows the action list before and after. The returned plan_id is applied with confirm_and_apply. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
custom_conversion_goal_id * | string | Numeric goal ID from get_custom_conversion_goals. |
conversion_action_ids | array | The complete new action list. Empty leaves the actions unchanged. |
customer_id | string | Ads account ID. Defaults to the configured account. |
name | string | New name. Empty leaves the name unchanged. |
draft_assign_custom_conversion_goal Draft assigning a custom conversion goal
Point a campaign at a custom conversion goal — returns a PREVIEW. Sets goal_config_level=CAMPAIGN and the goal on that campaign's conversion goal config. Nothing else changes: conversion actions, bidding, budgets and the account-level goals stay as they are. A campaign must have at least one goal configured when it switches to campaign level — Google answers EMPTY_CONVERSION_GOALS otherwise. That is why this tool assigns a goal instead of clearing goals; draft_clear_custom_conversion_goal goes back to the account level. If the campaign already uses exactly this goal, nothing is planned…
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Numeric campaign ID to configure. |
custom_conversion_goal_id * | string | Numeric goal ID from get_custom_conversion_goals. |
customer_id | string | Ads account ID. Defaults to the configured account. |
draft_clear_custom_conversion_goal Draft clearing a custom conversion goal
Put a campaign back on the account-level goals — returns a PREVIEW. Sets goal_config_level=CUSTOMER and clears the custom goal: the rollback for draft_assign_custom_conversion_goal. The account-level goals themselves are not touched. The returned plan_id is applied with confirm_and_apply. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Numeric campaign ID to reset. |
customer_id | string | Ads account ID. Defaults to the configured account. |
add_negative_keywords Draft negative keywords
Draft negative keyword additions — returns a PREVIEW. Negative keywords prevent your ads from showing for irrelevant searches. They are added at campaign level. Returns a preview with a plan_id; nothing changes until confirm_and_apply applies it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Numeric ID of the campaign that gets the negatives. |
keywords * | array | Negative keyword texts; at least one is required. All share the same match_type. |
customer_id | string | Google Ads customer ID (digits, e.g. "1234567890"). Empty uses the configured default account. |
match_type | string | "EXACT" (default), "PHRASE", or "BROAD". |
add_negative_locations Draft negative locations
Draft negative geo location additions — returns a PREVIEW. Excludes cities/regions from a campaign while keeping broader positive targets such as State of Sao Paulo. Returns a preview with a plan_id; nothing changes until confirm_and_apply applies it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Numeric ID of the campaign to add the location exclusions to. |
geo_target_ids * | array | Numeric Google geo target constant IDs to exclude (e.g. "1001773"). Duplicates are collapsed; non-numeric IDs are rejected. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
propose_negative_keyword_list Draft a shared negative keyword list
Draft a shared negative keyword list and attach it to a campaign — returns a PREVIEW. Creates a reusable negative keyword list (shared set) that can later be applied to multiple campaigns, whereas add_negative_keywords adds negatives directly to one campaign. Returns a preview with a plan_id; nothing changes until confirm_and_apply applies it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Numeric ID of the campaign the new list is attached to. |
keywords * | array | Negative keyword texts to put in the list (at least one). |
list_name * | string | Name of the new shared negative keyword list. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
match_type | string | Match type applied to every keyword: "EXACT" (default), "PHRASE", or "BROAD" (case-insensitive). |
add_to_negative_keyword_list Draft additions to a negative keyword list
Append keywords to an EXISTING shared negative keyword list — returns a PREVIEW. Adds terms to a list that already exists (propose_negative_keyword_list creates a new list instead); get_negative_keyword_list_keywords shows the terms already in a list. Returns a preview with a plan_id; nothing changes until confirm_and_apply applies it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
keywords * | array | Keyword strings to append. Blank entries are dropped and duplicates in the input list are collapsed (case-insensitive). |
shared_set_id * | string | Numeric ID of the list (shared_set.id from get_negative_keyword_lists). |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
match_type | string | Match type applied to every keyword: "EXACT" (default), "PHRASE", or "BROAD" (case-insensitive). |
get_ai_max_settings AI Max settings
Read the AI Max controls of Search campaigns, per campaign and ad group. Returns for every campaign: id, name, status, advertising channel type, campaign.ai_max_setting.enable_ai_max, campaign.ai_max_setting.bundling_required (output only) and the full campaign.asset_automation_settings list. Each campaign also carries its non-REMOVED ad groups with ad_group.ai_max_ad_group_setting.disable_search_term_matching. Shows the current state ahead of draft_ai_max_settings, and what the account actually looks like after confirm_and_apply. Google Ads API: https://developers.google.com/google-ads/api…
| Parameter | Type | Description |
|---|---|---|
campaign_id | string | Numeric campaign ID. When omitted, every non-removed Search campaign in the account is listed. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
get_campaign_settings Campaign settings
Read every setting that decides how far a Search campaign reaches, in one call. Returns one flat record per campaign: status, bidding strategy and its target or CPC ceiling, daily budget and whether it is shared, the Google Search / search partner / Display network flags, the location option (positive_geo_target_type) and its negative counterpart, campaign-level broad match (keyword_match_type), the tracking template, final URL suffix and custom parameters, and the AI Max state get_ai_max_settings reports (enable_ai_max, asset automation per type). Money is in the account currency (`currency`…
| Parameter | Type | Description |
|---|---|---|
campaign_id | string | Numeric campaign ID of a Search campaign. When omitted, every non-removed Search campaign in the account is listed. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
draft_ai_max_settings Draft AI Max settings
Draft AI Max controls for a Search campaign — returns a PREVIEW. AI Max is the container that makes brand exclusions usable in Search: Google rejects a brand list on a plain Search campaign ("For search advertising channel, brand lists can only be applied to exclusive targeting, broad match campaigns for inclusive targeting or PMax generated campaigns"). Turning AI Max on while leaving its automations running is the trap, so both belong to the same plan. An automation the caller never mentioned is refused outright (the plan says which switch to pass); one named explicitly (disable_search_te…
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Numeric ID of the Search campaign to prepare. |
ad_group_ids | array | Explicit ad group IDs. Empty means every non-removed ad group of the campaign. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
disable_search_term_matching | Value for ad_group.ai_max_ad_group_setting.disable_search_term_matching on the selected ad groups. When omitted, they stay untouched. | |
enable_ai_max | Value for campaign.ai_max_setting.enable_ai_max. When omitted, it stays untouched. | |
final_url_expansion | string | OPTED_IN, OPTED_OUT or UNCHANGED (default) for FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION (the v25 field name for final URL expansion). |
include_paused_ad_groups | boolean | Default true — paused groups are set as well, so re-enabling one later cannot silently restore search term matching. REMOVED ad groups are never touched. |
text_asset_automation | string | OPTED_IN, OPTED_OUT or UNCHANGED (default) for TEXT_ASSET_AUTOMATION. |
draft_prepare_brand_exclusions Prepare a campaign for brand exclusions
Draft the safe standard state for brand exclusions — returns a PREVIEW. Exactly one combination, nothing else: enable_ai_max = true, disable_search_term_matching = true (all non-removed ad groups), TEXT_ASSET_AUTOMATION = OPTED_OUT and FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION = OPTED_OUT. No bidding, keyword, match type, ad, URL or budget change, and no brand list is attached — attaching stays a separate step with propose_brand_list / attach_brand_list_to_campaigns once this state is verified in the account. Returns a preview with a plan_id (purpose brand_exclusions); nothing changes u…
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Numeric ID of the Search campaign to prepare. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
include_paused_ad_groups | boolean | Default true — paused ad groups are set too, so re-enabling one later cannot silently restore search term matching. |
draft_demographic_targeting Draft demographic targeting
Draft demographic targeting (age/gender/parental status/income) — returns a PREVIEW. By default, Google Ads serves to all demographic segments. This tool adds criteria that EXCLUDE a segment (negative=True, default) or NARROW targeting to it (negative=False — uncommon). Takes exactly one of ad_group_id or campaign_id, and at least one of the four demographic lists must contain a value. Returns a preview with a plan_id, plus warnings when the change narrows targeting, excludes 'undetermined' users, or excludes nearly a whole dimension; nothing changes until confirm_and_apply applies it.…
| Parameter | Type | Description |
|---|---|---|
ad_group_id | string | Numeric ad group ID to add the criteria to. Mutually exclusive with campaign_id. |
age_ranges | array | Age buckets '18-24', '25-34', '35-44', '45-54', '55-64', '65+', 'undetermined' (or canonical names such as AGE_RANGE_18_24). Google's buckets are FIXED — 'Exclude 23-35' has no exact mapping and nee… |
campaign_id | string | Numeric campaign ID to add the criteria to. Mutually exclusive with ad_group_id; campaign-level criteria can only be exclusions (negative=True). |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
genders | array | 'female', 'male', 'undetermined'. |
income_ranges | array | PERCENTILES (not currency): 'top-10', '11-20', '21-30', '31-40', '41-50', 'lower-50', 'undetermined'. Available in select countries only (US, AU, JP, etc.). |
negative | boolean | True (default) excludes the listed segments; False adds positive criteria that narrow an ad group's targeting to them. |
parental_statuses | array | 'parent', 'not_a_parent', 'undetermined'. |
update_ad_group Draft ad group changes
Draft an ad group update for name and/or manual CPC bid — returns a PREVIEW. A bid change applies only when the campaign uses MANUAL_CPC: automated bidding strategies ignore ad-group CPC bids, so such a change is refused (for Maximize Clicks the campaign cpc_bid_ceiling, set through update_campaign, is the active constraint). Bid increases above the configured safety.max_bid_increase_pct are refused. Returns a preview with a plan_id; nothing changes until confirm_and_apply applies it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
ad_group_id * | string | Numeric ID of the ad group to update. |
ad_group_name | string | New ad group name. Empty leaves the name unchanged. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
max_cpc | number | New maximum CPC bid in the account's currency (an amount, not micros). 0 leaves the bid unchanged; negative values are rejected. At least one of ad_group_name or max_cpc is required. |
draft_callouts Draft callouts
Draft callout assets for an ad group, a campaign or the account — returns a PREVIEW. Creates callout assets and links them where the id points: ad_group_id links to that ad group, campaign_id to that campaign. Account-wide linking (every campaign without callouts of its own) needs scope="account" and no id. Returns a preview with a plan_id; nothing changes until confirm_and_apply applies it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
callouts * | array | Callout texts (at least one), each non-empty and at most 25 characters after trimming. |
ad_group_id | string | Numeric ID of the ad group to link them to, instead of a campaign. |
campaign_id | string | Numeric ID of the campaign to link the callouts to. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
end_date | string | Last day the callouts show, YYYY-MM-DD, so seasonal callouts switch off by themselves. Empty: no end. |
scope | string | Empty (follows the id), "campaign", "ad_group" or "account". |
start_date | string | First day the callouts show, YYYY-MM-DD. Empty: from now. |
draft_structured_snippets Draft structured snippets
Draft structured snippet assets for an ad group, a campaign or the account — returns a PREVIEW. Creates structured snippet assets and links them where the id points: ad_group_id links to that ad group, campaign_id to that campaign. Account-wide linking needs scope="account" and no id. Returns a preview with a plan_id; nothing changes until confirm_and_apply applies it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
snippets * | array | At least one dict with "header" and "values". header is one of Google's snippet headers, in the language of the values: Amenities, Brands, Courses, Degree programs, Destinations, Featured Hotels, Insu… |
ad_group_id | string | Numeric ID of the ad group to link them to, instead of a campaign. |
campaign_id | string | Numeric ID of the campaign to link the snippets to. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
scope | string | Empty (follows the id), "campaign", "ad_group" or "account". |
draft_call_asset Draft a call asset
Draft a call asset (a phone number shown with the ads) — returns a PREVIEW. Creates the call asset and links it where the id points: ad_group_id links to that ad group, campaign_id to that campaign. Account-wide linking needs scope="account" and no id. Google reviews the number before it serves. Returns a preview with a plan_id. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
country_code * | string | ISO 3166-1 alpha-2 country of the number ("DE", "US"). Required; it decides how a national number is read and must match the country code of an international one. |
phone_number * | string | The number, national ("030 1234567", "(916) 555-0142") or international ("+49 30 1234567"). Normalised to E.164. |
ad_group_id | string | Numeric ID of the ad group to link it to, instead of a campaign. |
ad_schedule | array | Optional windows when the number shows, each {day_of_week: MONDAY..SUNDAY, start_hour: 0-23, end_hour: 0-24, start_minute/end_minute: 0, 15, 30 or 45}. Hours are in the account time zone. |
call_conversion_action_id | string | Numeric ID of the conversion action that counts calls from this number. Empty keeps the account's call conversion setting. |
campaign_id | string | Numeric ID of the campaign to link the number to. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
scope | string | Empty (follows the id), "campaign", "ad_group" or "account". |
update_call_asset Draft a call asset edit
Draft changing a call asset in place — returns a PREVIEW. Only the fields passed change. The asset keeps its ID and its links, so the change shows everywhere it is linked. The preview shows the current values and pins them; an edit in Google Ads before the apply stops it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
asset_id * | string | Numeric ID of the CALL asset. |
ad_schedule | array | Windows that replace the number's whole schedule (same shape as draft_call_asset). Empty leaves the schedule as it is. |
call_conversion_action_id | string | Numeric ID of the conversion action that counts calls; sets USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION. |
call_conversion_reporting_state | string | DISABLED, USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION or USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION. |
clear_ad_schedule | boolean | True removes the schedule, so the number shows at all hours. |
country_code | string | ISO 3166-1 alpha-2 country of the new number. Required with phone_number, and only accepted together with it. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
phone_number | string | New number, national or international; needs country_code. |
add_ad_schedule Draft a campaign ad schedule
Draft ad schedule windows for a campaign — returns a PREVIEW. Adds the windows; existing ones stay. The preview lists the current windows (each with the remove_id that remove_entity takes as a campaign_criterion) and the account time zone the hours are in. Overlapping windows and more than six a day are refused. A campaign without any window serves at all hours, so its first windows restrict it to them: that preview needs a double confirmation. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Numeric ID of the campaign. |
schedule * | array | Windows to add, each {day_of_week: MONDAY..SUNDAY, start_hour: 0-23, end_hour: 0-24, start_minute/end_minute: 0, 15, 30 or 45 (default 0)}. Whole numbers only. Hours are in the account time zone. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
draft_promotion Draft a promotion asset
Draft a promotion asset ("20% off winter tyres") — returns a PREVIEW. Creates the promotion and links it where the id points: ad_group_id links to that ad group, campaign_id to that campaign. Account-wide linking needs scope="account" and no id. The final_url is checked for reachability. Returns a preview with a plan_id. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
final_url * | string | Landing page of the promotion. |
language_code * | string | Language of the promotion's text ("de", "en"). Required: Google shows the promotion in that language. |
promotion_target * | string | What the promotion is for, shown in the ad (at most 20 characters). |
ad_group_id | string | Numeric ID of the ad group to link it to, instead of a campaign. |
ad_schedule | array | Optional windows when the promotion shows, each {day_of_week: MONDAY..SUNDAY, start_hour: 0-23, end_hour: 0-24, start_minute/end_minute: 0, 15, 30 or 45}. Hours are in the account time zone. |
campaign_id | string | Numeric ID of the campaign to link the promotion to. |
currency_code | string | ISO 4217 code for money_off and orders_over_amount. Empty uses the account currency (shown in the preview). |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
discount_modifier | string | "UP_TO" shows "Up to 20% off"; empty for none. |
end_date | string | Last day the promotion shows, YYYY-MM-DD. |
money_off | number | Fixed discount, in the account currency unless currency_code says otherwise. Pass this or percent_off. |
occasion | string | Optional occasion such as BLACK_FRIDAY, CHRISTMAS or SUMMER_SALE. |
orders_over_amount | number | Optional minimum order value that unlocks the promotion. |
percent_off | number | Percentage discount, greater than 0 and at most 100 (15.5 for 15.5%). Pass this or money_off. |
promotion_code | string | Optional coupon code (at most 15 characters). Pass this or orders_over_amount, not both. |
redemption_end_date | string | Last day the offer can be redeemed, YYYY-MM-DD. |
redemption_start_date | string | First day the offer can be redeemed, YYYY-MM-DD. |
scope | string | Empty (follows the id), "campaign", "ad_group" or "account". |
start_date | string | First day the promotion shows, YYYY-MM-DD. |
update_promotion Draft a promotion edit
Draft changing a promotion asset in place — returns a PREVIEW. Only the fields passed change; everything else stays as it is. The asset keeps its ID and history, and the change shows everywhere it is linked. Passing money_off replaces a percent_off (and the other way round); passing promotion_code replaces an orders_over_amount (and the other way round). The preview shows old and new values; an edit in Google Ads before the apply stops it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
asset_id * | string | Numeric ID of the PROMOTION asset. |
ad_schedule | array | Windows that replace the promotion's whole schedule (same shape as draft_promotion). Empty leaves the schedule as it is. |
clear_fields | array | Optional fields to remove: promotion_code, orders_over_amount, occasion, discount_modifier, start_date, end_date, redemption_start_date, redemption_end_date, ad_schedule. |
currency_code | string | ISO 4217 code for the amounts. Empty keeps the promotion's currency (or uses the account currency). |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
discount_modifier | string | "UP_TO", or clear it with clear_fields. |
end_date | string | Last day the promotion shows, YYYY-MM-DD. |
final_url | string | New landing page; must be reachable. |
language_code | string | New language of the promotion's text. |
money_off | number | New fixed discount. |
occasion | string | New occasion such as BLACK_FRIDAY. |
orders_over_amount | number | New minimum order value. |
percent_off | number | New percentage discount, at most 100. |
promotion_code | string | New coupon code, at most 15 characters. |
promotion_target | string | New target text, at most 20 characters. |
redemption_end_date | string | Last day the offer can be redeemed, YYYY-MM-DD. |
redemption_start_date | string | First day the offer can be redeemed, YYYY-MM-DD. |
start_date | string | First day the promotion shows, YYYY-MM-DD. |
draft_price_asset Draft a price asset
Draft a price asset (the row of prices under an ad) — returns a PREVIEW. Creates a price asset with 3-8 offerings and links it where the id points: ad_group_id links to that ad group, campaign_id to that campaign. Account-wide linking needs scope="account" and no id. Every offering URL is checked for reachability. Google disapproves prices that differ from the landing page. Returns a preview with a plan_id. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
language_code * | string | Language of the offerings' text ("de", "en"). Required. |
offerings * | array | 3-8 dicts, each with header and description (at most 25 characters each, headers unique), price (greater than 0), final_url, and optional final_mobile_url and unit (PER_HOUR, PER_DAY, PER_WEEK, PER_MO… |
price_type * | string | SERVICES, BRANDS, EVENTS, LOCATIONS, NEIGHBORHOODS, PRODUCT_CATEGORIES, PRODUCT_TIERS, SERVICE_CATEGORIES or SERVICE_TIERS. |
ad_group_id | string | Numeric ID of the ad group to link them to, instead of a campaign. |
campaign_id | string | Numeric ID of the campaign to link the prices to. |
currency_code | string | ISO 4217 code of the prices. Empty uses the account currency (shown in the preview). |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
price_qualifier | string | FROM ("From 49 EUR"), UP_TO or AVERAGE; empty for none. |
scope | string | Empty (follows the id), "campaign", "ad_group" or "account". |
draft_business_name_asset Draft a business name asset
Draft a business name asset for a campaign or the account — returns a PREVIEW. Creates a text asset and links it as the business name shown with the ads. Google links business names at campaign or account level only. Account-wide needs scope="account" and no campaign_id. Returns a preview with a plan_id. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
business_name * | string | The name, at most 25 characters. |
campaign_id | string | Numeric ID of the campaign to link it to. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
scope | string | Empty (campaign, from campaign_id), "campaign" or "account". |
link_asset_to_customer Draft account-level asset links
Draft linking existing assets at account level — returns a PREVIEW. Account-level assets serve on every eligible campaign that has no asset of the same type linked at campaign or ad-group level. Each asset is checked to exist and to match its field type. Returns a preview with a plan_id. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
links * | array | Dicts with "asset_id" (numeric) and "field_type", one of BUSINESS_NAME, BUSINESS_LOGO, CALL, CALLOUT, HOTEL_CALLOUT, MOBILE_APP, PRICE, PROMOTION, SITELINK, STRUCTURED_SNIPPET. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
update_callout Draft a callout edit
Draft changing a callout asset in place — returns a PREVIEW. Only what is passed changes. The asset keeps its ID and performance history, and the change shows everywhere it is linked. The preview pins the current values; if someone edits the asset in Google Ads before the apply, nothing is sent. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
asset_id * | string | Numeric ID of the callout asset. |
callout_text | string | The new text, at most 25 characters. Empty keeps it. |
clear_fields | array | "start_date" and/or "end_date" to remove that date. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
end_date | string | Last day the callout shows, YYYY-MM-DD. Empty keeps it. |
start_date | string | First day the callout shows, YYYY-MM-DD. Empty keeps it. |
update_sitelink Draft a sitelink edit
Draft changing a sitelink asset in place — returns a PREVIEW. Only the fields passed change; empty fields stay as they are. The asset keeps its ID and performance history everywhere it is linked. A new final_url is checked for reachability. The preview pins the current values; an edit in Google Ads before the apply stops it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
asset_id * | string | Numeric ID of the sitelink asset. |
clear_fields | array | "start_date" and/or "end_date" to remove that date. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
description1 | string | New first description line, at most 35 characters. |
description2 | string | New second description line, at most 35 characters. Google needs both description lines or neither. |
end_date | string | Last day the sitelink shows, YYYY-MM-DD. Empty keeps it. |
final_url | string | New landing page URL; must be reachable. |
link_text | string | New link text, at most 25 characters. |
start_date | string | First day the sitelink shows, YYYY-MM-DD. Empty keeps it. |
update_structured_snippet Draft a structured snippet edit
Draft changing a structured snippet asset in place — returns a PREVIEW. Replaces the snippet's values (and header, if given). The asset keeps its ID and performance history everywhere it is linked. The preview pins the current header and values; an edit in Google Ads before the apply stops it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
asset_id * | string | Numeric ID of the structured snippet asset. |
values * | array | The complete new list of 3-10 values, each at most 25 characters. |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
header | string | New header (English or translated, as in draft_structured_snippets); empty keeps the current one as Google stores it, whatever its language. |
draft_image_assets Draft image assets
Draft image assets from local files, public image URLs or uploads — returns a PREVIEW. At least one image in total is required across image_paths, image_urls and upload_ids. Images must be PNG, JPEG or GIF and at most 5120 KB (Google's limit). URL images are downloaded now and checked; applying re-downloads them and refuses if the image changed since the preview. Returns a preview with a plan_id and a per-image summary; nothing changes until confirm_and_apply applies it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
campaign_id | string | Numeric ID of the campaign to attach the images to. Leave empty with scope="account". |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
field_types | One per image, in the order upload_ids, image_paths, image_urls: AD_IMAGE (campaign links; the default) or BUSINESS_LOGO (campaign or account links). Required with scope="account". | |
image_paths | array | Local PNG/JPEG/GIF file paths on the machine running AdLoop. Not available on a hosted server, where image_urls applies instead. |
image_urls | array | Public http(s) URLs of PNG/JPEG/GIF images. Links to private, local or internal addresses are refused. |
scope | string | Empty follows campaign_id. "account" links the images account-wide, which Google allows for BUSINESS_LOGO only and which is never inferred from an empty campaign_id. An account takes one business logo… |
upload_ids | array | Ids of images the user uploaded (up_..., from upload_images or list_uploads). The way to use an image that has no public URL. |
pause_entity Draft pausing an entity
Draft pausing a campaign, ad group, ad, or keyword — returns a PREVIEW. Pausing is reversible with enable_entity. Returns a preview with a plan_id (target status PAUSED); nothing changes until confirm_and_apply applies it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | ID in the format for its type. campaign: campaign ID (e.g. "12345678"); ad_group: ad group ID (e.g. "12345678"); ad: "adGroupId~adId" (e.g. "12345678~987654"; a bare ad ID is resolved to its ad group… |
entity_type * | string | "campaign", "ad_group", "ad", "keyword" or "asset_group" (Performance Max). |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
enable_entity Draft enabling an entity
Draft enabling a paused campaign, ad group, ad, or keyword — returns a PREVIEW. Returns a preview with a plan_id (target status ENABLED); nothing changes until confirm_and_apply applies it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | ID in the format for its type. campaign: campaign ID (e.g. "12345678"); ad_group: ad group ID (e.g. "12345678"); ad: "adGroupId~adId" (e.g. "12345678~987654"; a bare ad ID is resolved to its ad group… |
entity_type * | string | "campaign", "ad_group", "ad", "keyword" or "asset_group" (Performance Max). |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
remove_entity Draft removing an entity
Draft REMOVING an entity — returns a PREVIEW. This is IRREVERSIBLE. Removed entities cannot be re-enabled; pause_entity is the reversible way to temporarily disable something. Returns a preview with a plan_id and requires_double_confirm=true; nothing changes until confirm_and_apply applies it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | The resource ID. campaign / ad_group / asset_group / asset: simple numeric ID. ad: "adGroupId~adId" (a bare ad ID is resolved to its ad group). keyword and ad_group_criterion: "adGroupId~criterionId".… |
entity_type * | string | "campaign", "ad_group", "ad", "keyword", "asset_group", "negative_keyword", "shared_criterion", "campaign_asset", "ad_group_asset", "asset", "customer_asset", "ad_group_criterion", or "campaign_criter… |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
draft_sitelinks Draft sitelinks
Draft sitelink extensions for a campaign or the account — returns a PREVIEW. Sitelinks appear as additional links below your ad, increasing click area and directing users to specific pages. Every final_url is fetched and an unreachable URL (HTTP 4xx/5xx) blocks the draft. Google recommends at least 4 sitelinks per campaign; fewer than 2 may not show. Returns a preview with a plan_id and any warnings; nothing changes until confirm_and_apply applies it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
sitelinks * | array | List of dicts (at least one), each with link_text (str, required, max 25 chars) — the clickable text shown; final_url (str, required) — destination URL for this sitelink; description1 (str, option… |
campaign_id | string | Numeric ID of the campaign to attach sitelinks to. Leave empty with scope="account". |
customer_id | string | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
scope | string | Empty follows campaign_id. "account" links the sitelinks account-wide; they serve on every eligible campaign without sitelinks of its own. It is never inferred from an empty campaign_id. |
confirm_and_apply Apply a previewed change
Execute a previously previewed change. IMPORTANT: Defaults to dry_run=True (validate only). Only an explicit dry_run=false applies the change to the ad account (Google Ads or Reddit Ads — the plan knows which platform it targets). Forced dry runs: when real changes are switched off (live changes off for the workspace in AdLoop Cloud, or safety.require_dry_run in a self-hosted config), dry_run=false is IGNORED and the result is still DRY_RUN_SUCCESS, with 'dry_run_forced_by' and 'remediation' fields. 'remediation' says how the user switches that setting; until it is changed, repeated calls…
| Parameter | Type | Description |
|---|---|---|
plan_id * | string | The plan_id returned by a prior draft_*, update_*, add_*, pause/enable/remove or other preview tool call. An unknown or expired plan_id returns an error. |
dry_run | boolean | True (default) validates without changing anything; false applies the change for real. |
upload_images Upload images
Let the user upload images (PNG, JPEG, GIF up to 5 MB) for ad assets. For images without a public URL, such as a file on the user's computer or an image attached in the chat. An attached image cannot reach a tool, so the user drops the same file on the card. Apps that show AdLoop's cards display an upload card where the user drops the files; the card then posts the upload ids into the chat. On AdLoop Cloud in other apps the result carries an upload link for the user (or a coding agent, with curl). Uploads expire after a day. The ids go into upload_ids of draft_image_assets, or as "upload:<id>…
upload_conversion_csv Upload a conversion CSV
Let the user upload a conversion CSV for an offline conversion upload. For the CSV behind draft_upload_call_conversions or draft_upload_enhanced_conversions_for_leads when the file is not on the machine running AdLoop, as on AdLoop Cloud. Apps that show AdLoop's cards display an upload card where the user drops the .csv file; the card then posts the upload id into the chat. Other apps on AdLoop Cloud get an upload link for the user (or a coding agent, with curl). The file holds personal data (phone numbers, emails), so it is kept for two hours at most and deleted as soon as a draft has read i…
list_uploads List uploads
List the files the user uploaded to AdLoop that have not expired. Returns each upload's upload_id, kind (image or csv), name, type, size, dimensions (images) or lines (CSVs) and hours until it expires: images last a day, conversion CSVs two hours or until a draft reads them. The ids of files the user sent through an upload link show up here. Google Ads API: https://developers.google.com/google-ads/api/docs/start, Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Reddit Ads API: https://ads-api.reddit.com/docs/v3/
draft_key_event Draft an Analytics key event
Draft marking a GA4 event as a key event (conversion), or changing an existing one — returns a PREVIEW. The fix for "the event fires but isn't tracked as a conversion": attribution_check / validate_tracking diagnose it, this closes the loop. When the event already is a key event, the plan changes its counting method or default value instead and the preview shows before and after; nothing to change returns NO_CHANGE. Applies to future data only. Returns a preview with a plan_id and warnings; nothing changes until confirm_and_apply applies it. Google Analytics Data API: https://developers.go…
| Parameter | Type | Description |
|---|---|---|
event_name * | string | Name of the GA4 event to mark as a key event, exactly as it fires (e.g. "sign_up", "purchase"). Required. |
counting_method | string | ONCE_PER_EVENT (counts every occurrence, e.g. purchases) or ONCE_PER_SESSION (counts once per session, e.g. sign-ups). Defaults to ONCE_PER_EVENT. |
currency_code | string | Three-letter currency of default_value, e.g. "EUR". |
default_value | Value GA4 gives each key event when the event sends no value parameter, e.g. 20 for a lead. Needs currency_code. | |
property_id | string | Numeric GA4 property ID, with or without the "properties/" prefix. If empty, uses the default from config. |
draft_delete_key_event Draft removing an Analytics key event
Draft removing a GA4 key event so the event no longer counts as a conversion, returning a PREVIEW. The event itself keeps firing and stays in event reports; only its key-event status goes, for future data (key events already recorded are not reclassified). The draft resolves the event name against the property's key events (keyEvents.list), so the preview names the exact key event, its counting method and create time; an unknown name returns the existing key events, and one GA4 marks as not deletable is refused. Returns a preview with a plan_id and warnings; nothing changes until confirm_and_…
| Parameter | Type | Description |
|---|---|---|
event_name * | string | Event name of the key event to remove, exactly as listed by list_key_events (e.g. "sign_up"). Required. |
property_id | string | Numeric GA4 property ID, with or without the "properties/" prefix. If empty, uses the default from config. |
draft_ga4_annotation Draft an Analytics annotation
Draft creating, changing or deleting a GA4 annotation (a note on a date or date range in GA4's charts), returning a PREVIEW. Use it to mark what explains a change in the data: a site relaunch, a price change, a campaign start, a tracking fix. Create needs title and date; update and delete need the annotation's ID from list_ga4_annotations, and an update changes only the fields passed (the preview shows before and after). Annotations Google created itself cannot be changed. Nothing changes until confirm_and_apply applies it; the dry run re-reads the annotation and refuses if it was changed in…
| Parameter | Type | Description |
|---|---|---|
action | string | "create" (default), "update" or "delete". |
annotation | string | ID or resource name of the annotation to update or delete (list_ga4_annotations). |
color | string | BLUE (default on create), GREEN, RED, PURPLE, BROWN or CYAN. |
date | string | The day as YYYY-MM-DD, or the first day of a range together with end_date. Required for create. |
description | Up to 150 characters. On update, "" clears it. | |
end_date | string | Last day of a range (YYYY-MM-DD); leave empty for one day. |
property_id | string | Numeric GA4 property ID, with or without the "properties/" prefix. If empty, uses the default from config. |
title | string | Up to 60 characters. Required for create. |
draft_ga4_audience Draft an Analytics audience
Draft creating, renaming or archiving a GA4 audience — returns a PREVIEW. An audience is the users who sent certain events, viewed certain pages, or did a sequence of both in order. A linked Google Ads account receives it as a remarketing list within one to two days, to attach to campaigns with draft_audience_attachment: this is how to build a list of site visitors, of buyers, of visitors who did not buy, or of people who saw the pricing page without signing up. GA4 fixes the conditions and the membership duration at creation; afterwards only the name and description can change, and archivi…
| Parameter | Type | Description |
|---|---|---|
action | string | "create" (default), "update" (name and description only) or "archive". |
audience | string | For update and archive: the audience's display name or resource name from list_ga4_audiences. |
description | Optional for create (one is written from the events); the new description for update. | |
display_name | string | Name of the audience; required for create, the new name for update. |
exclude_events | array | Create only. Users who sent any of these are kept out, e.g. include ["session_start"] and exclude ["purchase"] for visitors who did not buy. |
exclude_pages | array | Create only. Users who viewed such a page are kept out, e.g. ["/thank-you"]. |
exclude_permanently | boolean | Create only. True keeps users out for good once they sent an excluded event; False (default) only while they keep meeting the exclusion within the membership window. |
include_events | array | Create only. Users who sent ANY of these events join, e.g. ["session_start"] for every visitor, ["purchase"] for buyers, ["sign_up", "generate_lead"] for leads. Together with include_pages it is still… |
include_pages | array | Create only. Users who viewed a page whose full URL contains ANY of these texts join, e.g. ["/pricing"] (also matches /pricing/enterprise and /en/pricing). Not case sensitive. |
membership_duration_days | integer | Create only. Days a user stays after last meeting the conditions, 1 to 540 (default 30). |
property_id | string | GA4 property as "properties/123456789" or the bare numeric ID. If empty, uses the default from config. |
sequence | Create only, instead of include_events / include_pages. 2 to 10 steps the user must do in this order. Each is an event name ("begin_checkout") or an object: {"event": "..."} or {"page": "/pricing"}, o… |
draft_ga4_custom_dimension Draft an Analytics custom dimension
Draft registering, changing or archiving a GA4 custom dimension, returning a PREVIEW. Registering makes an event parameter (EVENT scope), a user property (USER) or an ecommerce item parameter (ITEM) reportable as a dimension. Before anything reaches Google the draft refuses a parameter that is already registered, a taken display name and a full property (see list_ga4_custom_definitions), and the preview warns that GA4 fills the dimension only from now on and that parameter_name and scope cannot change later. Update changes display_name, description or (USER scope) disallow_ads_personalization…
| Parameter | Type | Description |
|---|---|---|
action | string | "create" (default), "update" or "archive". |
custom_dimension | string | Resource name, instead of parameter_name, for update or archive. |
description | Up to 150 characters. On update, "" clears it. | |
disallow_ads_personalization | USER scope only: keep this dimension out of ads personalization. | |
display_name | string | Name shown in GA4; defaults to parameter_name on create. |
parameter_name | string | The event parameter or user property name exactly as sent, e.g. "plan_type". Required for create; identifies the dimension for update and archive. |
property_id | string | Numeric GA4 property ID, with or without the "properties/" prefix. If empty, uses the default from config. |
scope | string | EVENT (default), USER or ITEM. |
draft_ga4_custom_metric Draft an Analytics custom metric
Draft registering, changing or archiving a GA4 custom metric, returning a PREVIEW. Registering makes a numeric event parameter reportable as a metric. The draft refuses a parameter that is already registered, a taken display name and a full property (see list_ga4_custom_definitions), and the preview warns that GA4 fills the metric only from now on. Update changes display_name, description, measurement_unit or restricted_metric_type; archive removes it from reports, cannot be undone and needs a double confirmation. Nothing changes until confirm_and_apply applies it. GA4 Admin API (customMetric…
| Parameter | Type | Description |
|---|---|---|
action | string | "create" (default), "update" or "archive". |
custom_metric | string | Resource name, instead of parameter_name, for update or archive. |
description | Up to 150 characters. On update, "" clears it. | |
display_name | string | Name shown in GA4; defaults to parameter_name on create. |
measurement_unit | string | STANDARD (default on create), CURRENCY, FEET, METERS, KILOMETERS, MILES, MILLISECONDS, SECONDS, MINUTES or HOURS. |
parameter_name | string | The numeric event parameter exactly as sent, e.g. "discount_amount". Required for create; identifies the metric for update and archive. |
property_id | string | Numeric GA4 property ID, with or without the "properties/" prefix. If empty, uses the default from config. |
restricted_metric_type | For CURRENCY metrics, required: ["COST_DATA"] or ["REVENUE_DATA"] (or both). |
draft_ga4_data_retention Draft an Analytics data retention change
Draft a change to how long GA4 keeps event- and user-level data, returning a PREVIEW. GA4 defaults to 2 months, which cuts explorations, funnels and other user-level reports short; standard properties allow 14 months, GA4 360 up to 50. Standard reports are aggregated and not affected. Lengthening applies from now on (data already deleted does not come back); shortening deletes older data for good and needs a double confirmation. The preview shows before and after and reminds the user that a privacy policy naming a retention period must match. NO_CHANGE when the settings already match. Nothing…
| Parameter | Type | Description |
|---|---|---|
event_data_retention | string | Months to keep event-level data: 2, 14, 26, 38 or 50 (or TWO_MONTHS, FOURTEEN_MONTHS, ...). Empty leaves it. |
property_id | string | Numeric GA4 property ID, with or without the "properties/" prefix. If empty, uses the default from config. |
reset_user_data_on_new_activity | True restarts a user's retention period with each new event from that user. Empty leaves it. | |
user_data_retention | string | Months to keep user-level data, same values. Empty leaves it. |
draft_create_conversion_action Draft a conversion action
Draft a new Google Ads ConversionAction — returns a PREVIEW. Returns a preview with a plan_id (plus warnings where relevant); nothing changes until confirm_and_apply applies it. SMART_CAMPAIGN_* and GOOGLE_HOSTED types are auto-managed by Google and rejected with MUTATE_NOT_ALLOWED. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
name * | string | Conversion action name as it appears in Google Ads. Required. |
type_ * | string | ConversionActionType enum value, e.g. AD_CALL, WEBSITE_CALL, WEBPAGE, WEBPAGE_CODELESS, GOOGLE_ANALYTICS_4_CUSTOM, GOOGLE_ANALYTICS_4_PURCHASE, UPLOAD_CALLS, UPLOAD_CLICKS. |
always_use_default_value | boolean | True ignores transaction values from the tag/import and always uses default_value; False uses default_value only as a fallback when no value is supplied. |
attribution_model | string | AttributionModel enum value, e.g. GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN. Empty leaves Google's default. |
category | string | ConversionActionCategory enum value, e.g. PHONE_CALL_LEAD, SUBMIT_LEAD_FORM, PURCHASE, ... (default DEFAULT). |
click_through_window_days | integer | Click-through attribution window in days, 1-90. 0 leaves Google's default. |
counting_type | string | ONE_PER_CLICK (default; one conversion per click, typical for lead gen) or MANY_PER_CLICK (every conversion counts, typical for ecommerce). |
currency_code | string | 3-letter ISO 4217 currency code for default_value (default USD). |
customer_id | string | Google Ads customer ID (digits, dashes allowed). Defaults to the configured account. |
default_value | number | Value attributed to each conversion, in currency_code units (not micros). Must be >= 0. A positive default_value with always_use_default_value=False is a legal "fallback" config: the preview warns but… |
include_in_conversions_metric | boolean | IMMUTABLE — Google derives it from primary_for_goal and the category's goal, so this value is not sent. |
phone_call_duration_seconds | integer | Minimum call length in seconds for a call to count; only meaningful for call conversions (PHONE_CALL_LEAD category). 0 leaves Google's default. |
primary_for_goal | boolean | True (default) makes it a Primary action that Smart Bidding optimizes toward; False makes it Secondary (recorded only). |
view_through_window_days | integer | View-through attribution window in days, 1-30. 0 leaves Google's default. |
draft_update_conversion_action Draft conversion action changes
Draft a partial UPDATE of an existing ConversionAction — returns PREVIEW. Only parameters passed non-empty/non-default are sent to the API. Covers renaming, demoting a Primary to Secondary, changing value, adjusting the call-duration threshold, changing attribution, or moving the action to another goal with category. SMART_CAMPAIGN_* and GOOGLE_HOSTED types reject mutations with MUTATE_NOT_ALLOWED at apply time. Returns a preview with a plan_id (plus warnings where relevant); nothing changes until confirm_and_apply applies it. Google Ads API: https://developers.google.com/google-ads/api/do…
| Parameter | Type | Description |
|---|---|---|
conversion_action_id * | string | Numeric ConversionAction ID. It comes from: SELECT conversion_action.id, conversion_action.name FROM conversion_action. |
always_use_default_value | True always uses default_value; False uses it only as a fallback when the tag/import supplies no value (the preview warns when combined with a positive default_value). Omit to leave unchanged. | |
attribution_model | string | AttributionModel enum value, e.g. GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN. Empty leaves it unchanged. |
category | string | ConversionActionCategory to move the action to, e.g. PHONE_CALL_LEAD; that decides which goal it belongs to. The preview pins the current one (current_category); if the category is changed in Google A… |
click_through_window_days | integer | Click-through attribution window in days, 1-90. 0 leaves it unchanged. |
counting_type | string | ONE_PER_CLICK or MANY_PER_CLICK. Empty leaves it unchanged. |
currency_code | string | New 3-letter ISO 4217 currency code. Empty leaves it unchanged. |
customer_id | string | Google Ads customer ID (digits, dashes allowed). Defaults to the configured account. |
default_value | number | New default value in the action's currency (not micros), >= 0. 0 leaves it unchanged. |
include_in_conversions_metric | Refused when passed: Google answers IMMUTABLE_FIELD at apply, and a dry run does not catch it. It derives the value from primary_for_goal and whether the goal of the action's category is biddable; use… | |
name | string | New name. Empty keeps the current name. |
phone_call_duration_seconds | integer | Minimum call length in seconds for a call to count. 0 leaves it unchanged. |
primary_for_goal | True makes it Primary (Smart Bidding optimizes toward it); False demotes it to Secondary. Omit to leave unchanged. | |
view_through_window_days | integer | View-through attribution window in days, 1-30. 0 leaves it unchanged. |
draft_remove_conversion_action Draft removing a conversion action
Draft a REMOVAL of a ConversionAction — returns a PREVIEW. Removal stops counting and drops the action from goal lists; historical data is preserved. AdLoop cannot undo it: a removed action can only be re-enabled by hand in the Google Ads interface. SMART_CAMPAIGN_* and GOOGLE_HOSTED types reject removal with MUTATE_NOT_ALLOWED. Returns a preview with a plan_id; nothing changes until confirm_and_apply applies it. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
conversion_action_id * | string | Numeric ConversionAction ID, e.g. from SELECT conversion_action.id, conversion_action.name FROM conversion_action. |
customer_id | string | Google Ads customer ID (digits, dashes allowed). Defaults to the configured account. |
draft_upload_call_conversions Draft call conversion upload
Draft an offline CALL-conversion upload from a CSV — returns a PREVIEW. Uploads call conversions via ConversionUploadService.UploadCallConversions, matching the call against the ad click by the caller's phone number. The CSV must have columns: Caller's Phone Number, Call Start Time, Conversion Name, Conversion Time, Conversion Value, Conversion Currency. The Conversion Name must match an existing UPLOAD_CALLS-type conversion action — verified against the account while drafting, so a typo fails here rather than after the upload. Optional `Ad User Data` and `Ad Personalization` columns carr…
| Parameter | Type | Description |
|---|---|---|
consent | Consent signals for GDPR/EEA, as an object with "ad_user_data" and/or "ad_personalization", each "GRANTED", "DENIED" or "UNSPECIFIED". None sends UNSPECIFIED. A row whose own "Ad User Data" / "Ad Pers… | |
csv_path | string | Path of the CSV file holding the upload rows, read on the machine that runs AdLoop. Refused on the hosted server; use upload_id there. |
customer_id | string | Google Ads customer ID (digits, e.g. "1234567890"). Empty uses the configured default account. |
default_region | string | ISO 3166-1 alpha-2 country assumed for phone numbers that carry no country code, e.g. "DE" for "0151 12345678". Empty leaves such numbers unusable and the row is skipped. |
upload_id | string | Id of a CSV uploaded with upload_conversion_csv (up_...), instead of csv_path. |
draft_upload_enhanced_conversions_for_leads Draft enhanced conversions upload
Draft an Enhanced Conversions for LEADS upload from a CSV — PREVIEW. Uploads lead conversions via ConversionUploadService.UploadClickConversions with user_identifiers, matching hashed customer PII back to the Google users who clicked the ads. The CSV holds RAW PII in columns: Email, Phone Number, First Name, Last Name (plus Conversion Name, Conversion Time, Conversion Value, Conversion Currency; optional Order ID dedup key, and optional `Ad User Data` / `Ad Personalization` consent columns). PII is normalized and SHA-256-hashed AT PREVIEW TIME — only the hashes are stored in the plan. Ra…
| Parameter | Type | Description |
|---|---|---|
consent | Consent signals for GDPR/EEA, as an object with "ad_user_data" and/or "ad_personalization", each "GRANTED", "DENIED" or "UNSPECIFIED". None sends UNSPECIFIED. A row whose own "Ad User Data" / "Ad Pers… | |
csv_path | string | Path of the CSV file holding the upload rows, read on the machine that runs AdLoop. Refused on the hosted server; use upload_id there. |
customer_id | string | Google Ads customer ID (digits, e.g. "1234567890"). Empty uses the configured default account. |
default_region | string | ISO 3166-1 alpha-2 country assumed for phone numbers that carry no country code, e.g. "DE" for "0151 12345678". Empty leaves such numbers unusable; the row still uploads when its email or its complete… |
upload_id | string | Id of a CSV uploaded with upload_conversion_csv (up_...), instead of csv_path. |
validate_tracking Validate tracking
Compare tracking events found in the codebase against actual GA4 data. Takes the event names found in the codebase's gtag('event', ...) or dataLayer.push calls and checks which ones actually fire in GA4. Returns matched events with their GA4 counts, events missing from GA4, unexpected GA4 events, auto-collected events (page_view, session_start, etc.), insights on likely causes, and the date range. Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
expected_events * | array | Event names found in the codebase, e.g. ["sign_up", "purchase"]. |
date_range_end | string | End date, same formats as date_range_start. |
date_range_start | string | Start date: "today", "yesterday", "NdaysAgo" (e.g. "28daysAgo"), or "YYYY-MM-DD". |
property_id | string | GA4 property as "properties/123456789" (see get_account_summaries). If empty, uses the default from config. |
generate_tracking_code Generate tracking code
Generate a GA4 event tracking JavaScript snippet. Produces ready-to-paste gtag code for the specified event. Includes recommended parameters for well-known GA4 events (sign_up, purchase, etc.). Optionally checks GA4 to warn if the event already fires. Returns the javascript snippet, already_exists / existing_count from GA4, and notes (duplicates, marking it as a key event, GDPR consent). Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
event_name * | string | GA4 event name for the snippet, e.g. "sign_up" or "generate_lead". |
check_existing | boolean | When true (default), looks up the last 28 days of GA4 events to report whether this event already fires. |
event_params | Event parameters as a name-to-value object, e.g. {"method": "email"}. Missing recommended parameters for well-known events are added as typed placeholders. | |
property_id | string | GA4 property as "properties/123456789" used for the existing-event check. If empty, uses the default from config. |
trigger | string | "form_submit", "button_click", or "page_load" — wraps the gtag call in an appropriate event listener (with a YOUR_SELECTOR placeholder for forms and buttons). Empty = bare gtag call. |
estimate_budget Budget forecast
Forecast clicks, cost, and conversions for a set of keywords. Uses Google Ads Keyword Planner to estimate campaign performance without creating anything. Essential for budget planning before launching campaigns. Per-keyword max_cpc values are collapsed to a campaign-level manual CPC cap (the highest one) — the Ads API forecast takes no per-keyword bids. Returns estimated clicks, cost, avg CPC, conversions and avg CPA for the forecast period, daily estimates, and insights. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
keywords * | array | List of {"text": "keyword", "match_type": "EXACT|PHRASE|BROAD", "max_cpc": 1.50}. match_type defaults to BROAD; max_cpc is optional (defaults to 1.00 in account currency, not micros). At least one key… |
customer_id | string | Google Ads customer ID (digits, dashes allowed). Defaults to the configured account. |
daily_budget | number | Daily budget in account currency. If provided, insights will show what % of traffic the budget captures. 0 = no budget comparison. |
forecast_days | integer | Forecast horizon in days, starting tomorrow (default 30). |
geo_target_id | string | Geo target constant ID (2276=Germany, 2840=USA, 2826=UK, 2250=France). Defaults to 2276. |
language_id | string | Language constant ID (1000=English, 1001=German, 1002=French, 1003=Spanish). Defaults to 1000. |
discover_keywords Keyword ideas
Discover new keyword ideas using Google Ads Keyword Planner. Mirrors the "Discover new keywords" UI in Keyword Planner: start with keywords (seed_keywords), start with a website (url), or both together for more targeted ideas. At least one of seed_keywords or url is required. Returns keyword ideas sorted by avg monthly search volume, with competition level (LOW/MEDIUM/HIGH) and top-of-page bid range, plus the seeds used and insights. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
customer_id | string | Google Ads customer ID (digits, dashes allowed). Defaults to the configured account. |
geo_target_id | string | Geo target constant ID (2276=Germany, 2840=USA, 2826=UK). Defaults to 2276. |
include_monthly_volumes | boolean | true adds per-month search history (last 24 months, top-20 ideas) plus a seasonality insight — relevant to questions about demand trends, seasonality, or "when should I ramp budget". |
language_id | string | Language constant ID (1000=English, 1001=German, 1002=French). Defaults to 1000. |
page_size | integer | Max keyword ideas to return (default 50, clamped to 1-1000). |
seed_keywords | array | Seed terms, e.g. ["running shoes", "trail running"]. |
url | string | A landing page or site URL to extract ideas from, e.g. "https://example.com/products". |
suggest_brands Suggest brands
Resolve a brand name to the brands Google recognizes for it. Mirrors the brand picker in the Google Ads UI (BrandSuggestionService.SuggestBrands): takes a free-text name such as "EscapeGame München" or "NoWayOut" and returns the matching brands with their ID, display name, state, and associated URLs. The returned brand ID is the Commercial Knowledge Graph ID. Brand criteria — brand lists, brand exclusions — target that ID, not a display name, so a name is resolved here before it can go into a brand list. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
brand_prefix * | string | The brand name to look up, free text (e.g. "NoWayOut"). |
customer_id | string | Ads account ID. Defaults to the configured account. |
selected_brand_ids | array | Commercial Knowledge Graph MIDs already picked, handed back so Google keeps them in the suggestion set while the prefix narrows. Optional. |
check_brand_names Check brand names
Check a list of brand names against Google's brand knowledge graph. One SuggestBrands call per name, for the case where a shortlist has to be triaged instead of a single name resolved: which of these brands does Google know at all, and what is the ID of each? Returns checked / matched / no_match counts and one result per name with status "matched" (with a best-match brand plus all candidates) or "no_match" (empty candidate list — a normal answer, not an error). exact_match marks a candidate whose name matches the query apart from case and punctuation; anything else is a Google suggestion,…
| Parameter | Type | Description |
|---|---|---|
brand_names * | array | The names to triage, at most 25 per call — the API resolves one prefix per request, so longer lists take several calls. |
customer_id | string | Ads account ID. Defaults to the configured account. |
get_brand_lists List brand lists
List all brand lists (SharedSets of type BRANDS) in the account. Returns each list's ID, name, status, and member count, plus the total — the basis for reusing an existing list with add_to_brand_list instead of duplicating it with propose_brand_list. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
customer_id | string | Ads account ID. Defaults to the configured account. |
get_brand_list_brands Brands in a brand list
List the brands inside a brand list. Returns the brands and their total. Each entry carries brand.entity_id (the Commercial KG MID that suggest_brands returns as id), the display name, primary URL, status and a criterion_id — the latter is what remove_from_brand_list needs. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
shared_set_id * | string | Numeric list ID from get_brand_lists (shared_set.id). |
customer_id | string | Ads account ID. Defaults to the configured account. |
get_brand_list_campaigns Campaigns using a brand list
List which campaigns a brand list is attached to. Brand lists attach as CampaignCriterion rows of type BRAND_LIST (not as CampaignSharedSet like negative keyword lists). Returns each attachment's campaign ID, name and status, the criterion, and `role`: "excluded" when the criterion is negative, "targeted" when it restricts targeting to the list. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
customer_id | string | Ads account ID. Defaults to the configured account. |
shared_set_id | string | Numeric list ID from get_brand_lists. When omitted, all brand-list attachments in the account are returned. |
propose_brand_list Draft a brand list
Draft a brand list and optionally attach it to campaigns — returns a PREVIEW. Creates a SharedSet of type BRANDS, fills it with brands, and — when campaign_ids is given — attaches it to those campaigns. Returns a preview with a plan_id; nothing changes until the returned plan_id is applied with confirm_and_apply. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
brand_ids * | array | Commercial Knowledge Graph MIDs — the `id` field from suggest_brands / check_brand_names, which resolve names; a display name alone cannot be written. Duplicates are dropped. |
list_name * | string | Name for the new list, as it should appear in Google Ads. |
campaign_ids | array | Optional numeric campaign IDs. When omitted, the list is created without being used yet; attach_brand_list_to_campaigns attaches it later. |
customer_id | string | Ads account ID. Defaults to the configured account. |
negative | boolean | True (default) excludes the brands from those campaigns; False restricts targeting to them instead. |
add_to_brand_list Draft additions to a brand list
Append brands to an EXISTING brand list — returns a PREVIEW. For a list that already exists and only needs more brands (propose_brand_list creates a new list instead). The shared_set_id comes from get_brand_lists; get_brand_list_brands shows the brands already in the list, which makes a brand that would be added twice visible. Returns a preview with a plan_id; nothing changes until the returned plan_id is applied with confirm_and_apply. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
brand_ids * | array | Commercial Knowledge Graph MIDs from suggest_brands. |
shared_set_id * | string | Numeric list ID from get_brand_lists. |
customer_id | string | Ads account ID. Defaults to the configured account. |
remove_from_brand_list Draft removing brands from a list
Remove brands from a brand list — returns a PREVIEW. SharedCriteria have no status field, so removal is the only way to take a brand out of a list — there is nothing to pause. Removing a brand does not detach the list from any campaign. Returns a preview with a plan_id; nothing changes until the returned plan_id is applied with confirm_and_apply. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
criterion_ids * | array | Numeric criterion_id values from get_brand_list_brands. This is irreversible — the brand leaves the list immediately. |
shared_set_id * | string | Numeric list ID from get_brand_lists. |
customer_id | string | Ads account ID. Defaults to the configured account. |
attach_brand_list_to_campaigns Draft attaching a brand list
Attach an existing brand list to one or more campaigns — returns a PREVIEW. Creates a CampaignCriterion.brand_list per campaign. This is NOT the CampaignSharedSet linkage used for negative keyword lists — brand lists are criteria, and `negative` decides the role. The shared_set_id comes from get_brand_lists; get_brand_list_campaigns lists existing attachments. Returns a preview with a plan_id; nothing changes until the returned plan_id is applied with confirm_and_apply. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
campaign_ids * | array | Numeric campaign IDs to attach the list to. |
shared_set_id * | string | Numeric list ID from get_brand_lists. |
customer_id | string | Ads account ID. Defaults to the configured account. |
negative | boolean | True (default) excludes the brands from those campaigns; False restricts targeting to them instead. |
detach_brand_list_from_campaigns Draft detaching a brand list
Detach a brand list from one or more campaigns — returns a PREVIEW. Removes the CampaignCriterion rows linking the list to those campaigns; the list itself and its brands are unchanged. get_brand_list_campaigns lists the existing attachments. Returns a preview with a plan_id; nothing changes until the returned plan_id is applied with confirm_and_apply. Google Ads API: https://developers.google.com/google-ads/api/docs/start
| Parameter | Type | Description |
|---|---|---|
campaign_ids * | array | Numeric campaign IDs to detach the list from. Campaigns that do not carry the list are reported as `not_attached` in the apply result instead of failing the batch. |
shared_set_id * | string | Numeric list ID from get_brand_lists. |
customer_id | string | Ads account ID. Defaults to the configured account. |