Associate an uploaded extension with campaigns issue (EntityNotFound.INVALID_ID).

235 views
Skip to first unread message

anatolii_z

unread,
Sep 5, 2020, 11:02:05 AM9/5/20
to AdWords API and Google Ads API Forum
I try to associate an uploaded extension with a campaign and each time get this error: "EntityNotFound.INVALID_ID". But for other campaigns, everything went well. The extension exists in AdWords account and I can get it through the API and it has the status 'ENABLED'. Could you give me some advice on how to resolve this issue?

Live example:

1. Sending operation:

accountId: 2402205906

object(Google\AdsApi\AdWords\v201809\cm\CampaignExtensionSettingOperation)#1114 (4) {
    ["operand":protected]=>
    object(Google\AdsApi\AdWords\v201809\cm\CampaignExtensionSetting)#1113 (3) {
      ["campaignId":protected]=>
      int(1556443608)
      ["extensionType":protected]=>
      string(8) "SITELINK"
      ["extensionSetting":protected]=>
      object(Google\AdsApi\AdWords\v201809\cm\ExtensionSetting)#2002 (2) {
        ["extensions":protected]=>
        array(1) {
          [0]=>
          object(Google\AdsApi\AdWords\v201809\cm\SitelinkFeedItem)#1083 (25) {
            ["sitelinkText":protected]=>
            NULL
            ["sitelinkUrl":protected]=>
            NULL
            ["sitelinkLine2":protected]=>
            NULL
            ["sitelinkLine3":protected]=>
            NULL
            ["sitelinkFinalUrls":protected]=>
            NULL
            ["sitelinkFinalMobileUrls":protected]=>
            NULL
            ["sitelinkTrackingUrlTemplate":protected]=>
            NULL
            ["sitelinkFinalUrlSuffix":protected]=>
            NULL
            ["sitelinkUrlCustomParameters":protected]=>
            NULL
            ["feedId":protected]=>
            int(62552027)
            ["feedItemId":protected]=>
            int(135546088311)
            ["status":protected]=>
            NULL
            ["feedType":protected]=>
            NULL
            ["startTime":protected]=>
            NULL
            ["endTime":protected]=>
            NULL
            ["devicePreference":protected]=>
            NULL
            ["scheduling":protected]=>
            NULL
            ["campaignTargeting":protected]=>
            NULL
            ["adGroupTargeting":protected]=>
            NULL
            ["keywordTargeting":protected]=>
            NULL
            ["geoTargeting":protected]=>
            NULL
            ["geoTargetingRestriction":protected]=>
            NULL
            ["policySummaries":protected]=>
            NULL
            ["ExtensionFeedItemType":protected]=>
            NULL
            ["parameterMap":"Google\AdsApi\AdWords\v201809\cm\ExtensionFeedItem":private]=>
            array(1) {
              ["ExtensionFeedItem.Type"]=>
              string(21) "ExtensionFeedItemType"
            }
          }
        }
        ["platformRestrictions":protected]=>
        NULL
      }
    }
    ["operator":protected]=>
    string(3) "SET"
    ["OperationType":protected]=>
    NULL
    ["parameterMap":"Google\AdsApi\AdWords\v201809\cm\Operation":private]=>
    array(1) {
      ["Operation.Type"]=>
      string(13) "OperationType"
    }
  }

2. Each time, get this result:

