Android Question [solved] Admob sanity check.

RMarra

Member
Licensed User
Longtime User
I'm just starting to look into placing ads in my app. I've read some of the tutorials and watched some YouTube videos about Admob and I want to be sure I understand what needs to be done. Here is my understanding (please correct me as needed).

1. Create an account with Google and register my app to get an ID
2. In my app, add the FireBaseAdmob library.
3. Create an instance of a adview and add it on my activity.
4. Give the adview my publisher ID
5. Magic happens.

Is this a good basic understanding, or is there more detail I need to understand first?
 

RMarra

Member
Licensed User
Longtime User
I have the code you mentioned, but I'm still missing something. I have the FirebaseAdMob library but compiling times out.

Convert byte code - optimized dex. Error
Process timed out.

I also ran the SDK manager and installed everything it suggested. Do I need everything that contains Firebase in the name?

I saw mention of adding lines to the manifest, but I wasn't sure if that applied to the new library?
Is there anything else I missed?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

RMarra

Member
Licensed User
Longtime User
Thank you. I read all that before posting, but I'm not understanding. I know the problem has to do with what I have/don't have installed (SDK or something) and not the code, since the app will not compile with the library checked even before I add any code. As soon as I remove FireBaseAdmob, the project compiles just fine.
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I have the code you mentioned, but I'm still missing something. I have the FirebaseAdMob library but compiling times out.

I also ran the SDK manager and installed everything it suggested.
We cannot help you if you don't provide enough information. Everything I wrote in the previous post is irrelevant.

You should increase MaxRamForDex and increase the process timeout.

https://www.b4x.com/search?query=MaxRamForDex

Process timeout - Tools - IDE Options.
 
Upvote 0
Top