Server-side verification guide - missing signature String to byte[] conversion

66 views
Skip to first unread message

Aaron

unread,
Mar 22, 2022, 12:19:40 AM3/22/22
to Google Mobile Ads SDK Developers
I'm following through the server side verification guide (https://developers.google.com/admob/android/ssv). The code block under "Get signature and key_id from callback URL" has signature as a String, but the next code block ("Perform verification") takes signature as a byte[]. How should this be converted from String to byte[]?

Mobile Ads SDK Forum Advisor

unread,
Mar 22, 2022, 10:01:45 AM3/22/22
to aa...@aerion.com.au, google-adm...@googlegroups.com

Hi Aaron,

Thank you for reaching out to us.

Let me share this to the rest of the team for proper context about this. Rest assured that one of our team will reach out to you.

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2YqAeL:ref

Mobile Ads SDK Forum Advisor

unread,
Mar 23, 2022, 9:23:21 PM3/23/22
to aa...@aerion.com.au, google-adm...@googlegroups.com
Hello Aaron,

Thanks for reaching out.

Referring to our Rewarded SSV example, we can decode the signature via `Base64.urlSafeDecode(signature)` and pass it to the `verify` method.


Regards,
Joshua

ref:_00D1U1174p._5004Q2YqAeL:ref

Aaron

unread,
Mar 23, 2022, 9:44:00 PM3/23/22
to Google Mobile Ads SDK Developers
Thanks, that clears things up. Can I suggest referring to it in that guide that I linked?

Mobile Ads SDK Forum Advisor

unread,
Mar 28, 2022, 4:05:29 AM3/28/22
to aa...@aerion.com.au, google-adm...@googlegroups.com
Hello Aaron,

Thanks for the suggestion.

I will communicate back to the team on that.
Reply all
Reply to author
Forward
0 new messages