Closed Bug 1558903 Opened 6 years ago Closed 6 years ago

Ad server handle multiple shims being passed

Categories

(Firefox :: New Tab Page, task, P1)

task

Tracking

()

VERIFIED FIXED
Firefox 69
Iteration:
69.3 - Jun 10 - 23
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: nobody → sdowne
Summary: Ad server handle multiple shims being passes → Ad server handle multiple shims being passed
Iteration: --- → 69.3 - Jun 10 - 23
Priority: -- → P1

Ideally: get this landed by EOW (6/14) for QA next week.

Bugbug thinks this bug is a task, but please change it back in case of error.

Type: defect → task

To test:

  1. Clone this repo locally https://github.com/ScottDowne/test-data

  2. Run npm install

  3. Run node start.js

  4. Set this pref browser.newtabpage.activity-stream.discoverystream.endpoints to "https,http"

  5. Set this pref browser.newtabpage.activity-stream.discoverystream.config to {"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"}

  6. Ensure you can see telemetry events

  7. Open a new tab, you should see a layout of weird cards, heros, and lists.

  8. You should see 6 spocs total.

  9. Open your browser toolbox (tools -> web developer -> browser toolbox)

  10. 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.

Attached file GitHub Pull Request
Blocks: 1559536
Status: NEW → RESOLVED
Closed: 6 years ago
Keywords: github-merged
Resolution: --- → FIXED
Target Milestone: --- → Firefox 69

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.

Status: RESOLVED → VERIFIED
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: