>--> Google AdSense の非同期広告コードを Blogger ブログに貼り付けるときに注意すること | クリボウの Blogger Tips

クリボウの Blogger Tips

Google Blogger の使い方、カスタマイズ方法、各種ツールなど、
Blogger 関連の役立つ情報を紹介しています。

> | | > Google AdSense の非同期広告コードを Blogger ブログに貼り付けるときに注意すること

Google AdSense の非同期広告コードを Blogger ブログに貼り付けるときに注意すること

Google AdSense の非同期広告コード

Google AdSense の広告コードで、「非同期」タイプを選ぶことができるようになりました。

Google AdSense の非同期広告コード(ベータ版)


これまでの「同期」タイプと比べて、ページの読み込み時間が改善されるということです。

非同期広告コードとは、完全非同期バージョンの AdSense 用広告コードのことで、ウェブページの読み込み時間を改善し、サイトを訪れたユーザーの利便性を高めます。非同期コードには、ウェブページの他の部分の読み込みを妨げないというメリットがあるため、広告の読み込みに問題があるページでも、コンテンツの読み込みは問題なくできるようになります。モバイル ユーザーの場合は特に、ウェブページの読み込み時間の短縮を実感できるでしょう。

これまでは AdSense 広告が読み込まれるまで残りのページ要素が表示されなかったんですが、このコードを使うと AdSense 広告が読み込まれようと読み込まれまいと、ページの残りをどんどん表示していくことができるというわけです。

このコードの取得は、AdSense サイト から「広告の設定」タブを押し、各広告の「コードを取得」リンクをクリック、「コードタイプ」のプルダウンから「非同期」を選ぶだけ。表示される「広告コード」をコピーして好きな場所に貼り付ければ、非同期バージョンの広告を簡単に設置することができます。


Blogger テンプレートに貼り付ける場合の注意点

この非同期広告コード、Blogger の投稿本文や HTML/JavaScritp ガジェットに貼り付ける分には問題がないんですが、テンプレートに直接貼り付ける場合には注意が必要です。実際に AdSense の非同期コードを Blogger のテンプレートに貼り付けると、このような警告が出ました。

XML の解析中にエラーが発生しました。行 ***、列 ***: Attribute name "async" associated with an element type "script" must be followed by the '=' charactor.

script 要素の async 属性に = がついてないよ」という内容です。新しいコードが Blogger のテンプレートエディタの XHTML 構文解析に引っかかっているんですが、これは asyncasync='async' とすることで回避することができます。

このことを知らせてくれたのが鷹野 凌さん。いつもありがとうございます!


AdSense も Blogger も同じ Google なんだから、もうちょっと融通をきかせてくれてもよさそうなものですが…。ともかく、テンプレートに貼り付けている AdSense コードを非同期に書き換えたい!という時には、ご注意ください。


スポンサードリンク:
お願い:
「この記事役に立った!」と思ったら、ぜひフィード登録をお願いします。 

