Skip to main content
POST
Create a Standard Zone

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.

Body

application/json
name
string
required

The name of the zone. We recommend using a naming scheme that is descriptive, relevant, and consistent.

Example:

"Zone Name"

dimensions
string

The type of dimensions to which the zone should adhere. "fixed" dimensions require a width and height to determine how the ad will be displayed, whereas "dynamic" dimensions leave the width and height to be set by the site serving the ad.

Example:

"fixed"

width
integer

The width of the standard zone (see common ad item dimensions). The height and width of the zone must match the size of the ad items that will be displayed within it. These values must be given if dimensions are "fixed". It must be 0 or not given if dimensions are "dynamic".

Example:

300

height
integer

The height of the standard zone (see common ad item dimensions). The height and width of the zone must match the size of the ad items that will be displayed within it. These values must be given if dimensions are "fixed". It must be 0 or not given if dimensions are "dynamic".

Example:

250

publisher
integer

The identifier (ID) of the publisher to which the zone belongs.

Example:

5223151

popup_frequency
integer
deprecated

The number of impressions after which a popup is displayed. It lets you control how often the popups should be served. For example, setting the value to 1 means a popup will be displayed each time the page is loaded, while setting it to 5 means a popup will be displayed after every five impressions. Defaults to 0, which means never show a popup.

refresh_frequency
integer

The interval (in seconds) after which a new ad is shown in the zone without requiring a page reload. This allows serving multiple impressions in one viewing session, making the most of your ad space on content heavy pages where the user will be spending a lot of time reading, such as an article or a forum thread. Defaults to 0, which means the zone will not be served new ads without a page reload.

NOTE:

  • If Unique Delivery is on, the interval must be equal to the number of ad items in the zone or assigned campaign
  • Third party scripts relying on document.write may not serve properly when using JavaScript zone tags.
refresh_limit
integer

The total number of times the zone will be refreshed with a new ad. Defaults to 0, which means zone will never be refreshed with a new ad.

responsive
string

Whether the size of the ad is fixed ("fixed"), resizeable ("auto"), or subject to the CSS of the page ("inherit"). The "fixed" option makes the ad item match the zone size when it is served. The "auto" option resizes the zone to fit the size of the served ad item. The "inherit" option lets CSS on the page decide the size of the zone.

TIPS:

  • Use "auto" if there is a chance that no ad may be served, which may be the case if you are using targeting and quotas. This will allow Haku to collapse the empty zones.
  • Do not use "auto" when using asynchronous tags with a raw HTML ad item. Otherwise the ad will not display properly because iframes conflict with responsive pages.
  • Do not use "ASync JavaScript" or "IFrame" tags with "auto" and "inherit".
Example:

"auto"

unique_delivery
boolean

Whether unique ads are served on each zone. It requires the use of JavaScript tags. Unique Delivery ensures that each zone will show an ad item from different campaigns, making it ideal for pages where the same zone tag is used multiple times. When set to 'true', the number of campaigns assigned to the zone must be greater than or equal to the number of instances of the zone on the page.

Example:

false

iab_categories
string[]

A list of IAB Categories that describe the content and purpose of the app or site to which the zone belongs.

NOTE: This feature requires the Programmatic add-on. If you don't have the add-on, you must set this field's value to null or an empty array.

Example:
allow_demand_sources
boolean

Whether to allow this zone to make requests to Demand Endpoints for bids.

NOTE: This feature requires the Programmatic add-on. If you don't have the add-on, you must set this field's value to false.

Example:

true

bid_floor
number<float>

The default bid floor for this zone when sending bids to programmatic demand partners.

NOTE: This feature requires the Programmatic add-on. If you don't have the add-on, you must set this field's value to 0.

Example:

0

min_payout
number<float>

The minimum amount that will be paid out to the publisher for an impression in CPM (cost per thousand).

NOTE: This field is for Programmatic (through Demand Endpoints) impressions only.

Example:

0.75

serve_priority_order
string

The order of priority when choosing a serving method. When set to "weight", ads are chosen in the order of Smooth-Delivery > Weight > Auction. When set to "auction", ads are chosen in the order of Smooth-Delivery > Auction > Weight. Defaults to "weight".

Example:

"weight"

pmp_deals
integer[]

An array of PMP Deal IDs that are allowed in this zone.

NOTE: This feature requires the Programmatic add-on. If you don't have the add-on, you must set this field's value to null or an empty array.

Example:
private_auction
boolean

