Добрый день, столкнулся с проблемой добавления больше одной доп ссылки для
группы объявлений.
Сначала создавал 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 [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].
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/fa0b5e64-bdf2-41fd-ba56-3ab26a6f79c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.