Skip to main content

Overview

Interstitial ads are ads that cover the entire app screen. They are suitable for natural transition points in the app, such as level transitions in games or content page transitions.

Features

  • Immersive ads covering the full screen
  • Maintained until user explicitly closes
  • Support for image and video ads
  • High visual attention
Use test unit ID in development: PUBLIC_TEST_UNIT_ID_INTERSTITIAL

Implementation Methods

Adrop React Native SDK provides two ways to implement interstitial ads:
  1. Class Method - Direct use of AdropInterstitialAd class
  2. Hook Method - Using useAdropInterstitialAd Hook (Recommended)

AdropInterstitialAd Class

Constructor

Create an AdropInterstitialAd instance.
string
required
Ad unit ID (issued from console)

Properties

boolean
Returns whether the ad is loaded.
string
Returns the ad unit ID.
string
Returns the creative ID of the currently loaded ad.
string
Returns the transaction ID of the currently loaded ad.
string
Returns the campaign ID of the currently loaded ad.
string
Returns the destination URL of the currently loaded ad.
BrowserTarget
Returns the browser target setting of the currently loaded ad (BrowserTarget.EXTERNAL or BrowserTarget.INTERNAL).
AdropListener
Sets the listener to receive ad events.

Methods

() => void
Requests and loads the ad.
() => void
Shows the loaded ad. Should be called when isLoaded is true.
() => void
Closes the currently displayed ad. Useful for handling back button press on Android.
() => void
Destroys the ad instance and releases resources. Must be called on component unmount.

AdropListener Interface

Callback interface for receiving ad events.
(ad: AdropAd) => void
Called when ad reception is successful. At this point, you can call show() to display the ad.
(ad: AdropAd, errorCode?: string) => void
Called when ad reception fails. You can check the failure reason through the error code.

Optional Callbacks

(ad: AdropAd) => void
Called when ad impression is recorded.
(ad: AdropAd) => void
Called when user clicks the ad.
(ad: AdropAd) => void
Called just before the full-screen ad is displayed. You can perform actions such as pausing the game.
(ad: AdropAd) => void
Called immediately after the full-screen ad is displayed.
(ad: AdropAd) => void
Called just before the full-screen ad is closed.
(ad: AdropAd) => void
Called immediately after the full-screen ad is closed. Good time to preload the next ad.
(ad: AdropAd, errorCode?: string) => void
Called when ad display fails. You can check the failure reason through the error code.
(ad: AdropAd) => void
Called when the user presses the back button while the ad is displayed. Android only.

Class Method Implementation Example

Method using AdropInterstitialAd class directly.

useAdropInterstitialAd Hook

You can implement interstitial ads more easily using React Hook.

Hook Usage

string | null
required
Ad unit ID. Passing null will release the ad.

Return Values

() => void
Loads the ad. Only works when isReady is true.
() => void
Shows the loaded ad.
() => void
Resets ad state and creates a new instance.
boolean
Whether the ad instance is ready.
boolean
Whether the ad is successfully loaded.
boolean
Whether the ad is displayed on screen.
boolean
Whether the ad is closed.
boolean
Whether the ad is clicked.
string | undefined
Error code occurred during ad loading or display.
boolean
Whether the back button was pressed while the ad is displayed. Android only.
BrowserTarget | undefined
Browser target setting of the loaded ad (BrowserTarget.EXTERNAL or BrowserTarget.INTERNAL).

Hook Method Implementation Example

Method using useAdropInterstitialAd Hook (recommended).

Test Unit ID

Be sure to use test unit IDs in development and test environments.
You must use actual unit IDs in production builds. Revenue from test unit IDs will not be settled.

Error Handling

Errors that may occur during ad loading and display should be handled appropriately.

Error Codes

Error Handling Example


Best Practices

1. Appropriate Display Timing

Show ads at natural transition points in your app.

2. Preloading

Preload ads to minimize user wait time.

3. Frequency Limiting

Limit how often ads are shown.

4. Game Pause Handling

Use listeners to manage game state in class method.

5. Memory Management

Always release resources on component unmount.

Platform Considerations

iOS

  • On iOS, ads automatically close when the app goes to background
  • onAdDidDismissFullScreen callback is called

Android

  • Ads can be closed with the back button on Android
  • Hardware acceleration may be required

Backfill Ads

To use backfill ads, you must have the backfill dependency added to your native platforms (Android/iOS).
When backfill ads are enabled, the SDK automatically falls back to backfill ads when no direct ad is available. You can handle backfill-specific error codes in the listener.

Next Steps

Rewarded Ads

Improve user engagement with rewarded ads

Banner Ads

Implement banner ads

Native Ads

Provide natural ad experience with native ads

Popup Ads

Implement popup ads