react-native-google-mobile-ads
Advanced tools
Comparing version 12.9.0 to 12.10.0
@@ -80,2 +80,5 @@ "use strict"; | ||
}, | ||
getPurposeConsents() { | ||
return native.getPurposeConsents(); | ||
}, | ||
async getUserChoices() { | ||
@@ -82,0 +85,0 @@ const tcString = await native.getTCString(); |
@@ -8,4 +8,4 @@ "use strict"; | ||
// Generated by genversion. | ||
const version = '12.9.0'; | ||
const version = '12.10.0'; | ||
exports.version = version; | ||
//# sourceMappingURL=version.js.map |
@@ -74,2 +74,5 @@ /* | ||
}, | ||
getPurposeConsents() { | ||
return native.getPurposeConsents(); | ||
}, | ||
async getUserChoices() { | ||
@@ -76,0 +79,0 @@ const tcString = await native.getTCString(); |
// Generated by genversion. | ||
export const version = '12.9.0'; | ||
export const version = '12.10.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const SDK_VERSION = "12.9.0"; | ||
export declare const SDK_VERSION = "12.10.0"; | ||
export { default, MobileAds } from './MobileAds'; | ||
@@ -3,0 +3,0 @@ export { AdsConsentDebugGeography } from './AdsConsentDebugGeography'; |
@@ -130,2 +130,21 @@ import { TCModel } from '@iabtcf/core'; | ||
/** | ||
* Returns the value stored under the `IABTCF_PurposeConsents` key | ||
* in NSUserDefaults (iOS) / SharedPreferences (Android) as | ||
* defined by the IAB Europe Transparency & Consent Framework. | ||
* | ||
* More information available here: | ||
* https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details | ||
* | ||
* #### Example | ||
* | ||
* ```js | ||
* import { AdsConsent } from '@invertase/react-native-google-ads'; | ||
* | ||
* await AdsConsent.requestInfoUpdate(); | ||
* const purposeConsents = await AdsConsent.getPurposeConsents(); | ||
* const hasConsentForPurposeOne = purposeConsents.startsWith("1"); | ||
* ``` | ||
*/ | ||
getPurposeConsents(): Promise<string>; | ||
/** | ||
* Provides information about a user's consent choices. | ||
@@ -132,0 +151,0 @@ * |
@@ -1,2 +0,2 @@ | ||
export declare const version = "12.9.0"; | ||
export declare const version = "12.10.0"; | ||
//# sourceMappingURL=version.d.ts.map |
{ | ||
"name": "react-native-google-mobile-ads", | ||
"version": "12.9.0", | ||
"version": "12.10.0", | ||
"author": "Invertase <oss@invertase.io> (http://invertase.io)", | ||
@@ -5,0 +5,0 @@ "description": "React Native Google Mobile Ads is an easy way to monetize mobile apps with targeted, in-app advertising.", |
@@ -111,2 +111,6 @@ /* | ||
getPurposeConsents(): Promise<string> { | ||
return native.getPurposeConsents(); | ||
}, | ||
async getUserChoices(): Promise<AdsConsentUserChoices> { | ||
@@ -113,0 +117,0 @@ const tcString = await native.getTCString(); |
@@ -140,2 +140,22 @@ import { TCModel } from '@iabtcf/core'; | ||
/** | ||
* Returns the value stored under the `IABTCF_PurposeConsents` key | ||
* in NSUserDefaults (iOS) / SharedPreferences (Android) as | ||
* defined by the IAB Europe Transparency & Consent Framework. | ||
* | ||
* More information available here: | ||
* https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details | ||
* | ||
* #### Example | ||
* | ||
* ```js | ||
* import { AdsConsent } from '@invertase/react-native-google-ads'; | ||
* | ||
* await AdsConsent.requestInfoUpdate(); | ||
* const purposeConsents = await AdsConsent.getPurposeConsents(); | ||
* const hasConsentForPurposeOne = purposeConsents.startsWith("1"); | ||
* ``` | ||
*/ | ||
getPurposeConsents(): Promise<string>; | ||
/** | ||
* Provides information about a user's consent choices. | ||
@@ -142,0 +162,0 @@ * |
// Generated by genversion. | ||
export const version = '12.9.0'; | ||
export const version = '12.10.0'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
913144
13216