Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
327 views
in Technique[技术] by (71.8m points)

android - Should I use different AdMob Ad Units ID in different Activities?

Should I use the same Ad Unit ID for all the ads in my app or should I get one ID per Activity?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can use one Ad Unit ID for all banner ads within your app and a different Ad Unit ID for all interstitial ads within the same app.

Thus, if your app contains only banner ads, it can have only one Ad Unit ID. If your app contains banner and interstitial ads, it can have two Ad Unit IDs.

However, according to the official admob guide, YES! you can use one ID per activity:

An Ad Unit ID is a unique identifier given to the places in your app where ads are displayed. If you have an app with two activities, for example, each displaying a banner, you need two ad units, each with its own ID.

For reporting sake, use different ad unit for each application. This helps you know how each application is performing in regards to eCPMs, requests and clicks. It will help you understand the market, adjust or improve your apps as needed.

It's not against the policy if that's what you want. (Check this thread)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...