1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Hborras\TwitterAdsSDK\TwitterAds\Creative; |
4
|
|
|
|
5
|
|
|
use Hborras\TwitterAdsSDK\TwitterAds\Fields\VideoAppDownloadCardFields; |
6
|
|
|
use Hborras\TwitterAdsSDK\TwitterAds\Resource; |
7
|
|
|
|
8
|
|
|
class VideoAppDownloadCard extends Resource |
9
|
|
|
{ |
10
|
|
|
const RESOURCE_COLLECTION = 'accounts/{account_id}/cards/video_app_download'; |
11
|
|
|
const RESOURCE = 'accounts/{account_id}/cards/video_app_download/{id}'; |
12
|
|
|
|
13
|
|
|
/** Read Only */ |
14
|
|
|
protected $id; |
15
|
|
|
protected $video_url; |
16
|
|
|
protected $video_poster_url; |
17
|
|
|
protected $created_at; |
18
|
|
|
protected $updated_at; |
19
|
|
|
protected $deleted; |
20
|
|
|
|
21
|
|
|
protected $properties = [ |
22
|
|
|
VideoAppDownloadCardFields::NAME, |
23
|
|
|
VideoAppDownloadCardFields::COUNTRY_CODE, |
24
|
|
|
VideoAppDownloadCardFields::IPHONE_APP_ID, |
25
|
|
|
VideoAppDownloadCardFields::IPAD_DEEP_LINK, |
26
|
|
|
VideoAppDownloadCardFields::IPAD_APP_ID, |
27
|
|
|
VideoAppDownloadCardFields::IPAD_DEEP_LINK, |
28
|
|
|
VideoAppDownloadCardFields::GOOGLEPLAY_APP_ID, |
29
|
|
|
VideoAppDownloadCardFields::GOOGLEPLAY_DEEP_LINK, |
30
|
|
|
VideoAppDownloadCardFields::APP_CTA, |
31
|
|
|
VideoAppDownloadCardFields::IMAGE_MEDIA_ID, |
32
|
|
|
VideoAppDownloadCardFields::VIDEO_ID, |
33
|
|
|
]; |
34
|
|
|
|
35
|
|
|
/** Writable */ |
36
|
|
|
protected $name; |
37
|
|
|
protected $country_code; |
38
|
|
|
protected $iphone_app_id; |
39
|
|
|
protected $iphone_deep_link; |
40
|
|
|
protected $ipad_app_id; |
41
|
|
|
protected $ipad_deep_link; |
42
|
|
|
protected $googleplay_app_id; |
43
|
|
|
protected $googleplay_deep_link; |
44
|
|
|
protected $app_cta; |
45
|
|
|
protected $image_media_id; |
46
|
|
|
protected $video_id; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @return mixed |
50
|
|
|
*/ |
51
|
|
|
public function getId() |
52
|
|
|
{ |
53
|
|
|
return $this->id; |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @return mixed |
58
|
|
|
*/ |
59
|
|
|
public function getCreatedAt() |
60
|
|
|
{ |
61
|
|
|
return $this->created_at; |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @return mixed |
66
|
|
|
*/ |
67
|
|
|
public function getUpdatedAt() |
68
|
|
|
{ |
69
|
|
|
return $this->updated_at; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @return mixed |
74
|
|
|
*/ |
75
|
|
|
public function getDeleted() |
76
|
|
|
{ |
77
|
|
|
return $this->deleted; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @return array |
82
|
|
|
*/ |
83
|
|
|
public function getProperties() |
84
|
|
|
{ |
85
|
|
|
return $this->properties; |
86
|
|
|
} |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @param array $properties |
90
|
|
|
*/ |
91
|
|
|
public function setProperties($properties) |
92
|
|
|
{ |
93
|
|
|
$this->properties = $properties; |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* @return mixed |
98
|
|
|
*/ |
99
|
|
|
public function getName() |
100
|
|
|
{ |
101
|
|
|
return $this->name; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @param mixed $name |
106
|
|
|
*/ |
107
|
|
|
public function setName($name) |
108
|
|
|
{ |
109
|
|
|
$this->name = $name; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* @return mixed |
114
|
|
|
*/ |
115
|
|
|
public function getCountryCode() |
116
|
|
|
{ |
117
|
|
|
return $this->country_code; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @param mixed $country_code |
122
|
|
|
*/ |
123
|
|
|
public function setCountryCode($country_code) |
124
|
|
|
{ |
125
|
|
|
$this->country_code = $country_code; |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
/** |
129
|
|
|
* @return mixed |
130
|
|
|
*/ |
131
|
|
|
public function getIphoneAppId() |
132
|
|
|
{ |
133
|
|
|
return $this->iphone_app_id; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* @param mixed $iphone_app_id |
138
|
|
|
*/ |
139
|
|
|
public function setIphoneAppId($iphone_app_id) |
140
|
|
|
{ |
141
|
|
|
$this->iphone_app_id = $iphone_app_id; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
/** |
145
|
|
|
* @return mixed |
146
|
|
|
*/ |
147
|
|
|
public function getIphoneDeepLink() |
148
|
|
|
{ |
149
|
|
|
return $this->iphone_deep_link; |
150
|
|
|
} |
151
|
|
|
|
152
|
|
|
/** |
153
|
|
|
* @param mixed $iphone_deep_link |
154
|
|
|
*/ |
155
|
|
|
public function setIphoneDeepLink($iphone_deep_link) |
156
|
|
|
{ |
157
|
|
|
$this->iphone_deep_link = $iphone_deep_link; |
158
|
|
|
} |
159
|
|
|
|
160
|
|
|
/** |
161
|
|
|
* @return mixed |
162
|
|
|
*/ |
163
|
|
|
public function getIpadAppId() |
164
|
|
|
{ |
165
|
|
|
return $this->ipad_app_id; |
166
|
|
|
} |
167
|
|
|
|
168
|
|
|
/** |
169
|
|
|
* @param mixed $ipad_app_id |
170
|
|
|
*/ |
171
|
|
|
public function setIpadAppId($ipad_app_id) |
172
|
|
|
{ |
173
|
|
|
$this->ipad_app_id = $ipad_app_id; |
174
|
|
|
} |
175
|
|
|
|
176
|
|
|
/** |
177
|
|
|
* @return mixed |
178
|
|
|
*/ |
179
|
|
|
public function getIpadDeepLink() |
180
|
|
|
{ |
181
|
|
|
return $this->ipad_deep_link; |
182
|
|
|
} |
183
|
|
|
|
184
|
|
|
/** |
185
|
|
|
* @param mixed $ipad_deep_link |
186
|
|
|
*/ |
187
|
|
|
public function setIpadDeepLink($ipad_deep_link) |
188
|
|
|
{ |
189
|
|
|
$this->ipad_deep_link = $ipad_deep_link; |
190
|
|
|
} |
191
|
|
|
|
192
|
|
|
/** |
193
|
|
|
* @return mixed |
194
|
|
|
*/ |
195
|
|
|
public function getGoogleplayAppId() |
196
|
|
|
{ |
197
|
|
|
return $this->googleplay_app_id; |
198
|
|
|
} |
199
|
|
|
|
200
|
|
|
/** |
201
|
|
|
* @param mixed $googleplay_app_id |
202
|
|
|
*/ |
203
|
|
|
public function setGoogleplayAppId($googleplay_app_id) |
204
|
|
|
{ |
205
|
|
|
$this->googleplay_app_id = $googleplay_app_id; |
206
|
|
|
} |
207
|
|
|
|
208
|
|
|
/** |
209
|
|
|
* @return mixed |
210
|
|
|
*/ |
211
|
|
|
public function getGoogleplayDeepLink() |
212
|
|
|
{ |
213
|
|
|
return $this->googleplay_deep_link; |
214
|
|
|
} |
215
|
|
|
|
216
|
|
|
/** |
217
|
|
|
* @param mixed $googleplay_deep_link |
218
|
|
|
*/ |
219
|
|
|
public function setGoogleplayDeepLink($googleplay_deep_link) |
220
|
|
|
{ |
221
|
|
|
$this->googleplay_deep_link = $googleplay_deep_link; |
222
|
|
|
} |
223
|
|
|
|
224
|
|
|
/** |
225
|
|
|
* @return mixed |
226
|
|
|
*/ |
227
|
|
|
public function getAppCta() |
228
|
|
|
{ |
229
|
|
|
return $this->app_cta; |
230
|
|
|
} |
231
|
|
|
|
232
|
|
|
/** |
233
|
|
|
* @param mixed $app_cta |
234
|
|
|
*/ |
235
|
|
|
public function setAppCta($app_cta) |
236
|
|
|
{ |
237
|
|
|
$this->app_cta = $app_cta; |
238
|
|
|
} |
239
|
|
|
|
240
|
|
|
/** |
241
|
|
|
* @return mixed |
242
|
|
|
*/ |
243
|
|
|
public function getImageMediaId() |
244
|
|
|
{ |
245
|
|
|
return $this->image_media_id; |
246
|
|
|
} |
247
|
|
|
|
248
|
|
|
/** |
249
|
|
|
* @param mixed $image_media_id |
250
|
|
|
*/ |
251
|
|
|
public function setImageMediaId($image_media_id) |
252
|
|
|
{ |
253
|
|
|
$this->image_media_id = $image_media_id; |
254
|
|
|
} |
255
|
|
|
|
256
|
|
|
/** |
257
|
|
|
* @return mixed |
258
|
|
|
*/ |
259
|
|
|
public function getVideoId() |
260
|
|
|
{ |
261
|
|
|
return $this->video_id; |
262
|
|
|
} |
263
|
|
|
|
264
|
|
|
/** |
265
|
|
|
* @param mixed $video_id |
266
|
|
|
*/ |
267
|
|
|
public function setVideoId($video_id) |
268
|
|
|
{ |
269
|
|
|
$this->video_id = $video_id; |
270
|
|
|
} |
271
|
|
|
|
272
|
|
|
/** |
273
|
|
|
* @return mixed |
274
|
|
|
*/ |
275
|
|
|
public function getVideoUrl() |
276
|
|
|
{ |
277
|
|
|
return $this->video_url; |
278
|
|
|
} |
279
|
|
|
|
280
|
|
|
/** |
281
|
|
|
* @return mixed |
282
|
|
|
*/ |
283
|
|
|
public function getVideoPosterUrl() |
284
|
|
|
{ |
285
|
|
|
return $this->video_poster_url; |
286
|
|
|
} |
287
|
|
|
} |
288
|
|
|
|