Pulling a list of creatives

19 views
Skip to first unread message

Jeff Johnson

unread,
Sep 9, 2014, 4:21:00 PM9/9/14
to adwor...@googlegroups.com
Hi Adwords Forum,

This seems like a simple question, but I have to ask:

According to this, ad ids are unique within an adgroup and adgroup ids are globally unique. If I were to have a list of adgroupid and creativeid pairs, then there's no way to select exactly those creatives in a single call to the AdGroupAd service correct?

For example, say I want to select two ads:
AdgroupId, CreativeId
1,3
2,4

Then I could use the predicates value: (python)
[{field: 'Id', 'operator': 'IN', 'values': ['1','3',...]},
 {field: 'AdGroupId', 'operator': 'IN', 'values': ['2','4',...]}]

but this would return these ads (if they exist)
AdgroupId, CreativeId
1,3
1,4
2,4
2,3

Do I just need to filter this out on the client side? Or should I just make a different request for each ad? This seems like something that should be simple to do.

Thanks!

Danial Klimkin

unread,
Sep 10, 2014, 6:22:04 AM9/10/14
to adwor...@googlegroups.com
Hello Jeff,


Correct. Depending on the number of collisions, you may prefer multiple requests or filtering on the client side.

I'd go for the client-side filtering as generally I expect the number of different ad groups (and thus requests) to be large.


-Danial, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages