// 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.v201607.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; /** * * Data representing an AdWords campaign. * * * <p>Java class for Campaign complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="Campaign"> * <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="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="status" type="{https://adwords.google.com/api/adwords/cm/v201607}CampaignStatus" minOccurs="0"/> * <element name="servingStatus" type="{https://adwords.google.com/api/adwords/cm/v201607}ServingStatus" minOccurs="0"/> * <element name="startDate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="endDate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="budget" type="{https://adwords.google.com/api/adwords/cm/v201607}Budget" minOccurs="0"/> * <element name="conversionOptimizerEligibility" type="{https://adwords.google.com/api/adwords/cm/v201607}ConversionOptimizerEligibility" minOccurs="0"/> * <element name="adServingOptimizationStatus" type="{https://adwords.google.com/api/adwords/cm/v201607}AdServingOptimizationStatus" minOccurs="0"/> * <element name="frequencyCap" type="{https://adwords.google.com/api/adwords/cm/v201607}FrequencyCap" minOccurs="0"/> * <element name="settings" type="{https://adwords.google.com/api/adwords/cm/v201607}Setting" maxOccurs="unbounded" minOccurs="0"/> * <element name="advertisingChannelType" type="{https://adwords.google.com/api/adwords/cm/v201607}AdvertisingChannelType" minOccurs="0"/> * <element name="advertisingChannelSubType" type="{https://adwords.google.com/api/adwords/cm/v201607}AdvertisingChannelSubType" minOccurs="0"/> * <element name="networkSetting" type="{https://adwords.google.com/api/adwords/cm/v201607}NetworkSetting" minOccurs="0"/> * <element name="labels" type="{https://adwords.google.com/api/adwords/cm/v201607}Label" maxOccurs="unbounded" minOccurs="0"/> * <element name="biddingStrategyConfiguration" type="{https://adwords.google.com/api/adwords/cm/v201607}BiddingStrategyConfiguration" minOccurs="0"/> * <element name="campaignTrialType" type="{https://adwords.google.com/api/adwords/cm/v201607}CampaignTrialType" minOccurs="0"/> * <element name="baseCampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/> * <element name="forwardCompatibilityMap" type="{https://adwords.google.com/api/adwords/cm/v201607}String_StringMapEntry" maxOccurs="unbounded" minOccurs="0"/> * <element name="trackingUrlTemplate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="urlCustomParameters" type="{https://adwords.google.com/api/adwords/cm/v201607}CustomParameters" minOccurs="0"/> * <element name="vanityPharma" type="{https://adwords.google.com/api/adwords/cm/v201607}VanityPharma" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Campaign", propOrder = { "id", "name", "status", "servingStatus", "startDate", "endDate", "budget", "conversionOptimizerEligibility", "adServingOptimizationStatus", "frequencyCap", "settings", "advertisingChannelType", "advertisingChannelSubType", "networkSetting", "labels", "biddingStrategyConfiguration", "campaignTrialType", "baseCampaignId", "forwardCompatibilityMap", "trackingUrlTemplate", "urlCustomParameters", "vanityPharma" }) public class Campaign { protected Long id; protected String name; @XmlSchemaType(name = "string") protected CampaignStatus status; @XmlSchemaType(name = "string") protected ServingStatus servingStatus; protected String startDate; protected String endDate; protected Budget budget; protected ConversionOptimizerEligibility conversionOptimizerEligibility; @XmlSchemaType(name = "string") protected AdServingOptimizationStatus adServingOptimizationStatus; protected FrequencyCap frequencyCap; protected List<Setting> settings; @XmlSchemaType(name = "string") protected AdvertisingChannelType advertisingChannelType; @XmlSchemaType(name = "string") protected AdvertisingChannelSubType advertisingChannelSubType; protected NetworkSetting networkSetting; protected List<Label> labels; protected BiddingStrategyConfiguration biddingStrategyConfiguration; @XmlSchemaType(name = "string") protected CampaignTrialType campaignTrialType; protected Long baseCampaignId; protected List<StringStringMapEntry> forwardCompatibilityMap; protected String trackingUrlTemplate; protected CustomParameters urlCustomParameters; protected VanityPharma vanityPharma; /** * 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 name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the status property. * * @return * possible object is * {@link CampaignStatus } * */ public CampaignStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link CampaignStatus } * */ public void setStatus(CampaignStatus value) { this.status = value; } /** * Gets the value of the servingStatus property. * * @return * possible object is * {@link ServingStatus } * */ public ServingStatus getServingStatus() { return servingStatus; } /** * Sets the value of the servingStatus property. * * @param value * allowed object is * {@link ServingStatus } * */ public void setServingStatus(ServingStatus value) { this.servingStatus = value; } /** * Gets the value of the startDate property. * * @return * possible object is * {@link String } * */ public String getStartDate() { return startDate; } /** * Sets the value of the startDate property. * * @param value * allowed object is * {@link String } * */ public void setStartDate(String value) { this.startDate = value; } /** * Gets the value of the endDate property. * * @return * possible object is * {@link String } * */ public String getEndDate() { return endDate; } /** * Sets the value of the endDate property. * * @param value * allowed object is * {@link String } * */ public void setEndDate(String value) { this.endDate = value; } /** * Gets the value of the budget property. * * @return * possible object is * {@link Budget } * */ public Budget getBudget() { return budget; } /** * Sets the value of the budget property. * * @param value * allowed object is * {@link Budget } * */ public void setBudget(Budget value) { this.budget = value; } /** * Gets the value of the conversionOptimizerEligibility property. * * @return * possible object is * {@link ConversionOptimizerEligibility } * */ public ConversionOptimizerEligibility getConversionOptimizerEligibility() { return conversionOptimizerEligibility; } /** * Sets the value of the conversionOptimizerEligibility property. * * @param value * allowed object is * {@link ConversionOptimizerEligibility } * */ public void setConversionOptimizerEligibility(ConversionOptimizerEligibility value) { this.conversionOptimizerEligibility = value; } /** * Gets the value of the adServingOptimizationStatus property. * * @return * possible object is * {@link AdServingOptimizationStatus } * */ public AdServingOptimizationStatus getAdServingOptimizationStatus() { return adServingOptimizationStatus; } /** * Sets the value of the adServingOptimizationStatus property. * * @param value * allowed object is * {@link AdServingOptimizationStatus } * */ public void setAdServingOptimizationStatus(AdServingOptimizationStatus value) { this.adServingOptimizationStatus = value; } /** * Gets the value of the frequencyCap property. * * @return * possible object is * {@link FrequencyCap } * */ public FrequencyCap getFrequencyCap() { return frequencyCap; } /** * Sets the value of the frequencyCap property. * * @param value * allowed object is * {@link FrequencyCap } * */ public void setFrequencyCap(FrequencyCap value) { this.frequencyCap = value; } /** * Gets the value of the settings 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 settings property. * * <p> * For example, to add a new item, do as follows: * <pre> * getSettings().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Setting } * * */ public List<Setting> getSettings() { if (settings == null) { settings = new ArrayList<Setting>(); } return this.settings; } /** * Gets the value of the advertisingChannelType property. * * @return * possible object is * {@link AdvertisingChannelType } * */ public AdvertisingChannelType getAdvertisingChannelType() { return advertisingChannelType; } /** * Sets the value of the advertisingChannelType property. * * @param value * allowed object is * {@link AdvertisingChannelType } * */ public void setAdvertisingChannelType(AdvertisingChannelType value) { this.advertisingChannelType = value; } /** * Gets the value of the advertisingChannelSubType property. * * @return * possible object is * {@link AdvertisingChannelSubType } * */ public AdvertisingChannelSubType getAdvertisingChannelSubType() { return advertisingChannelSubType; } /** * Sets the value of the advertisingChannelSubType property. * * @param value * allowed object is * {@link AdvertisingChannelSubType } * */ public void setAdvertisingChannelSubType(AdvertisingChannelSubType value) { this.advertisingChannelSubType = value; } /** * Gets the value of the networkSetting property. * * @return * possible object is * {@link NetworkSetting } * */ public NetworkSetting getNetworkSetting() { return networkSetting; } /** * Sets the value of the networkSetting property. * * @param value * allowed object is * {@link NetworkSetting } * */ public void setNetworkSetting(NetworkSetting value) { this.networkSetting = 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 biddingStrategyConfiguration property. * * @return * possible object is * {@link BiddingStrategyConfiguration } * */ public BiddingStrategyConfiguration getBiddingStrategyConfiguration() { return biddingStrategyConfiguration; } /** * Sets the value of the biddingStrategyConfiguration property. * * @param value * allowed object is * {@link BiddingStrategyConfiguration } * */ public void setBiddingStrategyConfiguration(BiddingStrategyConfiguration value) { this.biddingStrategyConfiguration = value; } /** * Gets the value of the campaignTrialType property. * * @return * possible object is * {@link CampaignTrialType } * */ public CampaignTrialType getCampaignTrialType() { return campaignTrialType; } /** * Sets the value of the campaignTrialType property. * * @param value * allowed object is * {@link CampaignTrialType } * */ public void setCampaignTrialType(CampaignTrialType value) { this.campaignTrialType = value; } /** * 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 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; } /** * Gets the value of the trackingUrlTemplate property. * * @return * possible object is * {@link String } * */ public String getTrackingUrlTemplate() { return trackingUrlTemplate; } /** * Sets the value of the trackingUrlTemplate property. * * @param value * allowed object is * {@link String } * */ public void setTrackingUrlTemplate(String value) { this.trackingUrlTemplate = value; } /** * Gets the value of the urlCustomParameters property. * * @return * possible object is * {@link CustomParameters } * */ public CustomParameters getUrlCustomParameters() { return urlCustomParameters; } /** * Sets the value of the urlCustomParameters property. * * @param value * allowed object is * {@link CustomParameters } * */ public void setUrlCustomParameters(CustomParameters value) { this.urlCustomParameters = value; } /** * Gets the value of the vanityPharma property. * * @return * possible object is * {@link VanityPharma } * */ public VanityPharma getVanityPharma() { return vanityPharma; } /** * Sets the value of the vanityPharma property. * * @param value * allowed object is * {@link VanityPharma } * */ public void setVanityPharma(VanityPharma value) { this.vanityPharma = value; } }