Skip to content

Instantly share code, notes, and snippets.

@Tin-Nguyen
Created January 14, 2026 18:39
Show Gist options
  • Select an option

  • Save Tin-Nguyen/1540c4bc6d100847d1c557a5b45de4f3 to your computer and use it in GitHub Desktop.

Select an option

Save Tin-Nguyen/1540c4bc6d100847d1c557a5b45de4f3 to your computer and use it in GitHub Desktop.
Example 2 - Search Lift
Example Input 2
Search Term: Metro Bank
Opportunity Dates Data: Metro Bank account_name, industry, channel, opportunity_name, opportunity_foreign_id, start_date, end_date Metro Bank, Financial Services, broadcast, Metro Bank Q1 Radio WLTW-FM NYC, 006Ps00000ABC123IA1, 2025-01-06, 2025-02-02 Metro Bank, Financial Services, broadcast, Metro Bank Q1 Radio KIIS-FM LA, 006Ps00000ABC124IA1, 2025-01-06, 2025-02-02 Metro Bank, Financial Services, digital, Metro Bank Q1 Display Campaign, 006Ps00000XYZ456IA1, 2025-01-13, 2025-02-09 Metro Bank, Financial Services, broadcast, Metro Bank Tax Season Push WBLS NYC, 006Ps00000ABC125IA1, 2025-02-10, 2025-03-16 Metro Bank, Financial Services, digital, Metro Bank Tax Season Digital, 006Ps00000XYZ457IA1, 2025-02-17, 2025-03-23
Broadcast Daily Impressions: date, broadcast_delivered_impressions, broadcast_ordered_impressions 1/6/25, 145320, 142000 1/7/25, 158940, 155000 1/8/25, 162450, 158000 1/9/25, 171230, 167000 1/10/25, 168920, 165000 1/11/25, 95340, 93000 1/12/25, 87650, 85000 1/13/25, 149870, 146000 1/14/25, 163280, 159000 1/15/25, 167940, 164000 1/16/25, 172650, 168000 1/17/25, 169320, 166000 1/18/25, 98430, 96000 1/19/25, 91240, 89000 1/20/25, 153210, 149000 1/21/25, 166490, 162000 1/22/25, 171830, 167000 1/23/25, 175420, 171000 1/24/25, 172980, 169000 1/25/25, 101560, 99000 1/26/25, 94380, 92000 1/27/25, 156740, 153000 1/28/25, 169820, 165000 1/29/25, 174560, 170000 1/30/25, 178920, 174000 1/31/25, 176340, 172000 2/1/25, 104290, 102000 2/2/25, 97650, 95000 2/3/25, 52340, 51000 2/4/25, 48920, 47000 2/5/25, 45680, 44000 2/6/25, 49230, 48000 2/7/25, 51470, 50000 2/8/25, 28940, 28000 2/9/25, 26780, 26000 2/10/25, 187650, 183000 2/11/25, 201340, 196000 2/12/25, 208970, 203000 2/13/25, 215430, 210000 2/14/25, 212890, 208000 2/15/25, 121560, 119000 2/16/25, 114320, 112000 2/17/25, 194560, 190000 2/18/25, 209870, 204000 2/19/25, 217340, 212000 2/20/25, 223180, 218000 2/21/25, 220450, 215000 2/22/25, 128730, 126000 2/23/25, 121890, 119000 2/24/25, 201230, 196000 2/25/25, 215680, 210000 2/26/25, 222940, 217000 2/27/25, 228670, 223000 2/28/25, 226130, 221000 3/1/25, 134560, 131000 3/2/25, 127840, 125000 3/3/25, 207890, 203000 3/4/25, 221340, 216000 3/5/25, 228910, 223000 3/6/25, 234560, 229000 3/7/25, 232180, 227000 3/8/25, 141230, 138000 3/9/25, 134670, 132000 3/10/25, 214560, 209000 3/11/25, 227890, 222000 3/12/25, 235420, 230000 3/13/25, 241280, 236000 3/14/25, 238940, 234000 3/15/25, 146780, 143000 3/16/25, 139560, 137000
Digital Daily Performance: date, digital_impressions, clicks 1/13/25, 425000, 3825 1/14/25, 438000, 3942 1/15/25, 445000, 4005 1/16/25, 452000, 4068 1/17/25, 448000, 4032 1/18/25, 267000, 2403 1/19/25, 254000, 2286 1/20/25, 461000, 4149 1/21/25, 475000, 4275 1/22/25, 482000, 4338 1/23/25, 489000, 4401 1/24/25, 486000, 4374 1/25/25, 289000, 2601 1/26/25, 276000, 2484 1/27/25, 498000, 4482 1/28/25, 512000, 4608 1/29/25, 519000, 4671 1/30/25, 526000, 4734 1/31/25, 523000, 4707 2/1/25, 312000, 2808 2/2/25, 298000, 2682 2/3/25, 534000, 4806 2/4/25, 547000, 4923 2/5/25, 554000, 4986 2/6/25, 561000, 5049 2/7/25, 558000, 5022 2/8/25, 334000, 3006 2/9/25, 321000, 2889 2/17/25, 687000, 7533 2/18/25, 712000, 7832 2/19/25, 728000, 8008 2/20/25, 745000, 8195 2/21/25, 738000, 8118 2/22/25, 441000, 4851 2/23/25, 423000, 4653 2/24/25, 756000, 8316 2/25/25, 779000, 8569 2/26/25, 795000, 8745 2/27/25, 812000, 8932 2/28/25, 805000, 8855 3/1/25, 481000, 5291 3/2/25, 464000, 5104 3/3/25, 823000, 9053 3/4/25, 846000, 9306 3/5/25, 862000, 9482 3/6/25, 879000, 9669 3/7/25, 872000, 9592 3/8/25, 521000, 5731 3/9/25, 503000, 5533 3/10/25, 890000, 9790 3/11/25, 913000, 10043 3/12/25, 929000, 10219 3/13/25, 946000, 10406 3/14/25, 939000, 10329 3/15/25, 561000, 6171 3/16/25, 543000, 5973 3/17/25, 456000, 5016 3/18/25, 438000, 4818 3/19/25, 421000, 4631 3/20/25, 404000, 4444 3/21/25, 397000, 4367 3/22/25, 237000, 2607 3/23/25, 226000, 2486
Search Interest Data: week_start_date, rank_value 2024-12-29, 45 2025-01-05, 47 2025-01-12, 52 2025-01-19, 58 2025-01-26, 64 2025-02-02, 61 2025-02-09, 58 2025-02-16, 73 2025-02-23, 89 2025-03-02, 100 2025-03-09, 87 2025-03-16, 79 2025-03-23, 68 2025-03-30, 52
Example Output 2
Computation Validation
Week of Jan 12, 2025: Jan 12-18 = 1,121,950 broadcast impressions + 2,956,000 digital impressions (complete data)
Week of Feb 23, 2025: Feb 23-Mar 1 = 1,418,720 broadcast impressions + 5,351,000 digital impressions (complete data)
Week of Mar 2, 2025: Mar 2-8 = 1,296,380 broadcast impressions + 3,259,000 digital impressions (complete data)
Week of Mar 16, 2025: Mar 16-22 = 139,560 broadcast impressions + 2,957,000 digital impressions (complete data)
Account Performance Overview
Metro Bank search interest for "metro bank" reached 100 during week of Mar 2, 2025 (mixed: broadcast + digital both active)
Search interest changed from 47 (Jan 5) to 100 (Mar 2) across the Q1 analysis period
Week of Jan 12 showed search interest at 52 during mixed campaign week with 1.12M broadcast + 2.96M digital impressions
Search Timing and Correlation Analysis
January period: search interest changed from 47 (Jan 5) to 52 (Jan 12) to 58 (Jan 19) to 64 (Jan 26) during mixed campaign weeks
February-March period: search interest moved from 73 (Feb 16) to 89 (Feb 23) to 100 (Mar 2) during mixed campaign weeks
Week of Feb 23: 1.42M broadcast + 5.35M digital impressions with search interest at 89, followed by peak of 100 next week
Digital clicks showed temporal alignment: 4,000-5,000 range during January (search interest: 52-64) and 8,000-10,400 range during February-March peak period (search interest: 89-100)
Post-Campaign Observation
Search interest at 79 during week of Mar 16 (final mixed campaign week), changed to 68 (Mar 23) and 52 (Mar 30) within two weeks post-campaign
January broadcast-only weeks (Jan 5-12, before digital launch) showed search interest change from 47 to 52
February mixed-channel weeks (Feb 16-Mar 2) showed larger search interest movement from 73 to 100 compared to broadcast-only periods
Click activity pattern: 4,000-5,000 daily clicks during January vs. 7,500-10,400 daily clicks during February-March, timing aligned with search interest differences
Strategic Observations
February-March timing window showed search interest peak (100) during mixed campaign activity with both broadcast and digital delivery
January mixed-channel period (post-digital launch Jan 13) showed search interest change from 52 to 64 over two weeks
Broadcast-only week (Jan 5-12) showed smaller search interest movement (+5 points) compared to subsequent mixed weeks showing +6 to +16 point week-over-week changes
Post-campaign pattern: search interest changed from 79 to 52 within two weeks after both channels ended, no delayed response observed beyond immediate weeks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment