// Copyright 2016 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.ads.adwords.jaxws.v201609.cm;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import com.google.api.ads.adwords.jaxws.v201609.express.BusinessHour;
import com.google.api.ads.adwords.jaxws.v201609.express.ProductService;
/**
*
* Represents a criterion (such as a keyword, placement, or vertical).
* <span class="constraint AdxEnabled">This is disabled for AdX when it is contained within Operators: ADD, SET.</span>
*
*
* <p>Java class for Criterion complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="Criterion">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
* <element name="type" type="{https://adwords.google.com/api/adwords/cm/v201609}Criterion.Type" minOccurs="0"/>
* <element name="Criterion.Type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Criterion", propOrder = {
"id",
"type",
"criterionType"
})
@XmlSeeAlso({
BusinessHour.class,
ProductService.class,
Gender.class,
CriterionUserList.class,
ContentLabel.class,
AdSchedule.class,
YouTubeVideo.class,
PreferredContent.class,
Placement.class,
MobileApplication.class,
CriterionUserInterest.class,
Language.class,
LocationGroups.class,
Vertical.class,
OperatingSystemVersion.class,
AgeRange.class,
Proximity.class,
Carrier.class,
MobileAppCategory.class,
Parent.class,
MobileDevice.class,
Location.class,
Platform.class,
IpBlock.class,
ProductScope.class,
AppPaymentModel.class,
Keyword.class,
YouTubeChannel.class,
ProductPartition.class,
Webpage.class
})
public class Criterion {
protected Long id;
@XmlSchemaType(name = "string")
protected CriterionType type;
@XmlElement(name = "Criterion.Type")
protected String criterionType;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setId(Long value) {
this.id = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link CriterionType }
*
*/
public CriterionType getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link CriterionType }
*
*/
public void setType(CriterionType value) {
this.type = value;
}
/**
* Gets the value of the criterionType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCriterionType() {
return criterionType;
}
/**
* Sets the value of the criterionType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCriterionType(String value) {
this.criterionType = value;
}
}