MoPub (Twitter)

The Switchboard MoPub connector automates access to specific MoPub reports.

Prerequisites

To configure access to the MoPub Connector, you need:

  • API Key
  • Report Key

To obtain the API Key or Report Key, contact your MoPub Account Manager.

Scheduling

The MoPub 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?

report_key

The ID of the report to fetch.
For Example: report_key: "123456abcdef"; 

For the parameter descriptions, see the MoPub Publisher Reporting API documentation.

Required

Switchboard Script Syntax

import mopub_report from {
    type: "mopub";
    key: "mopub_key";
    report_key: "123456abcdef";
} using {
    Day: datetime;
    App: string;
    App ID: string;
    AdUnit: string;
    AdUnit ID: string;
    AdUnit Format: string;
    Country: string;
    Device: string;
    OS: string;
    Requests: string;
    Impressions: integer;
    Clicks: integer;
    Conversions: integer;
    Revenue: float;
    CTR: float;
};