Skip to main content

Adrop

The main class for the Adrop SDK. Handles SDK initialization and global settings.

Static Properties

Static Methods

Usage Example


AdropTheme

Enum for dark mode settings for ads.

Values

Usage Example


AdropErrorCode

Error codes that can occur when loading and displaying ads.

Values

Properties

Factory Methods


AdropAdChoicesPosition

Enum for setting the AdChoices badge position on backfill native ads.

Values

Usage Example


AdropBannerView

Widget class for displaying banner ads.

Constructor

Properties

Methods

Usage Example


AdropBannerListener

Listener class for handling banner ad events.

Constructor

Callbacks

Metadata Fields


AdropNativeAd

Class for requesting native ads.

Constructor

Properties

Methods

Usage Example


AdropNativeAdView

Widget for displaying native ads on screen.

Constructor

Usage Example


AdropNativeListener

Listener class for handling native ad events.

Constructor

Callbacks


AdropNativeProperties

Content properties for native ads.

Properties


AdropNativeProfile

Profile information for native ads.

Properties


AdropInterstitialAd

Class for displaying interstitial ads.

Constructor

Properties

Methods

Usage Example


AdropInterstitialListener

Listener class for handling interstitial ad events.

Constructor

Callbacks


AdropRewardedAd

Class for displaying rewarded ads.

Constructor

Properties

Methods

Usage Example


ServerSideVerificationOptions

Options for server-side verification (SSV) in rewarded ads. Set before calling load() to pass custom data to your server callback.

Constructor

Properties

Usage Example


AdropRewardedListener

Listener class for handling rewarded ad events.

Constructor

Callbacks


AdropPopupAd

Class for displaying popup ads.

Constructor

Properties

Methods

Usage Example


AdropPopupListener

Listener class for handling popup ad events.

Constructor


AdropMetrics

Class for managing user properties and events.

Static Methods

Usage Example


AdropConsentManager

Class for managing user consent (GDPR, CCPA, etc.). Access via Adrop.consentManager.

Methods

Usage Example


AdropConsentResult

Result object returned by the consent info update callback.

Properties


AdropConsentStatus

Enum representing the user’s consent status.

Values


AdropConsentDebugGeography

Enum for testing consent flows with different geographies.

Values


BrowserTarget

Enum controlling how destination URLs open when an ad is clicked.

Values

Usage Example


CreativeSize

Class representing the size of a creative.

Constructor

Properties


AdropProperties

Enum for predefined user property keys used with AdropMetrics.setProperty.

Values

Usage Example


AdropGender

Enum for gender values used with AdropProperties.gender.

Values


Deprecated Classes

The following classes are deprecated and will be removed in a future version. For more details on migration, see Getting Started.

Test Unit IDs

Unit IDs for development and testing.
Make sure to replace with actual unit IDs before production deployment.

Getting Started

SDK installation and setup guide

Examples

Example code and sample projects