Deal Forecast

POST /v3/api

Use this method to get your deal forecast reporting data. This table contains both actual delivery data and forecasted data, distinguished by the datatype field.

Note: When creative_id or creative_name is selected as a dimension, requests_total and requests_played will always return 0. This is because requests are logged before a creative is selected, so they have no creative associated.

Headers

Name
Value

Authorization

Basic <token>

Body

{
    table: "deal_forecast",
    startDate: string, // (format: YYYY-MM-DDThh:mm:ss)
    endDate: string, // (format: YYYY-MM-DDThh:mm:ss)
    fields: [
      { name: "timestamp", as?: string },
      { name: "dealid", as?: string },
      { name: "ssp", as?: string },
      { name: "datatype", as?: string },
      { name: "expired", as?: string },
      { name: "line_item_id", as?: string },
      { name: "line_item_name", as?: string },
      { name: "split_id", as?: string },
      { name: "split_name", as?: string },
      { name: "creative_id", as?: string },
      { name: "creative_name", as?: string },
      { name: "order_id", as?: string },
      { name: "order_name", as?: string },
      { name: "advertiser_id", as?: string },
      { name: "advertiser_name", as?: string },
      { name: "start_date", as?: string },
      { name: "end_date", as?: string }
    ],
    metrics: [
      { name: "requests_total", as?: string },
      { name: "requests_played", as?: string },
      { name: "responses", as?: string },
      { name: "impressions", as?: string },
      { name: "clicks", as?: string },
      { name: "views", as?: string },
      { name: "revenue_net_eur", as?: string },
      { name: "revenue_net_usd", as?: string },
      { name: "revenue_gross_eur", as?: string },
      { name: "revenue_gross_usd", as?: string },
      { name: "booked_revenue_eur", as?: string },
      { name: "booked_revenue_usd", as?: string },
      { name: "impressions_goal", as?: string },
      { name: "clicks_goal", as?: string }
    ],
    timeSplit: "day"
  }

Last updated

Was this helpful?