I am trying to write code to check if 'MyLabel' already exists in Labels
before creating it. I am using Python.
Using LabelService APIs how should be code written ? Actually I am looking
for the use of LabelService.get method but cannot specify serviceSelector
correctly.
This code gives error for serviceSelector SelectorError.INVALID_FIELD_NAME
label_service = client.GetService('LabelService', version='v201409')
serviceSelector = {'fields': ['id', 'name'],
'predicates' : {'field' : 'name', 'operator' : 'EQUALS',
'values' : 'MyLabel'}
}
result = label_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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/5020e623-f640-4b6d-acfe-a59a6072c39a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.