// Numbas version: exam_results_page_options {"name": "Calculate campaign CPM", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Calculate campaign CPM", "tags": [], "metadata": {"description": "

Given Cost per View, and View through rate, what is the cost for 1000 actual views?

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

A YouTube skippable ad campaign had a cost per view (CPV) of \\${CPV}.

\n

The total number of views was {SeparateThousands(TotalViews,\",\")}.

\n

The View Through Rate (the number of viewers who watched the ad for at least 30 s) was {VTR}%.

", "advice": "

Since we are given the CPV, the total number of viewers is irrelevant.

\n

The cost per 1,000 views is \\${CPV}$\\times$ 1,000 = {SeparateThousands(CPV*1000,\",\")}

\n

We then multiply by the percentage of people who actually watch the ad through, that is {VTR}% to get:

\n

Campaign CPM = \\${CPV}$\\times$ 1,000 $\\times$ {VTR}% = \\${precround(CPM,2)}.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"cpv": {"name": "cpv", "group": "Ungrouped variables", "definition": "random(flatten([0.01..0.99,1..9,10..100#5]))", "description": "", "templateType": "anything", "can_override": false}, "totalviews": {"name": "totalviews", "group": "Ungrouped variables", "definition": "random(10000..200000 # 1000)", "description": "", "templateType": "anything", "can_override": false}, "vtr": {"name": "vtr", "group": "Ungrouped variables", "definition": "random(1..30)", "description": "", "templateType": "anything", "can_override": false}, "mincpm": {"name": "mincpm", "group": "Ungrouped variables", "definition": "floor(cpm)", "description": "", "templateType": "anything", "can_override": false}, "maxcpm": {"name": "maxcpm", "group": "Ungrouped variables", "definition": "ceil(cpm)", "description": "", "templateType": "anything", "can_override": false}, "cpm": {"name": "cpm", "group": "Ungrouped variables", "definition": "cpv*1000*(vtr/100)", "description": "

cost per 1000 view x the percentage of people who let the ad play without skipping.

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["cpv", "totalviews", "vtr", "mincpm", "maxcpm", "cpm"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What was the campaign CPM (cost per 1,000 completed views)?

\n

CPM = $[[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "minCPM", "maxValue": "maxCPM", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}