question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No way to setUserId or setCustomData for reward videos

See original GitHub issue

There is currently no way that I can find to setCustomData or setUserId to verify reward videos server side using the reward video ssv: https://developers.google.com/admob/android/rewarded-video-ssv

This is essential for reward videos to verify that the user actually completed the video reward, rather than just relying on a client side callback to reward the user.

The IAdRequest interface currently supports the following data:

interface IAdRequest {
  id?: AdUnitIDOption
  testDevices?: string[]
  childDirected?: boolean
  underAgeOfConsent?: boolean
}

Maybe allowing a customData object or a userId here that gets set using the setUserId or setCustomData functions would be the way to go?

For example:

document.addEventListener('deviceready', () => {
  admob.rewardVideo.load({
    id: {
      // replace with your ad unit IDs
      android: 'ca-app-pub-xxx/yyy',
      ios: 'ca-app-pub-xxx/zzz',
    },
    userId: '14239023',
    customData: {
        somethingElse: 'hello world'
    }
  }).then(() => admob.rewardVideo.show())
}, false)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ratsoncommented, Mar 9, 2021

@dodocodes @bardgr @nfacha @SeVeNDuS I have just released admob-plus-cordova@1.0.0-alpha.13 to support this. Please refer to https://admob-plus.github.io/docs/cordova/rewarded-ads-ssv/

1reaction
bardgrcommented, Feb 3, 2021

Hugely useful in order to support reward vids and increase revenue. Many thumbs up. Is it possible @ratson to have it in the next release?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reward video server-side verification - Google Groups
1. We use setUserId() to pass in our custom data (our client does not support setCustomData() for the time being because of the...
Read more >
setting the userId in firebase admob rewarded video. #33033
I am using the firebase rewarded video and there's a method called setUserId(String userId) in the following link:
Read more >
Android AdMob rewarded ads: server-side callback not called ...
There are rewarded ads in my Android app. There is a server-side verification (SSV) callback set up. Everything is working if the user...
Read more >
Validate server-side verification (SSV) callbacks | Android
This guide shows you how to verify rewarded SSV callbacks by using the Tink third-party ... If no custom data string is provided...
Read more >
A brand new website interface for an even better experience!
No way to setUserId or setCustomData for reward videos.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found