<?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 Hajji Tarik on Medium]]></title>
        <description><![CDATA[Stories by Hajji Tarik on Medium]]></description>
        <link>https://medium.com/@TarikHajji?source=rss-37bf413b8487------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_q2Q2Stjrmbs2u0F.jpg</url>
            <title>Stories by Hajji Tarik on Medium</title>
            <link>https://medium.com/@TarikHajji?source=rss-37bf413b8487------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 18:28:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@TarikHajji/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[Add AdMob to React-Native App]]></title>
            <link>https://medium.com/@TarikHajji/add-admob-to-react-native-app-5b1e91be459?source=rss-37bf413b8487------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b1e91be459</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[admob]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[advertising]]></category>
            <dc:creator><![CDATA[Hajji Tarik]]></dc:creator>
            <pubDate>Fri, 02 Feb 2018 16:24:34 GMT</pubDate>
            <atom:updated>2018-02-03T01:25:49.284Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gwilzprTyf9eZydIxohnjw.png" /></figure><p>One of the most important parts when finalizing an application is the monetization part, for my case I started a <strong>react-native</strong> application to manipulate and get familiar with the framework, so I decided to make a IOS application of news from developers and designers.</p><p>And when I wanted to integrate AdMob I did not really find a clean article that speaks about the subject but several information scatter here and there.<br>so I decided that I would do one for other developers who would be in the same situation I was in.</p><p>To integrate <strong>AdMob</strong> is easy enough you just have to follow some steps and make sure you do not forget.</p><p>First, you need to create an AdMob account: <a href="https://apps.admob.com/signup/">Here</a></p><p>On Application side :</p><p>to be able to use the advertising components it is necessary that:<br>You make sure GoogleMobileAds.framework is included in the xcodeproject</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tZdMwsX9N7o8B4duvDHdsA.png" /></figure><p>download <a href="https://developers.google.com/admob/ios/download">GoogleMobileAds</a>.</p><p>Then the next step is to include the GoogleMobileAds module in appDelegate.m like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8f36EQzeO6lJzzQL4IjD3g.png" /></figure><p>Then you have to install <strong>react-native-admob</strong>:</p><p>npm i — save react-native-admob@next</p><p>yarn add react-native-admob@next</p><p>The implementation of <strong>react-native-admob</strong> is quite simple, for my part I created a component ‘AdvertisementBanner’ in which I import AdMobBanner:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mq0h_R6x4U8gFL_9uxExnA.png" /></figure><p>Usage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aQLWJtVbMOv_Ld1WYd9JKA.png" /></figure><p>And that’s it :), Normally the banner of advertising must appear in your page, if by my misfortune that does not happen it is necessary to repeat the announced steps.</p><p>The application with which I gave the example is open-source you could find it on :</p><p><a href="https://github.com/hajjiTarik/SolarNews">Github</a> and <a href="https://itunes.apple.com/us/app/solar-news/id1341649715">AppStore</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b1e91be459" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>