小编Pin*_*ngu的帖子

Google同意SDK

我尝试使用Google ConsentSDK在Android应用程序同意书中显示.当我调用form.show()时,我收到此错误:"同意表单错误同意表单尚未准备好显示." 谁能帮我?

我的代码:

  ConsentForm form = new ConsentForm.Builder(context, privacyUrl)
            .withListener(new ConsentFormListener() {
                @Override
                public void onConsentFormLoaded() {
                    // Consent form loaded successfully.
                    Log.d("SplashScreen", "Consent form Loaded ");
                }

                @Override
                public void onConsentFormOpened() {
                    // Consent form was displayed.
                    Log.d("SplashScreen", "Consent form opened ");
                }

                @Override
                public void onConsentFormClosed(
                        ConsentStatus consentStatus, Boolean userPrefersAdFree) {
                    // Consent form was closed.
                    Log.d("SplashScreen", "Consent form Closed ");
                }

                @Override
                public void onConsentFormError(String errorDescription) {
                    // Consent form error.
                    Log.d("SplashScreen", "Consent form error " …
Run Code Online (Sandbox Code Playgroud)

java android admob

11
推荐指数
2
解决办法
2729
查看次数

标签 统计

admob ×1

android ×1

java ×1