24
24
use FacebookAds \Object \Values \AdAccountCurrencyValues ;
25
25
use FacebookAds \Object \Values \AdAccountDeliveryEstimateOptimizationGoalValues ;
26
26
use FacebookAds \Object \Values \AdAccountMatchedSearchApplicationsEdgeDataAppStoreValues ;
27
+ use FacebookAds \Object \Values \AdAccountMatchedSearchApplicationsEdgeDataStoresToFilterValues ;
27
28
use FacebookAds \Object \Values \AdAccountPermittedTasksValues ;
28
29
use FacebookAds \Object \Values \AdAccountSubtypeValues ;
29
30
use FacebookAds \Object \Values \AdAccountTargetingUnifiedAppStoreValues ;
110
111
use FacebookAds \Object \Values \CustomAudienceUseForProductsValues ;
111
112
use FacebookAds \Object \Values \CustomConversionActionSourceTypeValues ;
112
113
use FacebookAds \Object \Values \CustomConversionCustomEventTypeValues ;
114
+ use FacebookAds \Object \Values \MessageDeliveryEstimateOptimizationGoalValues ;
115
+ use FacebookAds \Object \Values \MessageDeliveryEstimatePacingTypeValues ;
113
116
use FacebookAds \Object \Values \ReachFrequencyPredictionActionValues ;
114
117
use FacebookAds \Object \Values \ReachFrequencyPredictionBuyingTypeValues ;
115
118
use FacebookAds \Object \Values \ReachFrequencyPredictionInstreamPackagesValues ;
@@ -448,6 +451,7 @@ public function createAdCreative(array $fields = array(), array $params = array(
448
451
'is_dco_internal ' => 'bool ' ,
449
452
'link_og_id ' => 'string ' ,
450
453
'link_url ' => 'string ' ,
454
+ 'media_sourcing_spec ' => 'map ' ,
451
455
'name ' => 'string ' ,
452
456
'object_id ' => 'unsigned int ' ,
453
457
'object_story_id ' => 'string ' ,
@@ -1002,6 +1006,7 @@ public function createAdSet(array $fields = array(), array $params = array(), $p
1002
1006
'bid_constraints ' => 'map<string, Object> ' ,
1003
1007
'bid_strategy ' => 'bid_strategy_enum ' ,
1004
1008
'billing_event ' => 'billing_event_enum ' ,
1009
+ 'budget_schedule_specs ' => 'list<Object> ' ,
1005
1010
'budget_source ' => 'budget_source_enum ' ,
1006
1011
'budget_split_set_id ' => 'string ' ,
1007
1012
'campaign_attribution ' => 'Object ' ,
@@ -1023,6 +1028,7 @@ public function createAdSet(array $fields = array(), array $params = array(), $p
1023
1028
'frequency_control_specs ' => 'list<Object> ' ,
1024
1029
'full_funnel_exploration_mode ' => 'full_funnel_exploration_mode_enum ' ,
1025
1030
'is_ba_skip_delayed_eligible ' => 'bool ' ,
1031
+ 'is_budget_schedule_enabled ' => 'bool ' ,
1026
1032
'is_dynamic_creative ' => 'bool ' ,
1027
1033
'is_incremental_attribution_enabled ' => 'bool ' ,
1028
1034
'is_sac_cfca_terms_certified ' => 'bool ' ,
@@ -1052,7 +1058,10 @@ public function createAdSet(array $fields = array(), array $params = array(), $p
1052
1058
'time_start ' => 'datetime ' ,
1053
1059
'time_stop ' => 'datetime ' ,
1054
1060
'topline_id ' => 'string ' ,
1061
+ 'trending_topics_spec ' => 'map ' ,
1055
1062
'tune_for_category ' => 'tune_for_category_enum ' ,
1063
+ 'value_rule_set_id ' => 'string ' ,
1064
+ 'value_rules_applied ' => 'bool ' ,
1056
1065
);
1057
1066
$ enums = array (
1058
1067
'automatic_manual_state_enum ' => AdSetAutomaticManualStateValues::getInstance ()->getValues (),
@@ -1878,9 +1887,14 @@ public function createCampaign(array $fields = array(), array $params = array(),
1878
1887
$ param_types = array (
1879
1888
'adlabels ' => 'list<Object> ' ,
1880
1889
'bid_strategy ' => 'bid_strategy_enum ' ,
1890
+ 'budget_schedule_specs ' => 'list<Object> ' ,
1881
1891
'buying_type ' => 'string ' ,
1882
1892
'daily_budget ' => 'unsigned int ' ,
1883
1893
'execution_options ' => 'list<execution_options_enum> ' ,
1894
+ 'is_adset_budget_sharing_enabled ' => 'bool ' ,
1895
+ 'is_budget_schedule_enabled ' => 'bool ' ,
1896
+ 'is_direct_send_campaign ' => 'bool ' ,
1897
+ 'is_message_campaign ' => 'bool ' ,
1884
1898
'is_skadnetwork_attribution ' => 'bool ' ,
1885
1899
'iterative_split_test_configs ' => 'list<Object> ' ,
1886
1900
'lifetime_budget ' => 'unsigned int ' ,
@@ -2306,6 +2320,7 @@ public function getGeneratePreviews(array $fields = array(), array $params = arr
2306
2320
'end_date ' => 'datetime ' ,
2307
2321
'height ' => 'unsigned int ' ,
2308
2322
'locale ' => 'string ' ,
2323
+ 'message ' => 'Object ' ,
2309
2324
'place_page_id ' => 'int ' ,
2310
2325
'post ' => 'Object ' ,
2311
2326
'product_item_ids ' => 'list<string> ' ,
@@ -2372,6 +2387,7 @@ public function getInsights(array $fields = array(), array $params = array(), $p
2372
2387
'export_name ' => 'string ' ,
2373
2388
'fields ' => 'list<string> ' ,
2374
2389
'filtering ' => 'list<Object> ' ,
2390
+ 'graph_cache ' => 'bool ' ,
2375
2391
'level ' => 'level_enum ' ,
2376
2392
'limit ' => 'int ' ,
2377
2393
'product_id_limit ' => 'int ' ,
@@ -2424,6 +2440,7 @@ public function getInsightsAsync(array $fields = array(), array $params = array(
2424
2440
'export_name ' => 'string ' ,
2425
2441
'fields ' => 'list<string> ' ,
2426
2442
'filtering ' => 'list<Object> ' ,
2443
+ 'graph_cache ' => 'bool ' ,
2427
2444
'level ' => 'level_enum ' ,
2428
2445
'limit ' => 'int ' ,
2429
2446
'product_id_limit ' => 'int ' ,
@@ -2519,9 +2536,11 @@ public function getMatchedSearchApplications(array $fields = array(), array $par
2519
2536
'is_skadnetwork_search ' => 'bool ' ,
2520
2537
'only_apps_with_permission ' => 'bool ' ,
2521
2538
'query_term ' => 'string ' ,
2539
+ 'stores_to_filter ' => 'list<stores_to_filter_enum> ' ,
2522
2540
);
2523
2541
$ enums = array (
2524
2542
'app_store_enum ' => AdAccountMatchedSearchApplicationsEdgeDataAppStoreValues::getInstance ()->getValues (),
2543
+ 'stores_to_filter_enum ' => AdAccountMatchedSearchApplicationsEdgeDataStoresToFilterValues::getInstance ()->getValues (),
2525
2544
);
2526
2545
2527
2546
$ request = new ApiRequest (
@@ -2585,6 +2604,94 @@ public function getMcmeConversions(array $fields = array(), array $params = arra
2585
2604
return $ pending ? $ request : $ request ->execute ();
2586
2605
}
2587
2606
2607
+ public function createMessageCampaign (array $ fields = array (), array $ params = array (), $ pending = false ) {
2608
+ $ this ->assureId ();
2609
+
2610
+ $ param_types = array (
2611
+ 'bid_amount ' => 'unsigned int ' ,
2612
+ 'daily_budget ' => 'unsigned int ' ,
2613
+ 'lifetime_budget ' => 'unsigned int ' ,
2614
+ 'name ' => 'string ' ,
2615
+ 'page_id ' => 'string ' ,
2616
+ );
2617
+ $ enums = array (
2618
+ );
2619
+
2620
+ $ request = new ApiRequest (
2621
+ $ this ->api ,
2622
+ $ this ->data ['id ' ],
2623
+ RequestInterface::METHOD_POST ,
2624
+ '/message_campaign ' ,
2625
+ new AbstractCrudObject (),
2626
+ 'EDGE ' ,
2627
+ array (),
2628
+ new TypeChecker ($ param_types , $ enums )
2629
+ );
2630
+ $ request ->addParams ($ params );
2631
+ $ request ->addFields ($ fields );
2632
+ return $ pending ? $ request : $ request ->execute ();
2633
+ }
2634
+
2635
+ public function getMessageDeliveryEstimate (array $ fields = array (), array $ params = array (), $ pending = false ) {
2636
+ $ this ->assureId ();
2637
+
2638
+ $ param_types = array (
2639
+ 'bid_amount ' => 'unsigned int ' ,
2640
+ 'daily_budget ' => 'unsigned int ' ,
2641
+ 'is_direct_send_campaign ' => 'bool ' ,
2642
+ 'lifetime_budget ' => 'unsigned int ' ,
2643
+ 'lifetime_in_days ' => 'unsigned int ' ,
2644
+ 'optimization_goal ' => 'optimization_goal_enum ' ,
2645
+ 'pacing_type ' => 'pacing_type_enum ' ,
2646
+ 'promoted_object ' => 'Object ' ,
2647
+ 'targeting_spec ' => 'Targeting ' ,
2648
+ );
2649
+ $ enums = array (
2650
+ 'optimization_goal_enum ' => MessageDeliveryEstimateOptimizationGoalValues::getInstance ()->getValues (),
2651
+ 'pacing_type_enum ' => MessageDeliveryEstimatePacingTypeValues::getInstance ()->getValues (),
2652
+ );
2653
+
2654
+ $ request = new ApiRequest (
2655
+ $ this ->api ,
2656
+ $ this ->data ['id ' ],
2657
+ RequestInterface::METHOD_GET ,
2658
+ '/message_delivery_estimate ' ,
2659
+ new MessageDeliveryEstimate (),
2660
+ 'EDGE ' ,
2661
+ MessageDeliveryEstimate::getFieldsEnum ()->getValues (),
2662
+ new TypeChecker ($ param_types , $ enums )
2663
+ );
2664
+ $ request ->addParams ($ params );
2665
+ $ request ->addFields ($ fields );
2666
+ return $ pending ? $ request : $ request ->execute ();
2667
+ }
2668
+
2669
+ public function createMessage (array $ fields = array (), array $ params = array (), $ pending = false ) {
2670
+ $ this ->assureId ();
2671
+
2672
+ $ param_types = array (
2673
+ 'message ' => 'Object ' ,
2674
+ 'message_id ' => 'unsigned int ' ,
2675
+ 'messenger_delivery_data ' => 'map ' ,
2676
+ );
2677
+ $ enums = array (
2678
+ );
2679
+
2680
+ $ request = new ApiRequest (
2681
+ $ this ->api ,
2682
+ $ this ->data ['id ' ],
2683
+ RequestInterface::METHOD_POST ,
2684
+ '/messages ' ,
2685
+ new AbstractCrudObject (),
2686
+ 'EDGE ' ,
2687
+ array (),
2688
+ new TypeChecker ($ param_types , $ enums )
2689
+ );
2690
+ $ request ->addParams ($ params );
2691
+ $ request ->addFields ($ fields );
2692
+ return $ pending ? $ request : $ request ->execute ();
2693
+ }
2694
+
2588
2695
public function getMinimumBudgets (array $ fields = array (), array $ params = array (), $ pending = false ) {
2589
2696
$ this ->assureId ();
2590
2697
0 commit comments