object(Google\AdsApi\AdWords\v201809\cm\EntityNotFound)#1133 (7) {
    ["reason":protected]=>
    string(10) "INVALID_ID"
    ["fieldPath":protected]=>
    string(63) "operations[0].operand.extensionSetting.extensions[0].feedItemId"
    ["fieldPathElements":protected]=>
    array(5) {
      [0]=>
      object(Google\AdsApi\AdWords\v201809\cm\FieldPathElement)#2029 (2) {
        ["field":protected]=>
        string(10) "operations"
        ["index":protected]=>
        int(0)
      }
      [1]=>
      object(Google\AdsApi\AdWords\v201809\cm\FieldPathElement)#2027 (2) {
        ["field":protected]=>
        string(7) "operand"
        ["index":protected]=>
        NULL
      }
      [2]=>
      object(Google\AdsApi\AdWords\v201809\cm\FieldPathElement)#2014 (2) {
        ["field":protected]=>
        string(16) "extensionSetting"
        ["index":protected]=>
        NULL
      }
      [3]=>
      object(Google\AdsApi\AdWords\v201809\cm\FieldPathElement)#2013 (2) {
        ["field":protected]=>
        string(10) "extensions"
        ["index":protected]=>
        int(0)
      }
      [4]=>
      object(Google\AdsApi\AdWords\v201809\cm\FieldPathElement)#1996 (2) {
        ["field":protected]=>
        string(10) "feedItemId"
        ["index":protected]=>
        NULL
      }
    }
    ["trigger":protected]=>
    string(27) "FeedItemId{id=135546088311}"
    ["errorString":protected]=>
    string(25) "EntityNotFound.INVALID_ID"
    ["ApiErrorType":protected]=>
    string(14) "EntityNotFound"
    ["parameterMap":"Google\AdsApi\AdWords\v201809\cm\ApiError":private]=>
    array(1) {
      ["ApiError.Type"]=>
      string(12) "ApiErrorType"
    }
  }

3. When I try to get this FeedITems I get:

object(Google\AdsApi\AdWords\v201809\cm\FeedItem)#671 (9) {
  ["feedId":protected]=>
  int(62552027)
  ["feedItemId":protected]=>
  int(135546088311)
  ["status":protected]=>
  string(7) "ENABLED"
  ["startTime":protected]=>
  NULL
  ["endTime":protected]=>
  NULL
  ["attributeValues":protected]=>
  NULL
  ["policySummaries":protected]=>
  NULL
  ["geoTargetingRestriction":protected]=>
  NULL
  ["urlCustomParameters":protected]=>
  NULL
}


Google Ads API Forum Advisor Prod

unread,
Sep 8, 2020, 3:43:58 PM9/8/20
to anatolii...@gmail.com, adwor...@googlegroups.com
Hello,

Can you please reply privately to author the full SOAP request and response for these API calls so I can take a closer look?

Thanks,
Anthony
Google Ads API Team

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q24ZHiM:ref

Анатолій Закаблук

unread,
Sep 9, 2020, 5:00:23 AM9/9/20
to adsapifor...@gmail.com, adwor...@googlegroups.com
Done. I tried to reload extensions but again got failed. It is a new live example:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>2402205906</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>keywordsconnect.sample.com:ReportDownloader:V1.1 (AwApi-PHP, googleads-php-lib/42.0.0, PHP/7.3.21-1+ubuntu18.04.1+deb.sury.org+1)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:mutate><ns1:operations><ns1:operator>SET</ns1:operator><ns1:operand><ns1:campaignId>1556443608</ns1:campaignId><ns1:extensionType>SITELINK</ns1:extensionType><ns1:extensionSetting><ns1:extensions xsi:type="ns1:SitelinkFeedItem"><ns1:feedId>62552027</ns1:feedId><ns1:feedItemId>136066018328</ns1:feedItemId></ns1:extensions></ns1:extensionSetting></ns1:operand></ns1:operations></ns1:mutate></SOAP-ENV:Body></SOAP-ENV:Envelope>

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Wed, 09 Sep 2020 08:48:06 GMT
Expires: Wed, 09 Sep 2020 08:48:06 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809"><requestId>0005aedd8297d3690ac7c13ace07ad9a</requestId><serviceName>CampaignExtensionSettingService</serviceName><methodName>mutate</methodName><operations>2</operations><responseTime>445</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>[EntityNotFound.INVALID_ID @ operations[0].operand.extensionSetting.extensions[0].feedItemId; trigger:'FeedItemId{id=136066018328}']</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809"><message>[EntityNotFound.INVALID_ID @ operations[0].operand.extensionSetting.extensions[0].feedItemId; trigger:'FeedItemId{id=136066018328}']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="EntityNotFound"><fieldPath>operations[0].operand.extensionSetting.extensions[0].feedItemId</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>extensionSetting</field></fieldPathElements><fieldPathElements><field>extensions</field><index>0</index></fieldPathElements><fieldPathElements><field>feedItemId</field></fieldPathElements><trigger>FeedItemId{id=136066018328}</trigger><errorString>EntityNotFound.INVALID_ID</errorString><ApiError.Type>EntityNotFound</ApiError.Type><reason>INVALID_ID</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>

