![]() |
Google Ads API Team |
Hi,
You can utilize the below endpoint to create or remove the campaign shared sets. So in your case, you can create the CampaignSharedSet by adding the shared set associated with the campaign. To do this, first you need to create the shared set by adding the SharedSetType as BRANDS type. (A set of brands can be included or excluded from targeting across campaigns.)
I hope it helps.
Hi,
Could you confirm whether you have linked your shared set with the particular campaign. If not, then you can refer to the CampaignSharedSet document for linking the shared set with the campaign.
If you have already done this earlier and still you are not able to retrieve the shared set through the campaign, kindly provide us with the complete API logs (request and response with request-id and request header) generated at your end and also the uncropped (complete) UI screenshot of the Google Ads Account with the visibility of the customer ID to investigate further on your issue without redacting any information.
If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.
Please note that the 'v15' is deprecated and about to sunset on September 25, 2024. After this date, all v15 API requests will begin to fail. I would suggest you upgrade to the latest version, 'v17', as soon as possible to benefit from new features. You may refer to this documentation on deprecation and sunset for more information regarding the specific deprecation and sunset dates for each available version.
You can send the details via Reply privately to the author option, or direct private reply to this email.
Robin:
This was escalated to me and I've just pinged my fellow engineer who is an expert in this for an update. I'll report as soon as I hear back.
![]() |
|
Feedback
How was our support today?
[2025-03-04 16:32:15Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vG9If:ref" (ADR-00268196)
Robin:
You can obtain the data with:
SELECT
campaign_criterion.display_name,
campaign_criterion.type,
campaign_criterion.brand_list.shared_set
FROM campaign_criterion
WHERE
campaign_criterion.type = 'BRAND_LIST'
[{
"results": [
{
"campaignCriterion": {
"resourceName": "customers/5355568482/campaignCriteria/21627166957~2341310125360",
"type": "BRAND_LIST",
"displayName": "11206153104",
"brandList": {
"sharedSet": "customers/5355568482/sharedSets/11206153104"
}
}
}
],
"fieldMask": "campaignCriterion.displayName,campaignCriterion.type,campaignCriterion.brandList.sharedSet",
"requestId": "U7qpzbfTyCIwDzqFpF7GdQ",
"queryResourceConsumption": "3142"
}
* Connection #0 to host googleads.googleapis.com left intact
]
![]() |
|
[2025-03-11 13:13:04Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vG9If:ref" (ADR-00268196)