Ad Units IDs Configuration
Chunk #0
**Introduction**
The Ad Unit ID configuration system allows you to centrally manage all MAX Ad Unit IDs across your app by assigning them readable names and linking them to specific ad types and platforms. This ensures easier identification and more efficient setup of ads in your monetisation configuration.
* * *
## **New Ad Unit ID Configuration Section**
Access this section via the **Ads → Ad Unit IDs** menu.

### **List View and Available Filters**

### **Standard Fields for New/Edit View**
- Name
- Availability (Edit view only, inherited from Ads Config)
- Labels
- Notes
#### **Fields Descriptions**
| **Location** | **Name** | **Type** | **Validations** | **Hint** |
| --- | --- | --- | --- | --- |
| Ads → Ad Unit ID | Type | Dropdown (Banner, Interstitial, Rewarded Videos) | Default: Interstitial | Select type to configure ID for a specific area |
| Ads → Ad Unit ID | Platform | Dropdown (iOS, Android) | Default: iOS | - |
| Ads → Ad Unit ID | Mediation | Dropdown (MAX, Google, Meta) | Default: MAX | - |
| Ads → Ad Unit ID | Ad Unit ID | String | Mandatory, Unique | Specify ID to be used |
| Ads → Ad Unit ID | Max Analytics bucket | Integer | Mandatory for Interstitial or Rewarded video. Optional for Banners Type. | Defines which bucket should be used for CPM calculation. Default: None |
* * *
## Using Ad Unit IDs and Ad Slots in Ads Config
Once defined, Ad Unit IDs and Ad slots can be selected in ads configuration.
### **Banner ID Settings**
Configure MAX Banner IDs per platform:
- You must select an Ad Unit ID from the predefined list.

| **Location** | **Name** | **Type** | **Validations** | **Hint** |
| Ads → Ads Config → Tab Banners | MAX iOS Banner ID | Dropdown (Filtered Ad Unit IDs) | Mandatory if enabled | Specify Banner ID for iOS |
| Ads → Ads Config → Tab Banners | MAX Android Banner ID | Dropdown (Filtered Ad Unit IDs) | Mandatory if enabled | Specify Banner ID for Android |
### **Rewarded Video Ad Unit Settings**

| **Location** | **Name** | **Type** | **Validations** |
| Ads → Ads Config → Tab Rewarded Videos | MAX iOS Rewarded Videos ID | Dropdown (Filtered Ad Unit IDs) | Mandatory, Default: None |
| Ads → Ads Config → Tab Rewarded Videos | MAX Android Rewarded Videos ID | Dropdown (Filtered Ad Unit IDs) | Mandatory, Default: None |
### **Interstitial Ad Unit Settings**

