Starting from Google Mobile Ads (GMA) SDK version 21.0.0, you can enable optimized SDK initialization and ad loading to improve the overall responsiveness of ads and help prevent "Application Not Responding" (ANR) errors on your app. This guide outlines the changes you need to make to enable these optimizations.
Google Mobile Ads SDK সংস্করণ 21.0.0 বা তার উচ্চতর।
আপনার ম্যানিফেস্ট ফাইল আপডেট করুন
There are two optimization flags available: OPTIMIZE_INITIALIZATION and OPTIMIZE_AD_LOADING . Once they're turned on, the initialization and ad loading tasks that require extended processing time are offloaded to background threads.
Follow the instructions below to add the corresponding <meta-data> tags in your app's AndroidManifest.xml file and turn on the flags. Note that you can turn on one or both options in the same app.
Google Mobile Ads SDK ইনিশিয়ালাইজেশন অপ্টিমাইজ করুন
The best way to optimize initialization is to call MobileAds.initialize() on a background thread, as described in the Get Started guide . If you are already doing so, you don't need to enable this flag.
যদি আপনাকে মেইন থ্রেডে মেথডটি কল করতেই হয়, তাহলে নিচের ফ্ল্যাগটি সক্রিয় করলে কিছু ইনিশিয়ালাইজেশন টাস্ক ব্যাকগ্রাউন্ড থ্রেডে চলে যাবে।
[[["সহজে বোঝা যায়","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-12-23 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],["To optimize Google Mobile Ads SDK, enable `OPTIMIZE_INITIALIZATION` and/or `OPTIMIZE_AD_LOADING` flags in your `AndroidManifest.xml`. These flags move time-consuming initialization and ad loading tasks to background threads, improving app responsiveness and preventing ANR errors. Add `\u003cmeta-data\u003e` tags within the `\u003capplication\u003e` tag, setting the desired flag's value to \"true.\" SDK version 21.0.0 or higher is required, with both flags being false by default.\n"]]