How to; Filter out dynamic campaigns when fetching all display campaigns

44 views
Skip to first unread message

Noud Adrichem

unread,
May 12, 2020, 11:08:45 AM5/12/20
to AdWords API and Google Ads API Forum
I'm trying to filter out all 'dynamic' campaigns while fetching all display campaigns. 

I can't seem to find any 'dynamic' related attributes/properties on the Campaign entity (https://developers.google.com/adwords/api/docs/reference/v201809/CampaignService.Campaign)

I then tried to match feeds campaign IDs from CampaignFeedService to the actual campaign IDs but this has 2 big down sides. 

    1. For some reason when a campaign has a data feed it doesn't always show up in the CampaignFeedService. Which makes this method very unreliable.
    2. It needs 2 separate requests to the API and is therefore very slow. (about 5 times slower than only using CampaignService) 

I was hoping there is some sort of predicate filter to filter out dynamic feeds but until now I did not find any...

This is my selector:

{
fields: [
'Id',
'Name',
'Status',
// 'Settings',
// 'AdvertisingChannelType',
// 'AdvertisingChannelSubType',
// 'Labels',
],
predicates: [
{
field: 'AdvertisingChannelType',
operator: 'EQUALS',
values: 'DISPLAY'
},
]
}

Google Ads API Forum Advisor Prod

unread,
May 12, 2020, 3:25:34 PM5/12/20
to no...@bannerwise.io, adwor...@googlegroups.com
Hello,

You can run the Placeholder Report which will break data down on the placeholder type level. You can include campaign related fields to see if the campaigns include those placeholder types.

Regards,
Anthony
Google Ads API Team

ref:_00D1U1174p._5004Q1zLWR0:ref

Noud Adrichem

unread,
May 20, 2020, 11:30:17 AM5/20/20
to AdWords API and Google Ads API Forum
So in a sense you have to check if the campaign contains a feed "dynamic advertising in campaign settings." and if the campaign contains a feed it's a dynamic campaign? 

P.S.
If this is true wouldn't this be a bit redundant. I'm using the Google Ads API now instead of the Adwords. And can't seem to find any other way than what you're suggesting.
The bad thing imo is that you have to chain fetches which makes the service very slow..

Op dinsdag 12 mei 2020 17:08:45 UTC+2 schreef Noud Adrichem:

Google Ads API Forum Advisor Prod

unread,
May 20, 2020, 3:51:14 PM5/20/20
to no...@bannerwise.io, adwor...@googlegroups.com
Hi,

Yes, that is correct. Let me know if you run into any issues.
Reply all
Reply to author
Forward
0 new messages