[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

adsense javascripts not visible? Why?

Posted on 2012-09-14
19
Medium Priority
?
589 Views
Last Modified: 2013-12-24
Hi there;

I recently enrolled in adsense and i can get a code in my adsense panel. The code is as follows.

I put it in a between a <div> and </div> tags, but there seems nothing appearing (I also tried not to put it in between div tags.

Note that, I got acceptance today to adsense for my website. So, is there a time frame for this? or am i putting the code in a wrong way? Can you help me?

Following is the code:


 
  <script type="text/javascript"><!--
                google_ad_client = "ca-pub-XXXXXXXX";
                /* Ad1 */
                google_ad_slot = "XXXXXXXX";
                google_ad_width = 250;
                google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Open in new window


Regards.
0
Comment
Question by:jazzIIIlove
  • 9
  • 5
  • 4
  • +1
19 Comments
 
LVL 20

Expert Comment

by:informaniac
ID: 38400128
Did you put this inside the head tag?
0
 
LVL 58

Expert Comment

by:Gary
ID: 38400148
Have you configured your ads yet?
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 38400414
Hi guys;

@informaniac:
I didn't put it in the head tags,

it's in 2 places, leftcolumn.master and Home.aspx:
<%@ Master Language="C#" MasterPageFile="~/main.master" AutoEventWireup="true" CodeFile="LeftColumn.master.cs"
    Inherits="LeftColumn" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="ContentLeftColumn" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

Open in new window


I want to locate them on the right hand side of the page, right under the Click here to give ads section.

Here is the page: www.headlinerturkey.com

@GaryC123:
What do you mean?
I logged in, create an ad having square size and just get the code. Anything i should do further?


Regards
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 58

Expert Comment

by:Gary
ID: 38400509
How long has it been since you added the code? You do know they won't appear straight away a Google has to crawl the site to see what ads should be placed on it.
Normally happens within 2-3 days
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 38400556
6 hrs ago, actually..

Ok, let's wait.

Regards.
0
 
LVL 26

Expert Comment

by:Alan Warren
ID: 38402268
Hi jazzIIIlove,
If you view the source of your home page, you will notice that you have the google script in there twice (2 times), I suspect that could be an issue. The actual show.ad script is present in the source of the page, that looks ok, the ads should render just above the facebook likes section.

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXXXXX-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXXXXX-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

Open in new window

It's also possible that the big 'G' might not approve of your instruction to "Click Here to Give Ads".
Encouraging clicks
Publishers may not ask others to click their ads or use deceptive implementation methods to obtain clicks. This includes, but is not limited to, offering compensation to users for viewing ads or performing searches, promising to raise money for third parties for such behavior or placing images next to individual ads.

One last mention, fairly sure Google insists on there being a clear and visible link to a "Privacy Policy" on the pages that display ads, usually in the footer.
AdSense publishers must have and abide by a privacy policy that discloses that third parties may be placing and reading cookies on your users' browsers, or using web beacons to collect information as a result of ad serving on your website.

Maybe something like:
Generic Privacy Policy

Alan
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 38403484
Hi Alan;

Thanks for the information. I will remove the ad banner there.

For the google code, i put it deliberately since I am following google analytics in 2 different google accounts. I think it should be OK.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 38403506
Ok, here is the code, any problems:
Also you can check it in the site itself, www.headlinerturkey.com

Left column master:
<%@ Master Language="C#" MasterPageFile="~/main.master" AutoEventWireup="true" CodeFile="LeftColumn.master.cs"
    Inherits="LeftColumn" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="ContentLeftColumn" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="fb-root">
    </div>
    <script>        (function (d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) return;
            js = d.createElement(s); js.id = id;
            js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
            fjs.parentNode.insertBefore(js, fjs);
        } (document, 'script', 'facebook-jssdk'));
    </script>
    <div id="hpage_cats">
        <br />
        <div style="float: left; width: 640px;">
            <asp:ContentPlaceHolder ID="CPHLeftColumn" runat="server">
            </asp:ContentPlaceHolder>
            <br class="clear" />
        </div>
        <div class="right_sidebar" style="height: auto">
            <div style="border: 1px solid #ccc;">
            <!--<img src="images/google_add.png" alt="Google Add" /></div>-->
            <div class="clear">
            </div>
            <!-- removed
            <a href="AboutUs.aspx"><asp:Image ID="imgAdd1" runat="server" Width="300px" Height="250px" Style="margin-top: 15px;" /></a>
            <div class="clear">
            </div>
            <a href="AboutUs.aspx"><asp:Image ID="imgAdd2" runat="server" Width="300px" Height="250px" Style="margin-top: 15px;" /></a>
            <br />
            -->
            <script type="text/javascript"><!--
                google_ad_client = "ca-pub-1543538038391731";
                /* Ad1 */
                google_ad_slot = "8817619502";
                google_ad_width = 250;
                google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

            <div style="border: 1px solid #ccc; width: 280px; height: auto; background-color: #f1f1f1;
                border: 1px solid #ccc; padding: 10px 10px 0px 10px;">
                <asp:ScriptManager ID="smHeadlinerTurkey" runat="server">
                </asp:ScriptManager>
                <asp:UpdatePanel ID="upPoll" runat="server">
                    <ContentTemplate>
                        <table id="tblPoll" runat="server">
                            <tr>
                                <td colspan="6">
                                    <div style="min-height: 22px; border-bottom: 1px dotted #ccc">
                                        <asp:Label ID="lblPollQuestion" runat="server" Text="" Font-Bold="true">
                                        </asp:Label>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td height="7px">
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 16px">
                                    <img src="images/thumb_up.png" alt="" />
                                </td>
                                <td style="width: 50px">
                                    <asp:RadioButton ID="radioYes" runat="server" Checked="true" GroupName="Poll" Text="<%$Resources:Swedish,Yes %>" />
                                </td>
                                <td>
                                    <asp:Label ID="lblYesPercentage" runat="server"></asp:Label>
                                </td>
                                <td style="width: 16px">
                                    <img src="images/thumb_down.png" alt="" />
                                </td>
                                <td style="width: 50px">
                                    <asp:RadioButton ID="radioNo" runat="server" GroupName="Poll" Text="<%$Resources:Swedish,No %>" />
                                </td>
                                <td>
                                    <asp:Label ID="lblNoPercentage" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td height="10px">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="6" align="right">
                                    <asp:Button ID="btnSubmitPoll" runat="server" Text="<%$Resources:Swedish,Submit %>" OnClick="btnSubmitPoll_Click"
                                        CssClass="button_nn" />
                                </td>
                            </tr>
                        </table>
                        <table id="tblPollResult" runat="server" visible="false">
                            <tr>
                                <td>
                                    <asp:Literal ID="ltrrev" Text="<%$Resources:Swedish,review %>" runat="server">
                            </asp:Literal>
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <br />
            <div>
                <div class="fb-like" data-send="true" data-width="300" data-show-faces="true">
                </div>
            </div>
            <br />
            <asp:ContentPlaceHolder ID="cphDonate" runat="server">

            </asp:ContentPlaceHolder>
        </div>
    </div>
</div>
</asp:Content>

Open in new window

Home.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/main.master" AutoEventWireup="true"
    CodeFile="Home.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="smHeadlinerTurkey" runat="server">
    </asp:ScriptManager>
   
    <script type="text/javascript">
        document.getElementById("liMenuHome").className = "active";    
    </script>
    <div id="fb-root">
    </div>
    <script>        (function (d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) return;
            js = d.createElement(s); js.id = id;
            js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
            fjs.parentNode.insertBefore(js, fjs);
        } (document, 'script', 'facebook-jssdk'));
    </script>
    <div class="wrapper">
        <div class="container">
            <div class="content">
                <div id="featured_slide">
                    <ul id="featurednews">
                        <asp:PlaceHolder ID="phFeaturedNews" runat="server"></asp:PlaceHolder>
                    </ul>
                </div>
            </div>
            <div class="column">
                <div id="novosti">
                    <h2>
                        <asp:Label ID="lblTst" runat="server" Text="<%$Resources:Swedish,LATESTNEWS %>"></asp:Label></h2>
                    <div class="latestnews" style="height: 500px">
                        <ul class="news" style="height: 500px" id="ulLatestNews" runat="server">
                            <!-- latestnews -->
                        </ul>
                    </div>
                    <!-- end of latestnews -->
                    <div class="navscroll" style="float: right;">
                        <table cellpadding="0" cellspacing="0" style="border: none">
                            <tr>
                                <td style="border: none">
                                    <a href="#" class="prev">
                                        <img src="images/down.png" /></a>
                                </td>
                                <td style="border: none">
                                    <a href="#" class="next">
                                        <img src="images/up.png" /></a>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
            <br class="clear" />
        </div>
    </div>
    <div id="hpage_cats">
        <br />
        <div style="float: left;">
            <asp:DataList ID="dlCategories" runat="server" RepeatColumns="2" RepeatDirection="Horizontal">
                <ItemTemplate>
                    <div class="fl_left">
                        <h2>
                            <a href="Category.aspx?CategoryId=<%#Eval("CategoryID") %>">
                                <%#Eval("Name") %>
                            </a>
                        </h2>
                        <img src="<%#Page.ResolveUrl(Eval("Path").ToString() != "" ? Eval("Path").ToString() : "~/images/default.png") %>"
                            alt="" height="75px" width="100px" />
                        <div style="min-height: 100px;">
                            <p>
                                <strong><a href="NewsDetail.aspx?NewsID=<%#Eval("NewsID") %>">
                                    <%#Eval("Title") %>
                                </a></strong>
                            </p>
                            <p>
                                <%#Eval("ShortDescription").ToString().Length > 500 ? Eval("ShortDescription").ToString().Substring(0, 497) + "..." : Eval("ShortDescription").ToString()%>
                            </p>
                        </div>
                        <a href="NewsDetail.aspx?NewsID=<%#Eval("NewsID") %>" style="float: right">
                            <asp:Literal ID="ltrrm" Text="<%$Resources:Swedish,ReadMore %>" runat="server">
                            </asp:Literal></a>
                    </div>
                </ItemTemplate>
            </asp:DataList>
            <br class="clear" />
        </div>
        <div class="right_sidebar" style="height: 500px">
            <!--<img src="images/google_add.png" alt="Google Add" />-->

            <div class="clear">
            </div>

            <!--removed <a href="AboutUs.aspx"><asp:Image ID="imgAdd1" runat="server" Width="300px" Height="250px" Style="margin-top: 15px;" /></a>
            <div class="clear">
            </div>
            <a href="AboutUs.aspx"><asp:Image ID="imgAdd2" runat="server" Width="300px" Height="250px" Style="margin-top: 15px;" /></a>
            <br />
            -->
            <script type="text/javascript"><!--
                google_ad_client = "ca-pub-1543538038391731";
                /* Ad1 */
                google_ad_slot = "8817619502";
                google_ad_width = 250;
                google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

            <div style="border: 1px solid #ccc; width: 280px; height: auto; background-color: #f1f1f1;
                border: 1px solid #ccc; padding: 10px 10px 0px 10px;">
                <asp:UpdatePanel ID="upPoll" runat="server">
                    <ContentTemplate>
                        <table id="tblPoll" runat="server">
                            <tr>
                                <td colspan="6">
                                    <div style="min-height: 22px; border-bottom: 1px dotted #ccc">
                                        <asp:Label ID="lblPollQuestion" runat="server" Text="" Font-Bold="true">
                                        </asp:Label>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td height="7px">
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 16px">
                                    <img src="images/thumb_up.png" alt="" />
                                </td>
                                <td style="width: 50px">
                                    <asp:RadioButton ID="radioYes" runat="server" Checked="true" GroupName="Poll" Text="<%$Resources:Swedish,Yes %>" />
                                </td>
                                <td>
                                    <asp:Label ID="lblYesPercentage" runat="server"></asp:Label>
                                </td>
                                <td style="width: 16px">
                                    <img src="images/thumb_down.png" alt="" />
                                </td>
                                <td style="width: 50px">
                                    <asp:RadioButton ID="radioNo" runat="server" GroupName="Poll" Text="<%$Resources:Swedish,No %>" />
                                </td>
                                <td>
                                    <asp:Label ID="lblNoPercentage" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td height="10px">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="6" align="right">
                                    <asp:Button ID="btnSubmitPoll" runat="server" Text="<%$Resources:Swedish,Submit %>" OnClick="btnSubmitPoll_Click"
                                        CssClass="button_nn" />
                                </td>
                            </tr>
                        </table>
                        <table id="tblPollResult" runat="server" visible="false">
                            <tr>
                                <td>
                                    <asp:Literal ID="ltrrev" Text="<%$Resources:Swedish,review %>" runat="server">
                            </asp:Literal>
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <br />
            <div>
                <div class="fb-like" data-send="true" data-width="300" data-show-faces="true">
                </div>
            </div>
        </div>
    </div>
