# Ionic AdMobPro onAdPresent issue

**URL:** <https://forum.ionicframework.com/t/ionic-admobpro-onadpresent-issue/131475>\
**Category:** ionic-v3\
**Created:** [May 27, 2018, 5:07pm UTC](https://forum.ionicframework.com/t/ionic-admobpro-onadpresent-issue/131475 "2018-05-27T17:07:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bohdanmelnychenko](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@bohdanmelnychenko](https://forum.ionicframework.com/u/bohdanmelnychenko)\
**Post date:** [May 27, 2018, 5:07pm UTC](https://forum.ionicframework.com/t/ionic-admobpro-onadpresent-issue/131475/1 "2018-05-27T17:07:42Z")

</div>

Hello everyone

I use Ionic Admob Pro plugin  
[https://ionicframework.com/docs/native/admob-pro/](https://ionicframework.com/docs/native/admob-pro/)

I have subscriber to onAdPresent event which fires when user finishes watching video.  
And in my admob account I have configured rewardType = ‘coins’ and rewardAmount = 2

onAdPresent works fine, but sometimes after watching video illegal values passed to this subscribe.  
Sometimes my configured values are passed, but sometimes passed rewartType=‘reward’ and rewardAmount=1

I guess it some default values of rewarded videos, but why these values are passed for my configured admob account?

```auto
> ngOnInit() {
> this.subscription = this.admob.onAdPresent().subscribe(res => {
> if (res.adType == "rewardvideo" && res.rewardType == "coins" && res.rewardAmount == 2) {
> //SOMETIMES THIS BLOCK IS NOT EXECUTED BECAUSE OF res.rewartType has some other value instead of my configured
> }
> }
> 
> showRewardedVideo() {
> this.admob.prepareRewardVideoAd({
> adId: 'ca-app-pub- ****',
> autoShow: true
> });
> }

```

Can anybody help?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:34pm UTC](https://forum.ionicframework.com/t/ionic-admobpro-onadpresent-issue/131475/2 "2021-07-19T21:34:02Z")

</div>

Closed on July 19, 2021, 9:34pm UTC


