Print Page | Close Window

How do I add Google Adsense ads to my website?

Printed From: openElement Website
Category:

openElement


Forum Name: openElement General Discussion
Forum Description: A place for general discussion and questions about the software.
URL: https://forums.openelement.uk/en/forum_posts.asp?TID=1195
Printed Date: Mar 28 2024 at 4:04pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How do I add Google Adsense ads to my website?
Posted By: zachstearns
Subject: How do I add Google Adsense ads to my website?
Date Posted: Aug 12 2017 at 4:43pm
Hi.
I had just built and published my website when I decided I wanted to add Adsense ads to it.
I have had an Adsense account for over a year, which I had signed up for with my YouTube channel.
I think I have been doing it correctly but every time I add the HTML it doesn't show up.
Actually, any HTML I add with the code block (visual) doesn't show up.
Is it normal for any HTML I import to show a little paper logo?
On Adsense, I created an Ad Unit and copied the HTML from that page into a code block (visual).
Is there anything else I need to do?
I think my Adsense account is verified because it works with YouTube and adsense.com shows up properly.
Can you please help?
Thanks!



Replies:
Posted By: Dmit OE
Date Posted: Aug 12 2017 at 9:50pm
Hi,

Normally you just copy-paste the embed code into a Code Block (Visual). Try with any YouTube video to make sure you do it right. You may need (or not) to size the Code Block element, depending on the situation.

For the simplest test, type "TEST" inside the Code Block - it should show up in preview. (though NOTHING will show in the editor mode!)


Posted By: Speed Racer
Date Posted: Nov 20 2020 at 2:20am
Is there any updates as to why Adsense ad code will not display?  I am using the SensBlack template. I copied verified working Adsense code into a "Code Block (visual)".  However, I can not get the ad to display on the Home Page.

When I type "TEST" in the code Block, that DOES display "TEST".

I tried selecting "Properties->Visible: Yes" but that does not work.

FYI: The code does work on a sub-page.

Please let me know what else I can try as I've been at this for days to make this work.  


Posted By: Hobby001
Date Posted: Nov 20 2020 at 11:18am
Impossible to guess without seeing the code, can you publish your site somewhere and give us the link?

-------------
https://denislafrance.net/index.en.php" rel="nofollow - https://denislafrance.net https://www.youtube.com/playlist?list=PLWg7A6YtIr7WE2oJe9pX8_3u0FerqJwjo" rel="nofollow - , OE training video


Posted By: Speed Racer
Date Posted: Nov 21 2020 at 3:15am
Thank you for responding.  This is the site I'm working on:   new.radioshackcatalogs.com

I have the AdSense code in the column to the right of the "ABOUT" text.

I'm struggling to get the code to view.  I would appreciate any assistance you can give me.





Posted By: Hobby001
Date Posted: Nov 21 2020 at 12:00pm
Interesting site for someone like me who use to shop there in the late 70's

Adsense refers to a javascript file located away on their servers. 

Can you display the page that works with it?




-------------
https://denislafrance.net/index.en.php" rel="nofollow - https://denislafrance.net https://www.youtube.com/playlist?list=PLWg7A6YtIr7WE2oJe9pX8_3u0FerqJwjo" rel="nofollow - , OE training video


Posted By: Speed Racer
Date Posted: Nov 21 2020 at 3:22pm
Thank you. I'm glad you find my site interesting :)

The code works here:
http://new.radioshackcatalogs.com/Videos.htm

This page uses a horizontal-formatted ad, while the ad on the home page uses a square-formatted ad; if that even matters.  Worth mentioning was that even when I tried the horizontal-formatted ad on the home page, the ad did not display either.

Here are other things I also tried to get the AdSense code to display:
  -  Moving the code other areas of the home page. But that didn't work.
  -  Making the container very large. But that didn't work.
  -  Deleting the Code Block (visual), thinking it may be "corrupted", and inserting a new Code Block (visual), and inserting the code. But that didn't work.
  -  I know that the code itself works because I also tried it on the bottom of this test page: http://new.radioshackcatalogs.com/flipbook/TEST-DELETE.html

Does "Style -> Customize -> Positioning -> Visibility" have anything to do with it?  I have it set to Visible.

Thank you.


Posted By: Hobby001
Date Posted: Nov 21 2020 at 5:41pm
You don't have the same code on both pages


On home page

                   <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                    <!-- RSC-Responsive Square Ad -->
                    <ins class="adsbygoogle"
                         style="display:block"
                         data-ad-client="ca-pub-8140455886804708"
                         data-ad-slot="9300034705"
                         data-ad-format="auto"
                         data-full-width-responsive="true"></ins>
                    <script>
                         (adsbygoogle = window.adsbygoogle || []).push({});
                    </script>