Whether the auction will ignore non-deal bids.

NOTE: This feature requires the Programmatic add-on. If you don't have the add-on, you must set this field's value to false.

Example:

true

optimization_strategy
string

The optimization strategy for the zone.

Example:

"global_ecpm"

burn_in_impressions
integer

The number of impressions required for a placement before we are confident in its eCPM.

Example:

100000

burn_in_hours
integer

The number of hours a placement must be live before we are confident in its eCPM.

Example:

24

ecpm_testing_allowance
number<float>

The percentage of non-burn-in impressions that will be given to placements with a less than optimal eCPM. This allows for eCPM recalculations on placements that were originally thought to be low in value.

Example:

0.3

metadata
object

An object containing any number of metadata keys and values. Keys and values must be strings.

Example:
rtb_placement_id
string

Required for OpenRTB requests. Sets the tagid field in the request. The tagid is the identifier of a specific ad placement or the ad tag that was used to initiate the auction.

NOTE: The ability to participate in OpenRTB auctions via Haku requires subscribers to have the Programmatic Advertising add-on. If you don't have this add-on, you must set this field's value to null.

Example:

"123"

api_frameworks
string[]

Required for OpenRTB requests. Sets the api field in the banner object. The banner specifies the list of supported API frameworks for this impression.

NOTE: The ability to participate in OpenRTB auctions via Haku requires subscribers to have the Programmatic Advertising add-on. If you don't have this add-on, you must set this field's value to null or an empty array.

Example:
auction_tie_break
enum<string>

Determines the method for breaking ties in auction mediation.

Available options:
RANDOM,
SCORE
Example:

"RANDOM"

allowed_root_native_templates
integer[]

An array of allowed root native template IDs for this zone. This is used to restrict the native ad templates that can be served in this zone. If not set, all native ad templates are allowed.

Example:
ad_size_filter
object

Defines the ad size filter for the zone. Only works with dynamic zones. Requires the Zone Ad Size Filtering add-on.

use_share_of_voice
boolean

Whether the zone should use "share of voice" as its serving strategy. If this is set to false, the zone will use "weight" as its serving strategy.

Example:

true

Response

200 - application/json

successful operation

name
string
required

The name of the zone. We recommend using a naming scheme that is descriptive, relevant, and consistent.

Example:

"Zone Name"

object
string
read-only

A string denoting the current resource being requested or affected.

Example:

"standard_zone"

self
string
read-only

The relative URL of the current resource being requested or affected.

Example:

"/v2/zones/standard/1234"

id
integer
read-only

The current resource identifier (ID).

Example:

1234

dimensions
string

The type of dimensions to which the zone should adhere. "fixed" dimensions require a width and height to determine how the ad will be displayed, whereas "dynamic" dimensions leave the width and height to be set by the site serving the ad.

Example:

"fixed"

width
integer

The width of the standard zone (see common ad item dimensions). The height and width of the zone must match the size of the ad items that will be displayed within it. These values must be given if dimensions are "fixed". It must be 0 or not given if dimensions are "dynamic".

Example:

300

height
integer

The height of the standard zone (see common ad item dimensions). The height and width of the zone must match the size of the ad items that will be displayed within it. These values must be given if dimensions are "fixed". It must be 0 or not given if dimensions are "dynamic".

Example:

250

publisher
integer

The identifier (ID) of the publisher to which the zone belongs.

Example:

5223151

popup_frequency
integer
deprecated

The number of impressions after which a popup is displayed. It lets you control how often the popups should be served. For example, setting the value to 1 means a popup will be displayed each time the page is loaded, while setting it to 5 means a popup will be displayed after every five impressions. Defaults to 0, which means never show a popup.

refresh_frequency
integer

The interval (in seconds) after which a new ad is shown in the zone without requiring a page reload. This allows serving multiple impressions in one viewing session, making the most of your ad space on content heavy pages where the user will be spending a lot of time reading, such as an article or a forum thread. Defaults to 0, which means the zone will not be served new ads without a page reload.

NOTE:

  • If Unique Delivery is on, the interval must be equal to the number of ad items in the zone or assigned campaign
  • Third party scripts relying on document.write may not serve properly when using JavaScript zone tags.
refresh_limit
integer

The total number of times the zone will be refreshed with a new ad. Defaults to 0, which means zone will never be refreshed with a new ad.

responsive
string

