gpt4 book ai didi

android - 谷歌手机广告创意预览不起作用

转载 作者:行者123 更新时间:2023-12-03 13:27:53 26 4
gpt4 key购买 nike

我是移动广告新手。我正在加载 PublisherAdView 中的广告.当我收到 onAdLoaded() 中的回调时,我能够成功加载广告.

以下是显示广告加载成功的日志。

I/CommonAdsUtility: loadCarouselSearchScreen() [Thread: main]
I/CommonAdsUtility: screenName: android_pnr_search [Thread: main]
I/CommonAdsUtility: card_type 2 [Thread: main]
I/CommonAdsUtility: card_ad_unit/12756069/android_pnr_search_banner [Thread: main]
I/CommonAdsUtility: loadBannerAd() [Thread: main]
I/CommonAdsUtility: adUnitId: /12756069/android_pnr_search_banner [Thread: main]
I/CommonAdsUtility: ryTag: null [Thread: main]
I/CommonAdsUtility: adSizes: [320x100_as, 320x160_as, 320x50_mb, 300x250_as, fluid, smart_banner] [Thread: main]
I/Ads: Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("B1EFAF80C6D9B2BB3EDF01B714EC2319") to get test ads on this device.
I/CommonAdsUtility: dfpCarouselEntity::: [] [Thread: main]
W/Ads: Not retrying to fetch app settings
I/CommonAdsUtility: onAdLoaded() >>> adUnitId/12756069/and_carousel_small_home [Thread: main]
I/Ads: SDK version: afma-sdk-a-v201604999.201004000.1
I/CommonAdsUtility: onAdLoaded() >>> adUnitId/12756069/android_pnr_search_banner [Thread: main]

但是,每当我预览广告素材时,我都会收到错误消息。由于我在这方面没有太多经验,所以我不完全理解这一点。花了一天时间,现在找不到相关资源。

我已关注:
https://developers.google.com/ad-manager/mobile-ads-sdk/android/debug
https://support.google.com/admanager/answer/7160685#push

我的设备已关联,从 Google Ad Manager 控制台推送广告对我不起作用。这是我得到的错误。我希望我们开发者社区中的许多人可能更早遇到过这种情况。
W/Ads: Fail to get in app preview response json.
org.json.JSONException: Value KHNivylpQmwYxd6Z9gUwxfrO_QWIAYCAgKCX5rCRcw of type java.lang.String cannot be converted to JSONObject
at org.json.JSON.typeMismatch(JSON.java:111)
at org.json.JSONObject.<init>(JSONObject.java:160)
at org.json.JSONObject.<init>(JSONObject.java:173)
at com.google.android.gms.ads.internal.util.aj.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:760)

初始化过程工作正常:
MobileAds.initialize(mContext) { initializationStatus ->
GlobalLoggerUtils.showLog(TAG, "onInitializationComplete()")
initializationStatus.adapterStatusMap.entries.forEach {
GlobalLoggerUtils.showLog(TAG, it.value.description)
GlobalLoggerUtils.showLog(TAG, it.value.initializationState.toString())
GlobalLoggerUtils.showLog(TAG, it.value.latency.toString())
}
}

2020-05-22 00:00:08.942 I/MainApplication: onInitializationComplete() [Thread: main]
2020-05-22 00:00:08.942 I/MainApplication: [Thread: main]
2020-05-22 00:00:08.943 I/MainApplication: READY [Thread: main]
2020-05-22 00:00:08.943 I/MainApplication: 3 [Thread: main]

依赖:
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.19.0'

设备已关联
Device already linked

打开调试菜单以预览广告素材
Opening debug menu to preview creative

未知错误
Unknown Error

让我知道是否有任何我遗漏的细节或任何标签添加到这个问题以便更好地覆盖。

我在 Google 支持上创建了一个主题: https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/android/Xs1HtsT2934

这是相同的示例和视频:
sample : https://drive.google.com/file/d/1F2wBFofHTPlZxs9VUb0KOArjNTFItcqj/view?usp=sharing
视频: https://drive.google.com/file/d/1ZKY_2kui8X-OuErJUQdzqZLcrMcpyFRC/view?usp=sharing

最佳答案

最后,得到了谷歌移动广告SDK团队的认可和认可。

It seems a number of publishers have reported this and a fix is inprogress and at this stage is tentatively scheduled for release nextweek (week of June 15). This will be a server-side fix so no new SDKrequired.

Will let you know when I have confirmation of the fix in production.


mobile sdk team ack.

修复已完成并已上线。

关于android - 谷歌手机广告创意预览不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61941539/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com