How to get MCC Account Labels at the sub account level? Ads API Beta

29 views
Skip to first unread message

Chris B

unread,
Feb 17, 2020, 1:32:33 PM2/17/20
to AdWords API and Google Ads API Forum
HI, 

I am working with Ads API Beta and have been able to get each sub account in our manager account and pull metrics and what not.

However, now I am trying to get the labels that are attached to each sub account. When I run the below query I get all the labels, but the customer is always the manager account and I can't seem to find a way to know what sub accounts have that label attached to it. Additionally, if I try specifying the sub account I get NULL for labels returned.


"SELECT customer.id, customer.descriptive_name, customer.manager, customer.resource_name, label.id, label.name,  label.status, label.text_label.description, label.resource_name FROM label"


How can I pull the labels and connect them with the sub accounts that they are attached to?

Any resources would be extremely helpful, as I have not found anything yet myself searching around. 

Thanks!

Google Ads API Forum Advisor Prod

unread,
Feb 18, 2020, 3:37:23 PM2/18/20
to chrisv...@gmail.com, adwor...@googlegroups.com
Hi Chris,

Thank you for reaching out. What is your client customer ID? When you say "specifying the sub account" do you mean making the report call using that account or filtering the report for that account?

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5001UV1JWn:ref
Reply all
Reply to author
Forward
0 new messages