Google Ads

Query campaigns, ad groups, and performance metrics

Google Ads is Google's online advertising platform that lets businesses create ads to reach customers across Google Search, YouTube, Gmail, and millions of partner websites. It supports campaign types including Search, Display, Video, Shopping, and Performance Max, with detailed targeting, bidding strategies, and performance analytics.

In Sim, the Google Ads integration enables your agents to query campaign data, monitor ad group performance, and pull detailed metrics using the Google Ads Query Language (GAQL). This supports use cases such as automated performance reporting, budget monitoring, campaign health checks, and data-driven optimization workflows. By connecting Sim with Google Ads, your agents can retrieve real-time advertising data and act on insights without manual dashboard navigation.

Usage Instructions

Connect to Google Ads to list accessible accounts, list campaigns, view ad group details, get performance metrics, and run custom GAQL queries.

Tools

List all Google Ads customer accounts accessible by the authenticated user

Input

ParameterTypeRequiredDescription
developerTokenstringYesGoogle Ads API developer token

Output

ParameterTypeDescription
customerIdsarrayList of accessible customer IDs
totalCountnumberTotal number of accessible customer accounts

Run a custom Google Ads Query Language (GAQL) query

Input

ParameterTypeRequiredDescription
customerIdstringYesGoogle Ads customer ID (numeric, no dashes)
developerTokenstringYesGoogle Ads API developer token
managerCustomerIdstringNoManager account customer ID (if accessing via manager account)
querystringYesGAQL query to execute
pageTokenstringNoPage token for pagination

Output

ParameterTypeDescription
resultsjsonArray of result objects from the GAQL query
totalResultsCountnumberTotal number of matching results
nextPageTokenstringToken for the next page of results

List campaigns in a Google Ads account with optional status filtering

Input

ParameterTypeRequiredDescription
customerIdstringYesGoogle Ads customer ID (numeric, no dashes)
developerTokenstringYesGoogle Ads API developer token
managerCustomerIdstringNoManager account customer ID (if accessing via manager account)
statusstringNoFilter by campaign status (ENABLED, PAUSED, REMOVED)
limitnumberNoMaximum number of campaigns to return

Output

ParameterTypeDescription
campaignsarrayList of campaigns in the account
idstringCampaign ID
namestringCampaign name
statusstringCampaign status (ENABLED, PAUSED, REMOVED)
channelTypestringAdvertising channel type (SEARCH, DISPLAY, SHOPPING, VIDEO, PERFORMANCE_MAX)
startDatestringCampaign start date (YYYY-MM-DD)
endDatestringCampaign end date (YYYY-MM-DD)
budgetAmountMicrosstringDaily budget in micros (divide by 1,000,000 for currency value)
totalCountnumberTotal number of campaigns returned

Get performance metrics for Google Ads campaigns over a date range

Input

ParameterTypeRequiredDescription
customerIdstringYesGoogle Ads customer ID (numeric, no dashes)
developerTokenstringYesGoogle Ads API developer token
managerCustomerIdstringNoManager account customer ID (if accessing via manager account)
campaignIdstringNoFilter by specific campaign ID
dateRangestringNoPredefined date range (LAST_7_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, TODAY, YESTERDAY)
startDatestringNoCustom start date in YYYY-MM-DD format
endDatestringNoCustom end date in YYYY-MM-DD format

Output

ParameterTypeDescription
campaignsarrayCampaign performance data broken down by date
idstringCampaign ID
namestringCampaign name
statusstringCampaign status
impressionsstringNumber of impressions
clicksstringNumber of clicks
costMicrosstringCost in micros (divide by 1,000,000 for currency value)
ctrnumberClick-through rate (0.0 to 1.0)
conversionsnumberNumber of conversions
datestringDate for this row (YYYY-MM-DD)
totalCountnumberTotal number of result rows

List ad groups in a Google Ads campaign

Input

ParameterTypeRequiredDescription
customerIdstringYesGoogle Ads customer ID (numeric, no dashes)
developerTokenstringYesGoogle Ads API developer token
managerCustomerIdstringNoManager account customer ID (if accessing via manager account)
campaignIdstringYesCampaign ID to list ad groups for
statusstringNoFilter by ad group status (ENABLED, PAUSED, REMOVED)
limitnumberNoMaximum number of ad groups to return

Output

ParameterTypeDescription
adGroupsarrayList of ad groups in the campaign
idstringAd group ID
namestringAd group name
statusstringAd group status (ENABLED, PAUSED, REMOVED)
typestringAd group type (SEARCH_STANDARD, DISPLAY_STANDARD, SHOPPING_PRODUCT_ADS)
campaignIdstringParent campaign ID
campaignNamestringParent campaign name
totalCountnumberTotal number of ad groups returned

Get performance metrics for individual ads over a date range

Input

ParameterTypeRequiredDescription
customerIdstringYesGoogle Ads customer ID (numeric, no dashes)
developerTokenstringYesGoogle Ads API developer token
managerCustomerIdstringNoManager account customer ID (if accessing via manager account)
campaignIdstringNoFilter by campaign ID
adGroupIdstringNoFilter by ad group ID
dateRangestringNoPredefined date range (LAST_7_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, TODAY, YESTERDAY)
startDatestringNoCustom start date in YYYY-MM-DD format
endDatestringNoCustom end date in YYYY-MM-DD format
limitnumberNoMaximum number of results to return

Output

ParameterTypeDescription
adsarrayAd performance data broken down by date
adIdstringAd ID
adGroupIdstringParent ad group ID
adGroupNamestringParent ad group name
campaignIdstringParent campaign ID
campaignNamestringParent campaign name
adTypestringAd type (RESPONSIVE_SEARCH_AD, EXPANDED_TEXT_AD, etc.)
impressionsstringNumber of impressions
clicksstringNumber of clicks
costMicrosstringCost in micros (divide by 1,000,000 for currency value)
ctrnumberClick-through rate (0.0 to 1.0)
conversionsnumberNumber of conversions
datestringDate for this row (YYYY-MM-DD)
totalCountnumberTotal number of result rows

On this page

Start building today
Trusted by over 70,000 builders.
Build Agentic workflows visually on a drag-and-drop canvas or with natural language.
Get started