Grow your game ironSource Ads ironSource Ads monetization ironSource Ads Instances API Manage and configure your ironSource ad instances programmatically using the Instances API for greater flexibility and automation.
Read time 5 minutes
Last updated 4 hours ago Use this API to manage your instances for the ironSource Ads network on external mediations.
The API supports the following actions: Get, Create, Update, and Delete.
Requests are limited to one application per call.
Note
Bidding instances are supported on GET method only.
Rate limits
The API returns a 429 HTTP status code if a request exceeds 8000 requests in a time period of 30 minutes.
Maintenance mode
If the API is under maintenance, it will return 503 HTTP status code with an error message.
Authentication type
Bearer API authentication
GET
Description
Get a list of your application's ironSource traditional instances.
Method
GET
https://platform.ironsrc.com/ads/instances/v1
Request parameters
Name
Type
Description
Example
appKey String application key (as seen on the platform) 142401ac1
Request example URL
https://platform.ironsrc.com/ads/instances/v1/142401ac1/
Response parameters
Name
Description
Example
Unique instance ID generated by ironSource Ads 2432228 The instance name isAndroid RV rewardedVideo, interstitial, banner, or native banner Boolean value if the instance is live or not true the instance a bidder instance (true or false) true Optional - Boolean value if the instance has optimized pricing false Campaigns are delivering to your app but not generating revenue false Optional - the value of the global CPM pricing 1.3 Optional - list of countries and their eCPM value (see below)
These are the following countries pricing fields in the array
Country code which is defined by a 2 letter country code, as per ISO 3166-1 Alpha-2 US The eCPM value for the specific country 100
Response example
[
{
"instanceId" : 0 ,
"instanceName" : "Default" ,
"adUnit" : "rewardedVideo" ,
"isLive" : false ,
"isOptimized" : true ,
"isInTestMode" : false
} ,
{
"instanceId" : 123456
"instanceName" : "instance1" ,
"adUnit" : "rewardedVideo" ,
"isLive" : true ,
"isOptimized" : false ,
"isInTestMode" : false ,
"globalPricing" : 10 ,
"countriesPricing" : [
{
"country" : "US" ,
"eCPM" : 20
} ,
{
"country" : "CN" ,
"eCPM" : 20
} , {
"country" : "AU" ,
"eCPM" : 30
}
]
}
]
CREATE
Description
Use this API to create traditional ironSource instances You can create multiple instances with a single API call.
This API allows you to create multiple instances with a single API call.
The instance Id value is reachable using Get call to this API
Method
POST
https://platform.ironsrc.com/ads/instances/v1
Request parameters
Name
Type
Description
Example
String application key (as seen on the platform) 142401ac1
Request example URL
https://platform.ironsrc.com/ads/instances/v1/142401ac1/
Supported parameters
Name
Type
Description
Mandatory parameter
Default value
Example
String The newly created instance name, Length should be between 1 to 32 characters. ✓ - instance 1
String “rewardedVideo”, “interstitial”, “banner” ✓ - rewardedVideo
Boolean Indicates if the instance is live or not ✓ - true
Boolean Indicates whether the instance is optimized or not X true false
Number Setting a global CPM value for the instance x - 15
Array An array of countries and their CPM value (see below) x -
These are the following countries pricing fields in the ‘countriesPricing’ array
String ✓ - AU
Number The eCPM value for the related country ✓ - 2.4
Request example
[
{
"instanceName" : "instance1" ,
"adUnit" : "rewardedVideo" ,
"isLive" : false
} ,
{
"instanceName" : "instance2" ,
"adUnit" : "interstitial" ,
"isLive" : true ,
"isOptimized" : false ,
"globalPricing" : 10 ,
"countriesPricing" : [
{
"country" : "US" ,
"eCPM" : 20
} ,
{
"country" : "CN" ,
"eCPM" : 20
} , {
"country" : "AU" ,
"eCPM" : 30
}
]
}
]
Success
A successful response will be sent with HTTP code 200.
UPDATE
Description
Use this API to update ironSource instances
Multiple instances can be updated with a single API call
To remove the globalPricing, simply enter into the field parameter To remove the countriesPricing, simply add the field parameter with value.
Method
PUT
https://platform.ironsrc.com/ads/instances/v1
Request parameters
Name
Type
Description
Example
String application key (as seen on the platform) 142401ac1
Request example URL
https://platform.ironsrc.com/ads/instances/v1/142401ac1/
Supported parameters
Name
Type
Description
Mandatory parameter
Default value
Example
Number instance ID as sent in the GET request ✓ - 12345 String rewardedVideo/interstitial/banner ✓ - banner String The newly updated instance name. Length should be in range 1 to 32. x - updatedInstance Boolean Indication rather the instance is live or not x - true Boolean Indication rather the instance pricing is optimized x - true Number updating global CPM value for the instance, send null to reset x - 10 Array List of countries pricing to update - send empty array to reset (see below) x -
These are the following countries pricing fields in the array
string ✓ - AU Number The eCPM value for the related country ✓ - 2.5
Request example
[
{
"instanceId" : 0 ,
"adUnit" : "rewardedVideo" ,
"instanceName" : "instance1_update" ,
"isLive" : true
} ,
{
"instanceId" : 12345
"instanceName" : "instance2_update" ,
"adUnit" : "interstitial" ,
"isLive" : false ,
"globalPricing" : 100 ,
"countriesPricing" : [ ]
}
]
Success
A successful response will be sent with HTTP code 200.
DELETE
Description
Use this API to delete ironSource instances.
Multiple instances can be deleted with a single API call
The default instances cannot be deleted
Deleted instances cannot be restored
Method
DELETE
https://platform.ironsrc.com/ads/instances/v1
Request parameters
Name
Type
Description
Example
String application key (as seen on the platform) 142401ac1
Request example URL
https://platform.ironsrc.com/ads/instances/v1/142401ac1/
Supported parameters
Name
Type
Description
Mandatory parameter
Default value
Example
Number Instance IDs as sent in the GET request ✓ - 12473
Request body example
[
{
"instanceId" : 1458
} ,
{
"instanceId" : 123654
} ,
]
Success
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-3201" ,
"errorMessage" : "Instance name is required" ,
"params" : {
"[0].instancename" : ""
}
} ,
{
"code" : "ERR-3328" ,
"errorMessage" : "countriesPricing country is invalid" ,
"params" : {
"[0].countriesPricing[0].country" : ""
}
}
] ,
"code" : 400
}