AdFalcon को मीडिएशन के साथ इंटिग्रेट करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह गाइड उन पब्लिशर के लिए है जो AdFalcon के साथ Google Mobile Ads मीडिएशन का इस्तेमाल करना चाहते हैं. इसमें, आपके मौजूदा iOS ऐप्लिकेशन के साथ काम करने के लिए, मीडिएशन अडैप्टर को सेटअप करने का तरीका बताया गया है. साथ ही, इसमें अतिरिक्त सेटिंग को कॉन्फ़िगर करने का तरीका भी बताया गया है.
ज़रूरी शर्तें
काम की शुरुआती जानकारी
सहायता केंद्र के इन लेखों में, मीडिएशन के बारे में जानकारी दी गई है:
अपने प्रोजेक्ट में AdFalcon को जोड़ना
अपने ऐप्लिकेशन में पहले की तरह ही विज्ञापन इंटिग्रेट करें. पेज पर अचानक न दिखने वाले विज्ञापनों (बैनर साइज़, लीडरबोर्ड साइज़ वगैरह) को इंटिग्रेट करने के लिए, बैनर विज्ञापन देखें. अचानक दिखने वाले (इंटरस्टीशियल) विज्ञापन (फ़ुल-स्क्रीन विज्ञापन, जो अन्य सभी कॉन्टेंट को छिपा देते हैं) इंटिग्रेट करने के लिए, अचानक दिखने वाले विज्ञापन देखें.
नीचे दिए गए चरणों को पूरा करने पर, आपके विज्ञापन प्लेसमेंट को मीडिएशन प्लेसमेंट में बदल दिया जाएगा. इससे कई नेटवर्क के विज्ञापन दिखाए जा सकते हैं.
ऊपर दिए गए संसाधनों से, AdFalcon के लिए अडैप्टर और एसडीके डाउनलोड करें.
डाउनलोड किए गए नेटवर्क अडैप्टर/एसडीके को Xcode में जोड़ें: अपने प्रोजेक्ट पर राइट क्लिक करें और project में फ़ाइलें जोड़ें पर क्लिक करें.
AdFalcon के लिए ज़रूरी फ़्रेमवर्क, कंपाइलर फ़्लैग या लिंकर फ़्लैग शामिल करें. आपको कोई और कोड लिखने की ज़रूरत नहीं है. मीडिएशन, विज्ञापन बनाने के लिए AdFalcon अडैप्टर और एसडीके को ज़रूरत के हिसाब से चालू करता है.
इवेंट की सूचना पाने की सुविधा सेट अप करना
इंप्रेशन जैसे विज्ञापन के लाइफ़साइकल इवेंट की सूचना पाने के लिए, GADBannerViewDelegate
लागू किया जा सकता है. मीडिएशन का इस्तेमाल करने पर, इस डेलिगेट को AdFalcon से मिलने वाले इवेंट की सूचना अपने-आप मिल जाती है. उदाहरण के लिए, किसी भी विज्ञापन नेटवर्क से मिले इंप्रेशन की जानकारी, adViewDidReceiveAd:
तरीके से GADBannerViewDelegate
के ज़रिए दी जाती है.
adNetworkClassName की वैल्यू देखें
आपके पास GADBannerView
पर adNetworkClassName
प्रॉपर्टी की जांच करने का विकल्प होता है. यह प्रॉपर्टी, विज्ञापन नेटवर्क की उस क्लास का नाम दिखाती है जिसने adViewDidReceiveAd
कॉलबैक के कॉल होने के बाद, मौजूदा बैनर को फ़ेच किया है:
Swift
func adViewDidReceiveAd(_ bannerView: GADBannerView) {
print("Banner adapter class name: \(bannerView.adNetworkClassName)")
}
Objective-C
- (void)adViewDidReceiveAd:(GADBannerView *)bannerView {
NSLog(@"Banner adapter class name: %@", bannerView.adNetworkClassName);
}
इसी तरह, इंटरस्टीशियल के लिए interstitialDidReceiveAd
में मौजूद GADInterstitialAd
पर adNetworkClassName
प्रॉपर्टी की जांच करें:
Swift
func interstitialDidReceiveAd(_ ad: GADInterstitialAd) {
print("Interstitial adapter class name: \(ad.adNetworkClassName)")
}
Objective-C
- (void)interstitialDidReceiveAd:(GADInterstitialAd *)interstitial {
NSLog(@"Interstitial adapter class name: %@", interstitial.adNetworkClassName);
}
AdMob से दिखाए जाने वाले विज्ञापनों के लिए,
adNetworkClassName
returns
GADMAdapterGoogleAdMobAds
.
कस्टम इवेंट के ज़रिए फ़ेच किए गए विज्ञापनों के लिए, यह
GADMAdapterCustomEvents
दिखाता है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-09-06 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","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 AdFalcon ads into your iOS app using Google Mobile Ads Mediation.\u003c/p\u003e\n"],["\u003cp\u003ePublishers must have an existing iOS app with the Google Mobile Ads SDK and an AdMob account with configured ad units.\u003c/p\u003e\n"],["\u003cp\u003eYou need to download and add the AdFalcon adapter and SDK to your Xcode project.\u003c/p\u003e\n"],["\u003cp\u003eThe integration requires minimal coding as Google Mobile Ads Mediation automatically handles ad requests and delivery from AdFalcon.\u003c/p\u003e\n"],["\u003cp\u003eYou can monitor ad events and identify the ad network serving the ad through the \u003ccode\u003eadNetworkClassName\u003c/code\u003e property.\u003c/p\u003e\n"]]],["Publishers integrating Google Mobile Ads mediation with AdFalcon should download the AdFalcon adapter and SDK, then add them to their Xcode project. Integrate ads as usual. No additional code is needed. To receive ad lifecycle event notifications, implement `GADBannerViewDelegate`. The `adNetworkClassName` property can be checked in `adViewDidReceiveAd` or `interstitialDidReceiveAd` to identify the ad network source. This setup allows ads from multiple networks to be shown through a mediation placement.\n"],null,["This guide is intended for publishers who are interested in using Google\nMobile Ads mediation with **AdFalcon**. It walks\nthrough the setup of a mediation adapter to work with your current iOS app\nand the configuration of additional settings.\n\n| AdFalcon Resources |\n|-----------------------------------------------------|\n| [Documentation](http://adfalcon.com) |\n| [SDK](http://www.adfalcon.com/en/download-sdk.html) |\n| [Adapter](http://www.adfalcon.com/en/adapters.html) |\n| [Customer support](mailto:support@adfalcon.com) |\n\nPrerequisites\n\n- An iOS app with Google Mobile Ads SDK integrated (If you don't\n have one, see [Get Started](/admob/ios/quick-start).)\n\n- An AdMob account and [an ad unit configured with mediation line\n items](//support.google.com/admob/answer/3124703).\n\nHelpful primers\n\nThe following Help Center articles provide background information on mediation:\n\n- [About AdMob Mediation](//support.google.com/admob/answer/3063564)\n- [Set up AdMob Mediation](//support.google.com/admob/answer/3124703)\n- [Optimize AdMob Network](//support.google.com/admob/answer/3534471)\n\nAdd AdFalcon to your project\n\nIntegrate ads into your app the same as before. To integrate\nnon-interstitial ads (banner size, leaderboard size, and so on),\nsee [Banner Ads](/admob/ios/banner). To integrate\ninterstitial ads (full-screen ads that mask all other content),\nsee [Interstitial Ads](/admob/ios/interstitial).\n\nThe following steps change your ad placement into a mediation\nplacement that can show ads from multiple networks.\n\n1. Download the adapter and SDK for AdFalcon from the\n [resources above](#resources).\n\n2. Add the downloaded network adapter/SDK in Xcode: right-click\n on your project and click **Add Files to \u003cvar class=\"readonly\" translate=\"no\"\u003eproject\u003c/var\u003e**.\n\n3. Include any frameworks, compiler flags, or linker flags that AdFalcon\n require. There's no need to write additional code. Mediation invokes the\n AdFalcon adapter and SDK as necessary to create ads.\n\nSet up event notification\n\nTo be notified of ad lifecycle events like impressions, you can implement\na `GADBannerViewDelegate`. When using mediation, this delegate is\nautomatically notified of events from AdFalcon. For example, impressions\nfrom any ad network are reported through the `adViewDidReceiveAd:` method of\n`GADBannerViewDelegate`.\n\nCheck the value of adNetworkClassName\n\nYou can optionally check the `adNetworkClassName` property on\n`GADBannerView`, which returns the ad network class\nname of the ad network that fetched the current banner once the\n`adViewDidReceiveAd` callback is called: \n\nSwift \n\n func adViewDidReceiveAd(_ bannerView: GADBannerView) {\n print(\"Banner adapter class name: \\(bannerView.adNetworkClassName)\")\n }\n\nObjective-C \n\n - (void)adViewDidReceiveAd:(GADBannerView *)bannerView {\n NSLog(@\"Banner adapter class name: %@\", bannerView.adNetworkClassName);\n }\n\nSimilarly, for interstitials, check the `adNetworkClassName` property\non `GADInterstitialAd` inside `interstitialDidReceiveAd`: \n\nSwift \n\n func interstitialDidReceiveAd(_ ad: GADInterstitialAd) {\n print(\"Interstitial adapter class name: \\(ad.adNetworkClassName)\")\n }\n\nObjective-C \n\n - (void)interstitialDidReceiveAd:(GADInterstitialAd *)interstitial {\n NSLog(@\"Interstitial adapter class name: %@\", interstitial.adNetworkClassName);\n }\n\nFor ads returned from AdMob, `adNetworkClassName` returns `GADMAdapterGoogleAdMobAds`. For ads fetched through [custom events](/admob/ios/custom-events), it returns `GADMAdapterCustomEvents`.\n\n\u003cbr /\u003e"]]