How to find orphan TextLabels

9 views
Skip to first unread message

TommyTek

unread,
May 14, 2019, 5:07:36 AM5/14/19
to AdWords API and Google Ads API Forum
Hello,
  is there a way to find all TextLabels in my account that are not linked to any adgroup or any campaign? So basically I would try to find all the orphan labels to remove them periodically to not incur in the 100.000 labels limit.

If not possible with APIs maybe it's possible with a query

Second question: "removed" labels doesn't count toward the 100k limit, right?

Thank you

googleadsapi...@google.com

unread,
May 14, 2019, 3:25:34 PM5/14/19
to AdWords API and Google Ads API Forum
Hello, 

You will be able to use the Label resource to pull the labels available in the account. The 100,000 limit is specific to the maximum number of labels that can be assigned to the entities like campaigns, ad groups etc.

Thanks,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

TommyTek

unread,
May 14, 2019, 5:03:38 PM5/14/19
to AdWords API and Google Ads API Forum
Hello,
 yes I know that, but as said I'm trying to pull only the orphan labels; the labels not linked to any object.
I've found a way only with LabelReport (https://developers.google.com/adwords/api/docs/appendix/reports/label-report) and setting all the counts=0; any alternative way with standard api?

thank you

googleadsapi...@google.com

unread,
May 15, 2019, 11:35:27 AM5/15/19
to AdWords API and Google Ads API Forum
Hi, 

If you're using Google Ads API, you may use the Label resource to pull the details of the labels that are not associated. If you're using AdWords API, one option is to use the Label Report. You may also use the LabelService.get() and this will return all the labels in the account. There is no API available to explicitly pull the labels that are not associated.

Thanks,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Reply all
Reply to author
Forward
0 new messages