Use the Test Mode feature to verify that you have successfully integrated specific ad networks from those that MAX mediates.
If you define a test device and select a network in the Test Mode section of your MAX account, when that device makes a MAX ad request MAX will request the ad from the network you selected with that network’s test mode enabled. The device will also receive detailed device logs.
When you enable test mode, the MAX SDK outputs verbose device logging to iOS Console.
When you turn off Test Mode on your device, ad units will revert to using the configuration listed in the MAX Ad Units page. In addition to using Test Mode in the dashboard, AppLovin recommends that you use Mediation Debugger Test Ads as you quickly test the integration on your devices.
Enable Test Mode
To enable Test Mode, select MAX > Mediation > Manage > Test Mode and click + Add Test Device.
Type the device Name and the “Identifier for Advertisers” (IDFA).
Choose the Test Network you would like to see ads from and click ✔ Save. When the save completes, all MAX apps associated with your account will start receiving test ads from the selected network.
Disable Test Mode
To disable test mode on your device, select MAX > Mediation > Manage > Test Mode. Find your device in the list of MAX Test Devices and, in its row, hover over the green dot in the Status column. A pause icon (⏸️) button will appear next to the dot. Click that button. Then, in the Pause Test Device dialog that appears, click ✔ Yes. Your device will then revert to receiving ads based on the ad unit configuration listed in your MAX Ad Units page.
How to Enable Test Ads in the AppLovin SDK
You can enable test ads for one or more IDFAs programmatically in the AppLovin SDK.
With test ads, AppLovin will not track enabled impressions, clicks, and revenue. Only use such ads to test your app integration.
To enable test ads for a set of IDFAs, pass a list of test device advertising IDs in AppLovin SDK settings. Starting in SDK version 11.11.0, you must set test IDFAs when you create the first SDK instance. The following code snippets show how to do this in Swift and Objective-C:
-
ALSdkSettings *settings = [[ALSdkSettings alloc] init]; settings.testDeviceAdvertisingIdentifiers = @[@"YOUR_IDFA_HERE"]; ALSdk *sdk = [ALSdk sharedWithSettings:settings];
-
let settings = ALSdkSettings() settings.testDeviceAdvertisingIdentifiers = ["YOUR_IDFA_HERE"] let sdk = ALSdk.shared(with: settings)!
Troubleshooting
If you are not able to get test ads after following these steps, you might have an integration issue. Please follow the other steps in “Why am I not seeing any ads?”.