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.
- package/android/build.gradle +3 -3
- package/android/src/main/java/com/applovin/reactnative/AppLovinMAXAdView.java +4 -10
- package/android/src/main/java/com/applovin/reactnative/AppLovinMAXAdViewUiComponent.java +17 -8
- package/android/src/main/java/com/applovin/reactnative/AppLovinMAXModuleImpl.java +36 -14
- package/android/src/newarch/com/applovin/reactnative/AppLovinMAXModule.java +6 -6
- package/android/src/oldarch/com/applovin/reactnative/AppLovinMAXModule.java +6 -6
- package/ios/AppLovinMAX.mm +36 -13
- package/ios/AppLovinMAXAdView.h +1 -0
- package/ios/AppLovinMAXAdView.mm +3 -9
- package/ios/AppLovinMAXAdViewUIComponent.h +1 -2
- package/ios/AppLovinMAXAdViewUIComponent.mm +18 -10
- package/lib/commonjs/AdView.js +63 -79
- package/lib/commonjs/AdView.js.map +1 -1
- package/lib/commonjs/AppLovinMAX.js +43 -29
- package/lib/commonjs/AppLovinMAX.js.map +1 -1
- package/lib/commonjs/BannerAd.js +2 -3
- package/lib/commonjs/BannerAd.js.map +1 -1
- package/lib/commonjs/ErrorCode.js +24 -31
- package/lib/commonjs/ErrorCode.js.map +1 -1
- package/lib/commonjs/EventEmitter.js +22 -1
- package/lib/commonjs/EventEmitter.js.map +1 -1
- package/lib/commonjs/Utils.js +22 -4
- package/lib/commonjs/Utils.js.map +1 -1
- package/lib/commonjs/index.js +1 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/nativeAd/NativeAdView.js +34 -24
- package/lib/commonjs/nativeAd/NativeAdView.js.map +1 -1
- package/lib/commonjs/nativeAd/NativeAdViewComponents.js +85 -43
- package/lib/commonjs/nativeAd/NativeAdViewComponents.js.map +1 -1
- package/lib/commonjs/nativeAd/NativeAdViewProvider.js +30 -2
- package/lib/commonjs/nativeAd/NativeAdViewProvider.js.map +1 -1
- package/lib/commonjs/specs/AppLovinMAXAdViewNativeComponent.js +27 -0
- package/lib/commonjs/specs/AppLovinMAXAdViewNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/AppLovinMAXNativeAdViewNativeComponent.js +23 -0
- package/lib/commonjs/specs/AppLovinMAXNativeAdViewNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/NativeAppLovinMAXModule.js +7 -0
- package/lib/commonjs/specs/NativeAppLovinMAXModule.js.map +1 -1
- package/lib/commonjs/types/AdInfo.js +13 -16
- package/lib/commonjs/types/AdInfo.js.map +1 -1
- package/lib/module/AdView.js +62 -77
- package/lib/module/AdView.js.map +1 -1
- package/lib/module/AppLovinMAX.js +44 -29
- package/lib/module/AppLovinMAX.js.map +1 -1
- package/lib/module/BannerAd.js +2 -3
- package/lib/module/BannerAd.js.map +1 -1
- package/lib/module/ErrorCode.js +24 -31
- package/lib/module/ErrorCode.js.map +1 -1
- package/lib/module/EventEmitter.js +22 -1
- package/lib/module/EventEmitter.js.map +1 -1
- package/lib/module/Utils.js +22 -4
- package/lib/module/Utils.js.map +1 -1
- package/lib/module/nativeAd/NativeAdView.js +34 -21
- package/lib/module/nativeAd/NativeAdView.js.map +1 -1
- package/lib/module/nativeAd/NativeAdViewComponents.js +87 -40
- package/lib/module/nativeAd/NativeAdViewComponents.js.map +1 -1
- package/lib/module/nativeAd/NativeAdViewProvider.js +30 -0
- package/lib/module/nativeAd/NativeAdViewProvider.js.map +1 -1
- package/lib/module/specs/AppLovinMAXAdViewNativeComponent.js +28 -0
- package/lib/module/specs/AppLovinMAXAdViewNativeComponent.js.map +1 -1
- package/lib/module/specs/AppLovinMAXNativeAdViewNativeComponent.js +24 -0
- package/lib/module/specs/AppLovinMAXNativeAdViewNativeComponent.js.map +1 -1
- package/lib/module/specs/NativeAppLovinMAXModule.js +9 -0
- package/lib/module/specs/NativeAppLovinMAXModule.js.map +1 -1
- package/lib/module/types/AdInfo.js +13 -16
- package/lib/module/types/AdInfo.js.map +1 -1
- package/lib/typescript/src/AdView.d.ts +27 -21
- package/lib/typescript/src/AdView.d.ts.map +1 -1
- package/lib/typescript/src/AppLovinMAX.d.ts +22 -21
- package/lib/typescript/src/AppLovinMAX.d.ts.map +1 -1
- package/lib/typescript/src/BannerAd.d.ts.map +1 -1
- package/lib/typescript/src/ErrorCode.d.ts +24 -31
- package/lib/typescript/src/ErrorCode.d.ts.map +1 -1
- package/lib/typescript/src/EventEmitter.d.ts +16 -0
- package/lib/typescript/src/EventEmitter.d.ts.map +1 -1
- package/lib/typescript/src/Utils.d.ts +15 -0
- package/lib/typescript/src/Utils.d.ts.map +1 -1
- package/lib/typescript/src/nativeAd/NativeAdView.d.ts +15 -7
- package/lib/typescript/src/nativeAd/NativeAdView.d.ts.map +1 -1
- package/lib/typescript/src/nativeAd/NativeAdViewComponents.d.ts +65 -1
- package/lib/typescript/src/nativeAd/NativeAdViewComponents.d.ts.map +1 -1
- package/lib/typescript/src/nativeAd/NativeAdViewProvider.d.ts +17 -0
- package/lib/typescript/src/nativeAd/NativeAdViewProvider.d.ts.map +1 -1
- package/lib/typescript/src/specs/AppLovinMAXAdViewNativeComponent.d.ts +45 -1
- package/lib/typescript/src/specs/AppLovinMAXAdViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/AppLovinMAXNativeAdViewNativeComponent.d.ts +57 -6
- package/lib/typescript/src/specs/AppLovinMAXNativeAdViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeAppLovinMAXModule.d.ts +13 -3
- package/lib/typescript/src/specs/NativeAppLovinMAXModule.d.ts.map +1 -1
- package/lib/typescript/src/types/AdEvent.d.ts +10 -4
- package/lib/typescript/src/types/AdEvent.d.ts.map +1 -1
- package/lib/typescript/src/types/AdInfo.d.ts +78 -85
- package/lib/typescript/src/types/AdInfo.d.ts.map +1 -1
- package/lib/typescript/src/types/AdProps.d.ts +14 -15
- package/lib/typescript/src/types/AdProps.d.ts.map +1 -1
- package/lib/typescript/src/types/AdViewProps.d.ts +32 -29
- package/lib/typescript/src/types/AdViewProps.d.ts.map +1 -1
- package/lib/typescript/src/types/AppLovinMAX.d.ts +50 -53
- package/lib/typescript/src/types/AppLovinMAX.d.ts.map +1 -1
- package/lib/typescript/src/types/BannerAd.d.ts +24 -18
- package/lib/typescript/src/types/BannerAd.d.ts.map +1 -1
- package/lib/typescript/src/types/CMPError.d.ts +7 -4
- package/lib/typescript/src/types/CMPError.d.ts.map +1 -1
- package/lib/typescript/src/types/Configuration.d.ts +12 -14
- package/lib/typescript/src/types/Configuration.d.ts.map +1 -1
- package/lib/typescript/src/types/FullscreenAd.d.ts +39 -46
- package/lib/typescript/src/types/FullscreenAd.d.ts.map +1 -1
- package/lib/typescript/src/types/MRecAd.d.ts +7 -3
- package/lib/typescript/src/types/MRecAd.d.ts.map +1 -1
- package/lib/typescript/src/types/NativeAd.d.ts +12 -11
- package/lib/typescript/src/types/NativeAd.d.ts.map +1 -1
- package/lib/typescript/src/types/NativeAdViewProps.d.ts +4 -3
- package/lib/typescript/src/types/NativeAdViewProps.d.ts.map +1 -1
- package/lib/typescript/src/types/Privacy.d.ts +13 -6
- package/lib/typescript/src/types/Privacy.d.ts.map +1 -1
- package/lib/typescript/src/types/RewardedAd.d.ts +7 -5
- package/lib/typescript/src/types/RewardedAd.d.ts.map +1 -1
- package/lib/typescript/src/types/ViewAd.d.ts +46 -50
- package/lib/typescript/src/types/ViewAd.d.ts.map +1 -1
- package/package.json +1 -1
- package/react-native-applovin-max.podspec +2 -2
- package/src/AdView.tsx +64 -82
- package/src/AppLovinMAX.ts +39 -29
- package/src/BannerAd.ts +2 -3
- package/src/ErrorCode.ts +24 -31
- package/src/EventEmitter.ts +20 -2
- package/src/Utils.ts +20 -1
- package/src/nativeAd/NativeAdView.tsx +31 -21
- package/src/nativeAd/NativeAdViewComponents.tsx +97 -38
- package/src/nativeAd/NativeAdViewProvider.tsx +23 -0
- package/src/specs/AppLovinMAXAdViewNativeComponent.ts +62 -1
- package/src/specs/AppLovinMAXNativeAdViewNativeComponent.ts +70 -6
- package/src/specs/NativeAppLovinMAXModule.ts +77 -56
- package/src/types/AdEvent.ts +10 -4
- package/src/types/AdInfo.ts +78 -85
- package/src/types/AdProps.ts +14 -15
- package/src/types/AdViewProps.ts +33 -29
- package/src/types/AppLovinMAX.ts +50 -53
- package/src/types/BannerAd.ts +24 -18
- package/src/types/CMPError.ts +7 -4
- package/src/types/Configuration.ts +12 -14
- package/src/types/FullscreenAd.ts +39 -46
- package/src/types/MRecAd.ts +7 -3
- package/src/types/NativeAd.ts +12 -11
- package/src/types/NativeAdViewProps.ts +4 -3
- package/src/types/Privacy.ts +13 -6
- package/src/types/RewardedAd.ts +7 -5
- package/src/types/ViewAd.ts +46 -50
|
@@ -1,57 +1,56 @@
|
|
|
1
1
|
import type { AdDisplayFailedInfo, AdInfo, AdLoadFailedInfo } from './AdInfo';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
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
|
|
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
|
-
*
|
|
12
|
+
* The ad unit ID used to load ads.
|
|
12
13
|
*/
|
|
13
14
|
adUnitId: string;
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
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
|
-
*
|
|
20
|
+
* Optional custom data to attach to the ad, used for analytics or targeting.
|
|
21
21
|
*/
|
|
22
22
|
customData?: string | null;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
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
|
-
*
|
|
32
|
-
*
|
|
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
|
-
*
|
|
37
|
+
* Called when a new ad is successfully loaded.
|
|
39
38
|
*/
|
|
40
39
|
onAdLoaded?: (adInfo: AdInfo) => void;
|
|
41
40
|
/**
|
|
42
|
-
*
|
|
41
|
+
* Called when the SDK fails to load a new ad.
|
|
43
42
|
*/
|
|
44
43
|
onAdLoadFailed?: (error: AdLoadFailedInfo) => void;
|
|
45
44
|
/**
|
|
46
|
-
*
|
|
45
|
+
* Called when the ad fails to display after being loaded.
|
|
47
46
|
*/
|
|
48
47
|
onAdDisplayFailed?: (error: AdDisplayFailedInfo) => void;
|
|
49
48
|
/**
|
|
50
|
-
*
|
|
49
|
+
* Called when the ad is clicked by the user.
|
|
51
50
|
*/
|
|
52
51
|
onAdClicked?: (adInfo: AdInfo) => void;
|
|
53
52
|
/**
|
|
54
|
-
*
|
|
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
|
|
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
|
|
5
|
+
* A reference to the {@link AdView} instance, allowing imperative control.
|
|
6
6
|
*/
|
|
7
7
|
export type AdViewHandler = {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
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
|
-
* -
|
|
17
|
-
* -
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
31
|
-
* Used
|
|
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
|
-
*
|
|
36
|
+
* Enables adaptive banner sizing if `true`.
|
|
37
|
+
* Ignored for MREC ads.
|
|
36
38
|
*/
|
|
37
39
|
adaptiveBannerEnabled?: boolean;
|
|
38
40
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
+
* Enables or disables automatic ad refresh.
|
|
42
|
+
* Defaults to `true`.
|
|
41
43
|
*/
|
|
42
44
|
autoRefresh?: boolean;
|
|
43
45
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
62
|
+
* Options used when preloading a native UI {@link AdView} component.
|
|
63
63
|
*/
|
|
64
64
|
export type NativeUIComponentAdViewOptions = {
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
67
|
-
|
|
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
|
-
*
|
|
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
|
|
76
|
-
*
|
|
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
|
|
83
|
-
* to
|
|
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,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
|
|
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;;;OAGG;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;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAExC;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG;IACzC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;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,GAAG,IAAI,CAAA;KAAE,CAAC;IAEnD;;;OAGG;IACH,oBAAoB,CAAC,EAAE;QAAE,CAAC,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
|
-
*
|
|
5
|
+
* Defines the AppLovin MAX module interface exposed to JavaScript.
|
|
6
6
|
*/
|
|
7
7
|
export type AppLovinMAXType = {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
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
|
|
15
|
+
* Initializes the AppLovin MAX SDK.
|
|
15
16
|
*
|
|
16
|
-
* @param sdkKey
|
|
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
|
-
*
|
|
22
|
+
* Restricts initialization to the specified ad unit IDs only.
|
|
21
23
|
*
|
|
22
|
-
* @param adUnitIds
|
|
24
|
+
* @param adUnitIds - An array of ad unit IDs to initialize.
|
|
23
25
|
*/
|
|
24
26
|
setInitializationAdUnitIds(adUnitIds: string[]): void;
|
|
25
27
|
/**
|
|
26
|
-
*
|
|
28
|
+
* Displays the AppLovin Mediation Debugger UI.
|
|
27
29
|
*/
|
|
28
30
|
showMediationDebugger(): void;
|
|
29
31
|
/**
|
|
30
|
-
*
|
|
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
|
|
35
|
-
* optional S2S postbacks.
|
|
38
|
+
* Sets a user ID for use in SDK events and S2S postbacks.
|
|
36
39
|
*
|
|
37
|
-
* @param userId
|
|
40
|
+
* @param userId - The custom user ID to associate with this device.
|
|
38
41
|
*/
|
|
39
42
|
setUserId(userId: string): void;
|
|
40
43
|
/**
|
|
41
|
-
* Sets
|
|
44
|
+
* Sets whether video ads should start in a muted state.
|
|
42
45
|
*
|
|
43
|
-
* @param muted
|
|
46
|
+
* @param muted - `true` to mute ads by default.
|
|
44
47
|
*/
|
|
45
48
|
setMuted(muted: boolean): void;
|
|
46
49
|
/**
|
|
47
|
-
*
|
|
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
|
-
*
|
|
56
|
+
* Enables or disables verbose logging in the AppLovin MAX SDK.
|
|
52
57
|
*
|
|
53
|
-
* @param verboseLoggingEnabled true
|
|
58
|
+
* @param verboseLoggingEnabled - `true` to enable verbose logs.
|
|
54
59
|
*/
|
|
55
60
|
setVerboseLogging(verboseLoggingEnabled: boolean): void;
|
|
56
61
|
/**
|
|
57
|
-
*
|
|
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
|
|
64
|
+
* @param advertisingIds - An array of advertising IDs to register.
|
|
61
65
|
*/
|
|
62
66
|
setTestDeviceAdvertisingIds(advertisingIds: string[]): void;
|
|
63
67
|
/**
|
|
64
|
-
*
|
|
68
|
+
* Enables or disables the Creative Debugger gesture (flip screen down twice).
|
|
65
69
|
*
|
|
66
|
-
* @param enabled
|
|
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
|
|
74
|
+
* Sets an extra parameter to send with SDK requests.
|
|
71
75
|
*
|
|
72
|
-
* @param key
|
|
73
|
-
* @param 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
|
|
81
|
+
* Enables the AppLovin MAX Terms and Privacy Policy flow.
|
|
78
82
|
*
|
|
79
|
-
* @param enabled true to enable the
|
|
83
|
+
* @param enabled - `true` to enable the flow.
|
|
80
84
|
*/
|
|
81
85
|
setTermsAndPrivacyPolicyFlowEnabled(enabled: boolean): void;
|
|
82
86
|
/**
|
|
83
|
-
*
|
|
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
|
|
89
|
+
* @param urlString - A valid URL string to your privacy policy.
|
|
87
90
|
*/
|
|
88
91
|
setPrivacyPolicyUrl(urlString: string): void;
|
|
89
92
|
/**
|
|
90
|
-
*
|
|
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
|
|
95
|
+
* @param urlString - A valid URL string to your terms of service.
|
|
94
96
|
*/
|
|
95
97
|
setTermsOfServiceUrl(urlString: string): void;
|
|
96
98
|
/**
|
|
97
|
-
*
|
|
99
|
+
* Sets a mock geography for testing the CMP flow (e.g., GDPR).
|
|
98
100
|
*
|
|
99
|
-
* @note
|
|
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
|
-
*
|
|
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
|
-
* @
|
|
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
|
-
*
|
|
113
|
+
* Checks if a supported CMP SDK is available.
|
|
114
114
|
*
|
|
115
|
-
* @
|
|
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
|
|
119
|
+
* Adds a new user segment.
|
|
120
120
|
*
|
|
121
|
-
* @param key An integer key.
|
|
122
|
-
* @param values An array of
|
|
123
|
-
* @returns A promise that resolves
|
|
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
|
-
*
|
|
127
|
+
* Retrieves the list of user segments.
|
|
130
128
|
*
|
|
131
|
-
* @returns A promise that resolves
|
|
132
|
-
*
|
|
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
|
|
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;;;;OAIG;IACH,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAElC;;;;;OAKG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAEnD;;;;OAIG;IACH,0BAA0B,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAEtD;;OAEG;IACH,qBAAqB,IAAI,IAAI,CAAC;IAE9B;;;;OAIG;IACH,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAE7B;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAE/B;;;;OAIG;IACH,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAE5B;;;;OAIG;IACH,iBAAiB,CAAC,qBAAqB,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,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
|
|
8
|
-
* @param position
|
|
9
|
-
* @param xOffset
|
|
10
|
-
* @param yOffset
|
|
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
|
|
19
|
+
* Sets the background color of the banner.
|
|
15
20
|
*
|
|
16
|
-
* @param adUnitId The
|
|
17
|
-
* @param hexColorCode
|
|
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
|
|
26
|
+
* Sets the width of the banner.
|
|
22
27
|
*
|
|
23
|
-
* @param adUnitId The
|
|
24
|
-
* @param 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
|
|
33
|
+
* Updates the position offsets of the banner after creation.
|
|
29
34
|
*
|
|
30
|
-
* @param adUnitId The
|
|
31
|
-
* @param xOffset Horizontal offset from the left
|
|
32
|
-
* @param yOffset Vertical offset from the top
|
|
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
|
-
*
|
|
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":["../../../../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
|
|
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;;;;;;;;OAQG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAErH;;;;;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
|
|
7
|
+
* The AppLovin-defined CMP error code.
|
|
5
8
|
*/
|
|
6
9
|
code: CMPErrorCode;
|
|
7
10
|
/**
|
|
8
|
-
*
|
|
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
|
-
*
|
|
3
|
+
* Represents the AppLovin MAX SDK configuration returned after initialization.
|
|
4
4
|
*/
|
|
5
5
|
export type Configuration = {
|
|
6
6
|
/**
|
|
7
|
-
* The country code
|
|
7
|
+
* The user's country code.
|
|
8
8
|
*/
|
|
9
9
|
countryCode: string;
|
|
10
10
|
/**
|
|
11
|
-
* The user's
|
|
12
|
-
*
|
|
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
|
-
*
|
|
17
|
-
*
|
|
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
|
-
*
|
|
21
|
+
* Indicates whether test mode is enabled for this session.
|
|
24
22
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
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
|
|
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"}
|