Hi, As we announced here<http://googleadsdeveloper.blogspot.jp/2013/05/adwords-api-upgrading-your-ad-extensions.html>, now we have upgraded extensions. Those can be managed via Feed Services (please see this guide<https://developers.google.com/adwords/api/docs/guides/upgrading-ad-extensions> ). Legacy sitelink extensions (can be managed via CampaignAdExtension) will be no longer available after September 23 as also announced in the same post.
So it isn't direct answer for your question, but I highly recommend you to go through the guide and use upgraded extensions moving forward. Best, - Takeshi, AdWords API Team On Friday, August 16, 2013 6:26:14 AM UTC+9, Heidi Schuster wrote: > > > Hi there, I have managed to add a sitelink to a campaign using the > following code: > > Sitelink[] links = new Sitelink[]{new Sitelink("API TEST", " > http://bla.com")}; > SitelinksExtension se = new SitelinksExtension(); > se.setSitelinks(links); > > CampaignAdExtension ad = new CampaignAdExtension(); > ad.setCampaignId(131958273L); > ad.setAdExtension(se); > CampaignAdExtensionOperation[] ops = new > CampaignAdExtensionOperation[]{new > CampaignAdExtensionOperation(Operator.ADD, null, ad)}; > > CampaignAdExtensionServiceInterface service = > adWordsUser.getService(AdWordsService.V201302.CAMPAIGN_AD_EXTENSION_SERVICE); > CampaignAdExtensionReturnValue result = service.mutate(ops); > > > However when I do the same thing using AdExtensionOverrideServiceInterface > I am getting an error on SitelinksExtension.id: > > [AdExtensionOverrideError.INVALID_ADEXTENSION_ID @ operations[0]. > operand.adExtension.id; trigger:'<null>'] > > I am adding the sitelink so it shouldn't be complaining that the id is > null. If I set the id to a value it tells me it is invalid. > > Also the sitelink that was added to the campaign shows as '(Not > upgraded)'. Why is that? > > > thank you, > Heidi > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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.