Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 6 of 6

Thread: Adsense and vBET

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    11

    Default Adsense and vBET

    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?

  2. #2
    Junior Member
    Join Date
    May 2011
    Posts
    11

    Default

    Ok I just read this post 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>
    Last edited by vbetter; 22-05-11 at 19:20.

  3. #3
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    hello,

    I found this information on adsence support forum:
    Code:
    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.

  4. #4
    Junior Member
    Join Date
    May 2011
    Posts
    11

    Default

    Sorry, I forgot to answer here. Some of the ads did start showing in other languages, I will monitor it, thanks!

  5. #5
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    thanks for confirmation - solved

  6. #6
    MichaƂ Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •