{"id":2049,"date":"2024-03-18T16:49:25","date_gmt":"2024-03-18T16:49:25","guid":{"rendered":"https:\/\/theoptimizer.io\/help\/?post_type=ht_kb&#038;p=2049"},"modified":"2024-03-18T17:04:04","modified_gmt":"2024-03-18T17:04:04","slug":"how-to-use-custom-intervals-in-rules","status":"publish","type":"ht_kb","link":"https:\/\/theoptimizer.io\/help\/knowledge-base\/how-to-use-custom-intervals-in-rules\/","title":{"rendered":"How to Use Custom Intervals in Rules"},"content":{"rendered":"\n<p>Many situations require monitoring a specific KPI over time and taking targeted optimization actions based on its changes. Instead of manually checking everything yourself, you can now automate this process with automatic rules. <\/p>\n\n\n\n<p>Follow the steps below to learn how to use custom date ranges in automatic rules.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><strong>Before you begin! <\/strong><br>Custom date intervals are available from the Pro plan and above. If you are currently subscribed to the Starter plan consider upgrading to Pro.<\/p>\n\n\n\n<div class=\"wp-block-ht-blocks-list heroic-styled-list\" id=\"heroic-styled-list-08006047-fab9-436a-b3e7-6f94e66b1c84\"><ol class=\"fa-ul\"><li>Go to Rules and click on +New Rule<\/li><li>Select the rule based on the desired rule action<\/li><li>Define a name for your rule and the maximum look-back time<\/li><li>Add any standard rule conditions as needed<\/li><li>Select the metric for which you want to use a custom date range, then enable &#8220;Use custom intervals.&#8221;<\/li><li>In the custom intervals section specify a different look-back window from that of the default look-back range of the rule. <em>Example: Between day 5 and day 2.<\/em><\/li><li>Optionally duplicate the last condition with custom intervals and update the interval range to &#8220;Today and Yesterday&#8221;<\/li><li>Specify the how often you want the rule to execute and then click <strong>Save<\/strong>.<\/li><\/ol><style>#heroic-styled-list-08006047-fab9-436a-b3e7-6f94e66b1c84 li:before{\n\t\t                   background:#0069e4;\n\t\t                   border-radius: 0;\n\t\t                   }<\/style><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Check out the following rule examples for additional clarity and inspiration.<\/p>\n\n\n\n<p>Rule 1: Pause Performance Degrading Ad Sets<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"990\" height=\"868\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-1.png\" alt=\"\" class=\"wp-image-2060\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-1.png 990w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-1-300x263.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-1-768x673.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-1-50x44.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-1-60x53.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-1-100x88.png 100w\" sizes=\"auto, (max-width: 990px) 100vw, 990px\" \/><\/figure>\n\n\n\n<p>Rule 2: Pause Poor Performance Campaigns (testing)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"990\" height=\"868\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-2.png\" alt=\"\" class=\"wp-image-2062\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-2.png 990w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-2-300x263.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-2-768x673.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-2-50x44.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-2-60x53.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-2-100x88.png 100w\" sizes=\"auto, (max-width: 990px) 100vw, 990px\" \/><\/figure>\n\n\n\n<p>Rule 3: Pause Performance Degrading Sites<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"990\" height=\"790\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-3.png\" alt=\"\" class=\"wp-image-2063\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-3.png 990w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-3-300x239.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-3-768x613.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-3-50x40.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-3-60x48.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/03\/image-3-100x80.png 100w\" sizes=\"auto, (max-width: 990px) 100vw, 990px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many situations require monitoring a specific KPI over time and taking targeted optimization actions based on its changes. Instead of manually checking everything yourself, you can now automate this process with automatic rules. Follow the steps below to learn how to use custom date ranges in automatic rules. Check out&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[14],"ht-kb-tag":[78,79,80,28],"class_list":["post-2049","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-automation-optimization","ht_kb_tag-automatic-rules","ht_kb_tag-automation","ht_kb_tag-custom-intervals","ht_kb_tag-rules"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/2049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/comments?post=2049"}],"version-history":[{"count":9,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/2049\/revisions"}],"predecessor-version":[{"id":2067,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/2049\/revisions\/2067"}],"wp:attachment":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/media?parent=2049"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb-category?post=2049"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb-tag?post=2049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}