Hey there, how may I integrate Admob Validating Server-Side Verification(SSV) Callbacks with Playfab? it's a way to validate rewarded videos with more safely.
Hey there, how may I integrate Admob Validating Server-Side Verification(SSV) Callbacks with Playfab? it's a way to validate rewarded videos with more safely.
We wanted to do something similar, and ended up just using an Azure function app for this. We've gotten it working with Appodeal S2S and Tapdaq S2S, and it should work fine with Admob too.
Hi Brandon! I created an Azure function app as you suggested. What is the expected response for a SSV validation? I created the "Hello World" function and I wanted to return success (without any further validation) for testing purposes. What exactly should be returned?
@PinkPointer I haven’t used AdMob’s SSV so I’m not sure exactly what AdMob expects as a result, but if you want to simply return 200 OK, you shouldn’t have to do anything. I believe by default, the function should return 200 OK unless it fails or you write custom code to return another HTTP result. For example, we use both TapJoy and Appodeal, both of which require us to return 400 Forbidden if validation fails for any reason.
Thank you for the info, I was able to connect with AdMob! One last question, I imagine it is possible to call a cloudscript from within this function (in order to grant the reward), right? Any pointers on how to "connect" and/or have a playfab context there?
Hi @Rafael Souza,
So, the basic flow of the validation you require is the following:
Is that right? If that’ the case, I believe PlayFab doesn’t support handling callbacks from other endpoints, it does support making Webhook calls to custom servers to provide additional event handling. You may want to check the solution of using an Azure function app Brandon suggested.
@Citrus Yan Yeah, Brandon solution seems to be the way, I'll try that but with Amazon Lambda since I already have an account there.
Thank you both.
@Rafael Souza Sure thing, if you need help with it let me know although it should be relatively straightforward. I'd also suggest writing a playstream event when the reward is triggered for analytics.
We just make a CloudScript call with the unique event ID, player ID, and currency info and update the currency if the unique ID doesn't match the last unique ID used.
Hi @Rafael Souza! Were you able to do the SSV using Amazon Lambda? As I commented on @Brandon Phillips answer, I'm trying to use the Azure Functions. I tried to add my function to the AdMob console, but it is returning a "internal error" when AdMob is verifying the URL. Did you ever get that error?
I had to set my function as anonymous and then the AdMob console accepted it! =)
4 People are following this question.