Tuesday, October 23, 2012

Wordpress插件介绍-AdSense Manager(暂弃...)

注意:此插件经边翻译边试用后,发现与最新版的wordpress或已安装的插件有些不兼容,且需要修改代码来显示广告.修改了代码,我也没有看见效果.故暂弃之,详见下篇博文...

现在越来越多的人喜欢写博客(blog)赚钱,而wordpress无疑是很热门的.且它的插件(plugin)很多,如何选择是一个问题.本文将介绍一个插件AdSense Manager,用它来帮你做AdSense Manager的发布.

Getting Started with AdSense Manager 3.x

AdSense Manager 3.x的入门

AdSense Manager 3.x is the latest update to the popular WordPress ad management plugin.

More than a normal gradual update, version 3.x represents an almost complete rewrite to support a number of changes

in the Google AdSense service and the recent explosion in new blog-targeted ad networks.

As of writing, AdSense Manager 3.x now also supports Adpinion, AdRoll, AdBrite,Commission Junction, HTML Code, ShoppingAds and WidgetBucks.




AdSense Manager 3.x是广受欢迎的WordPress广告管理插件的最新更新。比普通的逐步更新,3.x版几乎完全重写,以支持在谷歌AdSense服务的变化和最近的爆炸新博客定位的广告网络。在截稿时,目前的AdSense Manager 3.x的也支持 Adpinion, AdRoll, AdBrite, Commission Junction, HTML Code, ShoppingAds 和 WidgetBucks。


The instructions below will guide you through the first steps of configuring Adsense Manager 3.x. 
If you are upgrading from a previous version of AdSense Manager,
you can skip these instructions.


下面的说明将指导您完成配置广告管理3.x中的第一个步骤
如果您正在从以前版本的AdSense Manager升级,
你可以跳过这些步骤。





Getting Ready
Before you can do anything else, you will first need to set yourself up with an AdSense account and install the AdSense Manager plugin.

 


准备工作



你可以做任何事情之前,你首先需要为自己设定了一个AdSense帐户,并安装了AdSense Manager插件。


1.

You can also use Adpinion, AdRoll, AdBrite, Commission Junction, HTML Code, ShoppingAds andWidgetBucks.

Once you’ve created your account your provider will give you some “Ad Code” to paste into your site.

Keep this window open for later: you’ll need to be able to paste this code into AdSense Manager once installed.


 


您还可以使用Adpinion, AdRoll, AdBrite, Commission Junction, HTML Code, ShoppingAds 和 WidgetBucks。一旦你创建了自己的帐户提供商会给你一些“广告代码”,将其粘贴到您的网站。保持这个窗口打开,你也需要可以将此代码粘贴到AdSense Manager中。


2.

Download AdSense Manager v3.x



下载并安装AdSense Manage v3.x

Take the downloaded file, unzip and copy the /adsense-manager/ directory into your WordPress plugins directory at /wp-content/plugins/.
After this is done you should have a folder at /wp-content/plugins/adsense-manager/ containing all the plugin’s files.
To activate the plugin, simply go to your WordPress dashboard » Plugins and click ‘Activate’.

把下载的文件,解压并拷贝到到你的WordPress插件目录的根目录/wp-content/plugins/adsense-manager/目录。要激活插件,只需到你的WordPress仪表板»插件,然后单击“启动”。


 

Upgrading for Previous Versions



从上一版本升级

If you’re upgrading from a previous 1.x / 2.x version of AdSense Manager simply copy the /adsense-manager/ directory from the downloaded .zip file into /wp-content/plugins/. 
This will replace the previous version with the new files.
AdSense Manager will handle the upgrade of settings/etc.
automatically when you next access the WordPress dashboard and show a notice if it succeeds.

如果你从以前的AdSense Manager的1.x中/2.x的版本升级, 只需从下载的zip文件根目录/adsense-manager/解压到/wp-content/plugins/目录。这将取代以前的版本的文件。 AdSense的管理中心将从settings/etc处理升级。如果它成功,  当你下一次访问WordPress的仪表盘,会自动显示一个通知。

Setting Up Adsense Manager



设置广告管理

Previously you had to input your Google AdSense ID manually when setting up AdSense Manager, 
but this is now updated automatically when you import code.
If you go to Options » Adsense Manager, you will find the following instructions for importing your first Ad Unit:


在此之前,你必须输入你的谷歌的AdSense ID时,手动设置AdSense Manager,但现在更新时,会自动导入代码。如果你到 设置»Adsense Manager,你会发现下面的说明输入您的第一个广告单元:

1.Create a new ad unit using your network’s ad online management system. 
2.Copy the ad code generated (Edit » Copy, from within your browser)
3.Go to Manage » Ad Units and paste the code into the box
4.Click Import to New Ad Unit»




1.创建一个新的广告单元,使用网络的在线广告管理系统。方法:文章 > AdUnits
2.复制生成的广告代码(“编辑”>“复制”,从您的浏览器内)
3.转到管理»广告单元,将代码粘贴到框
4.单击“导入到新的广告单元»


image

Below here are the settings for Be Nice! a method for supporting development by donating a %
of your Ad space and Alternate Ads to raise funds for AdSense Manager.
All ads are hand-selected and family friendly, and the income generated in this way allows me to
dedicate time that would be otherwise spent on a bar job.

下面,这里的设置开发者说是很好!捐赠%的广告空间和替代广告的AdSense Manager筹集资金,支持发展的方法。所有广告都是手工挑选的家庭友好的,可以让我以这种方式产生的收入,否则开发者没有钱,只好将时间用在酒吧工作赚钱。

