Skip to content

Interface: IAdAdapter ​

Properties ​

PropertyModifierType
namereadonlystring

Methods ​

Close() ​

ts
Close(): void;

Returns ​

void


EmitGameComplete() ​

ts
EmitGameComplete(): void;

Returns ​

void


EmitGameStart() ​

ts
EmitGameStart(): void;

Counterpart emitters for game code — adapters that route to a network SDK override these to add the SDK-specific call alongside the local listener fan-out.

Returns ​

void


Finished() ​

ts
Finished(): void;

Returns ​

void


GameplayStart() ​

ts
GameplayStart(): void;

Returns ​

void


GameplayStop() ​

ts
GameplayStop(): void;

Returns ​

void


HappyTime() ​

ts
HappyTime(): void;

A highlight (a level beaten, a record): portals may celebrate it.

Returns ​

void


Init() ​

ts
Init(): Promise<void>;

Returns ​

Promise<void>


IsSupported() ​

ts
IsSupported(): boolean;

Returns ​

boolean


OnCtaClick() ​

ts
OnCtaClick(cb): AdUnsubscribe;

Parameters ​

ParameterType
cb() => void

Returns ​

AdUnsubscribe


OnCtaConfirmed() ​

ts
OnCtaConfirmed(cb): AdUnsubscribe;

Parameters ​

ParameterType
cb() => void

Returns ​

AdUnsubscribe


OnGameComplete() ​

ts
OnGameComplete(cb): AdUnsubscribe;

Parameters ​

ParameterType
cb() => void

Returns ​

AdUnsubscribe


OnGameStart() ​

ts
OnGameStart(cb): AdUnsubscribe;

Canonical playable-ad lifecycle events. Game code emits gameStart / gameComplete through the adapter; the adapter routes them to whichever analytics path the network SDK expects. CTA events fire from inside OpenStore() so analytics see them even if the SDK redirect is asynchronous.

Parameters ​

ParameterType
cb() => void

Returns ​

AdUnsubscribe


OnPause() ​

ts
OnPause(cb): AdUnsubscribe;

Parameters ​

ParameterType
cb() => void

Returns ​

AdUnsubscribe


OnReady() ​

ts
OnReady(cb): AdUnsubscribe;

OnReady replays if Init has already fired ready. Other On* may never fire on some networks.

Parameters ​

ParameterType
cb() => void

Returns ​

AdUnsubscribe


OnResume() ​

ts
OnResume(cb): AdUnsubscribe;

Parameters ​

ParameterType
cb() => void

Returns ​

AdUnsubscribe


OnViewableChange() ​

ts
OnViewableChange(cb): AdUnsubscribe;

Parameters ​

ParameterType
cb(visible) => void

Returns ​

AdUnsubscribe


OpenStore() ​

ts
OpenStore(url?): void;

Some networks (Facebook) configure the destination externally and ignore the url.

Parameters ​

ParameterType
url?string

Returns ​

void


Ready() ​

ts
Ready(): void;

Returns ​

void


SetStoreUrls() ​

ts
SetStoreUrls(urls): void;

Parameters ​

ParameterType
urlsStoreUrls

Returns ​

void


ShowInterstitial() ​

ts
ShowInterstitial(): Promise<void>;

Web portals (CrazyGames): ads the game asks for, and the portal's gameplay signals. While an ad shows the adapter fires OnPause / OnResume, so the engine holds the game and mutes it. Playable networks have none of this — AdAdapter's defaults show no ad and grant no reward.

Returns ​

Promise<void>


ShowRewarded() ​

ts
ShowRewarded(): Promise<boolean>;

Resolves true when the player watched it to the end (grant the reward), false otherwise.

Returns ​

Promise<boolean>


Shutdown() ​

ts
Shutdown(): void;

Returns ​

void

© 2026 PlayAdGentic