Poki Games SDK extension
This extension allows games to be hosted on Poki website and display ads.
Tip
Please refer to Poki's guide to know when to call the different actions.
Display an ad
Ads can be displayed using either the Commercial break or Rewarded break actions. Please refer to Poki's implementation details to understand when to use one or the other.

You can use the Commercial break just finished playing condition to resume the game after the end of the ad.

For rewarded ads, use both Rewarded break just finished playing and Should reward player to grant rewards only when the ad was completed. Check both conditions in the same event branch.
Shareable URLs and URL parameters
Use Create shareable URL to generate a Poki-compatible URL from a structure variable.
- Create a structure variable (for example
ShareParams) with child variables likeidandtype. - Call Create shareable URL with this variable.
- Read the result with the expression
PokiGamesSDKHtml::LastShareableURL().
To read incoming URL parameters, use PokiGamesSDKHtml::URLParam("id"). This helper also supports Poki's gd-prefixed URL parameters.
You can find the official Poki behavior here: Shareable URLs and URL manipulation.
Poki Pill on mobile
Use Move Poki Pill to reposition the Poki Pill if it overlaps your UI.
TopPercentshould be between0and50.TopPxis an additional pixel offset.- The Poki default position is equivalent to
TopPercent = 0andTopPx = 20.
Reference: Poki Pill repositioning.
Other useful actions
- Open external link: open external URLs via Poki SDK.
- Measure event: send analytics events with
category,what, andactionvalues (for examplelevel,1,start).
See the full Poki SDK docs here: SDK documentation.
Tip
Learn more about this extension in the reference page