| **Location** | **Name** | **Type** | **Validations** |
| Ads → Ads Config → Tab Interstitials | MAX iOS Interstitial ID | Dropdown (Filtered Ad Unit IDs) | Optional, Default: None |
| Ads → Ads Config → Tab Interstitials | MAX Android Interstitial ID | Dropdown (Filtered Ad Unit IDs) | Optional, Default: None |
Setting up Ad Units
Chunk #1
Setting the CPM Floor
**Setting the CPM Floor**
Game Server provides two types of validations for Bidding Floor Type.
- Static
- Formula
**Choosing a Bidding Floor Type**
There are two options for defining the CPM floor:
**A. Static CPM Floor**
- **Definition** : Sends a fixed CPM value to the client, which is forwarded to the mediation system (e.g., Max, Google, or Meta).
- **How to Configure** :
- **Behaviour** : The same CPM value will always be used for bidding.
**B. Formula-Based CPM Floor**
- **Definition** : Dynamically calculates the CPM floor using the following formula:
- If **Median** is selected in the Formula type dropdown field:
_interstitial\_cpm\_floor = Median (most recent **N** CPM values) \* **K** _
- If **Average** is selected in the Formula type dropdown field:
_interstitial\_cpm\_floor = Average (most recent **N** CPM values) \* **K** _
This formula allows you to determine the number of CPMs stored ( **N** ). If the number of CPMs is lower than **X** (Minimum number of events required for calculation), Game Server won’t return anything, or will return a static value as determined by the settings.
**Determining N for Each Ad Unit**
- N represents the number of most recent CPM values retrieved from a bucket for median calculation.
- **How is N Defined?**
- **Handling Fewer Events than N** :
- **Minimum Number of Events:**
- **Behaviour for Insufficient Events (Fewer than X)**:
- **Multiplier K:**
- **Use successful ad requests only:** Enable/Check if you want to use only successful ad requests for calculation.
- **Use static in case of failed requests:** Enable/Check in case you want to send static value instead of formula calculation when a number of latest requests have failed. if static is selected for fallback value and Percentile is enabled, the system will firstly check if it is possible to use the static CPM based on percentiles. If yes, than the value is obtained from there. If no, the system will use the fallback value OR nothing. In case of nothing usually the system sends 0.0 as floor.
- **Number of failed requests:** Specify number of latest failed requests. If this number is reached, static value will be used instead of formula calculation.
For detailed information on how Analytics Buckets work, refer to this [User Guide](https://tripledotstudios.atlassian.net/wiki/x/BIBUAQE).
* * *
# MAX Rewarded Videos Ad Units
This setting allows you to manage and optimise rewarded videos ad units for the MAX ad platform. By configuring these units, you can control the delivery and behaviour of rewarded videos.
To do so, follow the steps below:
1. Navigate to **Ads \> Configuration \> Rewarded Videos** , and enable **MAX rewarded videos ad units** by clicking on the  **[green + sign].**
2. Once enabled, click **[Add].**
3. Fill in the required fields using the information described in the table below. You can add or remove Ad Units by using the buttons **[+Add]** or **[-Remove]**.
There are no limitations regarding the number of Ad Units you can add.
## Max Rewarded Videos Ad Unit Fields
| **Field Name** | **Description** | **Comments** |
| **Max iOS Rewarded videos ID** | AD unit ID configuration that includes the ID for the Ad unit in iOS | - Type: Dropdown with pre-defined options - Default: Empty - Mandatory - At least one symbol must be added |
| | | |
| **Max Android Rewarded videos ID** | AD unit ID configuration that includes the ID for the Ad unit in Android | - Type: Dropdown with pre-defined options - Default: Empty - Mandatory field - At least one symbol must be added |
| | | |
| **Request limit counter** | This field displays the number of number of requests which client will try to make in order to get an Ad from the mediation platform | - Default: Empty - Mandatory field |
| | | |
| **Auto Retry** | Uncheck this box if you don’t want to retry loading ad units in case the first attempt to load the ad unit fails. Please note this is a client-side setting and the full configuration needs to be done on the Client. | - Enabled by default |
| | | |
| **Sequential Fill** | Uncheck this box if you don’t want to enable sequential filling if the first attempt to load the ad unit fails. Please note this is a client-side setting and full configuration needs to be done on the Client. | - Enabled by default |
| | | |
| **Bidding Floor CPM. Bidding Floor Type** | This field determines the CPM floor value to send to MAX for the rewarded video bidding. There are 2 options: - **Static** , where you determine a set value in dollars so that the Client can send it to Max for bidding - **Formula** , where a formula based on the past 50 collected events calculates the bidding floor. The settings are the same that apply to [Setting the CPM Floor](https://tripledotstudios.atlassian.net/wiki/spaces/KB/pages/4304109569/Setting+up+Ad+Units#Setting-the-CPM-Floor). - Percentile, which allows setting CPM floor values based on CPM percentiles. For example, the 80th percentile represents the CPM value below which 80% of impressions fall. Floors can be configured per country or per platform, cohort, and other parameters for the configuration. | - Default: Static - If **Static** is selected, Game Server will display the fields “Fallback CPM Value and Percentile Configuration“ |
| | | |
| **Static CPM Configuration. Fallback CPM Value** | Specify a fallback floor value to be sent to Max for Rewarded Video bidding. | - Type: Float - Default: Empty |
| **Formula Parameters.Formula Type** | Defines the type for calculating the formula. | Type: Dropdown with the following options: - Median - Average - Default: Median |
| **Formula Parameters.Use successful ad requests only** | Enable if you want to use only successful ad requests for calculation. | - Type: Boolean - Default: OFF - Available if type = formula |
| **Formula Parameters.Min ad requests to apply formula** | This field is used to provide minimum number of interstitials which should be taken into account to calculate formula | - Type: Integer - Mandatory if “Formula” is selected in “Bidding floor type” - Default: Empty - Min 1 - Max: 50 - Must be less than the value provided in the setting “Ad requests to apply formula to“ |
| **Formula Parameters.Ad requests to apply formula to** | This field is used to provide maximum number of Rewarded Videos which should be taken into account to calculate formula | - Type: Integer - Mandatory if “Formula is selected in “Bidding floor type” - Default: Empty - Min 1 - Max: 50 |
| **Formula Parameters.Percentage coefficient** | Specify the multiplier to minimise the Bid floor. | - Mandatory if “Formula” is selected in “Bidding floor type” - Min: more than 0 - Max: 2 - Max number of characters after comma = 2 - Incase multiplier results in `max_interstitials.cpm_floor` value with more than 2 characters after comma, GS rounds off the result using math rules. - (e.g. if we have as a result value 1,234 -\> round to 1.23 but if 1.235 -\> round to 1.24) |
| **Formula Parameters.If insufficient ad requests** | Defines the system behaviour when there is insufficient data for calculation. CPM percentiles can be used if enough information is not available for formula calculation. If “Return static value“ is selected, GS will send value from “Static floor CPM“. If “Return nothing“ is selected, GS won’t send any value. | Dropdown with the list of options provided below: - Return fallback value - Return nothing - Default: Return fallback value |
| **Formula Parameters.Use static in case of failed requests** | Enable this in case you want to send static value instead of formula calculation when N latest events have failed. CPM percentiles can be used if enough information is not available for formula calculation. | - Type: Boolean - Default: OFF - Disabled if “Use successful ad requests only” = true |
| **Formula Parameters.Number of failed requests** | Specify a number of latest failed requests. If this number is reached, static value will be used instead of formula calculation. | - Type: Integer - Default: empty - Disabled if “Use static in case of failed requests” = OFF - Mandatory and enabled if “Use static in case of failed requests“ = ON - Min: 1 - Max: 50 |
For information on setting up the CPM Floor, [refer to this information.](https://tripledotstudios.atlassian.net/wiki/spaces/KB/pages/4304109569/Setting+up+Ad+Units#Setting-the-CPM-Floor)
* * *
# **Adding Ad Units to Ad Slots**
While configuring an Ad slot, you need to add Ad units.
- Multiple Ad Units can be added per Ad Slot.
## **Settings for Each Ad Unit**
- **IDs** (Dropdown from Ad Unit IDs based on platform and Ad Slot type).
- **Requests Limit Counter** (Integer, Default: 5).
- **Auto Retry & Sequential Fill** (Available for MAX and META mediation only. Not available for Google).
Refer to the [Ad Slots Ad Unit Fields Table](https://tripledotstudios.atlassian.net/wiki/spaces/KB/pages/4304109569/Setting+up+Ad+Units#Ad-Slots-Ad-Unit-Fields) for more details.
Setting up Ad Units
Chunk #2
**Settings for Each Ad Unit**
- **IDs** (Dropdown from Ad Unit IDs based on platform and Ad Slot type).
- **Requests Limit Counter** (Integer, Default: 5).
- **Auto Retry & Sequential Fill** (Available for MAX and META mediation only. Not available for Google).
Refer to the [Ad Slots Ad Unit Fields Table](https://tripledotstudios.atlassian.net/wiki/spaces/KB/pages/4304109569/Setting+up+Ad+Units#Ad-Slots-Ad-Unit-Fields) for more details.
## **CPM Floor Settings**
- **CPM Floor Type:**

- **Formula** (CPM floor is calculated dynamically). See the [Ad Slots Ad Unit Fields Table](https://tripledotstudios.atlassian.net/wiki/spaces/KB/pages/4304109569/Setting+up+Ad+Units#Ad-Slots-Ad-Unit-Fields) for more details. Additionally, refer to the [Setting the CPM floor](/wiki/spaces/KB/pages/3705274372/Interstitials+Configuration#Setting-the-CPM-Floor) section for details on how the CPM floor is calculated.

## Ad Slots Ad Unit Fields
| **Field** **Description Validations** |
| **iOS Interstitial ID** | Shows Ad Unit ID configs with Platform=iOS and Ad Slot Type = Interstitial | - Type : Dropdown List - Default: Empty - Mandatory if displayed |
| **Android Interstitial ID** | Shows Ad Unit ID configs with Platform=Android and Ad Slot Type = Interstitial | - Type : Dropdown List - Default: Empty - Mandatory if displayed |
| **iOS Rewarded Videos ID** | Shows Ad Unit ID configs with Platform=iOS and Ad Slot Type = Rewarded video | - Type : Dropdown List - Default: Empty - Mandatory if displayed |
| **Android Rewarded Videos ID** | Shows Ad Unit ID configs with Platform=Android and Ad Slot Type = Rewarded video | - Type : Dropdown List - Default: Empty - Mandatory if displayed |
| **Request limit counter** | This counter controls the number of request client will make to get an Ad for specific Ad Unit. | - Type: Integer - Default: 5 - Mandatory |
| **Auto Retry** | Uncheck this box if you don’t want to retry loading ad units in case the first attempt to load the ad unit fails. If Retry is enabled, MAX will attempt the waterfall multiple times for a single Ad\_Request\_Interstitial event. This helps recover from temporary issues like timeouts or connection errors. If all retries fail, MAX returns Ad\_Request\_Fail. If Retry is disabled, MAX runs the waterfall only once and returns Ad\_Request\_Fail immediately if it fails. | - Enabled by default |
| **Sequential Fill** | Uncheck this box if you don’t want to enable sequential filling. Sequential Fill controls whether MAX should cache multiple ads in advance. Enabling it can increase overall fill rate. Please note this is a client-side setting and full configuration needs to be done on the Client. | - Enabled by default |
| **CPM Floor. CPM Floor Type** | Select the type for the CPM Floor. | - Type : Dropdown with options: Static, Formula, Waterfall - Default: Static - Mandatory |
| **Static CPM Configuration. Fallback CPM Value** | Specify a fallback floor value to be sent to the mediation platform for bidding. | - Type: Float - Default: Empty |
| **Static CPM Configuration. Use Percentiles** | Enable to use percentile for CPM floor value | - Type: Boolean - Default: false - If enabled, system displays additional section to configure CPM percentile config |
| **Static CPM Configuration. CPM Configurations** | Select from the list of predefined percentile configurations | - Type: Multi-select dropdown - Default: empty - You can delete any selected config - At least one config should be added - Available only if **Use Percentile = true** - If **Use Percentile** **= false** , setting is hidden - Display priority which is set for each config in the config name in the brackets |
| **Static CPM Configuration.If no matching configuration** | Select the return value if no matching configuration is available | - Type: Dropdown with the list of following values: - Default: Return fallback value - Available only if **Use Percentile = true** - If **Use Percentile** = false, setting is hidden |
| **Static CPM Configuration.If no percentile available** | Select the return value if percentile is not available | - Type: Dropdown with the list of following values: - Default: Return fallback value - Available only if **Use Percentile = true** - If **Use Percentile** = false, setting is hidden |
| **Formula Parameters. Formula Type** | Defines the type for calculating the formula. | Type: Dropdown with the following options: - Median - Average - Default: Median |
| **Formula Parameters.Use successful ad requests only** | Enable if you want to use only successful ad requests for calculation. | - Type: Boolean - Default: OFF - Available if CPM Floor Type = formula |
| **Formula Parameters.Min ad requests to apply formula to** | This field is used to provide minimum number of events with CPM that should be used to calculate CPM value for interstitials or rewarded videos. | - Type: Integer - Mandatory if CPM Floor Type = formula - Default: Empty - Min 1 - Max: 50 - Must be less than the value provided in the setting “Ad requests to apply formula to“ |
| **Formula Parameters.Percentage coefficient** | Specify the multiplier to minimise the Bid floor. | - Type: Float - Mandatory if CPM Floor Type = formula - Min: more than 0 - Max: 2 - Max number of characters after comma = 2 - Incase multiplier results in value with more than 2 characters after comma, GS rounds off the result using math rules. - (e.g. if we have as a result value 1,234 -\> round to 1.23 but if 1.235 -\> round to 1.24) |
| **Formula Parameters.If insufficient ad requests** | Defines the system behaviour when there is insufficient data for calculation. If “Return static value“ is selected, GS will send value from “Static floor CPM or Percentiles“. if percentile is enabled, GS will use percentiles. If percentiles are also insufficient GS will use Fallback value. If “Return nothing“ is selected, GS won’t send any value. | Dropdown with the list of options provided below: - Return fallback value - Return nothing - Default: Return fallback value |
| **Formula Parameters.Use static in case of failed requests** | Enable this in case you want to send static value instead of formula calculation when N latest events have failed. | - Type: Boolean - Default: OFF - Disabled if “Use successful ad requests only” = true |
| **Formula Parameters.Number of failed requests** | Specify a number of latest failed requests. If this number is reached, manually added static value or CPM based on percentiles will be used instead of formula calculation. | - Type: Integer - Default: empty - Disabled if “Use static in case of failed requests” = OFF - Mandatory and enabled if “Use static in case of failed requests“ = ON - Min: 1 - Max: 50 |
- **Waterfall** (CPM changes based on tiers, allowing flexibility).
| **Field Name** | **Description** | **Comments** |
| **Levels. Type** | Select the type of levels for waterfall multiplier type. | Type: Dropdown with the list of following options: - Fixed - Multiplier - Default: Fixed |
| **Levels.Type: Multiplier.CPM Floor** | Specify the CPM Floor Value based on the selected level type. | - Type = Float - Empty by default - Mandatory if Level is added and Level Type = Multiplier - Min: 0.0 |
| **Levels.Type: Fixed.Static CPM Configuration** | | |
| **Static CPM Configuration. Fallback CPM Value** | Specify a fallback floor value to be sent to the mediation platform for bidding. | - Type: Float - Default: Empty |
| **Static CPM Configuration. Use Percentiles** | Enable to use percentile for CPM floor value. Refer to this [user guide](https://tripledotstudios.atlassian.net/wiki/x/GID_-/) for more details. | - Type: Boolean - Default: false - If enabled, system displays additional section to configure CPM percentile config |
| **Static CPM Configuration. CPM Configurations** | Select from the list of predefined percentile configurations | - Type: Multi-select dropdown - Default: empty - You can delete any selected config - At least one config should be added - Available only if **Use Percentile = true** - If **Use Percentile** **= false** , setting is hidden - Display priority which is set for each config in the config name in the brackets |
| **Static CPM Configuration.If no matching configuration** | Select the return value if no matching configuration is available | - Type: Dropdown with the list of following values: - Default: Return fallback value - Available only if **Use Percentile = true** - If **Use Percentile** = false, setting is hidden - If **Return fallback** is selected → the **Fallback CPM value** will be applied. - If **Return nothing** is selected → **no CPM floor** will be used. |
| **Static CPM Configuration.If no percentile available** | Select the return value if percentile is not available | - Type: Dropdown with the list of following values: - Default: Return fallback value - Available only if **Use Percentile = true** - If **Use Percentile** = false, setting is hidden - If **Return fallback** is selected → the **Fallback CPM value** will be applied. - If **Return nothing** is selected → **no CPM floor** will be used. |