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:
> 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.
>
>
> Thanks,
> Pierrick - Google Ads API Team
>
> ref:_00D1U1174p._5004Q24ZHiM:ref
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/82e4c9ff-2192-4ce1-b6bc-53218a249824n%40googlegroups.com.