001// Generated by delombok at Fri Oct 04 16:05:59 CEST 2024
002/*
003 * Copyright (c) 2010-2024 Mark Allen, Norbert Bartels.
004 *
005 * Permission is hereby granted, free of charge, to any person obtaining a copy
006 * of this software and associated documentation files (the "Software"), to deal
007 * in the Software without restriction, including without limitation the rights
008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
009 * copies of the Software, and to permit persons to whom the Software is
010 * furnished to do so, subject to the following conditions:
011 *
012 * The above copyright notice and this permission notice shall be included in
013 * all copies or substantial portions of the Software.
014 *
015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
021 * THE SOFTWARE.
022 */
023package com.restfb.types.ads;
024
025import java.util.*;
026import com.restfb.Facebook;
027import com.restfb.types.features.HasCreatedTime;
028
029public class Ad extends NamedAdsObject implements HasCreatedTime {
030  @Facebook("account_id")
031  private String accountId;
032  @Facebook("ad_review_feedback")
033  private AdgroupReviewFeedback adReviewFeedback;
034  @Facebook("adlabels")
035  private List<AdLabel> adlabels = new ArrayList<>();
036  @Facebook("adset")
037  private AdSet adset;
038  @Facebook("adset_id")
039  private String adsetId;
040  @Facebook("bid_amount")
041  private Long bidAmount;
042  @Facebook("bid_info")
043  private Map<String, Long> bidInfo;
044  @Facebook("bid_type")
045  private String bidType;
046  @Facebook("campaign")
047  private Campaign campaign;
048  @Facebook("campaign_id")
049  private String campaignId;
050  @Facebook("configured_status")
051  private String configuredStatus;
052  @Facebook("conversion_specs")
053  private List<ConversionActionQuery> conversionSpecs = new ArrayList<>();
054  @Facebook("created_time")
055  private Date createdTime;
056  @Facebook("creative")
057  private AdCreative creative;
058  @Facebook("demolink_hash")
059  private String demolinkHash;
060  @Facebook("display_sequence")
061  private Long displaySequence;
062  @Facebook("effective_status")
063  private String effectiveStatus;
064  @Facebook("engagement_audience")
065  private Boolean engagementAudience;
066  @Facebook("failed_delivery_checks")
067  private List<DeliveryCheck> failedDeliveryChecks = new ArrayList<>();
068  @Facebook("issues_info")
069  private List<AdgroupIssuesInfo> issuesInfo = new ArrayList<>();
070  @Facebook
071  private Long priority;
072  @Facebook("source_ad")
073  private Ad sourceAd;
074  @Facebook("source_ad_id")
075  private String sourceAdId;
076  @Facebook
077  private Targeting targeting;
078  @Facebook("last_updated_by_app_id")
079  private String lastUpdatedByAppId;
080  @Facebook("recommendations")
081  private List<AdRecommendation> recommendations = new ArrayList<>();
082  @Facebook("status")
083  private String status;
084  @Facebook("tracking_and_conversion_with_defaults")
085  private TrackingAndConversionWithDefaults trackingAndConversionWithDefaults;
086  @Facebook("tracking_specs")
087  private List<ConversionActionQuery> trackingSpecs = new ArrayList<>();
088  @Facebook("updated_time")
089  private Date updatedTime;
090  @Facebook
091  private List<TargetingSentenceLine> targetingsentencelines = new ArrayList<>();
092
093  public boolean addConversionSpec(ConversionActionQuery conversionSpec) {
094    return conversionSpecs.add(conversionSpec);
095  }
096
097  public boolean removeConversionSpec(ConversionActionQuery conversionSpec) {
098    return conversionSpecs.remove(conversionSpec);
099  }
100
101  public List<ConversionActionQuery> getConversionSpecs() {
102    return Collections.unmodifiableList(conversionSpecs);
103  }
104
105  public boolean addAdlabel(AdLabel adLabel) {
106    return adlabels.add(adLabel);
107  }
108
109  public boolean removeAdlabel(AdLabel adLabel) {
110    return adlabels.remove(adLabel);
111  }
112
113  public List<AdLabel> getAdlabels() {
114    return Collections.unmodifiableList(adlabels);
115  }
116
117  public boolean addRecommendation(AdRecommendation adRecommendation) {
118    return recommendations.add(adRecommendation);
119  }
120
121  public boolean removeRecommendation(AdRecommendation adRecommendation) {
122    return recommendations.remove(adRecommendation);
123  }
124
125  public List<AdRecommendation> getRecommendations() {
126    return Collections.unmodifiableList(recommendations);
127  }
128
129  public boolean addTrackingSpec(ConversionActionQuery trackingSpec) {
130    return trackingSpecs.add(trackingSpec);
131  }
132
133  public boolean removeTrackingSpec(ConversionActionQuery trackingSpec) {
134    return trackingSpecs.remove(trackingSpec);
135  }
136
137  public List<ConversionActionQuery> getTrackingSpecs() {
138    return Collections.unmodifiableList(trackingSpecs);
139  }
140
141  public boolean addTargetingsentenceline(TargetingSentenceLine targetingsentenceline) {
142    return targetingsentencelines.add(targetingsentenceline);
143  }
144
145  public boolean removeTargetingsentenceline(TargetingSentenceLine targetingsentenceline) {
146    return targetingsentencelines.remove(targetingsentenceline);
147  }
148
149  public List<TargetingSentenceLine> getTargetingsentencelines() {
150    return Collections.unmodifiableList(targetingsentencelines);
151  }
152
153  @java.lang.SuppressWarnings("all")
154  public String getAccountId() {
155    return this.accountId;
156  }
157
158  @java.lang.SuppressWarnings("all")
159  public void setAccountId(final String accountId) {
160    this.accountId = accountId;
161  }
162
163  @java.lang.SuppressWarnings("all")
164  public AdgroupReviewFeedback getAdReviewFeedback() {
165    return this.adReviewFeedback;
166  }
167
168  @java.lang.SuppressWarnings("all")
169  public void setAdReviewFeedback(final AdgroupReviewFeedback adReviewFeedback) {
170    this.adReviewFeedback = adReviewFeedback;
171  }
172
173  @java.lang.SuppressWarnings("all")
174  public AdSet getAdset() {
175    return this.adset;
176  }
177
178  @java.lang.SuppressWarnings("all")
179  public void setAdset(final AdSet adset) {
180    this.adset = adset;
181  }
182
183  @java.lang.SuppressWarnings("all")
184  public String getAdsetId() {
185    return this.adsetId;
186  }
187
188  @java.lang.SuppressWarnings("all")
189  public void setAdsetId(final String adsetId) {
190    this.adsetId = adsetId;
191  }
192
193  @java.lang.SuppressWarnings("all")
194  public Long getBidAmount() {
195    return this.bidAmount;
196  }
197
198  @java.lang.SuppressWarnings("all")
199  public void setBidAmount(final Long bidAmount) {
200    this.bidAmount = bidAmount;
201  }
202
203  @java.lang.SuppressWarnings("all")
204  public Map<String, Long> getBidInfo() {
205    return this.bidInfo;
206  }
207
208  @java.lang.SuppressWarnings("all")
209  public void setBidInfo(final Map<String, Long> bidInfo) {
210    this.bidInfo = bidInfo;
211  }
212
213  @java.lang.SuppressWarnings("all")
214  public String getBidType() {
215    return this.bidType;
216  }
217
218  @java.lang.SuppressWarnings("all")
219  public void setBidType(final String bidType) {
220    this.bidType = bidType;
221  }
222
223  @java.lang.SuppressWarnings("all")
224  public Campaign getCampaign() {
225    return this.campaign;
226  }
227
228  @java.lang.SuppressWarnings("all")
229  public void setCampaign(final Campaign campaign) {
230    this.campaign = campaign;
231  }
232
233  @java.lang.SuppressWarnings("all")
234  public String getCampaignId() {
235    return this.campaignId;
236  }
237
238  @java.lang.SuppressWarnings("all")
239  public void setCampaignId(final String campaignId) {
240    this.campaignId = campaignId;
241  }
242
243  @java.lang.SuppressWarnings("all")
244  public String getConfiguredStatus() {
245    return this.configuredStatus;
246  }
247
248  @java.lang.SuppressWarnings("all")
249  public void setConfiguredStatus(final String configuredStatus) {
250    this.configuredStatus = configuredStatus;
251  }
252
253  @Override
254  @java.lang.SuppressWarnings("all")
255  public Date getCreatedTime() {
256    return this.createdTime;
257  }
258
259  @java.lang.SuppressWarnings("all")
260  public void setCreatedTime(final Date createdTime) {
261    this.createdTime = createdTime;
262  }
263
264  @java.lang.SuppressWarnings("all")
265  public AdCreative getCreative() {
266    return this.creative;
267  }
268
269  @java.lang.SuppressWarnings("all")
270  public void setCreative(final AdCreative creative) {
271    this.creative = creative;
272  }
273
274  @java.lang.SuppressWarnings("all")
275  public String getDemolinkHash() {
276    return this.demolinkHash;
277  }
278
279  @java.lang.SuppressWarnings("all")
280  public void setDemolinkHash(final String demolinkHash) {
281    this.demolinkHash = demolinkHash;
282  }
283
284  @java.lang.SuppressWarnings("all")
285  public Long getDisplaySequence() {
286    return this.displaySequence;
287  }
288
289  @java.lang.SuppressWarnings("all")
290  public void setDisplaySequence(final Long displaySequence) {
291    this.displaySequence = displaySequence;
292  }
293
294  @java.lang.SuppressWarnings("all")
295  public String getEffectiveStatus() {
296    return this.effectiveStatus;
297  }
298
299  @java.lang.SuppressWarnings("all")
300  public void setEffectiveStatus(final String effectiveStatus) {
301    this.effectiveStatus = effectiveStatus;
302  }
303
304  @java.lang.SuppressWarnings("all")
305  public Boolean getEngagementAudience() {
306    return this.engagementAudience;
307  }
308
309  @java.lang.SuppressWarnings("all")
310  public void setEngagementAudience(final Boolean engagementAudience) {
311    this.engagementAudience = engagementAudience;
312  }
313
314  @java.lang.SuppressWarnings("all")
315  public List<DeliveryCheck> getFailedDeliveryChecks() {
316    return this.failedDeliveryChecks;
317  }
318
319  @java.lang.SuppressWarnings("all")
320  public void setFailedDeliveryChecks(final List<DeliveryCheck> failedDeliveryChecks) {
321    this.failedDeliveryChecks = failedDeliveryChecks;
322  }
323
324  @java.lang.SuppressWarnings("all")
325  public List<AdgroupIssuesInfo> getIssuesInfo() {
326    return this.issuesInfo;
327  }
328
329  @java.lang.SuppressWarnings("all")
330  public void setIssuesInfo(final List<AdgroupIssuesInfo> issuesInfo) {
331    this.issuesInfo = issuesInfo;
332  }
333
334  @java.lang.SuppressWarnings("all")
335  public Long getPriority() {
336    return this.priority;
337  }
338
339  @java.lang.SuppressWarnings("all")
340  public void setPriority(final Long priority) {
341    this.priority = priority;
342  }
343
344  @java.lang.SuppressWarnings("all")
345  public Ad getSourceAd() {
346    return this.sourceAd;
347  }
348
349  @java.lang.SuppressWarnings("all")
350  public void setSourceAd(final Ad sourceAd) {
351    this.sourceAd = sourceAd;
352  }
353
354  @java.lang.SuppressWarnings("all")
355  public String getSourceAdId() {
356    return this.sourceAdId;
357  }
358
359  @java.lang.SuppressWarnings("all")
360  public void setSourceAdId(final String sourceAdId) {
361    this.sourceAdId = sourceAdId;
362  }
363
364  @java.lang.SuppressWarnings("all")
365  public Targeting getTargeting() {
366    return this.targeting;
367  }
368
369  @java.lang.SuppressWarnings("all")
370  public void setTargeting(final Targeting targeting) {
371    this.targeting = targeting;
372  }
373
374  @java.lang.SuppressWarnings("all")
375  public String getLastUpdatedByAppId() {
376    return this.lastUpdatedByAppId;
377  }
378
379  @java.lang.SuppressWarnings("all")
380  public void setLastUpdatedByAppId(final String lastUpdatedByAppId) {
381    this.lastUpdatedByAppId = lastUpdatedByAppId;
382  }
383
384  @java.lang.SuppressWarnings("all")
385  public String getStatus() {
386    return this.status;
387  }
388
389  @java.lang.SuppressWarnings("all")
390  public void setStatus(final String status) {
391    this.status = status;
392  }
393
394  @java.lang.SuppressWarnings("all")
395  public TrackingAndConversionWithDefaults getTrackingAndConversionWithDefaults() {
396    return this.trackingAndConversionWithDefaults;
397  }
398
399  @java.lang.SuppressWarnings("all")
400  public void setTrackingAndConversionWithDefaults(final TrackingAndConversionWithDefaults trackingAndConversionWithDefaults) {
401    this.trackingAndConversionWithDefaults = trackingAndConversionWithDefaults;
402  }
403
404  @java.lang.SuppressWarnings("all")
405  public Date getUpdatedTime() {
406    return this.updatedTime;
407  }
408
409  @java.lang.SuppressWarnings("all")
410  public void setUpdatedTime(final Date updatedTime) {
411    this.updatedTime = updatedTime;
412  }
413}