ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Adsense/Sponsored links

November 23, 2008 2:28am

Subscribe [4]
  • #1 / Nov 23, 2008 2:28am

    OJ

    18 posts

    Hi All,
    I read something about displaying adsense as sponsored links on the web page. This site: http://www.phplinkdirectory.com/forum/showthread.php?t=419
    did it with what I believe is smarty framework. Does anyone know if this is possible with CI?
    I have also seen sites that attach thumbnails with ads under sponsored links which comes as part of search results and I would like to do the same. Is there a limitation on what I can do with CI. Can someone help if I am mixing things up.

    Thanks,
    OJ

  • #2 / Nov 23, 2008 10:59am

    John_Betong

    690 posts

    Hi All,
    I read something about displaying adsense as sponsored links on the web page. This site: http://www.phplinkdirectory.com/forum/showthread.php?t=419
    did it with what I believe is smarty framework. Does anyone know if this is possible with CI?
    I have also seen sites that attach thumbnails with ads under sponsored links which comes as part of search results and I would like to do the same. Is there a limitation on what I can do with CI. Can someone help if I am mixing things up.

    Thanks,
    OJ

     
    Create a partial view in your view folder
    _google_120x600.php

    < script type="text/javascript" >
      <!--
      google_ad_client = "pub-0332427512321583";
      /* Johns-Jokes */
      google_ad_slot = "4222954696";
      google_ad_width = 120;
      google_ad_height = 600;
      //-->
    < /script >
    [removed]
    [removed]

     
     
    in your controller call it:

    ...
      ...
      $data['google']  = $this->load->view('_google_120x60', '', TRUE);
      $data['header']  = $this->load->view('_header', $data, TRUE);
      $data['footer']  = $this->load->view('_footer', '',    TRUE);
      $data['search']  = $this->load->view('_search', $data, TRUE);
      $data['title']   = $this->load->view('_title',  $data, TRUE);
      $data['left']    = $this->load->view('_left',   $data, TRUE);
      $data['right']   = $this->load->view('_right',  $data, TRUE);
      $data['body']    = $this->load->view('_body',   $data, TRUE);
    
      $result          = $this->load->view('_joke',   $data, TRUE);
      echo $result;

     
     
    In you view use it like this:

    <html>
      <head>
        <title><?= $title ?></title>
      <head>
      <body>
         ...
         ...
         ...
      <?= $google ?>
         ...
         ...
      </body>
    </html>

     
     

  • #3 / Nov 24, 2008 10:15am

    OJ

    18 posts

    Hi,
    I don’t believe your code will solve my problem.
    I want to read the Ads that comes from Ad sense and display them as sponsored links and also able to get a handle on each so that I can attach thumbnails.

    Did you try the code you sent. May be I didn’t understand it.
    Why do you have the [removed][removed]

  • #4 / Nov 24, 2008 11:43am

    John_Betong

    690 posts

    Hi,
    I don’t believe your code will solve my problem.
    I want to read the Ads that comes from Ad sense and display them as sponsored links and also able to get a handle on each so that I can attach thumbnails.

    Did you try the code you sent. May be I didn’t understand it.
    Why do you have the [removed][removed]

     
     
    There are a variety of Google Adsense formats available in various shapes and sizes, quite a few with relevant attached thumbnails. I don’t believe it is possible to attach your own thumbnails or change Google’s Adsense formats. I also think Google would be very unhappy with any changes to their supplied format and you would quickly lose your account.
     
    The code reference you supplied was the way Smarty includes the Googles predefined Javascript code. The only difference was the guy prefixed the supplied code with his own Sponsored Links heading then followed with the Google Adsense code wrapped in his own ”<div ...>” statement. The guy also mentioned that an example was available in his “sig” but I could not see any link.
     
    The code supplied was from my Joke site that you can find in my signature.
     
    Have you a Google Adsense account and have you viewed all the different formats?
     
    The [removed] [/removed] was Javascript code that the this forum’s software removed no doubt for safety reasons.
     
     
     

  • #5 / Nov 27, 2008 1:20am

    OJ

    18 posts

    Thanks for your response. I haven’t really seen any format with thumbnails.
    Here is the link the guys was talking about :http://www.addurl-free.com/
    He made them as featured links as you can see down his page because he was able to control it.
    From his explanation it appears that they were able to control which categories of the sponsored links appear on their website.
    see the sponsored links on this page and let me know what you think:
    http://www.gumtree.com/london/2549_1.html

  • #6 / Nov 27, 2008 9:05am

    narkaT

    113 posts

    you want this: AdSense for Search

    that’s the only way to customize the adds.

  • #7 / Nov 27, 2008 10:53am

    OJ

    18 posts

    Hi
    Have you done this before, can you give me some more ideas? I know about Adsense for search. You can either display Google search within your page or in a new window. The sponsored links however are displayed on the side of the page.

    Any ideas/code snippets will be appreciated

    Cheers,
    OJ

  • #8 / Nov 28, 2008 12:27am

    John_Betong

    690 posts

    Hi
    Have you done this before, can you give me some more ideas? I know about Adsense for search. You can either display Google search within your page or in a new window. The sponsored links however are displayed on the side of the page.

    Any ideas/code snippets will be appreciated

    Cheers,
    OJ

     
    https://www.google.com/adsense/static/en_GB/AdFormats.html?sourceid=aso&medium=link&subid=ww-ww-et-resourcestab
     
    Above link is to numerous types of Google Adsense adverts, many of them include images.
     
    What I have done is:
    1. select a few from the list
    2. modify each supplied codes format
    3. download
    4. create a partial view such as ”./view/_google_460x60.php”
    5. create the controller and main view php code
    6. update and wait for the money to roll in 😊
     
    With my limited experience of using Google’s Adsense is that the click rate is less than 5% so to earn any cash it is essential to concentrate on trying to promote your site and increase the number of views.
     
    This morning I spent some time with Google Adsense pages. I added site verification, sitemap.xml, checked my robots.txt and was surpised to find that amongst the analysis there was a “Top Search Queries’. This was very informative even though it was a week old since not only did it give the punter’s query it also gave the position on the relevant search results. I have frequently wondered about how to obtain this information and now I know.
     
     

  • #9 / Nov 30, 2008 10:29pm

    OJ

    18 posts

    Thanks,
    The search you have on your site: http://johns-jokes.com/joke/show/192/
    is it based on Adsense for search?

  • #10 / Nov 30, 2008 11:31pm

    John_Betong

    690 posts

    Thanks,
    The search you have on your site: http://johns-jokes.com/joke/show/192/
    is it based on Adsense for search?

     
     
    I parse the search keywords and build the SQL string on all matches “%LIKE%” in my title and joke content. One thing I do not like about Googles search is that it does not tell you the keywords it cannot find amongst numerous keywords. As I am parsing the keywords I also build an array of keywords that are not found.
     
    It took quite some time to think how to write the code but quite easy once I started.
     
    I am curious to know if Google’s Adsense search will beat mine. As far as I know Google only has access to the html pages that are generated from my MySql database. I should imagine it will not be as accurate but will have their “look & feel”.
     
    when I have time I will offer Google Adsense as an option.
     
     
     

  • #11 / Dec 06, 2008 4:35am

    phantom-a

    77 posts

    No what your suggesting is not allowed Unless your a premium Publisher that make more 10K a month are allowed to change the look of the adsense units, it clearly states this in the terms of service that you may not modify the code that given to you from the adsense control panel and you may not manipulate the ads by inserting keywords into the page that changes the ads. The only thing your allowed to do is copy the code from the adsense CP and paste it into your webpage,  Doing anything else you will probably find your account being terminated for terms of service violation.

  • #12 / Dec 06, 2008 6:33am

    OJ

    18 posts

    Thanks for the info. Are you indicating that the sponsored links displayed on site like http://www.gumtree.com/london/2549_1.html

    is google Adsense for search but for premium account holder.

    My major question which has not be answered is how do u display the sponsonsored links like in the page http://www.gumtree.com/london/2549_1.html with showing Ads by Google. I am assuming that those Ads come from google or do you think they came from other companies??
    I just need to display my Ads as sponsored links not Ads by Google. Can someone give me ideas?
    Thanks,
    OJ

  • #13 / Dec 06, 2008 7:27am

    phantom-a

    77 posts

    Gumtree would be a premium publisher there site is 834 On Alexa. That is why they can style their adsense like that at the bottom.  As far as the Adsense for search, you can incorporate it into your page, Last time I checked there was option for that when your in the Adsense control panel.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases