Hello,

I'm struggling with a problem here related to labels. I wanted to know if 
it is possible to add keywords with labels already attached to them, 
instead of having to add the keywords, get their IDs and them assign the 
label to them.

I tried to use the operand below on AdGroupCriterionService (basically I 
added a 'labelId' parameter to the operand I use to add keywords), but I'm 
getting a syntax error (using Python on my scripts).

        keyword = {
            'xsi_type': 'BiddableAdGroupCriterion',
            'adGroupId': adgroup_dict_search_term['exact'],
            'criterion': {
                'xsi_type': 'Keyword',
                'matchType': 'EXACT',
                'text': search_term
            },
            'labelId': label_id
        }

Does anyone know if it is possible to do what I want? If so, how? If not, 
there's a better way to do this than by adding the keywords, looking for 
their IDs among the older keywords in the campaign and then adding the 
labels?

Thanks for the attention, hope you can help me.

Danieel Leite

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8e2fcc2b-231c-4929-9ec8-0b7021a8e838%40googlegroups.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