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 |
|
---|
18 | namespace Google\Service\AdExchangeBuyer;
|
---|
19 |
|
---|
20 | class TargetingValueCreativeSize extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'companionSizes';
|
---|
23 | public $allowedFormats;
|
---|
24 | protected $companionSizesType = TargetingValueSize::class;
|
---|
25 | protected $companionSizesDataType = 'array';
|
---|
26 | public $creativeSizeType;
|
---|
27 | public $nativeTemplate;
|
---|
28 | protected $sizeType = TargetingValueSize::class;
|
---|
29 | protected $sizeDataType = '';
|
---|
30 | public $skippableAdType;
|
---|
31 |
|
---|
32 | public function setAllowedFormats($allowedFormats)
|
---|
33 | {
|
---|
34 | $this->allowedFormats = $allowedFormats;
|
---|
35 | }
|
---|
36 | public function getAllowedFormats()
|
---|
37 | {
|
---|
38 | return $this->allowedFormats;
|
---|
39 | }
|
---|
40 | /**
|
---|
41 | * @param TargetingValueSize[]
|
---|
42 | */
|
---|
43 | public function setCompanionSizes($companionSizes)
|
---|
44 | {
|
---|
45 | $this->companionSizes = $companionSizes;
|
---|
46 | }
|
---|
47 | /**
|
---|
48 | * @return TargetingValueSize[]
|
---|
49 | */
|
---|
50 | public function getCompanionSizes()
|
---|
51 | {
|
---|
52 | return $this->companionSizes;
|
---|
53 | }
|
---|
54 | public function setCreativeSizeType($creativeSizeType)
|
---|
55 | {
|
---|
56 | $this->creativeSizeType = $creativeSizeType;
|
---|
57 | }
|
---|
58 | public function getCreativeSizeType()
|
---|
59 | {
|
---|
60 | return $this->creativeSizeType;
|
---|
61 | }
|
---|
62 | public function setNativeTemplate($nativeTemplate)
|
---|
63 | {
|
---|
64 | $this->nativeTemplate = $nativeTemplate;
|
---|
65 | }
|
---|
66 | public function getNativeTemplate()
|
---|
67 | {
|
---|
68 | return $this->nativeTemplate;
|
---|
69 | }
|
---|
70 | /**
|
---|
71 | * @param TargetingValueSize
|
---|
72 | */
|
---|
73 | public function setSize(TargetingValueSize $size)
|
---|
74 | {
|
---|
75 | $this->size = $size;
|
---|
76 | }
|
---|
77 | /**
|
---|
78 | * @return TargetingValueSize
|
---|
79 | */
|
---|
80 | public function getSize()
|
---|
81 | {
|
---|
82 | return $this->size;
|
---|
83 | }
|
---|
84 | public function setSkippableAdType($skippableAdType)
|
---|
85 | {
|
---|
86 | $this->skippableAdType = $skippableAdType;
|
---|
87 | }
|
---|
88 | public function getSkippableAdType()
|
---|
89 | {
|
---|
90 | return $this->skippableAdType;
|
---|
91 | }
|
---|
92 | }
|
---|
93 |
|
---|
94 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
95 | class_alias(TargetingValueCreativeSize::class, 'Google_Service_AdExchangeBuyer_TargetingValueCreativeSize');
|
---|