# Admob rewarded video

**URL:** <https://forum.ionicframework.com/t/admob-rewarded-video/84799>\
**Category:** ionic-v3\
**Created:** [March 30, 2017, 3:54pm UTC](https://forum.ionicframework.com/t/admob-rewarded-video/84799 "2017-03-30T15:54:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![layinka](https://avatars.discourse-cdn.com/v4/letter/l/9f8e36/32.png) [@layinka](https://forum.ionicframework.com/u/layinka)\
**Post date:** [March 30, 2017, 3:54pm UTC](https://forum.ionicframework.com/t/admob-rewarded-video/84799/1 "2017-03-30T15:54:35Z")

</div>

Hi,  
I am trying to use the Admob Ionic Native 3 plugin to implement rewarded video.

The challenge is knowing when the user has accepted the ad and when to give the user rewards.

For the Cordova plugin directly, i would have done something like this(from the docs)

```
document.addEventListener('onAdPresent', function(data){ 
     if(data.adType == 'rewardvideo') { 
         console.log( data.rewardType ); 
         console.log( data.rewardAmount ); 
    } 
});

```

With Ionic Native, i am trying this in my IonViewDidLoad method

ionViewDidLoad() {

```
    this.adMob.onAdPresent()
        .subscribe((data) => {
            console.log('ad present: ' + data.adType + ";" + JSON.stringify(data));
            
            if (data.adType == 'rewardvideo') {
                //console.log("Rewarded:" + data.rewardType + " - " + data.rewardAmount);
                //Award coins
            }
        });
}

```

But its not triggering at all.

I have added the same code to my app.component.ts file just incase, and so it can be added only once.

But its still not triggering. Can anybody help?

---

<div class="post-metadata">

**Author:** ![NurGuz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nurguz/32/111671_2.png) [@NurGuz](https://forum.ionicframework.com/u/NurGuz)\
**Post date:** [March 5, 2018, 7:19pm UTC](https://forum.ionicframework.com/t/admob-rewarded-video/84799/2 "2018-03-05T19:19:21Z")

</div>

same problem here, any idea?

thx

---

<div class="post-metadata">

**Author:** ![NurGuz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nurguz/32/111671_2.png) [@NurGuz](https://forum.ionicframework.com/u/NurGuz)\
**Post date:** [October 8, 2018, 2:59pm UTC](https://forum.ionicframework.com/t/admob-rewarded-video/84799/3 "2018-10-08T14:59:15Z")

</div>

can u make one solution?
