Issues when use with react-native-admob-native-ads
TrungNguyen153 opened this issue · 3 comments
TrungNguyen153 commented
// unknow reason when install your package in my project cause function below not finish
await AdManager.setRequestConfiguration({ // method from react-native-admob-native-ads
trackingAuthorized,
maxAdContentRating: 'G',
tagForChildDirectedTreatment: false,
tagForUnderAgeConsent: false,
});
wjaykim commented
This is because the package react-native-admob-native-ads initializes sdk when call the function setRequestOptions
, while this library initializes sdk automatically.
Replace AdManager.setRequestOptions
to AdMob.setRequestOptions
. AdMob
is default export of this package.
TrungNguyen153 commented
tks your response. i will try
TrungNguyen153 commented
it work