[AD EVENTS] Add AdEvents possible enum values
This commit is contained in:
parent
b9f6ed438c
commit
7d6b2b7037
51
API.md
51
API.md
@ -1226,11 +1226,56 @@ Platforms: Android, iOS, Web
|
||||
#### onReceiveAdEvent
|
||||
Callback function that is called when an AdEvent is received from the IMA's SDK.
|
||||
|
||||
Enum `AdEvent` possible values for [Android](https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdEvent) and [iOS](https://developers.google.com/interactive-media-ads/docs/sdks/ios/client-side/reference/Enums/IMAAdEventType):
|
||||
|
||||
| Event | Platform | Description |
|
||||
|----------------------------|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `AD_BREAK_ENDED` | iOS | Fired the first time each ad break ends. Applications must reenable seeking when this occurs (only used for dynamic ad insertion). |
|
||||
| `AD_BREAK_READY` | Android, iOS | Fires when an ad rule or a VMAP ad break would have played if autoPlayAdBreaks is false. |
|
||||
| `AD_BREAK_STARTED` | iOS | Fired first time each ad break begins playback. If an ad break is watched subsequent times this will not be fired. Applications must disable seeking when this occurs (only used for dynamic ad insertion). |
|
||||
| `AD_BUFFERING` | Android | Fires when the ad has stalled playback to buffer. |
|
||||
| `AD_CAN_PLAY` | Android | Fires when the ad is ready to play without buffering, either at the beginning of the ad or after buffering completes. |
|
||||
| `AD_METADATA` | Android | Fires when an ads list is loaded. |
|
||||
| `AD_PERIOD_ENDED` | iOS | Fired every time the stream switches from advertising or slate to content. This will be fired even when an ad is played a second time or when seeking into an ad (only used for dynamic ad insertion). |
|
||||
| `AD_PERIOD_STARTED` | iOS | Fired every time the stream switches from content to advertising or slate. This will be fired even when an ad is played a second time or when seeking into an ad (only used for dynamic ad insertion). |
|
||||
| `AD_PROGRESS` | Android | Fires when the ad's current time value changes. Calling getAdData() on this event will return an AdProgressData object. |
|
||||
| `ALL_ADS_COMPLETED` | Android, iOS | Fires when the ads manager is done playing all the valid ads in the ads response, or when the response doesn't return any valid ads. |
|
||||
| `CLICKED` | iOS | Fires when the ad is clicked. |
|
||||
| `CLICK` | Android | Fires when the ad is clicked. |
|
||||
| `COMPLETE` | Android, iOS | Fires when the ad completes playing. |
|
||||
| `CONTENT_PAUSE_REQUESTED` | Android | Fires when content should be paused. This usually happens right before an ad is about to cover the content. |
|
||||
| `CONTENT_RESUME_REQUESTED` | Android | Fires when content should be resumed. This usually happens when an ad finishes or collapses. |
|
||||
| `CUEPOINTS_CHANGED` | iOS | Cuepoints changed for VOD stream (only used for dynamic ad insertion). |
|
||||
| `DURATION_CHANGE` | Android | Fires when the ad's duration changes. |
|
||||
| `FIRST_QUARTILE` | Android, iOS | Fires when the ad playhead crosses first quartile. |
|
||||
| `IMPRESSION` | Android | Fires when the impression URL has been pinged. |
|
||||
| `INTERACTION` | Android | Fires when an ad triggers the interaction callback. Ad interactions contain an interaction ID string in the ad data. |
|
||||
| `LINEAR_CHANGED` | Android | Fires when the displayed ad changes from linear to nonlinear, or the reverse. |
|
||||
| `LOADED` | Android, iOS | Fires when ad data is available. |
|
||||
| `LOG` | Android, iOS | Fires when a non-fatal error is encountered. The user need not take any action since the SDK will continue with the same or next ad playback depending on the error situation. |
|
||||
| `MIDPOINT` | Android, iOS | Fires when the ad playhead crosses midpoint. |
|
||||
| `PAUSED` | Android | Fires when the ad is paused. |
|
||||
| `PAUSE` | iOS | Fires when the ad is paused. |
|
||||
| `RESUMED` | Android | Fires when the ad is resumed. |
|
||||
| `RESUME` | iOS | Fires when the ad is resumed. |
|
||||
| `SKIPPABLE_STATE_CHANGED` | Android | Fires when the displayed ads skippable state is changed. |
|
||||
| `SKIPPED` | Android, iOS | Fires when the ad is skipped by the user. |
|
||||
| `STARTED` | Android, iOS | Fires when the ad starts playing. |
|
||||
| `STREAM_LOADED` | iOS | Stream request has loaded (only used for dynamic ad insertion). |
|
||||
| `TAPPED` | iOS | Fires when the ad is tapped. |
|
||||
| `THIRD_QUARTILE` | Android, iOS | Fires when the ad playhead crosses third quartile. |
|
||||
| `UNKNOWN` | iOS | An unknown event has fired |
|
||||
| `USER_CLOSE` | Android | Fires when the ad is closed by the user. |
|
||||
| `VIDEO_CLICKED` | Android | Fires when the non-clickthrough portion of a video ad is clicked. |
|
||||
| `VIDEO_ICON_CLICKED` | Android | Fires when a user clicks a video icon. |
|
||||
| `VOLUME_CHANGED` | Android | Fires when the ad volume has changed. |
|
||||
| `VOLUME_MUTED` | Android | Fires when the ad volume has been muted. |
|
||||
|
||||
Payload:
|
||||
|
||||
| Property | Type | Description |
|
||||
|----------|--------|-----------------------|
|
||||
| event | string | The ad event received |
|
||||
| Property | Type | Description |
|
||||
|----------|---------|-----------------------|
|
||||
| event | AdEvent | The ad event received |
|
||||
|
||||
Example:
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user