Hello everyone,

I enable a campaign limit on impression (2 impression) but the ad is deactived when they are 2 Uniques impressions.
I need to stop a campaign if they are 2 ad impressions unique or not.

Any idea ?

Comments

pierrecw’s picture

I found a solution (may be not the best)

In campaigns.helper.inc I delete the group by "sc.ip_address" condition.
And that's work !

function _simpleads_campaigns_count_ad_impressions($timestamp, $nid) {
$count = db_select('simpleads_impressions', 'sc')
->condition("sc.nid", $nid)->condition('sc.timestamp', $timestamp, '>=')
->countQuery()->execute()->fetchField();
return $count;
}

If anyone have a better solution !

Anonymous’s picture

Issue summary: View changes

I do not know if this is even the correct way of doing this, but I thank you!!

minnur’s picture

Status: Active » Closed (won't fix)