Country group API

The Country group API allows you to configure your campaign country groups, set their budget, target different countries within each country group and set bid and optimizer goal for each country.

Authentication Type: Bearer API Authentication

Get campaign Country groups

Use this API to retrieve a list of all of your country configurations per campaign.

Method: GET

Request Example URL: https://api.ironsrc.com/advertisers/v4/countryGroup/:campaignId

Required parameters: campaignId

Response example:

{
    "campaignId": 8405744,
    "countryGroups": [
        {
            "id": 16854,
            "name": "12345",
            "budget": 700,
            "countries": [
                {
                    "country": "AT",
                    "bid": 6,
                    "setupGoal": "default"
                },
                {
                    "country": "AU",
                    "bid": "default",
                    "setupGoal": "default"
                },
                {
                    "country": "CA",
                    "bid": "default",
                    "setupGoal": "default"
                },
                {
                    "country": "CH",
                    "bid": "default",
                    "setupGoal": "default"
                },
                {
                    "country": "CN",
                    "bid": "default",
                    "setupGoal": "default"
                },
                {
                    "country": "DE",
                    "bid": "default",
                    "setupGoal": "default"
                },
                {
                    "country": "DK",
                    "bid": "default",
                    "setupGoal": "default"
                },
                {
                    "country": "FR",
                    "bid": "default",
                    "setupGoal": "default"
                },
                {
                    "country": "GB",
                    "bid": "default",
                    "setupGoal": "default"
                },
                {
                    "country": "IL",
                    "bid": 11,
                    "setupGoal": 4
                },
                {
                    "country": "JP",
                    "bid": "default",
                    "setupGoal": "default"
                },
                {
                    "country": "NO",
                    "bid": "default",
                    "setupGoal": "default"
                },
                {
                    "country": "NZ",
                    "bid": "default",
                    "setupGoal": "default"
                },
                {
                    "country": "SE",
                    "bid": "default",
                    "setupGoal": "default"
                },
                {
                    "country": "US",
                    "bid": 7,
                    "setupGoal": 3
                }
            ]
        }
    ]
}
  • Light theme
  • Dark theme
  • Copy to clipboard

Note:

If the campaign budget type is set as “Shared,” meaning the budget is shared across all country groups, the country group response will not include “Budget.”

If the campaign budget type is set as “By country,” meaning the budget is managed per country group, the country group response will include “Budget.”

If the budget type is by country, and there is no budget set for the country group, the returned value will be “unlimited.”

Get Country group Setup

Use this API to retrieve a specific Country group configuration for a campaign.

Required Parameters: Campaign Id

Method: GET

Request Example URL: https://api.ironsrc.com/advertisers/v4/countryGroup/:campaignId /:countryGroupId

Required parameters: campaignId, countryGroupId

Response example:

[
    {
        "campaignId": 16854,
        "name": "12345",
        "budget": 700,
        "countries": [
            {
                "country": "AT",
                "bid": 6,
                "setupGoal": "default"
            },
            {
                "country": "AU",
                "bid": "default",
                "setupGoal": "default"
            },
            {
                "country": "CA",
                "bid": "default",
                "setupGoal": "default"
            },
            {
                "country": "CH",
                "bid": "default",
                "setupGoal": "default"
            },
            {
                "country": "CN",
                "bid": "default",
                "setupGoal": "default"
            },
            {
                "country": "DE",
                "bid": "default",
                "setupGoal": "default"
            },
            {
                "country": "DK",
                "bid": "default",
                "setupGoal": "default"
            },
            {
                "country": "FR",
                "bid": "default",
                "setupGoal": "default"
            },
            {
                "country": "GB",
                "bid": "default",
                "setupGoal": "default"
            },
            {
                "country": "IL",
                "bid": 11,
                "setupGoal": 4
            },
            {
                "country": "JP",
                "bid": "default",
                "setupGoal": "default"
            },
            {
                "country": "NO",
                "bid": "default",
                "setupGoal": "default"
            },
            {
                "country": "NZ",
                "bid": "default",
                "setupGoal": "default"
            },
            {
                "country": "SE",
                "bid": "default",
                "setupGoal": "default"
            },
            {
                "country": "US",
                "bid": 7,
                "setupGoal": 3
            }
        ]
    }
]
  • Light theme
  • Dark theme
  • Copy to clipboard

Create Country group

Use this API to create a Country group.

Method: POST

