// Copyright 2017 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.v201702.ch; 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.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; /** * * Holds information about a changed campaign and any ad groups under that have changed. * * * <p>Java class for CampaignChangeData complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="CampaignChangeData"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="campaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/> * <element name="campaignChangeStatus" type="{https://adwords.google.com/api/adwords/ch/v201702}ChangeStatus" minOccurs="0"/> * <element name="changedAdGroups" type="{https://adwords.google.com/api/adwords/ch/v201702}AdGroupChangeData" maxOccurs="unbounded" minOccurs="0"/> * <element name="addedCampaignCriteria" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/> * <element name="removedCampaignCriteria" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/> * <element name="changedFeeds" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/> * <element name="removedFeeds" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CampaignChangeData", propOrder = { "campaignId", "campaignChangeStatus", "changedAdGroups", "addedCampaignCriteria", "removedCampaignCriteria", "changedFeeds", "removedFeeds" }) public class CampaignChangeData { protected Long campaignId; @XmlSchemaType(name = "string") protected ChangeStatus campaignChangeStatus; protected List<AdGroupChangeData> changedAdGroups; @XmlElement(type = Long.class) protected List<Long> addedCampaignCriteria; @XmlElement(type = Long.class) protected List<Long> removedCampaignCriteria; @XmlElement(type = Long.class) protected List<Long> changedFeeds; @XmlElement(type = Long.class) protected List<Long> removedFeeds; /** * Gets the value of the campaignId property. * * @return * possible object is * {@link Long } * */ public Long getCampaignId() { return campaignId; } /** * Sets the value of the campaignId property. * * @param value * allowed object is * {@link Long } * */ public void setCampaignId(Long value) { this.campaignId = value; } /** * Gets the value of the campaignChangeStatus property. * * @return * possible object is * {@link ChangeStatus } * */ public ChangeStatus getCampaignChangeStatus() { return campaignChangeStatus; } /** * Sets the value of the campaignChangeStatus property. * * @param value * allowed object is * {@link ChangeStatus } * */ public void setCampaignChangeStatus(ChangeStatus value) { this.campaignChangeStatus = value; } /** * Gets the value of the changedAdGroups 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 changedAdGroups property. * * <p> * For example, to add a new item, do as follows: * <pre> * getChangedAdGroups().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link AdGroupChangeData } * * */ public List<AdGroupChangeData> getChangedAdGroups() { if (changedAdGroups == null) { changedAdGroups = new ArrayList<AdGroupChangeData>(); } return this.changedAdGroups; } /** * Gets the value of the addedCampaignCriteria 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 addedCampaignCriteria property. * * <p> * For example, to add a new item, do as follows: * <pre> * getAddedCampaignCriteria().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Long } * * */ public List<Long> getAddedCampaignCriteria() { if (addedCampaignCriteria == null) { addedCampaignCriteria = new ArrayList<Long>(); } return this.addedCampaignCriteria; } /** * Gets the value of the removedCampaignCriteria 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 removedCampaignCriteria property. * * <p> * For example, to add a new item, do as follows: * <pre> * getRemovedCampaignCriteria().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Long } * * */ public List<Long> getRemovedCampaignCriteria() { if (removedCampaignCriteria == null) { removedCampaignCriteria = new ArrayList<Long>(); } return this.removedCampaignCriteria; } /** * Gets the value of the changedFeeds 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 changedFeeds property. * * <p> * For example, to add a new item, do as follows: * <pre> * getChangedFeeds().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Long } * * */ public List<Long> getChangedFeeds() { if (changedFeeds == null) { changedFeeds = new ArrayList<Long>(); } return this.changedFeeds; } /** * Gets the value of the removedFeeds 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 removedFeeds property. * * <p> * For example, to add a new item, do as follows: * <pre> * getRemovedFeeds().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Long } * * */ public List<Long> getRemovedFeeds() { if (removedFeeds == null) { removedFeeds = new ArrayList<Long>(); } return this.removedFeeds; } }