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)