Google Ads
Search, Shopping, Performance Max and Demand Gen: performance, keywords, search terms, assets, tracking and change history.
Connect
Add this server to your assistant with the install guide for your client.
From the command line
npm install -g @hopkin/cli
hopkin auth set-key hpk_live_...
hopkin google ping
Reporting
Creative
Tracking and conversions
Keywords and planning
Accounts and campaigns
Change history
Connections and account
Workflows
These are questions Hopkin answers by chaining several Google Ads reports, in the order a person would.
How is the account doing?
"How did Google Ads do last month, and is anything dragging it down?"
Hopkin starts with the Get account summary totals: spend, conversions, CPA and ROAS. If the number looks off, it goes to the Get performance report to see which campaigns moved it.
Why did conversions drop?
"Conversions fell on Thursday. Did someone change something, or did the auction move?"
Hopkin lines up daily results from the Get performance report against the edits in Get activities. If a bid, budget or targeting change landed just before the drop, you'll see it. If nothing changed, the cause is probably outside the account.
Where are we losing impressions?
"How much search impression share are we losing on the brand campaign, and is it budget or rank?"
Get insights splits lost impression share into budget and rank for each campaign. Hopkin then reads the List campaigns settings for the ones losing out, so you can see how they are set up.
Which search terms are worth acting on?
"Which converting search terms aren't keywords yet, and which should we add as negatives?"
Hopkin pulls the Get search terms report, filtered to queries that aren't added or excluded yet. It cross-checks the winners and the wasteful terms against List negative keywords so you don't double up.
Which Performance Max channels and assets work?
"Where is Performance Max spending, and which headlines and images are earning their place?"
Get insights splits the campaign by network to show where it ran. The Get asset report then ranks the headlines, descriptions and images inside it.
Where do our best customers come from?
"Which countries or cities do the best job for us, and which landing pages convert?"
Hopkin reads Get geo performance for the places, then Get landing page report for the pages those visitors land on.
Which keywords carry the account?
"Which keywords drive most of our conversions, and what's their Quality Score?"
Get keyword performance ranks keywords by conversions and shows Quality Score and match type next to cost. Hopkin can then open the List ad groups entry for any weak keyword's ad group.
For agents
Does not change your ad account. Every report tool takes customer_id; pass login_customer_id (the manager account's ID) for accounts reached through an MCC, and find child accounts with google_ads_list_mcc_child_accounts (mcc_id). Reports take date_preset (TODAY, YESTERDAY, LAST_7_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH) or date_range {start_date, end_date}. LAST_7_DAYS and LAST_30_DAYS are the complete days ending yesterday in the account time zone.
Choosing the tool
- Account totals:
google_ads_get_account_summary, always live and normalized to matchmeta_ads_get_account_summary. - Any breakdown by campaign, ad group, ad, date, device or network:
google_ads_get_performance_report. - A metric or segment combination the performance report lacks:
google_ads_get_insights. - Geography, keywords, search terms, landing pages, assets, audiences each have their own report. Do not use
google_ads_get_insightsorgoogle_ads_list_adsfor landing page data.
Account health, then the campaigns behind it
1. google_ads_get_account_summary with date_preset.
2. google_ads_get_performance_report with level: 'CAMPAIGN' (the default). segments accepts date, device and ad_network_type. A per-conversion-action conversion_breakdown is always included. include_all_conversions: true adds secondary actions; include_new_vs_returning: true splits conversions into new and returning customers, and is only populated for campaigns on a customer acquisition goal.
3. Paging: the default page is 15 rows (10 with either opt-in). count is the total; follow the top-level nextCursor with the same parameters until it is absent rather than raising limit. Breakdowns cover only the rows on the page.
Conversion drop
1. google_ads_get_performance_report with segments: ['date'] around the drop.
2. google_ads_get_activities with start_date and end_date (UTC days, YYYY-MM-DD; defaults to the last 7 days) and optionally resource_type (for example CAMPAIGN, CAMPAIGN_BUDGET, AD_GROUP_CRITERION). History is archived for 25 months; check coverage.complete_from in the response before reading an empty result as "nothing changed".
Impression share
google_ads_get_insights with level: 'CAMPAIGN' and metrics such as metrics.search_impression_share, metrics.search_top_impression_share, metrics.search_budget_lost_impression_share and metrics.search_rank_lost_impression_share. The budget-lost variants are campaign-level only. Insights paginates differently from the other reports: read pagination.hasMore and pagination.nextCursor (default 30 rows). Then google_ads_list_campaigns with campaign_id to read the serving settings; networkSettings.targetSearchNetwork is the search partners setting.
Search terms and negatives
1. google_ads_get_search_terms_report with search_term_status: ['NONE'] (queries neither added as a keyword nor excluded) and order_by: 'conversions' or 'cost'. Opt in to include_landing_pages: true (final URLs by ad group) and include_conversion_breakdown: true only when needed; both add response size. Default page is 40 rows with a top-level nextCursor.
2. segments: ['ad_network_type'] splits each term between Search and Search Partners.
3. For Performance Max, set include_pmax_search_terms: true (use search_term_status: ['NONE', 'ADDED'] to drop queries already negated). It reads individual queries, returns a coverage block, and cannot be combined with ad_group_id, include_landing_pages, pmax_search_categories or keyword segments. pmax_search_categories: true returns grouped themes instead. Google withholds low-volume queries, so report coverage as a share.
4. Cross-check with google_ads_list_negative_keywords (level: CAMPAIGN, AD_GROUP or ALL; match_type array of EXACT, PHRASE, BROAD; page size max 100). Recommend negatives to the user; this server cannot create them.
Performance Max channels and assets
google_ads_get_insightswithcampaign_id,segments: ['ad_network_type']. Whensegmentsincludes a conversion action, incompatible cost-based metrics are removed automatically and awarningsentry says which.google_ads_get_asset_reportwithlevels,asset_types,field_typesandorder_by(impressions,clicks,cost,conversions,ctr). Opt-ins:include_conversion_breakdown,include_all_conversions,include_audience_signals(PMax audience signals and search themes),include_asset_content(full sitelink and callout copy) andinclude_change_history(limited to Google's last 30 days). Cost-in-micros fields are divided by 1,000,000. Default page is 20 rows.
Geography and landing pages
google_ads_get_geo_performance takes one geo_level per call: country (default) or a geo_target_* value such as geo_target_city, geo_target_region or geo_target_metro. Mixing levels silently loses data, so do not try. level is ACCOUNT, CAMPAIGN (default) or AD_GROUP. Location names are resolved for you, and both AREA_OF_INTEREST and LOCATION_OF_PRESENCE rows come back. A city-level report runs to tens of thousands of rows; sort is by spend, so read the first pages for the top places. google_ads_get_landing_page_report takes url_contains and returns a mobile speed_score (1 to 10, null when not measured, which is not the same as slow).
Keywords
google_ads_get_keyword_performance takes order_by (impressions default, clicks, cost, conversions, ctr), keyword_match_type, status and segments (for example ad_network_type). Page size defaults to 15. Add include_landing_pages: true for keyword final URLs. Every page re-reads live data, so use a date_range that ended before today when each keyword must appear exactly once.
Caching
List tools for accounts, campaigns, ad groups and ads are cache-first with background refresh; pass refresh: true for the latest. Reporting tools, google_ads_list_negative_keywords and the account summary always fetch live data.