Skip to main content

Integrate a native AdMob interstitial ad into your app using Despia. Call a single method at a transition point to trigger a full-screen ad with no await and no return value.

CursorOpen in Cursor
Despia triggers the native AdMob SDK to load and display a full-screen interstitial ad at the point where despia("admob://interstitial") is called. The call is fire-and-forget, so your app flow continues immediately with no await and no return value to handle. The ad unit ID and all AdMob configuration is managed through the Despia dashboard.

Installation

npm install despia-native
You must enable AdMob in Despia > App > Addons > AdMob and configure your Ad Unit ID before interstitial ads will load. Rebuild your app after enabling the addon.

Usage

1. Import the SDK

Import despia at the top of any file where you intend to show ads.
import despia from 'despia-native';

2. Show the interstitial ad

Call despia("admob://interstitial") at a natural transition point. This is fire-and-forget with no await and no return value.
despia("admob://interstitial");
Interstitial ads must only be shown at natural transition points such as between levels, after completing a task, or between screens. Triggering them directly from a navigation button violates AdMob policy and may result in account suspension.

Resources

For additional support or questions, contact the support team at support@despia.com