react-native-google-mobile-ads 10.2.0 → 10.3.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/docs/index.mdx CHANGED
@@ -169,6 +169,72 @@ mobileAds()
169
169
 
170
170
  If you are using mediation, you may wish to wait until the promise is settled before loading ads, as this will ensure that all mediation adapters are initialized.
171
171
 
172
+ ### Enable SKAdNetwork to track conversions (iOS)
173
+
174
+ The Google Mobile Ads SDK supports conversion tracking using Apple's SKAdNetwork, which lets Google and participating third-party buyers attribute an app install even when the IDFA is not available.
175
+ Within your projects `app.json` file, add the 50 required SKAdNetwork identifier(s):
176
+
177
+ ```json
178
+ {
179
+ "react-native-google-mobile-ads": {
180
+ "android_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx",
181
+ "ios_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx",
182
+ "sk_ad_network_items": [
183
+ "cstr6suwn9.skadnetwork",
184
+ "4fzdc2evr5.skadnetwork",
185
+ "4pfyvq9l8r.skadnetwork",
186
+ "2fnua5tdw4.skadnetwork",
187
+ "ydx93a7ass.skadnetwork",
188
+ "5a6flpkh64.skadnetwork",
189
+ "p78axxw29g.skadnetwork",
190
+ "v72qych5uu.skadnetwork",
191
+ "ludvb6z3bs.skadnetwork",
192
+ "cp8zw746q7.skadnetwork",
193
+ "c6k4g5qg8m.skadnetwork",
194
+ "s39g8k73mm.skadnetwork",
195
+ "3qy4746246.skadnetwork",
196
+ "3sh42y64q3.skadnetwork",
197
+ "f38h382jlk.skadnetwork",
198
+ "hs6bdukanm.skadnetwork",
199
+ "prcb7njmu6.skadnetwork",
200
+ "v4nxqhlyqp.skadnetwork",
201
+ "wzmmz9fp6w.skadnetwork",
202
+ "yclnxrl5pm.skadnetwork",
203
+ "t38b2kh725.skadnetwork",
204
+ "7ug5zh24hu.skadnetwork",
205
+ "9rd848q2bz.skadnetwork",
206
+ "y5ghdn5j9k.skadnetwork",
207
+ "n6fk4nfna4.skadnetwork",
208
+ "v9wttpbfk9.skadnetwork",
209
+ "n38lu8286q.skadnetwork",
210
+ "47vhws6wlr.skadnetwork",
211
+ "kbd757ywx3.skadnetwork",
212
+ "9t245vhmpl.skadnetwork",
213
+ "a2p9lx4jpn.skadnetwork",
214
+ "22mmun2rn5.skadnetwork",
215
+ "4468km3ulz.skadnetwork",
216
+ "2u9pt9hc89.skadnetwork",
217
+ "8s468mfl3y.skadnetwork",
218
+ "av6w8kgt66.skadnetwork",
219
+ "klf5c3l5u5.skadnetwork",
220
+ "ppxm28t8ap.skadnetwork",
221
+ "424m5254lk.skadnetwork",
222
+ "ecpz2srf59.skadnetwork",
223
+ "uw77j35x4d.skadnetwork",
224
+ "mlmmfzh3r3.skadnetwork",
225
+ "578prtvx9j.skadnetwork",
226
+ "4dzt52r2t5.skadnetwork",
227
+ "gta9lk7p23.skadnetwork",
228
+ "e5fvkxwrpn.skadnetwork",
229
+ "8c4e2ghe7u.skadnetwork",
230
+ "zq492l623r.skadnetwork",
231
+ "3rd42ekr43.skadnetwork",
232
+ "3qcr597p9d.skadnetwork"
233
+ ]
234
+ }
235
+ }
236
+ ```
237
+
172
238
  ### App Tracking Transparency (iOS)
173
239
 
174
240
  Apple requires apps to display the App Tracking Transparency authorization request for accessing the IDFA (leaving the choice to the user, whether to use personalized or non-personalized ads).
package/ios_config.sh CHANGED
@@ -104,6 +104,24 @@ if [[ ${_SEARCH_RESULT} ]]; then
104
104
  _PLIST_ENTRY_VALUES+=("$_IOS_APP_ID")
105
105
  fi
106
106
 
107
+ # config.sk_ad_network_items
108
+ _SK_AD_NETWORK_ITEMS=$(getJsonKeyValue "$_JSON_OUTPUT_RAW" "sk_ad_network_items")
109
+ if [[ $_SK_AD_NETWORK_ITEMS ]]; then
110
+ _PLIST_ENTRY_KEYS+=("SKAdNetworkItems")
111
+ _PLIST_ENTRY_TYPES+=("array")
112
+ _PLIST_ENTRY_VALUES+=("")
113
+
114
+ oldifs=$IFS
115
+ IFS=$'\n'
116
+ array=($(echo "$_SK_AD_NETWORK_ITEMS"))
117
+ IFS=$oldifs
118
+ for i in "${!array[@]}"; do
119
+ _PLIST_ENTRY_KEYS+=("SKAdNetworkItems:$i:SKAdNetworkIdentifier")
120
+ _PLIST_ENTRY_TYPES+=("string")
121
+ _PLIST_ENTRY_VALUES+=("${array[i]}")
122
+ done
123
+ fi
124
+
107
125
  # config.user_tracking_usage_description
108
126
  _USER_TRACKING_USAGE_DESCRIPTION=$(getJsonKeyValue "$_JSON_OUTPUT_RAW" "user_tracking_usage_description")
109
127
  if [[ $_USER_TRACKING_USAGE_DESCRIPTION ]]; then
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // Generated by genversion.
8
- const version = '10.2.0';
8
+ const version = '10.3.0';
9
9
  exports.version = version;
10
10
  //# sourceMappingURL=version.js.map
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '10.2.0';
2
+ export const version = '10.3.0';
3
3
  //# sourceMappingURL=version.js.map
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "10.2.0";
1
+ export declare const SDK_VERSION = "10.3.0";
2
2
  export { default, MobileAds } from './MobileAds';
3
3
  export { AdsConsentDebugGeography } from './AdsConsentDebugGeography';
4
4
  export { AdsConsentPurposes } from './AdsConsentPurposes';
@@ -1,2 +1,2 @@
1
- export declare const version = "10.2.0";
1
+ export declare const version = "10.3.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": "10.2.0",
3
+ "version": "10.3.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/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '10.2.0';
2
+ export const version = '10.3.0';