Use Case:Your client wants the text or label of the ad designs to change from one time/date range and then revert back to the default text/label once the date range is no longer valid or active. The text can be leveraged in a text overlay as part of the design or as a label to activate a certain overlay within the date/time range specified. Of course, you can use this same label to be applied in the creation of a new Product Set where Product A is activated between the time/date specified and then revert to a BAU Product Set outside of the said date/time range. |
Example:Bed, Bath and Beyond wants to install the words “Black Friday Deal” between midnight to 11:59 pm Eastern Time Zone on Friday, November 24, 2023 through Saturday, November 25, 2023 |
What would it look like and where do we enter the code? |
What is this actually doing?It is checking the time and date currently and if it is between the start and end date in the code, the text 'Black Friday Deal!” would be applied. For example, as long as the current time is between the start and end date…
|
Copy and Paste the Code Template (within the gray box): |
New York/Eastern Time Zone: {{#if (is_current_time_between 'YYYY-MM-DD 00:00 America/New_York' 'YYYY-MM-DD 23:59 America/New_York')}}YOUR TEXT HERE{{/if}}
{{#if (is_current_time_between 'YYYY-MM-DD 00:00 America/New_York' 'YYYY-MM-DD 23:59 America/New_York')}}YOUR TEXT HERE{{/if}} UK Time Zone: {{#if (is_current_time_between 'YYYY-MM-DD 00:00 Europe/London' 'YYYY-MM-DD 23:59 Europe/London')}}YOUR TEXT HERE{{/if}}
{{#if (is_current_time_between 'YYYY-MM-DD 00:00 Europe/London' 'YYYY-MM-DD 23:59 Europe/London')}}YOUR TEXT HERE{{/if}} |
Instructions:
|
Example Use Case: Eddie Bauer client would like to make sure a large banner that says BLACK FRIDAY DEAL! banner shows up on all products only on Black Friday (November 25, 2023) and then on November 26, 2023 at midnight, automatically have the banner disappear (back to original design). SOLUTION CODE: {{#if (is_current_time_between '2023-11-24 00:00 America/New York' '2023-11-24 23:59 America/New York')}}BLACK FRIDAY DEAL!{{/if}} NOTE:
|
Advanced Use Case 1:Use this Max Rules to ADD TEXT or LABEL to TEXT 1 then change to TEXT 2 afterward the dates are satisfied {{#if ( is_current_time_between 'YYYY-MM-DD 00:00 America/New_York' 'YYYY-MM-DD 23:59 America/New_York') }}ENTER TEXT 1 HERE{{else}}ENTER TEXT 2 HERE{{/if}}
|
{{#if ( is_current_time_between 'YYYY-MM-DD 00:00 America/Los Angeles' 'YYYY-MM-DD 23:59 America/Los Angeles') }}ENTER TEXT 1 HERE{{else}}ENTER TEXT 2 HERE{{/if}} NOTE:
|
Example Use Case 2:Similar to Use Case 1, Eddie Bauer client would like to make sure a large banner that says BLACK FRIDAY DEAL! banner shows up on all products only on Black Friday (November 25, 2023) and then on November 26, 2023 at midnight, instead of going to it’s initial state, they want to keep a permanent “ON SALE” Banner Ad to replace the 'Black Friday Deal” banner instead of removing it. {{#if ( is_current_time_between '2023-11-24 00:00 America/New York' '2023-11-24 23:59 America/New York') }}BLACK FRIDAY DEAL{{else}}ON SALE{{/if}} |
Advanced Use Case 2:Use this Max Rules to ADD Countdown Type Creative {{#if ( is_current_time_between 'YYYY-MM-DD 00:00 America/New_York' 'YYYY-MM-DD 23:59 America/New_York') }}ENTER TEXT 1 HERE{{else if ( is_current_time_between 'YYYY-MM-DD 00:00 America/New_York' 'YYYY-MM-DD 23:59 America/New_York' )}}ENTER TEXT 2 HERE{{else if ( is_current_time_between 'YYYY-MM-DD 00:00 America/New_York' 'YYYY-MM-DD 23:59 America/New_York')}}ENTER TEXT 3 HERE{{else}}ENTER ELSE TEXT HERE{{/if}}
|
{{#if ( is_current_time_between '2023-12-23 00:00 America/Los_Angeles' '2023-12-23 23:59 America/Los_Angeles') }}2 DAYS UNTIL CHRISTMAS!{{else if ( is_current_time_between '2023-12-24 00:00 America/Los_Angeles' '2023-12-24 23:59 America/Los_Angeles' )}}IT'S CHRISTMAS EVE!{{else if ( is_current_time_between '2023-12-25 00:00 America/Los_Angeles' '2023-12-25 23:59 America/Los_Angeles')}}MERRY CHRISTMAS!{{else}}IT'S NOT CLOSE TO CHRISTMAS{{/if}} NOTE:
|
Example Use Case:The Gap would like to create a countdown to Christmas starting from the 23rd of December so that anyone seeing their ads in Meta will see a banner telling them how many days left until Christmas….
|
Comments
0 comments
Please sign in to leave a comment.