1 | <?php |
||
10 | class TargetingCriteria extends Resource |
||
11 | { |
||
12 | const RESOURCE_COLLECTION = 'accounts/{account_id}/targeting_criteria'; |
||
13 | const RESOURCE = 'accounts/{account_id}/targeting_criteria/{id}'; |
||
14 | |||
15 | /** Read Only */ |
||
16 | protected $id; |
||
17 | protected $localized_name; |
||
18 | protected $name; |
||
19 | protected $created_at; |
||
20 | protected $updated_at; |
||
21 | protected $deleted; |
||
22 | |||
23 | protected $properties = [ |
||
24 | TargetingCriteriaFields::LINE_ITEM_ID, |
||
25 | TargetingCriteriaFields::TARGETING_TYPE, |
||
26 | TargetingCriteriaFields::TARGETING_VALUE, |
||
27 | TargetingCriteriaFields::TAILORED_AUDIENCE_EXPANSION, |
||
28 | TargetingCriteriaFields::TAILORED_AUDIENCE_TYPE, |
||
29 | ]; |
||
30 | |||
31 | protected $line_item_id; |
||
32 | protected $targeting_type; |
||
33 | protected $targeting_value; |
||
34 | protected $tailored_audience_expansion; |
||
35 | protected $tailored_audience_type; |
||
36 | |||
37 | /** |
||
38 | * @param $line_item_id |
||
39 | * @param array $params |
||
40 | * |
||
41 | * @return Cursor |
||
42 | */ |
||
43 | public function line_item_all($line_item_id, $params = []) |
||
52 | |||
53 | |||
54 | public function save() |
||
62 | |||
63 | /** |
||
64 | * @return mixed |
||
65 | */ |
||
66 | public function getName() |
||
70 | |||
71 | /** |
||
72 | * @return mixed |
||
73 | */ |
||
74 | public function getId() |
||
78 | |||
79 | /** |
||
80 | * @return mixed |
||
81 | */ |
||
82 | public function getLocalizedName() |
||
86 | |||
87 | /** |
||
88 | * @return mixed |
||
89 | */ |
||
90 | public function getCreatedAt() |
||
94 | |||
95 | /** |
||
96 | * @return mixed |
||
97 | */ |
||
98 | public function getUpdatedAt() |
||
102 | |||
103 | /** |
||
104 | * @return mixed |
||
105 | */ |
||
106 | public function getDeleted() |
||
110 | |||
111 | /** |
||
112 | * @return array |
||
113 | */ |
||
114 | public function getProperties() |
||
118 | |||
119 | /** |
||
120 | * @return mixed |
||
121 | */ |
||
122 | public function getLineItemId() |
||
126 | |||
127 | /** |
||
128 | * @return mixed |
||
129 | */ |
||
130 | public function getTargetingType() |
||
134 | |||
135 | /** |
||
136 | * @return mixed |
||
137 | */ |
||
138 | public function getTargetingValue() |
||
142 | |||
143 | /** |
||
144 | * @return mixed |
||
145 | */ |
||
146 | public function getTailoredAudienceExpansion() |
||
150 | |||
151 | /** |
||
152 | * @return mixed |
||
153 | */ |
||
154 | public function getTailoredAudienceType() |
||
158 | |||
159 | /** |
||
160 | * @param array $properties |
||
161 | */ |
||
162 | public function setProperties($properties) |
||
166 | |||
167 | /** |
||
168 | * @param mixed $line_item_id |
||
169 | */ |
||
170 | public function setLineItemId($line_item_id) |
||
174 | |||
175 | /** |
||
176 | * @param mixed $targeting_type |
||
177 | */ |
||
178 | public function setTargetingType($targeting_type) |
||
182 | |||
183 | /** |
||
184 | * @param mixed $targeting_value |
||
185 | */ |
||
186 | public function setTargetingValue($targeting_value) |
||
190 | |||
191 | /** |
||
192 | * @param mixed $tailored_audience_expansion |
||
193 | */ |
||
194 | public function setTailoredAudienceExpansion($tailored_audience_expansion) |
||
198 | |||
199 | /** |
||
200 | * @param mixed $tailored_audience_type |
||
201 | */ |
||
202 | public function setTailoredAudienceType($tailored_audience_type) |
||
206 | } |
||
207 |