Skip to main content
Google Ads logo

Overview

Add Google Ads to any ModuleX agent or workflow. Google Ads API integration covering GAQL reports across Campaigns, Ad Groups, Ads, and Customers; Customer Match list management; offline conversion uploads; and keyword idea generation against the REST API at googleads.googleapis.com.
Categories: Marketing & Advertising · Analytics · Business Services · Auth: OAuth2 · Actions: 10

Authentication

OAuth2 Authentication

Connect using Google OAuth2 (recommended). Requires a Google Ads API developer token in addition to the OAuth credentials.

Required Credentials

OAuth Configuration

  • Authorization URL: https://accounts.google.com/o/oauth2/v2/auth
  • Token URL: https://oauth2.googleapis.com/token
  • Scopes: https://www.googleapis.com/auth/adwords

Available Actions

Parameters

string
required
Login customer ID (the Manager Account ID used as login-customer-id header). Digits only, no dashes.
string
required
ID of the CRM-based customer list to update.
string
required
Email address of the contact to add.
string
Managed customer (client) ID. Defaults to account_id when omitted.

Response

Parameters

string
required
Login customer ID (login-customer-id header).
array
List of ad_group fields to select (e.g. ‘ad_group.id’, ‘ad_group.name’). Each element is a string; the ‘ad_group.’ prefix is auto-added if missing.
array
List of segments (e.g. ‘segments.date’). Each element is a string; the ‘segments.’ prefix is auto-added.
array
List of metric fields (e.g. ‘metrics.clicks’). Each element is a string; the ‘metrics.’ prefix is auto-added.
array
Optional list of ad_group IDs to filter by. Each element is a string (the numeric ID).
string
Date range constant: CUSTOM, TODAY, YESTERDAY, LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, THIS_WEEK_SUN_TODAY, THIS_WEEK_MON_TODAY, LAST_WEEK_SUN_SAT, LAST_WEEK_MON_SUN, LAST_BUSINESS_WEEK.
string
Custom range start (YYYY-MM-DD); required when date_range=CUSTOM.
string
Custom range end (YYYY-MM-DD); required when date_range=CUSTOM.
string
Field name to order results by.
string
Order direction: ASC or DESC. (Default: ASC)
integer
Maximum number of results to return.
string
Managed customer ID; defaults to account_id when omitted.

Response

Parameters

string
required
Login customer ID (login-customer-id header).
array
List of ad_group_ad fields to select (strings).
array
List of segments (strings).
array
List of metric fields (strings).
array
Optional list of ad IDs to filter by (strings).
string
Date range constant. See create_ad_group_report for valid values.
string
Custom range start (YYYY-MM-DD); required when date_range=CUSTOM.
string
Custom range end (YYYY-MM-DD); required when date_range=CUSTOM.
string
Field name to order results by.
string
Order direction: ASC or DESC. (Default: ASC)
integer
Maximum number of results to return.
string
Managed customer ID; defaults to account_id when omitted.

Response

Parameters

string
required
Login customer ID (login-customer-id header).
array
List of campaign fields to select (strings).
array
List of segments (strings).
array
List of metric fields (strings).
array
Optional list of campaign IDs to filter by (strings).
string
Date range constant. See create_ad_group_report for valid values.
string
Custom range start (YYYY-MM-DD); required when date_range=CUSTOM.
string
Custom range end (YYYY-MM-DD); required when date_range=CUSTOM.
string
Field name to order results by.
string
Order direction: ASC or DESC. (Default: ASC)
integer
Maximum number of results to return.
string
Managed customer ID; defaults to account_id when omitted.

Response

Parameters

string
required
Login customer ID (login-customer-id header).
string
required
Name of the user list.
string
required
Which UserList variant to create. One of: crmBasedUserList, ruleBasedUserList, logicalUserList, basicUserList, lookalikeUserList. Determines which fields list_type_data should populate.
object
Variant-specific payload. Merged under the list_type key. See https://developers.google.com/google-ads/api/reference/rpc/v21/UserList for the per-variant schema. (Default: {})
string
Optional description of the user list.
object
Additional top-level UserList fields to merge into the create payload (e.g. membershipLifeSpan). (Default: {})
string
Managed customer ID; defaults to account_id when omitted.

Response

Parameters

string
required
Login customer ID (login-customer-id header).
array
List of customer fields to select (strings).
array
List of segments (strings).
array
List of metric fields (strings).
array
Optional list of customer IDs to filter by (strings).
string
Date range constant. See create_ad_group_report for valid values.
string
Custom range start (YYYY-MM-DD); required when date_range=CUSTOM.
string
Custom range end (YYYY-MM-DD); required when date_range=CUSTOM.
string
Field name to order results by.
string
Order direction: ASC or DESC. (Default: ASC)
integer
Maximum number of results to return.
string
Managed customer ID; defaults to account_id when omitted.

Response

Parameters

string
required
Login customer ID (login-customer-id header).
string
required
Resource name to FROM-clause against (e.g. campaign, ad_group, ad_group_ad, customer).
array
List of resource fields to select (strings). The resource prefix is auto-added if missing.
array
List of segments (strings).
array
List of metric fields (strings).
array
Optional list of resource IDs to filter by (strings).
string
Date range constant. See create_ad_group_report for valid values.
string
Custom range start (YYYY-MM-DD); required when date_range=CUSTOM.
string
Custom range end (YYYY-MM-DD); required when date_range=CUSTOM.
string
Field name to order results by.
string
Order direction: ASC or DESC. (Default: ASC)
integer
Maximum number of results to return.
string
Managed customer ID; defaults to account_id when omitted.

Response

Parameters

string
required
Login customer ID (login-customer-id header).
string
required
Managed customer ID to run the request against (required by the keyword ideas service).
object
Body of the GenerateKeywordIdeasRequest. See https://developers.google.com/google-ads/api/reference/rpc/v22/KeywordPlanIdeaService/GenerateKeywordIdeas for the required structure (e.g. language, geoTargetConstants, keywordSeed). (Default: {})

Response

Response

Parameters

string
required
Login customer ID (login-customer-id header).
string
required
Name of the conversion action.
string
required
ConversionActionType enum value (e.g. UPLOAD_CLICKS, UPLOAD_CALLS, WEBPAGE). See https://developers.google.com/google-ads/api/reference/rpc/v21/ConversionActionTypeEnum.ConversionActionType.
object
Additional ConversionAction fields to merge into the create payload (e.g. category, status, valueSettings). (Default: {})
string
Managed customer ID; defaults to account_id when omitted.

Response

Limits & Quotas

  • Daily operations quota depends on the developer-token access level (Test, Basic, Standard). Standard tokens allow 15,000 operations/day initially. See https://developers.google.com/google-ads/api/docs/access-levels.
  • Customer Match lists typically take 6 to 12 hours to update after add_contact_to_list_by_email runs.
  • generate_keyword_ideas counts against the same quota and may be rate-limited per minute on Basic-access tokens.
  • Error model: non-2xx responses and timeouts are caught and returned as success=False + error rather than raising. The error string includes the API status code and body excerpt.

PostGrid

Ahrefs

Coinbase