RewardedAd paidEventHandler always shows 0 USD in test mode

48 views
Skip to first unread message

mandriao84

unread,
Apr 11, 2025, 3:25:08 AM4/11/25
to Google Mobile Ads SDK Developers
Hi,

I’m trying to access the paidEventHandler for a RewardedAd in my Swift iOS app, but I keep getting a value of 0 USD every time.

Here’s what I’ve tried so far:
• Setting the paidEventHandler right after calling RewardedAd.load(...)
• Setting it just before calling ad.present(...)
• Setting it inside the completionHandler of ad.present(...) { ... }

In all cases, the output always logs 0 USD.

I’m currently using test mode with my personal Ad Unit ID for rewarded ads. Is there a specific or recommended place in the flow to set the paidEventHandler to get valid values, or is this behavior expected in test mode?

I use to be able to print some value even in test mode .

Thanks in advance for any help!

Mobile Ads SDK Forum Advisor

unread,
Apr 11, 2025, 9:16:07 AM4/11/25
to glo...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support team.

When an impression occurs, the Google Mobile Ads SDK calls the paid event handler with its associated revenue data. By implementing this handler, you can use the data to calculate a user's lifetime value, or forward the data downstream to other relevant systems.

"paidEventHandler" method is called when the ad is estimated to have earned money. This is specific to rewarded ads whereas Each ad format has an “paidEventHandler” property of type GADPaidEventHandler. During the lifecycle of an ad event, the Google Mobile Ads SDK monitors impression events and invokes the handler with an earned value. 

Refer to the best practices and use impression-level ad revenue and Rewarded ads for more information. 

Could you confirm whether the mentioned issue is reproducible in our sample project? If yes, kindly provide the app ID and ad unit ID via reply to author option for further investigation. 


Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-04-11 13:15:16Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01pSaG2:ref" (ADR-00299526)



Reply all
Reply to author
Forward
0 new messages