ammarahm-ed / react-native-admob-native-ads

A simple and robust library for creating & displaying Admob Native Advanced Ads in your React Native App using Native Views.
https://ammarahm-ed.github.io/react-native-admob-native-ads/docs/introduction/
MIT License
403 stars 135 forks source link

error while updating property 'requestnonpersonalizedadsonly' of a view managed by : rngadnativeview #374

Closed pradhyumansinh9849 closed 1 month ago

zoobibackups commented 3 months ago

same issue

haresh4d commented 3 months ago

Everybody is stuck here but there is no solution. If anyone has idea about how to solve it please spare some time. #372

haresh4d commented 3 months ago

Following fixed for me:

Change build.gradle line 56 from :

implementation "com.google.android.gms:play-services-ads:${safeExtGet('googlePlayServicesAdsVersion', '20.+')}"

to

implementation "com.google.android.gms:play-services-ads:${safeExtGet('googlePlayServicesAdsVersion', '23.+')}"

zoobibackups commented 3 months ago

for me fixed that issue is comment these lines in if (config.hasKey("requestNonPersonalizedAdsOnly")) { // Utils.setRequestNonPersonalizedAdsOnly(config.getBoolean("requestNonPersonalizedAdsOnly"), adRequest); } in node modules -> react native admob native ads ->RNAdMobUnifiedAdQueueWrapper.java public void setRequestNonPersonalizedAdsOnly(boolean npa) { // Utils.setRequestNonPersonalizedAdsOnly(npa, adRequest);

}comment these line in  node modules -> react native admob native ads ->RNAdMobNativeView.java
ammarahm-ed commented 1 month ago

Fixed in v0.7.2