1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to add the Adsense widget to my website.

Discussion in 'PHP' started by rhoula, Jun 17, 2015.

  1. #1
    Can someone please tell me how I can add the Google Adsense widget to my site just like the one here on dp.

    upload_2015-6-17_12-18-9.png
     
    rhoula, Jun 17, 2015 IP
  2. jslirola

    jslirola Active Member

    Messages:
    39
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    58
    #2
    jslirola, Jun 21, 2015 IP
  3. 2WDH.com

    2WDH.com Active Member

    Messages:
    143
    Likes Received:
    3
    Best Answers:
    5
    Trophy Points:
    68
    #3
    Rhoula,

    1. What CMS (if any) do you use for your site?
    2. It looks like your site doesn't work fine at the moment. Do you need any help with this?
     
    2WDH.com, Jun 22, 2015 IP
  4. rhoula

    rhoula Well-Known Member

    Messages:
    875
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    145
    #4
    Thank you for writing back. My site has been down for few years now. I wanted to create a separate page somewhere with this info. I page i can visit on a regular basis instead of login to google adsense google analytics and Paypal.

    I don't know much about PHP but I can manage to get thisngs working.

    My wife and I own few website and would like to use one of them to check our stats.

    Thank you so much for the help guys.
     
    rhoula, Jun 25, 2015 IP
  5. rhoula

    rhoula Well-Known Member

    Messages:
    875
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    145
    #5
    I downloaded and installed the files but cannot get it to work.
     
    rhoula, Jun 26, 2015 IP
  6. jslirola

    jslirola Active Member

    Messages:
    39
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    58
    #6
    I tried it over "localhost" and it works. What's your problem? I just follow the next steps:
    Preview adsense-sample.php:
    [​IMG]

    Do you have any error trying to show the file?

    Edit: If you are interested in show earning and stats with Wordpress CMS: https://wordpress.org/plugins/google-adsense-dashboard-for-wp/
     
    Last edited: Jun 26, 2015
    jslirola, Jun 26, 2015 IP
  7. rhoula

    rhoula Well-Known Member

    Messages:
    875
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    145
    #7
    rhoula, Jun 27, 2015 IP
  8. jslirola

    jslirola Active Member

    Messages:
    39
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    58