On video page

        <!--*************** GOOGLE ADSENSE BELOW (modified per link below) *************** -->
        <!--*************** https://support.google.com/adsense/answer/9183363 ************ -->
        <p style="text-align: center;">
        <style>
        .flipbook_footer_ads { width: 320px; height: 100px; }
        @media(min-width: 500px) { .flipbook_footer_ads { width: 468px; height: 60px; } }
        @media(min-width: 800px) { .flipbook_footer_ads { width: 728px; height: 90px; } }
        </style>
        
        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
        <!-- RSC-Responsive Horizontal Ad -->
        <!-- flipbook_footer_ads -->
        <ins class="adsbygoogle flipbook_footer_ads"
             style="display:inline-block"
             data-ad-client="ca-pub-8140455886804708"
             data-ad-slot="2562062509"</ins>
        <script>
             (adsbygoogle = window.adsbygoogle || []).push({});
        </script>
        </p>
        <!--***** GOOGLE ADSENSE ABOVE ************************************************** -->
       </div>


-------------
https://denislafrance.net/index.en.php" rel="nofollow - https://denislafrance.net https://www.youtube.com/playlist?list=PLWg7A6YtIr7WE2oJe9pX8_3u0FerqJwjo" rel="nofollow - , OE training video


Posted By: Speed Racer
Date Posted: Nov 21 2020 at 6:42pm
You are correct.  The code on the video page was slightly modified per Google's instructions so that it would be responsive.

However, the following page has the same AdSense code as that of the Home Page.  And as you can see, the code works here: http://new.radioshackcatalogs.com/flipbook/TEST-DELETE.html 


Posted By: Hobby001
Date Posted: Nov 21 2020 at 8:50pm
Originally posted by Speed Racer Speed Racer wrote:

 
However, the following page has the same AdSense code as that of the Home Page.  And as you can see, the code works here: http://new.radioshackcatalogs.com/flipbook/TEST-DELETE.html 

This page doesn't carry any restrictive environment.

The following part of the code fixes width and height for the pub to display,

        <style>
        .flipbook_footer_ads { width: 320px; height: 100px; }
        @media(min-width: 500px) { .flipbook_footer_ads { width: 468px; height: 60px; } }
        @media(min-width: 800px) { .flipbook_footer_ads { width: 728px; height: 90px; } }
        </style>

You might have to use something like it in your OE page.

Or you may be able to make your code block visual responsive and use 100% width in the style

There are many solutions that have to be tested.


-------------
https://denislafrance.net/index.en.php" rel="nofollow - https://denislafrance.net https://www.youtube.com/playlist?list=PLWg7A6YtIr7WE2oJe9pX8_3u0FerqJwjo" rel="nofollow - , OE training video


Posted By: Speed Racer
Date Posted: Nov 22 2020 at 5:22pm
I have gone through Google's extensive check list as to why Google's AdSense ads do not appear.  I believe that I have tried everything they have suggested, but still the ads do not appear.  I have researched this topic as best I could.  I have been trying to make this work for literally, 50-60 hours over the past several weeks.  Honestly, I don't know what else to try.


Posted By: Hobby001
Date Posted: Nov 22 2020 at 10:01pm
Go to Project tab, other, backup 

Send me the zipped file trough wetransfer.com

Send the link to me via the forum Private Messaging




-------------
https://denislafrance.net/index.en.php" rel="nofollow - https://denislafrance.net https://www.youtube.com/playlist?list=PLWg7A6YtIr7WE2oJe9pX8_3u0FerqJwjo" rel="nofollow - , OE training video


Posted By: Speed Racer
Date Posted: Nov 23 2020 at 1:05am
Message sent.


Posted By: Hobby001
Date Posted: Nov 23 2020 at 12:25pm
Hi,

Of course I can't test anything because It needs to be implemented on your host to work.

Try putting the same video page code that works on your home page.

If it works, the issue is with the code, if not the issue is with the page.

Come back to us with the result


-------------
https://denislafrance.net/index.en.php" rel="nofollow - https://denislafrance.net https://www.youtube.com/playlist?list=PLWg7A6YtIr7WE2oJe9pX8_3u0FerqJwjo" rel="nofollow - , OE training video


Posted By: Hobby001
Date Posted: Nov 23 2020 at 12:37pm
BTW you are missing a bracket to close the ins tag in your code:

