<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Yunus Emre Pekgüç on Medium]]></title>
        <description><![CDATA[Stories by Yunus Emre Pekgüç on Medium]]></description>
        <link>https://medium.com/@yunusemrepekguc?source=rss-f06f30aaa9c4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7ZtpfETHQgki3ipy5zLJ-Q.jpeg</url>
            <title>Stories by Yunus Emre Pekgüç on Medium</title>
            <link>https://medium.com/@yunusemrepekguc?source=rss-f06f30aaa9c4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 13:35:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yunusemrepekguc/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Huawei-Ima Video Ad Adapter]]></title>
            <link>https://medium.com/huawei-developers/huawei-ima-video-ad-adapter-f345b625cc5a?source=rss-f06f30aaa9c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f345b625cc5a</guid>
            <category><![CDATA[video-ads]]></category>
            <category><![CDATA[huawei-ads]]></category>
            <category><![CDATA[vast]]></category>
            <category><![CDATA[google-ima-sdk]]></category>
            <category><![CDATA[adapter]]></category>
            <dc:creator><![CDATA[Yunus Emre Pekgüç]]></dc:creator>
            <pubDate>Fri, 17 Dec 2021 12:19:22 GMT</pubDate>
            <atom:updated>2021-12-17T12:19:22.634Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*Xp0M3_hq6vLfCpah0pynBg.png" /></figure><p>Hello everyone,</p><p>In this article, we will learn how to use the Huawei-Ima video ad adapter in native Android.</p><p>With this solution, you will be able to show Huawei video ads on your IMA-supported video player.</p><p><strong>What is IMA?</strong></p><p>Interactive Media Ads is a suite of SDKs that make it easy to integrate multimedia ads into your apps. IMA SDKs can request ads from any Vast-complaint ad server and manager ad playbacks in your app.</p><p><strong>How does IMA work?</strong></p><p>The IMA SDK exposes a set of APIs that allow publishers to request ads from Google Ad Manager or AdSense, interpret the ad response, and report metrics back to the ad server. Developers need to create IMA ad tag URLs to show video ads in their applications.</p><p><strong>What is IMA Tag URL?</strong></p><p>IMA Ad Tag URL is both used by a player to retrieve VAST or VMAP XML for showing video and audio ads. These IMA ad tags are unique URLs generated by publishers from Ad Manager. Examples and parameters could be checked from <a href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/tags">here</a>.</p><ol><li><strong>VAST Ad Tags</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*qMLZvVZ9KaQv_bwdtjay6Q.png" /></figure><p><a href="https://www.iab.com/guidelines/vast/">VAST</a> is the standard for instructing ad tags that serve ads to video players and using XML schema. It transfers metadata from the master video ad slot.</p><p>2. <strong>VMAP Ad Tag URL</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*ab7XGfQZfjnQhe-FiTZg9w.png" /></figure><p><a href="https://www.iab.com/guidelines/vmap/">VMAP</a> is another XML standard for serving ads to video players like VAST. VMAP supports multiple ads, contains multiple Vast Ad Tag URLs, and also has a different XML structure compared to VAST.</p><p><strong>Huawei Ima Video Ad Adapter</strong></p><p>Huawei Ima Video Ad Adapter is a solution where you can show Huawei Ads with a single line code instead of Google Ad in your application using Ima Ad Tag URLs that are generated from Ad Manager.</p><p>Publishers who use IMA-supported players in their application can easily integrate this adapter to show Huawei Video Ads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u6pf6ZuvGMNe0FTbkfaKBg.png" /></figure><p>The adapter covers Ima Ad Tag compatible video players in their application, such as <a href="https://exoplayer.dev/">ExoPlayer</a>, <a href="https://developer.jwplayer.com/jwplayer/docs/introduction">JW Player</a>.</p><p><strong>How does it work?</strong></p><p>Adapter uses <strong>Huawei VAST SDK</strong> that allows displaying VAST-based Roll ads to receive Huawei Ads. SDK request is created depending on ad tag URL parameters and configuration. Official documentation could be checked for more details about Huawei VAST SDK from <a href="https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/publisher-service-vast-0000001196327501">here</a>.</p><p><strong>How to start?</strong></p><ol><li><strong>Creating an ad unit on Huawei Publisher Service.</strong></li></ol><p>Sign in to <a href="https://developer.huawei.com/consumer/en/console">Huawei Developer Console</a> and create an ad unit for Roll Ads.</p><p>2. <strong>Creating Ad Tag URL on Ad Manager Console</strong></p><blockquote>This step could be skipped if you already have Ad Tag URL that created from Google Ad Manager Console.</blockquote><p>Ima ad tag URLs is created on Ad Manager by the following steps:</p><ol><li>Sign in to Google Ad Manager.</li><li>Click Inventory and then Ad units.</li><li>Locate and click your video ad unit.</li><li>Click Generate tags.</li><li>Complete the 3-step process and click Continue after each step (Tag type, Tag Options, and Tag Results)</li><li>Click done.</li></ol><p>Huawei Ima Ad Adapter uses some mandatory and optional IMA ad tag parameters to receive Huawei Ads when making requests to Huawei VAST SDK. These parameters should be considered when creating an ad tag URL on the Google Ad Manager Console.</p><p><strong>2.1 Mandatory Parameters</strong></p><p><a href="https://support.google.com/admanager/answer/10678356?hl=en#output"><strong>output</strong></a>: The XML output type. VAST or VMAP.</p><p><a href="https://support.google.com/admanager/answer/10678356?hl=en#min_ad_duration-max_ad_duration"><strong>max_ad_duration</strong></a>: The duration range that an ad must match. Default value will be used if this parameter is not set.</p><p><a href="https://support.google.com/admanager/answer/10678356?hl=en#sz"><strong>sz</strong></a>: The size of master video ad slot. Default value is used if this parameter is not set.</p><p><strong>2.2. Optional Parameters</strong></p><p><a href="https://support.google.com/admanager/answer/10678356?hl=en#vpos"><strong>vpos</strong></a>: Indicates whether the ad request is being sent from pre-roll, mid-roll, or post-roll.</p><p><a href="https://support.google.com/admanager/answer/10678356?hl=en#vad_type"><strong>vad_type</strong></a>: Indicates whether a linear or non-linear ad should be returned.</p><p><a href="https://support.google.com/admanager/answer/10678356?hl=en#npa"><strong>npa</strong></a>: Indicates that the ad request should be treated as non-personalized.</p><p><a href="https://support.google.com/admanager/answer/10678356?hl=en#tfcd"><strong>tfcd</strong></a>: The ad request child-directed treatment.</p><p>All parameters could be found <a href="https://support.google.com/admanager/answer/10678356?hl=en">here</a>:</p><p><strong>Integrate the Huawei Ima Video Adapter SDK</strong></p><p>In the project-level build gradle, implement Huawei’s Maven and JitPack repositories.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/686e957f7d67f1867ee4bf6fdbbf7dd4/href">https://medium.com/media/686e957f7d67f1867ee4bf6fdbbf7dd4/href</a></iframe><p>In the app-level build.gradle, implement adapter dependency.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad8ce2389f5f244fdf93bdedaa8f619d/href">https://medium.com/media/ad8ce2389f5f244fdf93bdedaa8f619d/href</a></iframe><p>All adapter versions could be checked from the following link below:</p><p><a href="https://github.com/Explore-In-HMS/huawei.ads.imaadapter/releases">Releases · Explore-In-HMS/huawei.ads.imaadapter</a></p><p><strong>Usage of Adapter</strong></p><p>Adapter has two different solutions depending on ExoPlayer creation method or selected IMA-supported player. These are <em>adapter </em>and <em>converter </em>solutions:</p><ol><li>If <a href="https://exoplayer.dev/"><em>ExoPlayer </em></a>is used and used with <a href="https://exoplayer.dev/media-items.html"><em>MediaItem </em></a>to show video content and ads, an <strong>adapter</strong> solution should be chosen. Initializations of adapter are as follows:</li></ol><p>Adapter solution could be initialized with ExoPlayer instance.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0fb069dc6261eb1e8132e1a7d3f4af73/href">https://medium.com/media/0fb069dc6261eb1e8132e1a7d3f4af73/href</a></iframe><p>or it could be initialized with PlayerView instance.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5b66b5e6d41b8799d1ab5b0f93228905/href">https://medium.com/media/5b66b5e6d41b8799d1ab5b0f93228905/href</a></iframe><blockquote>HwImaAdapter.init() method must be called just <strong>before </strong>SimpleExoPlayer.preapare() method called.</blockquote><p>2. If <a href="https://exoplayer.dev/">ExoPlayer </a>is used and <a href="https://exoplayer.dev/media-items.html">MediaItem </a>is not used or, a player that is compatible with Ima Ad Tag is used, <strong>converter </strong>solution should be chosen. Initialization of converter is as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8b63cab000a578a17ce70499e763c9db/href">https://medium.com/media/8b63cab000a578a17ce70499e763c9db/href</a></iframe><p>If the ad creation process is successful, the TagConverterListener’s onSuccess function returns the Uri instance that contains Huawei Roll Ads. Uri object is created based on the Ad Tag URL created on the Ad Manager.</p><blockquote>Video and ad content must be <strong>created after </strong>the callback is successful depends on the <em>Uri </em>instance.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*-G3YwsVviMI59ZbgPJaLUA.gif" /></figure><p>After the initialization, the adapter tries to receive Huawei Ads from VAST SDK according to Ad Tag URL parameters, and if the Huawei video ad is successfully received from VAST SDK it will be shown on content instead of Google ads.</p><p>For example; if the Ad Tag URL generated in Google Ad Manager aims to display one pre-roll and two mid-roll ads on the player, also the adapter tries to show one pre-roll and two mid-roll Huawei ads on the player. If the Huawei ads receiving is fails, Google video ads will be shown instead of Huawei video ads.</p><p>Different ad positions types could be checked from the following documentation:</p><p><a href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/tags">IMA sample tags | IMA SDK for HTML5 | Google Developers</a></p><p>Currently, adapter supports only linear ads depending on the Huawei Vast SDK.</p><p>GitHub repository of adapter could be found at the following link:</p><p><a href="https://github.com/Explore-In-HMS/huawei.ads.imaadapter">GitHub - Explore-In-HMS/huawei.ads.imaadapter</a></p><p><strong>Summary</strong></p><p>In this article, we learned the implementation and logic of Huawei Video Ad Adapter and related subjects about that. Adapter could be used Ima-supported video ad players to receive Huawei Video ads.</p><p>Thank you for your time.</p><p><strong>References</strong></p><ul><li><a href="https://github.com/Explore-In-HMS/huawei.ads.imaadapter">Huawei Video Ad Adapter GitHub repository</a></li><li><a href="https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/publisher-service-vast-0000001196327501">Huawei Vast SDK</a></li><li><a href="https://exoplayer.dev/">ExoPlayer</a></li><li><a href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side">Google Ima SDK</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f345b625cc5a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers/huawei-ima-video-ad-adapter-f345b625cc5a">Huawei-Ima Video Ad Adapter</a> was originally published in <a href="https://medium.com/huawei-developers">Huawei Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Huawei Ads reklamlarını AdMob uyumlulaştırma hizmeti ile kullanma (React-Native)]]></title>
            <link>https://medium.com/huawei-developers-tr/huawei-ads-reklamlar%C4%B1n%C4%B1-admob-uyumlula%C5%9Ft%C4%B1rma-hizmeti-ile-kullanma-react-native-5038f0ad4d15?source=rss-f06f30aaa9c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5038f0ad4d15</guid>
            <category><![CDATA[admob-mediation]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[admob]]></category>
            <category><![CDATA[huawei-ads]]></category>
            <category><![CDATA[cross-platform]]></category>
            <dc:creator><![CDATA[Yunus Emre Pekgüç]]></dc:creator>
            <pubDate>Wed, 30 Jun 2021 17:03:16 GMT</pubDate>
            <atom:updated>2021-06-30T17:03:16.840Z</atom:updated>
            <content:encoded><![CDATA[<h3>Huawei Reklamlarını AdMob Uyumlulaştırma Hizmeti ile Kullanma (React-Native)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*73seNcD2_RU8UGdGoFC8Og.png" /></figure><p>Google AdMob, mobil uygulama geliştiricilerinin gelir etmesi amacıyla oluşturulmuş bir reklamcılık hizmetidir. Farklı reklam kaynaklarına aracılık oluşturması, reklam pazarındaki en büyük söz sahibi olması, birçok reklam türünü destekleyebilmesi ve platform çeşitliliği sayesinde hem reklamverenler hem de mobil uygulama geliştiricileri tarafından çoğunlukla tercih edilir.</p><p>Bu yazımda sizlere Google AdMob uyumlulaştırma hizmetini kullanarak React Native’de Huawei Ads reklamlarının nasıl gösterilecegini adım adım anlatacağım. Entegrasyon adımlarına başlamadan önce AdMob platformu üzerinden Huawei Ads reklamlarını uyumlulaştırma işlemini başarıyla tamamladığınıza emin olun.</p><p><a href="https://medium.com/huawei-developers/how-to-use-huawei-ads-with-admob-mediation-377bdc1ba01c">How to use Huawei Ads with AdMob mediation ?</a></p><p>Google AdMob uyumlulaştırma hizmetini gerçekleştirdikten sonra artık entegrasyon adımlarına geçebiliriz.</p><p>React Native platformunda AdMob kullanabilmek için öncelikle bir SDK’ya ihtiyacımız var. Google AdMob, React Native platformuna resmi destek sağlamadığı için entegrasyonu açık kaynak SDK’ler ile tamamlayacağız. Kullanacağımız SDK’lar, göstereceğimiz reklam türüne farklılık gösterebilir.</p><blockquote>Referans verilecek açık kaynak SDK’lar bu makale için örnek olarak verilmiştir. React-Native’in Google AdMob’u destekleyen resmi veya açık kaynak başka bir SDK’sı var ise onları da kullanabilirsiniz.</blockquote><p>Göstermek istediğiniz reklam tipleri <strong>Banner</strong>, <strong>Interstitial </strong>veya <strong>Rewarded </strong>ise aşağıdaki SDK’yı kullanabilirsiniz;</p><blockquote><strong><em>react-native-admob</em></strong></blockquote><blockquote><a href="https://github.com/sbugert/react-native-admob"><em>Github kaynağı için</em></a></blockquote><blockquote><a href="https://github.com/sbugert/react-native-admob#installation"><em>Kurulum adımları için</em></a></blockquote><p>Göstermek istediğiniz reklam tipi <strong>Native </strong>ise aşağıdaki SDK’yı kullanabilirsiniz.</p><blockquote><strong><em>react-native-admob-native-ads</em></strong></blockquote><blockquote><a href="https://github.com/ammarahm-ed/react-native-admob-native-ads"><em>Github kaynağı için</em></a></blockquote><blockquote><a href="https://ammarahm-ed.github.io/react-native-admob-native-ads/docs/installation-3/"><em>Kurulum adımları için</em></a></blockquote><p>SDK’yı native Android bağımlılığı için de yüklemek için <strong>link </strong>işlemini gerçekleştirmeyi unutmayın. Bu işlemin nasıl yapılacağını <a href="https://reactnative.dev/docs/linking-libraries-ios#automatic-linking">buradan</a> inceyebilirsiniz.</p><p>Belirtilen adımları takip ederek SDK entegrasyonunu başarıyla tamamladıysanız, artık React-Native projenizde istediğiniz tüm AdMob reklamlarını görüntüleyebilirsiniz.</p><p>Google AdMob reklamlarının React-Native’de gösterilebilmesi için reklam test ID’leri ile oluşturulmuş kod parçalarını inceleyebilirsiniz.</p><p><strong>AdMob Banner Reklamı</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e479da93180120653eec961f57d1ace7/href">https://medium.com/media/e479da93180120653eec961f57d1ace7/href</a></iframe><p><strong>AdMob Interstitial Reklamı</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/40a75892142a9bbd45a95a76f5261528/href">https://medium.com/media/40a75892142a9bbd45a95a76f5261528/href</a></iframe><p><strong>AdMob Rewarded Reklamı</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eb71cbcbe0c75ab961dc06ef291c3124/href">https://medium.com/media/eb71cbcbe0c75ab961dc06ef291c3124/href</a></iframe><p><strong>AdMob Native Ad</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b5d74a6e266c1cd79e28d2323af3247c/href">https://medium.com/media/b5d74a6e266c1cd79e28d2323af3247c/href</a></iframe><p>React-Native AdMob SDK entegrasyon adımlarını başarıyla tamamladıktan ve tüm reklam türlerini görüntüleyebildiğinizden emin olduktan sonra Huawei plugin entegrasyonuna başlayabilirsiniz. Bunu yapabilmek için, React-Native projenizin native Android kısmını Android Studio veya benzeri bir uygulamada açmanız gerekiyor.</p><p>Projenizin native Android kısmını açtıktan sonra ilk adım, proje düzeyindeki build-gradle dosyasına Huawei kaynağını eklemek.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab10d9ca22b1a6d1d8e495a7c2a727ef/href">https://medium.com/media/ab10d9ca22b1a6d1d8e495a7c2a727ef/href</a></iframe><p>Daha sonrasında ise uygulama düzeyindeki build-gradle dosyasına Huawei Ads Kit SDK’sını ve Huawei mediation plugin SDK’sını eklemeniz gerekiyor.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2758b5aaf0f5cb535ce83056a98abb3d/href">https://medium.com/media/2758b5aaf0f5cb535ce83056a98abb3d/href</a></iframe><blockquote>Verilen örnekteki SDK sürümleri güncel olmayabilir; güncel sürümleri aşağıdaki kaynaklardan takip edebilirsiniz.</blockquote><blockquote><a href="https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/publisher-service-version-change-history-0000001050066909">Huawei Ads Kit</a></blockquote><blockquote><a href="https://github.com/Explore-In-HMS/huawei.ads.admob_mediation">Huawei Mediation Plugin</a></blockquote><p>Kütüphane entegrasyonu adımlarını başarıyla tamamladıysanız, artık tek yapmanız gereken Huawei reklamlarını görüntülemek. Huawei reklamları hakkında daha fazla bilgi almak için <a href="https://developer.huawei.com/consumer/en/doc/HMSCore-Guides-V5/publisher-service-introduction-0000001070671805-V5"><em>buradaki</em></a> dökümanları inceleyebilirsiniz.</p><p>Google AdMob reklamlarını gösterebilmek için AdMob test ID’lerini kullanmıştık. Şimdi ise AdMob test ID’leri yerine Google AdMob uyumlulaştırma hizmeti ile oluşturduğumuz Huawei reklam ID’lerini kullanarak, Huawei reklamlarını görüntüleyeceğiz.</p><p>Yukarıdaki örnek reklam kod bloklarında verilen adUnitID değerlerini uyumlulaştırılmış Huawei ID’leri ile değiştiriyoruz. Banner reklam tipi için örnek kod bloğu aşağıdaki gibidir;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/16b28e01306778bc7a84b5ec75213305/href">https://medium.com/media/16b28e01306778bc7a84b5ec75213305/href</a></iframe><p>Interstitial, Rewarded ve Native reklam türleri için de adUnitID değerlerini değiştirerek Huawei reklamlarını gösterebilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uLuv-6lYdV_r5nwi42F8jg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hTH9Ic0Q3OACmvu7COOb7w.jpeg" /><figcaption>Huawei Interstitial ve Rewarded Reklamları</figcaption></figure><p><strong>Özet</strong></p><p>Bu yazımda sizlere Google AdMob’un uyumlulaştırma hizmeti ile oluşturulan Huawei reklamlarının, React-Native platformu üzerinde Huawei uyumlulaştırma adaptörünü kullanarak nasıl gösterilebileceğini anlatmaya çalıştım. Umarım faydalı olmuştur :)</p><p><strong>Kaynaklar</strong></p><p>Huawei-AdMob mediation creation:</p><p><a href="https://medium.com/huawei-developers/how-to-use-huawei-ads-with-admob-mediation-377bdc1ba01c">How to use Huawei Ads with AdMob mediation ?</a></p><p>Huawei mediation adapter:</p><p><a href="https://github.com/Explore-In-HMS/huawei.ads.admob_mediation">GitHub - Explore-In-HMS/huawei.ads.admob_mediation</a></p><p>Huawei Ads Kit React Native:</p><p><a href="https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides-V1/introduction-0000001050196714-V1">Document</a></p><p>How to use Huawei Ads with Google AdMob mediation:</p><p><a href="https://clho40.medium.com/how-to-use-huawei-ads-with-google-admob-mediation-banner-ads-5ff1791e750c?source=---------0----------------------------">https://clho40.medium.com/how-to-use-huawei-ads-with-google-admob-mediation-banner-ads-5ff1791e750c</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5038f0ad4d15" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers-tr/huawei-ads-reklamlar%C4%B1n%C4%B1-admob-uyumlula%C5%9Ft%C4%B1rma-hizmeti-ile-kullanma-react-native-5038f0ad4d15">Huawei Ads reklamlarını AdMob uyumlulaştırma hizmeti ile kullanma (React-Native)</a> was originally published in <a href="https://medium.com/huawei-developers-tr">Huawei Developers - Türkiye</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use Huawei Ads with AdMob mediation (React Native)]]></title>
            <link>https://medium.com/huawei-developers/how-to-use-huawei-ads-with-admob-mediation-react-native-e02a78ebb1eb?source=rss-f06f30aaa9c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e02a78ebb1eb</guid>
            <category><![CDATA[admob-mediation]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[admob]]></category>
            <category><![CDATA[huawei-ads]]></category>
            <category><![CDATA[cross-platform]]></category>
            <dc:creator><![CDATA[Yunus Emre Pekgüç]]></dc:creator>
            <pubDate>Tue, 09 Mar 2021 10:38:13 GMT</pubDate>
            <atom:updated>2021-03-16T08:27:04.683Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KuWJNUKz8F2wLo1ZBQ4vLw.png" /></figure><p>Google AdMob is an advertising service created to generate revenue for mobile app developers. Essentially preferred by advertisers with the possibility of mediation creation with different advertising sources and its dominance in the market. Thanks to its compatibility with different ad types and platforms, it’s also preferred by mobile application developers.</p><p>In this article, we will learn step by step how to show Huawei Ads Kit ads on React Native using AdMob mediation. Make sure that you have successfully completed the mediation creation on AdMob for Huawei Ads before starting integration.</p><p><a href="https://medium.com/huawei-developers/how-to-use-huawei-ads-with-admob-mediation-377bdc1ba01c">How to use Huawei Ads with AdMob mediation ?</a></p><p>First of all, we need an SDK to integrate AdMob into our React Native application. AdMob doesn’t provide official support for React Native. Instead of that, we will use open source third-party SDKs for integration. The SDKs we will use will be different according to the ad types we will display.</p><blockquote>The SDKs that referenced are the ones for this article. If React-Native has another SDK (official or 3rd party) that supports AdMob, you can also use it.</blockquote><p>If you want to display <strong>Banner </strong>Ad, <strong>Interstitial </strong>Ad, or <strong>Rewarded </strong>Ad you can use the following SDK;</p><blockquote><strong>react-native-admob</strong></blockquote><blockquote><a href="https://github.com/sbugert/react-native-admob">For GitHub repository</a></blockquote><blockquote><a href="https://github.com/sbugert/react-native-admob#installation">For installion guide</a></blockquote><p>If you want to display <strong>Native </strong>Ads you can use the following SDK;</p><blockquote><strong>react-native-admob-native-ads</strong></blockquote><blockquote><a href="https://github.com/ammarahm-ed/react-native-admob-native-ads">For GitHub repository</a></blockquote><blockquote><a href="https://ammarahm-ed.github.io/react-native-admob-native-ads/docs/installation-3/">For installion guide</a></blockquote><p>Do not forget to <strong><em>link </em></strong>SDKs for installing native dependencies. You can follow how this process is done from <a href="https://reactnative.dev/docs/linking-libraries-ios#automatic-linking">here</a>.</p><p>If you have successfully completed the SDK integration by following the steps, you can display all AdMob ads you want on your React-Native project. You can use <a href="https://developers.google.com/admob/android/test-ads#sample_ad_units">test-IDs</a> for this process.</p><p><strong>AdMob Banner Ad</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e479da93180120653eec961f57d1ace7/href">https://medium.com/media/e479da93180120653eec961f57d1ace7/href</a></iframe><p><strong>AdMob Interstitial Ad</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/40a75892142a9bbd45a95a76f5261528/href">https://medium.com/media/40a75892142a9bbd45a95a76f5261528/href</a></iframe><p><strong>Admob Rewarded Ad</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eb71cbcbe0c75ab961dc06ef291c3124/href">https://medium.com/media/eb71cbcbe0c75ab961dc06ef291c3124/href</a></iframe><p><strong>AdMob Native Ad</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b5d74a6e266c1cd79e28d2323af3247c/href">https://medium.com/media/b5d74a6e266c1cd79e28d2323af3247c/href</a></iframe><p>After successfully completed the integration steps of React-Native AdMob SDK and make sure that you can display all ad types, you can start the Huawei adapter integration. In order to do this, you need to open the native Android part of your React-Native project in Android Studio or such an application.</p><p>The first step is to open your project-level build-gradle file of the Android side of the React-Native project and include the Huawei repository in your project.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab10d9ca22b1a6d1d8e495a7c2a727ef/href">https://medium.com/media/ab10d9ca22b1a6d1d8e495a7c2a727ef/href</a></iframe><p>After that open your app-level build-gradle and implement Huawei Ads Kit dependency and Huawei mediation adapter.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2758b5aaf0f5cb535ce83056a98abb3d/href">https://medium.com/media/2758b5aaf0f5cb535ce83056a98abb3d/href</a></iframe><p>If you have successfully completed the dependency implementation steps, all you have to do is to display Huawei Ads. For more information regarding Huawei Ads, refer to the official documentation <a href="https://developer.huawei.com/consumer/en/doc/HMSCore-Guides-V5/publisher-service-introduction-0000001070671805-V5">here</a>.</p><p>At the beginning of the article, we’ve used AdMob test IDs to show AdMob ads. Now we will display Huawei ads using our mediated Huawei ads IDs instead of AdMob test IDs.</p><p>Replace adUnitIDs in code blocks with mediated Huawei IDs. An example of this is in the code blog below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/16b28e01306778bc7a84b5ec75213305/href">https://medium.com/media/16b28e01306778bc7a84b5ec75213305/href</a></iframe><p>You can show Huawei ads by changing the adUnitID for all Banner, Interstitial, Rewarded, and Native Ad types.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ufxjNpVPKpK8bVmhGklbw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J55MeJ4cSnU6btCoD0QcYA.jpeg" /><figcaption>Huawei Interstitial Ad - Huawei Rewarded Ad</figcaption></figure><p><strong>Summary</strong></p><p>In this article, we learned how to use the AdMob-Huawei mediation adapter in React Native applications.</p><p>Thank you.</p><p><strong>References</strong></p><p>Huawei-AdMob mediation creation:</p><p><a href="https://medium.com/huawei-developers/how-to-use-huawei-ads-with-admob-mediation-377bdc1ba01c">How to use Huawei Ads with AdMob mediation ?</a></p><p>How to use Huawei Ads with Google AdMob mediation:</p><p><a href="https://clho40.medium.com/how-to-use-huawei-ads-with-google-admob-mediation-banner-ads-5ff1791e750c">How to use Huawei Ads with Google AdMob mediation (Banner Ads)</a></p><p>Huawei mediation adapter:</p><p><a href="https://github.com/clho40/Mediation">clho40/Mediation</a></p><p>Huawei Ads Kit React Native:</p><p><a href="https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides-V1/introduction-0000001050196714-V1">Document</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e02a78ebb1eb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers/how-to-use-huawei-ads-with-admob-mediation-react-native-e02a78ebb1eb">How to use Huawei Ads with AdMob mediation (React Native)</a> was originally published in <a href="https://medium.com/huawei-developers">Huawei Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>