Discover v201109: Filtering on Criterion type
November 16th, 2011 | Published in Google Adwords API
We’ve noticed a popular question in the forum: “How do I retrieve criteria of a specific type via the API?”. Previously, there was no straightforward way to filter by the criterion type on the server side and the only workaround was to retrieve all criteria and process the list on the client side.
In v201109 we introduced a new filterable field called ‘CriteriaType’ to the Criterion object. For example, the following request will return criteria of types ‘KEYWORD’ and ‘PLACEMENT’ only:
You can find out the list of available criteria types in the documentation.
We hope this enhancement will make it easier to work with criteria. Please visit the forum or join our Google+ Hangout today if you have any questions regarding this change.
Danial Klimkin, AdWords API Team.
In v201109 we introduced a new filterable field called ‘CriteriaType’ to the Criterion object. For example, the following request will return criteria of types ‘KEYWORD’ and ‘PLACEMENT’ only:
Id
CriteriaType
CriteriaType
IN
KEYWORD
PLACEMENT
You can find out the list of available criteria types in the documentation.
We hope this enhancement will make it easier to work with criteria. Please visit the forum or join our Google+ Hangout today if you have any questions regarding this change.
Danial Klimkin, AdWords API Team.