欺騙增加AdSense、AdBrite和其他Java語言廣告代碼直接地到Blogger HTML模板

Blogger.com服務的高級用戶也許設法插入和投入Google AdSense實際上是Java劇本直接地入blog頁通過手工編輯基於XML的模板HTML編制程序接口的廣告代碼。 實際上,它是可能的通過使用HTML/JavaScript頁元素增加所有廣告代碼在Blogger新的XML模板系統之內,但地方,您能安置新的塊是相當有限的,即。 在或在崗位身體、倒栽跳水,步行者之下之上,在側杆之內或 在blog崗位之間. 萬一您想要投入ads在崗位裡面或者排列ads漂浮和包裹在文本附近或者在唯一單獨文章內容視圖之內,您將必須直接地編輯Blogger模板HTML編制程序。

如果您設法插入任何Google AdSense, AdBrite、AdEngage和其他Java語言根據廣告代碼,或者客戶邊組分例如櫃臺、跟蹤儀、形式、小片、作用、是基於的Java語言的日期和時間等等,以下錯誤信息也許返回,當保存的礦石預覽:

因為它不是合格的,您的模板不可能被解析。 請確定所有XML元素適當地被關閉。 XML錯誤信息: 處理指令標的配比「[xx] [毫米] [lL]」沒有准許。

因為它不是合格的,您的模板不可能被解析。 請確定所有XML元素適當地被關閉。
XML錯誤信息: 在個體「zs」的參考必須以`結束; 』符號。

并且許多其他另外XML錯誤信息。

問題由Blogger XML模板的不正確動態解釋引起,當它引起HTML網頁為請求時的blog頁,大概由於這樣的事實AdSense廣告代碼或其他代碼不是合法的XML,加上事實一些ASCII字符有特別意思和後備的作用,混淆Blogger blogging的engin。

決議到Java語言基於編制程序在Blogger HTML模板錯誤在劇本不運作可以通過替換特性或標誌解決到HTML代碼。 檢查名單如下需要用他們對應的HTML代碼替換的哪些ASCII字符。 使用HTML代碼保證Blogger正確地回報字符,當服務頁對觀察者時。

< - <
> - >

在二之上做Google AdSense工作的足够在Blogger模板。 For other scripts, such as AdBrite ad code, you will need to replace more characters such as those listed below.

& = &
” = "

For example, a Google AdSense code should become looks similar to code below:

<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXXXXX";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

While an AdBrite ad code will became the similar code to the below:

<script type="text/javascript">
var AdBrite_Title_Color = '0000FF';
var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFFFFF';
var AdBrite_Border_Color = 'FFFFFF';
</script>
<script src="http://ads.adbrite.com/mb/text_group.php?sid=303771&zs=3330305f323530" type="text/javascript"></script>
<div><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=303771&afsid=1" style="font-weight:bold;font-family:Arial;font-size:13px;">Your Ad Here</a></div>

Simply use the text editor to parse the code and then replace the characters. Don’t worry about violating AdSense TOS or other terms and conditions, as once the blog’s web pages are rendered and presented to the viewers and visitors, the code will be exactly same as the original code before any replacement!

IMPORTANT: This is a machine translated page which is provided "as is" without warranty. Machine translation may be difficult to understand. Please refer to original English article whenever possible.

Share and contribute or get technical support and help at My Digital Life Forums.



28 Responses to “Trick to Add AdSense, AdBrite and Other JavaScript Ad Code Directly to Blogger HTML Template”

Pages: [2] 1 » Show All

  1. Freeware symbian java downloads
    August 23rd, 2008 14:18
    28

    Thanks for great tips.I am not sure about what you said for violation of adsense TOS.Are you sure its ok?

  2. mobile
    August 8th, 2008 00:47
    27

    thanks.. was stuck with adbrite code…

  3. Make Money from Blogs » Blog Archive » How to parse Adsense code to add within the Blogger template
    May 28th, 2008 11:08
    26

    [...] adsense code in greater clarity, explaining the need of why this change needs to be done. Read this article (link) for more details: If you try to insert any Google AdSense, AdBrite, AdEngage and any other JavaScript based ad [...]

Pages: [2] 1 » Show All

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

adsense javascript - javascript adsense - google adsense javascript - google ads javascript - blogspot javascript - The reference to entity "zs" must end with the ';' delimiter. - The processing instruction target matching "[xX][mM][lL]" is not allowed - adbrite blogspot - adbrite on blogger - The processing instruction target matching "[xX][mM][lL]" is not allowed. - javascript blogger - The processing instruction target matching "[xX][mM][lL]" is not allowed. - Javascript for Blogger - java how to send email javascript adsense - adbrite tricks - blogspot adbrite - adbrite trick - blog template html code - javascript in blogger - html code adsense - adding javascript to blogger - adding javascript to blog - javascripts for blogger - google adsense javascript code - adbrite blogger - ch_default_category - trick to add adsense,adbrite - HTML CODE BLOGGER - add adsense to blogger posts - javascript in blogger template - adsense adbrite - blogger adbrite - javascript in blogger posts - block adbrite ie pro - html code for blogger - other javascript - The reference to entity "zs" must end with the ';' delimiter - add javascript to blogger template - adsense html code - javascripts for blog - javascript ad code - ad code converter - html ad code - blogger javascript - blogger html code - does blogger.com support adbrite - how to add other advertisement to my blog - how add adbrite blogger - MYDIGITIALLIFE - adbrite block -