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
@@ -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,e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AAqB,EAAE,OAAO,GAAG,IAAI,CAAC;IAExD;;;;OAIG;IACH,2BAA2B,CAAC,cAAc,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAE5D;;;;OAIG;IACH,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAEnD;;;;;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,46 @@
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).
11
15
  */
12
16
  createAd(adUnitId: string, position: AdViewPosition, xOffset?: number, yOffset?: number): void;
13
17
  /**
14
- * Sets a background color for the banner.
18
+ * Sets the background color of the banner.
15
19
  *
16
- * @param adUnitId The Ad Unit ID to load ads for.
17
- * @param hexColorCode Hexadecimal color (#rrggbb).
20
+ * @param adUnitId - The ad unit ID of the banner.
21
+ * @param hexColorCode - A hex color string (e.g. "#FFFFFF").
18
22
  */
19
23
  setBackgroundColor(adUnitId: string, hexColorCode: string): void;
20
24
  /**
21
- * Sets the banner width.
25
+ * Sets the width of the banner.
22
26
  *
23
- * @param adUnitId The Ad Unit ID to load ads for.
24
- * @param width The desired banner width.
27
+ * @param adUnitId - The ad unit ID of the banner.
28
+ * @param width - Desired width in pixels.
25
29
  */
26
30
  setWidth(adUnitId: string, width: number): void;
27
31
  /**
28
- * Updates the banner position offsets.
32
+ * Updates the position offsets of the banner after creation.
29
33
  *
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.
34
+ * @param adUnitId - The ad unit ID of the banner.
35
+ * @param xOffset - Horizontal offset from the left.
36
+ * @param yOffset - Vertical offset from the top.
33
37
  */
34
38
  updateOffsets(adUnitId: string, xOffset: number, yOffset: number): void;
35
39
  /**
36
- * Gets the adaptive banner size for the provided width at the current orientation.
40
+ * Calculates the adaptive banner height for the given width and current screen orientation.
37
41
  *
38
- * @param width The banner width.
42
+ * @param width - The banner width in pixels.
43
+ * @returns A promise that resolves with the appropriate height.
39
44
  */
40
45
  getAdaptiveHeightForWidth(width: number): Promise<number>;
41
46
  };
