Добрый день,

Возможно создание только одного маппинга между AdGroupId и FeedId. Вместо 
добавления нового, вам нужно обновить имеющийся и добавить новый feedItemId 
в список rhsOperand.


-Даниил, команда AdWords API.



On Friday, February 13, 2015 at 5:00:20 PM UTC+3, treto...@gmail.com wrote:
>
> Добрый день, столкнулся с проблемой добавления больше одной доп ссылки для 
> группы объявлений.
> Сначала создавал Feed через FeedService, но так как их разрешено не более 
> 20 для компании остановлся на одном предопределенном: "Главный фид 
> дополнительных ссылок"
> Наполняю его данными(FeedItemService) потом сопоставляю 
> (FeedMappingService), потом пытаюсь добавить новую доп ссылку запросом вида:
> ...
> <v20:mutate>
>          <v20:operations xmlns:i="
> http://www.w3.org/2001/XMLSchema-instance";>
>             <v20:operator>ADD</v20:operator>
>             <v20:operand>
>                <v20:feedId>24098551</v20:feedId>
>                <v20:adGroupId>16034823433</v20:adGroupId>
>                <v20:matchingFunction>
>                   <v20:operator>IN</v20:operator>
>                   <v20:lhsOperand xmlns:ns2="
> https://adwords.google.com/api/adwords/cm/v201409"; 
> i:type="ns2:RequestContextOperand">
>                      <v20:contextType>FEED_ITEM_ID</v20:contextType>
>                   </v20:lhsOperand>
>                   <v20:rhsOperand xmlns:ns2="
> https://adwords.google.com/api/adwords/cm/v201409"; 
> i:type="ns2:ConstantOperand">
>                      <v20:type>LONG</v20:type>
>                      <v20:longValue>1092397511</v20:longValue>
>                   </v20:rhsOperand>
>                </v20:matchingFunction>
>                <v20:placeholderTypes>1</v20:placeholderTypes>
>                <v20:status>ENABLED</v20:status>
>             </v20:operand>
>          </v20:operations>
>       </v20:mutate>...
>
> в итоге если в группе нет еще дополнительной ссылки - она создается, иначе 
> получаю ошибку:
> [AdGroupFeedError.CANNOT_ADD_ALREADY_EXISTING_ADGROUP_FEED @ 
> operations[0].operand, 
> AdGroupFeedError.FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE @ 
> operations[0].operand.placeholderTypes; trigger:'AdGroup id:AdGroupId: 
> 16034823433,Placeholder Type: 1']
>
> Подскажите в чем может быть дело?
> Спасибо!
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/823f0afa-9bf7-493d-b2b2-93d666759da7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to