如何在你的CSDN 博客中添加广告代码(网赚)

货到付款APPLE苹果手机IPHONE完美破解
1600.0元 

转载请注明:http://blog.csdn.net/rommal7090

如果你的博客访问量很大,你可以通过如下方式在博客上放置广告而通过博客赚钱,这篇文章教你怎么在你的博客上放置广告代码:

<script type="text/javascript"><!-- google_ad_client = "pub-2616259956670917"; /* CSDN博客文章(加广告代码)右侧 */ google_ad_slot = "7943476622"; google_ad_width = 200; google_ad_height = 90; // --></script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>

 

首先你需要申请Adsense帐号,到 https://www.google.com/adsense 注册。如果以前注册过Google AdWords(Google广告词——对关键字进行右侧付费推广)那么就能使用您的Google AdWords密码登录,开通Google AdSense了。

申请完Adsense帐号后即可获取广告代码:Adsense设置->获取广告,设置完后会获得广告代码。

你可以通过两种方式来将Google广告添加进CSDN Blog中,一种是添加进公告中,另一种则是添加到你发布的文章中。

第一种方式直接在博客的后台管理->配置->公告中添加进Adsense代码即可,效果参看我的博客左侧,大家一定注意广告的格式,不要太宽,否则会改变网页的外观。

第二种就是添加进你发布的文章中,首先在你写好的文章中点击“HTML源代码”注意CSDN中写文章的高级模式中才有这项,然后将Adsense代码添加进合适的位置,像我的广告代码是在右侧,则代码是:

<div style="float: right; margin-left: 2px">
<script type="text/javascript"><!--
google_ad_client = "pub-2616259956670917";
/* CSDN博客文章(加广告代码)右侧 */
google_ad_slot = "7943476622";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</div>

 

OK,一切搞定,但是现在alimama貌似不支持博客发广告了,但是有个淘宝客推广,像我博客左侧的公告所示

你可能感兴趣的:(apple,Google,公告,iPhone,float,破解)