react-native-applovin-max 9.0.0 → 9.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/android/build.gradle +3 -3
  2. package/android/src/main/java/com/applovin/reactnative/AppLovinMAXAdView.java +1 -1
  3. package/android/src/main/java/com/applovin/reactnative/AppLovinMAXModuleImpl.java +2 -1
  4. package/ios/AppLovinMAX.mm +2 -1
  5. package/lib/commonjs/AdView.js +60 -76
  6. package/lib/commonjs/AdView.js.map +1 -1
  7. package/lib/commonjs/AppLovinMAX.js +43 -29
  8. package/lib/commonjs/AppLovinMAX.js.map +1 -1
  9. package/lib/commonjs/ErrorCode.js +24 -31
  10. package/lib/commonjs/ErrorCode.js.map +1 -1
  11. package/lib/commonjs/EventEmitter.js +22 -1
  12. package/lib/commonjs/EventEmitter.js.map +1 -1
  13. package/lib/commonjs/Utils.js +22 -4
  14. package/lib/commonjs/Utils.js.map +1 -1
  15. package/lib/commonjs/nativeAd/NativeAdView.js +33 -22
  16. package/lib/commonjs/nativeAd/NativeAdView.js.map +1 -1
  17. package/lib/commonjs/nativeAd/NativeAdViewComponents.js +84 -41
  18. package/lib/commonjs/nativeAd/NativeAdViewComponents.js.map +1 -1
  19. package/lib/commonjs/nativeAd/NativeAdViewProvider.js +29 -0
  20. package/lib/commonjs/nativeAd/NativeAdViewProvider.js.map +1 -1
  21. package/lib/commonjs/specs/AppLovinMAXAdViewNativeComponent.js +27 -0
  22. package/lib/commonjs/specs/AppLovinMAXAdViewNativeComponent.js.map +1 -1
  23. package/lib/commonjs/specs/AppLovinMAXNativeAdViewNativeComponent.js +23 -0
  24. package/lib/commonjs/specs/AppLovinMAXNativeAdViewNativeComponent.js.map +1 -1
  25. package/lib/commonjs/specs/NativeAppLovinMAXModule.js +7 -0
  26. package/lib/commonjs/specs/NativeAppLovinMAXModule.js.map +1 -1
  27. package/lib/commonjs/types/AdInfo.js +13 -16
  28. package/lib/commonjs/types/AdInfo.js.map +1 -1
  29. package/lib/module/AdView.js +60 -76
  30. package/lib/module/AdView.js.map +1 -1
  31. package/lib/module/AppLovinMAX.js +44 -29
  32. package/lib/module/AppLovinMAX.js.map +1 -1
  33. package/lib/module/ErrorCode.js +24 -31
  34. package/lib/module/ErrorCode.js.map +1 -1
  35. package/lib/module/EventEmitter.js +22 -1
  36. package/lib/module/EventEmitter.js.map +1 -1
  37. package/lib/module/Utils.js +22 -4
  38. package/lib/module/Utils.js.map +1 -1
  39. package/lib/module/nativeAd/NativeAdView.js +34 -21
  40. package/lib/module/nativeAd/NativeAdView.js.map +1 -1
  41. package/lib/module/nativeAd/NativeAdViewComponents.js +87 -40
  42. package/lib/module/nativeAd/NativeAdViewComponents.js.map +1 -1
  43. package/lib/module/nativeAd/NativeAdViewProvider.js +30 -0
  44. package/lib/module/nativeAd/NativeAdViewProvider.js.map +1 -1
  45. package/lib/module/specs/AppLovinMAXAdViewNativeComponent.js +28 -0
  46. package/lib/module/specs/AppLovinMAXAdViewNativeComponent.js.map +1 -1
  47. package/lib/module/specs/AppLovinMAXNativeAdViewNativeComponent.js +24 -0
  48. package/lib/module/specs/AppLovinMAXNativeAdViewNativeComponent.js.map +1 -1
  49. package/lib/module/specs/NativeAppLovinMAXModule.js +9 -0
  50. package/lib/module/specs/NativeAppLovinMAXModule.js.map +1 -1
  51. package/lib/module/types/AdInfo.js +13 -16
  52. package/lib/module/types/AdInfo.js.map +1 -1
  53. package/lib/typescript/src/AdView.d.ts +27 -21
  54. package/lib/typescript/src/AdView.d.ts.map +1 -1
  55. package/lib/typescript/src/AppLovinMAX.d.ts +22 -21
  56. package/lib/typescript/src/AppLovinMAX.d.ts.map +1 -1
  57. package/lib/typescript/src/ErrorCode.d.ts +24 -31
  58. package/lib/typescript/src/ErrorCode.d.ts.map +1 -1
  59. package/lib/typescript/src/EventEmitter.d.ts +16 -0
  60. package/lib/typescript/src/EventEmitter.d.ts.map +1 -1
  61. package/lib/typescript/src/Utils.d.ts +15 -0
  62. package/lib/typescript/src/Utils.d.ts.map +1 -1
  63. package/lib/typescript/src/nativeAd/NativeAdView.d.ts +15 -7
  64. package/lib/typescript/src/nativeAd/NativeAdView.d.ts.map +1 -1
  65. package/lib/typescript/src/nativeAd/NativeAdViewComponents.d.ts +65 -1
  66. package/lib/typescript/src/nativeAd/NativeAdViewComponents.d.ts.map +1 -1
  67. package/lib/typescript/src/nativeAd/NativeAdViewProvider.d.ts +17 -0
  68. package/lib/typescript/src/nativeAd/NativeAdViewProvider.d.ts.map +1 -1
  69. package/lib/typescript/src/specs/AppLovinMAXAdViewNativeComponent.d.ts +45 -1
  70. package/lib/typescript/src/specs/AppLovinMAXAdViewNativeComponent.d.ts.map +1 -1
  71. package/lib/typescript/src/specs/AppLovinMAXNativeAdViewNativeComponent.d.ts +57 -6
  72. package/lib/typescript/src/specs/AppLovinMAXNativeAdViewNativeComponent.d.ts.map +1 -1
  73. package/lib/typescript/src/specs/NativeAppLovinMAXModule.d.ts +10 -0
  74. package/lib/typescript/src/specs/NativeAppLovinMAXModule.d.ts.map +1 -1
  75. package/lib/typescript/src/types/AdEvent.d.ts +10 -4
  76. package/lib/typescript/src/types/AdEvent.d.ts.map +1 -1
  77. package/lib/typescript/src/types/AdInfo.d.ts +78 -85
  78. package/lib/typescript/src/types/AdInfo.d.ts.map +1 -1
  79. package/lib/typescript/src/types/AdProps.d.ts +14 -15
  80. package/lib/typescript/src/types/AdProps.d.ts.map +1 -1
  81. package/lib/typescript/src/types/AdViewProps.d.ts +28 -29
  82. package/lib/typescript/src/types/AdViewProps.d.ts.map +1 -1
  83. package/lib/typescript/src/types/AppLovinMAX.d.ts +50 -53
  84. package/lib/typescript/src/types/AppLovinMAX.d.ts.map +1 -1
  85. package/lib/typescript/src/types/BannerAd.d.ts +22 -17
  86. package/lib/typescript/src/types/BannerAd.d.ts.map +1 -1
  87. package/lib/typescript/src/types/CMPError.d.ts +7 -4
  88. package/lib/typescript/src/types/CMPError.d.ts.map +1 -1
  89. package/lib/typescript/src/types/Configuration.d.ts +12 -14
  90. package/lib/typescript/src/types/Configuration.d.ts.map +1 -1
  91. package/lib/typescript/src/types/FullscreenAd.d.ts +39 -46
  92. package/lib/typescript/src/types/FullscreenAd.d.ts.map +1 -1
  93. package/lib/typescript/src/types/MRecAd.d.ts +7 -3
  94. package/lib/typescript/src/types/MRecAd.d.ts.map +1 -1
  95. package/lib/typescript/src/types/NativeAd.d.ts +12 -11
  96. package/lib/typescript/src/types/NativeAd.d.ts.map +1 -1
  97. package/lib/typescript/src/types/NativeAdViewProps.d.ts +4 -3
  98. package/lib/typescript/src/types/NativeAdViewProps.d.ts.map +1 -1
  99. package/lib/typescript/src/types/Privacy.d.ts +13 -6
  100. package/lib/typescript/src/types/Privacy.d.ts.map +1 -1
  101. package/lib/typescript/src/types/RewardedAd.d.ts +7 -5
  102. package/lib/typescript/src/types/RewardedAd.d.ts.map +1 -1
  103. package/lib/typescript/src/types/ViewAd.d.ts +46 -50
  104. package/lib/typescript/src/types/ViewAd.d.ts.map +1 -1
  105. package/package.json +1 -1
  106. package/react-native-applovin-max.podspec +2 -2
  107. package/src/AdView.tsx +62 -80
  108. package/src/AppLovinMAX.ts +39 -29
  109. package/src/ErrorCode.ts +24 -31
  110. package/src/EventEmitter.ts +20 -2
  111. package/src/Utils.ts +20 -1
  112. package/src/nativeAd/NativeAdView.tsx +31 -21
  113. package/src/nativeAd/NativeAdViewComponents.tsx +97 -38
  114. package/src/nativeAd/NativeAdViewProvider.tsx +23 -0
  115. package/src/specs/AppLovinMAXAdViewNativeComponent.ts +62 -1
  116. package/src/specs/AppLovinMAXNativeAdViewNativeComponent.ts +70 -6
  117. package/src/specs/NativeAppLovinMAXModule.ts +75 -55
  118. package/src/types/AdEvent.ts +10 -4
  119. package/src/types/AdInfo.ts +78 -85
  120. package/src/types/AdProps.ts +14 -15
  121. package/src/types/AdViewProps.ts +28 -29
  122. package/src/types/AppLovinMAX.ts +50 -53
  123. package/src/types/BannerAd.ts +22 -17
  124. package/src/types/CMPError.ts +7 -4
  125. package/src/types/Configuration.ts +12 -14
  126. package/src/types/FullscreenAd.ts +39 -46
  127. package/src/types/MRecAd.ts +7 -3
  128. package/src/types/NativeAd.ts +12 -11
  129. package/src/types/NativeAdViewProps.ts +4 -3
  130. package/src/types/Privacy.ts +13 -6
  131. package/src/types/RewardedAd.ts +7 -5
  132. package/src/types/ViewAd.ts +46 -50
