Hello Sanju,
As the error states you need to specify the list of fields you would like to
get back, for example:
selector.setFields(new String[] {"Id", "AdGroupId"});
Check out the example for more details:
http://code.google.com/p/google-api-adwords-java/source/browse/trunk/examples/v201101/GetAllAdGroupCriteria.java
The list of possible fields could be found here:
http://code.google.com/apis/adwords/docs/appendix/selectorfields.html#v201101-AdGroupCriterionService
-Danial, AdWords API Team.
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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