See daily image on my index page (PHP script question)

Discussion in 'PHP' started by dinrock, Oct 6, 2006.

  1. #1
    I rotate the daily image on my index page here: http://www.danscartoons.com and that image is controlled by a PHP script which resides on my web host's server. That image is "syndicated" on many other sites and links page, for instance, click here: http://www.badcomputerservice.us/FunStuff/Cartoon/panels1.html , and click my image . . . it takes you back you my index page. I want to ad an AdSense LINK UNIT ABOVE my daily image to allow for more potential page imapressions & CTR via the image appearing on those sites it is "syndicated" to. Can I insert AdSense code within my PHP script on my host's server? It won't violate the rules I wouldn't think as it is pasted into an existing page to begin with -
     
    dinrock, Oct 6, 2006 IP
  2. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #2
    I'm not sure that the syndicating sites would appreciate that, but it is possible if you're publishing the html to see the image, and not just the image URL itself
     
    frankcow, Oct 6, 2006 IP
  3. dinrock

    dinrock Well-Known Member

    Messages:
    1,150
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    128
    #3
    ....here: http://www.badcomputerservice.us/FunStuff/Cartoon/panels1.html
    where he has a small banner ad. I think if I can insert AdSense link unit code ATOP my daily image, it won't offend any of my other sites who run my daily image. Adding maybe:
    <script type="text/javascript"><!--
    google_ad_client + "pub-8420064843889681";
    google_ad_width468;
    google_ad_height = 15;
    google_ad_format = "428x15-Oads-al_s";
    google_ad_channel = "5252545121";
    google_color_border = "FFFF99";
    google_color_bg = "FFFF99";
    google_color_link = "009933";
    google_color_url = "008000";
    google_color_text = "000000";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js>
    </script>
    But it needs to be configured into the script which resides directly on my server if I am not correct. . . .right? Because here is image source code for my daily image: http://danscartoons.com/cotd/dailycartoon.php
     
    dinrock, Oct 6, 2006 IP
  4. codeber

    codeber Peon

    Messages:
    578
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You would have to be careful when doing this because

    a) you lose control over which websites show your ads
    - if they have yahoo ads you will be in breach of Adsense TOS and could get banned
    - Those websites may be engaged in click fraud themselves and users may hammer those ads and again cause a TOS breach/ban.

    b) Those website owners would most likely stop linking to you.

    You are actually probably gettign more visitors now through the click through than you would showing in on a reduced no of syndicated pages.
     
    codeber, Oct 6, 2006 IP
  5. dinrock

    dinrock Well-Known Member

    Messages:
    1,150
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    128
    #5
    a). I could still control which websites see my ads simply because it is up to my discretion whether to allow or not to allow a specific website to run my daily cartoon. I.e., I need to supply them with a specific "source code" when they request it. If I peruse a site, prior to allowing the linking of my daily image and see the ad content would violate the AdSense TOS, I simply would not give them my code. Currently, here is the code I hand out upon request: http://danscartoons.com/cotd/dailycartoon.php
    b). Specific website owners wouldn't stop linking if I initially used the discretion mentioned above.
     
    dinrock, Oct 7, 2006 IP