вт, 8 сент. 2020 г. в 22:43, Google Ads API Forum Advisor Prod <adsapifor...@gmail.com>:

Анатолій Закаблук

unread,
Sep 16, 2020, 2:37:47 PM9/16/20
to adsapifor...@gmail.com, adwor...@googlegroups.com
Hello!
Any updates on this?

ср, 9 сент. 2020 г. в 11:59, Анатолій Закаблук <anatolii...@gmail.com>:

Анатолій Закаблук

unread,
Sep 18, 2020, 10:43:07 AM9/18/20
to adsapifor...@gmail.com, adwor...@googlegroups.com
One more live example:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>6288686727</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>keywordsconnect.sample.com:ReportDownloader:V1.1 (AwApi-PHP, googleads-php-lib/42.0.0, PHP/7.3.21-1+ubuntu18.04.1+deb.sury.org+1)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:mutate><ns1:operations><ns1:operator>SET</ns1:operator><ns1:operand><ns1:campaignId>869504848</ns1:campaignId><ns1:extensionType>SITELINK</ns1:extensionType><ns1:extensionSetting><ns1:extensions xsi:type="ns1:SitelinkFeedItem"><ns1:feedId>55366938</ns1:feedId><ns1:feedItemId>136290908838</ns1:feedItemId></ns1:extensions></ns1:extensionSetting></ns1:operand></ns1:operations></ns1:mutate></SOAP-ENV:Body></SOAP-ENV:Envelope>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809"><requestId>0005af97564ddf9a0a376482450c61fb</requestId><serviceName>CampaignExtensionSettingService</serviceName><methodName>mutate</methodName><operations>2</operations><responseTime>387</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>[EntityNotFound.INVALID_ID @ operations[0].operand.extensionSetting.extensions[0].feedItemId; trigger:'FeedItemId{id=136290908838}']</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809"><message>[EntityNotFound.INVALID_ID @ operations[0].operand.extensionSetting.extensions[0].feedItemId; trigger:'FeedItemId{id=136290908838}']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="EntityNotFound"><fieldPath>operations[0].operand.extensionSetting.extensions[0].feedItemId</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>extensionSetting</field></fieldPathElements><fieldPathElements><field>extensions</field><index>0</index></fieldPathElements><fieldPathElements><field>feedItemId</field></fieldPathElements><trigger>FeedItemId{id=136290908838}</trigger><errorString>EntityNotFound.INVALID_ID</errorString><ApiError.Type>EntityNotFound</ApiError.Type><reason>INVALID_ID</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>

ср, 16 сент. 2020 г. в 21:37, Анатолій Закаблук <anatolii...@gmail.com>:

Google Ads API Forum Advisor Prod

unread,
Sep 18, 2020, 4:28:20 PM9/18/20
to anatolii...@gmail.com, adwor...@googlegroups.com
Hello,

I had replied to you privately with the following:

There are no sitelinks in the campaign from the request. If you want to add sitelinks to your campaign, you will need to use the ADD operation, not SET.

Regards,

anatolii_z

unread,
Sep 24, 2020, 8:55:07 AM9/24/20
to AdWords API and Google Ads API Forum
Hello,
I tried to use ADD operation and got the same result.

But I use SET for any operation. I mean whether its first extension in a campaign or not. Also, I used this operator for other campaigns and it works correctly.
пятница, 18 сентября 2020 г. в 23:28:20 UTC+3, adsapiforumadvisor:

Анатолій Закаблук

unread,
Sep 24, 2020, 8:57:13 AM9/24/20
to adsapifor...@gmail.com, adwor...@googlegroups.com
Hello,
Any updates?

пт, 18 сент. 2020 г. в 17:42, Анатолій Закаблук <anatolii...@gmail.com>:

