Represents a criterion containing a function that when evaluated specifies how to target based on the type of the location. These "location groups" are custom, dynamic bundles of locations (for instance "High income areas in California" or "Airports in France").
Examples:
For income demographic targeting, we need to specify the income tier and the geo which it targets. Areas in California that are in the top national income tier can be represented by:
Function function = new Function();
function.setLhsOperand(Arrays.asList(
(Operand) new IncomeOperand(IncomeTier.TIER_1));
function.setOperator(Operator.AND);
function.setRhsOperand(Arrays.asList(
(Operand) new GeoTargetOperand(Lists.newArrayList(new CriterionId(21137L))));
For place of interest targeting, we need to specify the place of interest category and the geo
which it targets. Airports in France can be represented by:
Function function = new Function();
function.setLhsOperand(Arrays.asList(
(Operand) new PlacesOfInterestOperand(PlacesOfInterestOperand.Category.AIRPORT));
function.setOperator(Operator.AND);
function.setRhsOperand(Arrays.asList(
(Operand) new GeoTargetOperand(Lists.newArrayList(new CriterionId(2250L))));
NOTE: Places of interest and income targeting are read only.
- Namespace
-
https://adwords.google.com/api/adwords/cm/v201809
Field |
|
---|---|
Criterion (inherited)
|
|
|
ID of this criterion. This field can be selected using the value "Id".
This field can be filtered on.
This field is required and should not be
null when it is contained within Operators : SET, REMOVE. |
|
Indicates that this instance is a subtype of Criterion. Although this field is returned in the response, it is ignored on input and cannot be selected. Specify xsi:type instead. Enumerations
This field can be selected using the value "CriteriaType".
This field can be filtered on.
This field is read only and will be ignored when sent to the API.
|
|
Indicates that this instance is a subtype of Criterion. Although this field is returned in the response, it is ignored on input and cannot be selected. Specify xsi:type instead. |
LocationGroups
|
|
|
Feed to be used for targeting around locations. This is required for distance targets. This field can be selected using the value "FeedId".
|
|
Matching function to filter out locations targeted by the criteria. This allows advertisers to target based on the semantics of the location. This field can be selected using the value "MatchingFunction".
|