<!--*************** GOOGLE ADSENSE BELOW (modified per link below) *************** -->
        <!--*************** https://support.google.com/adsense/answer/9183363 ************ -->
        <p style="text-align: center;">
        <style>
        .flipbook_footer_ads { width: 320px; height: 100px; }
        @media(min-width: 500px) { .flipbook_footer_ads { width: 468px; height: 60px; } }
        @media(min-width: 800px) { .flipbook_footer_ads { width: 728px; height: 90px; } }
        </style>
        
        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
        <!-- RSC-Responsive Horizontal Ad -->
        <!-- flipbook_footer_ads -->
        <ins class="adsbygoogle flipbook_footer_ads"
             style="display:inline-block"
             data-ad-client="ca-pub-8140455886804708"
             data-ad-slot="2562062509"></ins>
        <script>
             (adsbygoogle = window.adsbygoogle || []).push({});
        </script>
        </p>
        <!--***** GOOGLE ADSENSE ABOVE ************************************************** -->


-------------
https://denislafrance.net/index.en.php" rel="nofollow - https://denislafrance.net https://www.youtube.com/playlist?list=PLWg7A6YtIr7WE2oJe9pX8_3u0FerqJwjo" rel="nofollow - , OE training video


Posted By: Speed Racer
Date Posted: Nov 24 2020 at 12:23am
Thank you for catching the close-tag.

I have tried several times to add the same (working) code to the home page, but it does not display.

I have tried to change the dimensions of the working code, thinking that there is a size restriction that is forcing the code not to display.  But that didn't work.

I have tried placing the working code in other areas of the Home Page, but the code does NOT display.

I have tried to placing the working code in a new Code Block(visual) of the home Page, but the code does NOT display.

I have tried to create a new page by selecting: Project -> New -> linked Layer:Base_Menu, and the code *DOES* display.

I believe that the Home Page itself is the problem.  But how do I fix it? 

Thank you.


Posted By: Hobby001
Date Posted: Nov 24 2020 at 2:04am
Good evening,

please understand that I do not work for OpenElement.  I am simply helping here as much as I can on a volunteer basis.

From your statements, I understand that something interferes with either the template's javascript or css or both codes.

Google adsense refers to a large amount of minimized javascript code that only Google employees have a chance to master.

Elements in the template were designed before Google adsense.

In order to find out the interference you will have to apply changes one by one and test the result.

The home page is made of several containers, move your code block visual out of "Container: ABOUT" and place it between "Container: ABOUT" and "Container: Anchor-Main Catalogs".

Then test the result and come back with the result.



-------------
https://denislafrance.net/index.en.php" rel="nofollow - https://denislafrance.net https://www.youtube.com/playlist?list=PLWg7A6YtIr7WE2oJe9pX8_3u0FerqJwjo" rel="nofollow - , OE training video


Posted By: Speed Racer
Date Posted: Nov 24 2020 at 2:34am
I assumed that you are volunteering your time and assistance, and for that I DO appreciate all of your help.  I also appreciate how quickly you have been responding to my issue.  If my issue is not resolved, I'll work it out somehow.  Again, thank you.

I also understand that Google....is Google.  If I/we want to use their "stuff", we have to find a way to conform to them.  Not the other way around.

To reply to your suggestion, I have tried what you asked before reaching out to the forum.  I tried to move the code to several locations on the home page, and I created new containers in which to add the code, with no luck.

If you have any other ideas, I'd be happy to try them.  If not, I thank you greatly for all your assistance.




Posted By: Hobby001
Date Posted: Nov 24 2020 at 10:26am
You may try running it in a blank page and insert this page with the External page / iframe element.

If it doesn't work I would make a copy of your home page and remove the Element Background Slider from it to see if it causes the issue.


-------------
https://denislafrance.net/index.en.php" rel="nofollow - https://denislafrance.net https://www.youtube.com/playlist?list=PLWg7A6YtIr7WE2oJe9pX8_3u0FerqJwjo" rel="nofollow - , OE training video


Posted By: Speed Racer
Date Posted: Nov 26 2020 at 4:12pm
By chance, I found something interesting.

As we discussed, I do not see the Adsense ad on my home page when viewed on a PC/desktop nor laptop (both Windows 10).   BUT, when I view my home page on my iPhone and iPad, I DO see the Adsense ad on the home page.

To make things more strange, all of the web pages that I was able to see the ad when viewed on a PC/desktop or laptop, now do NOT view the ad on an iPhone or iPad.

FYI: I somewhat tried your suggestion in that I added a slider to a known working webpage, and the ad still appeared.  So, I don't think that the background slider is preventing the viewing of the ad.

Scratching my head...




Posted By: Hobby001
Date Posted: Nov 26 2020 at 5:52pm
There is not much I can think about.

-------------
https://denislafrance.net/index.en.php" rel="nofollow - https://denislafrance.net https://www.youtube.com/playlist?list=PLWg7A6YtIr7WE2oJe9pX8_3u0FerqJwjo" rel="nofollow - , OE training video


Posted By: Speed Racer
Date Posted: Nov 27 2020 at 6:45pm
Me neither.  I thank you greatly for your time and assistance.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net