Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CrazyGame] Fix the action to display a video ads #1284

Merged
merged 1 commit into from
May 11, 2024
Merged

Conversation

Bouh
Copy link
Contributor

@Bouh Bouh commented May 11, 2024

Fix the action to display video ads, now a error is returned if the ad isn't ready (Thanks to MartijnKuilema)

…video ads isn't ready (Thanks to MartijnKuilema)
@Bouh Bouh requested a review from a team as a code owner May 11, 2024 11:42
@Bouh Bouh merged commit 3af60ae into main May 11, 2024
3 checks passed
@Bouh Bouh deleted the fix-crazygame- branch May 11, 2024 11:43
@@ -349,6 +349,7 @@
" },",
" adError: (error, errorData) => {",
" gdjs._crazyGamesExtension.isPlayingVideoAd = false;",
" gdjs._crazyGamesExtension.hasVideoAdJustFinishedPlaying = true;",
Copy link
Contributor

@D8H D8H May 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it to ensure that games won't be stuck if they forgot to handle errors?
Should there be a way for creators to still check if it has finished because of an error?

I guess it's to comply to this:

Often, the request for a midgame ad will be unfilled (either because of timing restrictions, adblock, or low demand). In this case you receive an adError event. You should handle this case correctly and ensure that the game continues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants