Elxis CMS Forum

Extensions => Modules => Topic started by: rentasite on June 09, 2014, 15:17:03

Title: Mod_Ads + Google Adsense problem [SOLVED]
Post by: rentasite on June 09, 2014, 15:17:03
I'm trying to use the mod_ads module with the use of Google Adsense. I input the code as given from Google, but it shows this part of code, instead of the advertisement:

style="display:inline-block;width:300px;height:250px"
data-ad-client="ca-pub-315XXXXXXXX89"
data-ad-slot="408XXXXXXXX06">
Title: Re: Mod_Ads + Google Adsense problem
Post by: datahell on June 09, 2014, 17:41:34
Make sure you write all the code in one line!
Title: Re: Mod_Ads + Google Adsense problem
Post by: rentasite on June 09, 2014, 22:22:08

:o

With all the code in one line, it works.

Thanks!!
Title: Re: Mod_Ads + Google Adsense problem [SOLVED]
Post by: datahell on June 09, 2014, 22:51:06
This is global rule for all XML parameters. All parameters values, regardless their length, should be entered in one line only. This is because line ends are considered parameters separator. You have no problem thinking of this rule for no other parameter type than textarea. Textarea parameter type is rarely used in Elxis extensions.