How To Display AdSense & Yahoo Publisher Ads Using AdRotator Plugin for WordPress 如何顯示AdSense &雅虎發布廣告使用的AdRotator插件的WordPress
AdRotator的AdRotator is a WordPress plugin which you can used to randomly rotate your ads (including but not limited to AdSense, Yahoo Publisher Network, Clicksor, Chitika etc.) on WordPress blogs.是一個wordpress插件,您可以用隨機輪流展示您的廣告(包括但不限於Adsense ,雅虎出版商網絡, clicksor , chitika等)對WordPress Blogs的。 It allows you to display an advertisement (which is randomly selected from a group of advertisements specified in a text file) at your chosen location.它允許你顯示的廣告(這是隨機選取的一組廣告,指定在一個文本文件中)在您所選擇的位置。 The most frequent question I get is how you can use it to display AdSense ads, with an example.最常見的問題時,我得到的是如何您可以使用它來顯示AdSense廣告,與一個例子。
AdRotator plugin插件的AdRotator can be used to easily rotate between AdSense, Yahoo Publisher Network ads and any other javascript based ad codes in combination and in a single file.可以用來輕鬆地之間輪換Adsense ,雅虎出版者網絡廣告和任何其他基於JavaScript的廣告代碼在組合在一個單一文件。 There is however a small trick to it.不過有一個小伎倆。 You need to compress the ad code in a single line.你需要壓縮的廣告代碼在一個單一的路線。 Let me illustrate with an AdSense example.讓我說明同一個AdSense的例子。
Suppose your adsense ad is as follows:假設您的AdSense廣告是如下:
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
Then you need to reformat it as below:那麼你需要重新格式化它作為如下:
Note: The above code is in a single line.注:上述代碼是在一個單一的路線。 Place as many as such ad codes in a single file and you can rotate between them.的地方,許多這樣的廣告代碼在一個單一的文件,你可以旋轉它們之間。
This idea can be used with Yahoo ads and any other javascript based ad codes.這種想法可以使用雅虎的廣告和任何其他基於JavaScript的廣告代碼。 If you face problems then you have most likely messed up your ad code somewhere.如果您面對的問題,那麼你最有可能搞砸您的廣告代碼某處。
Here is another這裡是另一個 example例如 for other types of ads.對於其他類型的廣告。 You can refer to the您可以參閱該 AdRotator user manual的AdRotator用戶手冊 for further details.進一步的細節。
BTW: I am planning to release AdRotator Pro version in about a couple of weeks.的BTW :我的規劃釋放的AdRotator Pro版本在大約兩三個星期。 It will make it much much simpler to manage your ad-strips, no tricks like above and no need to change your ad code, will allow placing multiple ads from the same file on the same page, without duplication, allow rotating between say Google & Yahoo ads without conflict and tons of advanced options for beginners and pro alike and lots more.它將使許多簡單得多,管理您的廣告帶,沒有像上述的手法和沒有必要改變您的廣告代碼,將允許放置多個廣告,從相同的文件在同一頁上,沒有重複,讓旋轉之間的人士稱, Google &雅虎的廣告沒有衝突和噸的高級選項對於初學者和親都和地段。
Filed under提起下 CMS Software CMS軟件 , , Headline News頭條新聞 , , How To如何 , , Pro Blogging贊成Blogging , , Tech Note技術說明 , , Web網頁 , , Web Services Web服務 , , WordPress在WordPress | |
| |
RSS 2.0 2.0 | |
Trackback Trackback跟踪 this Article |此文章|
Email this Article電子郵件此文章
You may also like to read您也可以想讀 |





































September 2nd, 2006 at 10:14 pm 2006年9月2日在下午10時14分
Hello Angsuman, I am trying to use your ad rotator由Angsuman您好,我是試圖用您的廣告轉子
but I am getting this error.但我收到這個錯誤。
Parse error: unexpected T_STRING, expecting ‘,’ or ‘;’ in解析錯誤:意想不到的t_string ,期待' , '或' ; '在
I even tried it like this: with no luck.我什至嘗試,它是這樣的:沒有好運氣。
Do you know what it is asking me to adjust?你知道它是什麼要求我調整?
Thanks, Simone感謝,西蒙娜
September 2nd, 2006 at 10:19 pm 2006年9月2日在下午10時19分
Hmmmm it wouldn’t include my php include I’ll try it without the brackets. hmmmm它不會包括我的PHP ,包括我會嘗試,它沒有括號內。
These are the two I tried but with php brackets.這是兩個我嘗試,但用PHP括號內。
php echo getad ’test1’; PHP的迴聲getad ' test1 ' ;
php echo getad ’test1,test2’; PHP的迴聲getad ' test1 ,測試' ;
April 7th, 2007 at 10:56 am 2007年4月7日在上午10時56分
i think this could work on my image hosting site我認為這可能是工作對我的圖片託管網站 photosharingworld.com
April 21st, 2007 at 4:59 pm 2007年4月21日在下午4時59分
>then you need to reformat it as below, > >那麼你需要重新格式化它作為下面, >
well it is against google ad terms , what u think abt that ?以及,這是對Google廣告的條款,什麼u認為, ABT生根粉是什麼?
August 23rd, 2007 at 11:42 am 2007年8月23日在上午11時42分
Can this work in RSS feeds?這項工作可以在RSS聚合?
August 23rd, 2007 at 2:11 pm 2007年8月23日在下午2時11分
Yes, but you have to modify it.是的,但你必須修改它。 Or you can contact us for developing it for you.或者您也可以聯繫我們的發展,它為您。
April 5th, 2008 at 3:08 pm 2008年4月5日在下午3時08分
Hey, thanks for this awesome plugin.嘿,感謝這可怕插件。
I managed to get it work on my blog.我設法得到它的工作對我的博客。
The thing is, it doesn’t properly show adsense.這件事是,這並不正確顯示AdSense 。 Hmm..doesn’t show at all. HMM的..不會顯示在所有。 maybe because of lining up the code in 1 line breaks it.或許是因為襯砌了代碼在一換行符。
Does this work with the new adsense code?是否這方面的工作與新AdSense代碼?