>--> 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:35


  1. نقل اثاث من الرياض الى الكويت 0507716412

    شركة شحن عفش من الرياض الى الكويت

    نقل اثاث من الرياض الى الاردن 0507716412
    شركة شحن عفش من الرياض الى الاردن


    شركة نقل اثاث من الرياض الى الدمام
    شركة نقل عفش من الرياض الى الدمام


    نقل اثاث من الرياض الى الامارات 0507716412

    شركة شحن عفش من الرياض الى الامارات

    نقل اثاث بالمدينة المنورة


    نقل عفش في المدينة المنورة

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

    ReplyDelete
  3. Those who are searching over internet 'nursing assignment help' can contact with us now. We are the best assignment writing service provider in Australia. Our Academic assignment writers available 24*7 hours for the students, if you really want to need assignment help online at cheapest price meet our Academic Experts at sample assignment and get high distinction grades with top quality assignment. We are here to help you with 100% plagiarism free assignment Help Adelaide, Australia. We offers lowest price on all kind of essay, case study assignment help, report writing assignment help, and more from 4000+ Ph.D. Experts

    ReplyDelete
  4. I find this blog quite informative and would recommend it to everybody because I too agree with the fact that students are getting burdened with complex programming concepts which many students fears of. My Assignment Services drives their hesitation away by providing efficient quality Java assignment help to students. We aim at providing high quality academic solutions by the means of our experts who carefully draft 100% original assignments on the time. We also deliver Python assignment help to students by consistently following the requirements and marking rubric. We have more than 2000 professional experts to assist you in all types of academic related worries. Our Minitab assignment help experts ensure you get an experience of the lifetime by providing 24x7 assistance as per your convenience. You just need to follow the link to our online order form where you can give your requirements and our Java assignment help experts will get in touch with you in processing your order further. Want reliable assignment help? You can always trust My Assignment Services.

    ReplyDelete
  5. 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
  6. Your article is very informative for me. Contact us if you want to online assignment help. AbAssignmentHelp delivers unique and quality content that will be completely related to your assignment.

    ReplyDelete
  7. Suitcase boxes wholesale made by custom boxes wholesale are leading boxes for a suitcase with different options for sizes, shapes, designing and extra embellishing so that they make very good packaging products.

    ReplyDelete
  8. Get Custom boxes at wholesale rate for custom packaging. And get free shipping all over the world. iCustomboxes help you to get in touch with your Customer inter reaction.
    Cardboard Cigarette boxes
    Custom pre-roll boxes
    lipstick boxes

    ReplyDelete
  9. BoxesMe is a top quality packaging brand in the market which has been providing packaging to a number of brands and serving them to sale their products in the market. There are following some other related product packaging boxes.
    Blank Cigarette Boxes
    Kraft Paper Bags
    Brown Paper Bags
    Custom Paper Bags
    Custom Printed Paper Bags

    ReplyDelete
  10. Do you have an insight into the qualities took out for in a company offering excellent Article Review Papers Services? Asking for Article Review Writing Service is noble because it enhances your Review Article Writing Service performance.

    ReplyDelete
  11. 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
  12. Cigarette boxes are special packaging for cigarettes which are different from the regular cigarettes due to their ingredients and core stuff.
    Paper Cigarette Boxes
    custom cigarette boxes
    Blank Cigarette Boxes
    Bath bomb packaging

    ReplyDelete
  13. 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
  14. Thanks for your valuable information over the blog and information about matlab, We provide information regarding
    Advantages of MATLAB Programming Homework Help

    The fundamental element of MATLAB is the features of the matrix and the other operations such as cross product, dot product, determinants and inverse matrices can be performed.
    Operations on grouping or arrays can also be performed using the matrix laboratories. This proves to be one great asset for numeric programming.
    For More Info Click Here :
    Matlab Assignment Help

    We offer our service all over the USA. From Washington , Newyork to Texas, you will get our Java Programming Assignment Homework help
    everywhere. And you won’t have to spend all your pocket money for our service.

    Nursing Assignment Help USA

    Perdisco Assignment Help

    Statistics Assignment Help

    Finance Assignment Help

    ReplyDelete
  15. What a nice blog! I have enjoyed reading through the article.
    Thanks for your nice informative blog regarding the topic
    My Assignment Help is also share kind of information which is
    is the No. 1 online assignment help in the US, UK and Australia. Now you
    can hire our experts to secure A + grade. We are the most prestigious
    assignment help services in the USA offering expert assistance in various
    disciplines like java, python, c++, C# from 2000+ experts in the US. The continued growth of treat
    assignment help in the industry is a clear indication of our simplicity in
    all areas.
    Need online assignment help, hire our experts and Feel free to get in touch with us at any time of the day or night if you require assistance.
    Assignment Help
    Click Here for more information : ☞

    Java Assignment Help

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

    ReplyDelete
  17. Their order is very huge and for them the option of custom boxes wholesale at bulk rates is best. So from the aspect of pricing, Custom Boxes Wholesale are strongly recommended.
    Paper Cigarette Boxes,
    Bath bomb packaging,

    ReplyDelete
  18. Thanks for sharing such great information, I highly appreciate your hard-working skills as the post you published have some great information which is quite beneficial for me, I hope you will post more like that in the future.
    Custom Packaging Boxes

    ReplyDelete

Comments on Google+:

© 2005-2014 Kuribo. Powered by Blogger.