Cách chèn mã quảng cáo Google Adsense trên Blogspot | New funny

Bạn không thể chèn được mã quảng cáo của Google Adsense trực tiếp trên template blogspot, nguyên nhân là gì? Bạn cần biết nếu đặt trực tiếp code của GA lên trên template thì sẽ không hiện ra bởi vì Javascript code không hữu hiệu trên XML.
convert-code-google-adsense
Bạn cần phải convert code quảng cáo mặc định của GA sang dạng sau đây, ví dụ nhé:

Code mặc định của Google:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Banner 728x90 -->
<ins class="adsbygoogle"
     style="display:inline-block;width:728px;height:90px"
     data-ad-client="ca-pub-5937703704702563"
     data-ad-slot="8937856732"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Sau khi convert:
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- Banner 728x90 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:inline-block;width:728px;height:90px&quot;
     data-ad-client=&quot;ca-pub-5937703704702563&quot;
     data-ad-slot=&quot;8937856732&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
Ở trên mạng có rất nhiều trang convert, bạn chỉ cần nhấp từ khòa "Google Adsense Converter - Blogger" là ra 1 đống thôi, ở đây mình giới thiệu các bạn trang này, nhanh gọn lẹ giao diện đơn giản luôn: http://google-adsense-converter.blogspot.com/
Sau khi convert xong, bạn lấy phần code đã convert add vào template là sẽ hiện quảng cáo thôi
Còn đối với add widget HTML trên Blogger thì bạn có thể add code mặc định của Google Adsense mà không cần phải convert!

Chúc thành công!

Đăng nhận xét

Author Name

Biểu mẫu liên hệ

Tên

Email *

Thông báo *

Được tạo bởi Blogger.