Skip to content

Commit

Permalink
fix expo patch (#359) (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sun-Woo-Kim authored Apr 24, 2024
1 parent 4e2825a commit c4cc493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/RNAdMobManager/RNAdmobNativeAdsManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -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"]) {
Expand Down

0 comments on commit c4cc493

Please sign in to comment.