I'm trying to fetch the audiences (Custom intent, Custom affinity) of all my enabled google display campaigns.
I thought I can get it through the CampaignCriterionService
, but the returned data is empty.
campaign_criterion_service = ADWORDS_CLIENT.GetService(
'CampaignCriterionService', version='v201809')
selector = {
'fields': ['CampaignId', 'Id', 'CriteriaType', "PlacementUrl",
'KeywordText', "ChannelName", "AppId", "DisplayName", "CampaignStatus", "CampaignName"],
'predicates': [{
'field': 'CriteriaType',
'operator': 'IN',
'values': [
'CUSTOM_AFFINITY',
'CUSTOM_INTENT'
]
},
{
'field': 'CampaignStatus',
'operator': 'IN',
'values': [
'ENABLED'
]
}
],
'paging': {
'startIndex': 0,
'numberResults': 500
}
}
page = campaign_criterion_service.get(selector)
Any clues?
You are searching for ways to to report your results, read about reporting with google adwords . The recommended way of using this with the python lib is described Here .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.