1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\RealTimeBidding;
19
20class Creative extends \Google\Collection
21{
22  protected $collection_key = 'restrictedCategories';
23  /**
24   * @var string
25   */
26  public $accountId;
27  /**
28   * @var string
29   */
30  public $adChoicesDestinationUrl;
31  /**
32   * @var string
33   */
34  public $advertiserName;
35  /**
36   * @var string
37   */
38  public $agencyId;
39  /**
40   * @var string
41   */
42  public $apiUpdateTime;
43  /**
44   * @var string
45   */
46  public $creativeFormat;
47  /**
48   * @var string
49   */
50  public $creativeId;
51  protected $creativeServingDecisionType = CreativeServingDecision::class;
52  protected $creativeServingDecisionDataType = '';
53  /**
54   * @var string[]
55   */
56  public $dealIds;
57  /**
58   * @var string[]
59   */
60  public $declaredAttributes;
61  /**
62   * @var string[]
63   */
64  public $declaredClickThroughUrls;
65  /**
66   * @var string[]
67   */
68  public $declaredRestrictedCategories;
69  /**
70   * @var int[]
71   */
72  public $declaredVendorIds;
73  protected $htmlType = HtmlContent::class;
74  protected $htmlDataType = '';
75  /**
76   * @var string[]
77   */
78  public $impressionTrackingUrls;
79  /**
80   * @var string
81   */
82  public $name;
83  protected $nativeType = NativeContent::class;
84  protected $nativeDataType = '';
85  /**
86   * @var string[]
87   */
88  public $restrictedCategories;
89  /**
90   * @var int
91   */
92  public $version;
93  protected $videoType = VideoContent::class;
94  protected $videoDataType = '';
95
96  /**
97   * @param string
98   */
99  public function setAccountId($accountId)
100  {
101    $this->accountId = $accountId;
102  }
103  /**
104   * @return string
105   */
106  public function getAccountId()
107  {
108    return $this->accountId;
109  }
110  /**
111   * @param string
112   */
113  public function setAdChoicesDestinationUrl($adChoicesDestinationUrl)
114  {
115    $this->adChoicesDestinationUrl = $adChoicesDestinationUrl;
116  }
117  /**
118   * @return string
119   */
120  public function getAdChoicesDestinationUrl()
121  {
122    return $this->adChoicesDestinationUrl;
123  }
124  /**
125   * @param string
126   */
127  public function setAdvertiserName($advertiserName)
128  {
129    $this->advertiserName = $advertiserName;
130  }
131  /**
132   * @return string
133   */
134  public function getAdvertiserName()
135  {
136    return $this->advertiserName;
137  }
138  /**
139   * @param string
140   */
141  public function setAgencyId($agencyId)
142  {
143    $this->agencyId = $agencyId;
144  }
145  /**
146   * @return string
147   */
148  public function getAgencyId()
149  {
150    return $this->agencyId;
151  }
152  /**
153   * @param string
154   */
155  public function setApiUpdateTime($apiUpdateTime)
156  {
157    $this->apiUpdateTime = $apiUpdateTime;
158  }
159  /**
160   * @return string
161   */
162  public function getApiUpdateTime()
163  {
164    return $this->apiUpdateTime;
165  }
166  /**
167   * @param string
168   */
169  public function setCreativeFormat($creativeFormat)
170  {
171    $this->creativeFormat = $creativeFormat;
172  }
173  /**
174   * @return string
175   */
176  public function getCreativeFormat()
177  {
178    return $this->creativeFormat;
179  }
180  /**
181   * @param string
182   */
183  public function setCreativeId($creativeId)
184  {
185    $this->creativeId = $creativeId;
186  }
187  /**
188   * @return string
189   */
190  public function getCreativeId()
191  {
192    return $this->creativeId;
193  }
194  /**
195   * @param CreativeServingDecision
196   */
197  public function setCreativeServingDecision(CreativeServingDecision $creativeServingDecision)
198  {
199    $this->creativeServingDecision = $creativeServingDecision;
200  }
201  /**
202   * @return CreativeServingDecision
203   */
204  public function getCreativeServingDecision()
205  {
206    return $this->creativeServingDecision;
207  }
208  /**
209   * @param string[]
210   */
211  public function setDealIds($dealIds)
212  {
213    $this->dealIds = $dealIds;
214  }
215  /**
216   * @return string[]
217   */
218  public function getDealIds()
219  {
220    return $this->dealIds;
221  }
222  /**
223   * @param string[]
224   */
225  public function setDeclaredAttributes($declaredAttributes)
226  {
227    $this->declaredAttributes = $declaredAttributes;
228  }
229  /**
230   * @return string[]
231   */
232  public function getDeclaredAttributes()
233  {
234    return $this->declaredAttributes;
235  }
236  /**
237   * @param string[]
238   */
239  public function setDeclaredClickThroughUrls($declaredClickThroughUrls)
240  {
241    $this->declaredClickThroughUrls = $declaredClickThroughUrls;
242  }
243  /**
244   * @return string[]
245   */
246  public function getDeclaredClickThroughUrls()
247  {
248    return $this->declaredClickThroughUrls;
249  }
250  /**
251   * @param string[]
252   */
253  public function setDeclaredRestrictedCategories($declaredRestrictedCategories)
254  {
255    $this->declaredRestrictedCategories = $declaredRestrictedCategories;
256  }
257  /**
258   * @return string[]
259   */
260  public function getDeclaredRestrictedCategories()
261  {
262    return $this->declaredRestrictedCategories;
263  }
264  /**
265   * @param int[]
266   */
267  public function setDeclaredVendorIds($declaredVendorIds)
268  {
269    $this->declaredVendorIds = $declaredVendorIds;
270  }
271  /**
272   * @return int[]
273   */
274  public function getDeclaredVendorIds()
275  {
276    return $this->declaredVendorIds;
277  }
278  /**
279   * @param HtmlContent
280   */
281  public function setHtml(HtmlContent $html)
282  {
283    $this->html = $html;
284  }
285  /**
286   * @return HtmlContent
287   */
288  public function getHtml()
289  {
290    return $this->html;
291  }
292  /**
293   * @param string[]
294   */
295  public function setImpressionTrackingUrls($impressionTrackingUrls)
296  {
297    $this->impressionTrackingUrls = $impressionTrackingUrls;
298  }
299  /**
300   * @return string[]
301   */
302  public function getImpressionTrackingUrls()
303  {
304    return $this->impressionTrackingUrls;
305  }
306  /**
307   * @param string
308   */
309  public function setName($name)
310  {
311    $this->name = $name;
312  }
313  /**
314   * @return string
315   */
316  public function getName()
317  {
318    return $this->name;
319  }
320  /**
321   * @param NativeContent
322   */
323  public function setNative(NativeContent $native)
324  {
325    $this->native = $native;
326  }
327  /**
328   * @return NativeContent
329   */
330  public function getNative()
331  {
332    return $this->native;
333  }
334  /**
335   * @param string[]
336   */
337  public function setRestrictedCategories($restrictedCategories)
338  {
339    $this->restrictedCategories = $restrictedCategories;
340  }
341  /**
342   * @return string[]
343   */
344  public function getRestrictedCategories()
345  {
346    return $this->restrictedCategories;
347  }
348  /**
349   * @param int
350   */
351  public function setVersion($version)
352  {
353    $this->version = $version;
354  }
355  /**
356   * @return int
357   */
358  public function getVersion()
359  {
360    return $this->version;
361  }
362  /**
363   * @param VideoContent
364   */
365  public function setVideo(VideoContent $video)
366  {
367    $this->video = $video;
368  }
369  /**
370   * @return VideoContent
371   */
372  public function getVideo()
373  {
374    return $this->video;
375  }
376}
377
378// Adding a class alias for backwards compatibility with the previous class name.
379class_alias(Creative::class, 'Google_Service_RealTimeBidding_Creative');
380