Move Blogger Inline Ads Between Posts to Inside Within Post Position动议的Blogger内插广告之间的员额内后的立场
The new Blogger widget based template that built on XML specification has a feature to新的Blogger的窗口小部件为基础的模板,建立在XML规格有一个功能,以 add Google AdSense ad unit inline between posts添加Google AdSense广告单元之间的内插职位 . 。 These inline ads appear between 2 blog posts on homepage, archive and category or label pages, or after the blog content when the single post is viewed individually.这些内置的广告出现在2月之间的博客帖子上的网页,归档和分类或标签的页面,或后,博客内容时,单一的工作地点被认为是个别。 However, the placement is kind of awkward and low performing in term of click through rate (CTR).不过,位置是种尴尬和低表演在任期内通过点击率( CTR ) 。
A lot of bloggers have很多博客有 put Google AdSense ad code inside the post把Google AdSense广告代码内后 or或 wrap the ad unit around blog post包装广告单元周围的博客帖子 by editing template’s HTML to insert通过修改模板的HTML插入 modified ad code修改的广告代码 manually.手动。 Some users may feel uneasy on modifying the AdSense ad code as it may violates AdSense TOS.有些使用者可能会感到不安,关于修改AdSense广告代码,因为它可能违反了AdSense的服务条款。 Anyway, there is another workaround to put AdSense ads in Blogger posts, by using trick to move or duplicate built-in inline ads between posts block to inside the post section.无论如何,有另一种可行方案付诸表决, AdSense广告在Blogger的职位,使用的伎俩动议或重复建设,在内置广告之间的职位座内后一节。
- To use the trick to move around AdSense ad unit added by Ads Between Posts,使用的伎俩走动AdSense广告单元补充,由广告之间的职位, enable and configure inline ads in Blogger using this guide启用和配置内插广告在Blogger使用本指南 . 。 Note that you must login to your AdSense account from Blogger to establish access authentication.请注意,您必须登录到您的AdSense帐户从Blogger建立接入认证。 If you don’t have AdSense account yet, you can click on Sing Up button to register for one.如果你没有AdSense帐户,但您可以按一下就唱了按钮进行注册为1 。
- To display this ad within blog post also, click on Template tab, and then click on Edit HTML sub-tab link to open Blogger HTML code template editor to edit the contents of your template.显示此广告的博客帖子也,点击模板标签,然后点击编辑HTML子标签链接到开放的Blogger的HTML代码模板编辑器编辑的内容,您的范本。
- Backup a copy of your template by click on Download Full Template link, in case it’s is needed be uploaded to Blogger server to recover the template in the event of mistake or corruption.备份的副本,您的范本,由按一下下载完整模板链接,在案件的,是需要被上传到Blogger服务器,以收回模板,在发生错误或腐败。
- Click to tick the Expand Widget Templates checkbox.单击以剔扩展窗口小部件模板复选框。
- Find the line with the following text:找到符合下列文字:
<data:post.body/><data:post.body/>And paste the following block of text before (for ad position before content) or after (for ad position after content) the line above:并粘贴以下文字区块之前, (广告位置之前的内容)或后(广告位置后的内容)线以上:
<b:if cond='data:post.includeAd'><b:if cond='data:post.includead'>
<data:adEnd/><data:adend/>
<data:adCode/><data:adcode/>
<data:adStart/><data:adstart/>
</b:if>< /乙:如果>Note that maximum of 3 AdSense for Contents (non Link Unit type) ads are allowed on each page.请注意,最高3 AdSense的内容(非链接单元型)的广告,让每一页上。
- If you want the AdSense ads inside blog post to如果您想要AdSense广告内的博客帖子,以 appear only when individual blog post is visited似乎只有当个人博客帖子是访问 , and not on homepage, category or archive pages, wrap the following lines to before and after code added above ,而不是网页,类别或存档页,总结以下线之前和之后的代码补充,上述
<b:if cond='data:blog.pageType == "item"'><b:if cond='data:blog.pagetype == "item"'>
</b:if>< /乙:如果>The whole block added will look like below:整个座补充,看起来就像如下:
<b:if cond='data:blog.pageType == "item"'><b:if cond='data:blog.pagetype == "item"'>
<b:if cond='data:post.includeAd'><b:if cond='data:post.includead'>
<data:adEnd/><data:adend/>
<data:adCode/><data:adcode/>
<data:adStart/><data:adstart/>
</b:if>< /乙:如果>
</b:if>< /乙:如果> - After enabling Show Ads Between Posts in step 1, you will notice that AdSense ads will be shown between posts on all multiple blog posts page, and also after the article on individual single post view.之后, 显示广告 ,使岗位之间在第1步,您会发现AdSense广告将显示之间的职位,对所有的博客帖子多页,也后,文章对个别单一的工作地点的看法。 If you don’t want these ads to appear, ie to move built-in inline ads to within post, the locate the following block of text which is same with the one we added above:如果您不想让这些广告出现,即动议内置在内置广告,以符合后,找到下面的文字区块,这是相同的,与我们一说,上述:
<b:if cond='data:post.includeAd'><b:if cond='data:post.includead'>
<data:adEnd/><data:adend/>
<data:adCode/><data:adcode/>
<data:adStart/><data:adstart/>
</b:if>< /乙:如果>And delete these code from template.并删除这些代码从模板。 Note that we have just added a same block of code from step above, so do not remove the newly added code, but the existing code in the template.注意,我们刚才说,同一个代码块从上述步骤,所以不要删除新增的代码,但现有的代码模板。
If you still want the AdSense ad unit to appear between posts when visitors view your blog homepage, label or category pages or archive pages, wrap the code above on top and bottom with the following 2 lines:如果您仍然希望AdSense广告的单位出现岗位之间当访问者查看您的博客网页,标签或分类网页或存档的页面,总结上面的代码对顶部和底部具有下列二行:
<b:if cond='data:blog.pageType != "item"'><b:if cond='data:blog.pagetype != "item"'>
</b:if>< /乙:如果>so that it looks like the following:所以,它看起来像以下内容:
<b:if cond='data:blog.pageType != "item"'><b:if cond='data:blog.pagetype != "item"'>
<b:if cond='data:post.includeAd'><b:if cond='data:post.includead'>
<data:adEnd/><data:adend/>
<data:adCode/><data:adcode/>
<data:adStart/><data:adstart/>
</b:if>< /乙:如果>
</b:if>< /乙:如果>Note that the two lines should be added to the existing block of code in template, not the block which we added in step above.请注意,两行应该被添加到现有的代码块在模板,而不是块,我们说,在上述步骤。
- Click on SAVE TEMPLATE button to save the new hacked template.按一下保存模板按钮来保存新砍死的范本。 Now the ad should be appear inside blog post without actually modify ad code.现在的广告应该出现内的博客帖子,实际上不修改广告代码。 You can also use the same hack theory above to您也可以使用相同的哈克理论以上 place the ads on different location地方的广告不同的位置 . 。
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 我的数字生活论坛 . 。
Related Articles相关文章
- How to Wrap AdSense Ads Around and Inline Beside Blogger Post Content如何总结AdSense广告约和内置旁边的Blogger帖子内容
- Place AdSense Ad Unit In Various Positions Inside Within Blogger Post Contents地方AdSense广告单元在各个据点内的Blogger帖子内容
- Add and Insert to Put Google AdSense Ads Units Between Blog Posts in Blogger.com新增和插入把Google AdSense广告单位之间的博客帖子在blogger.com
- Retrieve and Get WordPress Post ID Outside the Loop as PHP Variable检索和获取的WordPress张贴ID以外的回路作为PHP变量
- How to Display Elements (Ads) Only On (Or Only Not At) Individual Single Post Item View如何显示元素(广告) ,只(或只有不)个别单一邮政项目的看法
- Google AdSense Policy Update Disallows Image Besides Ads Blocks Google AdSense的政策不允许更新的形象,除了广告区块
- Migrate and Switch to Blogger Beta: When’s Your Turn?迁移并切换到Blogger试用版:当你打开?
- New Blogger with Category (Labels) and Instant Publishing Features plus New Templates新的Blogger与类别(标签)和即时发布功能,以及新范本
- Redirect Blogger RSS Feed to FeedBurner for Detailed Statistics and Monetize Ads重定向Blogger的RSS馈送到feedburner为详细的统计资料和财源的广告
- Blogger (at BlogSpot) with Category Labels and Drag-and-Drop Template Editing Out of Beta的Blogger ( BlogSpot的)类的标签和拖放模板编辑完成测试

































December 4th, 2007 02:58 2007年12月4日2时58分
Very interesting post and a very clean way to modify the location of Adsense ads.非常有趣的员额和一个非常清洁的方式来修改的位置AdSense广告。 I applied it to my blog and it works like a charm.我套用到我的博客,它就像一个工程的魅力。
Thanks.谢谢。
February 5th, 2008 12:03 2008年2月5日12时03分
they had I didn’t and saw and climb in a hollow more than came by themselves他们,我没有看到和爬在一个空心多来自己
June 13th, 2008 01:04 2008年6月13日1时04分
[...] expand widget and look for the codes where you wanted to put the codes.. [ … … ]扩展窗口小部件,并寻找守则那里你想提出的守则.. <dataost.body/> Move Blogger Inline Ads Between Posts to Inside Within Post Position <dataost.body/>动议的Blogger内插广告之间的员额内后的立场
August 9th, 2008 03:27 2008年8月9日3时27分
cant locate post body tag in my template.. cannot找到后身体标记在我的模板..