@@ -1,73 +1,71 @@
1
1
  import type { ErrorCode } from '../ErrorCode';
2
2
  import type { AdViewId } from './AdViewProps';
3
3
  /**
4
- * Represents an ad that has been served by AppLovin MAX.
4
+ * Represents a successfully loaded ad served by AppLovin MAX.
5
5
  */
6
6
  export type AdInfo = {
7
7
  /**
8
- * The ad unit ID for which this ad was loaded.
8
+ * The ad unit ID that was used to load this ad.
9
9
  */
10
10
  adUnitId: string;
11
11
  /**
12
- * The format of this ad.
12
+ * The format of the ad.
13
13
  */
14
14
  adFormat: string;
15
15
  /**
16
- * The unique ID of the native UI component AdView.
16
+ * The unique identifier of the associated native AdView component, if any.
17
17
  */
18
18
  adViewId?: AdViewId;
19
19
  /**
20
- * The creative ID tied to the ad, if any. You can report creative issues to the corresponding
21
- * ad network using this ID.
20
+ * The creative ID associated with the ad.
21
+ * This can be used to report issues with the creative.
22
22
  *
23
- * @see {@link https://support.applovin.com/hc/en-us/articles/13986039797389-Creative-Debugger#h_01HC10588YYDNZMS1GPCVRD2E7}
23
+ * @see https://support.applovin.com/hc/en-us/articles/13986039797389
24
24
  */
25
25
  creativeId?: string | null;
26
26
  /**
27
- * The ad network from which this ad was loaded.
28
- *
29
- * @see {@link https://support.applovin.com/hc/en-us/articles/13986039797389-Creative-Debugger#h_01HC10588YWTJHYE1E35HWQTX7}
27
+ * The name of the ad network that served the ad.
30
28
  */
31
29
  networkName: string;
32
30
  /**
33
- * The ad network placement for which this ad was loaded.
31
+ * The name of the placement as configured on the ad network side.
34
32
  */
35
33
  networkPlacement: string;
36
34
  /**
37
- * The placement name that you assign when you integrate each ad format, for granular reporting
38
- * in postbacks.
35
+ * The custom placement name defined in your integration.
36
+ * Used for postback reporting.
39
37
  */
40
38
  placement?: string | null;
41
39
  /**
42
- * The ad’s revenue amount. In the case where no revenue amount exists, or it is not available
43
- * yet, returns 0.
40
+ * The revenue generated from the ad impression, in USD.
41
+ * Defaults to 0 if not available.
44
42
  */
45
43
  revenue: number;
46
44
  /**
47
- * The precision of the revenue value for this ad.
45
+ * The precision level of the revenue value reported for this ad.
48
46
  *
49
- * Possible values are:
50
- * - "publisher_defined" - If the revenue is the price assigned to the line item by the publisher.
51
- * - "exact" - If the revenue is the resulting price of a real-time auction.
52
- * - "estimated" - If the revenue is the price obtained by auto-CPM.
53
- * - "undefined" - If we do not have permission from the ad network to share impression-level data.
54
- * - "" - An empty string, if revenue and precision are not valid (for example, in test mode).
47
+ * Possible values:
48
+ * - `"exact"` Revenue from a real-time auction.
49
+ * - `"estimated"` Revenue estimated via auto-CPM.
50
+ * - `"publisher_defined"` Revenue set manually by the publisher.
51
+ * - `"undefined"` The ad network does not permit impression-level revenue data.
52
+ * - `""` Empty when revenue and precision are unavailable (e.g., in test mode).
55
53
  */
56
54
  revenuePrecision: string;
57
55
  /**
58
- * The DSP network that provides the loaded ad when the ad is served through AppLovin Exchange.
56
+ * The name of the DSP (Demand-Side Platform), if served through AppLovin Exchange.
59
57
  */
60
58
  dspName?: string | null;
61
59
  /**
62
- * The latency of the mediation ad load request in milliseconds.
60
+ * Total mediation load time in milliseconds.
63
61
  */
64
62
  latencyMillis: number;
65
63
  /**
66
- * The underlying waterfall of ad responses.
64
+ * The full ad waterfall associated with this ad request.
67
65
  */
68
66
  waterfall?: AdWaterfallInfo;
69
67
  /**
70
- * The native ad info.
68
+ * The native ad, if available.
71
69
  */
72
70
  nativeAd?: AdNativeInfo | null;
73
71
  /**
@@ -79,225 +77,220 @@ export type AdInfo = {
79
77
  };
80
78
  };
81
79
  /**
82
- * Encapsulates various data for MAX load errors.
80
+ * Represents a failure when attempting to load an ad.
83
81
  */
84
82
  export type AdLoadFailedInfo = {
85
83
  /**
86
- * The ad unit ID for which this ad was loaded.
84
+ * The ad unit ID for which the load failed.
87
85
  */
88
86
  adUnitId: string;
89
87
  /**
90
- * The unique ID of the native UI component AdView.
88
+ * The native AdView component ID, if available.
91
89
  */
92
90
  adViewId?: AdViewId;
93
91
  /**
94
- * The error code for the error.
92
+ * AppLovin MAX-defined error code.
95
93
  */
96
94
  code: ErrorCode;
97
95
  /**
98
- * The error message for the error.
96
+ * Descriptive message for the error.
99
97
  */
100
98
  message?: string | null;
101
99
  /**
102
- * The mediated network's error code for the error.
100
+ * Error code from the mediated network.
103
101
  */
104
102
  mediatedNetworkErrorCode: number;
105
103
  /**
106
- * The mediated network's error message for the error.
104
+ * Error message from the mediated network.
107
105
  */
108
106
  mediatedNetworkErrorMessage: string;
109
107
  /**
110
- * The message for the error.
108
+ * Additional debug information for ad load failure (legacy).
111
109
  */
112
110
  adLoadFailureInfo?: string | null;
113
111
  /**
114
- * The underlying waterfall of ad responses.
112
+ * Waterfall data associated with the failed request.
115
113
  */
116
114
  waterfall?: AdWaterfallInfo | null;
117
115
  };
118
116
  /**
119
- * Encapsulates various data for MAX display errors.
117
+ * Represents an error that occurred when displaying an ad.
120
118
  */
121
119
  export type AdDisplayFailedInfo = AdInfo & {
122
120
  /**
123
- * The error code for the error.
121
+ * AppLovin MAX-defined error code.
124
122
  */
125
123
  code: ErrorCode;
126
124
  /**
127
- * The error message for the error.
125
+ * Descriptive message for the error.
128
126
  */
129
127
  message?: string | null;
130
128
  /**
131
- * The mediated network's error code for the error.
129
+ * Error code from the mediated network.
132
130
  */
133
131
  mediatedNetworkErrorCode: number;
134
132
  /**
135
- * The mediated network's error message for the error.
133
+ * Error message from the mediated network.
136
134
  */
137
135
  mediatedNetworkErrorMessage: string;
138
136
  };
139
137
  /**
140
- * Represents a reward given to the user.
138
+ * Represents a successful reward event from a rewarded ad.
141
139
  */
142
140
  export type AdRewardInfo = AdInfo & {
143
141
  /**
144
- * The reward label.
142
+ * The label of the reward.
145
143
  */
146
144
  rewardLabel?: string | null;
147
145
  /**
148
- * The rewarded amount.
146
+ * The reward amount, as a string.
149
147
  */
150
148
  rewardAmount: string;
151
149
  };
152
150
  /**
153
- * Represents a native ad.
151
+ * Describes metadata for a native ad, including asset availability.
154
152
  */
155
153
  export type AdNativeInfo = {
156
154
  /**
157
- * The native ad title text for {@link TitleView}.
155
+ * Title text of the native ad for use in {@link TitleView}.
158
156
  */
159
157
  title?: string;
160
158
  /**
161
- * The native ad advertiser text for {@link AdvertiserView}.
159
+ * Advertiser name for {@link AdvertiserView}.
162
160
  */
163
161
  advertiser?: string;
164
162
  /**
165
- * The native ad body text for {@link BodyView}}.
163
+ * Body text for {@link BodyView}.
166
164
  */
167
165
  body?: string;
168
166
  /**
169
- * The native ad CTA (call to action) text for {@link CallToActionView}.
167
+ * Call-to-action label for {@link CallToActionView}.
170
168
  */
171
169
  callToAction?: string;
172
170
  /**
173
- * The star rating of the native ad in the [0.0, 5.0] range for {@link StarRatingView}, if provided by the network.
171
+ * Star rating (0.0 to 5.0) for {@link StarRatingView}.
174
172
  */
175
173
  starRating?: number;
176
174
  /**
177
- * The aspect ratio (width-to-height) for {@link MediaView} if provided by the network.
175
+ * Aspect ratio (width / height) for {@link MediaView}, if available.
178
176
  */
179
177
  mediaContentAspectRatio?: number;
180
178
  /**
181
- * Whether or not the content for {@link IconView} is available.
179
+ * Whether an icon image is available for {@link IconView}.
182
180
  */
183
181
  isIconImageAvailable: boolean;
184
182
  /**
185
- * Whether or not the content for {@link OptionsView} is available.
183
+ * Whether the options menu view is available for {@link OptionsView}.
186
184
  */
187
185
  isOptionsViewAvailable: boolean;
188
186
  /**
189
- * Whether or not the content for {@link MediaView} is available.
187
+ * Whether a media view is available for {@link MediaView}.
190
188
  */
191
189
  isMediaViewAvailable: boolean;
192
190
  };
193
191
  /**
194
- * Represents an ad waterfall, encapsulating various metadata such as total latency, underlying ad
195
- * responses, etc.
192
+ * Contains metadata about the ad waterfall evaluated during an ad request.
196
193
  */
197
194
  export type AdWaterfallInfo = {
198
195
  /**
199
- * The ad waterfall name.
196
+ * The waterfall name for this request.
200
197
  */
201
198
  name: string;
202
199
  /**
203
- * The ad waterfall test name.
200
+ * The test name, if the waterfall is part of an A/B test.
204
201
  */
205
202
  testName: string;
206
203
  /**
207
- * The list of {@link AdNetworkResponseInfo} info objects relating to each ad in the waterfall,
208
- * ordered by their position.
204
+ * Ordered list of network responses attempted during mediation.
209
205
  */
210
206
  networkResponses: AdNetworkResponseInfo[];
211
207
  /**
212
- * The total latency in milliseconds for this waterfall to finish processing.
208
+ * Total time taken to complete the waterfall, in milliseconds.
213
209
  */
214
210
  latencyMillis: number;
215
211
  };
216
212
  /**
217
- * This enum contains possible states of an ad in the waterfall.
218
- * Each adapter response {@link AdNetworkResponseInfo} corresponds to one of these states.
213
+ * Enumeration of possible ad load states for each network in the waterfall.
219
214
  */
220
215
  export declare enum AdLoadState {
221
216
  /**
222
- * The AppLovin MAX SDK did not attempt to load an ad from this network in the waterfall because
223
- * an ad higher in the waterfall loaded successfully.
217
+ * SDK did not attempt to load an ad from this network.
224
218
  */
225
219
  LoadStateAdLoadNotAttempted = 0,
226
220
  /**
227
- * An ad successfully loaded from this network.
221
+ * An ad was successfully loaded from this network.
228
222
  */
229
223
  LoadStateAdLoaded = 1,
230
224
  /**
231
- * An ad failed to load from this network.
225
+ * The network failed to load an ad.
232
226
  */
233
227
  LoadStateAdFailedToLoad = 2
234
228
  }
235
229
  /**
236
- * Encapsulates load and display errors.
230
+ * General error info object used in waterfall response details.
237
231
  */
238
232
  export type AdErrorInfo = {
239
233
  /**
240
- * The error code for the error.
234
+ * AppLovin MAX-defined error code.
241
235
  */
242
236
  code: ErrorCode;
243
237
  /**
244
- * The error message for the error.
238
+ * Descriptive error message.
245
239
  */
246
240
  message?: string;
247
241
  /**
248
- * @deprecated
242
+ * @deprecated Use `message` instead.
249
243
  */
250
244
  adLoadFailureInfo?: string;
251
245
  };
252
246
  /**
253
- * This class represents an ad response in a waterfall.
247
+ * Contains information about a single mediated network response.
254
248
  */
255
249
  export type AdNetworkResponseInfo = {
256
250
  /**
257
- * The state of the ad that this object represents. For more info, see the {@link AdLoadState} enum.
251
+ * The result of the load attempt.
258
252
  */
259
253
  adLoadState: AdLoadState;
260
254
  /**
261
- * The mediated network that this adapter response info object represents.
255
+ * Metadata about the mediated network.
262
256
  */
263
257
  mediatedNetwork?: AdMediatedNetworkInfo;
264
258
  /**
265
- * The credentials used to load an ad from this adapter, as entered in the AppLovin MAX dashboard.
259
+ * A key-value map of adapter-specific credentials, as configured in the MAX dashboard.
266
260
  */
267
261
  credentials: {
268
262
  [key: string]: string | number | boolean | object | null;
269
263
  };
270
264
  /**
271
- * The ad load error this network response resulted in. Will be unavailable if an attempt to
272
- * load an ad has not been made or an ad was loaded successfully (i.e. {@link adLoadState}
273
- * is NOT LoadStateAdFailedToLoad).
265
+ * The ad load error resulting from this network response. This will be unavailable if no ad load
266
+ * attempt was made or if the ad loaded successfully (i.e., [adLoadState] is NOT [LoadStateAdFailedToLoad]).
274
267
  */
275
268
  error?: AdErrorInfo;
276
269
  /**
277
- * The amount of time the network took to load (either successfully or not) an ad, in milliseconds.
278
- * If an attempt to load an ad has not been made (i.e. {@link adLoadState} is LoadStateAdLoadNotAttempted),
279
- * the value will be -1.
270
+ * The amount of time, in milliseconds, the network took to load an ad—regardless of success.
271
+ * If no ad load attempt was made (i.e., [adLoadState] is [LoadStateAdLoadNotAttempted]),
272
+ * this value will be -1.
280
273
  */
281
274
  latencyMillis: number;
282
275
  };
283
276
  /**
284
- * This class represents information for a mediated network.
277
+ * Metadata about a mediated ad network.
285
278
  */
286
279
  export type AdMediatedNetworkInfo = {
287
280
  /**
288
- * The name of the mediated network.
281
+ * Name of the mediated network.
289
282
  */
290
283
  name: string;
291
284
  /**
292
- * The class name of the adapter for the mediated network.
285
+ * Fully-qualified adapter class name.
293
286
  */
294
287
  adapterClassName: string;
295
288
  /**
296
- * The version of the adapter for the mediated network.
289
+ * Version of the adapter.
297
290
  */
298
291
  adapterVersion: string;
299
292
  /**
300
- * The version of the mediated network’s SDK.
293
+ * Version of the mediated network’s SDK.
301
294
  */
302
295
  sdkVersion: string;
303
296
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AdInfo.d.ts","sourceRoot":"","sources":["../../../../src/types/AdInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;;;;OASG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,IAAI,EAAE;QACF,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAClB,CAAC;CACL,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,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+1,56 @@
1
1
  import type { AdDisplayFailedInfo, AdInfo, AdLoadFailedInfo } from './AdInfo';
2
2
  /**
3
- * Local extra parameters can be of type: string, number, boolean, array, map, and null.
3
+ * Represents the allowed value types for local extra parameters passed to the ad adapter.
4
+ * Can be a primitive, object, or null.
4
5
  */
5
6
  export type LocalExtraParameterValue = string | number | boolean | object | null;
6
7
  /**
7
- * Defines the base properties for the UI component ads i.e {@link AdView} and {@link NativeAdView}.
8
+ * Defines the base props shared by ad UI components like {@link AdView} and {@link NativeAdView}.
8
9
  */
9
10
  export type AdProps = {
10
11
  /**
11
- * A string value representing the ad unit ID to load ads for.
12
+ * The ad unit ID used to load ads.
12
13
  */
13
14
  adUnitId: string;
14
15
  /**
15
- * A string value representing the placement name that you assign when you integrate each ad
16
- * format, for granular reporting in ad events.
16
+ * The placement name defined in your integration, used for granular reporting.
17
17
  */
18
18
  placement?: string | null;
19
19
  /**
20
- * The custom data to tie the showing ad to.
20
+ * Optional custom data to attach to the ad, used for analytics or targeting.
21
21
  */
22
22
  customData?: string | null;
23
23
  /**
24
- * A dictionary value representing the extra parameters to set a list of key-value string pairs
25
- * for the ad.
24
+ * Extra parameters to be sent as key-value string pairs.
26
25
  */
27
26
  extraParameters?: {
28
27
  [key: string]: string;
29
28
  };
30
29
  /**
31
- * A dictionary value representing the local extra parameters to set a list of key-value pairs
32
- * to pass to the adapter instances.
30
+ * Local extra parameters sent to the adapter instance.
31
+ * Supports string and boolean values only.
33
32
  */
34
33
  localExtraParameters?: {
35
34
  [key: string]: string | boolean;
36
35
  };
37
36
  /**
38
- * A callback fuction that {@link AdView} or {@link NativeAdView} fires when it loads a new ad.
37
+ * Called when a new ad is successfully loaded.
39
38
  */
40
39
  onAdLoaded?: (adInfo: AdInfo) => void;
41
40
  /**
42
- * A callback fuction that {@link AdView} or {@link NativeAdView} fires when it could not load a new ad.
41
+ * Called when the SDK fails to load a new ad.
43
42
  */
44
43
  onAdLoadFailed?: (error: AdLoadFailedInfo) => void;
45
44
  /**
46
- * A callback fuction that {@link AdView} or {@link NativeAdView} fires when it fails to display the ad.
45
+ * Called when the ad fails to display after being loaded.
47
46
  */
48
47
  onAdDisplayFailed?: (error: AdDisplayFailedInfo) => void;
49
48
  /**
50
- * A callback fuction that {@link AdView} or {@link NativeAdView} fires when the user clicks the ad.
49
+ * Called when the ad is clicked by the user.
51
50
  */
52
51
  onAdClicked?: (adInfo: AdInfo) => void;
53
52
  /**
54
- * A callback fuction that {@link AdView} or {@link NativeAdView} fires when it pays ad revenue to the publisher.
53
+ * Called when ad revenue is paid to the publisher.
55
54
  */
56
55
  onAdRevenuePaid?: (adInfo: AdInfo) => void;
57
56
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AdProps.d.ts","sourceRoot":"","sources":["../../../../src/types/AdProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE9E;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;AAEjF;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IAClB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,eAAe,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAE5C;;;OAGG;IACH,oBAAoB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAE3D;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAEtC;;OAEG;IACH,cAAc,CAAC,EA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I,CAAC;IAEzD;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAEvC;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C,CAAC"}
@@ -2,85 +2,84 @@ import type { AdProps, LocalExtraParameterValue } from './AdProps';
2
2
  import type { AdInfo } from './AdInfo';
3
3
  import type { AdFormat } from '../AdView';
4
4
  /**
5
- * A handler of {@link AdView}.
5
+ * A reference to the {@link AdView} instance, allowing imperative control.
6
6
  */
7
7
  export type AdViewHandler = {
8
8
  /**
9
- * If the {@link loadOnMount} attribute is set to false, you can call this API to start loading ads in this AdView.
9
+ * Triggers a manual ad load starting.
10
+ * This is only needed if {@link loadOnMount} is set to `false`.
10
11
  */
11
12
  loadAd(): void;
12
13
  };
13
14
  /**
14
- * A unique identifier for referencing a specific AdView instance.
15
+ * A unique identifier for referencing a specific {@link AdView} instance.
15
16
  *
16
- * - If the value is a number, it represents the ID of a preloaded or assigned AdView.
17
- * - A value of `undefined` indicates that the AdView has not been preloaded or assigned an ID yet.
17
+ * - A number represents the ID of a preloaded or managed AdView.
18
+ * - `undefined` means the AdView is not preloaded or assigned an ID.
18
19
  */
19
20
  export type AdViewId = number | undefined;
20
21
  /**
21
- * Represents an {@link AdView} - Banner / MREC.
22
+ * Props used to configure and render an {@link AdView} (i.e. Banner or MREC).
22
23
  */
23
24
  export type AdViewProps = AdProps & {
24
25
  /**
25
- * An enum value representing the ad format to load ads for. Must be either
26
- * {@link AdFormat.BANNER} or {@link AdFormat.MREC}.
26
+ * The ad format to load for this view.
27
+ * Must be {@link AdFormat.BANNER} or {@link AdFormat.MREC}.
27
28
  */
28
29
  adFormat: AdFormat;
29
30
  /**
30
- * A unique identifier representing the AdView instance.
31
- * Used to manage and track the specific AdView.
31
+ * A unique identifier for the AdView instance.
32
+ * Used for tracking and preloading specific ad views.
32
33
  */
33
34
  adViewId?: AdViewId;
34
35
  /**
35
- * A boolean indicating whether adaptive banners are enabled.
36
+ * Enables adaptive banner sizing if `true`.
37
+ * Ignored for MREC ads.
36
38
  */
37
39
  adaptiveBannerEnabled?: boolean;
38
40
  /**
39
- * A boolean indicating whether auto-refresh is enabled.
40
- * Auto-refresh is enabled by default.
41
+ * Enables or disables automatic ad refresh.
42
+ * Defaults to `true`.
41
43
  */
42
44
  autoRefresh?: boolean;
43
45
  /**
44
- * A boolean indicating whether an ad should load automatically
45
- * when the {@link AdView} is mounted. Defaults to `true`.
46
+ * If `true`, the ad will be loaded automatically when the component mounts.
47
+ * Set to `false` for ads to be loaded manually using the ref after the component mounts.
48
+ *
49
+ * @default true
46
50
  */
47
51
  loadOnMount?: boolean;
48
52
  /**
49
- * A callback function triggered when the {@link AdView} expands the ad.
50
- *
51
- * @param adInfo - Information about the ad that was expanded.
53
+ * Called when the ad is expanded.
52
54
  */
53
55
  onAdExpanded?: (adInfo: AdInfo) => void;
54
56
  /**
55
- * A callback function triggered when the {@link AdView} collapses the ad.
56
- *
57
- * @param adInfo - Information about the ad that was collapsed.
57
+ * Called when the ad collapses back to its original state.
58
58
  */
59
59
  onAdCollapsed?: (adInfo: AdInfo) => void;
60
60
  };
61
61
  /**
62
- * A list of options to create a native UI component for preloading {@link AdView}.
62
+ * Options used when preloading a native UI {@link AdView} component.
63
63
  */
64
64
  export type NativeUIComponentAdViewOptions = {
65
65
  /**
66
- * A string value representing the placement name that you assign when you integrate each ad
67
- * format, for granular reporting in ad events.
66
+ * The placement name used for analytics and reporting.
68
67
  */
69
68
  placement?: string | null;
70
69
  /**
71
- * The custom data to tie the showing ad to.
70
+ * Custom data to associate with the ad for postbacks or targeting.
72
71
  */
73
72
  customData?: string | null;
74
73
  /**
75
- * A dictionary value representing the extra parameters to set a list of key-value string pairs
76
- * for the ad.
74
+ * A dictionary of key-value pairs used to pass extra parameters
75
+ * to the SDK (string-only values).
77
76
  */
78
77
  extraParameters?: {
79
78
  [key: string]: string | null;
80
79
  };
81
80
  /**
82
- * A dictionary value representing the local extra parameters to set a list of key-value pairs
83
- * to pass to the adapter instances.
81
+ * A dictionary of key-value pairs used to pass local extra parameters
82
+ * to the mediation adapter (string, boolean, number, etc.).
84
83
  */
85
84
  localExtraParameters?: {
86
85
  [key: string]: LocalExtraParameterValue;
@@ -1 +1 @@
1
- {"version":3,"file":"AdViewProps.d.ts","sourceRoot":"","sources":["../../../../src/types/AdViewProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB;;OAEG;IACH,MAAM,IAAI,IAAI,CAAC;CAClB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG;IAChC;;;OAGG;IACH,QAAQ,EAAE,QAAQ,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAExC;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG;IACzC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;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