Google Ads API Forum Advisor Prod

unread,
Sep 24, 2020, 3:40:04 PM9/24/20
to anatolii...@gmail.com, adwor...@googlegroups.com
Hi,

Please share the SOAP logs where you were getting errors when using the ADD operator. I only see the ones from the SET operator.

anatolii_z

unread,
Sep 27, 2020, 1:52:26 PM9/27/20
to AdWords API and Google Ads API Forum
Hi,

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>6288686727</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>keywordsconnect.sample.com:ReportDownloader:V1.1 (AwApi-PHP, googleads-php-lib/42.0.0, PHP/7.3.21-1+ubuntu18.04.1+deb.sury.org+1)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:mutate><ns1:operations><ns1:operator>ADD</ns1:operator><ns1:operand><ns1:campaignId>869504848</ns1:campaignId><ns1:extensionType>SITELINK</ns1:extensionType><ns1:extensionSetting><ns1:extensions xsi:type="ns1:SitelinkFeedItem"><ns1:feedId>55366938</ns1:feedId><ns1:feedItemId>136290908838</ns1:feedItemId></ns1:extensions></ns1:extensionSetting></ns1:operand></ns1:operations></ns1:mutate></SOAP-ENV:Body></SOAP-ENV:Envelope>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809"><requestId>0005b04f31b79abc0a37784737051644</requestId><serviceName>CampaignExtensionSettingService</serviceName><methodName>mutate</methodName><operations>2</operations><responseTime>218</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>[EntityNotFound.INVALID_ID @ operations[0].operand.extensionSetting.extensions[0].feedItemId; trigger:'FeedItemId{id=136290908838}']</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809"><message>[EntityNotFound.INVALID_ID @ operations[0].operand.extensionSetting.extensions[0].feedItemId; trigger:'FeedItemId{id=136290908838}']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="EntityNotFound"><fieldPath>operations[0].operand.extensionSetting.extensions[0].feedItemId</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>extensionSetting</field></fieldPathElements><fieldPathElements><field>extensions</field><index>0</index></fieldPathElements><fieldPathElements><field>feedItemId</field></fieldPathElements><trigger>FeedItemId{id=136290908838}</trigger><errorString>EntityNotFound.INVALID_ID</errorString><ApiError.Type>EntityNotFound</ApiError.Type><reason>INVALID_ID</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>


четверг, 24 сентября 2020 г. в 22:40:04 UTC+3, adsapiforumadvisor:

Google Ads API Forum Advisor Prod

unread,
Sep 28, 2020, 9:17:06 AM9/28/20
to anatolii...@gmail.com, adwor...@googlegroups.com
Hello,

It looks like you are missing a few fields. Here is an example on how to add sitelinks to a campaign. You can use that as a reference to add the extension on your account.

Cheers,

anatolii_z

unread,
Sep 30, 2020, 10:01:22 AM9/30/20
to AdWords API and Google Ads API Forum
Hello,
But I try to associate the already uploaded extension to the account with the campaign. In this case, we need to set only feedItemId and feedId.
понедельник, 28 сентября 2020 г. в 16:17:06 UTC+3, adsapiforumadvisor:

Google Ads API Forum Advisor Prod

unread,
Sep 30, 2020, 4:40:02 PM9/30/20
to anatolii...@gmail.com, adwor...@googlegroups.com
Hello,

Are there any issues with trying it with the method I mentioned? It looks like when removing ad extensions, the feed and feed item Ids are required. 

Regards,

anatolii_z

unread,
Oct 1, 2020, 5:22:33 AM10/1/20
to AdWords API and Google Ads API Forum
Hello,
I use this 'Reusing feed items'

среда, 30 сентября 2020 г. в 23:40:02 UTC+3, adsapiforumadvisor:

Google Ads API Forum Advisor Prod

unread,
Oct 1, 2020, 1:40:09 PM10/1/20
to anatolii...@gmail.com, adwor...@googlegroups.com
Hi,

Ok, I'll need to take a closer look at this and see if there's an issue on our side.

Google Ads API Forum Advisor Prod

