Skip to content

Commit 315dd70

Browse files
committed
Added user_ and ip_ freq capping + default both
1 parent a8734bb commit 315dd70

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Atomx/Resources/Profile.php

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,20 @@ public function setCountryTargeting($action, $countries)
2121

2222
public function setFrequencyCap($capping, $per = 86400)
2323
{
24-
$this->impression_frequency_cap_amount = $capping;
25-
$this->impression_frequency_cap_per = $per;
24+
$this->setUserFrequencyCap($capping, $per);
25+
$this->setIpFrequencyCap($capping, $per);
26+
}
27+
28+
public function setUserFrequencyCap($capping, $per = 86400)
29+
{
30+
$this->user_impression_frequency_cap_amount = $capping;
31+
$this->user_impression_frequency_cap_per = $per;
32+
}
33+
34+
public function setIpFrequencyCap($capping, $per = 86400)
35+
{
36+
$this->ip_impression_frequency_cap_amount = $capping;
37+
$this->ip_impression_frequency_cap_per = $per;
2638
}
2739

2840
// Dayparting times_filter[_action] [start: Nth minute of the week, end: Nth minute of the week]

0 commit comments

Comments
 (0)