Overview
You can integrate Adrop Web SDK via CDN script without build tools. Suitable for static websites or simple HTML pages.Supported Ad Formats
- Banner Ads
- Native Ads (with custom UI support)
Requirements
- Modern browsers (Chrome, Firefox, Safari, Edge)
Installation
Add the script to the<head> section of your HTML document.
To lock to a specific version, specify the version number instead of
@latest.
Example: @adrop/ads-web-sdk@1.0.1Initialization
Initialize the SDK after the script loads.Initialization Options (AdropConfig)
App ID issued from Ad Control Console
User identifier (used for targeting)
API authentication key (required for updating user properties)
Enable debug logging
Instance Access
After initialization, you can access the SDK from anywhere usingAdrop.instance().
Dynamic Configuration Updates
You can change settings at runtime, such as setting a user ID after login.For targeted ads to work properly, set
uid before rendering the ad placement.