unread,
Oct 1, 2020, 8:35:55 PM10/1/20
to anatolii...@gmail.com, adwor...@googlegroups.com
Hi,

This looks like a bug to me, I am contacting our Eng team and will let you know as progress is made.

Thanks,
Pierrick - Google Ads API Team

ref:_00D1U1174p._5004Q24ZHiM:ref

Google Ads API Forum Advisor Prod

unread,
Oct 2, 2020, 4:43:00 PM10/2/20
to anatolii...@gmail.com, adwor...@googlegroups.com
Hi,

We took a closer look and the issue is that the ExtensionSetting Services can only work with system-created feeds which is not the case here.

To use user-defined feeds like the one you use here, you will need to use the CampaignFeedService instead.

anatolii_z

unread,
Oct 5, 2020, 10:18:51 AM10/5/20
to AdWords API and Google Ads API Forum
Hi,
But I didn't use user-defined feeds. I create all extensions using ExtensionSetting.
At first, I upload an extension to some campaigns and then using stored FeedItemId to associate the extension with other campaigns.
In this case, I got success when associating the extension with some campaigns from the account but for others, I got this error.
For instance:
Campaign IDs: 869504095, 870427359, 870429255, 869504104, 870429033.
I was able to associate the extension (id 136290908838) with these campaigns but for others, I got this error.

My php code:
$extensionSetting = new ExtensionSetting();
$extensionSetting->setExtensions($campaignExts);

$campaignExtensionSetting = new CampaignExtensionSetting();
$campaignExtensionSetting->setCampaignId($CampaignId);
$campaignExtensionSetting->setExtensionType($extType);
$campaignExtensionSetting->setExtensionSetting($extensionSetting);

$operation = new CampaignExtensionSettingOperation();
$operation->setOperator("SET");
$operation->setOperand($campaignExtensionSetting);

$operations[] = $operation;

I use the same code to upload a new extension to some campaign and then using FeedItemId associate the extension with other campaigns.
пятница, 2 октября 2020 г. в 23:43:00 UTC+3, adsapiforumadvisor:

Google Ads API Forum Advisor Prod

unread,
Oct 6, 2020, 2:42:30 PM10/6/20
to anatolii...@gmail.com, adwor...@googlegroups.com

Hi Anatolii,

I dug a bit more and found that the feed with the ID 55366938 for the campaign 869504848 was deleted. Could you confirm if this is expected? If it is, do you expect this to be reactivated when using this operation? If you do, could you provide examples for which it worked in the past?



Thanks,
Pierrick - Google Ads API Team



ref:_00D1U1174p._5004Q24ZHiM:ref

anatolii_z

unread,
Oct 7, 2020, 10:00:16 AM10/7/20
to AdWords API and Google Ads API Forum
Hi,
A new example:
The extension (feedItemId:140711516699) was uploaded and was successfully associated with campaigns:
Campaign IDs: 
627245657, 627409908, 627245693, 627203215, 627410811 ... e.t.
But during associating with other campaigns I get the error 'EntityNotFound.INVALID_ID', for example:
Campaign IDs:
1392626849, 1392626840, 1393192074, 1392626816, 1392626831... e.t.

Thanks,
Anatolii
вторник, 6 октября 2020 г. в 21:42:30 UTC+3, adsapiforumadvisor:

Google Ads API Forum Advisor Prod

unread,
Oct 7, 2020, 4:53:40 PM10/7/20
to anatolii...@gmail.com, adwor...@googlegroups.com
Hi Anatoli,

Could you provide one request ID of a call that was successful and one that was unsuccessful?

anatolii_z

unread,
Oct 8, 2020, 8:34:10 AM10/8/20
to AdWords API and Google Ads API Forum
For this example unfortunately I can't.
среда, 7 октября 2020 г. в 23:53:40 UTC+3, adsapiforumadvisor:

Google Ads API Forum Advisor Prod

unread,
Oct 8, 2020, 11:44:38 AM10/8/20
to anatolii...@gmail.com, adwor...@googlegroups.com
Hi Anatolii,

