Thanks! I am using JAVA api, what is easiest way to capture 
request/response log? 

On Tuesday, 18 March 2014 21:22:56 UTC, Ray Tsang (AdWords API Team) wrote:
>
> Dan,
>
> Could I trouble you to send me the request/response log (minus any 
> sensitive information) using the Reply to Author feature?
>
> Cheers,
>
> Ray
>
> On Tuesday, March 18, 2014 10:34:49 AM UTC-4, Dan wrote:
>>
>>
>> This is my code which I am using to pull KeyWords:
>>
>> public List<Keyword> getAdGroupKeyWords(Long adGroupId) throws 
>> ApiException, RemoteException{
>>  int PAGE_SIZE = 100;
>>     int offset = 0;
>>     boolean morePages = true;
>>
>>     SelectorBuilder builder = new SelectorBuilder();
>>     Selector selector = builder
>>         .fields("Id", "AdGroupId", "MatchType", "KeywordText")
>>         .orderAscBy("AdGroupId")
>>         .offset(offset)
>>         .limit(PAGE_SIZE)
>>         .in("AdGroupId", adGroupId.toString())
>>         .equals("CriteriaType", "KEYWORD")
>>         .build();
>>     
>>     List<Keyword> adGroupPages = new ArrayList<Keyword>();
>>     
>>     while (morePages) {
>>         AdGroupCriterionPage page = adGroupCriterionService.get(selector);
>>         if (page.getEntries() != null && page.getEntries().length > 0) {
>>          for(AdGroupCriterion adGroupCriterion : page.getEntries()){
>>          adGroupPages.add(((Keyword)adGroupCriterion.getCriterion()));
>>          }
>>         offset += PAGE_SIZE;
>>         selector = builder.increaseOffsetBy(PAGE_SIZE).build();
>>         morePages = offset < page.getTotalNumEntries();
>>         }
>>     }
>>     
>>     return adGroupPages;
>>  }
>>
>> I've created 1 key word but it always return 3 absolutely same objects. 
>> First I thought that it 3 different match types, but no all of them 
>> identical. Why? 
>>
>

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

Reply via email to