Google Ads API - getting campaign labels owned by MCC

200 views
Skip to first unread message

Maciej Ł

unread,
May 21, 2024, 8:15:42 PM5/21/24
to Google Ads API and AdWords API Forum
Hello!

I am trying to get campaigns with their assigned labels. Unfortunately, MCC's labels are not returned from Google Ads API. Does anyone have any idea how to get campaigns with all labels assigned? I know how to get these labels but I need to get campaigns with labels assigned to them.

Currently, I am simply trying to get it with the following query:
SELECT campaign.id, campaign.name, campaign.labels FROM campaign

Also, I am using the latest (python) v16 version of Google Ads API.

Google Ads API Forum Advisor

unread,
May 22, 2024, 2:52:54 AM5/22/24
to maciej....@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

To retrieve the manager-owned labels, you can query for them with the login_customer_id header set to the ID of the owning manager (the owner account ID), and pass the client account ID as the customer_id. If you wanted to retrieve labels by supplying just the ID of the client account, the client account would need to own the label.

Let us know if you still have any concerns.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJ3P9:ref" (ADR-00235955)

Thanks,
 
Google Logo Google Ads API Team


Maciej Ł

unread,
May 22, 2024, 8:27:42 AM5/22/24
to Google Ads API and AdWords API Forum
Thank you for the answer!

Regarding the labels, it is all clear. But still, I didn't find a way to retrieve campaigns with labels owned by the MCC. If I try to get campaigns with their assigned labels, I get only owned by the specific account but I need also to get labels assigned to campaigns but owned by MCC. Is there a way to do that? To get campaigns with all assigned labels (MCC labels + specific account labels)?

Google Ads API Forum Advisor

unread,
May 22, 2024, 2:39:22 PM5/22/24
to maciej....@gmail.com, adwor...@googlegroups.com
Hi,

In order to investigate the issue further, provide us with the updated complete API logs (request and response with request-id and request header) generated at your end so that we can verify why the labels associated with campaigns owned by MCC are not returning via the API. 

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.NetPHPPythonRuby 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.

ogakin

unread,
May 14, 2025, 12:56:25 PM5/14/25
to Google Ads API and AdWords API Forum
Any update on this? I'm facing the same issue and wondering if this is a bug or just a limitation of the API.

Google Ads API and AdWords API Forum

unread,
May 14, 2025, 7:52:48 PM5/14/25
to Google Ads API and AdWords API Forum
Hi,

As requested earlier, please provide the complete and updated API logs (request and response with request-id and request header) to help us investigate why the API is not returning labels associated with campaigns owned by the MCC. 


Google Ads API and AdWords API Forum

unread,
May 14, 2025, 7:55:35 PM5/14/25
to Google Ads API and AdWords API Forum
Hi,

You can send the requested logs via the Reply privately to the author option or a direct private reply to this email.

Reply all
Reply to author
Forward
0 new messages