// 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 java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Represents an ad in an ad group.
*
*
* <p>Java class for AdGroupAd complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="AdGroupAd">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="adGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
* <element name="ad" type="{https://adwords.google.com/api/adwords/cm/v201609}Ad" minOccurs="0"/>
* <element name="status" type="{https://adwords.google.com/api/adwords/cm/v201609}AdGroupAd.Status" minOccurs="0"/>
* <element name="approvalStatus" type="{https://adwords.google.com/api/adwords/cm/v201609}AdGroupAd.ApprovalStatus" minOccurs="0"/>
* <element name="trademarks" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* <element name="disapprovalReasons" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* <element name="trademarkDisapproved" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="labels" type="{https://adwords.google.com/api/adwords/cm/v201609}Label" maxOccurs="unbounded" minOccurs="0"/>
* <element name="baseCampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
* <element name="baseAdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
* <element name="forwardCompatibilityMap" type="{https://adwords.google.com/api/adwords/cm/v201609}String_StringMapEntry" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AdGroupAd", propOrder = {
"adGroupId",
"ad",
"status",
"approvalStatus",
"trademarks",
"disapprovalReasons",
"trademarkDisapproved",
"labels",
"baseCampaignId",
"baseAdGroupId",
"forwardCompatibilityMap"
})
public class AdGroupAd {
protected Long adGroupId;
protected Ad ad;
@XmlSchemaType(name = "string")
protected AdGroupAdStatus status;
@XmlSchemaType(name = "string")
protected AdGroupAdApprovalStatus approvalStatus;
protected List<String> trademarks;
protected List<String> disapprovalReasons;
protected Boolean trademarkDisapproved;
protected List<Label> labels;
protected Long baseCampaignId;
protected Long baseAdGroupId;
protected List<StringStringMapEntry> forwardCompatibilityMap;
/**
* Gets the value of the adGroupId property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getAdGroupId() {
return adGroupId;
}
/**
* Sets the value of the adGroupId property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setAdGroupId(Long value) {
this.adGroupId = value;
}
/**
* Gets the value of the ad property.
*
* @return
* possible object is
* {@link Ad }
*
*/
public Ad getAd() {
return ad;
}
/**
* Sets the value of the ad property.
*
* @param value
* allowed object is
* {@link Ad }
*
*/
public void setAd(Ad value) {
this.ad = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link AdGroupAdStatus }
*
*/
public AdGroupAdStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link AdGroupAdStatus }
*
*/
public void setStatus(AdGroupAdStatus value) {
this.status = value;
}
/**
* Gets the value of the approvalStatus property.
*
* @return
* possible object is
* {@link AdGroupAdApprovalStatus }
*
*/
public AdGroupAdApprovalStatus getApprovalStatus() {
return approvalStatus;
}
/**
* Sets the value of the approvalStatus property.
*
* @param value
* allowed object is
* {@link AdGroupAdApprovalStatus }
*
*/
public void setApprovalStatus(AdGroupAdApprovalStatus value) {
this.approvalStatus = value;
}
/**
* Gets the value of the trademarks property.
*
* <p>
* 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 <CODE>set</CODE> method for the trademarks property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTrademarks().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getTrademarks() {
if (trademarks == null) {
trademarks = new ArrayList<String>();
}
return this.trademarks;
}
/**
* Gets the value of the disapprovalReasons property.
*
* <p>
* 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 <CODE>set</CODE> method for the disapprovalReasons property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDisapprovalReasons().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getDisapprovalReasons() {
if (disapprovalReasons == null) {
disapprovalReasons = new ArrayList<String>();
}
return this.disapprovalReasons;
}
/**
* Gets the value of the trademarkDisapproved property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isTrademarkDisapproved() {
return trademarkDisapproved;
}
/**
* Sets the value of the trademarkDisapproved property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setTrademarkDisapproved(Boolean value) {
this.trademarkDisapproved = value;
}
/**
* Gets the value of the labels property.
*
* <p>
* 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 <CODE>set</CODE> method for the labels property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getLabels().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Label }
*
*
*/
public List<Label> getLabels() {
if (labels == null) {
labels = new ArrayList<Label>();
}
return this.labels;
}
/**
* Gets the value of the baseCampaignId property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getBaseCampaignId() {
return baseCampaignId;
}
/**
* Sets the value of the baseCampaignId property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setBaseCampaignId(Long value) {
this.baseCampaignId = value;
}
/**
* Gets the value of the baseAdGroupId property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getBaseAdGroupId() {
return baseAdGroupId;
}
/**
* Sets the value of the baseAdGroupId property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setBaseAdGroupId(Long value) {
this.baseAdGroupId = value;
}
/**
* Gets the value of the forwardCompatibilityMap property.
*
* <p>
* 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 <CODE>set</CODE> method for the forwardCompatibilityMap property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getForwardCompatibilityMap().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link StringStringMapEntry }
*
*
*/
public List<StringStringMapEntry> getForwardCompatibilityMap() {
if (forwardCompatibilityMap == null) {
forwardCompatibilityMap = new ArrayList<StringStringMapEntry>();
}
return this.forwardCompatibilityMap;
}
}