Service
CampaignCriterionService
MutateJobService
Inheritance
Criterion
▼
AdSchedule
AgeRange
Carrier
ContentLabel
CriterionUserInterest
CriterionUserList
Gender
IpBlock
Keyword
Language
Location
LocationGroups
MobileAppCategory
MobileApplication
MobileDevice
OperatingSystemVersion
Placement
Platform
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 Filterable
Required
Selectable
|
xsd:long
|
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.
|
type Filterable
ReadOnly
Selectable
|
Criterion.Type
|
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.
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 Selectable
|
xsd:long
|
Feed to be used for targeting around locations. This is required for distance targets. This field can be selected using the value "FeedId". |
matchingFunction Required
Selectable
|
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 can be selected using the value "MatchingFunction".
This field is required and should not be null when it is contained within Operators : ADD.
|