Hey Jerry -
Have you tried the "IN" predicate selector? I am pretty sure that will
give you what you want. ie:
Predicate predicate = new Predicate();
predicate.setField("AdGroupId");
predicate.setOperator(PredicateOperator.IN);
predicate.setValues(new String[]{adGroupId1, adGroupId2,
adGroupId3} );
HTH -
mm
On Apr 26, 3:20 pm, JB <[email protected]> wrote:
> I'm having a bit of trouble figuring out how to migrate to the new generic
> selector structure in v201101. Basically I have a method that needs to get a
> large list of keywords, many of those are in different ad groups. Using the
> old structure, I would define a AdGroupIdFilterObject for each keyword and
> assign the adGroupId and criterionId to that object. Then I would just pass
> the array of AdGroupCriterionIdFilter objects to the selector and retrieve
> the keywords - all in a single call.
>
> Since predicates are limited to one field, there doesn't seem to be a way to
> accomplish this without creating a separate call for each adGroupId. If you
> pass in multiple predicates in a single call (an array of adGroupIds and an
> array of criterionIds), I assume the system won't be able to match the
> criterionId's with their respective adGroupId's.
>
> Am I missing something?
>
> Thanks,
>
> Jerry
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en