question

Jon avatar image
Jon asked

Validate /Client/RewardAdActivity

https://docs.microsoft.com/en-us/rest/api/playfab/client/advertising/rewardadactivity?view=playfab-rest

How does this API validate that the request is real? Otherwise players could just keep calling this?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

The call to RewardAdActivity only requires that the reward be valid for the player, not that it was the last one returned from GetAdPlacements, meaning that the player could just keep calling it to receive rewards:

https://docs.microsoft.com/en-us/gaming/playfab/features/automation/rewarded-ads/quickstart#rewarding-ad-activity

Usually you can limit how often an Ad placement may be viewed for a reward, for instance, 1 per hour, so that RewardAdActivity can only be called once per hour:


1.png (9.9 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.