1 | <?php |
||
21 | class Job extends Analytics |
||
22 | { |
||
23 | const RESOURCE_COLLECTION = 'stats/jobs/accounts/{account_id}'; |
||
24 | const RESOURCE = 'stats/jobs/accounts/{account_id}'; |
||
25 | const ENTITY = 'JOBS'; |
||
26 | |||
27 | /** Read Only */ |
||
28 | protected $id; |
||
29 | protected $start_time; |
||
30 | protected $segmentation_type; |
||
31 | protected $url; |
||
32 | protected $id_str; |
||
33 | protected $entity_ids; |
||
34 | protected $end_time; |
||
35 | protected $placement; |
||
36 | protected $expires_at; |
||
37 | protected $account_id; |
||
38 | protected $status; |
||
39 | protected $granularity; |
||
40 | protected $entity; |
||
41 | protected $created_at; |
||
42 | protected $updated_at; |
||
43 | protected $metric_groups; |
||
44 | |||
45 | protected $properties = []; |
||
46 | |||
47 | |||
48 | /** |
||
49 | * @param array $params |
||
50 | * @return $this|Job|Resource |
||
51 | * @throws TwitterAdsException |
||
52 | * @throws BadRequest |
||
53 | * @throws Forbidden |
||
54 | * @throws NotAuthorized |
||
55 | * @throws NotFound |
||
56 | * @throws RateLimit |
||
57 | * @throws ServerError |
||
58 | * @throws ServiceUnavailable |
||
59 | */ |
||
60 | public function read($params = []) |
||
77 | |||
78 | /** |
||
79 | * @return mixed |
||
80 | */ |
||
81 | public function getId() |
||
85 | |||
86 | /** |
||
87 | * @return mixed |
||
88 | */ |
||
89 | public function getStartTime() |
||
93 | |||
94 | /** |
||
95 | * @return mixed |
||
96 | */ |
||
97 | public function getSegmentationType() |
||
101 | |||
102 | /** |
||
103 | * @return mixed |
||
104 | */ |
||
105 | public function getUrl() |
||
109 | |||
110 | /** |
||
111 | * @return mixed |
||
112 | */ |
||
113 | public function getIdStr() |
||
117 | |||
118 | /** |
||
119 | * @return mixed |
||
120 | */ |
||
121 | public function getEntityIds() |
||
125 | |||
126 | /** |
||
127 | * @return mixed |
||
128 | */ |
||
129 | public function getEndTime() |
||
133 | |||
134 | /** |
||
135 | * @return mixed |
||
136 | */ |
||
137 | public function getPlacement() |
||
141 | |||
142 | /** |
||
143 | * @return mixed |
||
144 | */ |
||
145 | public function getExpiresAt() |
||
149 | |||
150 | /** |
||
151 | * @return mixed |
||
152 | */ |
||
153 | public function getAccountId() |
||
157 | |||
158 | /** |
||
159 | * @return mixed |
||
160 | */ |
||
161 | public function getStatus() |
||
165 | |||
166 | /** |
||
167 | * @return mixed |
||
168 | */ |
||
169 | public function getGranularity() |
||
173 | |||
174 | /** |
||
175 | * @return mixed |
||
176 | */ |
||
177 | public function getEntity() |
||
181 | |||
182 | /** |
||
183 | * @return mixed |
||
184 | */ |
||
185 | public function getCreatedAt() |
||
189 | |||
190 | /** |
||
191 | * @return mixed |
||
192 | */ |
||
193 | public function getUpdatedAt() |
||
197 | |||
198 | /** |
||
199 | * @return mixed |
||
200 | */ |
||
201 | public function getMetricGroups() |
||
205 | |||
206 | } |
||
207 |