我需要将AdMob广告单元ID放在安全的地方吗? [英] Do I need to keep AdMob ad unit IDs in a safe place?

查看:75
本文介绍了我需要将AdMob广告单元ID放在安全的地方吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问我应该在哪里保存AdMob广告单元ID?将其保存在我的Android项目内的strings.xml中是错误的吗?
如果有人获得了我的广告单元ID,该怎么办?

I wanted to ask where should I keep my AdMob ad unit IDs? Is it wrong to keep it in the strings.xml inside my Android Project? And what happens if someone gets my ad unit IDs?

推荐答案

您可以将广告单元ID保留在string.xml中。或在活动中获得相同的结果,但是如果有人获得了您的广告单元ID,他可能会进行破坏活动。

You can keep ad unit ID in string.xml or in activity same results, but if someone get your ad unit ID he may do sabotage

此处有admob关于破坏活动以及如何防止破坏的更多详细信息

Here more details from admob about sabotage and how to prevent it

https://support.google.com/admob/ answer / 7062933

......

另外,他们建议让授权卖家适用于Apps(app-ads.txt)

Also they suggest to make Authorized Sellers for Apps (app-ads.txt)


标准,最初旨在保护网络广告资源。
扩展了兼容性,以支持在移动应用中显示的广告。

standard, originally designed for protecting web ad inventory. It extends compatibility to support ads shown in mobile apps.

使用app-ads.txt不是强制性的,但强烈建议使用

Use of app-ads.txt is not mandatory, but is highly recommended, especially if you are concerned that others may be spoofing your app.

您需要创建网站(域)并为其创建txt文件名,尤其是如果您担心其他人可能在欺骗您的应用程序。 app-ads.txt放在根目录下...

You need to create website (domain) and create txt file name it "app-ads.txt" place it in root...

放入其中 google.com,pub-xxxxxxxxxxxxx,DIRECT,f088c47fec942fa0

pub-xxxxxxxxxxxxx与您自己更改此设置。

pub-xxxxxxxxxxxxx change this with yours..

在商店中的应用列表中添加您网站的链接

in app listing in store add link of your website

此处更多详情

> https://support.google.com/admob/answer/9363762?hl=zh_CN

这篇关于我需要将AdMob广告单元ID放在安全的地方吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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