
com.google.api.ads.dfp.jaxws.v201511.GeoTargeting Maven / Gradle / Ivy
Show all versions of dfp-appengine Show documentation
package com.google.api.ads.dfp.jaxws.v201511;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Provides line items the ability to target geographical locations. By default,
* line items target all countries and their subdivisions. With geographical
* targeting, you can target line items to specific countries, regions, metro
* areas, and cities. You can also exclude the same.
*
* The following rules apply for geographical targeting:
*
*
* - You cannot target and exclude the same location
* - You cannot target a child whose parent has been excluded. So if the state
* of Illinois has been excluded, then you cannot target Chicago
* - You must not target a location if you are also targeting its parent.
* So if you are targeting New York City, you must not have the state of New
* York as one of the targeted locations
*
*
*
* Java class for GeoTargeting complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="GeoTargeting">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="targetedLocations" type="{https://www.google.com/apis/ads/publisher/v201511}Location" maxOccurs="unbounded" minOccurs="0"/>
* <element name="excludedLocations" type="{https://www.google.com/apis/ads/publisher/v201511}Location" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GeoTargeting", propOrder = {
"targetedLocations",
"excludedLocations"
})
public class GeoTargeting {
protected List targetedLocations;
protected List excludedLocations;
/**
* Gets the value of the targetedLocations property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the targetedLocations property.
*
*
* For example, to add a new item, do as follows:
*
* getTargetedLocations().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Location }
*
*
*/
public List getTargetedLocations() {
if (targetedLocations == null) {
targetedLocations = new ArrayList();
}
return this.targetedLocations;
}
/**
* Gets the value of the excludedLocations property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the excludedLocations property.
*
*
* For example, to add a new item, do as follows:
*
* getExcludedLocations().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Location }
*
*
*/
public List getExcludedLocations() {
if (excludedLocations == null) {
excludedLocations = new ArrayList();
}
return this.excludedLocations;
}
}