1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Hborras\TwitterAdsSDK\TwitterAds\Creative; |
4
|
|
|
|
5
|
|
|
use Hborras\TwitterAdsSDK\TwitterAds\Resource; |
6
|
|
|
use Hborras\TwitterAdsSDK\TwitterAds\Fields\VideoConversationCardFields; |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* Class VideoConversationCard |
10
|
|
|
* @package Hborras\TwitterAdsSDK\TwitterAds\Creative |
11
|
|
|
*/ |
12
|
|
|
class VideoConversationCard extends Resource |
13
|
|
|
{ |
14
|
|
|
const RESOURCE_COLLECTION = 'accounts/{account_id}/cards/video_conversation'; |
15
|
|
|
const RESOURCE = 'accounts/{account_id}/cards/video_conversation/{id}'; |
16
|
|
|
|
17
|
|
|
/** Read Only */ |
18
|
|
|
protected $id; |
19
|
|
|
protected $video_url; |
20
|
|
|
protected $video_poster_url; |
21
|
|
|
protected $created_at; |
22
|
|
|
protected $updated_at; |
23
|
|
|
protected $deleted; |
24
|
|
|
|
25
|
|
|
protected $properties = [ |
26
|
|
|
VideoConversationCardFields::NAME, |
27
|
|
|
VideoConversationCardFields::TITLE, |
28
|
|
|
VideoConversationCardFields::FIRST_CTA, |
29
|
|
|
VideoConversationCardFields::FIRST_CTA_TWEET, |
30
|
|
|
VideoConversationCardFields::SECOND_CTA, |
31
|
|
|
VideoConversationCardFields::SECOND_CTA_TWEET, |
32
|
|
|
VideoConversationCardFields::THANK_YOU_TEXT, |
33
|
|
|
VideoConversationCardFields::THANK_YOU_URL, |
34
|
|
|
VideoConversationCardFields::IMAGE_MEDIA_ID, |
35
|
|
|
VideoConversationCardFields::VIDEO_ID, |
36
|
|
|
]; |
37
|
|
|
|
38
|
|
|
/** Writable */ |
39
|
|
|
protected $name; |
40
|
|
|
protected $title; |
41
|
|
|
protected $first_cta; |
42
|
|
|
protected $first_cta_tweet; |
43
|
|
|
protected $second_cta; |
44
|
|
|
protected $second_cta_tweet; |
45
|
|
|
protected $thank_you_text; |
46
|
|
|
protected $thank_you_url; |
47
|
|
|
protected $image_media_id; |
48
|
|
|
protected $video_id; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @return mixed |
52
|
|
|
*/ |
53
|
|
|
public function getId() |
54
|
|
|
{ |
55
|
|
|
return $this->id; |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @return mixed |
60
|
|
|
*/ |
61
|
|
|
public function getCreatedAt() |
62
|
|
|
{ |
63
|
|
|
return $this->created_at; |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @return mixed |
68
|
|
|
*/ |
69
|
|
|
public function getUpdatedAt() |
70
|
|
|
{ |
71
|
|
|
return $this->updated_at; |
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @return mixed |
76
|
|
|
*/ |
77
|
|
|
public function getDeleted() |
78
|
|
|
{ |
79
|
|
|
return $this->deleted; |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* @param array $properties |
84
|
|
|
*/ |
85
|
|
|
public function setProperties($properties) |
86
|
|
|
{ |
87
|
|
|
$this->properties = $properties; |
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* @return mixed |
92
|
|
|
*/ |
93
|
|
|
public function getName() |
94
|
|
|
{ |
95
|
|
|
return $this->name; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @param mixed $name |
100
|
|
|
*/ |
101
|
|
|
public function setName($name) |
102
|
|
|
{ |
103
|
|
|
$this->name = $name; |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @return mixed |
108
|
|
|
*/ |
109
|
|
|
public function getTitle() |
110
|
|
|
{ |
111
|
|
|
return $this->title; |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* @param mixed $title |
116
|
|
|
*/ |
117
|
|
|
public function setTitle($title) |
118
|
|
|
{ |
119
|
|
|
$this->title = $title; |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
/** |
123
|
|
|
* @return mixed |
124
|
|
|
*/ |
125
|
|
|
public function getFirstCta() |
126
|
|
|
{ |
127
|
|
|
return $this->first_cta; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* @param mixed $first_cta |
132
|
|
|
*/ |
133
|
|
|
public function setFirstCta($first_cta) |
134
|
|
|
{ |
135
|
|
|
$this->first_cta = $first_cta; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
/** |
139
|
|
|
* @return mixed |
140
|
|
|
*/ |
141
|
|
|
public function getFirstCtaTweet() |
142
|
|
|
{ |
143
|
|
|
return $this->first_cta_tweet; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* @param mixed $first_cta_tweet |
148
|
|
|
*/ |
149
|
|
|
public function setFirstCtaTweet($first_cta_tweet) |
150
|
|
|
{ |
151
|
|
|
$this->first_cta_tweet = $first_cta_tweet; |
152
|
|
|
} |
153
|
|
|
|
154
|
|
|
/** |
155
|
|
|
* @return mixed |
156
|
|
|
*/ |
157
|
|
|
public function getSecondCta() |
158
|
|
|
{ |
159
|
|
|
return $this->second_cta; |
160
|
|
|
} |
161
|
|
|
|
162
|
|
|
/** |
163
|
|
|
* @param mixed $second_cta |
164
|
|
|
*/ |
165
|
|
|
public function setSecondCta($second_cta) |
166
|
|
|
{ |
167
|
|
|
$this->second_cta = $second_cta; |
168
|
|
|
} |
169
|
|
|
|
170
|
|
|
/** |
171
|
|
|
* @return mixed |
172
|
|
|
*/ |
173
|
|
|
public function getSecondCtaTweet() |
174
|
|
|
{ |
175
|
|
|
return $this->second_cta_tweet; |
176
|
|
|
} |
177
|
|
|
|
178
|
|
|
/** |
179
|
|
|
* @param mixed $second_cta_tweet |
180
|
|
|
*/ |
181
|
|
|
public function setSecondCtaTweet($second_cta_tweet) |
182
|
|
|
{ |
183
|
|
|
$this->second_cta_tweet = $second_cta_tweet; |
184
|
|
|
} |
185
|
|
|
|
186
|
|
|
/** |
187
|
|
|
* @return mixed |
188
|
|
|
*/ |
189
|
|
|
public function getThankYouText() |
190
|
|
|
{ |
191
|
|
|
return $this->thank_you_text; |
192
|
|
|
} |
193
|
|
|
|
194
|
|
|
/** |
195
|
|
|
* @param mixed $thank_you_text |
196
|
|
|
*/ |
197
|
|
|
public function setThankYouText($thank_you_text) |
198
|
|
|
{ |
199
|
|
|
$this->thank_you_text = $thank_you_text; |
200
|
|
|
} |
201
|
|
|
|
202
|
|
|
/** |
203
|
|
|
* @return mixed |
204
|
|
|
*/ |
205
|
|
|
public function getThankYouUrl() |
206
|
|
|
{ |
207
|
|
|
return $this->thank_you_url; |
208
|
|
|
} |
209
|
|
|
|
210
|
|
|
/** |
211
|
|
|
* @param mixed $thank_you_url |
212
|
|
|
*/ |
213
|
|
|
public function setThankYouUrl($thank_you_url) |
214
|
|
|
{ |
215
|
|
|
$this->thank_you_url = $thank_you_url; |
216
|
|
|
} |
217
|
|
|
|
218
|
|
|
/** |
219
|
|
|
* @return mixed |
220
|
|
|
*/ |
221
|
|
|
public function getImageMediaId() |
222
|
|
|
{ |
223
|
|
|
return $this->image_media_id; |
224
|
|
|
} |
225
|
|
|
|
226
|
|
|
/** |
227
|
|
|
* @param mixed $image_media_id |
228
|
|
|
*/ |
229
|
|
|
public function setImageMediaId($image_media_id) |
230
|
|
|
{ |
231
|
|
|
$this->image_media_id = $image_media_id; |
232
|
|
|
} |
233
|
|
|
|
234
|
|
|
/** |
235
|
|
|
* @return mixed |
236
|
|
|
*/ |
237
|
|
|
public function getVideoId() |
238
|
|
|
{ |
239
|
|
|
return $this->video_id; |
240
|
|
|
} |
241
|
|
|
|
242
|
|
|
/** |
243
|
|
|
* @param mixed $video_id |
244
|
|
|
*/ |
245
|
|
|
public function setVideoId($video_id) |
246
|
|
|
{ |
247
|
|
|
$this->video_id = $video_id; |
248
|
|
|
} |
249
|
|
|
|
250
|
|
|
/** |
251
|
|
|
* @return mixed |
252
|
|
|
*/ |
253
|
|
|
public function getVideoUrl() |
254
|
|
|
{ |
255
|
|
|
return $this->video_url; |
256
|
|
|
} |
257
|
|
|
|
258
|
|
|
/** |
259
|
|
|
* @return mixed |
260
|
|
|
*/ |
261
|
|
|
public function getVideoPosterUrl() |
262
|
|
|
{ |
263
|
|
|
return $this->video_poster_url; |
264
|
|
|
} |
265
|
|
|
} |
266
|
|
|
|