PDA

View Full Version : Solved Adsense and vBET



vbetter
22-05-11, 16:58
I have adsense installed in Template: ad_navbar_below

My question is: When I click on a different flag for translation should my adsense ads be changing language too?

I checked by clicking on different flags and the forum is translated of course, but my ads stay the same, in English (my main forum language)

How is this suppose to work?

vbetter
22-05-11, 19:14
Ok I just read this pos (http://www.vbenterprisetranslator.com/forum/vbet4-general-discussions/634-advertisment-different-languages.html)t and tried this statement, but the ads still seem to be in all English.. Any ideas?

<if condition="$_REQUEST['language']">

<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxx";
/* 300x250, created 5/24/10 */
google_ad_slot = "xxxxxxxxxxxx";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<else />

<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxx";
/* 300x250, created 5/24/10 - */
google_ad_slot = "xxxxxxxxxxx";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</if>

kamilkurczak
23-05-11, 20:12
hello,

I found this information on adsence support forum:

You can simply place your ad code on a page in one of our supported languages. Our crawlers will recognise the language and serve targeted ads in the correct language.

the if statement in your code looks good - but the results will be avaliable on translated pages now (after if) and on not translated page (after else).
As I see - you have the same code in this two statements.

Google should translate adds according your site language automaticly, so please check your adsence settings.

vbetter
26-05-11, 02:41
Sorry, I forgot to answer here. Some of the ads did start showing in other languages, I will monitor it, thanks!

kamilkurczak
26-05-11, 16:53
thanks for confirmation - solved:)

vBET
26-05-11, 18:28
For AdSense you have to do nothing - it will react itself. Just give AdSense some more time for it and it all should be done automatically. In example here it is used AdSense normally and it shows advertisements according to actual language: simple-NLP.pl darmowe forum o NLP - forum o NLP (http://www.forum.simple-nlp.pl/)

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translations by vB Enterprise Translator 4.10.1