Add Adrop to Web
Step 1: Create an Adrop project
Before you can add Adrop to your project, you need to create an Adrop project to connect to your app.
Step 2: Register your app with Adrop
To use Adrop in your Web app, you need to register your app with your Adrop project. Registering your app is often called "adding" your app to your project.
Step 3: Add an Adrop configuration file
You can obtain the required App Key in the code snippet.
Step 4: Add Adrop SDK to your app
Load Adrop SDK libraries from the CDN (content delivery network).
Copy and paste these scripts into the bottom of your <head>
tag
Step 5: Initiailze Adrop
Please replace the parameter with appropriate values before using it.
If you're using
Typescript
, copy this code in your*.d.ts
3. If you're using ESLint
, add "adrop": true
to globals
field in your .eslintrc.json
Next Steps
You're all set! Please register an Ad unit to show ads to users.
Learn how to Create your Ad unit.
Last updated