How to Get Keyword User status in v201402

2014-06-16 Thread sathik jack
I am trying to get Keyword user status in V201402 using following method, 
but i am getting error ? Please provide a suggestion.

Selector selector = builder
.fields(Id, AdGroupId, KeywordMatchType, 
KeywordText,Status)
.orderAscBy(AdGroupId)
.offset(offset)
.limit(PAGE_SIZE)
.in(AdGroupId, adGroupId.toString())
.equals(CriteriaType, KEYWORD)
.equals(CriterionUse,BIDDABLE)
.equals(Status,ACTIVE)
.build();

if (page.getEntries() != null  page.getEntries().length  0) {
// Display results.
for (AdGroupCriterion adGroupCriterionResult : page.getEntries()) {
  System.out.println(Keyword ad group criterion with ad group id 
\
  + adGroupCriterionResult.getAdGroupId() + \, criterion id 
\
  + adGroupCriterionResult.getCriterion().getId() + \, text 
\
  + ((Keyword) adGroupCriterionResult.getCriterion()).getText()
  + \ and match type \
  + ((Keyword) 
adGroupCriterionResult.getCriterion()).getMatchType() + 
adGroupCriterionResult.getuserStatus()+  \ was found.);
 }



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.


Re: How to Get Keyword User status in v201402

2014-06-16 Thread Danial Klimkin
Hello,


What is the error you are receiving?


-Danial, AdWords API Team.

On Saturday, June 14, 2014 8:23:54 AM UTC+4, sathik jack wrote:

 I am trying to get Keyword user status in V201402 using following method, 
 but i am getting error ? Please provide a suggestion.

 Selector selector = builder
 .fields(Id, AdGroupId, KeywordMatchType, 
 KeywordText,Status)
 .orderAscBy(AdGroupId)
 .offset(offset)
 .limit(PAGE_SIZE)
 .in(AdGroupId, adGroupId.toString())
 .equals(CriteriaType, KEYWORD)
 .equals(CriterionUse,BIDDABLE)
 .equals(Status,ACTIVE)
 .build();

 if (page.getEntries() != null  page.getEntries().length  0) {
 // Display results.
 for (AdGroupCriterion adGroupCriterionResult : page.getEntries()) {
   System.out.println(Keyword ad group criterion with ad group id 
 \
   + adGroupCriterionResult.getAdGroupId() + \, criterion id 
 \
   + adGroupCriterionResult.getCriterion().getId() + \, text 
 \
   + ((Keyword) adGroupCriterionResult.getCriterion()).getText()
   + \ and match type \
   + ((Keyword) 
 adGroupCriterionResult.getCriterion()).getMatchType() + 
 adGroupCriterionResult.getuserStatus()+  \ was found.);
  }





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.