Hello,
Can anyone tell me how I can set the ad builder to personalized ads or not for native ads.
(I'm using the example code seen in this thread > https://www.b4x.com/android/forum/threads/any-news-about-native-ads-advanced.88100/#post-562893 )
According to the admob site it should be this...
altho this fails
java.lang.RuntimeException: Method: setAdvancedOptionValue not found in: com.google.android.gms.ads.AdLoader$Builder
but as I'm not used to javaobject it might be wrong what I'm trying to do
Can anyone tell me how I can set the ad builder to personalized ads or not for native ads.
(I'm using the example code seen in this thread > https://www.b4x.com/android/forum/threads/any-news-about-native-ads-advanced.88100/#post-562893 )
According to the admob site it should be this...
For the AdMob tag:
builder.setAdvancedOptionValue("personalizedAds", "false");
altho this fails
B4X:
builder.RunMethod("setAdvancedOptionValue",Array("personalizedAds", "false"))
java.lang.RuntimeException: Method: setAdvancedOptionValue not found in: com.google.android.gms.ads.AdLoader$Builder
but as I'm not used to javaobject it might be wrong what I'm trying to do