Documentation

Unity Ads Monetization


iOS API reference - Swift

iOS API reference - Objective-C

Unity Ads Monetization


Test your integration

Register your devices used for testing Unity Ads integrations in unpublished apps on the Unity Ads Monetization dashboard to avoid being flagged for fraud.
Read time 1 minuteLast updated 2 days ago

Prior to publishing your project, you must register any devices that you use for testing a Unity Ads integration on the Unity Ads Monetization dashboard to avoid being flagged for fraud. To manage registered test devices across all projects for your Organization, complete the following steps:
  1. Go to the Monetization menu, then select Settings > Test devices.
  2. Select the app you want to create a test device for.
  3. Select Create test device to register a new Android or iOS test device, then enter the device platform, device name, and advertising ID.
  4. Edit the Test mode field, enable Override client test mode, then select Force test mode ON for all devices to use test ads for all devices.
After enabling test mode in the Unity Monetization dashboard, enable the
with(testMode: true)
flag in
UADSInitializationConfigurationBuilder
, which is the most direct way to get test ads during development.
Important
Registering a test device by advertising ID requires ATT permission on apps using iOS 14+. Refer to the iOS14 technical integration guide for details.