Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个使用广告的应用程序。广告 ID 在清单 ID 中使用元数据标记设置。
在某些情况下,我想在启动应用程序时更改此标签(某些本地化的不同 id)
我可以在代码中做到这一点吗?
清单元数据不能在运行时更改。
您应该查看您的广告库是否允许直接设置广告客户 ID(例如,AdMobs SDK 有一个 AdManager 类,它允许设置可以在元数据中定义的内容)。