Adding CustomerLabels

59 views
Skip to first unread message

Ian Prentice

unread,
Apr 8, 2022, 2:04:57 PM4/8/22
to Google Ads API and AdWords API Forum
We are tyring to apply existing labels to a Customer from a Manager account.

I checked this guide (https://developers.google.com/google-ads/api/docs/reporting/labels) but it does not show how to add a label to a customer.

In our code we first retrieve the list of current ids via client_customer.get_applied_labels if we don't find a required label we add it via a CustomerLabel operation.

We set the Customer with the customer reosurce name and Label with the label resource name. Customer(customers/#CLIENT_ID#) / Label (customers/#MANAGER_ID#/labels/#LABEL_ID#)

The mutate executes and returns a CustomerLabel reousrcename ( customers/#MANAGER_ID#/customerLabels/#LABEL_ID# )

But when we run it again the label is not in applied_labels but it is in customer_labels.

It also does not appear in the UI

Is there a difference between applied labels and customer labels? It's unclear.

Google Ads API Forum Advisor

unread,
Apr 10, 2022, 11:34:52 PM4/10/22
to i...@d2cmedia.ca, adwor...@googlegroups.com

Hi Ian,
 

Thanks for reaching out to the Google Ads API Support team.


So our team can better check on this, can you share any screenshot and the complete API logs (request and response with request-id) of all the API requests you've executed for further investigation?
 

Regards,

Google Logo
Darwin
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ZLEwU:ref

Google Ads API Forum Advisor

unread,
Apr 10, 2022, 11:38:37 PM4/10/22
to adwor...@googlegroups.com, i...@d2cmedia.ca

Hi Ian,
 

Please provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Ian Prentice

unread,
Apr 14, 2022, 8:59:38 AM4/14/22
to Google Ads API and AdWords API Forum
Hi, 

I haven't received a sufficient answer on this. The linking between CustomerClient.applied_labels and CustomerLabels is either broken or non-existant, and I cannot find any other way to modify the CustomerClient applied labels.

Reply all
Reply to author
Forward
0 new messages