精品伊人久久大香线蕉,开心久久婷婷综合中文字幕,杏田冲梨,人妻无码aⅴ不卡中文字幕

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
在你的網站中使用 AdSense廣告

下面介紹了如何使用Google的AdSense來為你的網站設置廣告。基本內容包括:

  • 創建一個AdSense賬號,你必須18歲以上,有一個Google賬號以及地址 
  • 你的網站必須已經被激活,并且你的網站內容必須符合AdSense政策 
  • 創建響應式布局廣告單元,可以在任何的設備上自動調整廣告大小
  • 確保payment的設置,坐等錢來 

創建一個包含廣告的簡單網頁

在排練預演中,你將要創建一個包含響應式廣告的簡單頁面,使用Google AdSense和Web Start Kit。

如果你不熟悉 Web Start Kit, 參考 Set Up Web Starter Kit 文檔

為了讓你的網站包含廣告且賺錢,你需要遵循以下步驟 

  1. 創建一個 AdSense賬號
  2. 創建廣告單元(ad units)
  3. 將你的廣告放置在頁面上 
  4. 設置你的payment

創建一個AdSense賬號

為了使用AdSense服務,你首先得創建一個AdSense賬號,創建賬號得遵從如下條件:

  • 你至少18歲以上且擁有一個已確認的谷歌賬號
  • 你有一個符合Google AdSense項目政策的網站,查看具體條約,請點擊:Google AdSense program policies
  • 你有一個和你的銀行賬戶相關聯的郵局地址亦或email地址,來收取你賺的錢 

創建廣告單元

一個廣告單元是一系列將展現在你網頁中的廣告,它們將通過你網頁中的js來實現。你有以下三種方式來控制你廣告單元的大?。?/p>

如果你的網站是響應式布局的網站,那么使用響應式布局的廣告。如果你不使用響應式布局廣告單元模式,那么你講書寫一大堆的代碼來讓廣告在不同設備上顯示不同的大小。

在Google AdSense 中Guide to ad sizes 中追蹤最好的廣告大小 top performing ad sizes 。

創建響應式布局廣告單元

  1. Visit the My ads tab.
  2. Click +New ad unit.
  3. Give your ad unit a unique name. This name appears in the ad code that’s pasted into your site, so be descriptive.
  4. Select Responsive from the Ad size drop-down.
  5. Select Text & display ads from the Ad type drop-down.
  6. Click Save and get code.
  7. In the Ad code box that appears, select the Smart sizing (recommended) option from the Mode drop-down. This is the recommended mode and doesn’t require you to make any changes to your ad code.

創建你的廣告單元之后,AdSense 提供了一個包含你的網站的代碼,相似如下:

<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><!-- Top ad in web starter kit sample --><ins class="adsbygoogle"  style="display:block"  data-ad-client="XX-XXX-XXXXXXXXXXXXXXXX"  data-ad-slot="XXXXXXXXXX"  data-ad-format="auto"></ins><script>  (adsbygoogle = window.adsbygoogle || []).push({});</script>

 

Note

  •  data-ad-client 和 data-ad-slot 對每一個你創建的廣告而言都是獨一無二的
  •  data-ad-format=auto 標簽在創建廣告代碼時允許響應式布局廣告單元中的廣告自適應設備大小

將廣告單元包含到你的網站中

為了將廣告包含到你的網站中,你需要在你的網頁中嵌入上面AdSense生成的代碼。

如果你想要生成多個廣告,你得為你的廣告重新使用廣告模式亦或創建多個廣告單元。

  1. 在app文件夾中打開index.html 
  2. 將你的代碼嵌入到main標簽中
  3. 保存文件,打開瀏覽器使用谷歌開發工具中的移動端設備視圖查看效果 

Remember

  • 將所有的廣告代碼放置在body標簽里面,否則,廣告將不會起作用! 

設置payment參數

想知道在AdSense中你如何獲利?

  1. Verify you’ve provided any required tax information in the payee profile.
  2. Confirm your payee name and address are correct.
  3. Select your form of payment on the Payment settings page.
  4. Enter your personal identification number (PIN). This PIN verifies the accuracy of your account information.
  5. Check to see if your balance reaches the payment threshold.

查看跟多消息: Intro to AdSense payments 

原文:https://developers.google.com/web/fundamentals/discovery-and-monetization/monetization-with-ads/include-ads?hl=en

本站僅提供存儲服務,所有內容均由用戶發布,如發現有害或侵權內容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
!!! 網頁檢測 AdBlock 的 6 種方法
Using Google Adsense Async Responsive Ad Units
讓你的博客賺錢——Google AdSense申請及使用指南
博客賺錢:博客如何賺錢怎樣賺錢
Google AdSense申請圖文全攻略
使用 Google Ad Manager 投放和管理博客廣告 - 經驗技巧 - 新客網
更多類似文章 >>
生活服務
分享 收藏 導長圖 關注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點擊這里聯系客服!

聯系客服

主站蜘蛛池模板: 额尔古纳市| 新巴尔虎右旗| 遂宁市| 武汉市| 云浮市| 中宁县| 通辽市| 海林市| 平罗县| 当雄县| 大新县| 台北市| 徐州市| 武义县| 常德市| 横山县| 滦南县| 锦州市| 蚌埠市| 阜南县| 鸡东县| 依兰县| 庐江县| 曲沃县| 甘南县| 新乐市| 阿鲁科尔沁旗| 安阳县| 通城县| 南江县| 重庆市| 内黄县| 建宁县| 日照市| 东丽区| 清原| 大田县| 博乐市| 海门市| 舒兰市| 章丘市|