Hi, Please see another thread<https://groups.google.com/d/msg/adwords-api/8kmQ8TfjEb4/yJWDtcT59GIJ> .
Best, - Takeshi On Friday, August 16, 2013 10:03:16 PM 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.