Ad server handle multiple shims being passed
Categories
(Firefox :: New Tab Page, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox69 | --- | verified |
People
(Reporter: thecount, Assigned: thecount)
References
Details
(Keywords: github-merged)
Attachments
(2 files)
Right now in bug 1550119 we send back a single shim.
We want to update this to send multiple shims, depending on the event.
The data from the story would look like:
shim: {
"click": "",
"impression: :""
},
And when we send the event, we need to ensure we send the right shim.
the event data itself should not need to change, sending only 1 shim still.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Ideally: get this landed by EOW (6/14) for QA next week.
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
| Assignee | ||
Comment 4•6 years ago
|
||
To test:
-
Clone this repo locally https://github.com/ScottDowne/test-data
-
Run npm install
-
Run node start.js
-
Set this pref
browser.newtabpage.activity-stream.discoverystream.endpointsto "https,http" -
Set this pref
browser.newtabpage.activity-stream.discoverystream.configto{"api_key_pref":"extensions.pocket.oAuthConsumerKey","collapsible":true,"enabled":true,"show_spocs":true,"hardcoded_layout":false,"personalized":false,"layout_endpoint":"https://gist.githubusercontent.com/ScottDowne/1a08ca9f15ceb4ea0aafb9532e5d1381/raw/eef821bf4f40594d3c12ea684df3bdef8508a84e/adzerk-layout-2"} -
Ensure you can see telemetry events
-
Open a new tab, you should see a layout of weird cards, heros, and lists.
-
You should see 6 spocs total.
-
Open your browser toolbox (tools -> web developer -> browser toolbox)
-
Ensure click and view ping events have the shim prop being passes in for spocs, and not for regular cards. The shim prop might look close to this:
"shim": "spoc shim 6 click"
The numbers in there might change depending on which spoc you clicked on.
| Assignee | ||
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
I have verified that separate shims are sent based on the event (impression, click, save, and delete) on the latest Nightly 69.0a1 (Build ID 20190618214619) on Windows 10, macOS 10.14, and Arch Linux 4.14.3.
Updated•6 years ago
|
Description
•