如何更改和添加 iOS 的 GDPR consentform.html 文件

How to change and add the GDPR consentform.html file for iOS

我在我的应用程序中使用 AdMob,我想更改 google 的 gdpr 同意书上最后一个按钮上的文本标题 Pay for the ad-free version

google's gdpr docs 上它说:

To update consent text of the Google-rendered consent form, modify the consentform.html file included in the Consent SDK as required.

为了访问它,我在 Resources 文件夹内的 PersonalizedAdConsent 文件夹内的蓝色 Pods 图标内的 consentform.html864

即使我在启动应用程序后将行更改为 Access the limited ad-free version,它仍然显示 Pay for the ad-free version

如何修改?

对于 New Build System,pods 库仅构建一次。

因此,如果您需要在 pod 库内部进行更改,或者在创建新的 pod 库时,请不要忘记在每次更改后清理构建文件夹 (⌘+⇧+k)。