Hi SL, You may find the following presentation from our AdWords API Workshop helpful:
http://www.slideshare.net/marcwan/adwords-api-feed-services Regarding the specific steps you mentioned: 1. Create sitelinks under an existing feed You can do this by constructing a FeedItemService.mutate <https://developers.google.com/adwords/api/docs/reference/v201402/FeedItemService#mutate> request consisting of a FeedItemOperation <https://developers.google.com/adwords/api/docs/reference/v201402/FeedItemService.FeedItemOperation> for each sitelink. The operation should have an *operator* of ADD and an *operand* set to a FeedItem <https://developers.google.com/adwords/api/docs/reference/v201402/FeedItemService.FeedItem> with its *feedId* set and its attributeValues <https://developers.google.com/adwords/api/docs/reference/v201402/FeedItemService.FeedItem#attributeValues> populated. 2. Associate a sitelink to an ad group You have two options here: if you want to associate the sitelinks with all ad groups in your campaign, then create a CampaignFeed via CampaignFeedService <https://developers.google.com/adwords/api/docs/reference/v201402/CampaignFeedService>. If you just want to associate the sitelinks with one specific ad group, then create an AdGroupFeed via AdGroupFeedService <https://developers.google.com/adwords/api/docs/reference/v201402/AdGroupFeedService>. Both objects are similar and will consist of: - the feed ID of the feed items - the campaign (or ad group) ID - a placeholder type collection (will just contain 1 for sitelinks <https://developers.google.com/adwords/api/docs/appendix/placeholders>) - a matching function that identifies the feed item IDs of the feed items you created in step 1 You could use the AddSiteLinks.cs example <https://github.com/googleads/googleads-adwords-dotnet-lib/blob/master/examples/adwords/CSharp/v201402/AdvancedOperations/AddSiteLinks.cs> for all of this with a few minor changes: 1. Instead of *createSiteLinksFeed* you could use a FeedService.get that retrieves the existing Feed and its attributes, and add that information to the *SiteLinksDataHolder* object. 2. In *createSiteLinksFeedItems*, modify the values to reflect the values for your sitelinks. 3. If you already have a FeedMapping for the feed, skip *createSiteLinksFeedMapping* altogether. 4. If you only want your sitelinks defined at the ad group level, create and call a method similar to *createSiteLinksCampaignFeed* that creates an *AdGroupFeed* instead. I realize this can all be a bit confusing - feel free to reply back if you still have questions. Cheers, Josh, AdWords API Team On Monday, June 9, 2014 2:52:51 PM UTC-4, SL wrote: > > I have been studying the v201402 c# examples for a number of days and I am > still at a loss for how to create sitelinks under an existing feed and how > to attach (or associate) a sitelink to an adgroup. If someone could post > code for either or both I would greatly appreciate it. > Thanks, > SL > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [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 --- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
