Description: Use this API to retrieve a list of your assets. The response will include the following: id, titleId, type, orientation, source, duration.Required parameters: NoneMethod: GETEndpoint: https://api.ironsrc.com/advertisers/v2/assets?
Parameters
Field
Mandatory
Data type
Description
type
No
string
Filter by asset type. (image, video, html)
titleId
No
string
Filter assets of a specific title
ids
No
string
ֿFilter by specified asset ids, separated by commas
status
No
string
Filter by status. (approved, denied, pending_approval)
The API returns by default the first 3000 assets.For better performance - we strongly recommend to work with pagination requests in all cases,To do so you should use
resultsBulkSize
parameter - This parameter will limit the amount of the results you get in the response.In order to get the next bulk of results, use
pageNumber
parameter, combined with the
requestId
parameter - which is received in the first response.
Description: Use this API in order to upload and create a new asset for a specific title.Method: POSTContent type: multipart/form-dataEndpoint: https://api.ironsrc.com/advertisers/v2/assets?
Body parameters
Name
Mandatory
Data type
Description
titleId
Yes
Number
The title ID.
type
Yes
String
The type of the asset you wish to upload (image, video)
file
Yes
Blob
The actual image or video file.
name
No
String
Asset name (max 200 characters)
File requirements
Supported image file formats
png, jpg, jpeg, gif
Maximum file size: 2MB
Minimum dimension: 320px
Max dimension: 3,840px
Ratio: From 1:2 to 2:1
Supported video file format
Maximum file size: 100MB
Maximum duration: 60sec
Ratio: From 1:2 to 2:1
Note
Videos longer than 30sec will have limited traffic
Use this API to upload and create your HTML asset file following these instructions:
Step 1 - Upload HTML asset
Description: On this step the asset will be automatically verification to make sure it works well with our ad player. You can use the polling endpoint (step 2) to get the test status.Method: POSTContent type: multipart/form-dataEndpoint: https://api.ironsrc.com/advertisers/v2/assets/html/upload
Body parameters
Field
Mandatory
Data type
Description
file
Yes
Blob
The actual HTML file
titleId
Yes
number
The title ID.
name
No
String
Asset name (max 200 characters)
Response
{"submissionId":'your_submission_id'
}
Duplication is a particular case in which the error message will be:
> _Duplication found - This HTML file already exists - Asset ID: ${existing\_asset\_id}_
Rate limit: 200 requests per hour
submissionId is valid for 2 hours
Step 2 - HTML Asset Polling
Description: use this endpoint to check if the asset passed the automatic verification, if passed, proceed to submit the asset for review (step 3).Content type: application/jsonMethod: GETEndpoint: https://api.ironsrc.com/advertisers/v2/assets/html/polling
Parameters
Field
Mandatory
Data type
Description
submissionId
Yes
string
The Submission ID provided on the upload response.
Response
{"pollingStatus":"Success" / "Pending" / "Failed","validations":{"isReadyCalled":{"status":"Success" / "Pending" / "Failed","error": appears only
if the status = "Failed"},"getAutoVolumeCalled":{"status":"Success" / "Pending" / "Failed","error": appears only
if the status = "Failed"},"audioVolumeChangeListened":{"status":"Success" / "Pending" / "Failed","error": appears only
if the status = "Failed"},"getScreenSizeCalled":{"status":"Success" / "Pending" / "Failed","error": appears only
if the status = "Failed"},"nativeCloseButton":{"status":"Success" / "Pending" / "Failed","error": appears only
if the status = "Failed"}}}