Google Ads API: Metrics, Segments, GAQL & Current Version

A practical map of the Google Ads API: choose the right reporting resource, combine compatible metrics and segments, build GAQL queries, and keep your integration on a supported version.

Practical API reference · Updated August 2026

The Google Ads API is the programmatic route into Google Ads. It can retrieve account objects and performance data, create or change campaigns, and support reporting workflows that would be slow or impossible to maintain through exports. For reporting, most work happens through GoogleAdsService and Google Ads Query Language, usually shortened to GAQL.

Current version: Google Ads API v25 was released on July 22, 2026. Google currently schedules it to sunset in August 2027. This page was last verified August 12, 2026 against Google's release notes and sunset schedule.

Current Google Ads API version

Use the newest major version when starting an integration. Major versions can contain breaking changes and use a new versioned endpoint. Minor releases are backward-compatible additions to the same major endpoint; upgrading the client library is only required when you need those additions.

VersionReleasedSunsetStatus on Aug 12, 2026
v25Jul 22, 2026Aug 2027Latest major version
v24 / v24.2Apr–Jun 2026May–Jun 2027Supported
v23 / v23.2Jan–Mar 2026Feb 2027Supported
v22Oct 15, 2025Oct 2026 (tentative)Upgrade soon
v21Aug 6, 2025Aug 2026 (tentative)At sunset window

Check the official release notes for changes and the sunset schedule before deploying. Do not hard-code this table into an integration.

How GAQL is organized

A GAQL report begins with a resource in the FROM clause. That resource sets the implicit row grain and controls which attributes, metrics and segments can legally appear in the query.

Annotated GAQL campaign query showing attributes, metrics, segments, FROM resource, WHERE filter and ordering
A GAQL query combines descriptive attributes, numeric metrics and row-splitting segments around one primary resource.

Choose the correct reporting resource

Start with the row you want returned, not with a favorite metric. Campaign totals belong on campaign; actual user queries belong on search_term_view; product performance belongs on shopping_performance_view. Choosing the wrong resource creates compatibility errors or data at the wrong grain. The same distinction is visible in SKU Analyzer's campaign reporting and search-term analysis: each begins with a different reporting grain.

Decision map from reporting question to campaign, ad group ad, search term, asset group and shopping performance resources
The FROM resource determines what one unsegmented result row represents.
You want to report onCommon starting resourceUseful qualifier
Account or campaign performancecustomer or campaignAdd date, device or network segments as needed
Ads and creative performancead_group_adAsset reporting may require an asset-specific view
Keywordskeyword_viewDo not confuse keywords with actual search terms
User search queriessearch_term_viewLow-volume terms may be withheld
Performance Max asset groupsasset_group or an asset-group viewSee how PMax channel reporting differs from asset-group reporting
Shopping productsshopping_performance_viewUse product segments for SKU-level product analysis

Google Ads API metrics and segments

Product-category segments use Google's versioned product taxonomy, while product visibility at a finer grain needs the approach described in impression share by product.

Metrics answer “how much?” Segments answer “broken down by what?” They are not interchangeable. Adding segments.device to campaign clicks changes one campaign total into separate device rows; adding date as well creates one row for each campaign, device and date combination.

Comparison showing that Google Ads API metrics measure performance while segments split totals into rows
Every additional segment can make the result more useful—and much larger.

Common metric groups

GoalCommon fieldsWatch for
Delivery and trafficmetrics.impressions, metrics.clicks, metrics.interactionsInteraction meaning varies by ad type
Costmetrics.cost_micros, metrics.average_cpcMicros must be divided by 1,000,000
Conversionsmetrics.conversions, metrics.all_conversionsPrimary-action and attribution settings change what the totals mean
Value and profitmetrics.conversions_value, metrics.gross_profit_microsProfit metrics require cart data and COGS
Visibilitymetrics.search_impression_share, lost share metricsOften unavailable or sparse at finer grains

Common segment groups

Date and time, device, ad network, conversion action, geography, keyword/search context, and product attributes are the most common families. A segment can be selectable with one resource but invalid with another.

Quick field finder

Choose a reporting goal for a safe starting point. This is intentionally small: Google's versioned field reference remains the source of truth for complete compatibility.

Useful GAQL examples

Campaign performance by day

SELECT campaign.id, campaign.name, segments.date,
  metrics.impressions, metrics.clicks, metrics.cost_micros,
  metrics.conversions, metrics.conversions_value
FROM campaign
WHERE segments.date DURING LAST_30_DAYS
ORDER BY metrics.cost_micros DESC

Search terms by campaign

SELECT campaign.name, search_term_view.search_term,
  metrics.impressions, metrics.clicks, metrics.cost_micros,
  metrics.conversions
FROM search_term_view
WHERE segments.date DURING LAST_30_DAYS

Shopping product performance

SELECT segments.product_item_id, segments.product_brand,
  metrics.impressions, metrics.clicks, metrics.cost_micros,
  metrics.conversions, metrics.conversions_value
FROM shopping_performance_view
WHERE segments.date DURING LAST_30_DAYS

SKU Analyzer handles the Shopping reporting pipeline—product-level queries, historical storage and feed attributes—without making you maintain the API integration.

Field compatibility and metadata

A field appearing in the API does not mean it works with every FROM resource. Use the versioned fields reference, Google's interactive query builder, or GoogleAdsFieldService. Its metadata exposes whether a field is selectable, filterable and sortable, plus its selectable_with relationships.

For an automated query builder, retrieve compatibility metadata rather than maintaining a hand-written universal list. That keeps your application aligned with the version it actually calls.

Common reporting mistakes

The API provides the components for accurate reporting, but it does not decide the correct grain or aggregation logic for you. That part belongs in the reporting model.

Frequently asked questions

What is the current Google Ads API version?

Google Ads API v25 is the latest major version as of August 12, 2026. It was released July 22, 2026 and is scheduled to sunset in August 2027. Check Google's official release notes before implementation because this changes frequently.

What is the difference between Google Ads API metrics and segments?

Metrics are numeric measurements such as clicks, cost and conversions. Segments are dimensions such as date or device that split those measurements into additional result rows.

How do I find valid metrics and segments for a resource?

Use Google's versioned fields reference, interactive query builder or GoogleAdsFieldService. The metadata shows which metrics, segments and attributed resources are compatible with a selected FROM resource.

What is GAQL?

GAQL is Google Ads Query Language. It is the SQL-like language used with GoogleAdsService to choose a primary resource, select attributes, metrics and segments, filter rows and order results.

If the Shopping reporting pipeline is the part you do not want to maintain, SKU Analyzer handles the product queries, storage and analysis for you.

Related topics