Just enter a % value indicating the proportion of ads you wish to use to support us.
If you enter 0 only your own ads will be shown (no hard feelings but please consider donating instead).



只要输入%值表示你想使用的广告来支持我们的比例。如果输入0只有自己的广告将被显示(没有硬逼您的感觉,但请考虑捐赠代替)。

Creating Ads



建立广告

All creating and editing of Ad Units is done on the Manage » Ad Units page in your WordPress Dashboard.



所有创建和编辑页面中的广告单位的广告单元都在你的WordPress中进行 管理»仪表板 。

(我怎么是 文章 > AdUnit.)

The simplest way to ad new Ad Units to AdSense Manager is by importing Ad Code from your network. 
To do this simply go to your ad network’s management page, choose your ad settings, and copy the code that is generated.
This can be pasted directly into the box at the bottom-left of the Manage » Ad Unit page.




最简单的方法是通过导入广告代码从您的网络广告新广告单元的AdSense Manager。要做到这一点只需转到您的广告网络的管理页面,选择您的广告设置,并复制生成的代码。这可以直接在框中粘贴在左下角的管理»广告单元页。


Manage » Ads

From here you have three options: Save as Code, Import to Defaults, Import to Ad Unit.

Import to Ad Unit

This will be the most commonly used method of importing ad code. By clicking on this option, AdSense Manager will attempt to determine which entwork your ad unit is from and import the settings to create a network-specific unit. This has a number of benefits, including access to network management links and the ability to change defaults for a given network as a group. For example, some networks may require specific HTML wrapped around them.

After clicking import you will see the imported settings: check values and set a name before saving.

Manage » Ads

Import to Defaults

This imports the ad code and uses the settings to set the defaults for the network. For many networks this will simply be the network ID, but some networks will store default dimensions etc. If you ever want to change the account ID associated with a network (e.g. if you change your Google AdSense account) this is the option you will want to use to update all your ads automatically.

Save as Code

If for some reason importing is not working, or you want to store the ad code as-is, you can choose to import to a plain Ad Code unit. This will not attempt to import, modify or do anything else to the code: it will be output precisely as imported (although, of course, you can edit it later).

AdSense Classic

The simplest way to create Ads in AdSense Manager is by importing Ad Code generated from your ad network (e.g. Google, or Adroll) described above. However, the plugin still supports old-style AdSense Ads if you want to create them from scratch. Simply click on the buttons for ‘AdSense Classic’ in the bottom-right of Manage » Ad Units, and then follow the instructions from AdSense Manager v2.x.

Network Defaults

As mentioned, each network in AdSense Manager has it’s own set of defaults (including the Account ID) that are used as the basis for all adverts on that network. For example you can optionally choose to wrap all ads on a network in specific HTML markup, or you can change the display settings so all AdSense ads are shown on Posts only for example.

Default Settings for a network can be changed by clicking the “Network Defaults” button in the Manage » Ad Units list. As with editing an Ad Unit, when you’re finished click Save changes »

Ad Management

Once you have a few blocks listed, you can manage each block using the buttons provided on the right hand side of the Ad list. Details of each of these are given below:

Manage » Ads

Clicking Copy generates a copy of the selected Ad, which can then be reconfigured with any necessary changes. This is a good way of setting up a series of similar Ads for example. Note: You can also use Network Settings to configure multiple ads.

The DA (Default Ad) radio button sets which Ad unit will be used by default on your site. When adding AdSense Manager code to your site (or in your posts) you have the option to either specify an ad ID or to show the default. If you opt to show the default Ad on your site, you can then cycle through different Ad configurations by changing the selected Default Ad here.

Positioning Ads

Widgets

If you have the Sidebar Widgets plugin installed, each Ad block will appear on the Widgets configuration page to be positioned as you like. Each Ad will appear with the name of the block in the title.

Ad Widget

Drag onto your sidebar and position as you want.

Posts and Pages

You can include Ads into your Posts and Pages using the code below where “name” is the name of the Ad block you have created. New to v3.x is the addition of the shorthand <!--am#name--> format.

[ad#name]

You can also display the default Ad in your posts and pages by omitting #name. Doing this allows you to switch these Ads simply by switching the Default Ad in Manager » Ads.

[ad]

Of course any Ads in posts update automatically when colours or layouts are modified.

Code

You can include Ads in your non-Widget blog adding the code below in your WordPress templates. For example, a good place to add Ads might be sidebar.php.

<?php adsensem_ad('name'); ?>

Again you can display the Default ad by omitting the ‘name’ e.g.

<?php adsensem_ad(); ?>

If you want to avoid errors when you disable AdSense Manager you’ll want to add a function check to the above code. For example:

<?php if(function_exists('adsensem_ad')){ adsensem_ad("name"); } ?>

More

If you have any further questions on using Adsense Manager or have suggestions for modifications, simply leave a comment & I’ll get back to you.

5 comments:

moncler franpg said...

I really appreciate your help, it is very useful for me,you will get good grades! welcome to visit my site: http://www.frdoudounem0ncler.com/

watch cable tv on computer said...

|great post, I am interesting in it!|Thank you very much. This really helped me with my work. I

can i transfer music from ipod to computer said...

i read your article and loave it so much ,thank you so much. visit mine site http://www.howtogetapps.com/

Kasha said...

Quality articles is the secret to invite the visitors to pay a quick visit the website,
that's what this web page is providing.

prism casino no deposit bonus codes said...

It's a pity you don't have a donate button! I'd most certainly donate to this excellent blog! I guess for now i'll settle for
book-marking and adding your RSS feed to my Google account.
I look forward to brand new updates and will talk about
this blog with my Facebook group. Talk soon!