我在 iOS 游戏中使用 AdMob,最近更新了它,将 AdMob SKAdNetworkIdentifier 包含在我的 Info.plist 文件中(因为我的 AdMob 帐户中出现了这样做的警告)。谷歌的标识符是:
cstr6suwn9.skadnetwork
Run Code Online (Sandbox Code Playgroud)
这一切似乎工作正常,我的 AbMob 帐户页面上的警告消失了。
但几周后,我收到另一个警告,当我检查此页面时:
https://developers.google.com/admob/ios/ios14
它说“选择其他买家”部分中还有 32 个 SKAdNetworkIdentier,AdMob 建议我们也必须将其包括在内。
我还没有更新我的游戏,而且警告已经消失了,所以我不知道是否要添加所有这些额外的标识符。看起来这个列表是定期添加的(最后一次更新是 4 月 9 日),所以如果这是 Google 的计划,那么必须不断更新我的应用程序似乎很痛苦。
我不使用“调解”。那么我需要所有这些第三方的还是只需要 Google 的?
我已按照设置 Facebook iOS SDK 的所有说明进行操作。
我想做的就是跟踪 iPhone 设备上的安装事件,这样我就可以在 iOS 14 上运行广告。
我有:
将我的 iOS 应用程序添加到我的 Facebook 帐户
将相关密钥对添加到Info.plist
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb{APP_ID}</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>{APP_ID}</string>
<key>FacebookClientToken</key>
<string>{CLIENT_ID}</string>
<key>FacebookDisplayName</key>
<string>{APP-NAME}</string>
Run Code Online (Sandbox Code Playgroud)
启动时初始化 FB SDK:
MyApp.swift
class AppDelegate: NSObject, UIApplicationDelegate, MessagingDelegate, UNUserNotificationCenterDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
// Facebook Init
ApplicationDelegate.shared.application(
application,
didFinishLaunchingWithOptions: launchOptions
)
return true
}
func application(
_ app: UIApplication,
open url: URL,
options: [UIApplication.OpenURLOptionsKey : …Run Code Online (Sandbox Code Playgroud) 我刚刚开始在 AdMob 中收到关于我的带有广告的 iOS 游戏的警告消息:
\n"Some apps haven\xe2\x80\x99t been configured to use SKAdNetwork"\nRun Code Online (Sandbox Code Playgroud)\n而且我可能不会获得一些广告积分。按照这个看起来很容易修复:
\nhttps://developers.google.com/admob/ios/ios14
\n我只是向 Info.plist 添加一个键
\n但在该链接上,它还提到了应用程序跟踪透明度授权,我\xe2\x80\x99m 不确定该怎么办。我知道 ATT 是什么 - 它会发出警报,请求许可跟踪并影响对 IDFA 的访问。但 \xe2\x80\x99s 有点奇怪,Google 说 \xe2\x80\x9c 如果你决定包含 ATT\xe2\x80\x9d。它\xe2\x80\x99s就像Google并不\xe2\x80\x99真正希望你这样做。
\n另外,据我所知,即使在 iOS 14.4 中,在不添加 ATT 警报的情况下仍然可以访问 IDFA。那么一些问题:
\n有谁知道苹果何时(或是否)会强制要求 ATT 警报?他们过去常说 2021 年初 - 有更确定的日期或具体版本号吗?它似乎还没有被强制执行(我的游戏更新没有它本周已获得批准),并且 IDFA 似乎在 iOS 14.4 上完全可以访问,没有警报。我可以用以下命令打印出来:
\nConsole.WriteLine("AdvertisingIdentifier={0}", AdSupport.ASIdentifierManager.SharedManager.AdvertisingIdentifier);\nRun Code Online (Sandbox Code Playgroud)\n并且它\xe2\x80\x99 并不全为零。
\n当 IDFA 仍然可以访问时,如果没有 SKAdNetwork 密钥,我真的会损失广告收入吗?
\nSKAdNetwork 是未来吗?IDFA 是否会被逐步淘汰?那么未来AdMob将根本不再使用IDFA?
\n我应该继续实施 …