We could not find any reason why this happened but, unfortunately, we cannot go further into the investigation without request IDs. Please come back to us with request IDs the next time you experience a similar issue and we will take another look.

anatolii_z

unread,
Oct 8, 2020, 3:44:26 PM10/8/20
to AdWords API and Google Ads API Forum
Hi,

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>8368097737</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>keywordsconnect.sample.com:ReportDownloader:V1.1 (AwApi-PHP, googleads-php-lib/42.0.0, PHP/7.3.21-1+ubuntu18.04.1+deb.sury.org+1)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:mutate><ns1:operations><ns1:operator>SET</ns1:operator><ns1:operand><ns1:campaignId>627410811</ns1:campaignId><ns1:extensionType>SITELINK</ns1:extensionType><ns1:extensionSetting><ns1:extensions xsi:type="ns1:SitelinkFeedItem"><ns1:feedId>38196768</ns1:feedId><ns1:feedItemId>140711516699</ns1:feedItemId></ns1:extensions><ns1:extensions xsi:type="ns1:SitelinkFeedItem"><ns1:feedId>38196768</ns1:feedId><ns1:feedItemId>140711516684</ns1:feedItemId></ns1:extensions><ns1:extensions xsi:type="ns1:SitelinkFeedItem"><ns1:feedId>38196768</ns1:feedId><ns1:feedItemId>140711516687</ns1:feedItemId></ns1:extensions><ns1:extensions xsi:type="ns1:SitelinkFeedItem"><ns1:feedId>38196768</ns1:feedId><ns1:feedItemId>140711516690</ns1:feedItemId></ns1:extensions><ns1:extensions xsi:type="ns1:SitelinkFeedItem"><ns1:feedId>38196768</ns1:feedId><ns1:feedItemId>140711516693</ns1:feedItemId></ns1:extensions><ns1:extensions xsi:type="ns1:SitelinkFeedItem"><ns1:feedId>38196768</ns1:feedId><ns1:feedItemId>140711516696</ns1:feedItemId></ns1:extensions></ns1:extensionSetting></ns1:operand></ns1:operations><ns1:operations><ns1:operator>SET</ns1:operator><ns1:operand><ns1:campaignId>1392626831</ns1:campaignId><ns1:extensionType>SITELINK</ns1:extensionType><ns1:extensionSetting><ns1:extensions xsi:type="ns1:SitelinkFeedItem"><ns1:feedId>38196768</ns1:feedId><ns1:feedItemId>140711516699</ns1:feedItemId></ns1:extensions></ns1:extensionSetting></ns1:operand></ns1:operations></ns1:mutate></SOAP-ENV:Body></SOAP-ENV:Envelope>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809"><requestId>0005b12dca233e350a376296e0039975</requestId><serviceName>CampaignExtensionSettingService</serviceName><methodName>mutate</methodName><operations>9</operations><responseTime>223</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>[EntityNotFound.INVALID_ID @ operations[1].operand.extensionSetting.extensions[0].feedItemId; trigger:'FeedItemId{id=140711516699}']</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809"><message>[EntityNotFound.INVALID_ID @ operations[1].operand.extensionSetting.extensions[0].feedItemId; trigger:'FeedItemId{id=140711516699}']</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[0].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>0</index></fieldPathElements><fieldPathElements><field>feedItemId</field></fieldPathElements><trigger>FeedItemId{id=140711516699}</trigger><errorString>EntityNotFound.INVALID_ID</errorString><ApiError.Type>EntityNotFound</ApiError.Type><reason>INVALID_ID</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>


  
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>8368097737</ns1:clientCustomerId><ns1:developerToken>r2DhB5ipU9-FcmYcrrnzQw</ns1:developerToken><ns1:userAgent>keywordsconnect.sample.com:ReportDownloader:V1.1 (AwApi-PHP, googleads-php-lib/42.0.0, PHP/7.3.21-1+ubuntu18.04.1+deb.sury.org+1)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:mutate><ns1:operations><ns1:operator>SET</ns1:operator><ns1:operand><ns1:campaignId>627410811</ns1:campaignId><ns1:extensionType>SITELINK</ns1:extensionType><ns1:extensionSetting><ns1:extensions xsi:type="ns1:SitelinkFeedItem"><ns1:feedId>38196768</ns1:feedId><ns1:feedItemId>140711516699</ns1:feedItemId></ns1:extensions><ns1:extensions xsi:type="ns1:SitelinkFeedItem"><ns1:feedId>38196768</ns1:feedId><ns1:feedItemId>140711516684</ns1:feedItemId></ns1:extensions><ns1:extensions xsi:type="ns1:SitelinkFeedItem"><ns1:feedId>38196768</ns1:feedId><ns1:feedItemId>140711516687</ns1:feedItemId></ns1:extensions><ns1:extensions xsi:type="ns1:SitelinkFeedItem"><ns1:feedId>38196768</ns1:feedId><ns1:feedItemId>140711516690</ns1:feedItemId></ns1:extensions><ns1:extensions xsi:type="ns1:SitelinkFeedItem"><ns1:feedId>38196768</ns1:feedId><ns1:feedItemId>140711516693</ns1:feedItemId></ns1:extensions><ns1:extensions xsi:type="ns1:SitelinkFeedItem"><ns1:feedId>38196768</ns1:feedId><ns1:feedItemId>140711516696</ns1:feedItemId></ns1:extensions></ns1:extensionSetting></ns1:operand></ns1:operations></ns1:mutate></SOAP-ENV:Body></SOAP-ENV:Envelope>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809"><requestId>0005b12dcdb1b19302ab424ffd088350</requestId><serviceName>CampaignExtensionSettingService</serviceName><methodName>mutate</methodName><operations>7</operations><responseTime>410</responseTime></ResponseHeader></soap:Header><soap:Body><mutateResponse xmlns="https://adwords.google.com/api/adwords/cm/v201809"><rval><ListReturnValue.Type>CampaignExtensionSettingReturnValue</ListReturnValue.Type><value><campaignId>627410811</campaignId><extensionType>SITELINK</extensionType><extensionSetting><extensions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="SitelinkFeedItem"><feedId>38196768</feedId><feedItemId>140711516699</feedItemId><status>ENABLED</status><feedType>SITELINK</feedType><ExtensionFeedItem.Type>SitelinkFeedItem</ExtensionFeedItem.Type><sitelinkText>Bathtub Replacement</sitelinkText><sitelinkLine2>Our warranty guarantees your tub</sitelinkLine2><sitelinkLine3>against cracks, chips, or peels.</sitelinkLine3><sitelinkFinalUrls><urls>https://www.bathfitter-baths.com/ghl/index.cfm?ctid=2869&amp;chid=603</urls></sitelinkFinalUrls></extensions><extensions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="SitelinkFeedItem"><feedId>38196768</feedId><feedItemId>140711516684</feedItemId><status>ENABLED</status><feedType>SITELINK</feedType><ExtensionFeedItem.Type>SitelinkFeedItem</ExtensionFeedItem.Type><sitelinkText>Bath Remodeling</sitelinkText><sitelinkLine2>Get a beautiful new bathtub that</sitelinkLine2><sitelinkLine3>the whole family will love to use.</sitelinkLine3><sitelinkFinalUrls><urls>https://www.bathfitter-baths.com/ghl/index.cfm?ctid=2869&amp;chid=603</urls></sitelinkFinalUrls></extensions><extensions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="SitelinkFeedItem"><feedId>38196768</feedId><feedItemId>140711516687</feedItemId><status>ENABLED</status><feedType>SITELINK</feedType><ExtensionFeedItem.Type>SitelinkFeedItem</ExtensionFeedItem.Type><sitelinkText>Conversions</sitelinkText><sitelinkLine2>Convert your worn, cracked tub into</sitelinkLine2><sitelinkLine3>a beautiful shower with BathFitter.</sitelinkLine3><sitelinkFinalUrls><urls>https://www.bathfitter-baths.com/ghl/index.cfm?ctid=2869&amp;chid=603</urls></sitelinkFinalUrls></extensions><extensions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="SitelinkFeedItem"><feedId>38196768</feedId><feedItemId>140711516690</feedItemId><status>ENABLED</status><feedType>SITELINK</feedType><ExtensionFeedItem.Type>SitelinkFeedItem</ExtensionFeedItem.Type><sitelinkText>Photo Gallery</sitelinkText><sitelinkLine2>Update your old, outdated bath with</sitelinkLine2><sitelinkLine3>a tub or shower from Bath Fitter.</sitelinkLine3><sitelinkFinalUrls><urls>https://www.bathfitter-baths.com/ghl/index.cfm?ctid=2869&amp;chid=603</urls></sitelinkFinalUrls></extensions><extensions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="SitelinkFeedItem"><feedId>38196768</feedId><feedItemId>140711516693</feedItemId><status>ENABLED</status><feedType>SITELINK</feedType><ExtensionFeedItem.Type>SitelinkFeedItem</ExtensionFeedItem.Type><sitelinkText>Shower Remodeling</sitelinkText><sitelinkLine2>Choose a stunning new shower that</sitelinkLine2><sitelinkLine3>matches your home's needs &amp; style.</sitelinkLine3><sitelinkFinalUrls><urls>https://www.bathfitter-baths.com/ghl/index.cfm?ctid=2869&amp;chid=603</urls></sitelinkFinalUrls></extensions><extensions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="SitelinkFeedItem"><feedId>38196768</feedId><feedItemId>140711516696</feedItemId><status>ENABLED</status><feedType>SITELINK</feedType><ExtensionFeedItem.Type>SitelinkFeedItem</ExtensionFeedItem.Type><sitelinkText>Shower Replacement</sitelinkText><sitelinkLine2>Update your bathroom with one of</sitelinkLine2><sitelinkLine3>our stylish, dependable showers.</sitelinkLine3><sitelinkFinalUrls><urls>https://www.bathfitter-baths.com/ghl/index.cfm?ctid=2869&amp;chid=603</urls></sitelinkFinalUrls></extensions><platformRestrictions>NONE</platformRestrictions></extensionSetting></value></rval></mutateResponse></soap:Body></soap:Envelope>

