# Google Ads reporting

Construct read-only GAQL, retain micros precision and resume full provider pages.

Canonical URL: https://opennodeflow.dev/wiki/integration-google-ads/
JSON reference: https://opennodeflow.dev/wiki/integration-google-ads/index.json
Source snapshot: 2026-10-23

The Google Ads family provides read-only account discovery, GAQL builders, Search paging and campaign-performance decoding. It does not mutate campaigns, change budgets, upload conversions or publish advertising. The recorded source default is API v26; apiVersion is an explicit configuration choice, not a promise that a deprecated provider version will remain supported.

## Authorize the intended customer

Enable the Google Ads API in the appropriate project, complete OAuth authorization and grant access to the target customer. The source uses the adwords scope and additionally requires a Google Ads developer token. Its access level controls eligible accounts. Store all credential values as secrets; configuration refers to their names.

Set customerId deliberately and optional manager loginCustomerId when required by the selected relationship. **List Google Ads Accessible Customers** enumerates direct OAuth access and deliberately omits the manager-login header; it does not expand every manager descendant. Discover a manager hierarchy through the corresponding account query rather than assuming it is the same list.

## Prepare a pure query

Use **Build Google Ads Account Query** for customer or manager-customer-client discovery. **Build Google Ads Campaign Report** builds a bounded practical daily/totals query with date/status/campaign filtering and currency alongside micros. **Build Google Ads GAQL Request** wraps a deliberate custom single SELECT. Comment/semicolon batches are rejected; Google still validates field/resource compatibility.

GAQL is not SQL. Keep the complete query stable while resuming results. Inspect a synthetic request before executing a provider read.

## Full-page collection

**Search Google Ads Page** uses the REST Search endpoint. **Collect Google Ads Search Pages** accumulates complete pages within maxPages/maxRows. The provider's fixed pages may contain up to 10,000 rows; the adapter never sends the removed pageSize field.

It also does not cut a provider page and emit a cursor that would lose the discarded remainder. If a page exceeds the chosen bound, narrow the query or allow the full page. At an exact bound, complete:false with nextPageToken identifies further work. Repeated tokens fail. Provider-controlled token expiry and changing account data limit long-lived resume guarantees.

## Preserve identifiers and money

Campaign summaries retain exact integer-string IDs, impressions, clicks and costMicros. **Google Ads Micros to Decimal** produces a six-decimal string without floating-point rounding; BigInt is internal only and is not returned as invalid JSON. Currency conversion is not performed. Do not interpret micros as display currency or coerce large identifiers to imprecise numbers.

## Bounds and recovery

Google-family byte/output limits and bounded read retries apply. An exhausted quota or long Retry-After should schedule deliberate later work. A successful report is permission/query success for that account at that time; it does not demonstrate every manager child is authorized.

## Operations

- [Build Google Ads GAQL Request](/wiki/reference-ads-build-query/): Wrap a deliberate single SELECT GAQL query with optional continuation. Reject comments/semicolon batches. This is not SQL and cannot mutate Ads. Field selectability and resource compatibility remain Google-validated. Returned objects are limited to 3
- [Build Google Ads Campaign Report](/wiki/reference-ads-build-campaignreport/): Build a useful campaign-performance query with daily/totals choice, explicit campaign status/ID selection, exact date clause and deterministic ordering. Includes currency beside micros; no campaign/budget changes. Returned objects are limited to 3 MB
- [Build Google Ads Account Query](/wiki/reference-ads-build-accountquery/): Build account identity or manager customer-client hierarchy queries. maxLevel bounds hierarchy depth. Accessible customer enumeration is a separate endpoint and lists direct OAuth access, not all descendants. Returned objects are limited to 3 MB UTF-
- [Search Google Ads Page](/wiki/reference-ads-search-page/): Read one Google Ads Search page using v26 by default. Fixed service page size; pageSize is intentionally absent. Keep the identical query when passing nextPageToken. OAuth access, developer token, customer and optional manager login ID have independe
- [Collect Google Ads Search Pages](/wiki/reference-ads-search-pages/): Collect full service pages with bounded page/row counts. Never truncate a page then emit a token that would lose its remainder: if a page would exceed maxRows, fail and request a wider bound/narrower query. At an exact boundary or maxPages, return co
- [List Google Ads Accessible Customers](/wiki/reference-ads-customers-list/): Read resource names of customers directly accessible to the OAuth principal. login-customer-id is deliberately omitted as the method ignores it. No customerId required; use an account/hierarchy query to explore a manager account after selection. Retu
- [Google Ads Micros to Decimal](/wiki/reference-ads-micros-decimal/): Convert signed integer micros text to an exact six-decimal string; for example 1234567 -> 1.234567. Preserves values beyond Number.MAX_SAFE_INTEGER and negative adjustments. Pure transformation. Returned objects are limited to 3 MB UTF-8 to leave ONF

Use the [shared setup guide](/wiki/integration-setup/) for credential boundaries and verification notes. All reference examples are synthetic; no account access is implied.

---

## Documentation provenance

- `../OpenNodeFlow-Library/work/google/SETUP.md`
- `../OpenNodeFlow-Library/docs/INTEGRATIONS.md`
- `docs/INTEGRATIONS-GOOGLE.md`

This page describes maintained source, not a live inventory or an authorization to perform actions.
