NativeAdAdvanced - 本机广告响应不正确。未正确指定单击操作

时间:2018-03-02 08:47:07

标签: android admob native-ads

我正在尝试在我的应用中实现NativeAd。 一切正常,直到昨天,它现在打印这些错误日志。

I/Ads: WebView loading for native ads.
I/Ads: Javascript has loaded for native ads.
I/Ads: Received log message: <Google:HTML> Incorrect native ad response. Click actions were not properly specified

onAdFailedToLoad errorCode = 0

所以我再也无法展示原生广告了。 这是我如何处理请求。

private AdRequest adRequest = new AdRequest.Builder()
            .build();

private NativeAdOptions nativeAdOptions = new NativeAdOptions.Builder()
        .setAdChoicesPlacement(ADCHOICES_TOP_RIGHT)
        .setRequestMultipleImages(false)
        .setReturnUrlsForImageAssets(true)
        // Methods in the NativeAdOptions.Builder class can be
        // used here to specify individual options settings.
        .build();

AdLoader adLoader = new AdLoader.Builder(mContext, adUnitId)
            .forAppInstallAd(new NativeAppInstallAd.OnAppInstallAdLoadedListener() {
                @Override
                public void onAppInstallAdLoaded(NativeAppInstallAd appInstallAd) {
                    refreshAd(appInstallAd);
                }
            })
            .forContentAd(new NativeContentAd.OnContentAdLoadedListener() {
                @Override
                public void onContentAdLoaded(NativeContentAd contentAd) {
                    refreshAd(contentAd);
                }
            })
            .withAdListener(adListener)
            .withNativeAdOptions(nativeAdOptions)
            .build();

adLoader.loadAd(adRequest);

如果我发表评论forAppInstallAd,则可以再次下载广告。但填充率非常低。

1 个答案:

答案 0 :(得分:1)

看起来SDK拒绝从AdMob服务器发送的响应,这真的很奇怪。我不认为这是一个可以在StackOverflow上解决的问题,因此我建议在AdMob's SDK support forum中创建一个帖子,支持团队可以尝试深入研究该问题。