This repository was archived by the owner on Apr 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed
Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 2020 */
2121class 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 ' ;
Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments