Service
CampaignCriterionService
MutateJobService
Inheritance
Criterion
▼
AdSchedule
AgeRange
AppPaymentModel
Carrier
ContentLabel
CriterionUserInterest
CriterionUserList
Gender
IpBlock
Keyword
Language
Location
LocationGroups
MobileAppCategory
MobileApplication
MobileDevice
OperatingSystemVersion
Placement
Platform
ProductPartition
ProductScope
Proximity
Vertical
Webpage
YouTubeChannel
YouTubeVideo
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))));
This is disabled for AdX when it is contained within Operators: ADD, SET.
- Namespace
-
https://adwords.google.com/api/adwords/cm/v201506 - Fields
| Field | Type | Description |
|---|---|---|
| Criterion (inherited) | ||
| id Required
|
xsd:long
|
ID of this criterion.
This field is required and should not be null when it is contained within Operators : SET, REMOVE.
|
| type ReadOnly
|
Criterion.Type
|
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.
Enumerations
|
| Criterion.Type |
xsd:string
|
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 | ||
| feedId |
xsd:long
|
Feed to be used for targeting around locations. This is required for distance targets. |
| matchingFunction Required
|
Function
|
Matching function to filter out locations targeted by the criteria.
This allows advertisers to target based on the semantics of the location.
This field is required and should not be null when it is contained within Operators : ADD.
|