</asp:Content>

Open in new window

0
 
LVL 26

Expert Comment

by:Alan Warren
ID: 38403940
Hi jazzIIIlove,
found a post regarding multiple analytics tracking and how to set it up: Tracking Data for Multiple Google Analytics Accounts on One Page

You'd probably be interested in the For ga.js: sample.

Alan
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 38404062
Hi Alan;

Thanks for the search. I also removed one tracking.

2 questions are: Do you think that adsense problem really relates to multiple google analytics?

Second is that i had put the "give ad" image for 3rd party companies that may get interested. Is this not allowed while using adsense? I am a bit confused and find it unfair since that ad image is not related with google ads.

Regards.
0
 
LVL 26

Expert Comment

by:Alan Warren
ID: 38404158
Hi jazzIIIlove,
view source on the site is still showing two analytics tracking scripts.

I'd be inclined to get it working with one initially, then when you have ads showing, maybe post a question in the analytics forums, regarding setup for multiple account tracking.

Have you verified that analytics is receiving data?
Verify your web tracking setup

Regarding the give ad image, again I'd be inclined to get the ads showing initially, then try adding the image or one similar to the page, if the ads stop showing, you will have your answer.

Alan
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 38404316
Ah, Alan you are faster than me. Ok, now the source is having one analytic code and yet, it received data traffic (for a beer money :).

