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:
2402205906object(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
}