react-native-applovin-max 9.0.0 → 9.2.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 (147) hide show
  1. package/android/build.gradle +3 -3
  2. package/android/src/main/java/com/applovin/reactnative/AppLovinMAXAdView.java +4 -10
  3. package/android/src/main/java/com/applovin/reactnative/AppLovinMAXAdViewUiComponent.java +17 -8
  4. package/android/src/main/java/com/applovin/reactnative/AppLovinMAXModuleImpl.java +36 -14
  5. package/android/src/newarch/com/applovin/reactnative/AppLovinMAXModule.java +6 -6
  6. package/android/src/oldarch/com/applovin/reactnative/AppLovinMAXModule.java +6 -6
  7. package/ios/AppLovinMAX.mm +36 -13
  8. package/ios/AppLovinMAXAdView.h +1 -0
  9. package/ios/AppLovinMAXAdView.mm +3 -9
  10. package/ios/AppLovinMAXAdViewUIComponent.h +1 -2
  11. package/ios/AppLovinMAXAdViewUIComponent.mm +18 -10
  12. package/lib/commonjs/AdView.js +63 -79
  13. package/lib/commonjs/AdView.js.map +1 -1
  14. package/lib/commonjs/AppLovinMAX.js +43 -29
  15. package/lib/commonjs/AppLovinMAX.js.map +1 -1
  16. package/lib/commonjs/BannerAd.js +2 -3
  17. package/lib/commonjs/BannerAd.js.map +1 -1
  18. package/lib/commonjs/ErrorCode.js +24 -31
  19. package/lib/commonjs/ErrorCode.js.map +1 -1
  20. package/lib/commonjs/EventEmitter.js +22 -1
  21. package/lib/commonjs/EventEmitter.js.map +1 -1
  22. package/lib/commonjs/Utils.js +22 -4
  23. package/lib/commonjs/Utils.js.map +1 -1
  24. package/lib/commonjs/index.js +1 -2
  25. package/lib/commonjs/index.js.map +1 -1
  26. package/lib/commonjs/nativeAd/NativeAdView.js +34 -24
  27. package/lib/commonjs/nativeAd/NativeAdView.js.map +1 -1
  28. package/lib/commonjs/nativeAd/NativeAdViewComponents.js +85 -43
  29. package/lib/commonjs/nativeAd/NativeAdViewComponents.js.map +1 -1
  30. package/lib/commonjs/nativeAd/NativeAdViewProvider.js +30 -2
  31. package/lib/commonjs/nativeAd/NativeAdViewProvider.js.map +1 -1
  32. package/lib/commonjs/specs/AppLovinMAXAdViewNativeComponent.js +27 -0
  33. package/lib/commonjs/specs/AppLovinMAXAdViewNativeComponent.js.map +1 -1
  34. package/lib/commonjs/specs/AppLovinMAXNativeAdViewNativeComponent.js +23 -0
  35. package/lib/commonjs/specs/AppLovinMAXNativeAdViewNativeComponent.js.map +1 -1
  36. package/lib/commonjs/specs/NativeAppLovinMAXModule.js +7 -0
  37. package/lib/commonjs/specs/NativeAppLovinMAXModule.js.map +1 -1
  38. package/lib/commonjs/types/AdInfo.js +13 -16
  39. package/lib/commonjs/types/AdInfo.js.map +1 -1
  40. package/lib/module/AdView.js +62 -77
  41. package/lib/module/AdView.js.map +1 -1
  42. package/lib/module/AppLovinMAX.js +44 -29
  43. package/lib/module/AppLovinMAX.js.map +1 -1
  44. package/lib/module/BannerAd.js +2 -3
  45. package/lib/module/BannerAd.js.map +1 -1
  46. package/lib/module/ErrorCode.js +24 -31
  47. package/lib/module/ErrorCode.js.map +1 -1
  48. package/lib/module/EventEmitter.js +22 -1
  49. package/lib/module/EventEmitter.js.map +1 -1
  50. package/lib/module/Utils.js +22 -4
  51. package/lib/module/Utils.js.map +1 -1
  52. package/lib/module/nativeAd/NativeAdView.js +34 -21
  53. package/lib/module/nativeAd/NativeAdView.js.map +1 -1
  54. package/lib/module/nativeAd/NativeAdViewComponents.js +87 -40
  55. package/lib/module/nativeAd/NativeAdViewComponents.js.map +1 -1
  56. package/lib/module/nativeAd/NativeAdViewProvider.js +30 -0
  57. package/lib/module/nativeAd/NativeAdViewProvider.js.map +1 -1
  58. package/lib/module/specs/AppLovinMAXAdViewNativeComponent.js +28 -0
  59. package/lib/module/specs/AppLovinMAXAdViewNativeComponent.js.map +1 -1
  60. package/lib/module/specs/AppLovinMAXNativeAdViewNativeComponent.js +24 -0
  61. package/lib/module/specs/AppLovinMAXNativeAdViewNativeComponent.js.map +1 -1
  62. package/lib/module/specs/NativeAppLovinMAXModule.js +9 -0
  63. package/lib/module/specs/NativeAppLovinMAXModule.js.map +1 -1
  64. package/lib/module/types/AdInfo.js +13 -16
  65. package/lib/module/types/AdInfo.js.map +1 -1
  66. package/lib/typescript/src/AdView.d.ts +27 -21
  67. package/lib/typescript/src/AdView.d.ts.map +1 -1
  68. package/lib/typescript/src/AppLovinMAX.d.ts +22 -21
  69. package/lib/typescript/src/AppLovinMAX.d.ts.map +1 -1
  70. package/lib/typescript/src/BannerAd.d.ts.map +1 -1
  71. package/lib/typescript/src/ErrorCode.d.ts +24 -31
  72. package/lib/typescript/src/ErrorCode.d.ts.map +1 -1
  73. package/lib/typescript/src/EventEmitter.d.ts +16 -0
  74. package/lib/typescript/src/EventEmitter.d.ts.map +1 -1
  75. package/lib/typescript/src/Utils.d.ts +15 -0
  76. package/lib/typescript/src/Utils.d.ts.map +1 -1
  77. package/lib/typescript/src/nativeAd/NativeAdView.d.ts +15 -7
  78. package/lib/typescript/src/nativeAd/NativeAdView.d.ts.map +1 -1
  79. package/lib/typescript/src/nativeAd/NativeAdViewComponents.d.ts +65 -1
  80. package/lib/typescript/src/nativeAd/NativeAdViewComponents.d.ts.map +1 -1
  81. package/lib/typescript/src/nativeAd/NativeAdViewProvider.d.ts +17 -0
  82. package/lib/typescript/src/nativeAd/NativeAdViewProvider.d.ts.map +1 -1
  83. package/lib/typescript/src/specs/AppLovinMAXAdViewNativeComponent.d.ts +45 -1
  84. package/lib/typescript/src/specs/AppLovinMAXAdViewNativeComponent.d.ts.map +1 -1
  85. package/lib/typescript/src/specs/AppLovinMAXNativeAdViewNativeComponent.d.ts +57 -6
  86. package/lib/typescript/src/specs/AppLovinMAXNativeAdViewNativeComponent.d.ts.map +1 -1
  87. package/lib/typescript/src/specs/NativeAppLovinMAXModule.d.ts +13 -3
  88. package/lib/typescript/src/specs/NativeAppLovinMAXModule.d.ts.map +1 -1
  89. package/lib/typescript/src/types/AdEvent.d.ts +10 -4
  90. package/lib/typescript/src/types/AdEvent.d.ts.map +1 -1
  91. package/lib/typescript/src/types/AdInfo.d.ts +78 -85
  92. package/lib/typescript/src/types/AdInfo.d.ts.map +1 -1
  93. package/lib/typescript/src/types/AdProps.d.ts +14 -15
  94. package/lib/typescript/src/types/AdProps.d.ts.map +1 -1
  95. package/lib/typescript/src/types/AdViewProps.d.ts +32 -29
  96. package/lib/typescript/src/types/AdViewProps.d.ts.map +1 -1
  97. package/lib/typescript/src/types/AppLovinMAX.d.ts +50 -53
  98. package/lib/typescript/src/types/AppLovinMAX.d.ts.map +1 -1
  99. package/lib/typescript/src/types/BannerAd.d.ts +24 -18
  100. package/lib/typescript/src/types/BannerAd.d.ts.map +1 -1
  101. package/lib/typescript/src/types/CMPError.d.ts +7 -4
  102. package/lib/typescript/src/types/CMPError.d.ts.map +1 -1
  103. package/lib/typescript/src/types/Configuration.d.ts +12 -14
  104. package/lib/typescript/src/types/Configuration.d.ts.map +1 -1
  105. package/lib/typescript/src/types/FullscreenAd.d.ts +39 -46
  106. package/lib/typescript/src/types/FullscreenAd.d.ts.map +1 -1
  107. package/lib/typescript/src/types/MRecAd.d.ts +7 -3
  108. package/lib/typescript/src/types/MRecAd.d.ts.map +1 -1
  109. package/lib/typescript/src/types/NativeAd.d.ts +12 -11
  110. package/lib/typescript/src/types/NativeAd.d.ts.map +1 -1
  111. package/lib/typescript/src/types/NativeAdViewProps.d.ts +4 -3
  112. package/lib/typescript/src/types/NativeAdViewProps.d.ts.map +1 -1
  113. package/lib/typescript/src/types/Privacy.d.ts +13 -6
  114. package/lib/typescript/src/types/Privacy.d.ts.map +1 -1
  115. package/lib/typescript/src/types/RewardedAd.d.ts +7 -5
  116. package/lib/typescript/src/types/RewardedAd.d.ts.map +1 -1
  117. package/lib/typescript/src/types/ViewAd.d.ts +46 -50
  118. package/lib/typescript/src/types/ViewAd.d.ts.map +1 -1
  119. package/package.json +1 -1
  120. package/react-native-applovin-max.podspec +2 -2
  121. package/src/AdView.tsx +64 -82
  122. package/src/AppLovinMAX.ts +39 -29
  123. package/src/BannerAd.ts +2 -3
  124. package/src/ErrorCode.ts +24 -31
  125. package/src/EventEmitter.ts +20 -2
  126. package/src/Utils.ts +20 -1
  127. package/src/nativeAd/NativeAdView.tsx +31 -21
  128. package/src/nativeAd/NativeAdViewComponents.tsx +97 -38
  129. package/src/nativeAd/NativeAdViewProvider.tsx +23 -0
  130. package/src/specs/AppLovinMAXAdViewNativeComponent.ts +62 -1
  131. package/src/specs/AppLovinMAXNativeAdViewNativeComponent.ts +70 -6
  132. package/src/specs/NativeAppLovinMAXModule.ts +77 -56
  133. package/src/types/AdEvent.ts +10 -4
  134. package/src/types/AdInfo.ts +78 -85
  135. package/src/types/AdProps.ts +14 -15
  136. package/src/types/AdViewProps.ts +33 -29
  137. package/src/types/AppLovinMAX.ts +50 -53
  138. package/src/types/BannerAd.ts +24 -18
  139. package/src/types/CMPError.ts +7 -4
  140. package/src/types/Configuration.ts +12 -14
  141. package/src/types/FullscreenAd.ts +39 -46
  142. package/src/types/MRecAd.ts +7 -3
  143. package/src/types/NativeAd.ts +12 -11
  144. package/src/types/NativeAdViewProps.ts +4 -3
  145. package/src/types/Privacy.ts +13 -6
  146. package/src/types/RewardedAd.ts +7 -5
  147. package/src/types/ViewAd.ts +46 -50
