From c4cc493e392445b153debd7d07f80ebc16ba053e Mon Sep 17 00:00:00 2001 From: Qube Date: Wed, 24 Apr 2024 13:53:10 +0900 Subject: [PATCH] fix expo patch (#359) (#363) --- ios/RNAdMobManager/RNAdmobNativeAdsManager.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/RNAdMobManager/RNAdmobNativeAdsManager.m b/ios/RNAdMobManager/RNAdmobNativeAdsManager.m index eb5596fd..1547583b 100644 --- a/ios/RNAdMobManager/RNAdmobNativeAdsManager.m +++ b/ios/RNAdMobManager/RNAdmobNativeAdsManager.m @@ -67,12 +67,12 @@ @implementation RNAdmobNativeAdsManager if ([[config allKeys] containsObject:@"tagForChildDirectedTreatment"]) { NSNumber *tag = [config valueForKey:@"tagForChildDirectedTreatment"]; - [[[GADMobileAds sharedInstance] requestConfiguration] tagForChildDirectedTreatment:tag.boolValue]; + [[[GADMobileAds sharedInstance] requestConfiguration] setTagForChildDirectedTreatment:[NSNumber numberWithBool:tag.boolValue]]; }; if ([[config allKeys] containsObject:@"tagForUnderAgeConsent"]) { NSNumber *tagC = [config valueForKey:@"tagForUnderAgeConsent"]; - [[[GADMobileAds sharedInstance] requestConfiguration] tagForUnderAgeOfConsent:tagC.boolValue]; + [[[GADMobileAds sharedInstance] requestConfiguration] setTagForChildDirectedTreatment:[NSNumber numberWithBool:tagC.boolValue]]; }; if ([[config allKeys] containsObject:@"testDeviceIds"]) {