Module 11 · In Studio · challenge 3 of 3 in this lesson
playThroughRate divides qualified plays by impressions and returns 0 when nobody has seen the thumbnail
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Start from the m14-ship tag in the game repo, then fix the four rules in challenges/marketing_work.luau. They are the arithmetic behind the Run above.
Press Play and run this in the server command bar:
game.ServerScriptService.RunGameTests:Invoke("marketing")
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("marketing")in the server command bar. Copy the pass code from Output.
Done means
- playThroughRate divides qualified plays by impressions and returns 0 when nobody has seen the thumbnail
- leader waits for enough impressions on both thumbnails and keeps testing on a tie
- personalizationReady is true only for 2 to 5 active thumbnails
- joinedFromCampaign is true only when the LaunchData matches exactly
- challenges/marketing.luau prints TEST PASS for all fifteen cases