You are Unregistered, please register to gain Full access.    

Go Back   Webmaster Forums & SEO Internet Marketing Resources > Search Engines > Google > Adsense


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-28-2008, 01:29 PM
Junior Member
 
Join Date: Jan 2008
Posts: 6
MustafaKemal is on a distinguished road
Default Adsense Code

It is very easy to prepare your website and website pages to start serving Google Adsense ads.

All you have to do is paste a code similar to the one below into your webpage's.

This can be done with any text editor program, or wysiwyg editors like Dream weaver or FrontPage.

Simply enter the code where you want it to appear on your webpage, and you are ready to go.

Let's try and go over the code - you can actually change your Google Adsense ad appearance here and more..

<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxx";
google_alternate_color = "ffffff";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_channel ="xxxxxxxxxx";
google_ad_type = "text_image";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

AdsenseGuide.info - Google Adsense Code
It is very easy to prepare your website and website pages to start serving Google Adsense ads.

All you have to do is paste a code similar to the one below into your webpage's.

This can be done with any text editor program, or wysiwyg editors like Dream weaver or FrontPage.

Simply enter the code where you want it to appear on your webpage, and you are ready to go.

Let's try and go over the code - you can actually change your Google Adsense ad appearance here and more..

<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxx";
google_alternate_color = "ffffff";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_channel ="xxxxxxxxxx";
google_ad_type = "text_image";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

google_ad_client = "pub-xxxxxxxxxxxx";

The first line of code holds your unique Google Adsense publisher identification - don't change this!

google_alternate_color = "ffffff";

The second line is used if Google cant find Adsense ads that are relevant to your page content. If you don't define this colour, Google will instead server Public Adsense ads, that unfortunately doesn't generate income for you when clicked on.





google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as"

Line 3-5 determines what type of Google Adsense ads you want to serve on your webpage's. In this example we are serving the "Skyscraper" format seen to the right on your screen. It has a width of 160 pixels, and a height of 600 pixels - so you want to make sure that there is room for this on your page.

google_ad_channel ="xxxxxxxx";

The sixth line is used for defining what ad channel these Google Adsense ads belong to. The code is generated by Google from within your Google Adsense members area, so don't change this. You can read more about Adsense Channels here.

google_ad_type = "text_image";

The seventh line determines what type of content Google should serve in your Google Adsense ads. There are 3 variations possible:

1. "text_image" this serves a mixture of both text and graphical Google Adsense ads. This is the standard setting.

2. "text" this server only text Google Adsense ads.

3. "image" this serves only graphical advertisements in your Google Adsense ads.

google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";

These lines determines the exact colours used when displaying Google Adsense ads on your website. You can change these colours directly, and instantly see the updated version of your Google Adsense ads on your website. The colour codes used are binary colours, meaning that white is "FFFFFF", black is "000000" etc.

The only drawback of using the Google Adsense code, is that you will manually have to enter it on every page of your website. This means that if you change your design, or are trying to optimize your Google Adsense income - it requires work!

Luckily this can be avoided by using server side generated web pages, i.e. through php. If you want to have an idea of how this can be done, take a look at this tutorial on creating dynamic webpage's.
Reply With Quote
  #2 (permalink)  
Old 01-28-2008, 01:39 PM
sumeet911's Avatar
Member
 
Join Date: Jan 2008
Posts: 68
My Mood:
sumeet911 is on a distinguished road
Default

Ya! And if a person is not using any server side launguages then its a mess to add all the codes in all the pages
The best way to implement adsense in all the pages is to use <#include> in all of them and include a single file containing the ad
This is more convenient to use, as if one wants to change the format he only need to change one file
Reply With Quote
  #3 (permalink)  
Old 01-29-2008, 04:54 AM
ravi_9793's Avatar
Member
 
Join Date: Jan 2008
Location: www.techhunt.org
Posts: 52
My Mood:
ravi_9793 is on a distinguished road
Default

why are you posting adsense code formate here. Any one can have desired look of adsense code through easy process in adsense control panel.

You can also add, that dont change default adsense code, they may ban you.
Reply With Quote
  #4 (permalink)  
Old 01-29-2008, 05:09 AM
nuaeman's Avatar
Member
 
Join Date: Jan 2008
Posts: 52
My Mood:
nuaeman is on a distinguished road
Default

Im also curious why this guy put their adsense code here. Is that not against adsense TOS? What is your purpose actually kemal? I think for publish your code here also will risk yourself.
Reply With Quote
  #5 (permalink)  
Old 03-06-2008, 09:33 AM
Member
 
Join Date: Mar 2008
Posts: 77
nani99 is on a distinguished road
Default

i agree with nuaeman . you definetly are doing things which are against the rules of adsense. better watch out buddy.

Last edited by nani99; 03-06-2008 at 05:42 PM.
Reply With Quote
  #6 (permalink)  
Old 04-03-2008, 06:57 PM
forumguy's Avatar
Senior Member
 
Join Date: Mar 2008
Posts: 200
forumguy is on a distinguished road
Default

I dont think that the thread started has done anything wrong here because he has not displayed the publisher in that adsense code but only the generic adsense codes for reference and hence there is nothing to worry here.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:28 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79