Hi, I am using Adwords API in Python. I want to check if a Label 'ABC' is already assigned to a particular keyword 'KeywordA'. I will check if Label 'ABC' is present in the Page entries returned by 'get' method of AdGroupCriterionService How will I write a serviceSelector for specifying CriterionId for a keyword. I am trying with following things -
I have LabelId, adGroupId and CriterionId as input for serviceSelector - ad_group_criterion_service = client.GetService('AdGroupCriterionService', version='v201409') serviceSelector = { 'fields': ['Labels'], 'predicates': [{ 'field': 'Labels', 'operator': 'CONTAINS_ANY', 'values': [LabelId] }, { 'field': 'AdGroupId', 'operator': 'EQUALS', 'values': [adGroupId] }, { 'field': 'CriterionUse', 'operator': 'EQUALS', 'values': ['BIDDABLE'] }] # { *** How to write this part ?? I want to set Keyword --> Id # 'field': 'Criterion', # 'operator': 'EQUALS', # 'values': [{'Id': CriterionId}] # }] } page = ad_group_criterion_service.get(serviceSelector) -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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 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 http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/0269dd1b-3aab-47b7-8d50-1bc2f3e78598%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.