-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathAdEvent.ts
150 lines (125 loc) · 3.4 KB
/
AdEvent.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
import type { Ad, AdBreak, PlayerEventType } from 'react-native-theoplayer';
import type { Event } from './Event';
export interface AdEvent extends Event<PlayerEventType.AD_EVENT> {
/**
* Type of ad event.
*/
subType: AdEventType;
/**
* The ad or adbreak for which the event was dispatched.
*/
ad: Ad | AdBreak;
}
export enum AdEventType {
/**
* Dispatched when an ad break is added.
*/
ADD_AD_BREAK = 'addadbreak',
/**
* Dispatched when an ad break is removed.
*/
REMOVE_AD_BREAK = 'removeadbreak',
/**
* Dispatched when an ad is loaded.
*/
AD_LOADED = 'adloaded',
/**
* Dispatched when an ad break begins.
*/
AD_BREAK_BEGIN = 'adbreakbegin',
/**
* Dispatched when an ad break ends.
*/
AD_BREAK_END = 'adbreakend',
/**
* Dispatched when an ad break changes.
*/
AD_BREAK_CHANGE = 'adbreakchange',
/**
* Dispatched when an ad break is updated.
*/
UPDATE_AD_BREAK = 'updateadbreak',
/**
* Dispatched when an ad is added.
*/
ADD_AD = 'addad',
/**
* Dispatched when an ad begins.
*/
AD_BEGIN = 'adbegin',
/**
* Dispatched when an ad ends.
*/
AD_END = 'adend',
/**
* Dispatched when an ad is updated.
*/
UPDATE_AD = 'updatead',
/**
* Dispatched when an ad reaches the first quartile.
*/
AD_FIRST_QUARTILE = 'adfirstquartile',
/**
* Dispatched when an ad reaches the mid point.
*/
AD_MIDPOINT = 'admidpoint',
/**
* Dispatched when an ad reaches the third quartile.
*/
AD_THIRD_QUARTILE = 'adthirdquartile',
/**
* Dispatched when an ad is skipped.
*/
AD_SKIP = 'adskip',
/**
* Dispatched when an ad counts as an impression.
*/
AD_IMPRESSION = 'adimpression',
/**
* Dispatched when an ad error occurs.
*/
AD_ERROR = 'aderror',
/**
* Dispatched when an ads list is loaded.
*/
AD_METADATA = 'admetadata',
/**
* Dispatched when the ad has stalled playback to buffer.
*/
AD_BUFFERING = 'adbuffering',
/**
* Dispatched when an ad is clicked.
*
* @remarks
* <br/> - Available only on iOS and Android.
*/
AD_CLICKED = 'adclicked',
/**
* Dispatched when a non-clickthrough portion of an ad is tapped.
*
* @remarks
* <br/> - Available only on iOS and Android.
*/
AD_TAPPED = 'adtapped',
/**
* Dispatched when the user has tapped an ad icon, for example the 'Why this ad' (WTA) icon.
*
* - On iOS and Android mobile apps, the SDK will navigate to the landing page.
* - On tvOS and Android TV, the SDK will present a modal dialog containing the VAST icon fallback image.
*
* @remarks
* <br/> - Available only on Android.
*
* @see <a href="https://developers.google.com/interactive-media-ads/docs/sdks/android/client-side/api/reference/com/google/ads/interactivemedia/v3/api/AdEvent.AdEventType#public-static-final-adevent.adeventtype-icon_tapped">Android IMA reference</a>
*/
AD_ICON_TAPPED = 'adicontapped',
/**
* Dispatched when the user has closed the icon fallback image dialog.
*
* @remarks
* <br/> - Available only on Android.
*
* @see <a href="https://developers.google.com/interactive-media-ads/docs/sdks/android/client-side/api/reference/com/google/ads/interactivemedia/v3/api/AdEvent.AdEventType#public-static-final-adevent.adeventtype-icon_fallback_image_closed">Android IMA reference</a>
*/
AD_ICON_FALLBACK_IMAGE_CLOSED = 'adiconfallbackimageclosed'
}