Skip to main content
GET
Retrieve Placement Forecast Stats

Authorizations

Authorization
string
header
required

API key en el header Authorization: Basic TU_API_KEY. La key va tal cual, sin codificar en base64. Las credenciales se entregan al comenzar la integración.

Query Parameters

zone_id
string
required

Specify the zone ID for the proposed placement for which the forecast is to be calculated.

priority
string
required

How a placement will be preferred over over others in a zone. The possible values in descending order are "sponsorship", "standard", "network", "bulk" and "house".

delivery_pacing
string
required

The pace of the proposed placement. It can either be "default" or "smooth". Default delivery delivers the impressions as quickly as possible. Smooth delivery will evenly serve ads based on the placement's lifetime dates and quotas. NOTE: placements with serve_method set to "auction" will always be delivered using the "default" method regardless of this field's value.

serve_method
string

Whether the placement is served using a weight-based ("weight") or auction-based ("auction") system. Defaults to "weight". Auction-based placements are served based on their CPM and schedule. Weight-based placements are served based on their weight and schedule. These placements can still have a CPM associated with them, but the CPM does not affect serving and is only used for reporting. NOTE: the serve method cannot be changed. The 'serve_method' is required if the 'delivery_pacing' is set to "default"

weight
integer

An integer used to compute the probability of serving a particular placement. Haku uses the weight values of the placements assigned to a zone to determine their distribution ratio. The higher the number, the higher the weight.

For example, you have two campaigns, A and B. Campaign A has a weight of 1, while Campaign B has a weight of 20. If all their other settings are the same, Campaign A will have a 1 in 21 odds of being served, while Campaign B will have a 20 in 21 odds of being served. Defaults to 1.

cpm
number<float>

Cost per 1,000 impressions. This field is required if serve_method is set to "auction".

start_date
string<date-time>
required

A valid ISO 8601 formatted date denoting the inclusive start of the period. This field along with the end_date field lets you specify a custom date and time interval within which the forecast needs to be calculated.

end_date
string<date-time>
required

A valid ISO 8601 formatted date denoting the exclusive end of the period. This field along with the start_date field lets you specify a custom date and time interval within which the forecast needs to be calculated.

quota_lifetime
integer

The targeted number of impressions or clicks to deliver for a placement with a quota-based expiration method, where the ad or campaign will stop being served once the quota for "views" or "clicks" is met. Haku will calculate the remaining inventory based on this value. This field is required if delivery_pacing is set to "smooth".

quota_daily
integer

An optional daily limit for a placement's impressions or clicks.

geo_target
integer

The geotarget identifier (ID). Required if you want to enable geographic targeting, which forces ads to be served only to users in a particular location. Defaults to "null", which means geographic targeting is not in effect.

platform_target
integer

The platform target identifier (ID). Required if you want to enable platform targeting, which forces ads to be delivered only to users with particular devices, browsers, or operating systems. Defaults to "null", which means platform targeting is not in effect.

Response

default - application/json

successful operation

object
string

A string denoting the current resource being requested or affected.

Example:

"placement_forecast"

url
string

The URL of the current resource.

Example:

"/v1/reports/placement-forecast"

data
object[]