*

mr-merk

  • **
  • 9 posts

*

MB Themes

Re: Google Adsense (Banner Search Top, Banner Search Bottom)
« Reply #1 on: April 16, 2017, 11:10:28 AM »
Try this.
In file:
oc-content/themes/veronika/search.php

This code:
Code: [Select]

    <div id="search-items" data-loading="<?php _e('Loading listings...''veronika'); ?>">                   
      <?php if(osc_count_items() == 0) { ?>
        <div class="list-empty round3" >
          <img src="<?php echo osc_current_web_theme_url('images/search-empty.png'); ?>"/>
          <div>
            <span><?php _e('Whooops, no listing match search criteria...''veronika'); ?></span>
          </div>
        </div>
      <?php } else { ?>
        <?php echo veronika_banner('search_top'); ?>

        <?php require($old_show == 'list' 'search_list.php' 'search_gallery.php') ; ?>
      <?php ?>

      <div class="paginate">
        <?php echo osc_search_pagination(); ?>
      </div>

      <?php echo veronika_banner('search_bottom'); ?>
    </div>


Replace with:
Code: [Select]
   <?php echo veronika_banner('search_top'); ?>

    <div id="search-items" data-loading="<?php _e('Loading listings...''veronika'); ?>">                   
      <?php if(osc_count_items() == 0) { ?>
        <div class="list-empty round3" >
          <img src="<?php echo osc_current_web_theme_url('images/search-empty.png'); ?>"/>
          <div>
            <span><?php _e('Whooops, no listing match search criteria...''veronika'); ?></span>
          </div>
        </div>
      <?php } else { ?>

        <?php require($old_show == 'list' 'search_list.php' 'search_gallery.php') ; ?>
      <?php ?>

      <div class="paginate">
        <?php echo osc_search_pagination(); ?>
      </div>

    </div>

    <?php echo veronika_banner('search_bottom'); ?>


Let me know if helped.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mr-merk

  • **
  • 9 posts

*

Ivanko

  • *****
  • 391 posts
Re: Google Adsense (Banner Search Top, Banner Search Bottom)
« Reply #3 on: April 17, 2017, 01:23:20 PM »
@frosticek
this code is working only for TOP and BOTTOM ad, the ad between listings gone, when you are on page no2
Moreover TOP and BOTTOM ads remains the same as on page no1, when you are on page no2 +... not updating, therefore google will not register ads as Viewed.... :-\
(Ajax search ON, and page is not reloading....????....and ads are not refreshing....??....)


When I put OFF Live Search using Ajax from admin panel all is working fine even with old code in search.php, probably the bug somewhere there...?

« Last Edit: April 17, 2017, 01:40:58 PM by Ivanko »

*

MB Themes

Re: Google Adsense (Banner Search Top, Banner Search Bottom)
« Reply #4 on: April 18, 2017, 03:23:01 PM »
@Ivanko
Reason is that you need to reload page if you want to get new adsense code. I am sure you will not earn money on views, but on clicks.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ivanko

  • *****
  • 391 posts
Re: Google Adsense (Banner Search Top, Banner Search Bottom)
« Reply #5 on: April 18, 2017, 06:26:49 PM »
@frosticek
it depends, some people pay for clicks , some for shows ads.
Some times  I can see  PAGE RPM 25gbp, how google counts only they knows...
so, seems no solution?

*

MB Themes

Re: Google Adsense (Banner Search Top, Banner Search Bottom)
« Reply #6 on: April 19, 2017, 10:53:25 AM »
@Ivanko
No, google will not show ad if it is not loaded in browser. That would allow cheaters to earn money quickly.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots