AdService implementation update

In my opinion, there are currently some points on AdService that could definitely be improved, here are my suggestion and why I think it would make this service better!


1. Documentation return type

The GetAdAvailabilityNowAsync method has a Dictionary return type, which is quite confusing (and is creating bad typing in roblox-ts).
I suggest you at least add a description of the returned dictionary to make it more understandable for people who want to use it or create a specific return type for this method that would looks like

{
    AdAvailabilityResult: Enum.AdAvailabilityResult
}

2. GetAdAvailabilityNowAsync result

Actually, the GetAdAvailabilityNowAsync returns Enum.AdAvailabilityResult.IsAvailable when the game is not eligible for rewarded video ads or has disabled it. I would suggest to make this method return Enum.AdAvailabilityResult.PublisherIneligible instead.

The idea with that change would be to get a more logical result and enable creators to make better UX fallbacls while the game is not eligible / has disabled rewarded video ads.


3. Possibility to test rewarded video ads on studio

It is currently impossible to test rewarded video on studio if the service is not enabled.
My idea would be to display fake when using this service on studio.

I struggled myself on this one since I’m working on a new game, it does not meet the AdService requirements yet but I still want to implements the logic linked to this service in behalf of the game meeting the requirements to be able to instantly enable this once its the case.

A second problem with this comes when developers are using separate places to test, develop and publish their games since a test or develop place will never be able to meet the monthly players requirements.


Thanks for reading this!

2 Likes

upvote! we really need to have a test feature for ads.

1 Like