Manage app mediation instances by retrieving, creating, updating, or deleting LevelPlay ad network instances programmatically via the Instances API v4.
Read time 10 minutesLast updated 4 hours ago
Important
API versions 3 and below are deprecated as of March 2025. Update to the latest version to avoid disruptions.
Use the Instance API to manage instances on the LevelPlay dashboard. This API version supports the following:
Support for CRUD
Changing ad networks' application-level configurations
Adding or removing instances from waterfall groups (Supporting active AB test applications)
Requests are limited to 1 application per call.
Rate limits
The API returns a 429 HTTP status code if a request exceeds 4000 requests in a time period of 30 minutes.
Use this API to create instances for mediated ad sources. This API allows you to create multiple instances with a single API call. Keep in mind that when creating instances by using the API, you are limited to the number of instances the platform allows.Use the "groups" parameter to determine each waterfall group to include/exclude instance.
Instances created without a ‘status' parameter set will be automatically set as ‘active'
Instances created for apps that are not live at the store will be automatically set as ‘inactive'
Application configuration must have the same value for instances with the same ad network
For custom network instance creation, 'networkKey' parameter is required, this can be found on the network documentation
If not sent, regard as ‘all groups'. The recommended best practice is to send groupIds for both ‘A' & ‘B' groups if you're in the midst of an A/B test.
x
[12525]
isLive
Boolean
Making the instance active or inactive. If not sent regard as active
Use this API to update instances. Multiple instances can be updated with a single API call.To remove instance level rate, add the rate parameter with a 'null' value.
A successful response will be sent with HTTP code 200.
Errors
If one of the instances sent in the request is failing, an error array will be sent with HTTP code 400 and will cause the whole request to be rejected.Each error will be followed with an error message.
Example
{
"errorsArray": [
{
"code": ERR-402,
"errorMessage": "The instance name must be unique for the same ad format and network",
"params": {
"instanceName": "abc"
}
}
],
"code": 400
}
API v3 (previous version)
Instance API v3 does not support apps during a live A/B test.
Get Instances
Description
Use this API to retrieve a list of all of your application's instances. The response will include all information from the Applications List API, as well as the following: instance name, instance ID, status, and pricing if relevant (pricing is only available for ironSource network instances)
Use this API to create instances for both ironSource network and mediated ad sources. This API allows you to create multiple instances with a single API call.
Instances created without a 'status' parameter set will be automatically set as 'active'
Instances created for apps that are not live at the store will be automatically set as 'inactive'
For Mediation users - each newly created instance will be included in all of the app's mediation groups.
Each app is limited up to 10 instances per ad unit. To extend this limitation, contact support or contact your Account Manager.
To create bidder networks, contact support or contact your Account Manager.
CPM pricing
General
CPM Pricing allows you the control and flexibility to define expected CPM rates from ironSource's network. Read more here.
CPM pricing is available for specific accounts only. To activate CPM pricing, contact support or contact your Account Manager.
POST platform.ironsrc.com/partners/publisher/instances/v3?
Required Parameters
Name
Type
Description
appKey
String
application Key (as seen on our platform)
provider
String array
adUnit
String array
"rewardedVideo", "interstitial", "banner"
instanceName
String
the newly created instance's name
provider instance level config*
String
Note
Provider instance level config is only mandatory on the creation of mediation a source instances. This parameter naming varies between mediation ad sources.
Optional Parameters
Name
Type
Description
status
String
instance status can be 'active' or 'inactive'
pricing
String array
determine the eCPM to be delivered by ironSource network
rate
Double
instance level rate (if defined)
provider app level configs*
String
Note
Ad source app level configs varies between mediation ad sources.
Use this API to update instance name, status and pricing for ironSource network and mediation ad sources (pricing is only available for ironSource network). Multiple instances can be updated with a single API call.
Max number of update calls is limited to 6 per day.
In order to activate ironSource's non default instances you must first activate ironSource's default instance (instance ID=0).
Updating instance pricing will replace all pricing values on that same instance only.
To update bidder networks, contact support or reach out to your Account Manager.
To remove instance level rate, add the rate parameter with an empty string value (eg "")