react-native-google-mobile-ads 14.9.1 → 14.10.1

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.
@@ -1,6 +1,5 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
2
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- xmlns:tools="http://schemas.android.com/tools"
4
3
  package="io.invertase.googlemobileads">
5
4
 
6
5
  <uses-permission android:name="android.permission.INTERNET" />
@@ -20,26 +19,5 @@
20
19
  <meta-data
21
20
  android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING"
22
21
  android:value="${appJSONGoogleMobileAdsOptimizeAdLoading}"/>
23
-
24
- <!-- This may generate a warning during your build:
25
-
26
- > property#android.adservices.AD_SERVICES_CONFIG@android:resource
27
- > was tagged at AndroidManifest.xml:23 to replace other declarations
28
- > but no other declaration present
29
-
30
- You may safely ignore this warning.
31
-
32
- We must include this in case you also use Firebase Analytics in some
33
- of its configurations, as it may also include this file, and the two
34
- will collide and cause a build error if we don't set this one to take
35
- priority via replacement.
36
-
37
- https://github.com/invertase/react-native-google-mobile-ads/issues/657
38
-
39
- -->
40
- <property
41
- android:name="android.adservices.AD_SERVICES_CONFIG"
42
- android:resource="@xml/gma_ad_services_config"
43
- tools:replace="android:resource" />
44
22
  </application>
45
23
  </manifest>
@@ -10,7 +10,7 @@ App open ads can be closed by your users at any time. App open ads can be shown
10
10
  App open ads are shown when your application launches or when users bring your application to the foreground.
11
11
  To make sure you have an ad ready to display when a user opens your app, you'll want to have a reference to an ad ready to use.
12
12
 
13
- That means you must preload a app open ad before you need to show the ad. That way, your app open ad is ready to show the next time the app is opened.
13
+ That means you must preload an app open ad before you need to show the ad. That way, your app open ad is ready to show the next time the app is opened.
14
14
 
15
15
  To create a new app open ad, call the `createForAdRequest` method from the `AppOpenAd` class. The first argument
16
16
  of the method is the "Ad Unit ID". For testing, we can use a Test ID, however for production the ID from the
@@ -61,7 +61,7 @@ Google built app open ads to help you monetize your app's loading screen, but it
61
61
 
62
62
  ## Interstitial Ads
63
63
 
64
- Interstitials are full-screen ads that cover the interface of an app until closed by the user. These type of ads are
64
+ Interstitials are full-screen ads that cover the interface of an app until closed by the user. These types of ads are
65
65
  programmatically loaded and then shown at a suitable point during your application flow (e.g. after a level on a gaming
66
66
  app has been completed, or game over). The ads can be preloaded in the background to ensure they're ready to go when needed.
67
67
 
@@ -111,13 +111,13 @@ function App() {
111
111
  const unsubscribeOpened = interstitial.addAdEventListener(AdEventType.OPENED, () => {
112
112
  if (Platform.OS === 'ios') {
113
113
  // Prevent the close button from being unreachable by hiding the status bar on iOS
114
- StatusBar.setHidden(true)
114
+ StatusBar.setHidden(true);
115
115
  }
116
116
  });
117
117
 
118
118
  const unsubscribeClosed = interstitial.addAdEventListener(AdEventType.CLOSED, () => {
119
119
  if (Platform.OS === 'ios') {
120
- StatusBar.setHidden(false)
120
+ StatusBar.setHidden(false);
121
121
  }
122
122
  });
123
123
 
@@ -423,13 +423,13 @@ import { BannerAd, BannerAdSize, TestIds, useForeground } from 'react-native-goo
423
423
  const adUnitId = __DEV__ ? TestIds.ADAPTIVE_BANNER : 'ca-app-pub-xxxxxxxxxxxxx/yyyyyyyyyyyyyy';
424
424
 
425
425
  function App() {
426
- const bannerRef = useRef<BannerAd>(null);
426
+ const bannerRef = useRef < BannerAd > null;
427
427
 
428
428
  // (iOS) WKWebView can terminate if app is in a "suspended state", resulting in an empty banner when app returns to foreground.
429
429
  // Therefore it's advised to "manually" request a new ad when the app is foregrounded (https://groups.google.com/g/google-admob-ads-sdk/c/rwBpqOUr8m8).
430
430
  useForeground(() => {
431
431
  Platform.OS === 'ios' && bannerRef.current?.load();
432
- })
432
+ });
433
433
 