четверг, 8 октября 2020 г. в 18:44:38 UTC+3, adsapiforumadvisor:

Google Ads API Forum Advisor Prod

unread,
Oct 9, 2020, 4:07:04 PM10/9/20
to anatolii...@gmail.com, adwor...@googlegroups.com
Hi Anatolii,

Thank you for the logs. I noticed that the campaign for which it failed (1392626831) already has extensions with removed statuses and one of these extensions is pretty similar to the one that you are trying to add (same name, type, level) even though it does not have the same ID. I am checking with the Engineering team as this could be the cause of the failure.

In the meantime, could you confirm if the failures you are experiencing always occur when a similar extension already exists with a removed status in the campaign?

Thank you again,

Google Ads API Forum Advisor Prod

unread,
Oct 9, 2020, 6:20:55 PM10/9/20
to anatolii...@gmail.com, adwor...@googlegroups.com
Hi again,

I got more information from our Engineering team that explains the behavior:
1. The CampaignExtensionSettingService can link a user feed only if it is already linked to the campaign. If it is not the case, the user feed needs to be linked using the CampaignFeedService.
2. A campaign can only be linked to a single feed per placeholder type (in this case sitelink).

In the latest logs you sent:
- The campaign 627410811 was already linked to the user feed 38196768 at the time of your request so it succeeded.
- The campaign 1392626831 was not already linked to the user feed 38196768 at the time of your request so it failed.

The campaign 1392626831 is already linked to the system sitelink feed 51996609 so you need to use this feed instead of the user feed 38196768. Because 51996609 is a system feed you can do it using the CampaignExtensionSettingService.

Thanks,

anatolii_z

unread,
Oct 21, 2020, 4:18:50 AM10/21/20
to AdWords API and Google Ads API Forum
Hi again,
Your explanation helped to resolve the problem. Thanks a lot!

суббота, 10 октября 2020 г. в 01:20:55 UTC+3, adsapiforumadvisor:
Reply all
Reply to author
Forward
0 new messages