Page 1 of 1

Problem with {adsense}

Posted: Tue Jan 31, 2006 11:20 am
by askme
When I tried add google adsense with {adsense} tag, the problem is that no matter wether it is horizontal ads(720x90) or vertical ads (120x600). It is alway showing vertically ( I mean horizontal ads also look like vertical one 120x600)
How to control it. I like to put it like footer in my site or header. Not vertical one.
Please advice.

Re: Problem with {adsense}

Posted: Tue Jan 31, 2006 9:04 pm
by kermit
the "help" in the admin panel for the adsense tag tells you how to change the format of the ads.
Then just use the tag in your page/template like so: {adsense ad_client="pub-random#" ad_width="120" ad_height="600" ad_format="120x600_as"}
What parameters does it take?

All parameters are optional, though skipping one might not necessarily made the ad work right. Options are:

    * ad_client - This would be the pub_random# id that would represent your adsense account number
    * ad_width - width of the ad
    * ad_height - height of the ad
    * ad_format - "format" of the ad e.g. 120x600_as
    * ad_channel - channels are an advanced feature of adsense. Put it here if you use it.
make sure you're setting height, width and format if you're not using the 'default'.

SOLVED : Problem with {adsense}

Posted: Sun Oct 07, 2007 12:55 am
by WebGirl
For anyone who's been having problems using the {adsense} code, I wrote a step-by-step for the wiki:

http://wiki.cmsmadesimple.org/index.php ... gs/adsense

Cheers
WebGirl

Re: Problem with {adsense}

Posted: Sun Oct 07, 2007 4:34 am
by cyberman
Many thanks WebGirl - have insert some formats so it looks like the other wiki pages :).

SOLVED : Problem with {adsense}

Posted: Sun Oct 07, 2007 4:40 am
by WebGirl
Thanks Cyberman, that's much nicer ...

Now we just have to update the parameters which are on the 'TAG - Adsense' page in the installations:

admin/listtags.php?action=showpluginhelp&plugin=adsense

to show ALL the parameters, and we're set!

Phew - so pleased to finally get this working!!!

:)

Re: Problem with {adsense}

Posted: Sun Oct 07, 2007 4:52 am
by cyberman
Cant see any new parameters they are not inside tag help ::)
What parameters does it take?

All parameters are optional, though skipping one might not necessarily made the ad work right. Options are:

    * ad_client - This would be the pub_random# id that would represent your adsense account number
    * ad_width - width of the ad
    * ad_height - height of the ad
    * ad_format - "format" of the ad e.g. 120x600_as
    * ad_channel - channels are an advanced feature of adsense. Put it here if you use it.
    * ad_type - possible options are text, image or text_image.
    * color_border - the color of the border. Use HEX color or type the color name (Ex. Red)
    * color_link - the color of the linktext. Use HEX color or type the color name (Ex. Red)
    * color_url - the color of the URL. Use HEX color or type the color name (Ex. Red)
    * color_text - the color of the text. Use HEX color or type the color name (Ex. Red)

Re: Problem with {adsense}

Posted: Sun Oct 07, 2007 6:45 am
by WebGirl
Hi Cyberman,

Yes, it's a shame this won't be reflected until a new version is available, but still - it's a great start :-)

When I login to my client's new cmsms, and I select TAGS from the EXTENSIONS Menu, I am taken to a page on my client's site:

http://www.my-client-website.com/admin/ ... in=adsense

which only shows the first 6 parameters:
All parameters are optional, though skipping one might not necessarily made the ad work right. Options are:

    * ad_client - This would be the pub_random# id that would represent your adsense account number
    * ad_width - width of the ad
    * ad_height - height of the ad
    * ad_format - "format" of the ad e.g. 120x600_as
    * ad_channel - channels are an advanced feature of adsense. Put it here if you use it.
I understand that on the TAGS List, the TAG name, Help and About links are within the installation [we used 1.1 "Samoa"], and I thought it would be great to have this data updated for newer installations.

I've mentioned it to Ted today too.

A user has to click on {adsense} tag Help, then click Help again to get to the wiki.

I am sooooo pleased it's working now, and my client is very happy too!  :D

Cheers
WebGirl