Solve the problem that Google Adsense ads only display English letters

Source: Internet
Author: User

I have mentioned before that Google Adsense is inserted into the page. CodeIn English. Although you chose Chinese when applying, it is annoying to persistently display "ads by Google.

This happened in the blog I used to build with gblog2.0. I was skeptical about encoding, but this is not the case in my Mt blog, the display is all Chinese advertisements (Note 1). In retrospect, it is estimated that most of them are due to the fact that I do not have a Chinese-based gblog, which leads to the display of too many English pages, and thus I was mistaken for an English webpage, of course, only English advertisements will be placed.

However, after consulting Google, I got a reply today and finally solved the problem very easily. The reply content is as follows:

For English advertisements on the website, please use a slightly modified version of the advertisement code to help us better serve Google advertisements on your webpage content.
Insert the following JavaScript code to the current AdSense.
In the advertisement code:

Google_language = 'zh-cn ';

Place this line of code on the previous line of the following characters:

// -->

Note that this advertisement code can only be used for webpages with simplified Chinese characters as the content subject. If you encounter any problems or have any questions when using this code, please let us know.

If you have any other questions or concerns, please feel free to reply to this email.

Google Adsense team

My test result proves that this method is OK and immediately becomes "advertisement provided by Google", but the content of the advertisement does not change immediately.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.