Problem with {adsense} Topic is solved

General project discussion. NOT for help questions.
Post Reply
askme

Problem with {adsense}

Post 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.
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: Problem with {adsense}

Post 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'.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
WebGirl

SOLVED : Problem with {adsense}

Post 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
cyberman

Re: Problem with {adsense}

Post by cyberman »

Many thanks WebGirl - have insert some formats so it looks like the other wiki pages :).
WebGirl

SOLVED : Problem with {adsense}

Post 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!!!

:)
cyberman

Re: Problem with {adsense}

Post 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)
WebGirl

Re: Problem with {adsense}

Post 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
Post Reply

Return to “General Discussion”