Whether the size of the ad is fixed ("fixed"), resizeable ("auto"), or subject to the CSS of the page ("inherit"). The "fixed" option makes the ad item match the zone size when it is served. The "auto" option resizes the zone to fit the size of the served ad item. The "inherit" option lets CSS on the page decide the size of the zone.

TIPS:

  • Use "auto" if there is a chance that no ad may be served, which may be the case if you are using targeting and quotas. This will allow Haku to collapse the empty zones.
  • Do not use "auto" when using asynchronous tags with a raw HTML ad item. Otherwise the ad will not display properly because iframes conflict with responsive pages.
  • Do not use "ASync JavaScript" or "IFrame" tags with "auto" and "inherit".
Example:

"auto"

unique_delivery
boolean

Whether unique ads are served on each zone. It requires the use of JavaScript tags. Unique Delivery ensures that each zone will show an ad item from different campaigns, making it ideal for pages where the same zone tag is used multiple times. When set to 'true', the number of campaigns assigned to the zone must be greater than or equal to the number of instances of the zone on the page.

Example:

false

iab_categories
string[]

A list of IAB Categories that describe the content and purpose of the app or site to which the zone belongs.

NOTE: This feature requires the Programmatic add-on. If you don't have the add-on, you must set this field's value to null or an empty array.

Example:
allow_demand_sources
boolean

Whether to allow this zone to make requests to Demand Endpoints for bids.

NOTE: This feature requires the Programmatic add-on. If you don't have the add-on, you must set this field's value to false.

Example:

true

bid_floor
number<float>

The default bid floor for this zone when sending bids to programmatic demand partners.

NOTE: This feature requires the Programmatic add-on. If you don't have the add-on, you must set this field's value to 0.

Example:

0

min_payout
number<float>

The minimum amount that will be paid out to the publisher for an impression in CPM (cost per thousand).

NOTE: This field is for Programmatic (through Demand Endpoints) impressions only.

Example:

0.75

serve_priority_order
string

The order of priority when choosing a serving method. When set to "weight", ads are chosen in the order of Smooth-Delivery > Weight > Auction. When set to "auction", ads are chosen in the order of Smooth-Delivery > Auction > Weight. Defaults to "weight".

Example:

"weight"

pmp_deals
integer[]

An array of PMP Deal IDs that are allowed in this zone.

NOTE: This feature requires the Programmatic add-on. If you don't have the add-on, you must set this field's value to null or an empty array.

Example:
private_auction
boolean

Whether the auction will ignore non-deal bids.

NOTE: This feature requires the Programmatic add-on. If you don't have the add-on, you must set this field's value to false.

Example:

true

optimization_strategy
string

The optimization strategy for the zone.

Example:

"global_ecpm"

burn_in_impressions
integer

The number of impressions required for a placement before we are confident in its eCPM.

Example:

100000

burn_in_hours
integer

The number of hours a placement must be live before we are confident in its eCPM.

Example:

24

ecpm_testing_allowance
number<float>

The percentage of non-burn-in impressions that will be given to placements with a less than optimal eCPM. This allows for eCPM recalculations on placements that were originally thought to be low in value.

Example:

0.3

metadata
object

An object containing any number of metadata keys and values. Keys and values must be strings.

Example:
rtb_placement_id
string

Required for OpenRTB requests. Sets the tagid field in the request. The tagid is the identifier of a specific ad placement or the ad tag that was used to initiate the auction.

NOTE: The ability to participate in OpenRTB auctions via Haku requires subscribers to have the Programmatic Advertising add-on. If you don't have this add-on, you must set this field's value to null.

Example:

"123"

api_frameworks
string[]

Required for OpenRTB requests. Sets the api field in the banner object. The banner specifies the list of supported API frameworks for this impression.

NOTE: The ability to participate in OpenRTB auctions via Haku requires subscribers to have the Programmatic Advertising add-on. If you don't have this add-on, you must set this field's value to null or an empty array.

Example:
auction_tie_break
enum<string>

Determines the method for breaking ties in auction mediation.

Available options:
RANDOM,
SCORE
Example:

"RANDOM"

allowed_root_native_templates
integer[]

An array of allowed root native template IDs for this zone. This is used to restrict the native ad templates that can be served in this zone. If not set, all native ad templates are allowed.

Example:
ad_size_filter
object

Defines the ad size filter for the zone. Only works with dynamic zones. Requires the Zone Ad Size Filtering add-on.

use_share_of_voice
boolean

Whether the zone should use "share of voice" as its serving strategy. If this is set to false, the zone will use "weight" as its serving strategy.

Example:

true