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

查看:33
本文介绍了如何获取 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会通知Ads返回,但在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天全站免登陆