BlocosIA Wiki Editor

Ads

Show ads in the exported game: interstitials between levels, rewards (extra life, coins) and banners. Works in the Capacitor app (AdMob), websites (H5 Games Ads), CrazyGames, Poki and App Inventor/Kodular.

In the editor you only see a test ad. The platform and your ad account IDs are chosen when exporting (Export > Ads). Show ads only at natural breaks, and rewarded ads only when the player asks.

To use it: in the editor, click "Extensions" (bottom corner) and add "Ads".

Stack

show interstitial ad ([end of level]) and wait

Does an action. Snap it below another block.

Boolean

rewarded ad available?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Stack

show rewarded ad and wait

Does an action. Snap it below another block.

Boolean

did the player earn the reward?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Hat

when the player earns the ad reward

Starts a script when this happens.

Stack

show banner [at the bottom]

Does an action. Snap it below another block.

Stack

hide banner

Does an action. Snap it below another block.

Stack

tell the platform: the game [started (playing)]

Does an action. Snap it below another block.

Hat

when an ad [starts]

Starts a script when this happens.

Boolean

is an ad showing?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Reporter

ad platform

Gives a number or text. Put it inside a round slot.

Stack

minimum time between interstitial ads: ( ) seconds

Does an action. Snap it below another block.