Get entities
GET/ad-publishing/google/entity
Retrieve Google campaigns, ad groups, or ads based on entity type
Request
Version stringrequired
API Version
Available options
v3locationId stringrequired
Location identifier
type stringrequired
Integration type
Available options
AD_MANAGERINTEGRATIONcampaignId string
Campaign identifier
adGroupId string
Ad group identifier
entityType stringrequired
Entity type
Available options
CAMPAIGNADGROUPADsearchId string
Comma-separated Google Ads IDs to filter by
startDate string
Filter start date
endDate string
Filter end date
selectedAdAccountId string
Selected ad account ID
A { data } envelope whose items follow entityType — campaigns, ad groups, or ads
- application/json
- Schema
- Example (auto)
Schema
dataobject[]
{
"data": [
{
"resourceName": "customers/6776452901/campaigns/22173400513",
"id": "22173400513",
"name": "Spring promotion",
"status": "PAUSED"
},
{
"resourceName": "customers/6776452901/adGroups/175603784313",
"id": "175603784313",
"name": "Ad Group 1",
"status": "ENABLED"
},
{
"resourceName": "customers/6776452901/ads/730847006298",
"id": "730847006298",
"name": "Ad - 730847006298",
"type": "RESPONSIVE_SEARCH_AD"
}
]
}