如何获取Admob的设备ID [英] How can I get device ID for Admob

查看:150
本文介绍了如何获取Admob的设备ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse来开发android的应用程序,我想集成Admob来赚钱。
该教程说我应该看LogCat来查找ID,但是它在哪里呢?

I'm using Eclipse to develop applications for android, and I want to integrate Admob to make money. The tutorial says I should watch the LogCat to find ID, but where is it?

当我运行在测试模式或实模式下,有时eclipse会通知广告返回,但它不会显示在emu ...任何人都可以解释?

When I run in either the test mode or the real mode, sometimes the eclipse will notify that Ads returned, yet it does not show in the emu... can anyone explain?

推荐答案

如果您在模拟器上运行admob广告,那么没有ID。只需使用AdManager方法,并将其设置为TEST_EMULATOR,就像logcat说的那样。如果您在具有usb调试功能的实际设备上运行,并观察logcat,ID将显示在该处。

If you are running admob ads on an emulator then there is no ID. just use the AdManager method and set it to TEST_EMULATOR like the logcat says. If you run on an actual device with usb debugging and watch the logcat, the ID will appear in there.

这篇关于如何获取Admob的设备ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