Me
Provide the documented validation rules/messages when saving Ads configuration.
Enki
I'll provide a comprehensive overview of the validation rules for saving Ads configuration based on the documentation.
**Source:** [Configuring Ads in Game Server](https://tripledotstudios.atlassian.net/wiki/spaces/KB/pages/2765029415)
## Validation Rules for Ads Configuration
### General Validation Requirements
1. **Override Creation**
- At least one field and one rule must be enabled in the override
- Override must have a name, status, priority, and availability
### Field-Specific Validation Rules
#### Bidding and CPM Settings
- **Bidding Floor CPM**
- Type: Float
- Default: Empty
- Minimum value: 0.01
- Maximum two decimal places allowed
#### Interstitial Settings
- **Pause Duration**
- Type: Float
- Both Min and Max can be empty by default
- **Number of seconds before "X" button**
- Type: Integer
- Mandatory
- Minimum value: 1
- **Maximum TDS ads per session**
- Type: Integer
- Mandatory
- Minimum value: 0
#### Network Ranking Multiplier
- **Ranking Multiplier**
- Type: Float
- Mandatory if section is added
- Minimum value: 0.0
- Default: Empty
#### Newcomers CPM Floor Restriction
- **Initial Starting CPM Floor**
- Type: Float
- Mandatory
- Default: 1.0
- Minimum value: > 0
- **Change Type**
- Dropdown options: Static, Multiplier
- Default: Static
- **Reduction Value**
- Type: Float
- Mandatory
- Default: Empty
- Validation depends on Change Type
- **Applies for First N Ad_Checks**
- Type: Integer
- Mandatory
- Minimum value: 1
#### Banner Settings
- **Enable Banners**
- Type: Boolean
- Can be enabled for portrait and landscape modes
- **Banner Position**
- Type: Dropdown
- Default: Bottom
#### Waterfall Settings
- **Ad Request Refresh Period**
- Type: Integer
- Default: 30 seconds
- **Increment Refresh Period**
- Type: Integer
- Default: 5
- Maximum value: 90 seconds
### Ad Unit ID Configuration Validations
#### Standard Fields
- **Type**
- Dropdown: Banner, Interstitial, Rewarded Videos
- Default: Interstitial
- **Platform**
- Dropdown: iOS, Android
- Default: iOS
- **Mediation**
- Dropdown: MAX, Google, Meta
- Default: MAX
- **Ad Unit ID**
- Type: String
- Mandatory
- Must be unique
- **Max Analytics Bucket**
- Type: Integer
- Mandatory for Interstitial/Rewarded Video
- Optional for Banners
- Default: None

### Important Notes
- Validation rules ensure data integrity and proper configuration of ad settings
- Some fields have mandatory requirements to prevent misconfiguration
- Default values are provided for most settings to simplify configuration
### Recommended Best Practices
1. Always provide mandatory fields
2. Use realistic and tested values
3. Understand the impact of each setting on ad performance
4. Regularly review and update ad configurations