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...
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...
I did tried it earlier but it gave error so I left it.
I was wrongly trying to use a sample json downloaded from internet and was getting crashes.
After your suggestion, I decided to create the Firebase project, I was shying from it till now. Well it took time and I had to refer to helps in Google and also in our Forum.
Finally I got the keys and wrote them in your example project.
WOW ! the ads are showing. Thanks again.
I will now study them more closely to understand all the logic and will try them in my project.
I studied your code, specially the "Banner_Module.bas". I noticed that the layout used for it do not have any panel, label etc. "layadmob1.bal"
All the banner ads are set on the activity itself, adjusting position.
As I am interested in setting the banner ad on a panel (or any other view other than main activity) so that I can move/adjust the panel on my layout as per my requirement and do not have to tinker the banner size position etc.
So I changed the "layadmob1.bal" and added some panel, label etc.
But the ads is not showing on the panel. I have attached the modified project.