I developed the app for the first time.
I didn't know that some information of admob needed to be kept secret.
I leaked my AdMob related information on the forum.
somebody using my admob appid information ,
Now my AdMob has been blocked.
Once again, I would like to remind :
Do not to disclose information on the forum.
''''''''''''''''''
hi,
I create a simple test project to study using FirebaseAdMob Lib.
Using Huawei Honor,Android Ver 8.1.0 for debug.
This project can compile ok, but the app immediately crashes.
I read the following post
And check the project package name , appid,
google-services.json, sdk manager,code etc.
but i can not find the bug.
Could anyone give some suggest ? Thanks!
----
i debug on emulator, and get err logs. On emulator, test project crashes again.
APPID
code below
complie log:
B4A Version: 9.80
Java Version: 11
Parsing code. (0.00s)
Building folders structure. (0.05s)
Compiling code. (0.03s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (0.00s)
Compiling debugger engine code. (0.00s)
Compiling generated Java code. (0.08s)
Convert byte code - optimized dex. (12.40s)
Packaging files. (2.99s)
Copying libraries resources (0.08s)
Found 24 resource files.
Signing package file (debug key). (2.10s)
ZipAlign file. (0.22s)
Installing file to device. (0.21s)
Installing with B4A-Bridge.
Completed successfully.
I didn't know that some information of admob needed to be kept secret.
I leaked my AdMob related information on the forum.
somebody using my admob appid information ,
Now my AdMob has been blocked.
Once again, I would like to remind :
Do not to disclose information on the forum.
''''''''''''''''''
hi,
I create a simple test project to study using FirebaseAdMob Lib.
Using Huawei Honor,Android Ver 8.1.0 for debug.
This project can compile ok, but the app immediately crashes.
I read the following post
[B4XPages] Admob Example
Check this other excellent example from @Jack Cole. To help the new members to make money with B4A, I tried to compile all the relevant Admob code (except mediation) of the forum in this example and put comments and links. This is a work in progress. Any code and sample to improve this example...
www.b4x.com
google-services.json, sdk manager,code etc.
but i can not find the bug.
Could anyone give some suggest ? Thanks!
----
i debug on emulator, and get err logs. On emulator, test project crashes again.
APPID
code below
manifest:
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAdMob.FirebaseAds)
'This is a sample AdMob app id. You need to change it to your id.
AddReplacement($ADMOB_APP_ID$, ca-app-pub-xxxxxxxxxxxxxxxx)
starter code:
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
End Sub
main code:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private BannerAd As AdView
Private Label1 As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("1")
BannerAd.Initialize2("BannerAd", "ca-app-pub-xxxxxxxxxxxx", BannerAd.SIZE_SMART_BANNER)
Activity.AddView(BannerAd, 0dip, 100%y - 48dip, 100%x, 48dip)
BannerAd.LoadAd
End Sub
complie log:
B4A Version: 9.80
Java Version: 11
Parsing code. (0.00s)
Building folders structure. (0.05s)
Compiling code. (0.03s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (0.00s)
Compiling debugger engine code. (0.00s)
Compiling generated Java code. (0.08s)
Convert byte code - optimized dex. (12.40s)
Packaging files. (2.99s)
Copying libraries resources (0.08s)
Found 24 resource files.
Signing package file (debug key). (2.10s)
ZipAlign file. (0.22s)
Installing file to device. (0.21s)
Installing with B4A-Bridge.
Completed successfully.
Attachments
Last edited: