AptlyStar

Google Ads

Query campaigns, ad groups, and performance metrics

使用方法

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

ツール

List all Google Ads customer accounts accessible by the authenticated user

入力

パラメータ型必須説明
developerTokenstringはいGoogle Ads API developer token

出力

パラメータ型説明
customerIdsarrayList of accessible customer IDs
totalCountnumberTotal number of accessible customer accounts

Run a custom Google Ads Query Language (GAQL) query

入力

パラメータ型必須説明
customerIdstringはいGoogle Ads customer ID (numeric, no dashes)
developerTokenstringはいGoogle Ads API developer token
managerCustomerIdstringいいえManager account customer ID (if accessing via manager account)
querystringはいGAQL query to execute
pageTokenstringいいえPage token for pagination

出力

パラメータ型説明
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

入力

パラメータ型必須説明
customerIdstringはいGoogle Ads customer ID (numeric, no dashes)
developerTokenstringはいGoogle Ads API developer token
managerCustomerIdstringいいえManager account customer ID (if accessing via manager account)
statusstringいいえFilter by campaign status (ENABLED, PAUSED, REMOVED)
limitnumberいいえMaximum number of campaigns to return

出力

パラメータ型説明
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

入力

パラメータ型必須説明
customerIdstringはいGoogle Ads customer ID (numeric, no dashes)
developerTokenstringはいGoogle Ads API developer token
managerCustomerIdstringいいえManager account customer ID (if accessing via manager account)
campaignIdstringいいえFilter by specific campaign ID
dateRangestringいいえPredefined date range (LAST_7_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, TODAY, YESTERDAY)
startDatestringいいえCustom start date in YYYY-MM-DD format
endDatestringいいえCustom end date in YYYY-MM-DD format

出力

パラメータ型説明
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

入力

パラメータ型必須説明
customerIdstringはいGoogle Ads customer ID (numeric, no dashes)
developerTokenstringはいGoogle Ads API developer token
managerCustomerIdstringいいえManager account customer ID (if accessing via manager account)
campaignIdstringはいCampaign ID to list ad groups for
statusstringいいえFilter by ad group status (ENABLED, PAUSED, REMOVED)
limitnumberいいえMaximum number of ad groups to return

出力

パラメータ型説明
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

入力

パラメータ型必須説明
customerIdstringはいGoogle Ads customer ID (numeric, no dashes)
developerTokenstringはいGoogle Ads API developer token
managerCustomerIdstringいいえManager account customer ID (if accessing via manager account)
campaignIdstringいいえFilter by campaign ID
adGroupIdstringいいえFilter by ad group ID
dateRangestringいいえPredefined date range (LAST_7_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, TODAY, YESTERDAY)
startDatestringいいえCustom start date in YYYY-MM-DD format
endDatestringいいえCustom end date in YYYY-MM-DD format
limitnumberいいえMaximum number of results to return

出力

パラメータ型説明
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