Android: Admob doesn't work on multiple pages? - android

I was able to setup admob in my app but it only shows in the first page where i first setup. I copied same code on different activity and layout but these never appear. Any idea why? and is it possible to display admob on different layout xml?
thanks.

I see this working in the way you describe it in other ways, so I guess it should definitely be possible to have Ads on multiple pages.
Have you tried putting your ads into test mode- do they appear by then? If not you probably have a different problem (like layout etc..)
http://developer.admob.com/wiki/Android

Related

Log in screen before the app

Hey I am working an android app and it's basically just one activity, which is a map, but I want a Facebook login screen before they get the layout with the map. Should I make another activity specifically for the log in screen or should I make another layout and use the same activity with two layouts. Also is it generally better to always make another activity for another layouts. Also any other tips around my issue would be appreciated, since a facebook log in screen before your app is pretty common. Thanks!
For the Facebook Login Screen, here's the link I thought you'd help.
https://code.tutsplus.com/tutorials/quick-tip-add-facebook-login-to-your-android-app--cms-23837
About the layouts, in my opinion, in this situation less layouts are better to manipulate but it's still up to you.
Good Luck.
G.

what is the best way to display banner in android app?

i'm looking for a solution to be able to display, manage and control a banner in my app being able to change the banner in future. I've already tried ad mob and its house ad feature. but it seems that it also displays random ads provided by google.
Since you want to display something so specific, AdMob seems inappropriate. I suggest just creating your own layout to display exactly what you want. You can even create a custom View which can easily be reused wherever you wish.

Using one layout file for multiple fragments

I'm working on ftp client for android right now, In my app I wanna have 2 fragments, one for local file system and one for the remote, even though they obviosuly function differently I still want them to have the same layout, as they should look the same.
So I've been wondering, is it ok to use the same layout for different fragments or should I just copy to 2 different file?
Doesn't know if that is relevant but the fragments will definitely be active on the same time as I intend they'll both be on a pager viewer.
Also, if you could answer more generally, could two different "particles" use the same layout without problems?
Preety nooby question, but I'm new to android so...
There is no problem with this.
You can use one blue-print to build a whole bunch of houses. This is the exact same. Eventually, you might build them with separate layout files, but for now, one is fine.

About AdViews, how many can i implement?

I've got following problem.
I got two different Activities in my Android application. Now I wanted to add an AdView on each of these activities.
It worked for me adding one adView to "BANNER" and the other one to "SMART_BANNER".
But now, when I try to set both AdViews (the one activity and the other activity), to "SMART_BANNER", I noticed that one of these Banners won't show up.
This made me ask several questions:
How many adViews am i allowed to implement in one app?
How many adVies am i allowed to implement in one single activity?
Why doesn't it work when using two SMART_BANNER in one app? Why does it work when using one BANNER and one SMART_BANNER adView in one class?
I hope you can help me.
It is against Admob TOS for you to display 2 AdViews on the one Activity.
But it is totally acceptable to display more than one AdView within your app. But in reality you only want to display AdViews where the user spends most of their time.

Force the orientation of Admob

I want to know if there is a possibility to force the orientation of an Admob Banner (4.3.1) for Android. My game force the player to play in landscape, but I would like to put the Ad at the vertical. Like this the Ad will destroy less space on the screen and I can put the ad at a better place to get clicks.
I already saw games like this, but I don't remember which one... Oh, and my Ad is only on a XML file, so if I can use it without JAVA code, it would be excellent.
I found nothing on my research :S
Thanks
Unfortunately, AdMob does not support a 50x320 creative.
You can flip it, but the content will still be in a different orientation. And this should be done probably in the code. I don't exactly know hoe.
This link might help

Categories

Resources