Web

Example App


Initiailze Adrop

  1. Please replace the parameter with appropriate values before using it.

adrop.initialize('YOUR_APP_KEY')
  1. If you're using Typescript, copy this code in your *.d.ts

declare var adrop: {
    initialize: (appKey: string) => void;
    request: (unitId: string) => Promise<{ ad: string, unit: string, message: string}>;
    setProperty: (key: string, value: string) => Promise<void>;
}

3. If you're using ESLint, add "adrop": true to globals field in your .eslintrc.json

{
   "globals": {
      "adrop": true
   }
}

Last updated