Difference between revisions of "Google ads"
m (moved Google adds to Google ads) |
|||
Line 1: | Line 1: | ||
I want to have the ability to put advertisements on this site and earn money with it. Hopefully, no lawyer will sue me because of a strange law I have never heard about - you are facing this risk as soon as you make money with your website, as far as I understand... | I want to have the ability to put advertisements on this site and earn money with it. Hopefully, no lawyer will sue me because of a strange law I have never heard about - you are facing this risk as soon as you make money with your website, as far as I understand... | ||
− | + | Google has two programs for advertisements. There is AdWords for people who want to buy advertising space and AdSense for webmasters who want to earn money by showing advertisements. I registered [http://www.google.com/adsense there] and got a message that I will have to change the A-records of my domains. Then I read https://wincent.com/wiki/Adding_Google_AdSense_to_MediaWiki and brought Google Ads to my website. | |
Google send me a link to https://www.google.com/adsense/v3/app?hl=en_US#home where I have a cockpit for my GoogleAdSense activities. | Google send me a link to https://www.google.com/adsense/v3/app?hl=en_US#home where I have a cockpit for my GoogleAdSense activities. | ||
Line 64: | Line 64: | ||
< </div> | < </div> | ||
</pre> | </pre> | ||
+ | |||
+ | [[Category:Blog]] | ||
[[Category:Projects]] | [[Category:Projects]] |
Revision as of 20:23, 17 August 2012
I want to have the ability to put advertisements on this site and earn money with it. Hopefully, no lawyer will sue me because of a strange law I have never heard about - you are facing this risk as soon as you make money with your website, as far as I understand...
Google has two programs for advertisements. There is AdWords for people who want to buy advertising space and AdSense for webmasters who want to earn money by showing advertisements. I registered there and got a message that I will have to change the A-records of my domains. Then I read https://wincent.com/wiki/Adding_Google_AdSense_to_MediaWiki and brought Google Ads to my website.
Google send me a link to https://www.google.com/adsense/v3/app?hl=en_US#home where I have a cockpit for my GoogleAdSense activities.
Changing DNS
added
@ IN A 216.239.32.21
to https://robot.your-server.de/dns, removed
www IN A 92.51.132.237
added
www IN A pub-5986435568536490.afd.ghs.google.com
On kis.hosteurope.de, added pub-5986435568536490.afd.ghs.google.com to www. Then www.linuxintro.org pointed to google.
Then my mail server did not work any longer. Researching it, the problem was:
# /etc/init.d/postfix start Starting mail service (Postfix) failed tstaerk was here. postfix_bin is /usr/sbin/postfix # /usr/sbin/postfix postfix: fatal: parameter inet_interfaces: no local interface found for 216.239.34.21
Solved this problem by removing all the
@ IN A 216.239.
lines.
Changing the site
skins # diff MonoBook.php MonoBook-1.php 165a166,178 > <div class="portlet"> > <script type="text/javascript"><!-- > google_ad_client = "ca-pub-5986435568536490"; > /* test */ > google_ad_slot = "6701716988"; > google_ad_width = 728; > google_ad_height = 90; > //--> > </script> > <script type="text/javascript" > src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> > </script> > </div> 200d212 < 246d257 < </div> 300,313d310 < <div class="portlet"> < advertisement < <script type="text/javascript"><!-- < google_ad_client = "ca-pub-5986435568536490"; < /* skyscraper */ < google_ad_slot = "6275721819"; < google_ad_width = 120; < google_ad_height = 600; < //--> < </script> < <script type="text/javascript" < src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> < </script> < </div>