9

Google Adsense广告只显示英文问题的解决办法

 2 years ago
source link: https://sites.google.com/site/ggjingying/home/google-adsense-zhuan-ti/google-adsense-guang-gao-zhi-xian-shi-ying-wen-wen-ti-de-jie-jue-ban-fa
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Google Adsense广告只显示英文问题的解决办法

以前提到过在页面中插入Google Adsense代码的时候,会发生广告显示成英文的情况。虽然你申请的时候是选择的中文,但却执着的显示“Ads by google”,令人非常懊恼。

这个情况发生在我以前用Gblog2.0搭建的Blog里,我曾疑心是编码的问题,但我现在这个MT的Blog里却不会这样,显示的都是中文广告,现在回想起来,估计多半是由于我没有汉化Gblog,导致页面显示太多英文,于是被误判成英文网页,当然只会显示英文了。

不过在咨询了Google之后,今天得到回复,终于可以很简单的解决这个问题了,回复的内容节录如下:

有关英文广告,为了助于我们更好地针对您网页内容投放Google广告,请您使用稍加修改的广告代码版本。

请将下面一行JavaScript代码插入到目前的AdSense广告代码中:

google_language='zh-CN';
将该行代码放在以下字符的上一行:
//-->

请注意,此广告代码只能用于内容主体为简体中文的网页。使用此代码时若遇到任何问题或有任何疑问,都请告知我们。

我试验的结果,证明这个方法是OK的,立刻变成了“Google提供的广告”,但广告的内容并没有立即发生变化。
You do not have permission to add comments.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK