The Ad Restrictions app is designed to manage and limit the number and types of ads displayed on a landing page or user session based on the referral source. By creating a 'ruleset' in the Ezoic dashboard under 'EzoicAds' > 'Ad Restrictions' > 'Ad Restriction Rulesets', you can control ad combinations effectively.
Creating a Ruleset
- Navigation: Go to "Ezoic Ads > Ad Restrictions" scroll to the bottom and click the green '+' button under "Ad Restriction Rulesets".
- Setting Up Rules: You can create a new ad restriction rule by selecting the rule type, pattern type, and entering a value for each. For example, to restrict ads for visitors from Facebook, you would configure:
- Rule Type: Referrer
- Pattern Type: contains
- Rule Value: facebook.com
- Applying Rules: After setting up the rule, click "create rule". You can name the Ruleset and select whether the restrictions apply to just the landing page or the entire user session.
- Finalizing: Once ready, select "Create Ruleset".
![](https://support-osticket.s3.us-west-1.amazonaws.com/article_uploads/5kKXsPWCrzAppGF34vMiy30Xk8A%3D_68IyL3m1%2BXp0-zvKcchWDg%3D%3D?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARCESARAI73QPK64O%2F20240825%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20240825T083214Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEMj%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIQD1I7UOT1SGU6s0B2Xx1Fa9ywyDiYUJPrxdnrwNocy6HAIgAUROwmGbg1fdUoshy57WPmjl6nCYLBZETBYPKOpf%2BMMqwwUI0f%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgwwNzMzMjA2NjMwNTciDKpr5gjp1nqq10ovgyqXBc6yjrFGK%2Fri6delimEzMJQw7w1kZCEqTm2dQdcBTIjpLSIE12SbjqrRmpB58YGuLaY0VlBOlmQ4EiyO4yJmHfF6yIMjK5EXGv23Nl9Y%2BNEKN5%2Fne8wJ%2B72D7iq5NJzgLumJWQEVnhWE6W51DXLqOQQSM%2FGP2lb6qY%2BJr62XzY8q1VSUzsr2nLnO7Nv%2BN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f51b8)
![](https://support-osticket.s3.us-west-1.amazonaws.com/article_uploads/X4wwI0WZT3as-cb3Wf2h9QOzT0Q%3D_Q6AUbyEiNECuXESiDonvXg%3D%3D?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARCESARAI73QPK64O%2F20240825%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20240825T083214Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEMj%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIQD1I7UOT1SGU6s0B2Xx1Fa9ywyDiYUJPrxdnrwNocy6HAIgAUROwmGbg1fdUoshy57WPmjl6nCYLBZETBYPKOpf%2BMMqwwUI0f%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgwwNzMzMjA2NjMwNTciDKpr5gjp1nqq10ovgyqXBc6yjrFGK%2Fri6delimEzMJQw7w1kZCEqTm2dQdcBTIjpLSIE12SbjqrRmpB58YGuLaY0VlBOlmQ4EiyO4yJmHfF6yIMjK5EXGv23Nl9Y%2BNEKN5%2Fne8wJ%2B72D7iq5NJzgLumJWQEVnhWE6W51DXLqOQQSM%2FGP2lb6qY%2BJr62XzY8q1VSUzsr2nLnO7Nv%2BN9dG1R7vKWeH4neGXbV8QOg9oAYw2QiXzaEvYoFiBL3YBM6v3G3v6ZYcP2rA0%2BQsumA4Xmx3YipxEcPWPziHvjMe1%2FYUs6%2FnBPL7qUXbW1CbO5ivPCu31U7UWGuXaecikq00lGL8oq2mDv2UqncaiD5y16b%2FsetkNsdEK3XY7ViKgIvFLnBLjRxaAKLO%2FWTEhKk%2BEpgWjm4KsudH8nLXBbxm%2BursmBQuXgEwsQznwPfOBSVtAPnM%2Fia686ECXltBTpA4Sj0Jn2Wvr3w9NYLvLwuLnHfysa9PdNqAcswuo9I5GN8UlJo11fsRomxdsxC7Ofa%2By03L%2BlLFAh1d7Tl4XRYfb6F4iSDogRqQX6WRvU0eVEeGLke%2BwKh6J3jwXA5NTpSYlhGaQ7sgWcIziN28GiEOeMbP3rT5rqT8BqHxHZDmWVG3PsK2OalwXo1FJAvuBg4FW5ci6zOmfSNV3J0QTwXFy4Z0FczC1xSOe219S5PgGIS4knlymgQun3wjIJ9iaoFpP1r%2BiSSARvRjBXFj7Q6DieJalJkEOdbxIeBMBlyI81y5gs8V%2Bh2%2B%2B2jBiAJMl7ymyFfA6GY%2B6Rpgg9JlGvrF64Cputbsk0JbgqnPwtRrjSai94r8Hb0rzvprl2P0LG%2BPtGmLx%2Bvqva3mfMEvhK8SpZ2x4nmNBIm2JHV2mZSkheFxlbsoIkPj5zD9wau2BjqxAQv%2Fg6SVgGonuAisL0RXge%2FpVx177%2FwYfqFkKxNbhoRkNoastUCgiE7TyCubISqLXT%2FpzjrjabSdQ3vi3kZ6ZC8ti88wQOF0NNkiOOxwYCdyC%2BOYssqHRVUBuFdXsA5oIzDECzJjFY%2FaCWPFgdx64Qc6T4Uz43%2BMvPccMwgToycQkwGrZON3DR%2FU0F0kNgUD1NO4REVhfNUEs3eDZI72zGDWXWbaArNM0PU2id3nrmj2WQ%3D%3D&X-Amz-SignedHeaders=host&x-id=GetObject&X-Amz-Signature=f0e08f677d0d3adcddfc1b3aa2c61afc099fdbeff713cfaa3ea85b13bba02662)
![](https://support-osticket.s3.us-west-1.amazonaws.com/article_uploads/JzXhzF6ZWWBWClagOzC5CSVXs38%3D_JDFXHZTsGj3fst%2B3yylk3A%3D%3D?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARCESARAI73QPK64O%2F20240825%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20240825T083214Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEMj%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIQD1I7UOT1SGU6s0B2Xx1Fa9ywyDiYUJPrxdnrwNocy6HAIgAUROwmGbg1fdU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g6SVgGonuAisL0RXge%2FpVx177%2FwYfqFkKxNbhoRkNoastUCgiE7TyCubISqLXT%2FpzjrjabSdQ3vi3kZ6ZC8ti88wQOF0NNkiOOxwYCdyC%2BOYssqHRVUBuFdXsA5oIzDECzJjFY%2FaCWPFgdx64Qc6T4Uz43%2BMvPccMwgToycQkwGrZON3DR%2FU0F0kNgUD1NO4REVhfNUEs3eDZI72zGDWXWbaArNM0PU2id3nrmj2WQ%3D%3D&X-Amz-SignedHeaders=host&x-id=GetObject&X-Amz-Signature=ab973444a140d69e2893eb0d799fde39bdf39f3566bf3a56ce91fa57d863889e)
Managing and Editing Rulesets
After creating a ruleset, it will appear in the Ad Restrictions Ruleset app. To edit:
- Editing Rules: Click on the small gear icon and select "edit rule" to modify restrictions.
- Managing Rules: Click on the small gear icon and select "manage rules" to add additional conditions for when the ruleset should be applied.
![](https://support-osticket.s3.us-west-1.amazonaws.com/article_uploads/Yr6xrft2qXK8J8f8YyoUXMsv3BM%3D_0k5zHq9uRqo6Q%2BPtRywOxQ%3D%3D?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARCESARAI73QPK64O%2F20240825%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20240825T083214Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEMj%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIQD1I7UOT1SGU6s0B2Xx1Fa9ywyDiYUJPrxdnrwNocy6HAIgAUROwmGbg1fdUoshy57WPmjl6nCYLBZETBYPKOpf%2BMMqwwUI0f%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgwwNzMzMjA2NjMwNTciDKpr5gjp1nqq10ovgyqXBc6yjrFGK%2Fri6delimEzMJQw7w1kZCEqTm2dQdcBTIjpLSIE12SbjqrRmpB58YGuLaY0VlBOlmQ4EiyO4yJmHfF6yIMjK5EXGv23Nl9Y%2BNEKN5%2Fne8wJ%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WQ%3D%3D&X-Amz-SignedHeaders=host&x-id=GetObject&X-Amz-Signature=f4756538872d1c157ffc3ee32105dd94c1a603ff266a14274c4e06ea0105adb6)
The app tracks the traffic referral source and applies the rules accordingly, ensuring that ad restrictions are tailored based on how visitors arrive at your page. This allows for nuanced ad management, such as restricting ads only for traffic from specific sources like Facebook campaigns while leaving other traffic sources unaffected.