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廣告是如下:



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 &雅虎的廣告沒有衝突和噸的高級選項對於初學者和親都和地段。