Media.net
Prerequisites
To configure access to the MediaGrid Connector, you need:
- The Email Address and Password that you use to login to your Media.net account.
Scheduling
The Media.net 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? |
---|---|---|
dimensions | A string list of requested dimensions. | Required |
Sample Switchboard Script
NOTE: The Media.net connector always include a report_date
field as part of the data import.
—
import media_net_report from {
type: "medianet:report";
key: "media_net_key";
dimensions: ["device_type",
"country_code",
"domain_name",
"size",
"creative_id",
"advertiser_hostname"];
} using {
// The connector adds report_date, so it's always available.
report_date: datetime("YYYYMMdd");
// The remaining columns depend on Media.net.
device_type: integer;
device_name: string;
country_code: string;
country_name: string;
domain_name: string;
creative_name: string;
creative_id: integer;
advertiser_hostname: string;
size: string;
impressions: integer;
ad_slot_imp: integer;
pub_win_rate: float;
audited_pub_revenue: float;
rpm: float;
};