Show Rewarded Ad
To show a rewarded ad, call Arcplay.showRDAd(...)
The default function parameters include:
activity
Activity
activity context
customData
String
Publisher can set any string e.g. streakId which at onUserRewarded
will be sent to publisher via the backend callback.
The accepted values are:
null
: not allowed""
: allowedMax length 4096
listener
RewardedAdEventListener
Implement these callbacks in the app for best user expereince.
AdNotReady
AdDisplayFailed
AdDisplayed
AdClicked
AdDismissed
OnUserRewarded
Note: These callbacks can also be used for instrumentation purpose.
NOTE:
It is recommended that
Arcplay.showRDAd(...)
should be called after some delay ofArcplay.init(...)
as Rewarded Ads takes some to load because it's a network call for fetching and caching the ads.If you receive
AdNotReady
callback then retry after some delay.
Last updated