Use this method to create new placements, include capping and pacing setup, in your application accountPlacements are created per ad unit types, each placement can be added per 1 ad unit only. The API support creation under the following ad units:Rewarded video
Interstitial
Banner
Placement name must be unique per ad unit type
Multi placements creation in a single POST call is supported
In response, you will receive a placementId. This parameter is not shown in the ironSource platform. You will need to use this parameter for PUT and DELETE methods
Request
Request body parameters
Key
Type
Description
Mandatory
appKey
string
Application key to create placements for
v
placements
array
List of placements to create
v
These are the following placement fields in the ‘placements' array
adUnit
string
ad-unit name: rewardedVideo interstitial banner
v
name
string
placement unique name
v
adDelivery
bolean
1 if placement ad delivery is on, otherwise 0 (default 1)
itemName
string
Reward name (max 30 chars)
v (rewardedVideo only)
rewardAmount
integer
Amount of items to gift for a single ad view (max 2000000000)
v (rewardedVideo only)
capping.enabled
integer
1 to enable capping, otherwise 0
capping.limit
integer
Maximum number of ads delivered per capping interval (max 1000)
capping.interval
string
capping interval: d - days h - hours
pacing.enabled
integer
1 to enable pacinhg, otherwise 0
pacing.minutes
float
Minimum gap in minutes between ad delivery (max 1000)
Request body example
{"appKey":"28cd2e39","placements":[{"adUnit":"rewardedVideo",// rewardedVideo / interstitial / banner"name":"Main_Menu",// unique placement name"itemName":"coin",// the rewarded item name"rewardAmount":25,// amount of rewards to give per ad view"capping":{"enabled":1,// 1 - enable capping, otherwise 0 (default: 1)"cappingLimit":3,// limit of ads per cappingInterval"cappingInterval":"h"// interval type. "h"-hours, "d"-days (default: “d”)}},{"adUnit":"banner","name":"Custom_Pause","pacing":{"enabled":0,// 1 - enable pacing, otherwise 0 (default: 1)"pacingMinutes":3,// pacing gap in minutes}}]}
Response
A success response will have a newly created placement identifier. This parameter is not shown in the ironSource platform and you can retrieve it using the GET method. You will need to use the id when editing/deleting placements.
Response Parameters
Key
Type
Description
Value
Mandatory
appKey
string
An application unique identifier
v
adUnit
string
The name of the ad unit
rewardedVideo interstitial banner
v
name
string
The name of the placement
Up to 30 characters
v
id
string
The placement ID
Response body example
{"appKey":"28cd2e39","placements":[{"adUnit":"rewardedVideo","id":2,// unique id of your placement"name":"Main_Menu"},{"adUnit":"banner","id":4,"name":"Custom_Pause"}]}
Put method
Update existing placements, including capping and pacing in your applications The API supports the following ad units:
Rewarded video
Interstitial
Banner
Default placement ad delivery cannot be toggled off.To enable capping/pacing, the amount field must be provided.