AACFlow

Google Ads

Query campaigns, ad groups, and performance metrics

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

Input

ParameterTypeRequiredDescription
developerTokenstringYesNo description

Output

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

Input

ParameterTypeRequiredDescription
customerIdstringYesNo description
developerTokenstringYesNo description
managerCustomerIdstringNoNo description
querystringYesNo description
pageTokenstringNoNo description

Output

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

Input

ParameterTypeRequiredDescription
customerIdstringYesNo description
developerTokenstringYesNo description
managerCustomerIdstringNoNo description
statusstringNoNo description
limitnumberNoNo description

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

Input

ParameterTypeRequiredDescription
customerIdstringYesNo description
developerTokenstringYesNo description
managerCustomerIdstringNoNo description
campaignIdstringNoNo description
dateRangestringNoPredefined date range (LAST_7_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, TODAY, YESTERDAY)
startDatestringNoNo description
endDatestringNoNo description

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

Input

ParameterTypeRequiredDescription
customerIdstringYesNo description
developerTokenstringYesNo description
managerCustomerIdstringNoNo description
campaignIdstringYesNo description
statusstringNoNo description
limitnumberNoNo description

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

Input

ParameterTypeRequiredDescription
customerIdstringYesNo description
developerTokenstringYesNo description
managerCustomerIdstringNoNo description
campaignIdstringNoNo description
adGroupIdstringNoNo description
dateRangestringNoPredefined date range (LAST_7_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, TODAY, YESTERDAY)
startDatestringNoNo description
endDatestringNoNo description
limitnumberNoNo description

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 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started