Request Example URL: https://api.ironsrc.com/advertisers/v4/countryGroup/:campaignId

Required parameters: campaignId

Body Parameters:

Name Required Data type Description
name Yes String Name for country group
dailyBudget Yes, if campaign budget is by country number | ‘unlimited’ Daily budget for country group
countries Yes array <{country, bid, setupGoal}>

Countries values for country group

See Country Properties table below

Country Properties:

Name Required Data type Description
country yes string (only valid country name) country code (2 letters representing the country)
bid yes number | “default” the bid for the specific country. min: 0.001, max number after decimals : 3
setupGoal yes, if campaign is optimized number | “default” the setup goal for a specific country.
for ROAS campaigns:
min : 0.1
max numbers after decimal point: 1
for TCPA campaigns:
min : 0.1
max : 1000
max numbers after decimal point: 2

Full request example:

{
  "name": "name1377",
  "dailyBudget" :  "unlimited",
  "countries": [
    {"country": "AT", "bid": 8, "setupGoal" : 12}
  ]
}
  • Light theme
  • Dark theme
  • Copy to clipboard

Response example: 

{
    "id": 382491
}
  • Light theme
  • Dark theme
  • Copy to clipboard

Update Country group

Use this API to update a specific Country groups configuration.

Authentication Type: Bearer

Method: PUT

Request Example URL: https://api.ironsrc.com/advertisers/v4/countryGroup/:campaignId/:countryGroupId

Required parameters: campaignId, countryGroupId

Body Parameters: 

Name Required Data type Description
name No String Name for country group
dailyBudget no number | ‘unlimited’ Daily budget for country group
countries no array <{country, bid, setupGoal}>

countries values for country group

See Country Properties table below

Country Properties:

Name Required Data type Description
country yes string (only valid country name) Country code (2 letters representing the country)
bid yes number | “default” The bid for the specific country. min: 0.001, max number after decimals : 3
setupGoal yes, if campaign is optimized number | “default”

The setup goal for a specific country.

for ROAS campaigns:

min : 0.1

max numbers after decimal point: 1

for TCPA campaigns:

min : 0.1

max : 1000

max numbers after decimal point: 2

Full request example:

{
  "countries": [
    {"country": "AT", "bid": "default", "setupGoal" : 12}
  ]
}
  • Light theme
  • Dark theme
  • Copy to clipboard

Response example:

{
    "success": true
}
  • Light theme
  • Dark theme
  • Copy to clipboard

Delete Country group

Use this API to delete a specific Country group.

Method: DELETE

Request Example URL: https://api.ironsrc.com/advertisers/v4/countryGroup/:campaignId/:countryGroupId

Required parameters: campaignId, countryGroupId

Response example:

{
    "success": true
}
  • Light theme
  • Dark theme
  • Copy to clipboard

Delete countries from Country group

Use this API to delete countries from a specific Country group.

Authentication Type: Bearer

Method: DELETE

Request Example URL: https://api.ironsrc.com/advertisers/v4/countryGroup/:campaignId/:countryGroupId/countries

Required parameters: campaignId, countryGroupId

Body Parameters:

Name Required Data type Description
remove yes array <string> an array of countries you want to remove from the Country group

Full request example:

{
  "remove": ["GR", "EG", "QA"]
}
  • Light theme
  • Dark theme
  • Copy to clipboard

Response example:

{
    "success": true
}
  • Light theme
  • Dark theme
  • Copy to clipboard

Get default bid and setup goal

Use this API in order to get the default values for country groups

Method: Get

Request Example URL: https://api.ironsrc.com/advertisers/v4/countryGroup/:campaignId/default

Required parameters: campaignId

Full response example:

{
    "setupGoal" : 4,
    "bid" : 2
}
  • Light theme
  • Dark theme
  • Copy to clipboard

Update default bid and setup goal

Use this API to update default bids and goals for your campaigns.

Method: PUT

Request Example URL: https://api.ironsrc.com/advertisers/v4/countryGroup/:campaignId/default

Required parameters: campaignId

Body Parameters:

Name Required Data type Description
setupGoal No number the default setupGoal
bid No number the default bid

Full request example:

{
    "setupGoal" : 4,
    "bid" : 2
}
  • Light theme
  • Dark theme
  • Copy to clipboard

Response example:

{
    "success": true
}
  • Light theme
  • Dark theme
  • Copy to clipboard