开发者

Admob orientation support in Android

I'm new to Android platform and currently considering Admob integration into my application. I have two questions regarding this:

  1. I've managed to integrate Admob test ads into my app but don't know how to get real ads in it. Despite setting testing="false", it's still showing me the test ad开发者_StackOverflow中文版s only.

  2. It's not supporting orientation in landscape mode. I read in a post that Admob doesn't support orientation but the post was quite old. I want to know whether it's supported now.


About your first question, you have to register on AdMob web site to get a client id. Then use this client id in your app. This way you will get the real ads.


Firstly you must to have register on Admob web site to google account, if success full signup follow these steps.

Click on Monetize-> +Monetize new app -> select an app -> select ad format and name ad unit -> View setup instruction.

after completed these steps to got a Ad unit ID: ca-app-pub-555555545345/43545345(like this and copy it)

and put on in you xml file.

and don't use test id statement in your java code.

This is way to get real ads in your app.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