-
Notifications
You must be signed in to change notification settings - Fork 770
/
AdGroupCriterion.php
executable file
·252 lines (220 loc) · 6.15 KB
/
AdGroupCriterion.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<?php
namespace Google\AdsApi\AdWords\v201710\cm;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class AdGroupCriterion
{
/**
* @var int $adGroupId
*/
protected $adGroupId = null;
/**
* @var string $criterionUse
*/
protected $criterionUse = null;
/**
* @var \Google\AdsApi\AdWords\v201710\cm\Criterion $criterion
*/
protected $criterion = null;
/**
* @var \Google\AdsApi\AdWords\v201710\cm\Label[] $labels
*/
protected $labels = null;
/**
* @var \Google\AdsApi\AdWords\v201710\cm\String_StringMapEntry[] $forwardCompatibilityMap
*/
protected $forwardCompatibilityMap = null;
/**
* @var int $baseCampaignId
*/
protected $baseCampaignId = null;
/**
* @var int $baseAdGroupId
*/
protected $baseAdGroupId = null;
/**
* @var string $AdGroupCriterionType
*/
protected $AdGroupCriterionType = null;
/**
* @var array $parameterMap
*/
private $parameterMap = ['AdGroupCriterion.Type' => 'AdGroupCriterionType'];
/**
* @param int $adGroupId
* @param string $criterionUse
* @param \Google\AdsApi\AdWords\v201710\cm\Criterion $criterion
* @param \Google\AdsApi\AdWords\v201710\cm\Label[] $labels
* @param \Google\AdsApi\AdWords\v201710\cm\String_StringMapEntry[] $forwardCompatibilityMap
* @param int $baseCampaignId
* @param int $baseAdGroupId
* @param string $AdGroupCriterionType
*/
public function __construct($adGroupId = null, $criterionUse = null, $criterion = null, array $labels = null, array $forwardCompatibilityMap = null, $baseCampaignId = null, $baseAdGroupId = null, $AdGroupCriterionType = null)
{
$this->adGroupId = $adGroupId;
$this->criterionUse = $criterionUse;
$this->criterion = $criterion;
$this->labels = $labels;
$this->forwardCompatibilityMap = $forwardCompatibilityMap;
$this->baseCampaignId = $baseCampaignId;
$this->baseAdGroupId = $baseAdGroupId;
$this->AdGroupCriterionType = $AdGroupCriterionType;
}
/**
* @return int
*/
public function getAdGroupId()
{
return $this->adGroupId;
}
/**
* @param int $adGroupId
* @return \Google\AdsApi\AdWords\v201710\cm\AdGroupCriterion
*/
public function setAdGroupId($adGroupId)
{
$this->adGroupId = (!is_null(adGroupId) && PHP_INT_SIZE === 4)
? floatval($adGroupId) : $adGroupId;
return $this;
}
/**
* @return string
*/
public function getCriterionUse()
{
return $this->criterionUse;
}
/**
* @param string $criterionUse
* @return \Google\AdsApi\AdWords\v201710\cm\AdGroupCriterion
*/
public function setCriterionUse($criterionUse)
{
$this->criterionUse = $criterionUse;
return $this;
}
/**
* @return \Google\AdsApi\AdWords\v201710\cm\Criterion
*/
public function getCriterion()
{
return $this->criterion;
}
/**
* @param \Google\AdsApi\AdWords\v201710\cm\Criterion $criterion
* @return \Google\AdsApi\AdWords\v201710\cm\AdGroupCriterion
*/
public function setCriterion($criterion)
{
$this->criterion = $criterion;
return $this;
}
/**
* @return \Google\AdsApi\AdWords\v201710\cm\Label[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param \Google\AdsApi\AdWords\v201710\cm\Label[] $labels
* @return \Google\AdsApi\AdWords\v201710\cm\AdGroupCriterion
*/
public function setLabels(array $labels)
{
$this->labels = $labels;
return $this;
}
/**
* @return \Google\AdsApi\AdWords\v201710\cm\String_StringMapEntry[]
*/
public function getForwardCompatibilityMap()
{
return $this->forwardCompatibilityMap;
}
/**
* @param \Google\AdsApi\AdWords\v201710\cm\String_StringMapEntry[] $forwardCompatibilityMap
* @return \Google\AdsApi\AdWords\v201710\cm\AdGroupCriterion
*/
public function setForwardCompatibilityMap(array $forwardCompatibilityMap)
{
$this->forwardCompatibilityMap = $forwardCompatibilityMap;
return $this;
}
/**
* @return int
*/
public function getBaseCampaignId()
{
return $this->baseCampaignId;
}
/**
* @param int $baseCampaignId
* @return \Google\AdsApi\AdWords\v201710\cm\AdGroupCriterion
*/
public function setBaseCampaignId($baseCampaignId)
{
$this->baseCampaignId = (!is_null(baseCampaignId) && PHP_INT_SIZE === 4)
? floatval($baseCampaignId) : $baseCampaignId;
return $this;
}
/**
* @return int
*/
public function getBaseAdGroupId()
{
return $this->baseAdGroupId;
}
/**
* @param int $baseAdGroupId
* @return \Google\AdsApi\AdWords\v201710\cm\AdGroupCriterion
*/
public function setBaseAdGroupId($baseAdGroupId)
{
$this->baseAdGroupId = (!is_null(baseAdGroupId) && PHP_INT_SIZE === 4)
? floatval($baseAdGroupId) : $baseAdGroupId;
return $this;
}
/**
* @return string
*/
public function getAdGroupCriterionType()
{
return $this->AdGroupCriterionType;
}
/**
* @param string $AdGroupCriterionType
* @return \Google\AdsApi\AdWords\v201710\cm\AdGroupCriterion
*/
public function setAdGroupCriterionType($AdGroupCriterionType)
{
$this->AdGroupCriterionType = $AdGroupCriterionType;
return $this;
}
/**
* Getter for a non PHP standard named variables.
*
* @param string $var variable name to get
* @return string variable value
*/
public function __get($var)
{
if (!array_key_exists($var, $this->parameterMap)) {
return null;
}
return $this->{$this->parameterMap[$var]};
}
/**
* Setter for a non PHP standard named variables.
*
* @param string $var variable name
* @param mixed $value variable value to set
* @return \Google\AdsApi\AdWords\v201710\cm\AdGroupCriterion
*/
public function __set($var, $value)
{
$this->{$this->parameterMap[$var]} = $value;
}
}