1 | <?php |
||
16 | final class TailoredAudienceChanges extends Resource |
||
17 | { |
||
18 | const RESOURCE_COLLECTION = 'accounts/{account_id}/tailored_audience_changes'; |
||
19 | const RESOURCE = 'accounts/{account_id}/tailored_audience_changes/{id}'; |
||
20 | |||
21 | const ADD = 'ADD'; |
||
22 | const REMOVE = 'REMOVE'; |
||
23 | const REPLACE = 'REPLACE'; |
||
24 | |||
25 | protected $input_file_path; |
||
26 | protected $tailored_audience_id; |
||
27 | protected $operation; |
||
28 | |||
29 | protected $properties = [ |
||
30 | 'tailored_audience_id', |
||
31 | 'input_file_path', |
||
32 | 'operation', |
||
33 | ]; |
||
34 | |||
35 | /** Read Only */ |
||
36 | protected $id; |
||
37 | protected $state; |
||
38 | |||
39 | public function updateAudience($tailoredAudienceId, $location, $listType, $operation) |
||
52 | |||
53 | public function status($tailoredAudienceId) |
||
67 | |||
68 | public function getId() |
||
72 | |||
73 | public function getInputFilePath() |
||
77 | |||
78 | public function setInputFilePath($path) |
||
82 | |||
83 | public function getTailoredAudienceId() |
||
87 | |||
88 | public function setTailoredAudienceId($id) |
||
92 | |||
93 | public function getOperation() |
||
97 | |||
98 | public function setOperation($op) |
||
102 | |||
103 | /** |
||
104 | * @return array |
||
105 | */ |
||
106 | public function getProperties() |
||
110 | |||
111 | /** |
||
112 | * @return mixed |
||
113 | */ |
||
114 | public function getState() |
||
118 | |||
119 | private function getOperations() |
||
127 | |||
128 | private function assureValidOperation($op) |
||
140 | } |
||
141 |