react-native-google-mobile-ads 16.2.1 → 16.2.3
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 +1 -1
- package/docs/displaying-ads.mdx +2 -2
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerComponent.m +1 -1
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerView.mm +1 -1
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsCommon.mm +2 -2
- package/lib/commonjs/BannerAdSize.js +3 -4
- package/lib/commonjs/BannerAdSize.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/module/BannerAdSize.js +3 -4
- package/lib/module/BannerAdSize.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/typescript/BannerAdSize.d.ts +6 -8
- 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 +3 -5
- package/src/version.ts +1 -1
package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsCommon.java
CHANGED
|
@@ -78,7 +78,7 @@ public class ReactNativeGoogleMobileAdsCommon {
|
|
|
78
78
|
|
|
79
79
|
static AdSize getAdSize(String preDefinedAdSize, ViewGroup reactViewGroup) {
|
|
80
80
|
if (preDefinedAdSize.matches(
|
|
81
|
-
"
|
|
81
|
+
"ANCHORED_ADAPTIVE_BANNER|LARGE_ANCHORED_ADAPTIVE_BANNER|INLINE_ADAPTIVE_BANNER")) {
|
|
82
82
|
return ReactNativeGoogleMobileAdsCommon.getAdSizeForAdaptiveBanner(
|
|
83
83
|
preDefinedAdSize, reactViewGroup);
|
|
84
84
|
} else {
|
package/docs/displaying-ads.mdx
CHANGED
|
@@ -432,7 +432,7 @@ function App() {
|
|
|
432
432
|
});
|
|
433
433
|
|
|
434
434
|
return (
|
|
435
|
-
<BannerAd ref={bannerRef} unitId={adUnitId} size={BannerAdSize.
|
|
435
|
+
<BannerAd ref={bannerRef} unitId={adUnitId} size={BannerAdSize.LARGE_ANCHORED_ADAPTIVE_BANNER} />
|
|
436
436
|
);
|
|
437
437
|
}
|
|
438
438
|
```
|
|
@@ -479,7 +479,7 @@ function App() {
|
|
|
479
479
|
return (
|
|
480
480
|
<BannerAd
|
|
481
481
|
unitId={adUnitId}
|
|
482
|
-
size={BannerAdSize.
|
|
482
|
+
size={BannerAdSize.LARGE_ANCHORED_ADAPTIVE_BANNER}
|
|
483
483
|
requestOptions={{
|
|
484
484
|
networkExtras: {
|
|
485
485
|
collapsible: 'bottom',
|
|
@@ -265,7 +265,7 @@ using namespace facebook::react;
|
|
|
265
265
|
->onNativeEvent(facebook::react::RNGoogleMobileAdsBannerViewEventEmitter::OnNativeEvent{
|
|
266
266
|
.type = "onAppEvent",
|
|
267
267
|
.name = std::string([name UTF8String]),
|
|
268
|
-
.data = std::string([info UTF8String])});
|
|
268
|
+
.data = std::string(info ? [info UTF8String] : "")});
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
|
|
@@ -194,8 +194,8 @@ NSString *const GOOGLE_MOBILE_ADS_EVENT_REWARDED_EARNED_REWARD = @"rewarded_earn
|
|
|
194
194
|
return GADAdSizeFullBanner;
|
|
195
195
|
} else if ([value isEqualToString:@"LEADERBOARD"]) {
|
|
196
196
|
return GADAdSizeLeaderboard;
|
|
197
|
-
} else if ([value isEqualToString:@"
|
|
198
|
-
[value isEqualToString:@"
|
|
197
|
+
} else if ([value isEqualToString:@"ANCHORED_ADAPTIVE_BANNER"] ||
|
|
198
|
+
[value isEqualToString:@"LARGE_ANCHORED_ADAPTIVE_BANNER"] ||
|
|
199
199
|
[value isEqualToString:@"INLINE_ADAPTIVE_BANNER"]) {
|
|
200
200
|
CGRect frame = [[UIScreen mainScreen] bounds];
|
|
201
201
|
if (@available(iOS 11.0, *)) {
|
|
@@ -43,10 +43,9 @@ let BannerAdSize = exports.BannerAdSize = /*#__PURE__*/function (BannerAdSize) {
|
|
|
43
43
|
*/
|
|
44
44
|
BannerAdSize["MEDIUM_RECTANGLE"] = "MEDIUM_RECTANGLE";
|
|
45
45
|
/**
|
|
46
|
-
* @deprecated Use `
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/**
|
|
46
|
+
* @deprecated Use `LARGE_ANCHORED_ADAPTIVE_BANNER` instead.
|
|
47
|
+
* See: https://ads-developers.googleblog.com/2026/02/announcing-android-google-mobile-ads.html
|
|
48
|
+
*
|
|
50
49
|
* Anchored to the top or bottom of the screen, anchored adaptive banners set an optimal ad slot size for any device.
|
|
51
50
|
*/
|
|
52
51
|
BannerAdSize["ANCHORED_ADAPTIVE_BANNER"] = "ANCHORED_ADAPTIVE_BANNER";
|
|
@@ -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;
|
|
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;AACA;AACA;AACA;EA/BYA,YAAY;EAkCtB;AACF;AACA;AACA;EArCYA,YAAY;EAwCtB;AACF;AACA;AACA;EA3CYA,YAAY;EA8CtB;AACF;AACA;EAhDYA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAoDjB,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
|
@@ -40,10 +40,9 @@ export let BannerAdSize = /*#__PURE__*/function (BannerAdSize) {
|
|
|
40
40
|
*/
|
|
41
41
|
BannerAdSize["MEDIUM_RECTANGLE"] = "MEDIUM_RECTANGLE";
|
|
42
42
|
/**
|
|
43
|
-
* @deprecated Use `
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/**
|
|
43
|
+
* @deprecated Use `LARGE_ANCHORED_ADAPTIVE_BANNER` instead.
|
|
44
|
+
* See: https://ads-developers.googleblog.com/2026/02/announcing-android-google-mobile-ads.html
|
|
45
|
+
*
|
|
47
46
|
* Anchored to the top or bottom of the screen, anchored adaptive banners set an optimal ad slot size for any device.
|
|
48
47
|
*/
|
|
49
48
|
BannerAdSize["ANCHORED_ADAPTIVE_BANNER"] = "ANCHORED_ADAPTIVE_BANNER";
|
|
@@ -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;
|
|
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;AACA;AACA;AACA;EA/BYA,YAAY;EAkCtB;AACF;AACA;AACA;EArCYA,YAAY;EAwCtB;AACF;AACA;AACA;EA3CYA,YAAY;EA8CtB;AACF;AACA;EAhDYA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAoDxB,OAAO,MAAMC,eAAe,GAAG;EAC7B,GAAGD,YAAY;EAEf;AACF;AACA;EACEE,KAAK,EAAE;AACT,CAAU","ignoreList":[]}
|
package/lib/module/version.js
CHANGED
|
@@ -20,10 +20,9 @@ export declare enum BannerAdSize {
|
|
|
20
20
|
*/
|
|
21
21
|
MEDIUM_RECTANGLE = "MEDIUM_RECTANGLE",
|
|
22
22
|
/**
|
|
23
|
-
* @deprecated Use `
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/**
|
|
23
|
+
* @deprecated Use `LARGE_ANCHORED_ADAPTIVE_BANNER` instead.
|
|
24
|
+
* See: https://ads-developers.googleblog.com/2026/02/announcing-android-google-mobile-ads.html
|
|
25
|
+
*
|
|
27
26
|
* Anchored to the top or bottom of the screen, anchored adaptive banners set an optimal ad slot size for any device.
|
|
28
27
|
*/
|
|
29
28
|
ANCHORED_ADAPTIVE_BANNER = "ANCHORED_ADAPTIVE_BANNER",
|
|
@@ -68,10 +67,9 @@ export declare const GAMBannerAdSize: {
|
|
|
68
67
|
*/
|
|
69
68
|
readonly MEDIUM_RECTANGLE: BannerAdSize.MEDIUM_RECTANGLE;
|
|
70
69
|
/**
|
|
71
|
-
* @deprecated Use `
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/**
|
|
70
|
+
* @deprecated Use `LARGE_ANCHORED_ADAPTIVE_BANNER` instead.
|
|
71
|
+
* See: https://ads-developers.googleblog.com/2026/02/announcing-android-google-mobile-ads.html
|
|
72
|
+
*
|
|
75
73
|
* Anchored to the top or bottom of the screen, anchored adaptive banners set an optimal ad slot size for any device.
|
|
76
74
|
*/
|
|
77
75
|
readonly ANCHORED_ADAPTIVE_BANNER: BannerAdSize.ANCHORED_ADAPTIVE_BANNER;
|
|
@@ -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
|
|
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;;;;;OAKG;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;;IAxDH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;;;;OAKG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;OAEG;;CAWK,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "16.2.
|
|
1
|
+
export declare const SDK_VERSION = "16.2.3";
|
|
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.2.
|
|
1
|
+
export declare const version = "16.2.3";
|
|
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.2.
|
|
3
|
+
"version": "16.2.3",
|
|
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
|
@@ -43,11 +43,9 @@ export enum BannerAdSize {
|
|
|
43
43
|
MEDIUM_RECTANGLE = 'MEDIUM_RECTANGLE',
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* @deprecated Use `
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
/**
|
|
46
|
+
* @deprecated Use `LARGE_ANCHORED_ADAPTIVE_BANNER` instead.
|
|
47
|
+
* See: https://ads-developers.googleblog.com/2026/02/announcing-android-google-mobile-ads.html
|
|
48
|
+
*
|
|
51
49
|
* Anchored to the top or bottom of the screen, anchored adaptive banners set an optimal ad slot size for any device.
|
|
52
50
|
*/
|
|
53
51
|
ANCHORED_ADAPTIVE_BANNER = 'ANCHORED_ADAPTIVE_BANNER',
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '16.2.
|
|
2
|
+
export const version = '16.2.3';
|