Using AdGroupExtensionSettingService with a user defined feed for CALLOUT extensions - EntityNotFound.INVALID_ID

95 views
Skip to first unread message

Matthew Wawrin

unread,
Jan 10, 2017, 3:47:09 PM1/10/17
to AdWords API Forum
Hi,

I would like to define a custom feed to manage a list of callout text in a separate feed than the 'Main Callout Feed' that gets populated by default.   The intention is so that we can create this feed and use it for adgroups in specific campaigns, and not fill the main callout feed with those callouts.

Using the php adwords API, I'm able to create a new feed, populate it with the feed items we desire, and I created the feed mapping with the callout placeholder.   I can retrieve the FeedId, FeedItemId of the callouts that I wish to add to a particular adgroup (I have adgroupId).   When using the AdGroupExtensionSettingService I'm getting an error back saying the feedItemId is not found:

Error
object(SoapFault)#113 (10) {
  ["message":protected]=>
  string(130) "[EntityNotFound.INVALID_ID @ operations[0].operand.extensionSetting.extensions[0].feedItemId; trigger:'FeedItemId{id=9897330092}']"


I've confirmed that I can use a feedItemId from the 'Main Callout Feed' with AdGroupExtensionSettingService and add a callout extension successfully, but when I specify the feedId/feedItemId from my user defined feed I get the above error.

    [4] => FeedMapping Object
        (
            [feedMappingId] => 47676708
            [feedId] => 45012406
            [placeholderType] => 17
            [status] => ENABLED
            [attributeFieldMappings] => Array
                (
                    [0] => AttributeFieldMapping Object
                        (
                            [feedAttributeId] => 1
                            [fieldId] => 1
                        )

                )

            [criterionType] => 
        )

FeedItem Object
(
    [feedId] => 45012406
    [feedItemId] => 9897330092
    [status] => ENABLED
    [startTime] => 
    [endTime] => 
    [attributeValues] => Array
        (
            [0] => FeedItemAttributeValue Object
                (
                    [feedAttributeId] => 1
                    [integerValue] => 
                    [doubleValue] => 
                    [booleanValue] => 
                    [stringValue] => Utility
                    [integerValues] => 
                    [doubleValues] => 
                    [booleanValues] => 
                    [stringValues] => 
                    [moneyWithCurrencyValue] => 
                )

        )

    [policyData] => 
    [devicePreference] => 
    [scheduling] => 
    [campaignTargeting] => 
    [adGroupTargeting] => 
    [keywordTargeting] => 
    [geoTargeting] => 
    [geoTargetingRestriction] => 
    [urlCustomParameters] => 
)


AdGroupExtensionSetting Object
(
    [adGroupId] => 38646523193
    [extensionType] => CALLOUT
    [extensionSetting] => ExtensionSetting Object
        (
            [extensions] => Array
                (
                    [0] => CalloutFeedItem Object
                        (
                            [calloutText] => Utility
                            [feedId] => 45012406
                            [feedItemId] => 9897330092
                            [status] => 
                            [feedType] => 
                            [startTime] => 
                            [endTime] => 
                            [devicePreference] => 
                            [scheduling] => 
                            [campaignTargeting] => 
                            [adGroupTargeting] => 
                            [keywordTargeting] => 
                            [geoTargeting] => 
                            [geoTargetingRestriction] => 
                            [policyData] => 
                            [ExtensionFeedItemType] => 
                            [_parameterMap:ExtensionFeedItem:private] => Array
                                (
                                    [ExtensionFeedItem.Type] => ExtensionFeedItemType
                                )

                        )

                )

            [platformRestrictions] => NONE
        )

)

I was really hoping to use the AdGroupExtensionSettingService instead of creating a matching function in an adgroupFeedService.  

It seems to me that adding Callouts with  AdGroupExtensionSettingService is limited to the feedItems in the 'Main Callout Feed'?  Can somebody confirm this? 

Thanks,
Matt.

Joyce Lava

unread,
Jan 10, 2017, 10:29:10 PM1/10/17
to AdWords API Forum
Hi Matt,

Apologies for the delayed response. Upon checking the adGroupId, it has the callout ad extension already with the said feedItemId. Could you please confirm if you happen to have resolved the issue already? If you still encounter this, please send to me (reply privately to author) the complete SOAP request and response for me to better check it.

Thanks,
Joyce, AdWords API Team

Josh Radcliff (AdWords API Team)

unread,
Jan 16, 2017, 10:43:48 AM1/16/17
to AdWords API Forum
Hi Matt,

You are correct: you can only use the extension setting services with the default, system-defined Feed for each placeholder type. This will be the feed with origin = ADWORDS.

If you want to use feed items from a different feed for a particular placeholder type + campaign or ad group, you will have to use feed services.

Thanks,
Josh, AdWords API Team

Matthew Wawrin

unread,
Jan 17, 2017, 10:00:50 AM1/17/17
to AdWords API Forum
Thank you Josh for confirming.

For my purposes,  I'll use the adgroupFeedService class to manage the adgroup callouts from our custom feed.  
Reply all
Reply to author
Forward
0 new messages