Hello Kiran,

Can you send us the full XML of the request and complete server response? 
Please send directly over email ("Reply to author" on the right).


-Danial, AdWords API Team.


On Thursday, May 8, 2014 11:09:59 AM UTC+4, Kiran wrote:
>
> I am trying to fetch all the keywords in an AdGroup. In the result I am 
> getting every keyword 3 times (with same match type and ID). 
>
> Code:
>     Selector selector = new Selector();
>     selector.setFields(new String[] {"Id", "AdGroupId", "MatchType", 
> "KeywordText", "DestinationUrl", "Status"});
>     selector.setOrdering(new OrderBy[] {new OrderBy("AdGroupId", 
> SortOrder.ASCENDING)});
>     selector.setPaging(new Paging(offset, PAGE_SIZE));
>
>     // Create predicates.
>     Predicate adGroupIdPredicate =
>             new Predicate("AdGroupId", PredicateOperator.IN, new String[] 
> {adGroupId.toString()});
>     Predicate criteriaTypePredicate =
>             new Predicate("CriteriaType", PredicateOperator.EQUALS, new 
> String[] {"KEYWORD"});
>     selector.setPredicates(new Predicate[] {adGroupIdPredicate, 
> criteriaTypePredicate});
>
>      page = adGroupCriterionService.get(selector);
>
>
> But if I use AWQL, I don't see these duplicate entries. And the number of 
> results/keywords in this case are exactly 1/3rd of above.
>      adGroupCriterionService.query("SELECT KeywordText  WHERE 
> AdGroupId=346897530 ORDER BY Id DESC")
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to