Android Question Firebase AdMob

Vincenzo Fabiano

Member
Licensed User
My app don't crash on start, but i receive always error 3 on ADS. Any solution for this?

B4A: 9.50
FirebaseAdmob Lib: 1.60
JDK Used: 1.8.0_231
Android SDK Used: 28

MANIFEST NEW LINE:
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="28"/>
<uses-permission android:name="android.permission.READ_DEVICE_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS" />
<uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS" />
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "Weed Click!")
'End of default text.

' Hardware accelerated
SetApplicationAttribute(android:hardwareAccelerated, "true")

'************ Google Play Services Base ************
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
'************ Google Play Services Base (end) ************

'************ Firebase Base ************
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
'************ Firebase Base (end) ************

'************ Firebase Analytics ************
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
'************ Firebase Analytics (end) ************

'************ Firebase Ads ************
CreateResourceFromFile(Macro, FirebaseAdMob.FirebaseAds)
'************ Firebase Ads (end) ************

AddReplacement($ADMOB_APP_ID$, ca-app-pub-7658264588772772~5928152845)
SERVICE NEW LINE:
B4X:
Sub Service_Create
'This is the program entry point.
'This is a good place to load resources that are not specific to a single activity.
Dim MobileAds As MobileAds
MobileAds.Initialize

ApriConnessione
End Sub
 
Last edited:

sorex

Expert
Licensed User
did you fill in your payment info on the admob site?

I don't think it will serve ads unless you do this. Probably to filter out cheaters who try again with another account but the same bank info.
 

Vincenzo Fabiano

Member
Licensed User
did you fill in your payment info on the admob site?

I don't think it will serve ads unless you do this. Probably to filter out cheaters who try again with another account but the same bank info.
I already use Firebase AdMob (and works in previous build with old system)
 
Top