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)
Can someone give me some pointers? Highly appreciated.
Hello,
Thank you for reaching the support. You could useĀ CampaignCriterionService.get() or the AdGroupCriterionService.get()Ā by selecting one of the criteria types available here.Ā You may use the CUSTOM_AFFINITYĀ or CUSTOM_INTENTĀ to pull the Custom Affinity or Custom Intent audience via API. If you are not seeing any data it might be that the account you are using might not have data. To verify this further, could you please share the complete request and response logs along with the client customer id of the account for me to investigate this further on my end?
P.S. Please use Reply privately to author option while sharing the details.
Regards,
Nikisha Patel, Google Ads API Team
Hello,
Could you please share the complete request and response logs along with the client customer idĀ for me to take a look into this further and investigate better?Ā
P.S. Please use Reply privately to author option while sharing the details.
Ā
Regards,
Nikisha Patel, Google Ads API Team
2 Jan |