Google ads problem Google ads problem
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Google ads problem

Started by Faithless, February 02, 2006, 10:06:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Faithless

Hi
I inserted Google adsense code in template.html but it doesn't work
Can you help me plz?

My gallery: http://elisha-fans.com/gallery/

Nibbler

It should be


<script type="text/javascript"><!--
google_ad_client = "pub-0652110030323747";
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = "468x15_0ads_al_s";
google_ad_channel ="";
google_color_border = "F9DFF9";
google_color_bg = "F9DFF9";
google_color_link = "0099FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>


not

<script type="text/javascript"><!--
<script type="text/javascript"><!--
google_ad_client = "pub-0652110030323747";
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = "468x15_0ads_al_s";
google_ad_channel ="";
google_color_border = "F9DFF9";
google_color_bg = "F9DFF9";
google_color_link = "0099FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script>

Joachim Müller

Improper table nesting and double-declaration of the script section, try<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="themes/pink/style.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
<!-- $Id: template.html,v 1.6 2005/12/04 03:22:35 donnoman Exp $ -->
</head>
<body>
  {CUSTOM_HEADER}
  <table width="790px" border="0" align="center" cellpadding="0" cellspacing="0">

    <tr>
  <td width="5" background="themes/pink/images/border_left.gif"><img src="images/border_left.gif" width="5" height="2"></td>
  <td width="33" background="themes/pink/images/left.gif"><img src="themes/pink/images/left.gif" width="33" height="12"></td>
      <td valign="top" style="background-color:#edebf9;">
        <table width="100%" border="0" cellspacing="0" cellpadding="10">
          <tr>
            <td align="center"><h3>{GAL_DESCRIPTION}</h3>
              <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">

                <tr>
                  <td>
<script type="text/javascript">
<!--
google_ad_client = "pub-0652110030323747";
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = "468x15_0ads_al_s";
google_ad_channel ="";
google_color_border = "F9DFF9";
google_color_bg = "F9DFF9";
google_color_link = "0099FF";
google_color_url = "008000";
google_color_text = "000000";
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
                </td>
                </tr>
              </table>
              <br />
              {SYS_MENU} <br />
              {SUB_MENU}            </td>

          </tr>
        </table>
        <table width="100%" border="0" align="center" cellpadding="10" cellspacing="0">
          <tr>
            <td align="left" valign="top">
              {ADMIN_MENU}
              {GALLERY}            </td>
          </tr>
        </table>
        </td>
    <td width="33" background="themes/pink/images/right.gif"><img src="../images/right.gif" width="33" height="13"></td>
  <td width="5" background="themes/pink/images/border_left.gif"><img src="images/border_left.gif" width="5" height="2"></td>
    </tr>
</table>
  {CUSTOM_FOOTER}{VANITY}
</body>
</html>
instead for a start.

Faithless

Thank both of you Nibbler and GauGau
It was the fastest answer I’ve ever got

I think it is ok now, isn’t it?

Thx again

mogadishu

#4
I Didn't wante to Make another Topic.. (Sorry if is Wrong)
I Need Help finding The Good color For My Ads To inser at:
http://www.alexzander.ro/photo-album/index.php [Edit GauGau]Warning: link not worksafe[/edit]

ADS Are like:

Quotegoogle_ad_type = "text_image";
google_ad_channel ="7980359141";
google_color_border = "E4E6D9";
google_color_bg = "000000";
google_color_link = "0066CC";
google_color_url = "000000";
google_color_text = "000000";

Thank You in Advence !

Joachim Müller

"good" colors are a matter of taste, what recommendation do you expect? Add the google ads code to your page as suggested and edit the colors later.

mogadishu

:(( i don't know what color to use (can't find the good color for the template i USE)

Please Somebody Help.

Thank you in Advence !

Joachim Müller

you still haven't done as suggested: add the adsense code to your page now, worry about the colors later.

Colors used in your theme:
QuoteHex 000000 = RBG   0,   0,   0 = black
Hex 005D8C = RBG   0,  93, 140 = dark blue
Hex 333333 = RBG  51,  51,  51 = black
Hex 394048 = RBG  57,  64,  72 = black
Hex 394049 = RBG  57,  64,  73 = black
Hex 404750 = RBG  64,  71,  80 = dark grey
Hex 414852 = RBG  65,  72,  82 = dark grey
Hex 444444 = RBG  68,  68,  68 = dark grey
Hex 474F5A = RBG  71,  79,  90 = dark grey
Hex 49525D = RBG  73,   82, 93 = dark grey
Hex 4F5864 = RBG  79,  88, 100 = dark grey
Hex 4F5964 = RBG  79,  89, 100 = dark grey
Hex 515B67 = RBG  81,  91, 103 = dark grey
Hex 555555 = RBG  85,  85,  85 = medium grey
Hex 56606D = RBG  86,  96, 109 = medium grey
Hex 5B5B5B = RBG  91,  91,  91 = medium grey
Hex 5D6674 = RBG  93, 102, 116 = medium grey
Hex 5D6876 = RBG  93, 104, 118 = medium grey
Hex 616C7A = RBG  97, 108, 122 = medium grey
Hex 616D7B = RBG  97, 108, 123 = medium grey
Hex 6A7786 = RBG 106, 119, 134 = medium grey
Hex 777777 = RBG 119, 119, 119 = medium grey
Hex 8090A3 = RBG 128, 144, 163 = steel grey
Hex 949494 = RBG 148, 148, 148 = medium grey
Hex AEAEAE = RBG 174, 174, 174 = light grey
Hex BDBEBD = RBG 189, 190, 189 = light grey
Hex C7C7C7 = RBG 199, 199, 199 = light grey
Hex CCCCCC = RBG 204, 204, 204 = light grey
Hex DFDFDF = RBG 223, 223, 223 = light grey
Hex EAEAEA = RBG 234, 234, 234 = dark white
Hex EFEFEF = RBG 239, 239, 239 = dark white
Hex F2F8FF = RBG 242, 248, 255 = dark white
Hex FFFFFF = RBG 255, 255, 255 = white

Take a look at the stylesheet to find out what colors are being used for which purpose. Your stylesheet is located at http://www.alexzander.ro/photo-album/themes/hardwired/style.css

mogadishu


lordprodigy

I know this topic is solved but Google provides you with a complete color management tool for your ads. Pick up the colors used in your template from the the template's css and add them in google's manager. You can preview your ads as you change them... have fun.

ennovative

for future reference, if you're trying to match an existing colour scheme, try using Pixie from Nattyware http://www.nattyware.com/pixie.html it's a free mini utility that shows you the hex and html values wherever you mouse over on your screen.