react-native-google-mobile-ads 6.1.0 → 6.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 +9 -3
- package/docs/european-user-consent.mdx +31 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsCommon.m +5 -1
- package/lib/commonjs/BannerAdSize.js +2 -0
- package/lib/commonjs/BannerAdSize.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/commonjs/version.js.map +1 -1
- package/lib/module/BannerAdSize.js +2 -0
- package/lib/module/BannerAdSize.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/module/version.js.map +1 -1
- package/lib/typescript/BannerAdSize.d.ts +10 -1
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +8 -8
- package/src/BannerAdSize.ts +12 -1
- package/src/version.ts +1 -1
package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsCommon.java
CHANGED
|
@@ -40,7 +40,7 @@ import javax.annotation.Nullable;
|
|
|
40
40
|
|
|
41
41
|
public class ReactNativeGoogleMobileAdsCommon {
|
|
42
42
|
|
|
43
|
-
static AdSize getAdSizeForAdaptiveBanner(ReactViewGroup reactViewGroup) {
|
|
43
|
+
static AdSize getAdSizeForAdaptiveBanner(String preDefinedAdSize, ReactViewGroup reactViewGroup) {
|
|
44
44
|
|
|
45
45
|
try {
|
|
46
46
|
Display display =
|
|
@@ -52,6 +52,10 @@ public class ReactNativeGoogleMobileAdsCommon {
|
|
|
52
52
|
display.getMetrics(outMetrics);
|
|
53
53
|
int adWidth = (int) (outMetrics.widthPixels / outMetrics.density);
|
|
54
54
|
|
|
55
|
+
if ("INLINE_ADAPTIVE_BANNER".equals(preDefinedAdSize)) {
|
|
56
|
+
return AdSize.getCurrentOrientationInlineAdaptiveBannerAdSize(
|
|
57
|
+
reactViewGroup.getContext(), adWidth);
|
|
58
|
+
}
|
|
55
59
|
return AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize(
|
|
56
60
|
reactViewGroup.getContext(), adWidth);
|
|
57
61
|
} catch (Exception e) {
|
|
@@ -60,8 +64,10 @@ public class ReactNativeGoogleMobileAdsCommon {
|
|
|
60
64
|
}
|
|
61
65
|
|
|
62
66
|
static AdSize getAdSize(String preDefinedAdSize, ReactViewGroup reactViewGroup) {
|
|
63
|
-
if (
|
|
64
|
-
|
|
67
|
+
if (preDefinedAdSize.matches(
|
|
68
|
+
"ADAPTIVE_BANNER|ANCHORED_ADAPTIVE_BANNER|INLINE_ADAPTIVE_BANNER")) {
|
|
69
|
+
return ReactNativeGoogleMobileAdsCommon.getAdSizeForAdaptiveBanner(
|
|
70
|
+
preDefinedAdSize, reactViewGroup);
|
|
65
71
|
} else {
|
|
66
72
|
return ReactNativeGoogleMobileAdsCommon.stringToAdSize(preDefinedAdSize);
|
|
67
73
|
}
|
|
@@ -18,6 +18,16 @@ ad requests to Google serve personalized ads, with ad selection based on the use
|
|
|
18
18
|
|
|
19
19
|
## Handling consent
|
|
20
20
|
|
|
21
|
+
To setup and configure ads consent collection, first of all:
|
|
22
|
+
|
|
23
|
+
- Enable and configure GDPR and IDFA messaging in the [Privacy & messaging section of AdMob's Web Console](https://apps.admob.com/v2/privacymessaging).
|
|
24
|
+
|
|
25
|
+
- For Android, add the following rule into
|
|
26
|
+
`android/app/proguard-rules.pro`:
|
|
27
|
+
```
|
|
28
|
+
-keep class com.google.android.gms.internal.consent_sdk.** { *; }
|
|
29
|
+
```
|
|
30
|
+
|
|
21
31
|
### Delaying app measurement
|
|
22
32
|
|
|
23
33
|
By default, the Google Mobile Ads SDK initializes app measurement and begins sending user-level event data to Google immediately when the app starts.
|
|
@@ -83,6 +93,13 @@ The method returns an `AdsConsentInfo` interface, which provides information abo
|
|
|
83
93
|
- `OBTAINED`: User consent already obtained.
|
|
84
94
|
- **isConsentFormAvailable**: A boolean value. If `true` a consent form is available.
|
|
85
95
|
|
|
96
|
+
**Note:** The return status of this call is the status of *form presentation and response collection*, **not
|
|
97
|
+
the the actual user consent**. It simply indicates if you now have a consent response to decode.
|
|
98
|
+
(_i.e._ if user consent is **required**, the form has been presented, and user has
|
|
99
|
+
**denied** the consent, the status returned by this method will be `OBTAINED`,
|
|
100
|
+
and not `REQUIRED` as some may expect). To check the actual consent status
|
|
101
|
+
see [Inspecting consent choices] below.
|
|
102
|
+
|
|
86
103
|
### Gathering user consent
|
|
87
104
|
|
|
88
105
|
To request consent, call these methods as early as possible within your app before presenting any ads.
|
|
@@ -132,6 +149,11 @@ if (storeAndAccessInformationOnDevice === false) {
|
|
|
132
149
|
}
|
|
133
150
|
```
|
|
134
151
|
|
|
152
|
+
**Note:** Don't try to use this functionality to enforce user consent on iOS,
|
|
153
|
+
this will likely result in failed app review upon submission to Apple Store, based on [review guideline 3.2.2.vi](https://developer.apple.com/app-store/review/guidelines/#3.2.2):
|
|
154
|
+
|
|
155
|
+
> ...Apps should not require users to rate the app, review the app, watch videos, download other apps, tap on advertisements, enable tracking...
|
|
156
|
+
|
|
135
157
|
### Testing
|
|
136
158
|
|
|
137
159
|
When developing the consent flow, the behavior of the `AdsConsent` responses may not be reliable due to the environment
|
|
@@ -167,3 +189,12 @@ import { AdsConsent } from 'react-native-google-mobile-ads';
|
|
|
167
189
|
|
|
168
190
|
AdsConsent.reset();
|
|
169
191
|
```
|
|
192
|
+
|
|
193
|
+
### Troubleshooting
|
|
194
|
+
|
|
195
|
+
In case of troubles, double-check the original documentation for underlying
|
|
196
|
+
UMP SDK for [Android](https://developers.google.com/admob/ump/android/quick-start) /
|
|
197
|
+
[iOS](https://developers.google.com/admob/ump/ios/quick-start).
|
|
198
|
+
|
|
199
|
+
<!-- links -->
|
|
200
|
+
[Inspecting consent choices]: #inspecting-consent-choices
|
|
@@ -190,9 +190,13 @@ NSString *const GOOGLE_MOBILE_ADS_EVENT_REWARDED_EARNED_REWARD = @"rewarded_earn
|
|
|
190
190
|
return GADAdSizeFullBanner;
|
|
191
191
|
} else if ([value isEqualToString:@"LEADERBOARD"]) {
|
|
192
192
|
return GADAdSizeLeaderboard;
|
|
193
|
-
} else if ([value isEqualToString:@"ADAPTIVE_BANNER"]
|
|
193
|
+
} else if ([value isEqualToString:@"ADAPTIVE_BANNER"] ||
|
|
194
|
+
[value isEqualToString:@"ANCHORED_ADAPTIVE_BANNER"]) {
|
|
194
195
|
CGFloat viewWidth = [[UIScreen mainScreen] bounds].size.width;
|
|
195
196
|
return GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(viewWidth);
|
|
197
|
+
} else if ([value isEqualToString:@"INLINE_ADAPTIVE_BANNER"]) {
|
|
198
|
+
CGFloat viewWidth = [[UIScreen mainScreen] bounds].size.width;
|
|
199
|
+
return GADCurrentOrientationInlineAdaptiveBannerAdSizeWithWidth(viewWidth);
|
|
196
200
|
} else {
|
|
197
201
|
return GADAdSizeBanner;
|
|
198
202
|
}
|
|
@@ -32,6 +32,8 @@ exports.BannerAdSize = BannerAdSize;
|
|
|
32
32
|
BannerAdSize["LEADERBOARD"] = "LEADERBOARD";
|
|
33
33
|
BannerAdSize["MEDIUM_RECTANGLE"] = "MEDIUM_RECTANGLE";
|
|
34
34
|
BannerAdSize["ADAPTIVE_BANNER"] = "ADAPTIVE_BANNER";
|
|
35
|
+
BannerAdSize["ANCHORED_ADAPTIVE_BANNER"] = "ANCHORED_ADAPTIVE_BANNER";
|
|
36
|
+
BannerAdSize["INLINE_ADAPTIVE_BANNER"] = "INLINE_ADAPTIVE_BANNER";
|
|
35
37
|
BannerAdSize["FLUID"] = "FLUID";
|
|
36
38
|
BannerAdSize["WIDE_SKYSCRAPER"] = "WIDE_SKYSCRAPER";
|
|
37
39
|
})(BannerAdSize || (exports.BannerAdSize = BannerAdSize = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["BannerAdSize.ts"],"names":["BannerAdSize"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IAEYA,Y;;;WAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;GAAAA,Y,4BAAAA,Y","sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n *\n */\n\nexport enum BannerAdSize {\n /**\n * Mobile Marketing Association (MMA) banner ad size (320x50 density-independent pixels).\n */\n BANNER = 'BANNER',\n\n /**\n * Interactive Advertising Bureau (IAB) full banner ad size (468x60 density-independent pixels).\n */\n FULL_BANNER = 'FULL_BANNER',\n\n /**\n * Large banner ad size (320x100 density-independent pixels).\n */\n LARGE_BANNER = 'LARGE_BANNER',\n\n /**\n * Interactive Advertising Bureau (IAB) leaderboard ad size (728x90 density-independent pixels).\n */\n LEADERBOARD = 'LEADERBOARD',\n\n /**\n * Interactive Advertising Bureau (IAB) medium rectangle ad size (300x250 density-independent pixels).\n */\n MEDIUM_RECTANGLE = 'MEDIUM_RECTANGLE',\n\n /**\n * A (next generation) dynamically sized banner that is full-width and auto-height.\n */\n
|
|
1
|
+
{"version":3,"sources":["BannerAdSize.ts"],"names":["BannerAdSize"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IAEYA,Y;;;WAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;GAAAA,Y,4BAAAA,Y","sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n *\n */\n\nexport enum BannerAdSize {\n /**\n * Mobile Marketing Association (MMA) banner ad size (320x50 density-independent pixels).\n */\n BANNER = 'BANNER',\n\n /**\n * Interactive Advertising Bureau (IAB) full banner ad size (468x60 density-independent pixels).\n */\n FULL_BANNER = 'FULL_BANNER',\n\n /**\n * Large banner ad size (320x100 density-independent pixels).\n */\n LARGE_BANNER = 'LARGE_BANNER',\n\n /**\n * Interactive Advertising Bureau (IAB) leaderboard ad size (728x90 density-independent pixels).\n */\n LEADERBOARD = 'LEADERBOARD',\n\n /**\n * Interactive Advertising Bureau (IAB) medium rectangle ad size (300x250 density-independent pixels).\n */\n MEDIUM_RECTANGLE = 'MEDIUM_RECTANGLE',\n\n /**\n * @deprecated Use `ANCHORED_ADAPTIVE_BANNER` instead.\n */\n ADAPTIVE_BANNER = 'ADAPTIVE_BANNER',\n\n /**\n * A (next generation) dynamically sized banner that is full-width and auto-height.\n */\n ANCHORED_ADAPTIVE_BANNER = 'ANCHORED_ADAPTIVE_BANNER',\n\n /**\n * 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.\n * They are intended to be placed in scrolling content.\n */\n INLINE_ADAPTIVE_BANNER = 'INLINE_ADAPTIVE_BANNER',\n\n /**\n * A dynamically sized banner that matches its parent's width and expands/contracts its height to match the ad's content after loading completes.\n */\n FLUID = 'FLUID',\n\n /**\n * IAB wide skyscraper ad size (160x600 density-independent pixels). This size is currently not supported by the Google Mobile Ads network; this is intended for mediation ad networks only.\n */\n WIDE_SKYSCRAPER = 'WIDE_SKYSCRAPER',\n}\n"]}
|
package/lib/commonjs/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["version.ts"],"names":["version"],"mappings":";;;;;;AAAA;AACO,MAAMA,OAAO,GAAG,OAAhB","sourcesContent":["// Generated by genversion.\nexport const version = '6.
|
|
1
|
+
{"version":3,"sources":["version.ts"],"names":["version"],"mappings":";;;;;;AAAA;AACO,MAAMA,OAAO,GAAG,OAAhB","sourcesContent":["// Generated by genversion.\nexport const version = '6.2.0';\n"]}
|
|
@@ -24,6 +24,8 @@ export let BannerAdSize;
|
|
|
24
24
|
BannerAdSize["LEADERBOARD"] = "LEADERBOARD";
|
|
25
25
|
BannerAdSize["MEDIUM_RECTANGLE"] = "MEDIUM_RECTANGLE";
|
|
26
26
|
BannerAdSize["ADAPTIVE_BANNER"] = "ADAPTIVE_BANNER";
|
|
27
|
+
BannerAdSize["ANCHORED_ADAPTIVE_BANNER"] = "ANCHORED_ADAPTIVE_BANNER";
|
|
28
|
+
BannerAdSize["INLINE_ADAPTIVE_BANNER"] = "INLINE_ADAPTIVE_BANNER";
|
|
27
29
|
BannerAdSize["FLUID"] = "FLUID";
|
|
28
30
|
BannerAdSize["WIDE_SKYSCRAPER"] = "WIDE_SKYSCRAPER";
|
|
29
31
|
})(BannerAdSize || (BannerAdSize = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["BannerAdSize.ts"],"names":["BannerAdSize"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,WAAYA,YAAZ;;WAAYA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;GAAAA,Y,KAAAA,Y","sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n *\n */\n\nexport enum BannerAdSize {\n /**\n * Mobile Marketing Association (MMA) banner ad size (320x50 density-independent pixels).\n */\n BANNER = 'BANNER',\n\n /**\n * Interactive Advertising Bureau (IAB) full banner ad size (468x60 density-independent pixels).\n */\n FULL_BANNER = 'FULL_BANNER',\n\n /**\n * Large banner ad size (320x100 density-independent pixels).\n */\n LARGE_BANNER = 'LARGE_BANNER',\n\n /**\n * Interactive Advertising Bureau (IAB) leaderboard ad size (728x90 density-independent pixels).\n */\n LEADERBOARD = 'LEADERBOARD',\n\n /**\n * Interactive Advertising Bureau (IAB) medium rectangle ad size (300x250 density-independent pixels).\n */\n MEDIUM_RECTANGLE = 'MEDIUM_RECTANGLE',\n\n /**\n * A (next generation) dynamically sized banner that is full-width and auto-height.\n */\n
|
|
1
|
+
{"version":3,"sources":["BannerAdSize.ts"],"names":["BannerAdSize"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,WAAYA,YAAZ;;WAAYA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;GAAAA,Y,KAAAA,Y","sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n *\n */\n\nexport enum BannerAdSize {\n /**\n * Mobile Marketing Association (MMA) banner ad size (320x50 density-independent pixels).\n */\n BANNER = 'BANNER',\n\n /**\n * Interactive Advertising Bureau (IAB) full banner ad size (468x60 density-independent pixels).\n */\n FULL_BANNER = 'FULL_BANNER',\n\n /**\n * Large banner ad size (320x100 density-independent pixels).\n */\n LARGE_BANNER = 'LARGE_BANNER',\n\n /**\n * Interactive Advertising Bureau (IAB) leaderboard ad size (728x90 density-independent pixels).\n */\n LEADERBOARD = 'LEADERBOARD',\n\n /**\n * Interactive Advertising Bureau (IAB) medium rectangle ad size (300x250 density-independent pixels).\n */\n MEDIUM_RECTANGLE = 'MEDIUM_RECTANGLE',\n\n /**\n * @deprecated Use `ANCHORED_ADAPTIVE_BANNER` instead.\n */\n ADAPTIVE_BANNER = 'ADAPTIVE_BANNER',\n\n /**\n * A (next generation) dynamically sized banner that is full-width and auto-height.\n */\n ANCHORED_ADAPTIVE_BANNER = 'ANCHORED_ADAPTIVE_BANNER',\n\n /**\n * 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.\n * They are intended to be placed in scrolling content.\n */\n INLINE_ADAPTIVE_BANNER = 'INLINE_ADAPTIVE_BANNER',\n\n /**\n * A dynamically sized banner that matches its parent's width and expands/contracts its height to match the ad's content after loading completes.\n */\n FLUID = 'FLUID',\n\n /**\n * IAB wide skyscraper ad size (160x600 density-independent pixels). This size is currently not supported by the Google Mobile Ads network; this is intended for mediation ad networks only.\n */\n WIDE_SKYSCRAPER = 'WIDE_SKYSCRAPER',\n}\n"]}
|
package/lib/module/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["version.ts"],"names":["version"],"mappings":"AAAA;AACA,OAAO,MAAMA,OAAO,GAAG,OAAhB","sourcesContent":["// Generated by genversion.\nexport const version = '6.
|
|
1
|
+
{"version":3,"sources":["version.ts"],"names":["version"],"mappings":"AAAA;AACA,OAAO,MAAMA,OAAO,GAAG,OAAhB","sourcesContent":["// Generated by genversion.\nexport const version = '6.2.0';\n"]}
|
|
@@ -20,9 +20,18 @@ export declare enum BannerAdSize {
|
|
|
20
20
|
*/
|
|
21
21
|
MEDIUM_RECTANGLE = "MEDIUM_RECTANGLE",
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* @deprecated Use `ANCHORED_ADAPTIVE_BANNER` instead.
|
|
24
24
|
*/
|
|
25
25
|
ADAPTIVE_BANNER = "ADAPTIVE_BANNER",
|
|
26
|
+
/**
|
|
27
|
+
* A (next generation) dynamically sized banner that is full-width and auto-height.
|
|
28
|
+
*/
|
|
29
|
+
ANCHORED_ADAPTIVE_BANNER = "ANCHORED_ADAPTIVE_BANNER",
|
|
30
|
+
/**
|
|
31
|
+
* 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
|
+
* They are intended to be placed in scrolling content.
|
|
33
|
+
*/
|
|
34
|
+
INLINE_ADAPTIVE_BANNER = "INLINE_ADAPTIVE_BANNER",
|
|
26
35
|
/**
|
|
27
36
|
* A dynamically sized banner that matches its parent's width and expands/contracts its height to match the ad's content after loading completes.
|
|
28
37
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "6.
|
|
1
|
+
export declare const SDK_VERSION = "6.2.0";
|
|
2
2
|
export { default, MobileAds } from './MobileAds';
|
|
3
3
|
export { AdsConsentDebugGeography } from './AdsConsentDebugGeography';
|
|
4
4
|
export { AdsConsentPurposes } from './AdsConsentPurposes';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.
|
|
1
|
+
export declare const version = "6.2.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-google-mobile-ads",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.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",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"tests:ios:test-cover": "cd RNGoogleMobileAdsExample && ./node_modules/.bin/nyc yarn detox test --configuration ios.sim.debug",
|
|
98
98
|
"tests:ios:test-cover-reuse": "cd RNGoogleMobileAdsExample && node_modules/.bin/nyc yarn detox test --configuration ios.sim.debug --reuse --loglevel warn",
|
|
99
99
|
"tests:ios:pod:install": "cd RNGoogleMobileAdsExample && cd ios && rm -rf RNGoogleMobileAdsExample.xcworkspace && rm -f Podfile.lock && pod install --repo-update && cd ..",
|
|
100
|
-
"package:update": "yarn upgrade --latest
|
|
100
|
+
"package:update": "yarn upgrade --latest"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"@iabtcf/core": "^1.4.0",
|
|
@@ -113,13 +113,13 @@
|
|
|
113
113
|
"@semantic-release/npm": "^9.0.1",
|
|
114
114
|
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
115
115
|
"@types/jest": "^27.4.1",
|
|
116
|
-
"@types/node": "^17.0.
|
|
116
|
+
"@types/node": "^17.0.30",
|
|
117
117
|
"@types/react": "^18.0.8",
|
|
118
118
|
"@types/react-native": "^0.67.6",
|
|
119
119
|
"@typescript-eslint/eslint-plugin": "^5.21.0",
|
|
120
120
|
"@typescript-eslint/parser": "^5.21.0",
|
|
121
|
-
"babel-jest": "^28.0.
|
|
122
|
-
"clang-format": "1.
|
|
121
|
+
"babel-jest": "^28.0.3",
|
|
122
|
+
"clang-format": "1.8.0",
|
|
123
123
|
"codecov": "^3.8.3",
|
|
124
124
|
"conventional-changelog-cli": "^2.2.2",
|
|
125
125
|
"eslint": "^8.14.0",
|
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
"eslint-plugin-react": "^7.29.4",
|
|
131
131
|
"genversion": "^3.1.1",
|
|
132
132
|
"google-java-format": "^1.0.1",
|
|
133
|
-
"inquirer": "^8.2.
|
|
134
|
-
"jest": "^28.0.
|
|
133
|
+
"inquirer": "^8.2.4",
|
|
134
|
+
"jest": "^28.0.3",
|
|
135
135
|
"lerna": "4.0.0",
|
|
136
136
|
"prettier": "^2.6.2",
|
|
137
137
|
"react": "^18.1.0",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"shelljs": "^0.8.5",
|
|
143
143
|
"ts-jest": "^27.1.4",
|
|
144
144
|
"ts-node": "^10.7.0",
|
|
145
|
-
"typescript": "^4.6.
|
|
145
|
+
"typescript": "^4.6.4"
|
|
146
146
|
},
|
|
147
147
|
"publishConfig": {
|
|
148
148
|
"access": "public"
|
package/src/BannerAdSize.ts
CHANGED
|
@@ -43,10 +43,21 @@ export enum BannerAdSize {
|
|
|
43
43
|
MEDIUM_RECTANGLE = 'MEDIUM_RECTANGLE',
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* @deprecated Use `ANCHORED_ADAPTIVE_BANNER` instead.
|
|
47
47
|
*/
|
|
48
48
|
ADAPTIVE_BANNER = 'ADAPTIVE_BANNER',
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
* A (next generation) dynamically sized banner that is full-width and auto-height.
|
|
52
|
+
*/
|
|
53
|
+
ANCHORED_ADAPTIVE_BANNER = 'ANCHORED_ADAPTIVE_BANNER',
|
|
54
|
+
|
|
55
|
+
/**
|
|
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.
|
|
57
|
+
* They are intended to be placed in scrolling content.
|
|
58
|
+
*/
|
|
59
|
+
INLINE_ADAPTIVE_BANNER = 'INLINE_ADAPTIVE_BANNER',
|
|
60
|
+
|
|
50
61
|
/**
|
|
51
62
|
* A dynamically sized banner that matches its parent's width and expands/contracts its height to match the ad's content after loading completes.
|
|
52
63
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '6.
|
|
2
|
+
export const version = '6.2.0';
|