我怎样才能获得Admob的设备ID [英] How can I get device ID for Admob

查看:783
本文介绍了我怎样才能获得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?

当我无论是在测试模式或实模式下运行,有时月食将通知广告回来,但它不会在鸸鹋...表明任何人都可以解释一下吗?

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的广告则没有标识。只是使用的AdManager方法并将其设置为TEST_EMULATOR像logcat的说。如果用USB调试运行在实际设备上观看的logcat,该标识将出现在那里。

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天全站免登陆