Facebook Video Adbreak

The Switchboard Video Adbreak connector

Prerequisites

To configure access to the Facebook Video Adbreak Connector, you need:

  • A System User Access Token

Scheduling

The Facebook Video Adbreak connector can be scheduled to ingest data once per day at a user-defined hour and timezone. By default, the connector will run once at 6am PT. See Daily Scheduling for more information.

Parameters

Parameter Description Required/Optional?
api_version A string value for the requested Facebook API version. Optional
page_ids A list of Facebook Page Ids where videos are posted. Required
metrics A list of requested report metrics.
Allowed values are:

total_video_ad_break_ad_cpm
total_video_ad_break_ad_impressions
total_video_ad_break_earnings
Required

Sample Switchboard Script

download facebook_video_adbreak from {
    type: 'facebook:video_adbreak';
    key: 'video_insights_key';
    metrics: [
    	'total_video_ad_break_ad_impressions',
        'total_video_ad_break_earnings',
        'total_video_ad_break_ad_cpm'];
    api_version: "v9.0";
    page_ids: ["12345", "45678"];
} using {
    report_date: datetime;
    page_name: string;
    page_id: integer;
    video_id: integer;
    video_description: string;
    total_video_ad_break_ad_impressions: integer;
    total_video_ad_break_earnings: float;
    total_video_ad_break_ad_cpm: float;
};