About Adloop
Adloop is an MCP server published by kLOsk in the Analytics category: google Ads MCP server for Claude, ChatGPT and Cursor, with Reddit Ads, GA4 and Tag Manager. Every change is previewed first. Conduid read 176 tools from its source: add_ad_schedule, add_microsoft_negative_keywords, add_negative_keywords, add_negative_locations, add_to_brand_list, add_to_microsoft_negative_keyword_list and 170 more. It is published to PyPI as adloop and runs with uvx.
The repository has 304 stars and 76 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v0.45.0 (16 Nov 2026): GA4 audiences can now be built from pages and from sequences, not only from events. It follows v0.44.1 (16 Nov 2026), and the 5 most recent releases go back to v0.42.1 (16 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Dependencies pinned. Its topics include ga4, google-ads, google-analytics and marketing.
Install
uvx adlooppip install adloopgit clone https://github.com/kLOsk/adloopTools (176)
add_ad_scheduleAdd ad schedule windows to a campaign; overlaps are refused, and a campaign's first schedule needs a double confirmation.add_microsoft_negative_keywordsNegatives on a campaign or ad group, or in shared lists; every draft names the active keywords a negative would blockadd_negative_keywordsPropose negative keywords directly on a campaignadd_negative_locationsPropose negative geo exclusions on a campaign — exclude cities/regions while keeping broader positive targetsadd_to_brand_listDraft adding brands to an existing brand listadd_to_microsoft_negative_keyword_listNegatives on a campaign or ad group, or in shared lists; every draft names the active keywords a negative would blockanalyze_campaign_conversionsMaps Ads clicks → GA4 sessions → conversions per campaign. Detects GDPR consent gaps, computes real CPA, compares paid vs organic channels.analyze_page_speedPageSpeed Insights for landing pages: Lighthouse score, Core Web Vitals, real-user CrUX data (falls back to origin-wide data, labelled as such, when the page has too little traffic), top fixes. No OAuth needed (optional API key).attach_brand_list_to_campaignsDraft attaching an existing brand list to campaigns as `CampaignCriterion.brand_list`attach_microsoft_negative_keyword_listNegatives on a campaign or ad group, or in shared lists; every draft names the active keywords a negative would blockattribution_checkCompares Ads-reported conversions vs GA4 events. Diagnoses whether discrepancies are from GDPR consent, attribution windows, or broken tracking.audit_event_coverageThe flagship. Three-way join: codebase events ↔ GTM tags ↔ GA4 actual fires. For each event name in `expected_events`, returns one of 10 statuses (`ok`, `no_tag_no_fire`, `tag_paused`, `tag_active_but_not_firing`, `gtm_only_firing`, `ga4_only`, etc.) plus auto-generated insights for the gaps.check_brand_namesCheck a shortlist of brand names against Google's brand knowledge graph (max 25 per call)confirm_and_applyExecute a previously previewed changedetach_brand_list_from_campaignsDraft detaching a brand list from campaigns (removes only the criterion, the list stays)detach_microsoft_negative_keyword_listNegatives on a campaign or ad group, or in shared lists; every draft names the active keywords a negative would blockdiscover_keywordsDiscover new keyword ideas from seed keywords and/or a URL — with optional per-month search history + seasonality insights (`include_monthly_volumes`) using Google Ads Keyword Planner. Returns avg monthly searches, competition level, and top-of-page bid range.draft_ad_groupCreate a paused SEARCH_STANDARD ad group inside an existing campaign, with optional MANUAL_CPC `max_cpc`.draft_ai_max_settingsDraft AI Max controls for a Search campaign: `enable_ai_max`, per-ad-group `disable_search_term_matching`, plus text and final-URL asset automation (each `OPTED_IN` / `OPTED_OUT` / `UNCHANGED`)draft_asset_group_assetsAdd and remove Performance Max assets (text, images incl. uploads, YouTube videos) in one change, so replacing an asset never drops a group below Google's minimumsdraft_asset_group_signalsAdd search themes or set the audience signal of a PMax asset groupdraft_assign_custom_conversion_goalPoint a campaign at a custom conversion goal (`goal_config_level = CAMPAIGN`)draft_audience_attachmentAttach audiences as observation (default), targeting (double confirmation) or exclusion; refuses pairings Google doesn't allow and Search lists too small to targetdraft_business_name_assetCreate the business name shown with the ads, for a campaign or the account.draft_call_assetCreate a call asset (phone number) for an ad group, a campaign or the account, or edit one in place; numbers are parsed and checked against their country.draft_calloutsCreate callout assets (1-25 characters) for an ad group, a campaign or the account.draft_campaignCreate a full campaign structure — budget + campaign (PAUSED) + ad group + optional keywords. Supports Search partners, display expansion, the location option (presence vs presence or interest), campaign URL options (tracking template, final URL suffix, custom parameters), geo exclusions, an ad schedule, and `max_cpc` for either MANUAL_CPC initial ad-group bids or TARGET_SPEND (Maximize Clicks) CPC caps.draft_clear_custom_conversion_goalPut a campaign back on the account-level goals (rollback)draft_custom_conversion_goalCreate a custom conversion goal (a named set of conversion actions)draft_delete_gtm_entityDelete a workspace tag, trigger or variable. Triggers and variables still in use are refused up front, with the references listed.draft_delete_key_eventRemove a GA4 key event. The event keeps firing but no longer counts as a conversion, for future data onlydraft_demographic_targetingPropose demographic criteria (age, gender, parental status, income) — exclusions by defaultdraft_dismiss_recommendationsDismiss Google recommendations you won't take, so they stop reappearing (Google can show them again later)draft_gtm_tagCreate a tag, or update one by `tag_id`. Updates are a read-modify-write: `parameters` merge by key and every field you don't pass (priority, consent settings, firing options, schedule, folder, …) is preserved. Tag types are canonical GTM template IDs (`googtag`, `gaawe`, `awct`, `sp`, `gclidw`, …) or `cvt_<id>` gallery templates.draft_gtm_triggerCreate a trigger, or update one by `trigger_id` (type is immutable). `custom_event_name` wires a `customEvent` trigger to a dataLayer event.draft_gtm_variableCreate or update variables, e.g. Data Layer Variables for GA4 ecommerce values; renaming a referenced variable is refused, Custom JavaScript is gateddraft_image_assetsCreate campaign image assets from local files, public image URLs or uploads (PNG, JPEG, or GIF); a business logo can also go on the account.draft_key_eventMark a GA4 event as a key event (conversion) — the fix for "fires but isn't tracked as a conversion"draft_keywordsPropose keyword additions with match types. Proactively checks bidding strategy — flags BROAD match on campaigns without Smart Bidding as dangerous in the preview.draft_microsoft_ad_groupNew Search campaigns (created paused, with languages and locations required) and ad groups with keywords; ad group name, default bid, network and Audience Network adjustmentdraft_microsoft_call_extensionCreate extensions and link them to a campaign or the accountdraft_microsoft_calloutsCreate extensions and link them to a campaign or the accountdraft_microsoft_campaignNew Search campaigns (created paused, with languages and locations required) and ad groups with keywords; ad group name, default bid, network and Audience Network adjustmentdraft_microsoft_keywordsAdd keywords (duplicates skipped) and change keyword bids, capped by `max_bid_increase_pct` including bids inherited from the ad groupdraft_microsoft_responsive_search_adNew RSAs (created paused) and copy, URL and path changesdraft_microsoft_sitelinksCreate extensions and link them to a campaign or the accountdraft_microsoft_structured_snippetCreate extensions and link them to a campaign or the accountdraft_pmax_product_exclusionsExclude products from a retail PMax asset group by item id, brand or custom labeldraft_prepare_brand_exclusionsDraft the safe standard state in one step: AI Max on, search term matching off for every non-removed ad group, text and final-URL automation opted out. Touches nothing elsedraft_price_assetCreate a price asset with 3-8 offerings, in the account currency.draft_promotionCreate a promotion asset, or edit one in place without losing the fields you don't pass; amounts in the account currency.draft_publish_gtm_workspacePublish a workspace live. The preview lists every pending change, including edits other people made in the GTM UI.draft_recommendation_subscriptionsPause auto-apply for recommendation types, so Google stops changing the account without a preview. Switching auto-apply back on stays in the Google Ads UIdraft_reddit_adCreate campaign → ad group (pixel + targeting required) → post + ad (text, image, video or a 2–6 card carousel, media by URL), or promote an existing post with `post_id`. Everything is created PAUSED.draft_reddit_ad_groupCreate campaign → ad group (pixel + targeting required) → post + ad (text, image, video or a 2–6 card carousel, media by URL), or promote an existing post with `post_id`. Everything is created PAUSED.draft_reddit_campaignCreate campaign → ad group (pixel + targeting required) → post + ad (text, image, video or a 2–6 card carousel, media by URL), or promote an existing post with `post_id`. Everything is created PAUSED.draft_reddit_custom_audienceRetargeting audiences from website visitors (pixel events) or people who engaged with your campaigns. No customer-list uploads.draft_responsive_search_adCreate RSA preview (3-15 headlines ≤30 chars, 2-4 descriptions ≤90 chars). Warns if headline/description count is below best practice.draft_rollback_gtm_versionRepublish an older container version live. The preview is the diff from the live version to the target; the plan pins the live version, so apply refuses if someone publishes in between. Workspaces are left as they are.draft_shopping_campaignCreate a Standard Shopping campaign for a linked Merchant Center feed — budget, campaign (PAUSED), product ad group, Shopping ad and an "All products" group in one atomic request. Manual CPC, Maximize clicks or target ROAS.draft_structured_snippetsCreate structured snippet assets for an ad group, a campaign or the account, using official header values and 3-10 values.draft_update_custom_conversion_goalRename a custom conversion goal and/or replace its action list (list replace, not append)enable_entityRe-enable a paused entityenable_microsoft_entityStatus changes through the preview gate; removal is irreversible and double-confirmedenable_reddit_entityStatus changes through the preview gate (remove = ARCHIVE, irreversible, double-confirmed)estimate_budgetForecast clicks, cost, and conversions for a set of keywords using Google Ads Keyword Planner. Supports geo/language targeting. Essential for budget planning before launching campaigns.estimate_reddit_ad_groupAudience size, delivery estimate and suggested bid range for a planned ad group (Reddit's counterpart of `estimate_budget`)generate_tracking_codeGenerate ready-to-paste GA4 gtag JavaScript for any event, with recommended parameters for well-known events (sign_up, purchase, etc.) and optional trigger wrappers.get_account_summariesList GA4 accounts and propertiesget_ad_performanceAd copy analysis: headlines, descriptions, CTR, policy approval status and topicsget_ai_max_settingsAI Max knobs per campaign and ad group — `enable_ai_max`, `bundling_required`, the full `asset_automation_settings` list and each ad group's `disable_search_term_matching`get_asset_group_signalsA PMax asset group's search themes and audience signal, plus the audiences available for itget_audience_listsThe account's remarketing and customer lists (size, eligibility, open/closed), custom and combined segmentsget_audience_performanceAudience segment performance — remarketing, in-market, affinity, demographicsget_audience_targetingAudiences and audience exclusions on a campaign or ad group, plus the audience mode (observation or targeting)get_brand_list_brandsList the brands inside a list, with the Commercial KG MID and the criterion ID for removalsget_brand_list_campaignsWhich campaigns a brand list is attached to, and whether each attachment excludes or targetsget_brand_listsList brand lists (SharedSets of type BRANDS) — ID, name, status, member countget_campaign_performanceCampaign metrics: impressions, clicks, cost, conversions, CPA, Search impression share and share lost to budget/rankget_campaign_settingsOne flat record per Search campaign — networks, location option, campaign-level broad match, bidding, budget, URL options and AI Max — with the settings that widen reach flaggedget_change_historyWhat changed before the drop: who changed what and when, through which client (UI, API, scripts, auto-applied recommendations), last 30 daysget_custom_conversion_goalsCustom conversion goals with their actions, plus one campaign's goal configget_demographic_targetingList demographic criteria (age/gender/parental status/income) on an ad group or campaignget_detailed_asset_performanceTop-performing asset combinations — which headline+description+image combos Google selects mostget_gtm_tagFull raw config for a single tag — every parameter, firing/blocking triggers with filter conditions, priority, pause status, samplingget_gtm_triggerFull trigger config + reverse lookup of every tag that uses it. Includes parsed `element_visibility` block (selector, on-screen ratio, firing frequency) for elementVisibility triggers and `group_member_trigger_ids` for triggerGroup typesget_gtm_versionName, notes and tag/trigger names for a single historical container versionget_gtm_version_diffWhat a publish changed: added, removed and changed tags, triggers and variables with the changed fields, plus built-in variables enabled or disabled. Defaults to the live version against the one before it; two or three API calls.get_gtm_workspace_diffDrafted-but-not-published changes — common cause of "I edited a tag but nothing happened". Returns `is_clean: true` when nothing is pending.get_keyword_performanceKeywords — quality scores, competitive metricsget_merchant_feed_healthFeed health — approved/pending/disapproved counts per reporting context, paid surfaces kept apart from free listings, top product issues with docs, account-level issues. Disapprovals silently starve Shopping/PMax.get_merchant_product_issuesThe products behind the feed-health counts: which are disapproved, limited or pending, and each issue with its attribute and affected countriesget_microsoft_ad_extensionsDirect negatives, shared negative lists with their items and attachments, and sitelinks, callouts, snippets and call extensions per campaign and account, each with a `remove_id`get_microsoft_ad_groupsStructure with the status of every parent level, budgets (own or shared), bidding, languages, included and excluded locations and location intent, bids, networks, Audience Network exposure, match types, RSA copy with pins, editorial reviewget_microsoft_adsStructure with the status of every parent level, budgets (own or shared), bidding, languages, included and excluded locations and location intent, bids, networks, Audience Network exposure, match types, RSA copy with pins, editorial reviewget_microsoft_campaignsStructure with the status of every parent level, budgets (own or shared), bidding, languages, included and excluded locations and location intent, bids, networks, Audience Network exposure, match types, RSA copy with pins, editorial reviewget_microsoft_conversion_setupAudit of UET tags, conversion goals (tracking status, excluded from bidding), campaign goals and clicks without conversionsget_microsoft_keywordsStructure with the status of every parent level, budgets (own or shared), bidding, languages, included and excluded locations and location intent, bids, networks, Audience Network exposure, match types, RSA copy with pins, editorial reviewget_microsoft_location_performanceWhere clicks came from, split into people physically in a place and people searching about itget_microsoft_negative_keywordsDirect negatives, shared negative lists with their items and attachments, and sitelinks, callouts, snippets and call extensions per campaign and account, each with a `remove_id`get_microsoft_performanceSpend, clicks, CTR, CPC, conversions, CPA, revenue, impression share and share lost to budget and rank per account/campaign/ad group/keyword/ad, optional date or device breakdown, compact mode with insightsget_microsoft_search_termsWhat people searched, the keyword and match type it matched, and waste candidatesget_negative_keyword_list_campaignsList which campaigns a shared negative keyword list is attached toget_negative_keyword_list_keywordsList the keywords inside a specific shared negative keyword listget_negative_keyword_listsList all shared negative keyword lists (SharedSets) — names, IDs, status, keyword countget_negative_keywordsList direct campaign-level negative keywordsget_pmax_assetsPer-asset details for PMax — field type, serving status, contentget_pmax_performancePerformance Max campaign metrics with network breakdown + asset group ad strengthget_recommendation_subscriptionsWhich recommendation types Google applies automatically (auto-apply), with status and last change; flags any that are onget_recommendationsGoogle's auto-generated recommendations with type, estimated impact, and campaign contextget_reddit_account_historyWho changed what and when: field, before/after, memberget_reddit_ad_groupsStructure with configured vs effective status, budgets, bids, pixel, targeting, weekly schedule, rejection reasons; `include_copy` returns each ad's post (headline, body, destination, media)get_reddit_adsStructure with configured vs effective status, budgets, bids, pixel, targeting, weekly schedule, rejection reasons; `include_copy` returns each ad's post (headline, body, destination, media)get_reddit_audiencesCustom and saved audiences with status, size and source, plus the ad groups that target or exclude eachget_reddit_campaignsStructure with configured vs effective status, budgets, bids, pixel, targeting, weekly schedule, rejection reasons; `include_copy` returns each ad's post (headline, body, destination, media)get_reddit_performanceSpend, clicks, CTR, CPC, conversions, CPA, ROAS per account/campaign/ad group/ad, optional breakdown (date, country, community, keyword, placement, …), compact mode with insightsget_reddit_pixelsPixels and when each event last fired — flags ad groups optimizing for events the pixel never sentget_search_termsWhat users actually searched before clickingget_shopping_product_performanceSpend, conversions, CPA and ROAS per product across Shopping and Performance Max, plus products that spent without convertingget_tracking_eventsAll configured events and their volumehealth_checkTest OAuth, GA4, and Ads connectivity in one call — actionable error messages if anything is broken. Also reports the pinned Google Ads API version and warns if a newer version is available.landing_page_analysisJoins ad final URLs with GA4 page data. Shows conversion rate, bounce rate, and engagement per landing page. Flags pages with paid traffic but zero conversions.link_asset_to_customerLink existing assets account-wide; the asset type is checked against the field type.list_accountsDiscover accessible Ads accountslist_ga4_dimensions_and_metricsEvery dimension and metric the property can report on, including custom ones, with searchlist_gsc_sitesList Search Console properties the connected account can accesslist_gtm_accountsDiscover accessible GTM accountslist_gtm_containersList containers under an account — returns numeric `container_id` (needed by other tools), public `GTM-XXXXXXX` ID, and usage context (web/iOS/Android/server)list_gtm_tagsEvery tag in the live container with parsed event names and resolved firing/blocking trigger names. Pass `workspace_id` to read a workspace's unpublished state instead, so a just-drafted tag is visible (also on `get_gtm_tag`, `list_gtm_triggers`, `get_gtm_trigger`, `list_gtm_variables`)list_gtm_triggersEvery trigger with filter conditions parsed to readable text (e.g. `{{Page Path}} contains service-promotions`, `{{Form ID}} NOT contains wf-form-...`). Renders the `negate` flag explicitly.list_gtm_variablesCustom variables (data layer, constants, JS) plus enabled built-in variableslist_gtm_versionsVersion history, newest first, with version IDs and entity counts. The Tag Manager API returns no timestamps or author for versions.list_gtm_workspacesList drafts (workspaces) under a container — workspace IDs are needed by `get_gtm_workspace_diff`list_key_eventsThe property's key events (conversions) with counting method, create time and whether they can be deletedlist_merchant_accountsDiscover accessible Merchant Center accountslist_microsoft_ads_accountsThe signed-in user, manager accounts and ad accounts (id, number, currency, time zone, status)list_reddit_accountsDiscover businesses and ad accounts (currency, time zone, approval state)list_reddit_funding_instrumentsBilling instruments and posting profiles — prerequisites for creating campaigns and adslist_uploadsThe uploads that have not expired yet (kept 24 hours), with id, dimensions and sizepause_entityPause a campaign, ad group, ad, keyword or PMax asset grouppause_microsoft_entityStatus changes through the preview gate; removal is irreversible and double-confirmedpause_reddit_entityStatus changes through the preview gate (remove = ARCHIVE, irreversible, double-confirmed)propose_brand_listDraft a brand list (SharedSet of type BRANDS) from Commercial KG MIDs and optionally attach it to campaigns — `negative=true` (default) excludes the brands, `false` restricts targeting to thempropose_microsoft_negative_keyword_listNegatives on a campaign or ad group, or in shared lists; every draft names the active keywords a negative would blockpropose_negative_keyword_listDraft a shared negative keyword list (SharedSet) and attach it to a campaign — reusable across multiple campaignsremove_entityPermanently remove an entity (irreversible — prefers pause). Supports keywords, negative keywords, ads, ad groups, campaigns.remove_from_brand_listDraft removing brands from a list (SharedCriteria have no status — removal is the only way; asks for a second confirmation)remove_microsoft_entityStatus changes through the preview gate; removal is irreversible and double-confirmedremove_reddit_entityStatus changes through the preview gate (remove = ARCHIVE, irreversible, double-confirmed)run_ga4_reportCustom reports: sessions, users, key events, page performance. Optional dimension and metric filters, ordering, paging, and a comparison periodrun_gaqlArbitrary GAQL queries for anything elserun_gsc_reportOrganic search analytics: clicks, impressions, CTR, position by query/page/country/device/date/searchAppearance/hour. Supports fresh data (`data_state="all"`), `aggregation_type`, and paging past 25,000 rows with `start_row`run_realtime_reportLive data — verify tracking fires after deploysrun_reddit_reportRaw reports endpoint for any metric (REACH, video, per-event conversions)search_audience_segmentsFind Google's in-market and affinity segments by namesearch_microsoft_locationsLocation ids (country, state, metro, city, postal code) by name from Microsoft's location file, cachedsearch_reddit_targetingCommunities, interests, geolocations, languages, keyword suggestions, and Reddit's related-community suggestions (by seed communities or website)suggest_brandsResolve a brand name to the brands Google recognizes — brand ID, name, state, URLsupdate_ad_groupUpdate an ad group name and/or MANUAL_CPC `max_cpc`. Use `pause_entity` / `enable_entity` for ad-group status changes.update_call_assetCreate a call asset (phone number) for an ad group, a campaign or the account, or edit one in place; numbers are parsed and checked against their country.update_calloutEdit an asset in place, keeping its ID and history; the apply refuses if it was changed in Google Ads since the preview.update_campaignModify existing campaign settings — bidding, budget, geo/language targeting, geo exclusions and the ad schedule (both replace the current list), the location option, campaign URL options, campaign-level broad match (Smart Bidding only), Search partners, display expansion, and TARGET_SPEND (Maximize Clicks) `max_cpc` caps.update_microsoft_ad_groupNew Search campaigns (created paused, with languages and locations required) and ad groups with keywords; ad group name, default bid, network and Audience Network adjustmentupdate_microsoft_campaignDaily budget (capped by `max_daily_budget`), name, bid strategy, tracking template and final URL suffix, included and excluded locations, location intent, ad scheduleupdate_microsoft_campaign_budgetDaily budget (capped by `max_daily_budget`), name, bid strategy, tracking template and final URL suffix, included and excluded locations, location intent, ad scheduleupdate_microsoft_campaign_targetingDaily budget (capped by `max_daily_budget`), name, bid strategy, tracking template and final URL suffix, included and excluded locations, location intent, ad scheduleupdate_microsoft_keyword_bidsAdd keywords (duplicates skipped) and change keyword bids, capped by `max_bid_increase_pct` including bids inherited from the ad groupupdate_microsoft_responsive_search_adNew RSAs (created paused) and copy, URL and path changesupdate_promotionCreate a promotion asset, or edit one in place without losing the fields you don't pass; amounts in the account currency.update_reddit_adBudget, bid, run dates, weekly schedule (day names, viewer-local hours), targeting, placements and audiences to target or exclude (validated with Reddit at draft time), landing URL and comment changes with old → new previews, budget cap and bid-increase guardsupdate_reddit_ad_groupBudget, bid, run dates, weekly schedule (day names, viewer-local hours), targeting, placements and audiences to target or exclude (validated with Reddit at draft time), landing URL and comment changes with old → new previews, budget cap and bid-increase guardsupdate_reddit_campaignBudget, bid, run dates, weekly schedule (day names, viewer-local hours), targeting, placements and audiences to target or exclude (validated with Reddit at draft time), landing URL and comment changes with old → new previews, budget cap and bid-increase guardsupdate_sitelinkEdit an asset in place, keeping its ID and history; the apply refuses if it was changed in Google Ads since the preview.update_structured_snippetEdit an asset in place, keeping its ID and history; the apply refuses if it was changed in Google Ads since the preview.upload_imagesShows an upload card in apps with MCP Apps (drop PNG, JPEG or GIF up to 5 MB); on AdLoop Cloud in other apps it returns a one-time upload link, which a coding agent can also use with `curl -T`validate_trackingCompare event names found in your codebase against what GA4 actually records. Returns matched, missing, and unexpected events with diagnostics.Security checks
- ✓README presentThe repository's README runs to about 9.3K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- ✓No dynamic code executionScanned 92 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
Releases
README
The repository's README runs to about 9.3K words, fetched 13 days ago. The original in the repository is authoritative.
Read full README