adrop.initialize('YOUR_APP_KEY')
declare var adrop: {
initialize: (appKey: string) => void;
request: (unitId: string) => Promise<{ ad: string, unit: string, message: string}>;
setProperty: (key: string, value: string) => Promise<void>;
logEvent: (name: string, params: Record<string, any>) => Promise<void>;
}
3. If you're using ESLint
, add "adrop": true
to globals
field in your .eslintrc.json
{
"globals": {
"adrop": true
}
}