lreiner / cordova-plugin-startapp-ads

Cordova Plugin to use StartApp Ads with Cordova based Hybrid Apps. Free to use for everyone 💰
https://www.startapp.com/
Apache License 2.0
10 stars 5 forks source link

Reward Video Not worked #7

Closed abdosaeedelhassan closed 2 years ago

abdosaeedelhassan commented 5 years ago

Banners ads and Interstitial ads work correctly, but rewarded video not worked for me

lreiner commented 5 years ago

can you provide code snippets on how you implemented your rewarded video ads? Thanks

abdosaeedelhassan commented 5 years ago

i do the steps as follows: 1- ionic cordova plugin add https://github.com/lreiner/cordova-plugin-startapp-ads.git 2- create service and then declare var StartAppAds:any; 3- create next functions

  initAds() {
    if (this.platform.is("android")) {
      StartAppAds.init("xxxxxxxxx");
    }
  }

  showBanner() {
    StartAppAds.showBanner();
  }
  hideBanner() {
    StartAppAds.hideBanner();
  }
  showInterstitial() {
    StartAppAds.showInterstitial();
  }
  showRewardVideo() {
    StartAppAds.showRewardVideo();
  }

4- used the service inside page after init in main app component

thanks