Bug 60443 - Bug in Package 'Xamarin.GooglePlayServices.Ads'.
Summary: Bug in Package 'Xamarin.GooglePlayServices.Ads'.
Alias: None
Product: Components
Classification: Xamarin
Component: Xamarin Components ()
Version: Production (addons.xamarin.com)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jon Dick
URL: https://www.nuget.org/packages/Xamari...
Depends on:
Reported: 2017-10-30 18:23 UTC by Rohanm
Modified: 2017-12-26 18:42 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 60443 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Rohanm 2017-10-30 18:23:52 UTC

I have tried to implement Rewarded ad in my xamarin android app. I am able to show rewarded ads but not able to handle any events for ad loaded, rewarded, etc.

I am not sure why there are so many different ways ( 3 ways ) to register the listener for the rewarded ads.

The first two options dont work but the third one works.

1) Setting the adlistener - IRewardedVideoAd.RewardedVideoAdListener = IRewardedVideoAdListener; 
2) Calling the Set method to set the listener - InterstitialAd.SetRewardedVideoAdListener(IRewardedVideoAdListener); 3) Registering the events on the interstistial ad - InterstitialAd.RewardedVideoAdClosed += OnRewardedVideoAdClosed;

Even if the 3 option is working the event "Rewarded" is not called. The ad never terminates by self.

Can you please fix the bug of the first option not working?

Thanks, Rohan
Comment 1 Jason Bowling 2017-12-24 03:31:21 UTC
I'm experiencing the same issue and have not found a way to determine if the user watched the video ad to completion or closed it halfway through.  

Are there any workarounds to get the Rewarded callbacks working?
Comment 2 Rohanm 2017-12-24 11:10:41 UTC
Hi Jason,

My Activity implements IRewardedVideoAdListener and then you register like below - 

_rewardedVideoAd = MobileAds.GetRewardedVideoAdInstance(this);
_rewardedVideoAd.RewardedVideoAdListener = this;

This is working for me.

Comment 3 Jason Bowling 2017-12-26 18:42:32 UTC
Hi Rohan,
  Thanks for the tip!  Using your advice I was able to get this working.

  For anyone else reading this, if you decide to implement the IRewardedVideoAdListener outside of the Activity class, make sure your class inherits from Java.Lang.Object so the Handle pointer is correctly initialized.  I was missing this at first and my listener events were not firing.