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_INTERSTITIALImplementation Methods
Adrop React Native SDK provides two ways to implement interstitial ads:- Class Method - Direct use of AdropInterstitialAd class
- Hook Method - Using useAdropInterstitialAd Hook (Recommended)
AdropInterstitialAd Class
Constructor
Create an AdropInterstitialAd instance.Properties
Returns the browser target setting of the currently loaded ad (
BrowserTarget.EXTERNAL or BrowserTarget.INTERNAL).Methods
AdropListener Interface
Callback interface for receiving ad events.Recommended Callbacks
Called when ad reception is successful. At this point, you can call
show() to display the ad.Called when ad reception fails. You can check the failure reason through the error code.
Optional Callbacks
Called just before the full-screen ad is displayed. You can perform actions such as pausing the game.
Called immediately after the full-screen ad is closed. Good time to preload the next ad.
Called when ad display fails. You can check the failure reason through the error code.
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
Return Values
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.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
onAdDidDismissFullScreencallback 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).
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