434
434
  return (
435
435
  <BannerAd ref={bannerRef} unitId={adUnitId} size={BannerAdSize.ANCHORED_ADAPTIVE_BANNER} />
@@ -441,7 +441,8 @@ The `size` prop takes a [`BannerAdSize`](https://github.com/invertase/react-nati
441
441
  fill the space for the chosen size.
442
442
 
443
443
  <Info>
444
- If no inventory for the size specified is available, an error will be thrown via `onAdFailedToLoad`!
444
+ If no inventory for the size specified is available, an error will be thrown via
445
+ `onAdFailedToLoad`!
445
446
  </Info>
446
447
 
447
448
  The `requestOptions` prop is additional optional request options object to be sent whilst loading an advert, such as keywords & location.
package/docs/index.mdx CHANGED
@@ -92,7 +92,7 @@ Under the "App settings" menu item, you can find the "App ID":
92
92
 
93
93
  ![Google AdMob App ID](https://prismic-io.s3.amazonaws.com/invertase%2F52dd6900-108c-47a6-accb-699fde963b99_new+project+%2813%29.jpg)
94
94
 
95
- The app IDs for Android and iOS need to be inserted into your apps native code.
95
+ The app IDs for Android and iOS need to be inserted into your app's native code.
96
96
  For bare React Native projects, you can add the app IDs to the `app.json` file.
97
97
  For Expo projects, we provide an [Expo config plugin](https://docs.expo.dev/config-plugins/introduction/).
98
98
 
@@ -124,7 +124,7 @@ npx react-native run-android
124
124
  <TabItem value="expo">
125
125
 
126
126
  This library contains an Expo config plugin which you must add to your `app.json`, `app.config.js`, or `app.config.ts` file.
127
- For these changes to take effect, your must rebuild your project's native code and install the new build on your device.
127
+ For these changes to take effect, you must rebuild your project's native code and install the new build on your device.
128
128
 
129
129
  ```json
130
130
  // <project-root>/app.json
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // Generated by genversion.
8
- const version = exports.version = '14.9.1';
8
+ const version = exports.version = '14.10.1';
9
9
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["version","exports"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":";;;;;;AAAA;AACO,MAAMA,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,QAAQ","ignoreList":[]}
1
+ {"version":3,"names":["version","exports"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":";;;;;;AAAA;AACO,MAAMA,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,SAAS","ignoreList":[]}
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '14.9.1';
2
+ export const version = '14.10.1';
3
3
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["version"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"AAAA;AACA,OAAO,MAAMA,OAAO,GAAG,QAAQ","ignoreList":[]}
1
+ {"version":3,"names":["version"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"AAAA;AACA,OAAO,MAAMA,OAAO,GAAG,SAAS","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "14.9.1";
1
+ export declare const SDK_VERSION = "14.10.1";
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 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,WAAW,WAAU,CAAC;AAEnC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EACL,wBAAwB,EACxB,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,yCAAyC,EACzC,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAA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,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,cAAc,SAAS,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const version = "14.9.1";
1
+ export declare const version = "14.10.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,WAAW,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-google-mobile-ads",
3
- "version": "14.9.1",
3
+ "version": "14.10.1",
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",
@@ -43,15 +43,15 @@
43
43
  ],
44
44
  "sdkVersions": {
45
45
  "ios": {
46
- "googleMobileAds": "12.0.0",
46
+ "googleMobileAds": "12.2.0",
47
47
  "googleUmp": "2.7.0"
48
48
  },
49
49
  "android": {
50
- "minSdk": 21,
50
+ "minSdk": 23,
51
51
  "targetSdk": 34,
52
52
  "compileSdk": 34,
53
53
  "buildTools": "34.0.0",
54
- "googleMobileAds": "23.6.0",
54
+ "googleMobileAds": "24.1.0",
55
55
  "googleUmp": "3.1.0"
56
56
  }
57
57
  },
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '14.9.1';
2
+ export const version = '14.10.1';