public class LocationGroups extends Criterion
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.
This is disabled for AdX when it is contained within Operators: ADD, SET.Java class for LocationGroups complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="LocationGroups">
<complexContent>
<extension base="{https://adwords.google.com/api/adwords/cm/v201809}Criterion">
<sequence>
<element name="feedId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="matchingFunction" type="{https://adwords.google.com/api/adwords/cm/v201809}Function" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Long |
feedId |
protected Function |
matchingFunction |
criterionType, id, type| Constructor and Description |
|---|
LocationGroups() |
| Modifier and Type | Method and Description |
|---|---|
Long |
getFeedId()
Gets the value of the feedId property.
|
Function |
getMatchingFunction()
Gets the value of the matchingFunction property.
|
void |
setFeedId(Long value)
Sets the value of the feedId property.
|
void |
setMatchingFunction(Function value)
Sets the value of the matchingFunction property.
|
getCriterionType, getId, getType, setCriterionType, setId, setTypepublic Long getFeedId()
Longpublic void setFeedId(Long value)
value - allowed object is
Longpublic Function getMatchingFunction()
FunctionCopyright © 2023. All rights reserved.