src/TwitterAds/Campaign/TargetingCriteria.php 1 location
|
@@ 47-55 (lines=9) @@
|
44 |
|
* |
45 |
|
* @return Cursor |
46 |
|
*/ |
47 |
|
public function line_item_all($line_item_id, $params = []) |
48 |
|
{ |
49 |
|
$params[TargetingCriteriaFields::LINE_ITEM_ID] = $line_item_id; |
50 |
|
|
51 |
|
$resource = str_replace(static::RESOURCE_REPLACE, $this->getTwitterAds()->getAccountId(), static::RESOURCE_COLLECTION); |
52 |
|
$request = $this->getTwitterAds()->get($resource, $params); |
53 |
|
|
54 |
|
return new Cursor($this, $this->getTwitterAds(), $request->getBody(), $params); |
55 |
|
} |
56 |
|
|
57 |
|
/** |
58 |
|
* @return mixed |
src/TwitterAds/Resource.php 1 location
|
@@ 63-69 (lines=7) @@
|
60 |
|
* |
61 |
|
* @return Cursor |
62 |
|
*/ |
63 |
|
public function all($params = []) |
64 |
|
{ |
65 |
|
$resource = str_replace(static::RESOURCE_REPLACE, $this->getTwitterAds()->getAccountId(), static::RESOURCE_COLLECTION); |
66 |
|
$response = $this->getTwitterAds()->get($resource, $params); |
67 |
|
|
68 |
|
return new Cursor($this, $this->getTwitterAds(), $response->getBody(), $params); |
69 |
|
} |
70 |
|
|
71 |
|
/** |
72 |
|
* @param $params |
src/TwitterAds/Campaign/Feature.php 1 location
|
@@ 52-58 (lines=7) @@
|
49 |
|
* |
50 |
|
* @return Cursor |
51 |
|
*/ |
52 |
|
public function all($params = []) |
53 |
|
{ |
54 |
|
$resource = str_replace(static::RESOURCE_REPLACE, $this->getTwitterAds()->getAccountId(), static::RESOURCE_COLLECTION); |
55 |
|
$response = $this->getTwitterAds()->get($resource, $params); |
56 |
|
|
57 |
|
return new Cursor($response->getBody()->data, $this->getTwitterAds(), $response->getBody(), $params); |
58 |
|
} |
59 |
|
|
60 |
|
/** |
61 |
|
* @return TwitterAds |