OnAdPaid event

410 views
Skip to first unread message

Eneko Egiluz

unread,
Jun 13, 2023, 11:01:35 AM6/13/23
to Google Mobile Ads SDK Developers
Hello, 
Something, somewhere is preventing OnAdPaid event to be fired in one of my apps. Both apps are sharing the same code, and Admob Unity plugin. But after OnAdImpressionRecorded (when a banner ad is shown) only one of them is fireing OnAdPaid. Find attached a custom log in both apps.

OnPaid.png

Romain Bitard

unread,
Jun 14, 2023, 12:45:40 PM6/14/23
to Google Mobile Ads SDK Developers
I'm interested in this because I don't even have OnAdPaid firing

Mobile Ads SDK Forum Advisor

unread,
Jun 16, 2023, 3:22:47 PM6/16/23
to en...@tellmewow.com, google-adm...@googlegroups.com

Hi,

Thank you for reaching out to us.

For us to further investigate this behavior of onAdPaid event, can you provide us more information below?

  • sample app project where the behavior is reproducible
  • steps to replicate
  • screen recording of the behavior
  • SDK version
  • Affected device and versions
  • app ID

You can provide the following details via reply on this thread or directly provide it to the link below.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002mCV9oQAG&entry.80707362=00184021

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

This message is in relation to case "ref:_00D1U1174p._5004Q2mCV9o:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Mobile Ads SDK Forum Advisor

unread,
Jun 19, 2023, 2:07:49 PM6/19/23
to bitard...@gmail.com, google-adm...@googlegroups.com

Hi Romain,

Thank you for reaching out to us.

Can you further elaborate your concern for the OnAdPaid event? If you're using Unity, kindly check this deprecated list (https://developers.google.com/admob/unity/reference/deprecated/deprecated) on which mentioned that the previous "OnPaidEvent" is now "OnAdPaid". Can you confirm if you're encountering any error on this?

This message is in relation to case "ref:_00D1U1174p._5004Q2mD0Np:ref"


Thanks,
 
Google Logo Mobile Ads SDK Team

 



Romain Bitard

unread,
Jun 19, 2023, 6:14:24 PM6/19/23
to Google Mobile Ads SDK Developers
Thanks for the reply, I'm not the author but I can answer if it helps you.
I followed the latest documentation and used OnAdPaid
I tried with fake ads on my mobile or on my beta testers hooked to some analytics and the event is never fired
Capture.PNG

Eneko Egiluz

unread,
Jun 21, 2023, 8:00:00 AM6/21/23
to mobile...@forumsupport.google, google-adm...@googlegroups.com
  • sample app project where the behavior is reproducible: atrtached apk file using the given link
  • steps to replicate: A debug text is overlayed, so just play the game to see ads behavior and received events from admob
  • screen recording of the behavior: Same images attached in this post days ago
  • SDK version: Using Admob plugin for Unity 8.3.0 (Google Mobile Ads 22.1.0)
  • Affected device and versions: All tested Android devices have the same behavior, OnAdPaid event is never fired,
  • app ID: ca-app-pub-6475914044948421~6203268157
Eneko EgiluzCTO / Lead Programmer
www.tellmewow.com

Eneko Egiluz

