Getting a list of mobile ad units
Request
GET
https://partner.yandex.ru/api/mobile/adunit
Partner API
Query parameters
|
Name |
Description |
|
filter |
Type: MobileAdUnitFilter Mobile ad unit filter parameters |
|
pageable |
Type: Pageable Page-by-page output parameters |
MobileAdUnitFilter
Mobile ad unit filter parameters
|
Name |
Description |
|
appIds |
Type: integer<int64>[] IDs of apps where to search for ad units Unique items |
|
status |
Type: AdUnitStatus[] Statuses of ad units to search Enum: Default: Unique items |
Pageable
Page-by-page output parameters
|
Name |
Description |
|
page |
Type: integer<int32> Page number (zero-based) Default: Min value: |
|
size |
Type: integer<int32> Page size Default: Min value: Max value: |
AdUnitStatus
|
Type |
Description |
|
Enum: |
Responses
200 OK
OK
Body
application/json
{
"data": [
{
"applicationId": 0,
"caption": "string",
"createDate": "2022-12-29T18:02:01Z",
"editable": false,
"id": "string",
"status": "UNKNOWN",
"strategy": {
"type": "string"
},
"type": "string"
},
{
"applicationId": 0,
"caption": "string",
"createDate": "2022-12-29T18:02:01Z",
"editable": false,
"id": "string",
"status": "UNKNOWN",
"strategy": {
"type": "string"
},
"type": "string",
"currencyType": "string",
"currencyValue": 0
},
{
"applicationId": 0,
"caption": "string",
"createDate": "2022-12-29T18:02:01Z",
"editable": false,
"id": "string",
"status": "UNKNOWN",
"strategy": {
"type": "string"
},
"type": "string"
},
{
"applicationId": 0,
"caption": "string",
"createDate": "2022-12-29T18:02:01Z",
"editable": false,
"id": "string",
"status": "UNKNOWN",
"strategy": {
"type": "string"
},
"type": "string"
},
{
"applicationId": 0,
"caption": "string",
"createDate": "2022-12-29T18:02:01Z",
"editable": false,
"id": "string",
"status": "UNKNOWN",
"strategy": {
"type": "string"
},
"type": "string"
}
],
"warnings": [
"string"
]
}
|
Name |
Description |
|
data |
Type: (AppOpenMobileAdUnit or RewardedMobileAdUnit or BannerMobileAdUnit or NativeMobileAdUnit or InterstitialMobileAdUnit)[] |
|
warnings |
Type: string[] List of warnings that occurred when performing an action |
AppOpenMobileAdUnit
|
Name |
Description |
|
applicationId* |
Type: number App ID |
|
id* |
Type: string Unit ID Min length: Pattern: |
|
type* |
Type: string Type of ad unit or unit action |
|
caption |
Type: string Description Min length: Max length: |
|
createDate |
Type: string<date-time> Unit creation date |
|
editable |
Type: boolean Editability |
|
status |
Type: AdUnitStatus Enum: |
|
strategy |
Type: MaxRevenueStrategy or MinCpmVStrategy or MinECpmStrategy Ad traffic management strategy, CPM floors |
RewardedMobileAdUnit
|
Name |
Description |
|
applicationId* |
Type: number App ID |
|
currencyType* |
Type: string In-app currency name Min length: Max length: |
|
currencyValue* |
Type: number Reward amount for viewing the ad in the in-app currency Min value: Max value: |
|
id* |
Type: string Unit ID Min length: Pattern: |
|
type* |
Type: string Type of ad unit or unit action |
|
caption |
Type: string Description Min length: Max length: |
|
createDate |
Type: string<date-time> Unit creation date |
|
editable |
Type: boolean Editability |
|
status |
Type: AdUnitStatus Enum: |
|
strategy |
Type: MaxRevenueStrategy or MinCpmVStrategy or MinECpmStrategy Ad traffic management strategy, CPM floors |
BannerMobileAdUnit
|
Name |
Description |
|
applicationId* |
Type: number App ID |
|
id* |
Type: string Unit ID Min length: Pattern: |
|
type* |
Type: string Type of ad unit or unit action |
|
caption |
Type: string Description Min length: Max length: |
|
createDate |
Type: string<date-time> Unit creation date |
|
editable |
Type: boolean Editability |
|
status |
Type: AdUnitStatus Enum: |
|
strategy |
Type: MaxRevenueStrategy or MinCpmVStrategy or MinECpmStrategy Ad traffic management strategy, CPM floors |
NativeMobileAdUnit
|
Name |
Description |
|
applicationId* |
Type: number App ID |
|
id* |
Type: string Unit ID Min length: Pattern: |
|
type* |
Type: string Type of ad unit or unit action |
|
caption |
Type: string Description Min length: Max length: |
|
createDate |
Type: string<date-time> Unit creation date |
|
editable |
Type: boolean Editability |
|
status |
Type: AdUnitStatus Enum: |
|
strategy |
Type: MaxRevenueStrategy or MinCpmVStrategy or MinECpmStrategy Ad traffic management strategy, CPM floors |
InterstitialMobileAdUnit
|
Name |
Description |
|
applicationId* |
Type: number App ID |
|
id* |
Type: string Unit ID Min length: Pattern: |
|
type* |
Type: string Type of ad unit or unit action |
|
caption |
Type: string Description Min length: Max length: |
|
createDate |
Type: string<date-time> Unit creation date |
|
editable |
Type: boolean Editability |
|
status |
Type: AdUnitStatus Enum: |
|
strategy |
Type: MaxRevenueStrategy or MinCpmVStrategy or MinECpmStrategy Ad traffic management strategy, CPM floors |
MaxRevenueStrategy
Doesn't limit the impression cost
|
Name |
Description |
|
type* |
Type: string Strategy type |
MinCpmVStrategy
The threshold (floor) sets the cost per one thousand viewable impressions
|
Name |
Description |
|
mincpm* |
Type: number Floor value |
|
type* |
Type: string Strategy type |
MinECpmStrategy
The threshold (floor) sets the cost per one thousand impressions
|
Name |
Description |
|
mincpm* |
Type: number Floor value |
|
type* |
Type: string Strategy type |
Strategy
Ad traffic management strategy
|
Name |
Description |
|
type* |
Type: string Strategy type |
No longer supported, please use an alternative and newer version.