• Resolved irhak

    (@irhak)


    We are planning to switch from the standard ads paid for time to max impressions sold for adverts on our websites. We tried the max impressions. We put a test ad with max impressions set to 8 and keep refreshing website. It did so far 12 impressions and it’s still going.

    Before you ask we checked anything that was already posted on internet regarding this:
    – we do not use cache on our websites
    – code for advert looks fine (decided to put photo url as link to itself for test, bottom of the page)
    – our copy of AdRotate is up to date

    The ad is posted in group that was posted through shortcode in text element in WPBakery. Also we got installed classic widgets and classic editor plugins if that would interfere.

    PS. The link provided is to one of websites but we got the same problem with every website we have.

    EDIT – found the root of the problem after looking throught the code.

    In function adrotate_filter_schedule there is a calling to the function adrotate_stats. However the colling is set as adrotate_stats($banner->id, $schedule->starttime, $schedule->stoptime) where the actual variables for functions are adrotate_stats($ad, $archive = false, $when = 0, $until = 0).

    We checked it by adding the missing variable in calling. That one variable $archive (that seemed to not be used in actual function) was the reason for malfunctions.

    Until it is fixed for further updates by the devs themself it prevents from trusting the max impressions setting on the advert scheduling.

    • This topic was modified 3 years, 7 months ago by irhak. Reason: Found possible root of problem

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Arnan

    (@adegans)

    Where is this call to adrotate_stats?
    Which version of AdRotate do you use?

    Thread Starter irhak

    (@irhak)

    The call for adrotate_stats in function adrotate_filter_schedule is in file adrotate-function.php in line 93.
    The adrotate_stats function itself is in adrotate-statistics.php line 95.

    As for version of AdRotate we use the free one. The issue is, as I see, in current version in repository which is 5.9.

    Plugin Author Arnan

    (@adegans)

    Ah yes. It looks like the variable is indeed unused and a few calls to the function are wrong.

    I’ll fix that for the next update.
    Thanks for your report.
    https://ajdg.solutions/support/adrotate-development/

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Max impressions problem’ is closed to new replies.