Creative.php 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  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. namespace Google\Service\AdExchangeBuyerII;
  18. class Creative extends \Google\Collection
  19. {
  20. protected $collection_key = 'vendorIds';
  21. /**
  22. * @var string
  23. */
  24. public $accountId;
  25. /**
  26. * @var string
  27. */
  28. public $adChoicesDestinationUrl;
  29. protected $adTechnologyProvidersType = AdTechnologyProviders::class;
  30. protected $adTechnologyProvidersDataType = '';
  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 $attributes;
  47. /**
  48. * @var string[]
  49. */
  50. public $clickThroughUrls;
  51. protected $correctionsType = Correction::class;
  52. protected $correctionsDataType = 'array';
  53. /**
  54. * @var string
  55. */
  56. public $creativeId;
  57. /**
  58. * @var string
  59. */
  60. public $dealsStatus;
  61. /**
  62. * @var string[]
  63. */
  64. public $declaredClickThroughUrls;
  65. /**
  66. * @var string[]
  67. */
  68. public $detectedAdvertiserIds;
  69. /**
  70. * @var string[]
  71. */
  72. public $detectedDomains;
  73. /**
  74. * @var string[]
  75. */
  76. public $detectedLanguages;
  77. /**
  78. * @var int[]
  79. */
  80. public $detectedProductCategories;
  81. /**
  82. * @var int[]
  83. */
  84. public $detectedSensitiveCategories;
  85. protected $htmlType = HtmlContent::class;
  86. protected $htmlDataType = '';
  87. /**
  88. * @var string[]
  89. */
  90. public $impressionTrackingUrls;
  91. protected $nativeType = NativeContent::class;
  92. protected $nativeDataType = '';
  93. /**
  94. * @var string
  95. */
  96. public $openAuctionStatus;
  97. /**
  98. * @var string[]
  99. */
  100. public $restrictedCategories;
  101. protected $servingRestrictionsType = ServingRestriction::class;
  102. protected $servingRestrictionsDataType = 'array';
  103. /**
  104. * @var int[]
  105. */
  106. public $vendorIds;
  107. /**
  108. * @var int
  109. */
  110. public $version;
  111. protected $videoType = VideoContent::class;
  112. protected $videoDataType = '';
  113. /**
  114. * @param string
  115. */
  116. public function setAccountId($accountId)
  117. {
  118. $this->accountId = $accountId;
  119. }
  120. /**
  121. * @return string
  122. */
  123. public function getAccountId()
  124. {
  125. return $this->accountId;
  126. }
  127. /**
  128. * @param string
  129. */
  130. public function setAdChoicesDestinationUrl($adChoicesDestinationUrl)
  131. {
  132. $this->adChoicesDestinationUrl = $adChoicesDestinationUrl;
  133. }
  134. /**
  135. * @return string
  136. */
  137. public function getAdChoicesDestinationUrl()
  138. {
  139. return $this->adChoicesDestinationUrl;
  140. }
  141. /**
  142. * @param AdTechnologyProviders
  143. */
  144. public function setAdTechnologyProviders(AdTechnologyProviders $adTechnologyProviders)
  145. {
  146. $this->adTechnologyProviders = $adTechnologyProviders;
  147. }
  148. /**
  149. * @return AdTechnologyProviders
  150. */
  151. public function getAdTechnologyProviders()
  152. {
  153. return $this->adTechnologyProviders;
  154. }
  155. /**
  156. * @param string
  157. */
  158. public function setAdvertiserName($advertiserName)
  159. {
  160. $this->advertiserName = $advertiserName;
  161. }
  162. /**
  163. * @return string
  164. */
  165. public function getAdvertiserName()
  166. {
  167. return $this->advertiserName;
  168. }
  169. /**
  170. * @param string
  171. */
  172. public function setAgencyId($agencyId)
  173. {
  174. $this->agencyId = $agencyId;
  175. }
  176. /**
  177. * @return string
  178. */
  179. public function getAgencyId()
  180. {
  181. return $this->agencyId;
  182. }
  183. /**
  184. * @param string
  185. */
  186. public function setApiUpdateTime($apiUpdateTime)
  187. {
  188. $this->apiUpdateTime = $apiUpdateTime;
  189. }
  190. /**
  191. * @return string
  192. */
  193. public function getApiUpdateTime()
  194. {
  195. return $this->apiUpdateTime;
  196. }
  197. /**
  198. * @param string[]
  199. */
  200. public function setAttributes($attributes)
  201. {
  202. $this->attributes = $attributes;
  203. }
  204. /**
  205. * @return string[]
  206. */
  207. public function getAttributes()
  208. {
  209. return $this->attributes;
  210. }
  211. /**
  212. * @param string[]
  213. */
  214. public function setClickThroughUrls($clickThroughUrls)
  215. {
  216. $this->clickThroughUrls = $clickThroughUrls;
  217. }
  218. /**
  219. * @return string[]
  220. */
  221. public function getClickThroughUrls()
  222. {
  223. return $this->clickThroughUrls;
  224. }
  225. /**
  226. * @param Correction[]
  227. */
  228. public function setCorrections($corrections)
  229. {
  230. $this->corrections = $corrections;
  231. }
  232. /**
  233. * @return Correction[]
  234. */
  235. public function getCorrections()
  236. {
  237. return $this->corrections;
  238. }
  239. /**
  240. * @param string
  241. */
  242. public function setCreativeId($creativeId)
  243. {
  244. $this->creativeId = $creativeId;
  245. }
  246. /**
  247. * @return string
  248. */
  249. public function getCreativeId()
  250. {
  251. return $this->creativeId;
  252. }
  253. /**
  254. * @param string
  255. */
  256. public function setDealsStatus($dealsStatus)
  257. {
  258. $this->dealsStatus = $dealsStatus;
  259. }
  260. /**
  261. * @return string
  262. */
  263. public function getDealsStatus()
  264. {
  265. return $this->dealsStatus;
  266. }
  267. /**
  268. * @param string[]
  269. */
  270. public function setDeclaredClickThroughUrls($declaredClickThroughUrls)
  271. {
  272. $this->declaredClickThroughUrls = $declaredClickThroughUrls;
  273. }
  274. /**
  275. * @return string[]
  276. */
  277. public function getDeclaredClickThroughUrls()
  278. {
  279. return $this->declaredClickThroughUrls;
  280. }
  281. /**
  282. * @param string[]
  283. */
  284. public function setDetectedAdvertiserIds($detectedAdvertiserIds)
  285. {
  286. $this->detectedAdvertiserIds = $detectedAdvertiserIds;
  287. }
  288. /**
  289. * @return string[]
  290. */
  291. public function getDetectedAdvertiserIds()
  292. {
  293. return $this->detectedAdvertiserIds;
  294. }
  295. /**
  296. * @param string[]
  297. */
  298. public function setDetectedDomains($detectedDomains)
  299. {
  300. $this->detectedDomains = $detectedDomains;
  301. }
  302. /**
  303. * @return string[]
  304. */
  305. public function getDetectedDomains()
  306. {
  307. return $this->detectedDomains;
  308. }
  309. /**
  310. * @param string[]
  311. */
  312. public function setDetectedLanguages($detectedLanguages)
  313. {
  314. $this->detectedLanguages = $detectedLanguages;
  315. }
  316. /**
  317. * @return string[]
  318. */
  319. public function getDetectedLanguages()
  320. {
  321. return $this->detectedLanguages;
  322. }
  323. /**
  324. * @param int[]
  325. */
  326. public function setDetectedProductCategories($detectedProductCategories)
  327. {
  328. $this->detectedProductCategories = $detectedProductCategories;
  329. }
  330. /**
  331. * @return int[]
  332. */
  333. public function getDetectedProductCategories()
  334. {
  335. return $this->detectedProductCategories;
  336. }
  337. /**
  338. * @param int[]
  339. */
  340. public function setDetectedSensitiveCategories($detectedSensitiveCategories)
  341. {
  342. $this->detectedSensitiveCategories = $detectedSensitiveCategories;
  343. }
  344. /**
  345. * @return int[]
  346. */
  347. public function getDetectedSensitiveCategories()
  348. {
  349. return $this->detectedSensitiveCategories;
  350. }
  351. /**
  352. * @param HtmlContent
  353. */
  354. public function setHtml(HtmlContent $html)
  355. {
  356. $this->html = $html;
  357. }
  358. /**
  359. * @return HtmlContent
  360. */
  361. public function getHtml()
  362. {
  363. return $this->html;
  364. }
  365. /**
  366. * @param string[]
  367. */
  368. public function setImpressionTrackingUrls($impressionTrackingUrls)
  369. {
  370. $this->impressionTrackingUrls = $impressionTrackingUrls;
  371. }
  372. /**
  373. * @return string[]
  374. */
  375. public function getImpressionTrackingUrls()
  376. {
  377. return $this->impressionTrackingUrls;
  378. }
  379. /**
  380. * @param NativeContent
  381. */
  382. public function setNative(NativeContent $native)
  383. {
  384. $this->native = $native;
  385. }
  386. /**
  387. * @return NativeContent
  388. */
  389. public function getNative()
  390. {
  391. return $this->native;
  392. }
  393. /**
  394. * @param string
  395. */
  396. public function setOpenAuctionStatus($openAuctionStatus)
  397. {
  398. $this->openAuctionStatus = $openAuctionStatus;
  399. }
  400. /**
  401. * @return string
  402. */
  403. public function getOpenAuctionStatus()
  404. {
  405. return $this->openAuctionStatus;
  406. }
  407. /**
  408. * @param string[]
  409. */
  410. public function setRestrictedCategories($restrictedCategories)
  411. {
  412. $this->restrictedCategories = $restrictedCategories;
  413. }
  414. /**
  415. * @return string[]
  416. */
  417. public function getRestrictedCategories()
  418. {
  419. return $this->restrictedCategories;
  420. }
  421. /**
  422. * @param ServingRestriction[]
  423. */
  424. public function setServingRestrictions($servingRestrictions)
  425. {
  426. $this->servingRestrictions = $servingRestrictions;
  427. }
  428. /**
  429. * @return ServingRestriction[]
  430. */
  431. public function getServingRestrictions()
  432. {
  433. return $this->servingRestrictions;
  434. }
  435. /**
  436. * @param int[]
  437. */
  438. public function setVendorIds($vendorIds)
  439. {
  440. $this->vendorIds = $vendorIds;
  441. }
  442. /**
  443. * @return int[]
  444. */
  445. public function getVendorIds()
  446. {
  447. return $this->vendorIds;
  448. }
  449. /**
  450. * @param int
  451. */
  452. public function setVersion($version)
  453. {
  454. $this->version = $version;
  455. }
  456. /**
  457. * @return int
  458. */
  459. public function getVersion()
  460. {
  461. return $this->version;
  462. }
  463. /**
  464. * @param VideoContent
  465. */
  466. public function setVideo(VideoContent $video)
  467. {
  468. $this->video = $video;
  469. }
  470. /**
  471. * @return VideoContent
  472. */
  473. public function getVideo()
  474. {
  475. return $this->video;
  476. }
  477. }
  478. // Adding a class alias for backwards compatibility with the previous class name.
  479. class_alias(Creative::class, 'Google_Service_AdExchangeBuyerII_Creative');