Thanks - I can confirm this works. Below is the code snippet (if interested).
public function buildSitelinkFeedItem(FeedItem $feed_item) { $attributes = $feed_item->getAttributeValues(); $sitelink_feed_item = new SitelinkFeedItem(); $sitelink_feed_item->setFeedId($feed_item->getFeedId()); $sitelink_feed_item->setFeedItemId($feed_item->getFeedItemId()); return $sitelink_feed_item; } On Tuesday, 7 February 2017 14:14:35 UTC-8, Shwetha Vastrad (AdWords API Team) wrote: > > Hi Danny, > > I'm afraid you cannot pass the FeedItem objects returned in the response > from the FeedItemService to add existing sitelinks. To add an existing > sitelink to a campaign, you need to provide the FeedId > <https://developers.google.com/adwords/api/docs/reference/v201609/CampaignExtensionSettingService.SitelinkFeedItem#feedid> > and > the FeedItemId > <https://developers.google.com/adwords/api/docs/reference/v201609/CampaignExtensionSettingService.SitelinkFeedItem#feeditemid> > in > the SitelinkFeedItem > <https://developers.google.com/adwords/api/docs/reference/v201609/CampaignExtensionSettingService.SitelinkFeedItem> > object. > You need not populate the rest of the feed item attributes. You can > retrieve the FeedId and FeedItemId using FeedService > <https://developers.google.com/adwords/api/docs/reference/v201609/FeedService> > and FeedItemService > <https://developers.google.com/adwords/api/docs/reference/v201609/FeedItemService> > respectively. > > Let me know if this works. > > Regards, > Shwetha, AdWords API Team. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/d63b342b-21a5-4951-b5a3-453ad6b11247%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.