আপনার বিজ্ঞাপন ইন্টিগ্রেশন পরীক্ষা করার আগে, আপনাকে অবশ্যই আপনার অ্যাপে বিজ্ঞাপন পরিদর্শক চালু করতে হবে। ডিবাগ মেনুর মাধ্যমে কীভাবে বিজ্ঞাপন পরিদর্শক চালু করতে হয় এবং প্রোগ্রামগতভাবে কীভাবে চালু করতে হয় তা এই পৃষ্ঠায় রয়েছে।
পূর্বশর্ত
আপনি চালিয়ে যাওয়ার আগে, নিম্নলিখিতগুলি করুন:
একটি অ্যাড ম্যানেজার অ্যাকাউন্ট তৈরি করার জন্য প্রাথমিক পূর্বশর্তগুলিতে সমস্ত আইটেম সম্পূর্ণ করুন, আপনার পরীক্ষা ডিভাইস সেট করুন, Google মোবাইল বিজ্ঞাপন SDK শুরু করুন এবং সর্বশেষ সংস্করণ ইনস্টল করুন।
একটি লঞ্চ বিকল্প চয়ন করুন
আপনি নিম্নলিখিত উপায়ে বিজ্ঞাপন পরিদর্শক চালু করতে পারেন:
বিজ্ঞাপন পরিদর্শক সেটিংসে আপনার বেছে নেওয়া অঙ্গভঙ্গি ব্যবহার করতে আপনার অ্যাপের ডিবাগ মেনু থেকে লঞ্চ বোতাম।
Google মোবাইল বিজ্ঞাপন SDK-এর মাধ্যমে প্রোগ্রাম্যাটিকভাবে।
ডিবাগ মেনু ব্যবহার করে লঞ্চ করুন
ডিবাগ মেনুর মাধ্যমে বিজ্ঞাপন পরিদর্শক চালু করতে, আপনার অ্যাপে আর কোনো পরিবর্তনের প্রয়োজন নেই। আরও বিশদ বিবরণের জন্য, মোবাইল অ্যাপ বিজ্ঞাপন বিতরণ পরিদর্শন দেখুন।
নিম্নলিখিত পদক্ষেপগুলি সম্পূর্ণ করুন:
আপনার অ্যাড ম্যানেজার নেটওয়ার্কে পরিবেশিত একটি বিজ্ঞাপন খুঁজুন।
ডিবাগ মেনু খুলতে বিজ্ঞাপনটিকে স্পর্শ করুন এবং ধরে রাখুন।
ওপেন অ্যাড ইন্সপেক্টর নির্বাচন করুন।
আপনি যদি আপনার ডিভাইস লিঙ্ক না করে থাকেন, তাহলে আপনাকে আপনার অ্যাড ম্যানেজার অ্যাকাউন্টে সাইন ইন করতে হতে পারে।
ডিবাগ সেটিংস থেকে, আপনি বিজ্ঞাপন পরিদর্শক সেটিংস নির্বাচন করতে পারেন এবং একটি অঙ্গভঙ্গি চয়ন করতে পারেন যা বিজ্ঞাপন পরিদর্শক খুলতে পারে।
প্রোগ্রাম্যাটিকভাবে চালু করুন
নিম্নলিখিতগুলি চালিয়ে বিজ্ঞাপন পরিদর্শক চালু করুন:
সুইফট
MobileAds.shared.presentAdInspector(from:viewController){errorin// Error will be non-nil if there was an issue and the inspector was not displayed.}
উদ্দেশ্য-C
[GADMobileAds.sharedInstancepresentAdInspectorFromViewController:viewControllercompletionHandler:^(NSError*error){// Error will be non-nil if there was an issue and the inspector was not displayed.}];
এই পদ্ধতিটি প্রোগ্রামগতভাবে নিবন্ধিত পরীক্ষার ডিভাইসগুলির জন্য কাজ করে। আরও বিশদ বিবরণের জন্য, পরীক্ষা ডিভাইস সক্ষম করুন দেখুন।
নিশ্চিত করুন যে এই লঞ্চের ভিউ কন্ট্রোলারটি স্ক্রিনে সম্পূর্ণরূপে দৃশ্যমান। উদাহরণস্বরূপ, যদি আপনি viewDidAppear: . যদি ভিউ কন্ট্রোলার পাস করা হয় সেটি প্রদর্শনের প্রক্রিয়ায় থাকে, যেমন ভিউ কন্ট্রোলার ফাংশন viewDidLoad এ লঞ্চ কল করা হলে, বিজ্ঞাপন পরিদর্শকের উপস্থাপনা ব্যর্থ হয়।
[[["সহজে বোঝা যায়","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-09-02 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["Select platform: [Android](/ad-manager/mobile-ads-sdk/android/ad-inspector/launch-ad-inspector \"View this page for the Android platform docs.\") [iOS](/ad-manager/mobile-ads-sdk/ios/ad-inspector/launch-ad-inspector \"View this page for the iOS platform docs.\") [Unity](/ad-manager/mobile-ads-sdk/unity/ad-inspector/launch-ad-inspector \"View this page for the Unity platform docs.\") [Flutter](/ad-manager/mobile-ads-sdk/flutter/ad-inspector/launch-ad-inspector \"View this page for the Flutter platform docs.\")\n\n\u003cbr /\u003e\n\nBefore you test your ad integration, you must launch ad inspector in your app.\nThis page covers how to launch ad inspector\nthrough the debug menu and how to launch\nprogrammatically.\n\nPrerequisites\n\nBefore you continue, do the following:\n\n- Complete all items in the initial [Prerequisites](/ad-manager/mobile-ads-sdk/ios/ad-inspector#prerequisites) to create an Ad Manager account, set your test device, initialize Google Mobile Ads SDK, and install the latest version.\n\nChoose a launch option\n\nYou can launch ad inspector in the following ways:\n\n- The launch button from the debug menu within your app to use the gesture that you selected in the ad inspector settings.\n- Programmatically through the Google Mobile Ads SDK.\n\nLaunch using the debug menu\n\nTo launch ad inspector through the debug menu, you don't require further\nchanges on your app. For more details, see\n[Inspect mobile app ad delivery](//support.google.com/admanager/answer/7180401).\n\nComplete the following steps:\n\n1. Find an ad served in your Ad Manager network.\n2. Touch and hold the ad to open the debug menu.\n3. Select **Open ad inspector**.\n\nIf you didn't [link your device](/ad-manager/mobile-ads-sdk/ios/debug#link_your_device), you might\nneed to sign in to your Ad Manager account.\n\nFrom the debug settings, you can also select **Ad inspector settings** and\nchoose a gesture that can open ad inspector.\n\nLaunch programmatically\n\nLaunch ad inspector by running the following: \n\nSwift \n\n MobileAds.shared.presentAdInspector(from: viewController) { error in\n // Error will be non-nil if there was an issue and the inspector was not displayed.\n }\n\nObjective-C \n\n [GADMobileAds.sharedInstance presentAdInspectorFromViewController:viewController\n completionHandler:^(NSError *error) {\n // Error will be non-nil if there was an issue and the inspector was not displayed.\n }];\n\nThis method works for test devices registered programmatically. For more details, see\n[Enable test devices](/ad-manager/mobile-ads-sdk/ios/test-ads#enable_test_devices).\n\nEnsure that the view controller to this launch is fully visible on screen. For\nexample, if you called `viewDidAppear:`. If the view controller passed in is\nin the process to display, such as when the launch is called in the view\ncontroller function `viewDidLoad`, the presentation of the ad inspector fails."]]