हमारे प्रॉडक्ट के बारे में चर्चा करने और सुझाव/राय देने के लिए, Google विज्ञापन और मेज़रमेंट कम्यूनिटी सर्वर में Ad Manager के आधिकारिक Discord चैनल से जुड़ें.
Google Mobile Ads SDK को किसी Flutter ऐप्लिकेशन में इंटिग्रेट करना, विज्ञापन दिखाने और रेवेन्यू पाने के लिए पहला कदम है. एसडीके को इंटिग्रेट करने के बाद, आपके पास विज्ञापन के एक या उससे ज़्यादा फ़ॉर्मैट लागू करने का विकल्प होता है.
Ad Manager ऐप्लिकेशन आईडी को AndroidManifest.xml में शामिल करना ज़रूरी है.
ऐसा न करने पर, ऐप्लिकेशन लॉन्च होने पर क्रैश हो जाता है.
Ad Manager के वेब इंटरफ़ेस में दिखाए गए Ad Manager ऐप्लिकेशन आईडी को, ऐप्लिकेशन की android/app/src/main/AndroidManifest.xml फ़ाइल में जोड़ें. इसके लिए, com.google.android.gms.ads.APPLICATION_ID नाम वाला <meta-data> टैग जोड़ें.
android:value के लिए, अपने ऐप्लिकेशन का आईडी कोटेशन मार्क में डालें. जैसे:
अपने Dart कोड में प्लगिन को शुरू करते समय, उसी value का इस्तेमाल करें.
AndroidManifest.xml को कॉन्फ़िगर करने और ऐप्लिकेशन आईडी सेट अप करने के बारे में ज़्यादा जानने के लिए, Android गाइड देखें.
iOS
Info.plist अपडेट करें
अपने ऐप्लिकेशन की ios/Runner/Info.plist फ़ाइल में, Ad Manager ऐप्लिकेशन आईडी की स्ट्रिंग वैल्यू वाला GADApplicationIdentifier
कुंजी जोड़ें. यह आईडी, Ad Manager के वेब इंटरफ़ेस में दिखता है:
आपको अपने डार्ट कोड में प्लगिन को शुरू करते समय, यही वैल्यू पास करनी होगी.
Info.plist को कॉन्फ़िगर करने और ऐप्लिकेशन आईडी सेट अप करने के बारे में ज़्यादा जानने के लिए,
iOS गाइड
देखें.
Mobile Ads SDK को शुरू करना
विज्ञापन लोड करने से पहले, अपने ऐप्लिकेशन में Google Mobile Ads SDK को शुरू करें. इसके लिए, यह तरीका अपनाएं:
MobileAds.instance.initialize()
इससे SDK शुरू हो जाता है और Future मिलता है. यह तब तक चलता है, जब तक SDK शुरू नहीं हो जाता या 30 सेकंड का टाइम आउट नहीं हो जाता. initialize()
जल्द से जल्द कॉल करें.
// Initialize the Mobile Ads SDK.MobileAds.instance.initialize();
Google Mobile Ads SDK इंपोर्ट करने के बाद, विज्ञापन लागू किया जा सकता है.
Ad Manager में कई तरह के विज्ञापन फ़ॉर्मैट उपलब्ध हैं. इसलिए, आपके पास ऐसा फ़ॉर्मैट चुनने का विकल्प होता है जो आपके ऐप्लिकेशन के उपयोगकर्ताओं के अनुभव के हिसाब से सबसे सही हो.
बैनर
डिवाइस की स्क्रीन पर सबसे ऊपर या सबसे नीचे दिखने वाले आयताकार विज्ञापन. जब उपयोगकर्ता आपके ऐप्लिकेशन के साथ इंटरैक्ट करते हैं, तब स्क्रीन पर बैनर विज्ञापन दिखते रहते हैं. ये कुछ समय बाद अपने-आप रीफ़्रेश हो सकते हैं. अगर आपको मोबाइल विज्ञापन के बारे में ज़्यादा जानकारी नहीं है, तो यहां से शुरुआत करना बेहतर होगा.
फ़ुल-स्क्रीन विज्ञापन, ऐप्लिकेशन के इंटरफ़ेस को तब तक कवर करते हैं, जब तक उपयोगकर्ता उन्हें बंद नहीं कर देता.
इन विज्ञापनों का सबसे अच्छा इस्तेमाल, ऐप्लिकेशन के फ़्लो में नैचुरल पॉज़ के दौरान किया जाता है. जैसे, किसी गेम के लेवल के बीच में या कोई टास्क पूरा करने के ठीक बाद.
पसंद के मुताबिक बनाए जा सकने वाले ऐसे विज्ञापन जो आपके ऐप्लिकेशन के लुक और स्टाइल से मेल खाते हैं. इनमें आपके पास यह तय करने का विकल्प होता कि विज्ञापनों को कैसे और कहां दिखाना है, ताकि लेआउट आपके ऐप्लिकेशन के डिज़ाइन से मेल खा सके.
इन विज्ञापनों से उपयोगकर्ताओं को इनाम मिलता है. इनाम पाने के लिए उपयोगकर्ताओं को छोटे-छोटे वीडियो देखने होते हैं. इसके अलावा, उन्हें 'गेम खेलने देने वाले विज्ञापन' से इंटरैक्ट करना होता है या फिर सर्वे में हिस्सा लेना होता है. इन विज्ञापनों के ज़रिए उन उपयोगकर्ताओं से अच्छी कमाई की जा सकती है जो मुफ़्त गेमिंग ऐप्लिकेशन का ज़्यादा इस्तेमाल करते हैं.
[[["समझने में आसान है","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-06 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThis guide explains how to integrate Google Mobile Ads SDK into a Flutter app for monetization with Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eBefore starting, ensure you meet the prerequisites, which include specific Flutter, Android, and iOS requirements.\u003c/p\u003e\n"],["\u003cp\u003eYou must update your AndroidManifest.xml or Info.plist with your Ad Manager app ID for Android and iOS respectively, then initialize the Mobile Ads SDK in your Dart code.\u003c/p\u003e\n"],["\u003cp\u003eThe SDK supports banner, interstitial, native, and rewarded ad formats - select the one that best suits your app.\u003c/p\u003e\n"],["\u003cp\u003eDetailed implementation steps are provided for each ad format after the initial integration is complete.\u003c/p\u003e\n"]]],["Publishers monetize Flutter apps by integrating the Google Mobile Ads SDK. This involves importing the SDK plugin and setting up platform-specific configurations. For Android, update `AndroidManifest.xml` with the Ad Manager app ID; for iOS, update `Info.plist`. Initialize the SDK using `MobileAds.instance.initialize()` before loading ads. Finally, choose an ad format: banner, interstitial, native, or rewarded, each with detailed implementation guides. Ensure you have the latest SDK version for full privacy compliance.\n"],null,["Select platform: [Android](/ad-manager/mobile-ads-sdk/android/quick-start \"View this page for the Android platform docs.\") [iOS](/ad-manager/mobile-ads-sdk/ios/quick-start \"View this page for the iOS platform docs.\") [Unity](/ad-manager/mobile-ads-sdk/unity/quick-start \"View this page for the Unity platform docs.\") [Flutter](/ad-manager/mobile-ads-sdk/flutter/quick-start \"View this page for the Flutter platform docs.\")\n\n\u003cbr /\u003e\n\nIntegrating Google Mobile Ads SDK into a Flutter app is the first step\ntoward displaying ads and earning revenue. Once you've integrated the SDK, you\ncan proceed to implement one or more of the supported ad formats.\n\nPrerequisites\n\n- Flutter 3.27.0 or higher\n- Android\n - Latest version of Android Studio\n- iOS\n - Latest version of Xcode with [enabled command-line\n tools](//flutter.dev/docs/get-started/install/macos#install-xcode)\n\nImport Google Mobile Ads SDK\n\n- Include the [Google Mobile Ads SDK for Flutter\n plugin](//pub.dev/packages/google_mobile_ads/install) in your Flutter project.\n\nPlatform specific setup\n\n\n| **Important:** Use the latest Google Mobile Ads SDK so that you have access to all the privacy compliance features.\n\n\u003cbr /\u003e\n\nAndroid\n\n**Update AndroidManifest.xml**\n\nThe Ad Manager app ID must be included in the `AndroidManifest.xml`.\nFailure to do so results in a crash on app launch.\n\nAdd the Ad Manager app ID, as\n\n[identified in the Ad Manager web interface](//support.google.com/admanager/answer/15014197),\n\nto the app's `android/app/src/main/AndroidManifest.xml` file by adding a\n`\u003cmeta-data\u003e` tag with the name `com.google.android.gms.ads.APPLICATION_ID`.\nFor `android:value`, insert your own app ID in quotes as shown: \n\n \u003cmanifest\u003e\n \u003capplication\u003e\n \u003c!-- Sample Ad Manager app ID: ca-app-pub-3940256099942544~3347511713 --\u003e\n \u003cmeta-data\n android:name=\"com.google.android.gms.ads.APPLICATION_ID\"\n android:value=\"ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy\"/\u003e\n \u003capplication\u003e\n \u003cmanifest\u003e\n\nUse the same `value` when you initialize the plugin in your Dart code.\n\nSee the\n\n[Android guide](/ad-manager/mobile-ads-sdk/android/quick-start#update_your_androidmanifestxml)\n\nfor more information about configuring `AndroidManifest.xml` and setting up\nthe app ID.\n\niOS\n\n**Update Info.plist**\n\nIn your app's `ios/Runner/Info.plist` file, add a `GADApplicationIdentifier`\nkey with a string value of your Ad Manager app ID, as\n[identified in the Ad Manager web interface](//support.google.com/admanager/answer/15014197): \n\n \u003ckey\u003eGADApplicationIdentifier\u003c/key\u003e\n \u003cstring\u003eca-app-pub-################~##########\u003c/string\u003e\n\nYou must pass the same value when you initialize the plugin in your Dart code.\n\nSee the\n\n[iOS guide](/ad-manager/mobile-ads-sdk/ios/quick-start#update_your_infoplist)\n\nfor more information about configuring `Info.plist` and setting up the app ID.\n\nInitialize the Mobile Ads SDK\n\nBefore loading ads, have your app initialize Google Mobile Ads SDK by calling\n[`MobileAds.instance.initialize()`](//pub.dev/documentation/google_mobile_ads/latest/google_mobile_ads/MobileAds/initialize.html)\nwhich initializes the SDK and returns a `Future` that finishes once\ninitialization is complete, or after a 30-second timeout. Call `initialize()`\nas early as possible. \n\n // Initialize the Mobile Ads SDK.\n MobileAds.instance.initialize(); \n https://github.com/googleads/googleads-mobile-flutter/blob/82c58b3202d8b9391e4d3ec39b045032e90cf331/samples/admob/banner_example/lib/main.dart#L229-L230\n\nSelect an ad format\n\nAfter Google Mobile Ads SDK is imported, you're ready to implement an ad.\nAd Manager offers a number of different ad formats, so you can choose\nthe one that best fits your app's user experience.\n\nBanner\n\nRectangular ads that appear at the top or bottom of the device screen. Banner\nads stay on screen while users are interacting with the app, and can refresh\nautomatically after a certain period of time. If you're new to mobile\nadvertising, they're a great place to start. \n\n[Implement a Banner ad](/ad-manager/mobile-ads-sdk/flutter/banner)\n\nInterstitial\n\nFull-screen ads that cover the interface of an app until closed by the user.\nThey're best used at natural pauses in the flow of an app's execution, such as\nin between levels of a game or just after completing a task. \n\n[Implement an Interstitial ad](/ad-manager/mobile-ads-sdk/flutter/interstitial)\n\nNative\n\nCustomizable ads that match the look and feel of your app. You decide how and\nwhere they're placed, so the layout is more consistent with your app's design. \n\n[Implement a Native ad](/ad-manager/mobile-ads-sdk/flutter/native)\n\nRewarded\n\nAds that reward users for watching short videos and interacting with playable\nads and surveys. Good for monetizing free-to-play users. \n\n[Implement a Rewarded ad](/ad-manager/mobile-ads-sdk/flutter/rewarded)"]]