Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit 60c02b8

Browse files
authored
Merge pull request #107 from timothyasp/master
Upgrade to v11
2 parents d22137d + bb69aab commit 60c02b8

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

src/TwitterAds.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class TwitterAds extends Config
2222
{
23-
const API_VERSION = '10';
23+
const API_VERSION = '11';
2424
const API_REST_VERSION = '1.1';
2525
const API_HOST = 'https://ads-api.twitter.com';
2626
const API_HOST_SANDBOX = 'https://ads-api-sandbox.twitter.com';

src/TwitterAds/Campaign/Campaign.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class Campaign extends Analytics
3131
protected $properties = [
3232
CampaignFields::NAME,
3333
CampaignFields::FUNDING_INSTRUMENT_ID,
34+
CampaignFields::BUDGET_OPTIMIZATION,
3435
CampaignFields::START_TIME,
3536
CampaignFields::END_TIME,
3637
CampaignFields::ENTITY_STATUS,
@@ -51,6 +52,7 @@ class Campaign extends Analytics
5152
protected $daily_budget_amount_local_micro;
5253
protected $total_budget_amount_local_micro;
5354
protected $duration_in_days;
55+
protected $budget_optimization;
5456
protected $frequency_cap;
5557

5658
/**
@@ -252,6 +254,22 @@ public function setStandardDelivery($standard_delivery)
252254
$this->standard_delivery = $standard_delivery;
253255
}
254256

257+
/**
258+
* @return mixed
259+
*/
260+
public function getBudgetOptimization()
261+
{
262+
return $this->budget_optimization;
263+
}
264+
265+
/**
266+
* @param mixed $budget_optimization
267+
*/
268+
public function setBudgetOptimization($budget_optimization)
269+
{
270+
$this->budget_optimization = $budget_optimization;
271+
}
272+
255273
/**
256274
* @return mixed
257275
*/

src/TwitterAds/Fields/CampaignFields.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class CampaignFields extends Fields
3030
const ENTITY_STATUS = 'entity_status';
3131
const WITH_TOTAL_COUNT = 'with_total_count';
3232
const WITH_DRAFT = 'with_draft';
33-
34-
const ACCOUNT_ID = 'account_id';
33+
const BUDGET_OPTIMIZATION = 'budget_optimization';
34+
const ACCOUNT_ID = 'account_id';
3535
const CAMPAIGN_IDS = 'campaign_ids';
3636
const FUNDING_INSTRUMENT_IDS = 'funding_instrument_ids';
3737
}

0 commit comments

Comments
 (0)