@@ -1 +1 @@
1
- {"version":3,"file":"BannerAd.d.ts","sourceRoot":"","sources":["../../../../src/types/BannerAd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/F;;;;;OAKG;IACH,kBAAkB,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;;;;OAIG;IACH,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7D,CAAC"}
1
+ {"version":3,"file":"BannerAd.d.ts","sourceRoot":"","sources":["../../../../src/types/BannerAd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/F;;;;;OAKG;IACH,kBAAkB,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"}
@@ -2,121 +2,114 @@ import type { AdEventListener } from './AdEvent';
2
2
  import type { AdInfo, AdLoadFailedInfo, AdDisplayFailedInfo } from './AdInfo';
3
3
  import type { LocalExtraParameterValue } from './AdProps';
4
4
  /**
5
- * Defines a full-screen ad (i.e Intestitial / Rewarded / AppOpen)
5
+ * Defines the interface for managing full-screen ads such as Interstitial, Rewarded, and AppOpen ads.
6
6
  */
7
7
  export type FullscreenAdType = {
8
8
  /**
9
- * Whether or not this ad is ready to be shown.
9
+ * Checks whether an ad is ready to be shown.
10
10
  *
11
- * @param adUnitId The ad unit ID of the ad to check whether it is ready to be shown.
11
+ * @param adUnitId - The ad unit ID to check.
12
+ * @returns A promise that resolves to `true` if the ad is ready.
12
13
  */
13
14
  isAdReady(adUnitId: string): Promise<boolean>;
14
15
  /**
15
- * Loads an interstitial ad.
16
+ * Loads a full-screen ad for the given ad unit ID.
16
17
  *
17
- * @param adUnitId The ad unit ID to load an ad for.
18
+ * @param adUnitId - The ad unit ID to load.
18
19
  */
19
20
  loadAd(adUnitId: string): void;
20
21
  /**
21
- * Shows the loaded interstitial ad, optionallly for a given placement and custom data to tie ad
22
- * events to.
22
+ * Shows a loaded full-screen ad.
23
23
  *
24
- * @param adUnitId The ad unit ID of the ad to show.
25
- * @param placement The placement to tie the showing ad's events to.
26
- * @param customData The custom data to tie the showing ad's events to. Maximum size is 8KB.
24
+ * @param adUnitId - The ad unit ID of the ad to show.
25
+ * @param placement - Optional placement name for event reporting.
26
+ * @param customData - Optional custom string data (max size: 8 KB).
27
27
  */
28
28
  showAd(adUnitId: string, placement?: string | null, customData?: string | null): void;
29
29
  /**
30
- * Sets an extra key/value parameter for the ad.
30
+ * Sets an extra parameter to pass to the SDK for the specified ad unit.
31
31
  *
32
- * @param adUnitId The ad unit ID of the ad to set a parameter for.
33
- * @param key Parameter key.
34
- * @param value Parameter value.
32
+ * @param adUnitId - The ad unit ID.
33
+ * @param key - The parameter name.
34
+ * @param value - The parameter value or `null` to clear it.
35
35
  */
36
36
  setExtraParameter(adUnitId: string, key: string, value: string | null): void;
37
37
  /**
38
- * Sets a local extra parameter to pass to the adapter instances.
38
+ * Sets a local extra parameter to pass to the adapter for the specified ad unit.
39
39
  *
40
- * @param adUnitId The ad unit ID of the ad to set a local parameter for.
41
- * @param key Parameter key.
42
- * @param value Parameter value.
40
+ * @param adUnitId - The ad unit ID.
41
+ * @param key - The parameter name.
42
+ * @param value - The parameter value (string, number, boolean, object, or null).
43
43
  */
44
44
  setLocalExtraParameter(adUnitId: string, key: string, value: LocalExtraParameterValue): void;
45
45
  /**
46
- * Adds the specified event listener to receive {@link AdInfo} when a full-screen ad loads a new ad.
46
+ * Registers a listener for when an ad is successfully loaded.
47
47
  *
48
- * @param listener Listener to be notified.
48
+ * @param listener - Callback to be notified with {@link AdInfo}.
49
49
  */
50
50
  addAdLoadedEventListener(listener: AdEventListener<AdInfo>): void;
51
51
  /**
52
- * Removes the event listener to receive {@link AdInfo} when a full-screen ad loads a new ad.
52
+ * Unregisters the ad loaded listener.
53
53
  */
54
54
  removeAdLoadedEventListener(): void;
55
55
  /**
56
- * Adds the specified event listener to receive {@link AdLoadFailedInfo} when a full-screen ad
57
- * could not load a new ad.
56
+ * Registers a listener for when an ad fails to load.
58
57
  *
59
- * @param listener Listener to be notified.
58
+ * @param listener - Callback to be notified with {@link AdLoadFailedInfo}.
60
59
  */
61
60
  addAdLoadFailedEventListener(listener: AdEventListener<AdLoadFailedInfo>): void;
62
61
  /**
63
- * Removes the event listener to receive {@ link adLoadFailedInfo} when a full-screen ad could
64
- * not load a new ad.
62
+ * Unregisters the ad load failure listener.
65
63
  */
66
64
  removeAdLoadFailedEventListener(): void;
67
65
  /**
68
- * Adds the specified event listener to receive {@link AdInfo} when the user clicks the ad.
66
+ * Registers a listener for ad click events.
69
67
  *
70
- * @param listener Listener to be notified.
68
+ * @param listener - Callback to be notified with {@link AdInfo}.
71
69
  */
72
70
  addAdClickedEventListener(listener: AdEventListener<AdInfo>): void;
73
71
  /**
74
- * Removes the event listener to receive {@link AdInfo} when the user clicks the ad.
72
+ * Unregisters the ad click listener.
75
73
  */
76
74
  removeAdClickedEventListener(): void;
77
75
  /**
78
- * Adds the specified event listener to receive {@link AdInfo} when a full-screen ad displays the ad.
76
+ * Registers a listener for when an ad is displayed.
79
77
  *
80
- * @param listener Listener to be notified.
78
+ * @param listener - Callback to be notified with {@link AdInfo}.
81
79
  */
82
80
  addAdDisplayedEventListener(listener: AdEventListener<AdInfo>): void;
83
81
  /**
84
- * Removes the event listener to receive {@link AdInfo} when a full-screen ad displays the ad.
82
+ * Unregisters the ad display listener.
85
83
  */
86
84
  removeAdDisplayedEventListener(): void;
87
85
  /**
88
- * Adds the specified event listener to receive {@link AdDisplayFailedInfo} when a full-screen
89
- * ad fails to display the ad.
86
+ * Registers a listener for when an ad fails to display.
90
87
  *
91
- * @param listener Listener to be notified.
88
+ * @param listener - Callback to be notified with {@link AdDisplayFailedInfo}.
92
89
  */
93
90
  addAdFailedToDisplayEventListener(listener: AdEventListener<AdDisplayFailedInfo>): void;
94
91
  /**
95
- * Removes the event listener to receive {@link AdDisplayFailedInfo} when a full-screen ad
96
- * fails to display the ad.
92
+ * Unregisters the ad display failure listener.
97
93
  */
98
94
  removeAdFailedToDisplayEventListener(): void;
99
95
  /**
100
- * Adds the specified event listener to receive {@link AdInfo} when a full-screen ad hides the
101
- * ad.
96
+ * Registers a listener for when an ad is hidden (dismissed).
102
97
  *
103
- * @param listener Listener to be notified.
98
+ * @param listener - Callback to be notified with {@link AdInfo}.
104
99
  */
105
100
  addAdHiddenEventListener(listener: AdEventListener<AdInfo>): void;
106
101
  /**
107
- * Removes the event listener to receive {@link AdInfo} when a full-screen ad hides the ad.
102
+ * Unregisters the ad hidden listener.
108
103
  */
109
104
  removeAdHiddenEventListener(): void;
110
105
  /**
111
- * Adds the specified event listener to receive {@link AdInfo} when a full-screen ad
112
- * pays ad revenue to the publisher.
106
+ * Registers a listener for when ad revenue is paid.
113
107
  *
114
- * @param listener Listener to be notified.
108
+ * @param listener - Callback to be notified with {@link AdInfo}.
115
109
  */
116
110
  addAdRevenuePaidListener(listener: AdEventListener<AdInfo>): void;
117
111
  /**
118
- * Removes the event listener to receive {@link AdInfo} when a full-screen ad pays
119
- * ad revenue to the publisher.
112
+ * Unregisters the ad revenue paid listener.
120
113
  */
121
114
  removeAdRevenuePaidListener(): void;
122
115
  };
@@ -1 +1 @@
1
- {"version":3,"file":"FullscreenAd.d.ts","sourceRoot":"","sources":["../../../../src/types/FullscreenAd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC9E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE9C;;;;OAIG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;;;;;;OAOG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAEtF;;;;;;OAMG;IACH,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAE7E;;;;;;OAMG;IACH,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAE7F;;;;OAIG;IACH,wBAAwB,CAAC,QAAQ,EAAE,eAAe,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAElE;;OAEG;IACH,2BAA2B,IAAI,IAAI,CAAC;IAEpC;;;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AQ,EAAE,eAAe,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAElE;;OAEG;IACH,2BAA2B,IAAI,IAAI,CAAC;IAEpC;;;;OAIG;IACH,wBAAwB,CAAC,QAAQ,EAAE,eAAe,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAElE;;OAEG;IACH,2BAA2B,IAAI,IAAI,CAAC;CACvC,CAAC"}
@@ -1,11 +1,15 @@
1
1
  import type { ViewAdType } from './ViewAd';
2
2
  import type { AdViewPosition } from '../AdView';
3
+ /**
4
+ * Defines the interface for managing MREC ads.
5
+ * Extends {@link ViewAdType} with MREC-specific creation logic.
6
+ */
3
7
  export type MRecAdType = ViewAdType & {
4
8
  /**
5
- * Creates a MREC at the specified position.
9
+ * Creates an MREC ad at the specified screen position.
6
10
  *
7
- * @param adUnitId The Ad Unit ID to to load ads for.
8
- * @param position {@link AdViewPosition} position.
11
+ * @param adUnitId - The ad unit ID to load the ad for.
12
+ * @param position - The desired position for the MREC, defined by {@link AdViewPosition}.
9
13
  */
10
14
  createAd(adUnitId: string, position: AdViewPosition): void;
11
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"MRecAd.d.ts","sourceRoot":"","sources":["../../../../src/types/MRecAd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG;IAClC;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9D,CAAC"}
1
+ {"version":3,"file":"MRecAd.d.ts","sourceRoot":"","sources":["../../../../src/types/MRecAd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG;IAClC;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9D,CAAC"}
@@ -1,45 +1,46 @@
1
1
  /**
2
- * Represents a native ad for rendering in {@link NativeAdView}. This type is intended for internal use only.
2
+ * Represents the structure of a native ad used internally by {@link NativeAdView}.
3
+ * This type is intended for internal use only.
3
4
  */
4
5
  export type NativeAd = {
5
6
  /**
6
- * The native ad title text.
7
+ * The ad title text.
7
8
  */
8
9
  title?: string | null;
9
10
  /**
10
- * The native ad advertiser text.
11
+ * The advertiser name.
11
12
  */
12
13
  advertiser?: string | null;
13
14
  /**
14
- * The native ad body text.
15
+ * The ad body text.
15
16
  */
16
17
  body?: string | null;
17
18
  /**
18
- * The native ad CTA button text.
19
+ * The call-to-action text.
19
20
  */
20
21
  callToAction?: string | null;
21
22
  /**
22
- * Whether or not this has an image icon.
23
+ * Indicates whether an icon image is available.
23
24
  */
24
25
  image?: boolean;
25
26
  /**
26
- * The data of the icon.
27
+ * The base64-encoded image source for the icon (if provided inline).
27
28
  */
28
29
  imageSource?: string | null;
29
30
  /**
30
- * The URL string of the icon.
31
+ * The URL of the icon image.
31
32
  */
32
33
  url?: string;
33
34
  /**
34
- * The star rating of the native ad.
35
+ * The star rating of the ad, typically in the range [0.0 – 5.0].
35
36
  */
36
37
  starRating?: number;
37
38
  /**
38
- * Whether or not the Options view is available.
39
+ * Whether the native Options view is available.
39
40
  */
40
41
  isOptionsViewAvailable: boolean;
41
42
  /**
42
- * Whether or not the Media view is available.
43
+ * Whether the native Media view (video or image) is available.
43
44
  */
44
45
  isMediaViewAvailable: boolean;
45
46
  };
@@ -1 +1 @@
1
- {"version":3,"file":"NativeAd.d.ts","sourceRoot":"","sources":["../../../../src/types/NativeAd.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,QAAQ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