EntityNotFound.INVALID_ID when setting ExtensionFeedItems using ExtensionSettingService

220 views
Skip to first unread message

JC Lee

unread,
Mar 24, 2017, 2:49:04 PM3/24/17
to AdWords API Forum
I have a peculiar issue which may be a bug with the API.

I am setting 2 AdGroupExtensionSettings within one API call containing 2 operations.

The first ad group already contains ExtensionFeedItems.

The second ad group was previously empty, in this operation I am adding a new ExtensionFeedItem.

The second operation triggers an error [EntityNotFound.INVALID_ID @ operations[1].operand.extensionSetting.extensions[1].feedItemId; trigger:'FeedItemId{id=11747797807}'] 

However, 11747797807 does exist and is also in the first ad group!

The weird thing about this is, both ad groups were previously empty or populated this error doesn't occur. Only when one was empty and the other was not.

I am pasting the soap body and error response below:

    
<SOAP-ENV:Body>
    <ns1:mutate>
        <ns1:operations>
            <ns1:operator>SET</ns1:operator>
            <ns1:operand>
                <ns1:adGroupId>40165941349</ns1:adGroupId>
                <ns1:extensionType>CALLOUT</ns1:extensionType>
                <ns1:extensionSetting>
                    <ns1:extensions xsi:type="ns1:CalloutFeedItem">
                        <ns1:feedItemId>10123934571</ns1:feedItemId>
                    </ns1:extensions>
                    <ns1:extensions xsi:type="ns1:CalloutFeedItem">
                        <ns1:feedItemId>11685414683</ns1:feedItemId>
                    </ns1:extensions>
                    <ns1:extensions xsi:type="ns1:CalloutFeedItem">
                        <ns1:feedItemId>11747797807</ns1:feedItemId>
                    </ns1:extensions>
                    <ns1:extensions xsi:type="ns1:CalloutFeedItem">
                        <ns1:feedItemId>12034677498</ns1:feedItemId>
                    </ns1:extensions>
                    <ns1:platformRestrictions>NONE</ns1:platformRestrictions>
                </ns1:extensionSetting>
            </ns1:operand>
        </ns1:operations>
        <ns1:operations>
            <ns1:operator>SET</ns1:operator>
            <ns1:operand>
                <ns1:adGroupId>40165941509</ns1:adGroupId>
                <ns1:extensionType>SITELINK</ns1:extensionType>
                <ns1:extensionSetting>
                    <ns1:extensions xsi:type="ns1:CalloutFeedItem">
                        <ns1:feedItemId>10161302851</ns1:feedItemId>
                    </ns1:extensions>
                    <ns1:extensions xsi:type="ns1:CalloutFeedItem">
                        <ns1:feedItemId>11747797807</ns1:feedItemId>
                        <ns1:feedType>CALLOUT</ns1:feedType>
                    </ns1:extensions>
                    <ns1:platformRestrictions>NONE</ns1:platformRestrictions>
                </ns1:extensionSetting>
            </ns1:operand>
        </ns1:operations>
    </ns1:mutate>
</SOAP-ENV:Body>

And the error response

<soap:Envelope
    <soap:Header>
        <ResponseHeader
            <requestId>00054b7e39d25f200a62a0c52b0036ee</requestId>
            <serviceName>AdGroupExtensionSettingService</serviceName>
            <methodName>mutate</methodName>
            <operations>8</operations>
            <responseTime>159</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>[EntityNotFound.INVALID_ID @ operations[1].operand.extensionSetting.extensions[1].feedItemId; trigger:'FeedItemId{id=11747797807}']</faultstring>
            <detail>
                <ApiExceptionFault
                    xmlns="https://adwords.google.com/api/adwords/cm/v201702">
                    <message>[EntityNotFound.INVALID_ID @ operations[1].operand.extensionSetting.extensions[1].feedItemId; trigger:'FeedItemId{id=11747797807}']</message>
                    <ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="EntityNotFound">
                        <fieldPath>operations[1].operand.extensionSetting.extensions[1].feedItemId</fieldPath>
                        <fieldPathElements>
                            <field>operations</field>
                            <index>1</index>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>operand</field>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>extensionSetting</field>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>extensions</field>
                            <index>1</index>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>feedItemId</field>
                        </fieldPathElements>
                        <trigger>FeedItemId{id=11747797807}</trigger>
                        <errorString>EntityNotFound.INVALID_ID</errorString>
                        <ApiError.Type>EntityNotFound</ApiError.Type>
                        <reason>INVALID_ID</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Mar 24, 2017, 5:07:00 PM3/24/17
to AdWords API Forum
Hi, 

Could you please confirm if the AdGroup feed mapping was present before you were trying to set the specific feed to the AdGroup? It looks like with the mapping missing, in spite of referencing the feed Item the request will fail. Could you please make this change and try again? Also, it would be advisable to pass the FeedId along with the FeedItemId.

Let me know how it goes.

Thanks,
Sreelakshmi, AdWords API Team

JC Lee

unread,
Mar 24, 2017, 5:34:57 PM3/24/17
to adwordsapiadvi...@google.com, AdWords API Forum
Hi,

I am using AdGroupExtensionsSettingService and not FeedServices. As far as I understand there's no need for feed mapping with that service.

And I have no issues adding the extension if it's only targeted to that particular ad group. This is also with AdGroupExtensionsSettingService  without FeedServices.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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 a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/X8EJMbcpeVQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api+unsubscribe@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/13f86b0a-379e-4dd1-82b9-b6f6423712c9%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

JC Lee

unread,
Mar 25, 2017, 6:19:49 AM3/25/17
to AdWords API Forum
Do let me know. 

As said in my earlier response. There's no need for FeedMapping or FeedId as doing this any other way other than described in the first post produced no errors.

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Mar 27, 2017, 3:04:05 PM3/27/17
to AdWords API Forum
Hi,

Could you please confirm how the specific feed with feedItemId : 11747797807 was created? Was it using the FeedItemService or was it created while AdGroupExtensionSettingService was used to create and add the extension to a given AdGroup. As you are aware, if you are using the AdGroupExtensionSettingService, the creation of the feed and mapping it to the AdGroup is all done in one mutate (ADD ) operation. That said, If you are trying to use a Feed that was generated by AdGroupExtensionSettingService, your request should ideally get through fine on the other hand trying to use a feed created using FeedItem service might fail. 

I was able to run your scenario and it worked fine for me. Could you please try once again by using a feed that was created as a result of the AdGroupExtensionSettingService, use ADD operator instead of SET and let me know how it goes ? 
Message has been deleted
Message has been deleted

JC Lee

unread,
Mar 27, 2017, 3:58:28 PM3/27/17
to AdWords API Forum
Hi,

My mistake, I think I found the issue.. If it does happen again, I'll update here.
Reply all
Reply to author
Forward
0 new messages