unread,
Jun 21, 2023, 8:00:54 AM6/21/23
to Google Mobile Ads SDK Developers
I've just replied to the email you sent me, attaching the apk where the problem is clearly shown.
    • sample app project where the behavior is reproducible: atrtached apk file using the given link
    • steps to replicate: A debug text is overlayed, so just play the game to see ads behavior and received events from admob
    • screen recording of the behavior: Same images attached in this post days ago
    • SDK version: Using Admob plugin for Unity 8.3.0 (Google Mobile Ads 22.1.0)
    • Affected device and versions: All tested Android devices have the same behavior, OnAdPaid event is never fired,
    • app ID: Sent in the email

    Mobile Ads SDK Forum Advisor

    unread,
    Jun 22, 2023, 11:07:22 AM6/22/23
    to en...@tellmewow.com, google-adm...@googlegroups.com

    Hi Eneko,

    Thank you for your response.

    Upon checking, it appears that the sample app project is not yet uploaded on the link we've shared. With that, can you provide it again to us via reply on this thread or directly provide it to the link below? Once provided, we will proceed with the investigation of the reported behavior.

    If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

    1. Navigate to https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002mCV9oQAG&entry.80707362=00184021

    2. Fill out all fields, and attach your file(s).

    3. Please reply back to this thread when you have uploaded your file(s). Please do not share this link.



    This message is in relation to case "ref:_00D1U1174p._5004Q2mCV9o:ref"

    Eneko Egiluz

    unread,
    Jun 22, 2023, 4:21:34 PM6/22/23
    to Google Mobile Ads SDK Developers
    I reattached the file through the given link (78Mb)

    Mobile Ads SDK Forum Advisor

    unread,
    Jun 23, 2023, 11:02:07 AM6/23/23
    to en...@tellmewow.com, google-adm...@googlegroups.com

    Hi Eneko,

    Thank you for your response.

    We've tested your APK file provided, however we're unable to replicate the behavior reported. At first testing, it shows requesting interstitial and blank views. On the second test, the app keeps closing. Since we're unable to replicate the behavior, can you provide us with your screen recording of replicating it? In addition to that, if you can provide us your project file on this, we can also check the implementation of your app to further check on why that OnAdPaid Event is not firing.

    If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

    1. Navigate to https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002mCV9oQAG&entry.80707362=00184021

    2. Fill out all fields, and attach your file(s).

    3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

    Romain Bitard

    unread,
    Jun 25, 2023, 4:30:18 AM6/25/23
    to Google Mobile Ads SDK Developers
    If you are the same team behind my other posts, I gave you a ForGoogle.apk that can replicates the OP issue. My OnAdPaidEvent is not fired too

    Eneko Egiluz

    unread,
    Jun 26, 2023, 2:19:05 AM6/26/23
    to Google Mobile Ads SDK Developers
    Attached a video that shows every event fired by admob during the execution. I also attached the code, same code in other apps is working fine, showing OnAdPaid event just after OnImpression event is fired.

    Karla Jacobo

    unread,
    Jun 26, 2023, 4:14:58 AM6/26/23
    to Google Mobile Ads SDK Developers
    Thanks

    Mobile Ads SDK Forum Advisor

    unread,
    Jun 26, 2023, 1:47:08 PM6/26/23
    to en...@tellmewow.com, google-adm...@googlegroups.com

    Hi Eneko,

    Thank you for your response.

    We've tried to test again your APK file provided, however, we are unable to proceed on following your steps on the screen video of the replication as your app keeps closing in our end. With that, can you provide us with a sample app project that we can use for testing again? This will help us to further check this in our end. 

    Screen Recording 2023-06-27 at 1_39_09 AM_mov.html

    Romain Bitard

    unread,
    Jun 27, 2023, 4:08:48 AM6/27/23
    to Google Mobile Ads SDK Developers
    Did you activate the impression revenue in Admob settings in
    Capture.PNG

    Eneko Egiluz

    unread,
    Jun 27, 2023, 7:07:06 AM6/27/23
    to Google Mobile Ads SDK Developers
    That was the problem. Thank you!
    In my other account it was activated, but not in this one.

    Mobile Ads SDK Forum Advisor

    unread,
    Jun 27, 2023, 7:35:49 AM6/27/23
    to en...@tellmewow.com, google-adm...@googlegroups.com
    Hello Eneko,

    We're glad that your issue has been resolved. As Romain mentioned, you will have to enable impression-level ad revenue (https://support.google.com/admob/answer/11322405) for OnAdPaid event to trigger. Feel free to reach out to us if you have any further concerns or inquiries.

    Mobile Ads SDK Forum Advisor

    unread,
    Jun 27, 2023, 7:37:55 AM6/27/23
    to bitard...@gmail.com, google-adm...@googlegroups.com
    Hello Romain,

    Thank you for the assistance on this thread. If you encounter any issues implementing Google Mobile Ads SDK, feel free to share and we'd be happy to help you.
    Reply all
    Reply to author
    Forward
    0 new messages