Enable Test Ads

Test mode

You can enable test ads during development, to ensure you always see ads and avoid generating ad impressions during development.

This will activate “test mode” in Google Ad Manager (see further details here).

Test mode is automatically enabled in the Android Emulator and iOS Simulator.

Android:

    if (BuildConfig.DEBUG) {
        FuseSDK.enableTestMode(this@MyActivity, true)
    }

iOS:

    #if DEBUG
        FuseSDK.shared.enableTestMode(true)
    #endif

Example zones

The Fuse SDK provides some built-in example zones that can be used for local testing. These zones will load test ads provided by Google (more info about Google test ads on iOS and on Android)

These example zones are only available in test mode - for a live app you must use the real zones configured for your account.

Zone Code Ad type
example_appopen App open ad
example_adaptive_banner Inline adaptive banner
example_fixed_size_banner Fixed size banner (300x250)
example_interstitial Interstitial ad
example_native Native ad
example_native_video Native ad with video