I'm using the example code provided by the API team for adding a sitelink 
at the campaign level:

https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201309/advancedoperations/AddSiteLinks.java

and adapted it to try and add a sitelink at the adgroup level.  I basically 
changed the code between lines 286 to 302 and replaced a campaign related 
object with the AdGroup equivalent e.g.

*CampaignFeed *was replaced with *AdGroupFeed*
*CampaignFeedReturnValue *was replaced with *AdGroupFeedReturnValue*

etc.


However, when I run the code I get a NullPointerException at line 298.


Any ideas?


Oliver


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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 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/groups/opt_out.

Reply via email to