Hello,

Please find my response below:

1. You will first need to use the LabelService.mutate
<https://developers.google.com/adwords/api/docs/reference/v201809/LabelService#mutate>
to create the label with the specific text.
2. Add keyword using AdGroupCriterionService.mutate
<https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService#mutate>
call. You can refer this
<https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201809/basic_operations/add_keywords.py>
sample code to add the keyword.
3. You will get the label id
<https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService.AdGroupCriterionLabel#labelid>and
keyword id
<https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService.Keyword#id>
from about API calls. You can use AdGroupCriterionService.mutatelabel
<https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService#mutatelabel>
call to set label to keyword.

Please check the guide on labels
<https://developers.google.com/adwords/api/docs/guides/labels#create_labels>
for more information. Please find the sample request and response. If you
are facing any error, please share the error message or screenshot so that
I can troubleshoot the issue.

Thanks,
Milind, AdWords API Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/00d12jdao8000000gslrv2005muc8az74mjic1m70o30c1g68q3ichj%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Adding ... Danieel Leite
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to