Quick overview
This workflow runs on a schedule (or manually) to scan a Google Drive folder for videos, then uploads each video to Facebook Ads and creates an ad creative, ad set, and live ad via the Facebook Graph API.
How it works
- Runs every 6 hours on a schedule or starts on manual execution.
- Lists video files from a specified Google Drive folder.
- Processes the videos one at a time to avoid parallel uploads.
- Uploads each video to Facebook Ads via the Facebook Graph API.
- Waits 30 seconds for Facebook to finish encoding the uploaded video.
- Creates a Facebook ad creative for the uploaded video and then creates an ad set with the configured budget and targeting.
- Creates and activates a live Facebook ad using the new ad set and creative.
Setup
- Add a Google Drive OAuth2 credential and set the Drive folder ID to the folder that contains the videos you want to publish.
- Create a Facebook Graph API access token with
ads_management permissions and configure it as an HTTP Header Auth credential.
- Replace placeholders with your Facebook Ad Account ID (
act_...), Facebook Page ID, and an existing Campaign ID in the workflow’s Facebook Graph API requests.
- Review and adjust the ad set settings (daily budget in cents, countries, age range, placements) and decide whether ads should start as
ACTIVE or PAUSED.