1 | <?php |
||
22 | class TargetingCriteria extends Resource |
||
23 | { |
||
24 | const RESOURCE_COLLECTION = 'accounts/{account_id}/targeting_criteria'; |
||
25 | const RESOURCE = 'accounts/{account_id}/targeting_criteria/{id}'; |
||
26 | |||
27 | /** Read Only */ |
||
28 | protected $id; |
||
29 | protected $localized_name; |
||
30 | protected $name; |
||
31 | protected $created_at; |
||
32 | protected $updated_at; |
||
33 | protected $deleted; |
||
34 | |||
35 | protected $properties = [ |
||
36 | TargetingCriteriaFields::LINE_ITEM_ID, |
||
37 | TargetingCriteriaFields::TARGETING_TYPE, |
||
38 | TargetingCriteriaFields::TARGETING_VALUE, |
||
39 | TargetingCriteriaFields::TAILORED_AUDIENCE_EXPANSION, |
||
40 | TargetingCriteriaFields::TAILORED_AUDIENCE_TYPE, |
||
41 | ]; |
||
42 | |||
43 | protected $line_item_id; |
||
44 | protected $targeting_type; |
||
45 | protected $targeting_value; |
||
46 | protected $tailored_audience_expansion; |
||
47 | protected $tailored_audience_type; |
||
48 | |||
49 | /** |
||
50 | * @param $line_item_id |
||
51 | * @param array $params |
||
52 | * |
||
53 | * @return Cursor |
||
54 | * @throws TwitterAdsException |
||
55 | * @throws BadRequest |
||
56 | * @throws Forbidden |
||
57 | * @throws NotAuthorized |
||
58 | * @throws NotFound |
||
59 | * @throws RateLimit |
||
60 | * @throws ServerError |
||
61 | * @throws ServiceUnavailable |
||
62 | */ |
||
63 | public function line_item_all($line_item_id, $params = []) |
||
72 | |||
73 | |||
74 | /** |
||
75 | * @return Resource |
||
76 | * @throws MethodNotAllowedException |
||
77 | */ |
||
78 | public function save() |
||
86 | |||
87 | /** |
||
88 | * @return mixed |
||
89 | */ |
||
90 | public function getName() |
||
94 | |||
95 | /** |
||
96 | * @return mixed |
||
97 | */ |
||
98 | public function getId() |
||
102 | |||
103 | /** |
||
104 | * @return mixed |
||
105 | */ |
||
106 | public function getLocalizedName() |
||
110 | |||
111 | /** |
||
112 | * @return mixed |
||
113 | */ |
||
114 | public function getCreatedAt() |
||
118 | |||
119 | /** |
||
120 | * @return mixed |
||
121 | */ |
||
122 | public function getUpdatedAt() |
||
126 | |||
127 | /** |
||
128 | * @return mixed |
||
129 | */ |
||
130 | public function getDeleted() |
||
134 | |||
135 | /** |
||
136 | * @return mixed |
||
137 | */ |
||
138 | public function getLineItemId() |
||
142 | |||
143 | /** |
||
144 | * @return mixed |
||
145 | */ |
||
146 | public function getTargetingType() |
||
150 | |||
151 | /** |
||
152 | * @return mixed |
||
153 | */ |
||
154 | public function getTargetingValue() |
||
158 | |||
159 | /** |
||
160 | * @return mixed |
||
161 | */ |
||
162 | public function getTailoredAudienceExpansion() |
||
166 | |||
167 | /** |
||
168 | * @return mixed |
||
169 | */ |
||
170 | public function getTailoredAudienceType() |
||
174 | |||
175 | /** |
||
176 | * @param array $properties |
||
177 | */ |
||
178 | public function setProperties($properties) |
||
182 | |||
183 | /** |
||
184 | * @param mixed $line_item_id |
||
185 | */ |
||
186 | public function setLineItemId($line_item_id) |
||
190 | |||
191 | /** |
||
192 | * @param mixed $targeting_type |
||
193 | */ |
||
194 | public function setTargetingType($targeting_type) |
||
198 | |||
199 | /** |
||
200 | * @param mixed $targeting_value |
||
201 | */ |
||
202 | public function setTargetingValue($targeting_value) |
||
206 | |||
207 | /** |
||
208 | * @param mixed $tailored_audience_expansion |
||
209 | */ |
||
210 | public function setTailoredAudienceExpansion($tailored_audience_expansion) |
||
214 | |||
215 | /** |
||
216 | * @param mixed $tailored_audience_type |
||
217 | */ |
||
218 | public function setTailoredAudienceType($tailored_audience_type) |
||
222 | } |
||
223 |