Android Question Please add a Firebase admob tutorial..

NamDongKyun

Member
Licensed User
Hi Erel..

For beginners like myself, the information is so scattered that it is hard to understand.

Please add a Firebase admob entry to the B4X video tutorial.
 
Last edited:

NamDongKyun

Member
Licensed User
After a few trial and error, I succeeded in adding Firebase Admob to my app.
I want others to be able to refer Write the order of work.

1.Set the package of Build Configurations of B4A IDE.
(Required when registering an app on the Firebase console.)

2.Add the app from the Firebase console.

3.Download the json file from the Firebase console and copy it to the b4a project folder.

4.In the Manifest Editor From the bottom line Add the following syntax
'------------------
AddManifestText(<activity android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>)
AddPermission (android.permission.ACCESS_NETWORK_STATE)
AddPermission (android.permission.INTERNET)
CreateResourceFromFile(Macro, FirebaseAdMob.FirebaseAds)
AddApplicationText(<meta-data android:name="com.google.android.gms.version"
android:value="@Integer/google_play_services_version" />)
'------------------

5.Add FirebaseAdMob from the library manager of B4A IDE. (I used version 1.55)

6.Set the private Sign key in the IDE menu.

7.https://www.b4x.com/android/forum/t...b-ads-integrated-with-firebase-backend.67710/
Insert Erel's code in the link.

8.Run(F5) - Release Mode

9.Done

Thanks for the advice.
 

sorex

Expert
Licensed User
actually you can ignore step 2 & 3 if your only concern is earning with the ads and using only the admob console.

the ad unit id is that ca-app-pub-... number under the name you gave your ad unit under the ad units menu of your app
 
Top