Hi Jouyce, I'm not missing it, here is this part from my example: // now we need to map this feed according to $type $feedMappingService = $user->GetService('FeedMappingService', self:: ADWORDS_VERSION); // Map the FeedAttributeIds to the fieldId constants. $textFieldMapping = new \AttributeFieldMapping(); $textFieldMapping->feedAttributeId = $savedFeed->attributes[0]->id; $textFieldMapping->fieldId = 1; $feedMapping = new \FeedMapping(); $feedMapping->placeholderType = $placeholderType; $feedMapping->feedId = $savedFeed->id; $feedMapping->attributeFieldMappings = [$textFieldMapping]; $operation = new \FeedMappingOperation(); $operation->operand = $feedMapping; $operation->operator = 'ADD'; $operations = [$operation]; // Save the field mapping. $result = self::mutate($feedMappingService, $operations); (I store placeholder types in constants which I then assign to variable $placeholderType). I create extension with first request and then I create mapping with second because I need feed ID which I get from result: $result = self::mutate($feedService, $operations); $savedFeed = $result->value[0]; That is standard approach, just wanted to clarify that I am doing it as well. Thanks for your reply but unfortunately this is not the case. Alex
вторник, 24 мая 2016 г., 0:35:03 UTC+3 пользователь Joyce Lava написал: > > Hi Alex, > > Structure Snippet Feed can be created by using FeedService and > ExtensionSettingService. I saw in your code that you're using the > FeedService to create it. However, you're missing the part where you need > to map the feed to placeholder fields > <https://developers.google.com/adwords/api/docs/guides/feed-services#feedmappingservice> > . > > You need to use PlaceHolderType ID as 24 > <https://developers.google.com/adwords/api/docs/appendix/placeholders#structured-snippets> > for > Structured Snippet Feed using FeedService > <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201603/Extensions/AddSitelinksUsingFeeds.php>. > > You may also refer on the ExtensionSettingService > <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201603/Extensions/AddSitelinks.php> > example. > Please let me know if the problem is resolved after trying these. > > Thanks and Regards, > Joyce, 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/e9b55086-2955-438c-8f52-3303cf7cdf7b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.