Hi Balram,
Thanks for reaching out to the Google Ads API Forum.
You may use a shared_set report. Also, you may use campaign_shared_set report which is used for managing the shared sets associated with a campaign. To add an exclusion list to a campaign, you may create campaign shared sets using CampaignSharedSetService. CampaignSharedSets are used for managing the shared sets associated with a campaign. Kindly note that the SharedSet object has a SharesSetType field, and to create an exclusion placement list you would use the value "NEGATIVE_PLACEMENTS".
We have sample code examples to create a shared list of negative broad match keywords which attaches them to a campaign. You may refer to code example here:https://developers.google.com/google-ads/api/docs/samples/create-and-attach-shared-keyword-set
Add to that, you may find shared set criteria using this code example. Let us know if you have any questions.
Regards,
|
||||||
Hi Balram,
Thanks for getting back to us.
I understand that you are looking to set a placement exclusion for a shopping campaign. Yes, it is true that the solution provided in the above reply is not applicable for shopping campaign as mentioned in our documentation. Kindly note that NEGATIVE_PLACEMENT shared set type cannot be applied to campaign type SHOPPING, and you will encounter API error OPERATION_NOT_PERMITTED_FOR_CONTEXT if you try to apply it in API.
That being said, it is not possible to use NEGATIVE_PLACEMENT shared set to shopping campaign. However, if this is already supported in the Google Ads UI, then our team requires the steps to apply in Ads UI or complete Ads UI screenshot showing it, so that we can raise a feature request. Kindly provide the complete Ads UI screenshot via reply privately to author option.
Regards,