Rewarded Interstitials and Open Ads PaidEventListener on Android

698 views
Skip to first unread message

Shmulik Armon

unread,
Jan 11, 2021, 3:34:18 AM1/11/21
to Google Mobile Ads SDK Developers
Hey,

We have implemented both said features on iOS and Android - on iOS setOnPaidEventListener is called as expected.

On Android however, we have an issue with each ad type:

For open ads the class does inherit setOnPaidEventListener but the callback is never fired.

For rewarded interstitials the ad type class does not even inherit setOnPaidEventListener.

We are aware both features are in beta, but can we expect this to be added at some point? We rely on this data for BI.

We have tried this on 19.5.0 and down.

Thanks,
Shmulik.

Mobile Ads SDK Forum Advisor Prod

unread,
Jan 11, 2021, 4:46:26 AM1/11/21
to google-adm...@googlegroups.com

Hi Shmulik,

Thank you for reaching out to us. Could you kindly provide the details below (via Reply to author, or a direct, private reply to this email) so that we can investigate the issue?
 

  • Sample project file demonstrating this issue (based on our sample application with minimal code updates)
  • App Id and Ad Unit Id
  • Steps on how to reproduce the issue



Regards,


Google Logo
Sherwin Diesta
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2AJBq1:ref
Message has been deleted

Shmulik Armon

unread,
Feb 22, 2021, 2:58:19 AM2/22/21
to Google Mobile Ads SDK Developers
Hi,

There cannot be a sample for this since the API does not exist... If you take a look at App Open Ads on Android you will see that the AppOpenAd class does not have a method called setOnPaidEventListener like other ad type classes such as InterstitialAd...

I know this ad type is in beta, but I'm not sure if this will be added in the future or if maybe I'm missing something in the documentation.

Thanks,
Shmulik

Mobile Ads SDK Forum Advisor Prod

unread,
Feb 22, 2021, 6:00:58 AM2/22/21
to google-adm...@googlegroups.com

Hi Shmulik,

Thank you for your message.

Each ad format including the interstitial has an OnPaidEventListener. During the lifecycle of an ad event, the SDK monitors paid events and invokes the handler with an earned value. You set this handler after initializing an ad and before showing it. You can check out the link below the method summary (which includes setOnPaidEventListener) with regard to the paid event listener for interstitial ads.

https://developers.google.com/android/reference/com/google/android/gms/ads/interstitial/InterstitialAd?hl=en#public-method-summary


Let me know if the above works for you.


Regards,


Shmulik Armon

unread,
Feb 22, 2021, 6:06:41 AM2/22/21
to Google Mobile Ads SDK Developers
Hey,

As you said, this is how it should be, however, the class for admob open ads is AppOpenAd, here is its API, which is missing setOnPaidEventListener -


Is there a different class I should be using?

Shmulik

Mobile Ads SDK Forum Advisor Prod

unread,
Feb 22, 2021, 10:15:03 AM2/22/21
to google-adm...@googlegroups.com
Hi Shmulik,

Thank you for the response back. I work along with Sherwin and will be helping you today. Having looked over the thread. I see we suggested the following link. Which as you see, will bring you to all the public methods available for this. When you scroll down you will see that the 3rd method is the one you are looking for.

Also here is the documentation for the implementation from the Admob pages. With an example walk-thru.

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2AJBq1:ref

Shmulik Armon

unread,
Feb 22, 2021, 10:17:26 AM2/22/21
to Google Mobile Ads SDK Developers
Hi,

You keep showing me examples and talking about interstitial ads while I am talking about app open ads... if you have an example of the app open ads with this API please share with me...

Thanks,

Mobile Ads SDK Forum Advisor Prod

unread,
Feb 22, 2021, 10:51:21 AM2/22/21
to google-adm...@googlegroups.com
Hi Shmulik,

Thank you for the response back. One last question to ask. Have you tried to use the setOnPaidEventListener in the AppOpenAd? And if so is showing as an error? Looking to see if this is missing documentation or the method is actually missing from the API.

Also if it is not included in the API, this may be as it is still in Beta and will only be included as it gets closer to release. Or further along into development.

Shmulik Armon

unread,
Feb 22, 2021, 10:54:27 AM2/22/21
to Google Mobile Ads SDK Developers
I've tried and it doesn't exist which is why I opened this post... So I can take what you said here as the official response for this issue? That it doesn't exist because its in beta?

Thanks,

Mobile Ads SDK Forum Advisor Prod

unread,
Feb 22, 2021, 12:03:29 PM2/22/21
to google-adm...@googlegroups.com
Hi Shmulik,

Thank you for the response back. Allow me to bring this to my team to look more into as we will need to know why there is the difference with APIs regarding this method. As I stated before, this "... may be ...." due to the Beta status, but need to get clarification. And thus want to look more into this so as to give you a more detailed explanation.

Faridاحمداحمد Ahmadeی‎

unread,
Feb 25, 2021, 1:02:00 AM2/25/21
to Shmulik Armon, Google Mobile Ads SDK Developers
۱۳۹۹-۱۲-۰۴ ۷:۵۴ ‎−۰۸:۰۰ گرینویچ, 'Shmulik Armon' via Google Mobile Ads
SDK Developers <google-adm...@googlegroups.com>:
>> ref:_00D1U1174p._5004Q2AJBq1:ref
>>
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Google Mobile Ads SDK Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-admob-ads...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-admob-ads-sdk/619fc1e6-7375-4cff-acee-fe88c75b91b3n%40googlegroups.com.
>

Mobile Ads SDK Forum Advisor

unread,
Jul 7, 2021, 12:36:05 PM7/7/21
to safart...@gmail.com, shmu...@tabtale.com, google-adm...@googlegroups.com
Hi there,

In the latest SDK, rewarded interstitial now has the paid event listener - https://developers.google.com/android/reference/com/google/android/gms/ads/rewardedinterstitial/RewardedInterstitialAd#setOnPaidEventListener(com.google.android.gms.ads.OnPaidEventListener)

Thanks,
Eric, Mobile Ads SDK Team

ref:_00D1U1174p._5004Q2AJBq1:ref
Reply all
Reply to author
Forward
0 new messages