Bidding API v4

Bidding API allows you to manage campaign bids as well as bids for specific countries and applications. Each request gets or updates bids for a single campaign. A single campaign can support up to 350,000 bids.

Bid Logic

  • The default campaign bid will take place when no specific Country or Country-Application bid was set.
  • Each bid will be taken from the lowest level it was set on, alternatively, if there was no bid set on a specific level the bid will be taken from the level above in the hierarchy (campaign default -> Country -> Application).
  • Bids can be set with a maximum of 3 decimal points.
  • The minimum bid is $0.001.

Authentication

Bearer API authentication

Get Bids

Description: Get a list of bids for a single campaign.

Method: Get

Endpoint: https://api.ironsrc.com/advertisers/v4/multibid?

Parameters

Name Mandatory Data type Description
campaignId Yes Integer
requestId No String Used for paginated requests.
resultsBulkSize No Integer The maximum number of records to return in the response is 20,000.
The default is 10000
pageNumber No Integer Used for paginated requests.

Request example
Get   https://api.ironsrc.com/advertisers/v4/multibid?campaignId=123456

Response example

{
    "bids": [
  {
            "bid": 0.1
        },
        {
            "country": "US",
            "bid": 0.25
        },
        {
            "country": "US",
            "applicationId": 2222,
            "bid": 0.18
        },       
        {
            "country": "CA",
            "applicationId": 1212,
            "bid": 0.35
        }
    ]
   "totalResultsCount": 30043,
   "requestId": "MjU5NTY1Li41LjM1MDgwOA=="
}
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.

Insert/Update Bids

Description: Apply the default campaign bid and/or a list of bids per country and application for a single campaign.

Update bid logic

  • Define the Default bid by applying only the bid value 
  • Define Country bid by applying both country and bid values
  • Define Country-Application bid by applying both country and application values 

Method: PUT

Endpoint: https://api.ironsrc.com/advertisers/v4/multibid?

Body Parameters

Name Mandatory Data type Description
campaignId Yes Integer
country No String ISO 3166 2-letter country code (e.g. GB)
applicationId No integer
bid Yes Decimal You can insert/update up to 10000 bids per request

Request example

body:

{
    "campaignId": 123456,
    "bids": [
  	  {
            "bid": 0.5
        },
        {
            "country": "AU",
            "bid": 0.8
        },
        {
            "country": "AU",
            "applicationId": 3333,
            "bid": 1.5
        },
        {
            "country": "AU",
            "applicationId": 1234,
            "bid": 2
        }
    ]
}

The campaign default bid is $0.5.
For all application in AU the bid will be $0.8, except for appId 3333 that will be $1.5, and appId 1234 that it will be $2.

Delete Bids

Description: Delete a list of bids per country or per country-application.

Deleting Country bid will set the country bid to be as the campaign default bid, and will not have an effect on Country-Application bids.

You can delete up to 10000 bids per request

Method: DELETE

Endpoint:https://api.ironsrc.com/advertisers/v4/multibid?

Body Parameters

Name Mandatory Data type Description
campaignId Yes Integer
country Yes String ISO 3166 2-letter country code (e.g. GB)
applicationId No integer

Request example

body:

{
    "campaignId": 123456,
    "bids": [
        {
            "country": "AU"
        },
        {
            "country": "AU",
            "applicationId": 1234
        }
    ]
}

Changes from V2

Default campaign bid – allowing to get and update the default campaign bid

Pagination – improved pagination control

Old documentation