Advertising Inventory Management API
version: 0.1
Sections
Specification
Open API
{
"openapi": "3.0.1",
"info": {
"title": "Advertising Inventory Management API",
"version": "0.1"
},
"servers": [
{
"url": "https://partner.yandex.ru/api",
"description": "Partner API"
}
],
"tags": [
{
"name": "mobile-adunit",
"description": "Managing mobile ad units"
}
],
"paths": {
"/mobile/adunit": {
"get": {
"tags": [
"Managing mobile ad units"
],
"summary": "Getting a list of mobile ad units",
"operationId": "getMobileAdUnits",
"parameters": [
{
"name": "filter",
"in": "query",
"description": "Mobile ad unit filter parameters",
"required": false,
"schema": {
"type": "object",
"properties": {
"appIds": {
"uniqueItems": true,
"type": "array",
"description": "IDs of apps where to search for ad units",
"items": {
"type": "integer",
"format": "int64"
}
},
"status": {
"uniqueItems": true,
"type": "array",
"description": "Statuses of ad units to search",
"items": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"default": [
"ENABLED"
]
}
},
"description": "Mobile ad unit filter parameters",
"example": {
"appIds": [
1001,
1015
],
"status": "ENABLED"
}
}
},
{
"name": "pageable",
"in": "query",
"description": "Page-by-page output parameters",
"required": false,
"schema": {
"type": "object",
"properties": {
"page": {
"minimum": 0,
"type": "integer",
"description": "Page number (zero-based)",
"format": "int32",
"default": 0
},
"size": {
"maximum": 100,
"minimum": 1,
"type": "integer",
"description": "Page size",
"format": "int32",
"default": 20
}
},
"description": "Page-by-page output parameters",
"example": {
"page": 0,
"size": 20
}
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"oneOf": [
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "App open ad unit",
"type": "object",
"description": "App open ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Rewarded ad unit",
"required": [
"currencyType",
"currencyValue"
],
"type": "object",
"properties": {
"currencyType": {
"maxLength": 64,
"minLength": 1,
"type": "string",
"description": "In-app currency name"
},
"currencyValue": {
"maximum": 100000000,
"minimum": 0,
"type": "number",
"description": "Reward amount for viewing the ad in the in-app currency"
}
},
"description": "Rewarded ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Banner",
"type": "object",
"description": "Banner"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Native ad unit",
"type": "object",
"description": "Native ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Interstitial ad unit",
"type": "object",
"description": "Interstitial ad unit"
}
]
}
]
}
},
"warnings": {
"type": "array",
"description": "List of warnings that occurred when performing an action",
"items": {
"type": "string"
}
}
}
}
}
}
}
},
"security": [
{
"OAuth": [
"pi:access-ad-inventory-api"
],
"OAuthViaApiKey": [
"pi:access-ad-inventory-api"
]
}
]
},
"post": {
"tags": [
"Managing mobile ad units"
],
"summary": "Adding a mobile ad unit",
"operationId": "addMobileAdUnit",
"requestBody": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"allOf": [
{
"required": [
"applicationId",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
],
"default": "{\n \"type\" : \"MaxRevenueStrategy\"\n}"
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "App open ad unit",
"type": "object",
"description": "App open ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
],
"default": "{\n \"type\" : \"MaxRevenueStrategy\"\n}"
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Rewarded ad unit",
"required": [
"currencyType",
"currencyValue"
],
"type": "object",
"properties": {
"currencyType": {
"maxLength": 64,
"minLength": 1,
"type": "string",
"description": "In-app currency name"
},
"currencyValue": {
"maximum": 100000000,
"minimum": 0,
"type": "number",
"description": "Reward amount for viewing the ad in the in-app currency"
}
},
"description": "Rewarded ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
],
"default": "{\n \"type\" : \"MaxRevenueStrategy\"\n}"
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Interstitial ad unit",
"type": "object",
"description": "Interstitial ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
],
"default": "{\n \"type\" : \"MaxRevenueStrategy\"\n}"
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Banner",
"type": "object",
"description": "Banner"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
],
"default": "{\n \"type\" : \"MaxRevenueStrategy\"\n}"
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Native ad unit",
"type": "object",
"description": "Native ad unit"
}
]
}
]
},
"example": {
"applicationId": "some_app_id",
"type": "AddBannerMobileAdUnit"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"oneOf": [
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "App open ad unit",
"type": "object",
"description": "App open ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Rewarded ad unit",
"required": [
"currencyType",
"currencyValue"
],
"type": "object",
"properties": {
"currencyType": {
"maxLength": 64,
"minLength": 1,
"type": "string",
"description": "In-app currency name"
},
"currencyValue": {
"maximum": 100000000,
"minimum": 0,
"type": "number",
"description": "Reward amount for viewing the ad in the in-app currency"
}
},
"description": "Rewarded ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Banner",
"type": "object",
"description": "Banner"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Native ad unit",
"type": "object",
"description": "Native ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Interstitial ad unit",
"type": "object",
"description": "Interstitial ad unit"
}
]
}
]
},
"warnings": {
"type": "array",
"description": "List of warnings that occurred when performing an action",
"items": {
"type": "string"
}
}
}
}
}
}
}
},
"security": [
{
"OAuth": [
"pi:access-ad-inventory-api"
],
"OAuthViaApiKey": [
"pi:access-ad-inventory-api"
]
}
]
}
},
"/mobile/adunit/{id}": {
"get": {
"tags": [
"Managing mobile ad units"
],
"summary": "Getting a mobile ad unit by ID",
"operationId": "getMobileAdUnit",
"parameters": [
{
"name": "id",
"in": "path",
"description": "Mobile ad unit ID",
"required": true,
"schema": {
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"oneOf": [
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "App open ad unit",
"type": "object",
"description": "App open ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Rewarded ad unit",
"required": [
"currencyType",
"currencyValue"
],
"type": "object",
"properties": {
"currencyType": {
"maxLength": 64,
"minLength": 1,
"type": "string",
"description": "In-app currency name"
},
"currencyValue": {
"maximum": 100000000,
"minimum": 0,
"type": "number",
"description": "Reward amount for viewing the ad in the in-app currency"
}
},
"description": "Rewarded ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Banner",
"type": "object",
"description": "Banner"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Native ad unit",
"type": "object",
"description": "Native ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Interstitial ad unit",
"type": "object",
"description": "Interstitial ad unit"
}
]
}
]
},
"warnings": {
"type": "array",
"description": "List of warnings that occurred when performing an action",
"items": {
"type": "string"
}
}
}
}
}
}
}
},
"security": [
{
"OAuth": [
"pi:access-ad-inventory-api"
],
"OAuthViaApiKey": [
"pi:access-ad-inventory-api"
]
}
]
},
"delete": {
"tags": [
"Managing mobile ad units"
],
"summary": "Deleting a mobile ad unit by ID (archiving)",
"operationId": "deleteMobileAdUnit",
"parameters": [
{
"name": "id",
"in": "path",
"description": "Mobile ad unit ID",
"required": true,
"schema": {
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
},
"security": [
{
"OAuth": [
"pi:access-ad-inventory-api"
],
"OAuthViaApiKey": [
"pi:access-ad-inventory-api"
]
}
]
},
"patch": {
"tags": [
"Managing mobile ad units"
],
"summary": "Editing a mobile ad unit by ID",
"operationId": "editMobileAdUnit",
"parameters": [
{
"name": "id",
"in": "path",
"description": "Mobile ad unit ID",
"required": true,
"schema": {
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Banner",
"type": "object",
"description": "Banner"
}
]
},
{
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Native ad unit",
"type": "object",
"description": "Native ad unit"
}
]
},
{
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Interstitial ad unit",
"type": "object",
"description": "Interstitial ad unit"
}
]
},
{
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Rewarded ad unit",
"type": "object",
"properties": {
"currencyType": {
"maxLength": 64,
"minLength": 1,
"type": "string",
"description": "In-app currency name"
},
"currencyValue": {
"maximum": 100000000,
"minimum": 0,
"type": "number",
"description": "Reward amount for viewing the ad in the in-app currency"
}
},
"description": "Rewarded ad unit"
}
]
},
{
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "App open ad unit",
"type": "object",
"description": "App open ad unit"
}
]
}
]
},
"example": {
"caption": "New caption"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"oneOf": [
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "App open ad unit",
"type": "object",
"description": "App open ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Rewarded ad unit",
"required": [
"currencyType",
"currencyValue"
],
"type": "object",
"properties": {
"currencyType": {
"maxLength": 64,
"minLength": 1,
"type": "string",
"description": "In-app currency name"
},
"currencyValue": {
"maximum": 100000000,
"minimum": 0,
"type": "number",
"description": "Reward amount for viewing the ad in the in-app currency"
}
},
"description": "Rewarded ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Banner",
"type": "object",
"description": "Banner"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Native ad unit",
"type": "object",
"description": "Native ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Interstitial ad unit",
"type": "object",
"description": "Interstitial ad unit"
}
]
}
]
},
"warnings": {
"type": "array",
"description": "List of warnings that occurred when performing an action",
"items": {
"type": "string"
}
}
}
}
}
}
}
},
"security": [
{
"OAuth": [
"pi:access-ad-inventory-api"
],
"OAuthViaApiKey": [
"pi:access-ad-inventory-api"
]
}
]
}
}
},
"components": {
"schemas": {
"AdUnitStatus": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"AddAppOpenMobileAdUnit": {
"allOf": [
{
"required": [
"applicationId",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
],
"default": "{\n \"type\" : \"MaxRevenueStrategy\"\n}"
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "App open ad unit",
"type": "object",
"description": "App open ad unit"
}
]
},
"AddBannerMobileAdUnit": {
"allOf": [
{
"required": [
"applicationId",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
],
"default": "{\n \"type\" : \"MaxRevenueStrategy\"\n}"
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Banner",
"type": "object",
"description": "Banner"
}
]
},
"AddBaseMobileAdUnit": {
"required": [
"applicationId",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
],
"default": "{\n \"type\" : \"MaxRevenueStrategy\"\n}"
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
"AddInterstitialMobileAdUnit": {
"allOf": [
{
"required": [
"applicationId",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
],
"default": "{\n \"type\" : \"MaxRevenueStrategy\"\n}"
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Interstitial ad unit",
"type": "object",
"description": "Interstitial ad unit"
}
]
},
"AddMobileAdUnit": {
"oneOf": [
{
"allOf": [
{
"required": [
"applicationId",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
],
"default": "{\n \"type\" : \"MaxRevenueStrategy\"\n}"
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "App open ad unit",
"type": "object",
"description": "App open ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
],
"default": "{\n \"type\" : \"MaxRevenueStrategy\"\n}"
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Rewarded ad unit",
"required": [
"currencyType",
"currencyValue"
],
"type": "object",
"properties": {
"currencyType": {
"maxLength": 64,
"minLength": 1,
"type": "string",
"description": "In-app currency name"
},
"currencyValue": {
"maximum": 100000000,
"minimum": 0,
"type": "number",
"description": "Reward amount for viewing the ad in the in-app currency"
}
},
"description": "Rewarded ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
],
"default": "{\n \"type\" : \"MaxRevenueStrategy\"\n}"
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Interstitial ad unit",
"type": "object",
"description": "Interstitial ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
],
"default": "{\n \"type\" : \"MaxRevenueStrategy\"\n}"
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Banner",
"type": "object",
"description": "Banner"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
],
"default": "{\n \"type\" : \"MaxRevenueStrategy\"\n}"
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Native ad unit",
"type": "object",
"description": "Native ad unit"
}
]
}
]
},
"AddNativeMobileAdUnit": {
"allOf": [
{
"required": [
"applicationId",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
],
"default": "{\n \"type\" : \"MaxRevenueStrategy\"\n}"
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Native ad unit",
"type": "object",
"description": "Native ad unit"
}
]
},
"AddRewardedMobileAdUnit": {
"allOf": [
{
"required": [
"applicationId",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
],
"default": "{\n \"type\" : \"MaxRevenueStrategy\"\n}"
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Rewarded ad unit",
"required": [
"currencyType",
"currencyValue"
],
"type": "object",
"properties": {
"currencyType": {
"maxLength": 64,
"minLength": 1,
"type": "string",
"description": "In-app currency name"
},
"currencyValue": {
"maximum": 100000000,
"minimum": 0,
"type": "number",
"description": "Reward amount for viewing the ad in the in-app currency"
}
},
"description": "Rewarded ad unit"
}
]
},
"AppOpenMobileAdUnit": {
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "App open ad unit",
"type": "object",
"description": "App open ad unit"
}
]
},
"BannerMobileAdUnit": {
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Banner",
"type": "object",
"description": "Banner"
}
]
},
"BaseMobileAdUnit": {
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
"GetAllMobileAdUnitsResponse": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"oneOf": [
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "App open ad unit",
"type": "object",
"description": "App open ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Rewarded ad unit",
"required": [
"currencyType",
"currencyValue"
],
"type": "object",
"properties": {
"currencyType": {
"maxLength": 64,
"minLength": 1,
"type": "string",
"description": "In-app currency name"
},
"currencyValue": {
"maximum": 100000000,
"minimum": 0,
"type": "number",
"description": "Reward amount for viewing the ad in the in-app currency"
}
},
"description": "Rewarded ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Banner",
"type": "object",
"description": "Banner"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Native ad unit",
"type": "object",
"description": "Native ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Interstitial ad unit",
"type": "object",
"description": "Interstitial ad unit"
}
]
}
]
}
},
"warnings": {
"type": "array",
"description": "List of warnings that occurred when performing an action",
"items": {
"type": "string"
}
}
}
},
"GetMobileAdUnitResponse": {
"type": "object",
"properties": {
"data": {
"oneOf": [
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "App open ad unit",
"type": "object",
"description": "App open ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Rewarded ad unit",
"required": [
"currencyType",
"currencyValue"
],
"type": "object",
"properties": {
"currencyType": {
"maxLength": 64,
"minLength": 1,
"type": "string",
"description": "In-app currency name"
},
"currencyValue": {
"maximum": 100000000,
"minimum": 0,
"type": "number",
"description": "Reward amount for viewing the ad in the in-app currency"
}
},
"description": "Rewarded ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Banner",
"type": "object",
"description": "Banner"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Native ad unit",
"type": "object",
"description": "Native ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Interstitial ad unit",
"type": "object",
"description": "Interstitial ad unit"
}
]
}
]
},
"warnings": {
"type": "array",
"description": "List of warnings that occurred when performing an action",
"items": {
"type": "string"
}
}
}
},
"InterstitialMobileAdUnit": {
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Interstitial ad unit",
"type": "object",
"description": "Interstitial ad unit"
}
]
},
"MaxRevenueStrategy": {
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
"MinCpmVStrategy": {
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
"MinECpmStrategy": {
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
"MobileAdUnit": {
"oneOf": [
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "App open ad unit",
"type": "object",
"description": "App open ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Rewarded ad unit",
"required": [
"currencyType",
"currencyValue"
],
"type": "object",
"properties": {
"currencyType": {
"maxLength": 64,
"minLength": 1,
"type": "string",
"description": "In-app currency name"
},
"currencyValue": {
"maximum": 100000000,
"minimum": 0,
"type": "number",
"description": "Reward amount for viewing the ad in the in-app currency"
}
},
"description": "Rewarded ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Banner",
"type": "object",
"description": "Banner"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Native ad unit",
"type": "object",
"description": "Native ad unit"
}
]
},
{
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Interstitial ad unit",
"type": "object",
"description": "Interstitial ad unit"
}
]
}
]
},
"MobileAdUnitFilter": {
"type": "object",
"properties": {
"appIds": {
"uniqueItems": true,
"type": "array",
"description": "IDs of apps where to search for ad units",
"items": {
"type": "integer",
"format": "int64"
}
},
"status": {
"uniqueItems": true,
"type": "array",
"description": "Statuses of ad units to search",
"items": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"default": [
"ENABLED"
]
}
},
"description": "Mobile ad unit filter parameters",
"example": {
"appIds": [
1001,
1015
],
"status": "ENABLED"
}
},
"NativeMobileAdUnit": {
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Native ad unit",
"type": "object",
"description": "Native ad unit"
}
]
},
"Pageable": {
"type": "object",
"properties": {
"page": {
"minimum": 0,
"type": "integer",
"description": "Page number (zero-based)",
"format": "int32",
"default": 0
},
"size": {
"maximum": 100,
"minimum": 1,
"type": "integer",
"description": "Page size",
"format": "int32",
"default": 20
}
},
"description": "Page-by-page output parameters",
"example": {
"page": 0,
"size": 20
}
},
"RewardedMobileAdUnit": {
"allOf": [
{
"required": [
"applicationId",
"id",
"type"
],
"type": "object",
"properties": {
"applicationId": {
"type": "number",
"description": "App ID"
},
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"createDate": {
"type": "string",
"description": "Unit creation date",
"format": "date-time"
},
"editable": {
"type": "boolean",
"description": "Editability"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"status": {
"title": "Ad unit status",
"type": "string",
"enum": [
"UNKNOWN",
"ENABLED",
"ARCHIVED"
]
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Rewarded ad unit",
"required": [
"currencyType",
"currencyValue"
],
"type": "object",
"properties": {
"currencyType": {
"maxLength": 64,
"minLength": 1,
"type": "string",
"description": "In-app currency name"
},
"currencyValue": {
"maximum": 100000000,
"minimum": 0,
"type": "number",
"description": "Reward amount for viewing the ad in the in-app currency"
}
},
"description": "Rewarded ad unit"
}
]
},
"Strategy": {
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
"UpdateAppOpenMobileAdUnit": {
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "App open ad unit",
"type": "object",
"description": "App open ad unit"
}
]
},
"UpdateBannerMobileAdUnit": {
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Banner",
"type": "object",
"description": "Banner"
}
]
},
"UpdateBaseMobileAdUnit": {
"required": [
"type"
],
"type": "object",
"properties": {
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
"UpdateInterstitialMobileAdUnit": {
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Interstitial ad unit",
"type": "object",
"description": "Interstitial ad unit"
}
]
},
"UpdateMobileAdUnit": {
"oneOf": [
{
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Banner",
"type": "object",
"description": "Banner"
}
]
},
{
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Native ad unit",
"type": "object",
"description": "Native ad unit"
}
]
},
{
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Interstitial ad unit",
"type": "object",
"description": "Interstitial ad unit"
}
]
},
{
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Rewarded ad unit",
"type": "object",
"properties": {
"currencyType": {
"maxLength": 64,
"minLength": 1,
"type": "string",
"description": "In-app currency name"
},
"currencyValue": {
"maximum": 100000000,
"minimum": 0,
"type": "number",
"description": "Reward amount for viewing the ad in the in-app currency"
}
},
"description": "Rewarded ad unit"
}
]
},
{
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "App open ad unit",
"type": "object",
"description": "App open ad unit"
}
]
}
]
},
"UpdateNativeMobileAdUnit": {
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Native ad unit",
"type": "object",
"description": "Native ad unit"
}
]
},
"UpdateRewardedMobileAdUnit": {
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"caption": {
"maxLength": 255,
"minLength": 1,
"type": "string",
"description": "Description"
},
"id": {
"minLength": 7,
"pattern": "R-M-\\d{1,10}-\\d{1,7}",
"type": "string",
"description": "Unit ID"
},
"strategy": {
"description": "Ad traffic management strategy, CPM floors",
"oneOf": [
{
"title": "Maximum revenue",
"required": [
"type"
],
"type": "object",
"description": "Doesn't limit the impression cost",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
}
]
},
{
"title": "Minimum CPMV floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand viewable impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
},
{
"title": "Minimum eCPM floor",
"required": [
"mincpm",
"type"
],
"type": "object",
"description": "The threshold (floor) sets the cost per one thousand impressions",
"allOf": [
{
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Strategy type"
}
},
"description": "Ad traffic management strategy",
"discriminator": {
"propertyName": "type"
}
},
{
"type": "object",
"properties": {
"mincpm": {
"type": "number",
"description": "Floor value"
}
}
}
]
}
]
},
"type": {
"type": "string",
"description": "Type of ad unit or unit action"
}
},
"discriminator": {
"propertyName": "type"
}
},
{
"title": "Rewarded ad unit",
"type": "object",
"properties": {
"currencyType": {
"maxLength": 64,
"minLength": 1,
"type": "string",
"description": "In-app currency name"
},
"currencyValue": {
"maximum": 100000000,
"minimum": 0,
"type": "number",
"description": "Reward amount for viewing the ad in the in-app currency"
}
},
"description": "Rewarded ad unit"
}
]
}
},
"securitySchemes": {
"OAuth": {
"type": "oauth2",
"flows": {
"implicit": {
"authorizationUrl": "https://oauth.yandex.ru/authorize",
"scopes": {
"pi:access-ad-inventory-api": "Yandex Advertising Network (Inventory Management API)"
}
}
}
},
"OAuthViaApiKey": {
"type": "apiKey",
"name": "Authorization",
"in": "header"
}
}
}
}