<?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 IamDeuos on Medium]]></title>
        <description><![CDATA[Stories by IamDeuos on Medium]]></description>
        <link>https://medium.com/@deuos?source=rss-d16dc742ff5c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UkyTp2b4wvmNkZwdPb1jOQ.png</url>
            <title>Stories by IamDeuos on Medium</title>
            <link>https://medium.com/@deuos?source=rss-d16dc742ff5c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 21:47:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@deuos/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[How to Implement Google AdSense into ReactJS - 2025]]></title>
            <link>https://medium.com/@deuos/how-to-implement-google-adsense-into-reactjs-803a7d0d3b8d?source=rss-d16dc742ff5c------2</link>
            <guid isPermaLink="false">https://medium.com/p/803a7d0d3b8d</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[ads]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[adsense]]></category>
            <dc:creator><![CDATA[IamDeuos]]></dc:creator>
            <pubDate>Sat, 16 Mar 2024 14:23:00 GMT</pubDate>
            <atom:updated>2025-01-19T12:02:05.257Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*mpOkvygsnnQFjtpOP0bZOg.png" /></figure><p>Many of you guys probably came across the issue I faced while trying to figure out how to implement AdSense into my website. After many Google searches and hours spent on Stack Overflow questions, I finally figured out how to implement AdSense within ReactJS. This tutorial should guide you through the basic setups needed to set up ads on your React website. We’ll be serving ads via Client-side Manual Ads, not server-side. There is a Google API to handle server-side ads. My website, <a href="https://ecocix.com/">Ecocix.com</a>, currently uses this method for ads. You might have to go into the lessons to see the ads, by the way.</p><p>Some of the key things needed: Approved Adsense (I had my account approved before I started; I’m not sure if it makes a difference or not, but yeah), and the most important part is this package — <a href="https://www.npmjs.com/package/@ctrl/react-adsense">https://www.npmjs.com/package/@ctrl/react-adsense</a>. I didn’t create it, but whoever did is a godsend. This package also supports Typescript, so there’s no need to worry about it.</p><p><em>Remember to turn off uBlock Origin or any ad blockers for localhost since they will block the AdSense scripts.</em></p><ol><li>Okay, head over to your Public folder and create an ads.txt file. Then, go to Google AdSense, and it will prompt you with the line of text you should insert to authorize your domain to serve ads. That should be good for your ads.txt.</li></ol><pre>google.com, pub-1234, DIRECT, 1234</pre><p>2. Now, head over to your Public folder and add the following data-adbreak-test=&quot;on&quot; into your Google AdSense Verification script to simulate ads showing up on your localhost. But in the production environment, remember to take it out.</p><pre>&lt;script async<br>    data-adbreak-test=&quot;on&quot;<br>    src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-123&quot;<br>    crossorigin=&quot;anonymous&quot;&gt;<br>&lt;/script&gt;</pre><p>3. Head over to AdSense → Ads → By ad unit. For this example, I will go with Auto Responsive Display ad to show you how you can reside the same ad for desktop and mobile. But it’s up to you on what ads you prefer. So, just click on the display unit without changing any of the settings for now.</p><p>This is the example code provided by AdSense; we will need some parts of this code for ours.</p><pre>&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-12344&quot;<br>     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;<br>&lt;!-- Exampe - Code Provided--&gt;<br>&lt;ins class=&quot;adsbygoogle&quot;<br>     style=&quot;display:block&quot;<br>     data-ad-client=&quot;ca-pub-12344&quot;<br>     data-ad-slot=&quot;2222222&quot;<br>     data-ad-format=&quot;auto&quot;<br>     data-full-width-responsive=&quot;true&quot;&gt;&lt;/ins&gt;<br>&lt;script&gt;<br>     (adsbygoogle = window.adsbygoogle || []).push({});<br>&lt;/script&gt;</pre><p>4. Head over to your source folder and create a new component AdsenseExample.tsx. Below is an example of mine that I used. You can view examples on how to use Adsense here: <a href="https://www.npmjs.com/package/@ctrl/react-adsense">https://www.npmjs.com/package/@ctrl/react-adsense</a>. What I will show you is responsive for the same ad unit, so less work for both mobile and desktop.</p><p>ClassName will be used for your style sheet. You can name it anything you want. Remember to turn off adTest in production. Fill in the information based on your AdSense code provided.</p><pre>import React from &#39;react&#39;<br>import { Adsense } from &#39;@ctrl/react-adsense&#39;;<br>import &#39;./css/AdsenseStylesheet.css&#39;;<br><br>function AdsenseExample() {<br>        //console.log(&quot;Ads Shown&quot;)<br>        return (<br>            &lt;Adsense<br>                className=&#39;ExampleAdSlot&#39;<br>                client=&quot;ca-pub-1234&quot;<br>                slot=&quot;2222222&quot;<br>                adTest=&#39;on&#39; //Dev Only<br>            /&gt;<br>        )<br><br>    }<br>}<br><br>export default AdsenseExample</pre><p>5. In your stylesheet, you can change the width and height based on screen size and hide it based on screen changes using media queries. This is an example of a banner ad. Remember to display it as a block; the format works for most manual ads, but I am not sure about the custom feeds ads. You can experiment with that on your own.</p><p>This is an example to show you how it works. Alter it based on your screen sizes and how you would like it to display. Google provides a list of the best sizes for ads and such here: <a href="https://support.google.com/admanager/answer/1100453?hl=en">https://support.google.com/admanager/answer/1100453?hl=en</a>.</p><p>Since AdTest is on, it will not show you any ads; instead, it will display a white rectangle. You can see this by inspecting the element or adding a block border in your CSS to make your life easier.</p><pre>.ExampleAdSlot{<br>    margin-top: 16px;<br>    height: 250px;<br>    width: 970px;<br>    display: block;<br>    border: solid; //Remove in Production<br>}<br><br>@media (min-width: 1280px) {<br>    .ExampleAdSlot{<br>        display: none !important;<br>    }<br>}<br><br>@media (max-width: 1000px) {<br>    .ExampleAdSlot{<br>        width: 728px;<br>        height: 90px;<br>    }<br>}<br><br>@media (max-width: 750px) {<br>    .ExampleAdSlot{<br>        width: 336px;<br>        height: 280px;<br>    }<br>}</pre><p>6. Now it’s done, and you can call your Ad component in whatever page you want it in. It will work.</p><p>7. Error times.</p><pre>TagError: adsbygoogle.push() error: No slot size for availableWidth=0</pre><p>This is a common error that I encountered at the beginning, but I no longer encounter it after using Google’s recommended ad slots. This Stack Overflow post should clarify it more.</p><ul><li><a href="https://stackoverflow.com/questions/50827616/tagerror-adsbygoogle-push-error-no-slot-size-for-availablewidth-0-when-i-use">https://stackoverflow.com/questions/50827616/tagerror-adsbygoogle-push-error-no-slot-size-for-availablewidth-0-when-i-use</a></li></ul><pre>Uncaught TagError: adsbygoogle.push() error: All ins elements in the DOM with class=adsbygoogle already have ads in them.</pre><p>Since you are using ReactJS and you tend to refresh frequently, which I’m guilty of too, this error might pop up here and there. It’s a React issue from my experience, as React tends to call everything twice in development mode. I haven’t seen this error in production, so it’s a React development thing.</p><ul><li><a href="https://stackoverflow.com/questions/74577652/how-to-solve-uncaught-tagerror-adsbygoogle-push-error-all-ins-elements-in-t">https://stackoverflow.com/questions/74577652/how-to-solve-uncaught-tagerror-adsbygoogle-push-error-all-ins-elements-in-t</a></li></ul><p>That’s All — Good Luck — Make Money.</p><p>Also comment if you got issues, and lets see if we can figure them out.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=803a7d0d3b8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Ecocix?]]></title>
            <link>https://medium.com/@deuos/what-is-ecocix-837d72ec5113?source=rss-d16dc742ff5c------2</link>
            <guid isPermaLink="false">https://medium.com/p/837d72ec5113</guid>
            <category><![CDATA[esl]]></category>
            <category><![CDATA[free]]></category>
            <category><![CDATA[education-technology]]></category>
            <category><![CDATA[learn-english]]></category>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[IamDeuos]]></dc:creator>
            <pubDate>Fri, 29 Dec 2023 20:29:59 GMT</pubDate>
            <atom:updated>2024-07-27T14:02:09.653Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is FreeEnglishPractice.com?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*GWqUgpLxI_kIx0_bo18zBg.png" /></figure><p><strong>Revolutionizing Language Learning:</strong></p><p>Curious about <a href="https://freeenglishpractice.com/">FreeEnglishPractice</a>? It’s an online resource designed to help English learners enhance their language skills. The best part? It’s free and accessible worldwide. Students can tailor their practice sessions to their own pace and preferences.</p><p><strong>Dynamic Learning Paths:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*d5OYmujlj6GO5eHwuxNTog.png" /></figure><p>At FreeEnglishPractice, we employ a unique learning method for a practical approach. Our two modes cater to all four language skills. The first and most popular mode, “Listening and Writing,” focuses on refining grammar, writing, listening, and comprehension.</p><p>Picture this: you choose a lesson based on a real-life scenario, listen to the provided audio, and transcribe the text, ensuring improvement in various aspects. Our realistic AI-recorded audio is finely tuned to enhance the scenarios we create. Lessons range from easy to challenging, covering topics like Stories, Numbers, and scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*UumC4fFXECawhqKDY4-3kA.png" /></figure><p>The second mode centers on “Reading and Speaking.” Here, you’re presented with a text for a scenario, usually a sentence. Record yourself reading it aloud, and our servers will analyze it using machine learning. You’ll receive detailed feedback, including a percentage score (0 to 100) on your overall performance, individual scores for each word’s accuracy ranging from (0–100), and a color-coded indication (green or red) based on contextual correctness. View more about how FreeEnglishPractice works at our <a href="https://freeenglishpractice.com/Guide">Guide</a>.</p><p><strong>Speaking Success:</strong></p><p>FreeEnglishPractice is designed to aid beginner to intermediate English learners seeking real-life scenario practice. Our goal is to support those learning English as a second language, helping them succeed in spoken and written English.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*zgiULGEO2r7DYQXSXArs7Q.png" /></figure><p><strong>Free, Friendly, and Easy:</strong></p><p>Our services are free for all, and we’re committed to keeping it that way. Beginners can easily sign up with a valid email. Once in, the user-friendly interface makes it simple for everyone. Just choose one of the two practice modes, select a topic, and follow the on-screen instructions.</p><p><strong>Growing Together:</strong></p><p>FreeEnglishPractice offers key features such as grammar reinforcement, exposure to new vocabulary, real-life applications, and comprehensive speaking and listening practices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*F3buMRH9LDPRK5dWzOZ66A.png" /></figure><p>We value the feedback you provide to help us enhance our services. With each update, we consider your input and implement improvements to assist you in developing your English skills more efficiently. For additional support and feedback, feel free to <a href="https://freeenglishpractice.com/Contact">contact us</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=837d72ec5113" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>