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.


On Wednesday, September 10, 2014 12:21:00 AM UTC+4, Jeff Johnson wrote:
>
> Hi Adwords Forum,
>
> This seems like a simple question, but I have to ask:
>
> According to this 
> <https://developers.google.com/adwords/api/docs/guides/working-with-objects>, 
> 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!
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6798b613-11a9-4e08-b7b6-378b3078b58a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to