OverviewProductsPlatformsAPI ReferenceResources
All platforms

Google Ads

Advertising

Create Search, Display, Performance Max and Demand Gen campaigns, mine keywords, upload Customer Match lists, send conversions, manage goals, labels and MCC links, apply recommendations and query GAQL.

Authentication details

Connecting accounts guide
How to connect

Connect endpoints

Read the full connect steps in the guide

On a googleads account you can:

  • create Google Search, Display, Performance Max and Demand Gen campaigns with POST /v1/ads/create
  • read keywords and run Keyword Planner
  • choose what Google bids on with conversion goals
  • organize accounts with labels and manager (MCC) links
  • apply or dismiss Google's optimization recommendations
  • query anything Google's reporting can answer with the Insights endpoints

Quick reference

PropertyValue
HierarchyCampaign > Ad Group > Ad (created in one call)
Campaign types (create)Search (Responsive Search Ads), Display (Responsive Display Ads), Performance Max (asset groups), Demand Gen (image, video and carousel ads)
Goals (`goal`)engagement, traffic, awareness. video_views and conversion goals are rejected at create with a 422
Keyword targetingBroad, phrase, exact; synced keyword list plus Keyword Planner
InsightsRolled-up metrics on /ads/tree plus raw GAQL passthrough (see Insights and GAQL)
Discovered campaignsAll types sync into /ads/tree with metrics, including Performance Max
AudiencesCustomer Match (create plus member upload)
Conversions APIData Manager API (click ids plus Enhanced Conversions for Leads), EEA/UK consent
Conversion goalsAccount, campaign and custom goals; primary or secondary actions
RecommendationsList with estimated impact, apply (suggested or custom values) and dismiss, up to 100 per call
Account managementManager (MCC) hierarchy, manager-link invitations, labels on campaigns, ad groups, ads and keywords
URL tracking tagsCampaign-level trackingUrlTemplate plus finalUrlSuffix (read and update)
Search ad text15 headlines (30 characters) and 4 descriptions (90 characters)
Display imagesLandscape 1.91:1 and square 1:1 both required, JPEG or PNG, 5120 KB

Before you start

Google Ads uses a dedicated OAuth connection, separate from YouTube and Google Business Profile.

You need a Google Ads account (the customer id, from List ad accounts). Accounts under an MCC manager work too.

There is no MCC or Standard Access application on your side. Zernio operates under its own approved developer token.

To see how the accounts behind a connection nest under managers, read the manager hierarchy.

Display campaigns need 2 images. Google's Responsive Display Ads require both a landscape (1.91:1) and a square (1:1) marketing image.

Sending only one is rejected upstream with NOT_ENOUGH_SQUARE_MARKETING_IMAGE_ASSET.

Zernio's developer token holds Standard access, so there is no daily operations cap.

User-driven live calls (GAQL, search terms, Keyword Planner, keyword and other writes) pass a per-user burst limit of 15 requests a minute. See Quotas and the ops budget.

Connect

Call GET /v1/connect/googleads/ads with profileId (Connect ads).

Google Ads is a standalone connection with no parent posting account. The first time, the response always carries an authUrl. Send the user there, as in the connecting accounts guide.

Once connected, the same call returns alreadyConnected: true with the accountId.

Terminal
curl "https://zernio.com/api/v1/connect/googleads/ads?profileId=66a1f0c2a4b9d3e8f1a2b3c4&redirect_url=https://myapp.com/callback" \
  -H "Authorization: Bearer $ZERNIO_API_KEY"

Response (200), the first time:

JSON
{
  "authUrl": "https://accounts.google.com/o/oauth2/v2/auth?client_id=...",
  "state": "..."
}

Response (200), once the profile already has a googleads account:

JSON
{
  "alreadyConnected": true,
  "accountId": "66b2e19d8c3f5a7e9d0b1c2d",
  "platform": "googleads",
  "username": "Acme Search",
  "displayName": "Google Ads (Acme Search)"
}

Branch on alreadyConnected: when it is there, skip the redirect and use accountId. The two shapes never arrive together.

The connection requests 2 scopes (scopes):

ScopeWhat it enables
https://www.googleapis.com/auth/adwordsFull Google Ads API access: campaigns, ad groups, ads, reporting, conversions
https://www.googleapis.com/auth/datamanagerData Manager API: Customer Match audience uploads

Zernio's adSetId is the Google ad group id. On Meta the same field is an ad set, on LinkedIn a campaign.

adAccountId is the customer id without dashes.

Common errors

Connecting is where this page's own errors live. The per-job pages carry the rest, and Limits and errors collects the recurring ones.

ErrorCauseFix
Redirect with error=google_ads_auth_failedThe user declined the Google consent screen, or the token exchange failedRestart the connect flow. Google's own string arrives in error_message.
Redirect with error=google_ads_quota_exhaustedGoogle's shared API quota ran out during the flowRetry the connect flow later.
429 on List ad accountsGoogle throttled the shared token or your account, so the call fails rather than returning an empty listRetry after details.resetsAt (Quotas and the ops budget).
403 with code ads_addon_requiredThe team is on a legacy plan that does not include ads accessMove the team to usage-based billing, where every account includes ads (Pricing).

Error handling covers the envelope and the stable codes.

In this section

Create ads

Create a Google Search, Display or Performance Max campaign in one POST /v1/ads/create call, edit RSA headlines and descriptions with pinning, and manage sitelink, callout and structured-snippet assets.

Performance Max

Manage a Google Performance Max campaign's asset groups: read them with ad strength, add groups, edit URLs and status, link and unlink assets, and replace the retail listing-group tree.

Demand Gen

Create Google Demand Gen campaigns with image, video or carousel ads across YouTube, Discover and Gmail, add ad groups and ads, and edit creative, channels, audiences and targeting.

Targeting

Target Google campaigns by location, language, age, gender, income, interests and Customer Match lists, look up Google's ids, and change a live campaign's locations, languages and devices.

Keywords

Read the Search keywords your Google campaigns run, add keywords to an ad group, and research new ones with the Keyword Planner.

Customer Match

Create a Google Customer Match audience from a CRM email list with POST /v1/ads/audiences and a hashed member upload.

Insights & GAQL

Read rolled-up Google Ads metrics from the campaign tree, and run any read-only GAQL query with GET /v1/ads/insights.

Conversions

Import offline and enhanced conversions into Google Ads through the Data Manager API with POST /v1/events, and choose which conversions Google bids on with account, campaign and custom conversion goals.

Google Tag

Read or switch on a Google Ads account's Google tag, manage its website conversion actions and auto-tagging, check conversion counts, and install it on Shopify or WordPress.

URL tracking tags

Read and update a Google campaign's tracking template and final URL suffix through GET and PATCH /v1/ads/{adId}/tracking-tags.

Manage ads

Pause and resume Google campaigns, ad groups and ads, change a campaign's budget and bidding, rename ad groups, and delete any level.

Recommendations

Read Google's optimization recommendations for a Google Ads account with their estimated impact, apply them with Google's suggested values or your own, and dismiss the ones you do not want.

Accounts & labels

Read the Google Ads manager (MCC) hierarchy behind a connection, create client accounts under a manager, manage manager links, and organize campaigns, ad groups, ads and keywords with labels.

Limits and errors

The per-user burst limit and Google quota on live Google Ads calls, what the Google Ads API and Zernio's integration do not expose, and the errors Google returns most often.

Was this page helpful?

On this page