I am trying to integrate google ads to my react native app, so I followed everything from the official docs https://rnfirebase.io/ and I managed to display google ads. but when it comes to European User Consent I cant display the Google-rendered consent because the result of the method AdsConsentInfo isRequestLocationInEeaOrUnknown is always false even I whitelist my device an set a debug location :
async componentDidMount(){
AdsConsent.addTestDevices(['MY_DEVICE_ID'])
const consentInfo = await AdsConsent.requestInfoUpdate(['pub-XXXXXX']);
await AdsConsent.setDebugGeography(AdsConsentDebugGeography.EEA);
if (
consentInfo.isRequestLocationInEeaOrUnknown &&
consentInfo.status === AdsConsentStatus.UNKNOWN
) {
const formResult = await AdsConsent.showForm({
privacyPolicy: 'https://invertase.io/privacy-policy',
withPersonalizedAds: false,
withNonPersonalizedAds: true,
withAdFree: false,
});
}
}