Ionic Appodeal


Ionic Appodeal – Appodeal plugin is basically used to serve ads through the native Appodeal SDKs. Here in this tutorial, we are going to explain how you can install this plugin to use the native Appodeal SDKs.


Ionic Appodeal Syntax | Example

First install the plugin to use it. –

Installation

Install the Cordova and Ionic Native plugins Using the below command-

Ionic Appodeal Install Example:

$ ionic cordova plugin add https://github.com/appodeal/appodeal-cordova-plugin.git
$ npm install --save @ionic-native/appodeal

Supported Platform

This plugin is supported in below platforms-

  • 1. Ios
  • 2. Android

Example

| Example:

import { Appodeal } from '@ionic-native/appodeal';

constructor(private appodeal: Appodeal) {

   const appKey = 'APP_API_KEY';
   appodeal.initialize(appKey, appodeal.AD_TYPES.REWARDED_VIDEO);
   appodeal.show(appodeal.AD_TYPES.REWARDED_VIDEO);

}

Where APP_API_KEY is your App Api Key.


Advertisements

Add Comment

📖 Read More