Skip to content

Commit 8562627

Browse files
committed
feat: update mobile ads sdk, ump sdk and add new geography options
1 parent 84b2b27 commit 8562627

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

__tests__/consent.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('Google Mobile Ads AdsConsent', function () {
1212
it('throws if options.debugGeography is not a valid value.', function () {
1313
// @ts-ignore
1414
expect(() => AdsConsent.requestInfoUpdate({ debugGeography: -1 })).toThrowError(
15-
"AdsConsent.requestInfoUpdate(*) 'options.debugGeography' expected one of AdsConsentDebugGeography.DISABLED, AdsConsentDebugGeography.EEA or AdsConsentDebugGeography.NOT_EEA.",
15+
"AdsConsent.requestInfoUpdate(*) 'options.debugGeography' expected one of AdsConsentDebugGeography.DISABLED, AdsConsentDebugGeography.EEA, AdsConsentDebugGeography.NOT_EEA, AdsConsentDebugGeography.REGULATED_US_STATE or AdsConsentDebugGeography.OTHER.",
1616
);
1717
});
1818

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@
4343
],
4444
"sdkVersions": {
4545
"ios": {
46-
"googleMobileAds": "11.10.0",
47-
"googleUmp": "2.6.0"
46+
"googleMobileAds": "11.13.0",
47+
"googleUmp": "2.7.0"
4848
},
4949
"android": {
5050
"minSdk": 21,
5151
"targetSdk": 34,
5252
"compileSdk": 34,
5353
"buildTools": "34.0.0",
54-
"googleMobileAds": "23.4.0",
55-
"googleUmp": "3.0.0"
54+
"googleMobileAds": "23.6.0",
55+
"googleUmp": "3.1.0"
5656
}
5757
},
5858
"react-native-builder-bob": {

src/AdsConsent.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ export const AdsConsent: AdsConsentInterface = {
3636
isPropertySet(options, 'debugGeography') &&
3737
options.debugGeography !== AdsConsentDebugGeography.DISABLED &&
3838
options.debugGeography !== AdsConsentDebugGeography.EEA &&
39-
options.debugGeography !== AdsConsentDebugGeography.NOT_EEA
39+
options.debugGeography !== AdsConsentDebugGeography.NOT_EEA &&
40+
options.debugGeography !== AdsConsentDebugGeography.REGULATED_US_STATE &&
41+
options.debugGeography !== AdsConsentDebugGeography.OTHER
4042
) {
4143
throw new Error(
42-
"AdsConsent.requestInfoUpdate(*) 'options.debugGeography' expected one of AdsConsentDebugGeography.DISABLED, AdsConsentDebugGeography.EEA or AdsConsentDebugGeography.NOT_EEA.",
44+
"AdsConsent.requestInfoUpdate(*) 'options.debugGeography' expected one of AdsConsentDebugGeography.DISABLED, AdsConsentDebugGeography.EEA, AdsConsentDebugGeography.NOT_EEA, AdsConsentDebugGeography.REGULATED_US_STATE or AdsConsentDebugGeography.OTHER.",
4345
);
4446
}
4547

src/specs/modules/NativeConsentModule.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,24 @@ export enum AdsConsentDebugGeography {
3030
DISABLED = 0,
3131

3232
/**
33-
* Sets the location to within the EEA.
33+
* Geography appears as in EEA for debug devices.
3434
*/
3535
EEA = 1,
3636

3737
/**
38-
* Sets the location to outside of the EEA.
38+
* @deprecated Use `OTHER`.
3939
*/
4040
NOT_EEA = 2,
41+
42+
/**
43+
* Geography appears as in a regulated US State.
44+
*/
45+
REGULATED_US_STATE = 3,
46+
47+
/**
48+
* Geography appears as in a region with no regulation in force.
49+
*/
50+
OTHER = 4,
4151
}
4252

4353
/**

0 commit comments

Comments
 (0)