| @@ 46-54 (lines=9) @@ | ||
| 43 | * |
|
| 44 | * @return Cursor |
|
| 45 | */ |
|
| 46 | public function line_item_all($line_item_id, $params = []) |
|
| 47 | { |
|
| 48 | $params['line_item_id'] = $line_item_id; |
|
| 49 | ||
| 50 | $resource = str_replace(static::RESOURCE_REPLACE, $this->getAccount()->getId(), static::RESOURCE_COLLECTION); |
|
| 51 | $request = $this->getAccount()->getTwitterAds()->get($resource, $params); |
|
| 52 | ||
| 53 | return new Cursor($this, $this->getAccount(), $request->getBody(), $params); |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * @return mixed |
|
| @@ 43-51 (lines=9) @@ | ||
| 40 | * @param array $params |
|
| 41 | * @return Cursor |
|
| 42 | */ |
|
| 43 | public function all($tailoredAudienceId, $params = []) |
|
| 44 | { |
|
| 45 | $resource = str_replace(static::RESOURCE_REPLACE, $this->getAccount()->getId(), static::RESOURCE); |
|
| 46 | $resource = str_replace(self::RESOURCE_TAILORED_AUDIENCE_ID_REPLACE, $tailoredAudienceId, $resource); |
|
| 47 | ||
| 48 | $response = $this->getAccount()->getTwitterAds()->get($resource, $params); |
|
| 49 | ||
| 50 | return new Cursor($this, $this->getAccount(), $response->getBody(), $params); |
|
| 51 | } |
|
| 52 | ||
| 53 | /** |
|
| 54 | * Saves or updates the current tailored audience permission. |
|