I am still waiting for the approval actually, hope it will be approved soon.

I understand the path of the comment above. I will follow that one.

One question is that suppose i got the google ads and add my ad, then google bans the google ads. Then is there a chance that they will reactivate it or am i in ban permanently?

I am on standby currently. I will comeback once it is OK.

Regards.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 38410843
Ok, bad news from google. A rejection mail came today, so can you tell where i am doing wrong? Why and moreover, what to do?

<quote>
Hello,

As mentioned in our welcome email, we conduct a second review of your
AdSense application once AdSense code is placed on your site(s). As a
result of this review, we have disapproved your account for the following
violation(s):

Issues:

- Site does not comply with Google policies


---------------------

Further detail:


Site does not comply with Google policies: We're unable to approve your
AdSense application at this time because we feel that your site does not
comply with Google AdSense policies or webmaster quality guidelines. It's
our goal to provide our advertisers sites that offer rich and meaningful
content, receive organic traffic, and allow us to serve well-targeted ads
to users. We believe that currently your site does not fulfill this
criteria.

For more details, please read the webmaster quality guidelines at
http://www.google.com/support/webmasters/bin/answer.py?answer=35769 and
the AdSense program policies at
http://support.google.com/adsense/bin/answer.py?answer=48182,
https://support.google.com/adsense/bin/topic.py?topic=1271507




