Testing
After adding a new app to Appodeal and integrating SDK, we recommend testing your app. Here are the tips for successful testing.
Integration Review
Step 1: Prepare Settings On Appodeal Side
Check Mediation Settings
Go to Application Settings → Mediation Settings → Line Items.
Choose the ad type you are interested in and check the network connection.
In the Line Items section, you can see the rules for networks automatically connecting. Once you reach all the requirements, networks will be connected automatically using the Appodeal default account. Example:
For new applications, a few networks will be connected by default if the Appodeal server receives a request for the ad type.
If you see “This network will be activated by ad request.” try to request real ads to activate this network using the Appodeal default account.
Make sure you have at least 2-3 enabled networks. If the automatic connection requirements are way too high for your application, you can link a personal account using Networks Setup to have more networks connected.
Make sure that all line items are enabled for the connected networks:
Check Priorities (Waterfall Configuration)
Go to Application settings → Mediation Settings → Priorities, and choose the ad type.
By default, there is only a default priority configuration for the waterfall, where all ad units from connected networks are placed.
Make sure the line items have been added to your current configuration.
If they haven’t, add them in the configuration by drag and drop the ad units from the Unused Line Items list on the left to Automatic Priority or use the "Move all unused line items here" button.
Step 2: Test Your SDK Integration
Check SDK Integration With Test Ads.
Test mode ads have a 100% fill rate, they are loaded almost immediately comparing real ads, which take some time to be loaded (0-30 seconds depends on the ad type).
- Enable test mode.
- Enable SDK logging
- Make sure that all necessary adapters have been integrated into the app.
- Run the app and check all placements where you added ads. Make sure that the ads are loaded and shown successfully.
- Open the logs tab and check Appodeal SDK logs. For more information look through the SDK logging.
Requests for test ads are not counted as real requests. Meanwhile, Appodeal requires at least one real request to activate primary ad networks for each ad type.
Check SDK Integration With Real Ads
We recommend testing apps using test mode to prevent invalid activity on real ads. However, it's necessary to make sure SDK integration is correct and all networks are ready to use before publishing.
- Disable test mode by commenting out the method you used to enable it.
- Check that the logging of Appodeal SDK is enabled.
- Make sure that all necessary adapters for the networks you plan to use were integrated.
- Open your application and initialize SDK to make a request to activate the ad networks. You can see all the activity of our SDK in the logs by the "Appodeal" tag.
- When the networks’ set up is finished, run the app again, and open the logs console. Make sure there are no errors in the logs. Use the SDK logging to analyze Appodeal logs. Go through all placements where you added ads. Make sure that the ads are loaded and shown successfully with no exceptions and errors.
If your app is not published in one of the supported app stores (Google Play, App Store, and Amazon), then the number of impressions of live ads is limited to two thousand.
Useful SDK Methods
Enable Test Mode
Using test mode allows you to get our test ad creatives with 100% fill rate.
Appodeal.SetTesting(true);
Should be called before the SDK initialization.
Enable Logging
To enable debug logging, use the code below:
Appodeal.SetLogLevel(AppodealLogLevel.Debug);
Should be called before the SDK initialization.
"Appodeal"
tag.
Available parameters:
AppodealLogLevel.None
- logs off;AppodealLogLevel.Debug
- debug messages;AppodealLogLevel.Verbose
- all SDK and ad network messages.
Disable Networks
To disable the networks you don’t want to get ads from, use the following method:
Appodeal.DisableNetwork((string)network);
Should be called before the SDK initialization.
Use constants from AppodealAds.Unity.Api.AppodealNetworks to choose necessary network.
Disable Networks For Specific Ad Types
To disable networks for the specific ad formats use the following method:
Appodeal.DisableNetwork((string)network, adTypes);
Should be called before the SDK initialization.
Test Third-Party Networks Adapters Integration
To check integration of the third-party networks, you need to start a test screen by calling the following method. It is currently supported only for the Android:
Appodeal.ShowTestScreen();