react-native-google-mobile-ads 16.1.0 → 16.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/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsCommon.java +5 -1
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsCommon.mm +5 -1
- package/lib/commonjs/BannerAdSize.js +6 -1
- package/lib/commonjs/BannerAdSize.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/module/BannerAdSize.js +6 -1
- package/lib/module/BannerAdSize.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/typescript/BannerAdSize.d.ts +12 -2
- package/lib/typescript/BannerAdSize.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/BannerAdSize.ts +7 -1
- package/src/version.ts +1 -1
package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsCommon.java
CHANGED
|
@@ -66,7 +66,11 @@ public class ReactNativeGoogleMobileAdsCommon {
|
|
|
66
66
|
return AdSize.getCurrentOrientationInlineAdaptiveBannerAdSize(
|
|
67
67
|
reactViewGroup.getContext(), adWidth);
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
if ("LARGE_ANCHORED_ADAPTIVE_BANNER".equals(preDefinedAdSize)) {
|
|
70
|
+
return AdSize.getLargeAnchoredAdaptiveBannerAdSize(reactViewGroup.getContext(), adWidth);
|
|
71
|
+
}
|
|
72
|
+
return AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize(
|
|
73
|
+
reactViewGroup.getContext(), adWidth);
|
|
70
74
|
} catch (Exception e) {
|
|
71
75
|
return AdSize.BANNER;
|
|
72
76
|
}
|
|
@@ -209,7 +209,11 @@ NSString *const GOOGLE_MOBILE_ADS_EVENT_REWARDED_EARNED_REWARD = @"rewarded_earn
|
|
|
209
209
|
}
|
|
210
210
|
return GADCurrentOrientationInlineAdaptiveBannerAdSizeWithWidth(viewWidth);
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
if ([value isEqualToString:@"LARGE_ANCHORED_ADAPTIVE_BANNER"]) {
|
|
213
|
+
return GADLargeAnchoredAdaptiveBannerAdSizeWithWidth(viewWidth);
|
|
214
|
+
}
|
|
215
|
+
return AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize(reactViewGroup.getContext(),
|
|
216
|
+
adWidth);
|
|
213
217
|
} else {
|
|
214
218
|
return GADAdSizeBanner;
|
|
215
219
|
}
|
|
@@ -47,9 +47,14 @@ let BannerAdSize = exports.BannerAdSize = /*#__PURE__*/function (BannerAdSize) {
|
|
|
47
47
|
*/
|
|
48
48
|
BannerAdSize["ADAPTIVE_BANNER"] = "ADAPTIVE_BANNER";
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Anchored to the top or bottom of the screen, anchored adaptive banners set an optimal ad slot size for any device.
|
|
51
51
|
*/
|
|
52
52
|
BannerAdSize["ANCHORED_ADAPTIVE_BANNER"] = "ANCHORED_ADAPTIVE_BANNER";
|
|
53
|
+
/**
|
|
54
|
+
* Anchored to the top or bottom of the screen. Larger ads are designed to
|
|
55
|
+
* increase engagement and revenue potential for publishers.
|
|
56
|
+
*/
|
|
57
|
+
BannerAdSize["LARGE_ANCHORED_ADAPTIVE_BANNER"] = "LARGE_ANCHORED_ADAPTIVE_BANNER";
|
|
53
58
|
/**
|
|
54
59
|
* Inline adaptive banners are larger, taller banners compared to anchored adaptive banners. They are of variable height, and can be as tall as the device screen.
|
|
55
60
|
* They are intended to be placed in scrolling content.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BannerAdSize","exports","GAMBannerAdSize","FLUID"],"sourceRoot":"../../src","sources":["BannerAdSize.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhBA,IAkBYA,YAAY,GAAAC,OAAA,CAAAD,YAAA,0BAAZA,YAAY;EACtB;AACF;AACA;EAHYA,YAAY;EAMtB;AACF;AACA;EARYA,YAAY;EAWtB;AACF;AACA;EAbYA,YAAY;EAgBtB;AACF;AACA;EAlBYA,YAAY;EAqBtB;AACF;AACA;EAvBYA,YAAY;EA0BtB;AACF;AACA;EA5BYA,YAAY;EA+BtB;AACF;AACA;EAjCYA,YAAY;EAoCtB;AACF;AACA;AACA;EAvCYA,YAAY;EA0CtB;AACF;AACA;
|
|
1
|
+
{"version":3,"names":["BannerAdSize","exports","GAMBannerAdSize","FLUID"],"sourceRoot":"../../src","sources":["BannerAdSize.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhBA,IAkBYA,YAAY,GAAAC,OAAA,CAAAD,YAAA,0BAAZA,YAAY;EACtB;AACF;AACA;EAHYA,YAAY;EAMtB;AACF;AACA;EARYA,YAAY;EAWtB;AACF;AACA;EAbYA,YAAY;EAgBtB;AACF;AACA;EAlBYA,YAAY;EAqBtB;AACF;AACA;EAvBYA,YAAY;EA0BtB;AACF;AACA;EA5BYA,YAAY;EA+BtB;AACF;AACA;EAjCYA,YAAY;EAoCtB;AACF;AACA;AACA;EAvCYA,YAAY;EA0CtB;AACF;AACA;AACA;EA7CYA,YAAY;EAgDtB;AACF;AACA;EAlDYA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAsDjB,MAAME,eAAe,GAAAD,OAAA,CAAAC,eAAA,GAAG;EAC7B,GAAGF,YAAY;EAEf;AACF;AACA;EACEG,KAAK,EAAE;AACT,CAAU","ignoreList":[]}
|
package/lib/commonjs/version.js
CHANGED
|
@@ -44,9 +44,14 @@ export let BannerAdSize = /*#__PURE__*/function (BannerAdSize) {
|
|
|
44
44
|
*/
|
|
45
45
|
BannerAdSize["ADAPTIVE_BANNER"] = "ADAPTIVE_BANNER";
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Anchored to the top or bottom of the screen, anchored adaptive banners set an optimal ad slot size for any device.
|
|
48
48
|
*/
|
|
49
49
|
BannerAdSize["ANCHORED_ADAPTIVE_BANNER"] = "ANCHORED_ADAPTIVE_BANNER";
|
|
50
|
+
/**
|
|
51
|
+
* Anchored to the top or bottom of the screen. Larger ads are designed to
|
|
52
|
+
* increase engagement and revenue potential for publishers.
|
|
53
|
+
*/
|
|
54
|
+
BannerAdSize["LARGE_ANCHORED_ADAPTIVE_BANNER"] = "LARGE_ANCHORED_ADAPTIVE_BANNER";
|
|
50
55
|
/**
|
|
51
56
|
* Inline adaptive banners are larger, taller banners compared to anchored adaptive banners. They are of variable height, and can be as tall as the device screen.
|
|
52
57
|
* They are intended to be placed in scrolling content.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BannerAdSize","GAMBannerAdSize","FLUID"],"sourceRoot":"../../src","sources":["BannerAdSize.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,YAAY,0BAAZA,YAAY;EACtB;AACF;AACA;EAHYA,YAAY;EAMtB;AACF;AACA;EARYA,YAAY;EAWtB;AACF;AACA;EAbYA,YAAY;EAgBtB;AACF;AACA;EAlBYA,YAAY;EAqBtB;AACF;AACA;EAvBYA,YAAY;EA0BtB;AACF;AACA;EA5BYA,YAAY;EA+BtB;AACF;AACA;EAjCYA,YAAY;EAoCtB;AACF;AACA;AACA;EAvCYA,YAAY;EA0CtB;AACF;AACA;
|
|
1
|
+
{"version":3,"names":["BannerAdSize","GAMBannerAdSize","FLUID"],"sourceRoot":"../../src","sources":["BannerAdSize.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,YAAY,0BAAZA,YAAY;EACtB;AACF;AACA;EAHYA,YAAY;EAMtB;AACF;AACA;EARYA,YAAY;EAWtB;AACF;AACA;EAbYA,YAAY;EAgBtB;AACF;AACA;EAlBYA,YAAY;EAqBtB;AACF;AACA;EAvBYA,YAAY;EA0BtB;AACF;AACA;EA5BYA,YAAY;EA+BtB;AACF;AACA;EAjCYA,YAAY;EAoCtB;AACF;AACA;AACA;EAvCYA,YAAY;EA0CtB;AACF;AACA;AACA;EA7CYA,YAAY;EAgDtB;AACF;AACA;EAlDYA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAsDxB,OAAO,MAAMC,eAAe,GAAG;EAC7B,GAAGD,YAAY;EAEf;AACF;AACA;EACEE,KAAK,EAAE;AACT,CAAU","ignoreList":[]}
|
package/lib/module/version.js
CHANGED
|
@@ -24,9 +24,14 @@ export declare enum BannerAdSize {
|
|
|
24
24
|
*/
|
|
25
25
|
ADAPTIVE_BANNER = "ADAPTIVE_BANNER",
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Anchored to the top or bottom of the screen, anchored adaptive banners set an optimal ad slot size for any device.
|
|
28
28
|
*/
|
|
29
29
|
ANCHORED_ADAPTIVE_BANNER = "ANCHORED_ADAPTIVE_BANNER",
|
|
30
|
+
/**
|
|
31
|
+
* Anchored to the top or bottom of the screen. Larger ads are designed to
|
|
32
|
+
* increase engagement and revenue potential for publishers.
|
|
33
|
+
*/
|
|
34
|
+
LARGE_ANCHORED_ADAPTIVE_BANNER = "LARGE_ANCHORED_ADAPTIVE_BANNER",
|
|
30
35
|
/**
|
|
31
36
|
* Inline adaptive banners are larger, taller banners compared to anchored adaptive banners. They are of variable height, and can be as tall as the device screen.
|
|
32
37
|
* They are intended to be placed in scrolling content.
|
|
@@ -67,9 +72,14 @@ export declare const GAMBannerAdSize: {
|
|
|
67
72
|
*/
|
|
68
73
|
readonly ADAPTIVE_BANNER: BannerAdSize.ADAPTIVE_BANNER;
|
|
69
74
|
/**
|
|
70
|
-
*
|
|
75
|
+
* Anchored to the top or bottom of the screen, anchored adaptive banners set an optimal ad slot size for any device.
|
|
71
76
|
*/
|
|
72
77
|
readonly ANCHORED_ADAPTIVE_BANNER: BannerAdSize.ANCHORED_ADAPTIVE_BANNER;
|
|
78
|
+
/**
|
|
79
|
+
* Anchored to the top or bottom of the screen. Larger ads are designed to
|
|
80
|
+
* increase engagement and revenue potential for publishers.
|
|
81
|
+
*/
|
|
82
|
+
readonly LARGE_ANCHORED_ADAPTIVE_BANNER: BannerAdSize.LARGE_ANCHORED_ADAPTIVE_BANNER;
|
|
73
83
|
/**
|
|
74
84
|
* Inline adaptive banners are larger, taller banners compared to anchored adaptive banners. They are of variable height, and can be as tall as the device screen.
|
|
75
85
|
* They are intended to be placed in scrolling content.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BannerAdSize.d.ts","sourceRoot":"","sources":["../../src/BannerAdSize.ts"],"names":[],"mappings":"AAkBA,oBAAY,YAAY;IACtB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;OAEG;IACH,YAAY,iBAAiB;IAE7B;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;OAEG;IACH,gBAAgB,qBAAqB;IAErC;;OAEG;IACH,eAAe,oBAAoB;IAEnC;;OAEG;IACH,wBAAwB,6BAA6B;IAErD;;;OAGG;IACH,sBAAsB,2BAA2B;IAEjD;;OAEG;IACH,eAAe,oBAAoB;CACpC;AAED,eAAO,MAAM,eAAe;IAG1B;;OAEG;;
|
|
1
|
+
{"version":3,"file":"BannerAdSize.d.ts","sourceRoot":"","sources":["../../src/BannerAdSize.ts"],"names":[],"mappings":"AAkBA,oBAAY,YAAY;IACtB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;OAEG;IACH,YAAY,iBAAiB;IAE7B;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;OAEG;IACH,gBAAgB,qBAAqB;IAErC;;OAEG;IACH,eAAe,oBAAoB;IAEnC;;OAEG;IACH,wBAAwB,6BAA6B;IAErD;;;OAGG;IACH,8BAA8B,mCAAmC;IAEjE;;;OAGG;IACH,sBAAsB,2BAA2B;IAEjD;;OAEG;IACH,eAAe,oBAAoB;CACpC;AAED,eAAO,MAAM,eAAe;IAG1B;;OAEG;;IA1DH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;OAEG;;CAWK,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "16.
|
|
1
|
+
export declare const SDK_VERSION = "16.2.0";
|
|
2
2
|
export { default, MobileAds } from './MobileAds';
|
|
3
3
|
export { AdsConsentDebugGeography, AdsConsentInfo, AdsConsentInfoOptions, AdsConsentInterface, AdsConsentPrivacyOptionsRequirementStatus, AdsConsentStatus, AdsConsentUserChoices, } from './specs/modules/NativeConsentModule';
|
|
4
4
|
export { AdsConsentPurposes } from './AdsConsentPurposes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "16.
|
|
1
|
+
export declare const version = "16.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-google-mobile-ads",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.2.0",
|
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
|
5
5
|
"description": "React Native Google Mobile Ads is an easy way to monetize mobile apps with targeted, in-app advertising.",
|
|
6
6
|
"main": "lib/commonjs/index.js",
|
package/src/BannerAdSize.ts
CHANGED
|
@@ -48,10 +48,16 @@ export enum BannerAdSize {
|
|
|
48
48
|
ADAPTIVE_BANNER = 'ADAPTIVE_BANNER',
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Anchored to the top or bottom of the screen, anchored adaptive banners set an optimal ad slot size for any device.
|
|
52
52
|
*/
|
|
53
53
|
ANCHORED_ADAPTIVE_BANNER = 'ANCHORED_ADAPTIVE_BANNER',
|
|
54
54
|
|
|
55
|
+
/**
|
|
56
|
+
* Anchored to the top or bottom of the screen. Larger ads are designed to
|
|
57
|
+
* increase engagement and revenue potential for publishers.
|
|
58
|
+
*/
|
|
59
|
+
LARGE_ANCHORED_ADAPTIVE_BANNER = 'LARGE_ANCHORED_ADAPTIVE_BANNER',
|
|
60
|
+
|
|
55
61
|
/**
|
|
56
62
|
* Inline adaptive banners are larger, taller banners compared to anchored adaptive banners. They are of variable height, and can be as tall as the device screen.
|
|
57
63
|
* They are intended to be placed in scrolling content.
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '16.
|
|
2
|
+
export const version = '16.2.0';
|