You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for video creation using image slideshows
Summary: Introduced slideshow_spec to AdVideo and added new file SlideshowSpecFields to hold sub-fields. slideshow can still be used against graph-video endpoint, so continue to do so in AdVideo creation but adjust to not require a source video file
Test Plan:
use FacebookAds\Object\AdVideo;
use FacebookAds\Object\Fields\AdVideoFields;
$video = new AdVideo(null, $ad_account_id);
$video->{AdVideoFields::SLIDESHOW_SPEC} = array (
'images_urls' => array(
$image_url_1,
$image_url_2,
$image_url_3,
),
'duration_ms' => 2000,
'transition_ms' => 200,
);
$video->create();
0 commit comments