@@ -1,57 +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,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAEnD;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,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"}
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;;;GAGG;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;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;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,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAEnD;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,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,88 @@ 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
+ * Whether adaptive banner sizing is enabled. Defaults to `true`.
67
+ */
68
+ isAdaptive?: boolean;
69
+ /**
70
+ * The placement name used for analytics and reporting.
68
71
  */
69
72
  placement?: string | null;
70
73
  /**
71
- * The custom data to tie the showing ad to.
74
+ * Custom data to associate with the ad for postbacks or targeting.
72
75
  */
73
76
  customData?: string | null;
74
77
  /**
75
- * A dictionary value representing the extra parameters to set a list of key-value string pairs
76
- * for the ad.
78
+ * A dictionary of key-value pairs used to pass extra parameters
79
+ * to the SDK (string-only values).
77
80
  */
78
81
  extraParameters?: {
79
82
  [key: string]: string | null;
80
83
  };
81
84
  /**
82
- * A dictionary value representing the local extra parameters to set a list of key-value pairs
83
- * to pass to the adapter instances.
85
+ * A dictionary of key-value pairs used to pass local extra parameters
86
+ * to the mediation adapter (string, boolean, number, etc.).
84
87
  */
85
88
  localExtraParameters?: {
86
89
  [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,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GAAG,EAAE,MAAM,GAAG,wBAAwB,CAAA;KAAE,CAAC;CACtE,CAAC"}
@@ -2,135 +2,132 @@ import type { Configuration } from './Configuration';
2
2
  import type { CMPError } from './CMPError';
3
3
  import type { ConsentFlowUserGeography } from '../AppLovinMAX';
4
4
  /**
5
- * Represents the AppLovinMAX module.
5
+ * Defines the AppLovin MAX module interface exposed to JavaScript.
6
6
  */
7
7
  export type AppLovinMAXType = {
8
8
  /**
9
- * Indicates whether or not the AppLovinMAX SDK has fully initialized without errors and
10
- * {@link AppLovinMAX.initialize()} has called the completion callback.
9
+ * Checks whether the AppLovin MAX SDK has finished initializing.
10
+ *
11
+ * @returns A promise that resolves to `true` if the SDK is initialized, or `false` otherwise.
11
12
  */
12
13
  isInitialized(): Promise<boolean>;
13
14
  /**
14
- * Initializes the AppLovinMAX SDK, and returns {@link Configuration} when it finishes initializing.
15
+ * Initializes the AppLovin MAX SDK.
15
16
  *
16
- * @param sdkKey SDK key to use for the instance of the AppLovinMAX SDK.
17
+ * @param sdkKey - Your AppLovin SDK key.
18
+ * @returns A promise that resolves with the initialization configuration.
17
19
  */
18
20
  initialize(sdkKey: string): Promise<Configuration>;
19
21
  /**
20
- * Sets a list of the ad units for the SDK to initialize only those networks.
22
+ * Restricts initialization to the specified ad unit IDs only.
21
23
  *
22
- * @param adUnitIds Ad units to be initialized with the SDK.
24
+ * @param adUnitIds - An array of ad unit IDs to initialize.
23
25
  */
24
26
  setInitializationAdUnitIds(adUnitIds: string[]): void;
25
27
  /**
26
- * Presents the mediation debugger UI.
28
+ * Displays the AppLovin Mediation Debugger UI.
27
29
  */
28
30
  showMediationDebugger(): void;
29
31
  /**
30
- * Whether this device is a tablet.
32
+ * Checks whether the current device is a tablet.
33
+ *
34
+ * @returns A promise that resolves to `true` if the device is a tablet.
31
35
  */
32
36
  isTablet(): Promise<boolean>;
33
37
  /**
34
- * Sets an ID for the current user. AppLovin ties this identifier to SDK events and AppLovin’s
35
- * optional S2S postbacks.
38
+ * Sets a user ID for use in SDK events and S2S postbacks.
36
39
  *
37
- * @param userId User id.
40
+ * @param userId - The custom user ID to associate with this device.
38
41
  */
39
42
  setUserId(userId: string): void;
40
43
  /**
41
- * Sets a muted state (or not) as the initial state for video ads.
44
+ * Sets whether video ads should start in a muted state.
42
45
  *
43
- * @param muted If ads should begin in a muted state.
46
+ * @param muted - `true` to mute ads by default.
44
47
  */
45
48
  setMuted(muted: boolean): void;
46
49
  /**
47
- * Whether to begin video ads in a muted state or not.
50
+ * Gets whether video ads will start muted.
51
+ *
52
+ * @returns A promise that resolves to `true` if ads will begin muted.
48
53
  */
49
54
  isMuted(): Promise<boolean>;
50
55
  /**
51
- * A toggle for verbose logging for the AppLovinMAX SDK.
56
+ * Enables or disables verbose logging in the AppLovin MAX SDK.
52
57
  *
53
- * @param verboseLoggingEnabled true if the AppLovinMAX SDK should output log messages.
58
+ * @param verboseLoggingEnabled - `true` to enable verbose logs.
54
59
  */
55
60
  setVerboseLogging(verboseLoggingEnabled: boolean): void;
56
61
  /**
57
- * Enables devices to receive test ads by passing in the advertising identifier (IDFA or IDFV) of
58
- * each test device. Refer to AppLovin logs for the IDFA or IDFV of your current device.
62
+ * Registers test devices using their advertising IDs (IDFA/IDFV).
59
63
  *
60
- * @param advertisingIds A list of the advertising ids.
64
+ * @param advertisingIds - An array of advertising IDs to register.
61
65
  */
62
66
  setTestDeviceAdvertisingIds(advertisingIds: string[]): void;
63
67
  /**
64
- * Whether the Creative Debugger displays after you flip the device screen down twice.
68
+ * Enables or disables the Creative Debugger gesture (flip screen down twice).
65
69
  *
66
- * @param enabled Default to true.
70
+ * @param enabled - `true` to enable the Creative Debugger (default: true).
67
71
  */
68
72
  setCreativeDebuggerEnabled(enabled: boolean): void;
69
73
  /**
70
- * Sets an extra parameter to pass to the AppLovin server.
74
+ * Sets an extra parameter to send with SDK requests.
71
75
  *
72
- * @param key Parameter key.
73
- * @param value Parameter value.
76
+ * @param key - The name of the parameter.
77
+ * @param value - The value of the parameter, or `null` to clear it.
74
78
  */
75
79
  setExtraParameter(key: string, value: string | null): void;
76
80
  /**
77
- * Enables the MAX Terms and Privacy Policy Flow.
81
+ * Enables the AppLovin MAX Terms and Privacy Policy flow.
78
82
  *
79
- * @param enabled true to enable the MAX Terms and Privacy Policy Flow.
83
+ * @param enabled - `true` to enable the flow.
80
84
  */
81
85
  setTermsAndPrivacyPolicyFlowEnabled(enabled: boolean): void;
82
86
  /**
83
- * The URL of your company’s privacy policy, as a string. This is required in order to enable
84
- * the Terms Flow.
87
+ * Sets the URL for your company’s privacy policy (required to enable the terms flow).
85
88
  *
86
- * @param urlString The URL string to point your company’s privacy policy.
89
+ * @param urlString - A valid URL string to your privacy policy.
87
90
  */
88
91
  setPrivacyPolicyUrl(urlString: string): void;
89
92
  /**
90
- * The URL of your company’s terms of service, as a string. This is optional; you can enable
91
- * the Terms Flow with or without it.
93
+ * Sets the URL for your company’s terms of service (optional).
92
94
  *
93
- * @param urlString The URL string to point your company’s terms of service.
95
+ * @param urlString - A valid URL string to your terms of service.
94
96
  */
95
97
  setTermsOfServiceUrl(urlString: string): void;
96
98
  /**
97
- * Set debug user geography. You may use this to test CMP flow by setting this to {@link ConsentFlowUserGeography.GDPR}.
99
+ * Sets a mock geography for testing the CMP flow (e.g., GDPR).
98
100
  *
99
- * @note The debug geography is used only when the app is in debug mode.
101
+ * @note This only applies when running the app in debug mode.
102
+ *
103
+ * @param userGeography - The mock user geography to simulate.
100
104
  */
101
105
  setConsentFlowDebugUserGeography(userGeography: ConsentFlowUserGeography): void;
102
106
  /**
103
- * Shows the CMP flow to an existing user.
104
- * Note that this resets the user’s existing consent information.
105
- *
106
- * The function returns when the flow finishes showing. On success, returns null. On failure,
107
- * returns one of the {@link CMPError} codes.
107
+ * Displays the CMP flow for an existing user and resets their consent status.
108
108
  *
109
- * @return {Promise<CMPError|null>}
109
+ * @returns A promise that resolves to `null` on success, or a {@link CMPError} on failure.
110
110
  */
111
111
  showCmpForExistingUser(): Promise<CMPError | null>;
112
112
  /**
113
- * Returns true if a supported CMP SDK is detected.
113
+ * Checks if a supported CMP SDK is available.
114
114
  *
115
- * @return {boolean}
115
+ * @returns A promise that resolves to `true` if a CMP is detected.
116
116
  */
117
117
  hasSupportedCmp(): Promise<boolean>;
118
118
  /**
119
- * Adds a segment. Both the key and the values must be integers.
119
+ * Adds a new user segment.
120
120
  *
121
- * @param key An integer key.
122
- * @param values An array of integers.
123
- * @returns A promise that resolves upon the successful addition. The resolved object contains
124
- * void.
125
- * @throws Throws an error if the segments can not be added.
121
+ * @param key - An integer key identifying the segment.
122
+ * @param values - An array of integer values for the segment.
123
+ * @returns A promise that resolves on success, or rejects if the operation fails.
126
124
  */
127
125
  addSegment(key: number, values: number[]): Promise<void>;
128
126
  /**
129
- * Returns a list of segments.
127
+ * Retrieves the list of user segments.
130
128
  *
131
- * @returns A promise that resolves upon a successful inquiry. The resolved object contains a
132
- * Map object that holds a list of segments, each represented by a key and an array of integers.
133
- * @throws Throws an error if the segments can not be gotten.
129
+ * @returns A promise that resolves to a map of segment keys to arrays of values,
130
+ * or `null` if no segments are available.
134
131
  */
135
132
  getSegments(): Promise<Map<number, number[]> | null>;
136
133
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AppLovinMAX.d.ts","sourceRoot":"","sources":["../../../../src/types/AppLovinMAX.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B;;;OAGG;IACH,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAElC;;;;OAIG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAEnD;;;;OAIG;IACH,0BAA0B,CAA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;;;OAKG;IACH,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAE3D;;;;OAIG;IACH,mCAAmC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAE5D;;;;OAIG;IACH,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7C;;;;OAIG;IACH,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9C;;;;;;OAMG;IACH,gCAAgC,CAAC,aAAa,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAEhF;;;;OAIG;IACH,sBAAsB,IAAI,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;IAEnD;;;;OAIG;IACH,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpC;;;;;;OAMG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzD;;;;;OAKG;IACH,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;CACxD,CAAC"}
@@ -1,41 +1,47 @@
1
1
  import type { ViewAdType } from './ViewAd';
2
2
  import type { AdViewPosition } from '../AdView';
3
+ /**
4
+ * Defines the interface for managing banner ads.
5
+ * Extends {@link ViewAdType} with banner-specific layout and customization methods.
6
+ */
3
7
  export type BannerAdType = ViewAdType & {
4
8
  /**
5
- * Creates a banner at the specified position and offsets.
9
+ * Creates a banner ad at the specified position and optional pixel offsets.
6
10
  *
7
- * @param adUnitId The Ad Unit ID to load ads for.
8
- * @param position {@ AdViewPosition} position.
9
- * @param xOffset Horizontal offset from the left position.
10
- * @param yOffset Vertical offset from the top position.
11
+ * @param adUnitId - The ad unit ID to load ads for.
12
+ * @param position - The position of the banner on screen.
13
+ * @param xOffset - Optional horizontal offset from the left (default: 0).
14
+ * @param yOffset - Optional vertical offset from the top (default: 0).
15
+ * @param isAdaptive - Optional flag to enable adaptive banners (default: true).
11
16
  */
12
- createAd(adUnitId: string, position: AdViewPosition, xOffset?: number, yOffset?: number): void;
17
+ createAd(adUnitId: string, position: AdViewPosition, xOffset?: number, yOffset?: number, isAdaptive?: boolean): void;
13
18
  /**
14
- * Sets a background color for the banner.
19
+ * Sets the background color of the banner.
15
20
  *
16
- * @param adUnitId The Ad Unit ID to load ads for.
17
- * @param hexColorCode Hexadecimal color (#rrggbb).
21
+ * @param adUnitId - The ad unit ID of the banner.
22
+ * @param hexColorCode - A hex color string (e.g. "#FFFFFF").
18
23
  */
19
24
  setBackgroundColor(adUnitId: string, hexColorCode: string): void;
20
25
  /**
21
- * Sets the banner width.
26
+ * Sets the width of the banner.
22
27
  *
23
- * @param adUnitId The Ad Unit ID to load ads for.
24
- * @param width The desired banner width.
28
+ * @param adUnitId - The ad unit ID of the banner.
29
+ * @param width - Desired width in pixels.
25
30
  */
26
31
  setWidth(adUnitId: string, width: number): void;
27
32
  /**
28
- * Updates the banner position offsets.
33
+ * Updates the position offsets of the banner after creation.
29
34
  *
30
- * @param adUnitId The Ad Unit ID to load ads for.
31
- * @param xOffset Horizontal offset from the left position.
32
- * @param yOffset Vertical offset from the top position.
35
+ * @param adUnitId - The ad unit ID of the banner.
36
+ * @param xOffset - Horizontal offset from the left.
37
+ * @param yOffset - Vertical offset from the top.
33
38
  */
34
39
  updateOffsets(adUnitId: string, xOffset: number, yOffset: number): void;
35
40
  /**
36
- * Gets the adaptive banner size for the provided width at the current orientation.
41
+ * Calculates the adaptive banner height for the given width and current screen orientation.
37
42
  *
38
- * @param width The banner width.
43
+ * @param width - The banner width in pixels.
44
+ * @returns A promise that resolves with the appropriate height.
39
45
  */
40
46
  getAdaptiveHeightForWidth(width: number): Promise<number>;
41
47
  };
@@ -1 +1 @@
1
- {"version":3,"file":"BannerAd.d.ts","sourceRoot":"","sources":["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AAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjE;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhD;;;;;;OAMG;IACH,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAExE;;;;;OAKG;IACH,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7D,CAAC"}
@@ -1,19 +1,22 @@
1
1
  import type { CMPErrorCode } from '../AppLovinMAX';
2
+ /**
3
+ * Represents an error returned from the Consent Management Platform (CMP) flow.
4
+ */
2
5
  export type CMPError = {
3
6
  /**
4
- * The error code for this error.
7
+ * The AppLovin-defined CMP error code.
5
8
  */
6
9
  code: CMPErrorCode;
7
10
  /**
8
- * The error message for this error.
11
+ * A descriptive error message from the AppLovin SDK.
9
12
  */
10
13
  message: string;
11
14
  /**
12
- * The error code returned by the CMP.
15
+ * The raw error code returned by the CMP.
13
16
  */
14
17
  cmpCode: number;
15
18
  /**
16
- * The error message returned by the CMP.
19
+ * The raw error message returned by the CMP.
17
20
  */
18
21
  cmpMessage: string;
19
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CMPError.d.ts","sourceRoot":"","sources":["../../../../src/types/CMPError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,QAAQ,GAAG;IACnB;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC"}
1
+ {"version":3,"file":"CMPError.d.ts","sourceRoot":"","sources":["../../../../src/types/CMPError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACnB;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -1,32 +1,30 @@
1
1
  import type { ConsentFlowUserGeography, AppTrackingStatus } from '../AppLovinMAX';
2
2
  /**
3
- * Encapsulates data for the AppLovinMAX SDK configuration.
3
+ * Represents the AppLovin MAX SDK configuration returned after initialization.
4
4
  */
5
5
  export type Configuration = {
6
6
  /**
7
- * The country code of this user.
7
+ * The user's country code.
8
8
  */
9
9
  countryCode: string;
10
10
  /**
11
- * The user's geography used to determine the type of consent flow shown to the user. If no
12
- * such determination could be made, {@link ConsentFlowUserGeography.UNKNOWN} will be returned.
11
+ * The user's geographic region used to determine which consent flow to display.
12
+ * Returns {@link ConsentFlowUserGeography.UNKNOWN} if the geography cannot be determined.
13
13
  */
14
14
  consentFlowUserGeography: ConsentFlowUserGeography;
15
15
  /**
16
- * Indicates whether or not the user authorizes access to app-related data that can be used for
17
- * tracking the user or the device.
18
- *
19
- * Note: available only on iOS
16
+ * The user's app tracking transparency status on iOS.
17
+ * Only available on iOS 14+; undefined on Android.
20
18
  */
21
19
  appTrackingStatus?: AppTrackingStatus;
22
20
  /**
23
- * Whether or not test mode is enabled for this session.
21
+ * Indicates whether test mode is enabled for this session.
24
22
  *
25
- * @return {boolean} true in one of the following cases:
26
- * 1. {@link AppLovinMAX.setTestDeviceAdvertisingIds()} was called with current device's GAID prior to SDK initialization.
27
- * 2. Current device was registered as a test device through MAX dashboard -> MAX Test Devices prior to SDK initialization.
28
- * 3. Test mode was manually enabled for this session through the Mediation Debugger during the last session.
29
- * 4. Current device is an emulator.
23
+ * Returns `true` if any of the following conditions are met:
24
+ * - {@link AppLovinMAX.setTestDeviceAdvertisingIds()} was called with the current device's GAID before SDK initialization.
25
+ * - The current device was registered via the MAX dashboard under "Test Devices".
26
+ * - Test mode was manually enabled in the Mediation Debugger in a previous session.
27
+ * - The app is running on an emulator.
30
28
  */
31
29
  isTestModeEnabled: boolean;
32
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../../src/types/Configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAElF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,wBAAwB,EAAE,wBAAwB,CAAC;IAEnD;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAEtC;;;;;;;;OAQG;IACH,iBAAiB,EAAE,OAAO,CAAC;CAC9B,CAAC"}
1
+ {"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../../src/types/Configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAElF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,wBAAwB,EAAE,wBAAwB,CAAC;IAEnD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAEtC;;;;;;;;OAQG;IACH,iBAAiB,EAAE,OAAO,CAAC;CAC9B,CAAC"}