75
75
use FacebookAds \Object \Values \AdVideoSwapModeValues ;
76
76
use FacebookAds \Object \Values \AdVideoUnpublishedContentTypeValues ;
77
77
use FacebookAds \Object \Values \AdVideoUploadPhaseValues ;
78
+ use FacebookAds \Object \Values \AdVideoVideoStateValues ;
78
79
use FacebookAds \Object \Values \AdsInsightsActionAttributionWindowsValues ;
79
80
use FacebookAds \Object \Values \AdsInsightsActionBreakdownsValues ;
80
81
use FacebookAds \Object \Values \AdsInsightsActionReportTimeValues ;
@@ -433,7 +434,6 @@ public function createAdCreative(array $fields = array(), array $params = array(
433
434
'image_file ' => 'string ' ,
434
435
'image_hash ' => 'string ' ,
435
436
'image_url ' => 'string ' ,
436
- 'instagram_actor_id ' => 'string ' ,
437
437
'instagram_branded_content ' => 'map ' ,
438
438
'instagram_permalink_url ' => 'string ' ,
439
439
'instagram_user_id ' => 'string ' ,
@@ -455,6 +455,7 @@ public function createAdCreative(array $fields = array(), array $params = array(
455
455
'portrait_customizations ' => 'map ' ,
456
456
'product_set_id ' => 'string ' ,
457
457
'recommender_settings ' => 'map ' ,
458
+ 'regional_regulation_disclaimer_spec ' => 'map ' ,
458
459
'source_instagram_media_id ' => 'string ' ,
459
460
'template_url ' => 'string ' ,
460
461
'template_url_spec ' => 'string ' ,
@@ -1011,6 +1012,7 @@ public function createAdSet(array $fields = array(), array $params = array(), $p
1011
1012
'frequency_control_specs ' => 'list<Object> ' ,
1012
1013
'full_funnel_exploration_mode ' => 'full_funnel_exploration_mode_enum ' ,
1013
1014
'is_dynamic_creative ' => 'bool ' ,
1015
+ 'is_sac_cfca_terms_certified ' => 'bool ' ,
1014
1016
'lifetime_budget ' => 'unsigned int ' ,
1015
1017
'lifetime_imps ' => 'unsigned int ' ,
1016
1018
'lifetime_min_spend_target ' => 'unsigned int ' ,
@@ -3002,6 +3004,33 @@ public function createSubscribedApp(array $fields = array(), array $params = arr
3002
3004
return $ pending ? $ request : $ request ->execute ();
3003
3005
}
3004
3006
3007
+ public function getSuggestedProductTags (array $ fields = array (), array $ params = array (), $ pending = false ) {
3008
+ $ this ->assureId ();
3009
+
3010
+ $ param_types = array (
3011
+ 'image_hash ' => 'string ' ,
3012
+ 'instagram_actor_id ' => 'string ' ,
3013
+ 'is_shops_ad ' => 'bool ' ,
3014
+ 'page_id ' => 'string ' ,
3015
+ );
3016
+ $ enums = array (
3017
+ );
3018
+
3019
+ $ request = new ApiRequest (
3020
+ $ this ->api ,
3021
+ $ this ->data ['id ' ],
3022
+ RequestInterface::METHOD_GET ,
3023
+ '/suggested_product_tags ' ,
3024
+ new AdAccountSuggestedTag (),
3025
+ 'EDGE ' ,
3026
+ AdAccountSuggestedTag::getFieldsEnum ()->getValues (),
3027
+ new TypeChecker ($ param_types , $ enums )
3028
+ );
3029
+ $ request ->addParams ($ params );
3030
+ $ request ->addFields ($ fields );
3031
+ return $ pending ? $ request : $ request ->execute ();
3032
+ }
3033
+
3005
3034
public function getTargetingBrowse (array $ fields = array (), array $ params = array (), $ pending = false ) {
3006
3035
$ this ->assureId ();
3007
3036
@@ -3342,6 +3371,37 @@ public function getVideoAds(array $fields = array(), array $params = array(), $p
3342
3371
return $ pending ? $ request : $ request ->execute ();
3343
3372
}
3344
3373
3374
+ public function createVideoAd (array $ fields = array (), array $ params = array (), $ pending = false ) {
3375
+ $ this ->assureId ();
3376
+
3377
+ $ param_types = array (
3378
+ 'description ' => 'string ' ,
3379
+ 'privacy ' => 'string ' ,
3380
+ 'title ' => 'string ' ,
3381
+ 'upload_phase ' => 'upload_phase_enum ' ,
3382
+ 'video_id ' => 'string ' ,
3383
+ 'video_state ' => 'video_state_enum ' ,
3384
+ );
3385
+ $ enums = array (
3386
+ 'upload_phase_enum ' => AdVideoUploadPhaseValues::getInstance ()->getValues (),
3387
+ 'video_state_enum ' => AdVideoVideoStateValues::getInstance ()->getValues (),
3388
+ );
3389
+
3390
+ $ request = new ApiRequest (
3391
+ $ this ->api ,
3392
+ $ this ->data ['id ' ],
3393
+ RequestInterface::METHOD_POST ,
3394
+ '/video_ads ' ,
3395
+ new AdVideo (),
3396
+ 'EDGE ' ,
3397
+ AdVideo::getFieldsEnum ()->getValues (),
3398
+ new TypeChecker ($ param_types , $ enums )
3399
+ );
3400
+ $ request ->addParams ($ params );
3401
+ $ request ->addFields ($ fields );
3402
+ return $ pending ? $ request : $ request ->execute ();
3403
+ }
3404
+
3345
3405
public function getSelf (array $ fields = array (), array $ params = array (), $ pending = false ) {
3346
3406
$ this ->assureId ();
3347
3407
0 commit comments