|
| 1 | +{ |
| 2 | + "$comment": "use different advertiser sites to avoid depending on budgeting", |
| 3 | + "events": [ |
| 4 | + { |
| 5 | + "seconds": 1, |
| 6 | + "site": "publisher.example", |
| 7 | + "event": "saveImpression", |
| 8 | + "options": { "histogramIndex": 1 } |
| 9 | + }, |
| 10 | + { |
| 11 | + "seconds": 2, |
| 12 | + "site": "publisher.example", |
| 13 | + "intermediarySite": "adtech.example", |
| 14 | + "event": "saveImpression", |
| 15 | + "options": { "histogramIndex": 2 } |
| 16 | + }, |
| 17 | + { |
| 18 | + "seconds": 86402, |
| 19 | + "site": "advertiser-1.example", |
| 20 | + "event": "measureConversion", |
| 21 | + "$comment": "try to select 2 impressions to avoid depending on ordering", |
| 22 | + "options": { |
| 23 | + "aggregationService": "https://agg-service.example", |
| 24 | + "histogramSize": 3, |
| 25 | + "lookbackDays": 1, |
| 26 | + "value": 2, |
| 27 | + "maxValue": 2, |
| 28 | + "credit": [0.5, 0.5] |
| 29 | + }, |
| 30 | + "expected": [0, 0, 2] |
| 31 | + }, |
| 32 | + { |
| 33 | + "seconds": 172802, |
| 34 | + "site": "advertiser-2.example", |
| 35 | + "event": "measureConversion", |
| 36 | + "$comment": "try to select 2 impressions to avoid depending on ordering", |
| 37 | + "options": { |
| 38 | + "aggregationService": "https://agg-service.example", |
| 39 | + "histogramSize": 3, |
| 40 | + "lookbackDays": 1, |
| 41 | + "value": 2, |
| 42 | + "maxValue": 2, |
| 43 | + "credit": [0.5, 0.5] |
| 44 | + }, |
| 45 | + "expected": [0, 0, 0] |
| 46 | + }, |
| 47 | + { |
| 48 | + "seconds": 172803, |
| 49 | + "site": "advertiser-3.example", |
| 50 | + "event": "measureConversion", |
| 51 | + "$comment": "try to select 2 impressions to avoid depending on ordering", |
| 52 | + "options": { |
| 53 | + "aggregationService": "https://agg-service.example", |
| 54 | + "histogramSize": 3, |
| 55 | + "lookbackDays": 3, |
| 56 | + "value": 2, |
| 57 | + "maxValue": 2, |
| 58 | + "credit": [0.5, 0.5] |
| 59 | + }, |
| 60 | + "expected": [0, 1, 1] |
| 61 | + } |
| 62 | + ] |
| 63 | +} |
0 commit comments