---------------------

To update and resubmit your application, please visit
http://www.google.com/adsense and sign in using the email address and
password you submitted with your application. Our specialists will review
your account for compliance with our program policies, so please make sure
to resolve all of the issues listed above before resubmitting your
application.

For more information, visit our Help Center:
http://www.google.com/adsense/support/as or search the AdSense Help Forum,
where a community of publishers shares AdSense best practices:
http://groups.google.com/a/googleproductforums.com/forum/#!forum/adsense .

Regards,

The Google AdSense Team

-------------------------------------------------------------------------------------------------------------------------------
This message was sent from a notification-only email address that does not
accept incoming email. Please do not reply to this message.
</quote>

Regards.
0
 
LVL 58

Expert Comment

by:Gary
ID: 38410879
Maybe because all your content seems to come from other websites.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 38411260
Hi GaryC123;

Yes, but i am referencing the contents, this should be ok.

Don't you think?

Regards.
0
 
LVL 58

Expert Comment

by:Gary
ID: 38411338
Well only Google know for definite.
But there doesn't seem to be anything original on the site and I would presume the news articles you are using are copyright their respective websites, even though you have a translated version of it.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 38411476
So, how should I proceed now?

How to contact with google for the distinct reason?
or any other ad service like google adsense?

Regards.
0
 
LVL 58

Expert Comment

by:Gary
ID: 38411568
There should be a contact us on the adsense page when you log in, but good luck getting a specific reason from them...
But you are not going to get approved without your own original content as described in the Adsense approval rules.
0
 
LVL 26

Accepted Solution

by:
Alan Warren earned 2000 total points
ID: 38411643
I suspect the absence of a Privacy Policy would be at the top of the list; and as such, the first thing you should address. When google put the word 'must' in their policies, they are fairly serious about it.
AdSense publishers must have and abide by a privacy policy that discloses that third parties may be placing and reading cookies on your users' browsers, or using web beacons to collect information as a result of ad serving on your website.

Alan
0

Featured Post

Reclaim your office - Try the MB 660 headset now!

High level of background noise often makes it difficult for employees to concentrate fully on their jobs – or to communicate clearly on calls. The MB 660 headset helps you create a disruption free workspace.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whoever said that “a picture is worth one thousand words” observed a fact that can dramatically affect your marketing success. Most people tend to learn visually, so many publishers commonly acknowledge the effectiveness of visual learning by using…
Ranking ecommerce websites is a vital process. You need to have a strong SEO (Search Engine Optimization) strategy. If you don’t have one, you are losing out on brand impressions, clicks and sales. Check this guide on how to improve website traffic …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question