Google Ads API: what it returns, how access works, and what it can't tell you
The Google Ads API returns cost as cost_micros and conversions through GAQL. Since September 9, 2026, access is set per Google Cloud project.
The Google Ads API returns campaign, cost and conversion data through GAQL queries sent to GoogleAdsService.SearchStream. Cost arrives as metrics.cost_micros, in millionths of the account currency, and conversions as metrics.conversions, which counts only actions marked as primary. Developer tokens were sunset on September 9, 2026: API access is now granted per Google Cloud project (Access levels, updated November 19, 2026).
I read every Google page cited here on November 29, 2026. Resource, field and error names appear exactly as Google writes them, in code format, with a link to the page.
Google Ads API: Google’s programmatic interface for reading and changing Google Ads accounts. It is a gRPC API with REST bindings, currently on major version v26, released October 14, 2026 (Sunset dates). Every report comes from a Google Ads Query Language (GAQL) query against one resource, such as
campaignorsearch_term_view.
Why doesn’t Google Ads API revenue match Shopify?
It shows up in one of two ways. The tutorial tells you to use a developer token, and Google has already retired those tokens. Or the pipeline works, spend ties to the UI to the cent, and the revenue the API credits to Google Ads runs higher than what Shopify booked from Google-sourced orders in the same month.
Both have documented causes. The first is the access change covered in the next section. The second is the API’s own definition of a conversion, which measures what the ad account recorded, not the paid order.
How do you get Google Ads API access now?
Through a Google Cloud project. Google’s access page says: “Developer tokens were sunset on September 9, 2026, and API access levels are now managed per Google Cloud project” (Access levels). Enabling the API grants Test access, and every upgrade is requested on the Google Ads API Overview page in the Cloud Console.
| Level | Accounts it reaches | Daily limit | How you get it | Source |
|---|---|---|---|---|
| Test | Test accounts only | 15,000 operations | Automatic when you enable the API | Access levels |
| Explorer | Test and production | 2,880 operations on production | Cloud Console request, auto-approved “in most cases” | Access levels |
| Basic | Test and production | 15,000 operations | Requires brand verification for the project | Access levels |
| Standard | Test and production | Unlimited | Manual audit, about 10 business days | Access levels |
“Per day” is a sliding 24-hour window. Explorer also blocks whole services: planning (KeywordPlanIdeaService, ReachPlanService), account creation and linking, user management and billing. If you want keyword ideas through the API, you need Basic.
Three authentication details break the first call (Call structure, updated November 13, 2026):
- OAuth scope. There is one scope,
https://www.googleapis.com/auth/adwords, and an access token lasts 3,600 seconds (OAuth internals). The docs list no read-only variant. - Manager accounts. If access runs through an MCC, the
login-customer-idheader is required, set to the manager’s ID without hyphens. Leave it out and you getAuthorizationError.USER_PERMISSION_DENIED. - Test-only projects. A call to a live account returns
AuthorizationError.CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTIONin v25 and later.
What does the API return for campaigns and cost?
Everything comes from GoogleAdsService, with a query that names one resource in FROM and the fields in SELECT (Query overview). Resource fields describe the entity (campaign.name, campaign.status), segments split the rows (segments.date, segments.device), and metrics carry the numbers. Daily spend by campaign:
SELECT campaign.id, campaign.name, segments.date,
metrics.cost_micros, metrics.clicks, metrics.impressions
FROM campaign
WHERE segments.date DURING LAST_30_DAYS
The reference defines metrics.cost_micros as “the sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period” (Metrics, updated November 17, 2026). Micros follow the rule Google spells out for budgets: “One million micros is equivalent to one currency unit,” in the account’s local currency (campaign_budget). In a synthetic, round-number example, cost_micros = 12500000000 on a USD account is $12,500. Currency lives in customer.currency_code and time zone in customer.time_zone, both immutable (customer). Every date range is evaluated “relative to the serving account’s time zone (customer.time_zone), rather than UTC” (Date ranges, updated November 13, 2026). An account on Pacific time and a Shopify store closing its day on Eastern time won’t agree on where a day ends.
Three behaviors change your results without throwing an error:
- All-zero rows disappear. In a segmented report, rows where every selected metric is zero are not returned. In a segmented query, a campaign with no impressions in the range is omitted even when
SELECTasks only for settings fields; to see settings for every campaign, drop thesegmentsfrom the query (Zero metrics, updated November 13, 2026). - Performance Max search terms are missing.
search_term_view“does not include Performance Max data”; usecampaign_search_term_viewfor those (search_term_view). - Rare queries never show. Google Ads Help says terms “that don’t have enough query activity are omitted from the search terms report” for privacy (Search terms report).
At click level, click_view carries the gclid, but each query must filter to a single day and can only reach back 90 days (click_view). What happens to that ID before it turns into a sale is covered in what is gclid.
What does the API count as a conversion?
Whatever the ad account recorded, under the rules set on each conversion action. The reference describes metrics.conversions this way: “This only includes conversion actions which include_in_conversions_metric attribute is set to true. If you use conversion-based bidding, your bid strategies will optimize for these conversions” (Metrics).
| Field | What it adds up | What the date means | Source |
|---|---|---|---|
metrics.conversions | Only actions with include_in_conversions_metric = true | Date of the ad interaction | Metrics |
metrics.all_conversions | Every action, primary or not | Date of the interaction | Metrics |
metrics.conversions_by_conversion_date | Same actions as conversions | ”the values in date column means the conversion date” | Metrics |
metrics.conversions_value | Value of primary actions | Date of the interaction | Metrics |
Each action carries its own rules in the conversion_action resource. counting_type sets one or many conversions per click (ONE_PER_CLICK, MANY_PER_CLICK), and click_through_lookback_window_days sets how many days can pass between click and conversion (conversion_action). Two accounts looking at the same Shopify order can report different numbers on configuration alone.
Google’s conversion reporting guide adds that “Custom columns are not supported by the Google Ads API” (Conversion reporting, updated November 13, 2026). The “net ROAS” custom column your team built in the UI does not come back through the API; you rebuild that math outside it.
This same conversion is what bidding learns from, which is why it matters for features like AI Max for Search.
How long until the numbers settle?
In most cases, clicks, impressions and cost have a one-hour freshness target. In the table comparing Google Analytics imports with Google Ads’ own conversion tracking, tracked conversions are ready in 3 hours under last click and 15 hours under other attribution models; goals imported from Google Analytics take 12 and 24 hours (About data freshness, undated page, read November 29, 2026). Per the same page, search terms data for a Sunday is ready at 6 AM Monday for someone in San Francisco (PST).
The past changes too. The same page says “Google systems detect and remove invalid traffic, such as bot activity or accidental clicks retroactively,” and conversions can land days after the click. A job that writes each day once and never rereads it freezes the number before it closes.
History depends on granularity. Daily, weekly and hourly data only goes back 37 months; past that, the query fails with DateRangeError.REQUESTED_DATE_GRANULARITY_NOT_SUPPORTED in v24 and later. Monthly, quarterly or yearly data goes back 11 years (Date ranges). click_view stays at its 90 days.
What limits does extraction have to respect?
Quota, response size and version (API limits and quotas, updated November 13, 2026):
- One query is one operation. “One SearchStream request counts as one API operation irrespective of the number of batches.” Follow-up pages with a valid
next_page_tokenare free. Requests rejected with aGoogleAdsFailurestill count. - 64 MB per response. Past that you get
RESOURCE_EXHAUSTED(HTTP 429). Fewer fields or streaming fixes it. - SearchStream for big reports.
Searchpages at 10,000 rows, so a 100,000-row report costs 10 requests withSearchand 1 withSearchStream(Streaming, updated November 13, 2026). - Versions expire. Google keeps at most five major versions alive, each lasting about 12 months. v23 sunsets in February 2027 and v27 is planned for January 2027 (Sunset dates). A forgotten integration on an old version stops on that date.
Because each SearchStream counts once, what uses up the limit is the number of queries, not the number of rows: in a synthetic example, 50 accounts with 10 queries each spend 500 operations a day.
How do you diagnose the gap between the API and booked revenue?
Run these checks on a closed month, after late conversions and invalid traffic have settled (About data freshness):
| Check | Query or place | What a mismatch means | Source |
|---|---|---|---|
Actions inside conversions | conversion_action.name, include_in_conversions_metric, counting_type | A lead form, call or page view counted as a sale | conversion_action |
| Conversions by action | segments.conversion_action in FROM campaign | One secondary action driving the total | Conversion reporting |
| Click date vs conversion date | conversions vs conversions_by_conversion_date, by segments.date | Early-month orders landing in the prior month | Metrics |
| Primary vs all | conversions vs all_conversions | A wide gap means someone should review what is primary | Metrics |
| Reread | the same day extracted twice, a week apart | Cost or conversions moved and your load missed it | About data freshness |
| Time zone | customer.time_zone vs the zone your books close in | Orders near midnight switching dates | Date ranges |
Then tie it to the store. In Shopify, the paid order net of cancellations and refunds is the cash side. A synthetic example with round numbers: the API returns $60,000 in conversions_value for the month; Shopify shows $50,000 in paid orders attributed to Google. The $10,000 gap comes from different rules, each system right on its own terms, and adding Meta and GA4 on top produces the problem in why platform ROAS adds up to more than your revenue.
How do you make Google Ads API data tie to paid orders?
Start with the definition. “Google Ads revenue” can mean conversions_value by click date, the same metric by conversion date, or paid Shopify orders attributed to Google. Each one answers a different question. Writing down which number answers which question, and querying it the same way every time, is what a semantic layer does.
On extraction, four rules taken from Google’s own pages:
- Reread a rolling window. Reload at least the last 30 days on every run, because invalid traffic and late conversions rewrite the past (About data freshness). Each
SearchStreamis a single operation, so rereading won’t blow the quota. - Keep both dates. Pull
conversionsandconversions_by_conversion_dateside by side. Month-end close with finance uses the second. - Snapshot the action settings. Store
conversion_actionon every load. When someone flips an action from primary to secondary, the history shows the break. - Send booked revenue back.
RETRACTIONandRESTATEMENTadjustments fix a conversion already recorded, ideally matched byorder_id(Upload adjustments, updated November 13, 2026). For new offline imports, Google warns that since June 15, 2026, new implementations “must use the Data Manager API instead of the Google Ads API” (Upload clicks). The hashed first-party data route is in enhanced conversions in Google Ads.
Precisian collects Google Ads, Meta and LinkedIn data automatically into each customer’s data lake, isolated per customer on Precisian’s infrastructure, next to the orders from Shopify or VTEX. The sales rule is written once in the semantic layer, and the customer queries it from their own AI, an API or their BI tool.
When can’t it be fixed?
Sales off your site. A shopper who clicks your ad and buys on Amazon creates no conversion in your account, and no API field links that click to that sale.
Low-volume search terms. They are omitted for privacy (Search terms report). No query brings them back.
Old history. click_view stops at 90 days and daily data stops at 37 months (Date ranges). A gclid or a day you didn’t save inside those windows won’t come back through the API; only the monthly total remains.
One rule across platforms. Google’s API answers for Google’s account. Reconciling its rules with Meta’s is definition work outside the API, and the official server built on this same API has the same limit, as covered in the official Google Ads MCP server.
When Precisian is the wrong answer: if Google Ads is your only paid channel, you sell only on your own store, and conversions_value by conversion date already ties to Shopify within a margin your finance team accepts, a data platform is a cost with no problem attached. A SearchStream script and a spreadsheet will do.
What does this article not cover?
Writes. Creating campaigns, changing bids and uploading ads go through mutate and have their own limits, such as 10,000 operations per request (API limits and quotas). Precisian doesn’t run media, and this piece covers reads only.
Client libraries and setup. Language-specific steps change with every version and live in Google’s official libraries.
If the revenue the API credits to Google Ads doesn’t match your paid orders, start by measuring the distance between conversions_value_by_conversion_date and Shopify for the same month, in the same time zone. See this article’s question answered on a real lake, with no contract commitment.