Comments:46

  1. Judi Gratis via Bandar QQ Kyu-Kyu Yuzhno-Sakhalinsk Region Capital Situs www.pokerrusia.net Melalui BPD Kalsel Indonesia Kode Bank 122.

    ReplyDelete
  2. Thank you for posting such a great article! I found your website perfect for my needs. It contains wonderful and helpful posts. Keep up the good work!. Thank you for this wonderful article! admission essay writing service

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Losing sleep over unfinished essays but can't afford the assistance of costly assignment providers? Wondering whether the online service providers will do my assignment in australia? Facing a deadline for finishing the essay? Well, your anxieties end here. We have with us a team of essay writing services and assignment help like java assignment help, business assignment help for australia students who can solve all your writing issues so that you score high grades in your essay assignment.

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Thesis writing help online in Uk Proofreading and editing service also available for the user, world best Assignment Help online service in Markit Place in Uk for first user.

    ReplyDelete
  8. طراح سایت وردپرس ، طراحی سایت وردپرس ، طراح وردپرس ، طراحی سایت با وردپرس ، پشتیبانی سایت وردپرس ، طراحی سایت شخصی ، طراحی سایت شرکتی ، طراحی سایت فروشگاهی ، پشتیبانی سایت وردپرس ، سئو سایت وردپرس ، سئو تخصصی وردپرس ، پشتیبان سایت وردپرس ، آموزش ساخت وب سايت ، هزینه طراحی سایت فروشگاهی ، طراحي سايت فروشگاه اينترنتي ، طراحی آنلاین سایت ، طراحي سايت فروشگاهي ، قیمت طراحی سایت فروشگاه اینترنتی ، قیمت ساخت سایت ، طراحی وبسایت ارزان ، طراحی قالب وب سایت ، هزينه طراحي سايت ، آموزش حرفه ای طراحی سایت ، شرکتهای طراحی سایت ، اصول طراحی وب سایت ، طراحی سایت آموزش ، سفارش طراحی وب سایت ، طراحی وب سایت فروشگاه اینترنتی ، چگونگی ساخت وب سایت ، بهینه سازی موتور جستجو ، شرکت های طراحی وب سایت ، مراحل ساخت سایت ، آموزش طراحي وب سايت ، چگونه یک سایت طراحی کنیم ، نرم افزار ساخت سایت ، نحوه ساخت وب سایت ، هزینه طراحی وب سایت ، نمونه کارهای طراحی سایت ، آموزش بهینه سازی سایت ، طراحی سایت چیست ، روش طراحی سایت ، آموزش تصویری طراحی سایت ، طراحی سایت داینامیک ، شرکت های طراحی سایت ، نرم افزار فروشگاه ساز ، نمونه سایت های طراحی شده

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. I have read your article; it is very instructive and valuable to me. I admire the valuable information you offer in your articles. Thanks for posting it.
    vape cartilage packaging

    ReplyDelete
  11. temotv to watch your favorite movies for free

    ReplyDelete
  12. خرید اقساط موبایل از فروشگاه اینترنتی تی جی پلاس

    ReplyDelete
  13. Accomplishing the Excellence of Quality Assignment Writing, My Assignment Help has become a solid rival in giving best assignment help to students in Perth. My Assignment Help has gained notoriety for its convenient work and solid assistance. This is the explanation students from the greater part of the nations look for Perth Assignment Help to achieve their prerequisites for assignment composing. Our collaboration difficult to fulfill students measures for certified assignment composing. Students from various Universities like; Curtin University, Aquinas University, Murdoch University and so on go to our organization for best Perth assignment Writers. We manage all courses and points in educational plan of Perth college.
    more- assignment help uk
    online assignment help

    ReplyDelete
  14. http://blog.webonastick.com/2011/07/why-tarc-has-been-forced-to-cut-routes.html?showComment=1611181880066#c9176073971495920100

    ReplyDelete
  15. طراحی و سئو انواع سایت در کرج با بهترین قیمت و بالاترین کیفیت با گروه وبری | همین امروز شروع کنید

    طراحی سایت کرج

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
  17. Really Appreciated your effort, other side if you need Custom Boxes Wholesale you can contact us

    ReplyDelete
  18. Your blog is more informative and attractive thanks for sharing if you need this Blank cigarette boxes you visit Blank Cigarette Boxes and order your own style.

    ReplyDelete
  19. I like this article.I was searching over search engines and found your blog and its really helps thank you so much
    کتاب آموزش و پرورش تطبیقی دکتر احمد آقازاده pdf
    http://www.codetools.ir/p/comparative-education

    ReplyDelete
  20. A well defines and well-organized information and I think might be helpful for viewers.
    Here I want to show you my business which is all about custom printed boxes. We are providing top-quality boxes such as Bath Bomb Boxes. Bath Bomb Packaging is one of the sensitive products and takes more care. We are providing Bath Bomb Boxes at wholesale discounted rates with fast and free shipping.
    Bath Bomb Packaging
    Bath Bomb Boxes

    ReplyDelete
  21. نمادین سامانه تبلیغات در اینستاگرام نمادین

    ReplyDelete
  22. ما در لوله باز غرب تهران با بهترین روش های روز و متخصصین با تجربه چندین ساله و مدیریتی قدرتمند برای ارایه خدمات به شما و جلب رضایت شما تلاش میکنیم
    https://barchasb.net/tehran/east-area/
    https://barchasb.net/tehran/west-area/
    https://barchasb.net/tehran/vanak/
    https://barchasb.net/tehran/seyyed-khandan/
    https://barchasb.net/tehran/shariati/

    ReplyDelete
  23. Social media is a big part of our lives. Many businesses use this network to advertise and sell their products, which is called social media marketing. Instagram is one of these social networks, but in order to know the principles of Instagram SMM well, follow us to the end of the article

    https://bestsmmpanel.shop/

    ReplyDelete
  24. خوش قیمت ترین لوله باز کنی تهران لوله باز کنی پونک پیشرو در خدمت رسانی

    ReplyDelete
  25. از آنجایی که بسیاری از دانشجویان در رابطه با تحصیل در ترکیه بدون آزمون سوال می پرسند، تصمیم گرفتیم در این مقاله از موسسه حقوقی مهاجرتی آینده سازان مهر به بررسی شرایط تحصیل در ترکیه بدون آزمون بپردازیم.

    تحصیل در ترکیه

    تحصیل در ترکیه

    ReplyDelete


  26. همانطور که می دانید هر باطری ای نیاز به شارژ دارد. باتری خودرو نیز از این قاعده مستثنی نیست. اما آیا می دانید نحوه شارژ باتری خودرو چگونه است؟ در واقع شارژ باتری ماشین شما هنگامی که آن را روشن می کنید به صورت اتوماتیک انجام می شود.
    خودروبر در کرمان
    یدک کش در کرمان

    ReplyDelete
  27. Nice blog! Such an amazing and helpful post this is. I really really love
    it. It’s so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also.

    sithfab202

    ReplyDelete
  28. Thanks for sharing the blog it’s very useful and informative. You also explained the topic very well.

    ict50220

    ReplyDelete
  29. مدیوم الگوریتم اینستاگرام

    ReplyDelete
  30. Thanks for sharing the blog it’s very useful and informative. You also explained the topic very well.cookery assignment help

    ReplyDelete
  31. It's very good post which I really enjoyed reading
    سود مایع

    ReplyDelete

Comments on Google+:

© 2005-2014 Kuribo. Powered by Blogger.