Kil*_*ler 8 android ad-management google-ad-manager google-dfp google-mobile-ads
我是移动广告的新手。我正在加载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]
Run Code Online (Sandbox Code Playgroud)
但是,每当我预览广告素材时,都会出现错误。因为我在这方面没有太多经验,所以我不完全理解这一点。花了一天的时间,现在找不到相关资源。
我关注了: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)
Run Code Online (Sandbox Code Playgroud)
初始化过程工作正常:
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]
Run Code Online (Sandbox Code Playgroud)
依赖:
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.19.0'
Run Code Online (Sandbox Code Playgroud)
如果有我遗漏的任何细节或添加到此问题的任何标签以更好地覆盖,请告诉我。
我在 Google 支持上创建了一个线程:https : //groups.google.com/forum/#!category-topic/ google-admob- ads-sdk/android/Xs1HtsT2934
这是相同的示例和视频:示例:https : //drive.google.com/file/d/1F2wBFofHTPlZxs9VUb0KOArjNTFItcqj/view?usp= sharing Video:https : //drive.google.com/file/d/1ZKY_2kui8X -OuErJUQdzqZLcrMcpyFRC/view?usp=sharing
最终得到了Google移动广告SDK团队的认可和认可。
似乎有一些发行商已经报告了这一问题,修复工作正在进行中,现阶段暂定于下周(6 月 15 日当周)发布。这将是服务器端修复,因此不需要新的 SDK。
当我确认生产中的修复后,我会通知您。
修复已完成并现已上线。
| 归档时间: |
|
| 查看次数: |
358 次 |
| 最近记录: |