Skip to main content

Overview

Popup ads are displayed as a popup at the center or bottom of the screen. They support a “Don’t show today” feature to improve user experience.

Key Features

  • Selectable center or bottom position
  • “Don’t show today” feature support
  • Customizable button colors
  • Image ad support
Use test unit IDs in development environment:
  • Bottom: PUBLIC_TEST_UNIT_ID_POPUP_BOTTOM
  • Center: PUBLIC_TEST_UNIT_ID_POPUP_CENTER

AdropPopupAd

Constructor

Parameters

Properties

Methods


Basic Usage


AdropPopupListener

Listener for handling popup ad events.

Callbacks

Callback Descriptions


Button Color Customization

You can customize the colors of the close button and “Don’t show today” button.

Color Options


The popup position is configured when creating the unit in the Ad Control Console.

Center Popup

The popup is displayed at the center of the screen. Suitable for announcements and event notifications.

Bottom Popup

The popup is displayed at the bottom of the screen. Suitable for banner-style notifications on app launch.

Don’t Show Today

When a user selects “Don’t show today”, the ad will not be shown on that device until midnight.
When loading an ad in “Don’t show today” state, the adHideForToday error is returned.

Ad Recreation

Popup ads are one-time use. Once shown, they cannot be shown again, so you must recreate the instance to load a new ad.

Error Handling


Best Practices

1. Show Popup on App Launch

Display announcements or events as a popup when the app launches.

2. Use Theme-Matched Colors

Set button colors to match your app’s theme.

3. Resource Management

Always dispose of unused ad instances.

Complete Example


Backfill Ads

When backfill ads are enabled, backfill ads are automatically loaded when direct ads are unavailable. You can handle backfill-related errors using the error code.
To use backfill ads, add the backfill dependency to native platforms. See Getting Started.

Next Steps

Targeting

Set up targeting for personalized ads

Reference

Reference types, methods, and error codes

Examples

Explore various implementation examples