Google Mobile Ads(GMA)SDK バージョン 21.0.0 から、SDK の初期化と広告読み込みの最適化を利用できるようになりました。この機能を使用すると、広告の総合的なレスポンスが改善され、アプリにおける Application Not Responding(ANR)エラーの防止に役立ちます。このガイドでは、これらの最適化を有効にするために必要な変更について概説します。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-02-08 UTC。"],[[["Starting with Google Mobile Ads SDK version 21.0.0, new optimization features enhance ad responsiveness and reduce \"Application Not Responding\" errors."],["Two optimization flags, `OPTIMIZE_INITIALIZATION` and `OPTIMIZE_AD_LOADING`, offload time-consuming tasks to background threads."],["You can enable either or both flags in your app's `AndroidManifest.xml` to optimize SDK initialization and ad loading."],["The `OPTIMIZE_INITIALIZATION` flag is most effective when `MobileAds.initialize()` is called on the main thread; otherwise, background initialization is already recommended."],["The `OPTIMIZE_AD_LOADING` flag enhances ad loading for all ad formats by shifting processing to background threads."]]],[]]