Type String Event adsRequest Revision 2017.3060 Keywords ads, advertising, Unity Ads, adsRequest, phase See also adsRequest unityads.*
String value indicating the phase of the adsRequest event. Possible values include:
"init"
— Indicates that the Unity Ads plugin was initialized successfully. You must wait for this event phase before trying to show ads.
"loaded"
— Indicates that an ad has been loaded successfully.
"displayed"
— Indicates that an ad has been displayed successfully via unityads.show().
"skipped"
— Indicates that video ad playback was stopped by the user before the end of playback.
"completed"
— Indicates that the user viewed the video ad until its completion.
"failed"
— Indicates that an ad failed to load. For this phase, event.isError will be true
and event.response provides additional context on the error. Additionally, for this phase, event.data is a errorCode
and errorMsg
keys.
"placementStatus"
— This phase is triggered by a call to unityads.isLoaded(). In this case, event.data will contain status information about the placement ID.