Ошибка при создании дополнительных ссылок: [EntityNotFound.INVALID_ID @ operations[0].operand.attributeValues[1].feedAttributeId]

56 views
Skip to first unread message

trso...@gmail.com

unread,
Feb 4, 2016, 3:15:42 PM2/4/16
to AdWords API Forum
Добрый день!
Отправляю запрос на сервис "adwords.google.com/api/adwords/cm/v201601/FeedItemService":

<?xml version="1.0" encoding="UTF-8"?>
   <soapenv:Header>
 <v20:RequestHeader>
     <v20:clientCustomerId>ххх-ххх-хххх</v20:clientCustomerId>
     <v20:developerToken>ххххххххххххх</v20:developerToken>
     <v20:userAgent>1cAdWords</v20:userAgent>
     <v20:validateOnly>false</v20:validateOnly>
     <v20:partialFailure>false</v20:partialFailure>
  </v20:RequestHeader>
   </soapenv:Header>
   <soapenv:Body>
      <v20:mutate>
         <v20:operations>
            <v20:operator>ADD</v20:operator>
            <v20:operand>
               <v20:feedId>33215479</v20:feedId>
               
               <v20:status>ENABLED</v20:status>
               <v20:attributeValues>
                  <v20:feedAttributeId>1</v20:feedAttributeId>
                  <v20:stringValue>Alle serien von 41zero42</v20:stringValue>
               </v20:attributeValues>
               <v20:attributeValues>
                  <v20:feedAttributeId>5</v20:feedAttributeId>
                  <v20:stringValues>http://tile.expert/de/catalogue/41zero42</v20:stringValues>
               </v20:attributeValues>
            </v20:operand>
         </v20:operations>
      </v20:mutate>
   </soapenv:Body>
</soapenv:Envelope>

В ответ получаю:

<?xml version="1.0"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<requestId>00052af2b71437a90ac470ea1504ed48</requestId>
<serviceName>FeedItemService</serviceName>
<methodName>mutate</methodName>
<operations>1</operations>
<responseTime>41</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>[EntityNotFound.INVALID_ID @ operations[0].operand.attributeValues[1].feedAttributeId]</faultstring>
<detail>
<message>[EntityNotFound.INVALID_ID @ operations[0].operand.attributeValues[1].feedAttributeId]</message>
<ApplicationException.Type>ApiException</ApplicationException.Type>
<errors xsi:type="EntityNotFound" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fieldPath>operations[0].operand.attributeValues[1].feedAttributeId</fieldPath>
<trigger/>
<errorString>EntityNotFound.INVALID_ID</errorString>
<ApiError.Type>EntityNotFound</ApiError.Type>
<reason>INVALID_ID</reason>
</errors>
</ApiExceptionFault>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>

Подскажите пожалуйста, в чем может быть проблема?

Yin Niu

unread,
Feb 4, 2016, 9:09:21 PM2/4/16
to AdWords API Forum
Hello, 

FeedId: 33215479 has only 4 attributes

1: "CallPhoneNumber"
2: "CallCountryCode"
3: "CallCallTracking"
4: "CallConversionTypeId"

You are sending a feed attribute ID 5 for mutate in your request. Please use a FeedService.get() to retrieve and examine the feed attributes and add the missing attributes if applicable.

Thanks,
Yin, AdWords API Team. 

trso...@gmail.com

unread,
Feb 5, 2016, 7:41:39 AM2/5/16
to AdWords API Forum
FeedService.get() возвращает мне:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<requestId>00052b00e6e978400ac4ef244d05ac08</requestId>
<serviceName>FeedService</serviceName>
<methodName>get</methodName>
<operations>1</operations>
<responseTime>47</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body><getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201601">
<rvaltotalNumEntries>2</totalNumEntries>
<Page.Type>FeedPage</Page.Type>

<entries><id>33215479</id><name>Главный фид номеров телефонов</name></entries>
<entries><id>33223907</id><name>Главный фид дополнительных ссылок</name></entries>

</rval>
</getResponse>
</soap:Body>
</soap:Envelope>

Подскажите как мне изменить мой запрос FeedItemService.mutate()?



четверг, 4 февраля 2016 г., 23:09:21 UTC+2 пользователь Yin Niu написал:

Yin Niu

unread,
Feb 5, 2016, 3:17:02 PM2/5/16
to AdWords API Forum
Hello, 

You can list the attributes for FeedId: 33215479. As it only has 4 attributes, but you are trying to update the fifth attribute which doesn't exist. That's the reason why you are getting error. 

Thanks,
Yin, AdWords API Team

Kio Mat

unread,
Feb 5, 2016, 6:29:40 PM2/5/16
to AdWords API Forum
Хорошо, почему оно раньше работало? Недавно стало выдавать ошибку, были изменения в API?

пятница, 5 февраля 2016 г., 17:17:02 UTC+2 пользователь Yin Niu написал:

Yin Niu

unread,
Feb 5, 2016, 7:39:48 PM2/5/16
to AdWords API Forum
Hello, 

Could you print out the attributes for feedId 33215479 so that you can see why? If the feedAttribute does not exist, you cannot reference it by feedAttributeId. 

Kio Mat

unread,
Feb 5, 2016, 8:39:03 PM2/5/16
to AdWords API Forum
Спасибо! Понял свою ошибку. Решился вопрос!

пятница, 5 февраля 2016 г., 21:39:48 UTC+2 пользователь Yin Niu написал:
Reply all
Reply to author
Forward
0 new messages