Skip to content

Google Ads

Google Ads

Google Ads is Google’s online advertising platform where advertisers create and manage ad campaigns displayed in search results, partner websites, and videos. With the Google Ads integration in SquadOS, your agents can automate campaign management, query performance metrics via GAQL, create and update customer lists for audience targeting, and run batch operations on ad groups and campaigns.

This tool uses OAuth 2.0 (OAUTH2) to connect.

You will need the following fields:

FieldRequiredDescription
customer_idYesThe Google Ads account (customer) ID that agents should operate on. Available in the Google Ads dashboard in the top-right corner.
  1. Go to Tools in the side menu (/admin/tools).
  2. Open the Available tab and search for Google Ads.
  3. Click the card to open the details and hit Connect.
  4. You’re taken to the secure connection page hosted by Composio, where you authorize access to your Google Ads account via OAuth.
  5. Once done, you’re sent back to SquadOS with the account connected and the tool available to agents. (Connection-flow details in Organization Tools.)

GOOGLEADS_ADD_OR_REMOVE_TO_CUSTOMER_LIST

AddOrRemoveToCustomerList Tool will add a contact to a customer list in Google Ads. Note: It takes 6 to 12 hours for changes to be reflected in the customer list. Email addresses must comply with Google Ads policies and applicable privacy/consent laws.

NameTypeRequiredDescription
emailsarrayYesArray of emails of the contacts to be added to the customer list. Emails must be valid, normalized strings (lowercase, trimmed); malformed addresses reduce match rates.
operationstringNoOperation to be performed on the customer list. Either "create" or "remove".
resource_namestringYesResource name of the customer list. For example: customers/1234567890/userLists/1234567890.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.

GOOGLEADS_CREATE_CUSTOMER_LIST

Creates a customer list in Google Ads. Note: Requires an authenticated Google Ads connection with customer_id configured. Email-based lists must comply with Google Ads policies and applicable privacy/consent laws. Membership updates can take many hours to propagate; targeting eligibility is not immediate after creation.

NameTypeRequiredDescription
namestringYesName of the customer list.
descriptionstringNoDescription of the customer list.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.

GOOGLEADS_GET_CAMPAIGN_BY_ID

GetCampaignById Tool returns details of a campaign in Google Ads. Requires an active Google Ads OAuth connection with the correct customer_id configured; missing or mismatched customer_id will cause empty results.

NameTypeRequiredDescription
idstringYesid of the campaign to search on GoogleAds.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.

GOOGLEADS_GET_CAMPAIGN_BY_NAME

Queries Google Ads via SQL to retrieve a campaign by its exact name. Requires an active Google Ads connection with valid customer_id and appropriate OAuth scopes.

NameTypeRequiredDescription
namestringYesName of the campaign to search on GoogleAds. Matched using exact SQL equality; paused or inactive campaigns may return no results — an empty result means no matching active campaign was found.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.

GOOGLEADS_GET_CUSTOMER_LISTS

GetCustomerLists Tool lists all customer lists (audience/remarketing lists) in Google Ads. These are user segments for targeting, not Google Ads accounts — list IDs are distinct from account IDs. When multiple lists share similar names, review all returned results before selecting one for downstream operations.

NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.

GOOGLEADS_LIST_ACCESSIBLE_CUSTOMERS

ListAccessibleCustomers retrieves all Google Ads customer accounts accessible to the authenticated user. Returns resource names of customers (e.g., customers/1234567890) that can be accessed with the current OAuth credentials. Use this action to discover which customer IDs are available before making other API calls, or to populate a dropdown of available accounts for the user to select from.

NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.

GOOGLEADS_MUTATE_AD_GROUPS

Create, update, or remove ad groups within Google Ads campaigns. Supports batch operations with multiple ad group changes in a single request. Use when you need to manage ad groups programmatically, such as creating new ad groups for campaigns, updating ad group settings or status, or removing ad groups that are no longer needed. This action is irreversible for remove operations — deleted ad groups cannot be recovered once removed.

NameTypeRequiredDescription
operationsarrayYesList of ad group operations (create, update, or remove). At least one operation is required.
validate_onlybooleanNoIf true, validates the request without executing. Useful for testing before making actual changes.
partial_failurebooleanNoIf true, valid operations succeed even if other operations fail. Defaults to false.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.

GOOGLEADS_MUTATE_CAMPAIGNS

Create, update, or remove Google Ads campaigns in batch. Supports multiple operations (create, update, remove) in a single request. Use when managing campaign lifecycle, applying bulk changes, or automating campaign management workflows. This action is irreversible for remove operations — deleted campaigns cannot be recovered. Plan accordingly and consider using validate_only=true to test changes before applying them.

NameTypeRequiredDescription
operationsarrayYesList of campaign operations to perform. Each operation can be create, update, or remove. At least one operation is required.
validate_onlybooleanNoIf true, validates the request without executing. Useful for testing before making actual changes.
partial_failurebooleanNoIf true, valid operations succeed even if others fail. Partial failures will be reported in the response.
response_content_typestringNoWhether to return full resource or just resource name. Options: 'RESOURCE_NAME_ONLY' or 'MUTABLE_RESOURCE'.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.

GOOGLEADS_SEARCH_STREAM_GAQL

Execute a Google Ads Query Language (GAQL) query and stream all results in a single response. This method is more efficient than paginated search for bulk data retrieval of campaigns, ad groups, and performance metrics (clicks, impressions, cost). Use this action when you need the entire result set without pagination. Results are returned as a single response containing all matching rows.

NameTypeRequiredDescription
querystringYesThe Google Ads Query Language (GAQL) query string. Must follow SELECT … FROM … WHERE … format. Example: SELECT campaign.name, campaign.id, metrics.impressions FROM campaign WHERE campaign.status = 'ENABLED'.
summary_row_settingstringNoWhether to include a summary row with aggregated metrics. Use 'UNSPECIFIED' for default, 'DONOT_POST' to skip summary, or 'GENERATE' to include it.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.