7575use FacebookAds \Object \Values \AdVideoSwapModeValues ;
7676use FacebookAds \Object \Values \AdVideoUnpublishedContentTypeValues ;
7777use FacebookAds \Object \Values \AdVideoUploadPhaseValues ;
78+ use FacebookAds \Object \Values \AdVideoVideoStateValues ;
7879use FacebookAds \Object \Values \AdsInsightsActionAttributionWindowsValues ;
7980use FacebookAds \Object \Values \AdsInsightsActionBreakdownsValues ;
8081use FacebookAds \Object \Values \AdsInsightsActionReportTimeValues ;
@@ -433,7 +434,6 @@ public function createAdCreative(array $fields = array(), array $params = array(
433434 'image_file ' => 'string ' ,
434435 'image_hash ' => 'string ' ,
435436 'image_url ' => 'string ' ,
436- 'instagram_actor_id ' => 'string ' ,
437437 'instagram_branded_content ' => 'map ' ,
438438 'instagram_permalink_url ' => 'string ' ,
439439 'instagram_user_id ' => 'string ' ,
@@ -455,6 +455,7 @@ public function createAdCreative(array $fields = array(), array $params = array(
455455 'portrait_customizations ' => 'map ' ,
456456 'product_set_id ' => 'string ' ,
457457 'recommender_settings ' => 'map ' ,
458+ 'regional_regulation_disclaimer_spec ' => 'map ' ,
458459 'source_instagram_media_id ' => 'string ' ,
459460 'template_url ' => 'string ' ,
460461 'template_url_spec ' => 'string ' ,
@@ -1011,6 +1012,7 @@ public function createAdSet(array $fields = array(), array $params = array(), $p
10111012 'frequency_control_specs ' => 'list<Object> ' ,
10121013 'full_funnel_exploration_mode ' => 'full_funnel_exploration_mode_enum ' ,
10131014 'is_dynamic_creative ' => 'bool ' ,
1015+ 'is_sac_cfca_terms_certified ' => 'bool ' ,
10141016 'lifetime_budget ' => 'unsigned int ' ,
10151017 'lifetime_imps ' => 'unsigned int ' ,
10161018 'lifetime_min_spend_target ' => 'unsigned int ' ,
@@ -3002,6 +3004,33 @@ public function createSubscribedApp(array $fields = array(), array $params = arr
30023004 return $ pending ? $ request : $ request ->execute ();
30033005 }
30043006
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+
30053034 public function getTargetingBrowse (array $ fields = array (), array $ params = array (), $ pending = false ) {
30063035 $ this ->assureId ();
30073036
@@ -3342,6 +3371,37 @@ public function getVideoAds(array $fields = array(), array $params = array(), $p
33423371 return $ pending ? $ request : $ request ->execute ();
33433372 }
33443373
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+
33453405 public function getSelf (array $ fields = array (), array $ params = array (), $ pending = false ) {
33463406 $ this ->assureId ();
33473407
0 commit comments