Hi guys,
I'm looking into setting up a server-side callback from Mopub for when a user watched a rewarded video ad, but I'm having trouble working out how to construct the URL.
Mopub only gives you a box to enter a URL in, inside of that I have to designate everything described in the post request in the documentation
POST https://{
{TitleID}}.playfabapi.com/Server/ExecuteCloudScript
Content-Type: application/json
X-SecretKey: <title_key_value>{
"PlayFabId": "1337D00D",
"FunctionName": "levelCompleted",
"FunctionParameter": {
"level": 3,
"points": 400
},
"RevisionSelection": "Live",
"GeneratePlayStreamEvent": true
}
This makes sense, mopub provides a way of injecting variables so I can pass through the player id, the name of the currency and the amount of currency I want to award, but I'm a bit stuck on how I need to actually format the URL itself from the above post request so that I can call the cloudscript function and pass the data through.
Thanks in advance for any help!