Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving impressions using an HTTP-based API #46

Open
martinthomson opened this issue Oct 10, 2024 · 0 comments · May be fixed by #56
Open

Saving impressions using an HTTP-based API #46

martinthomson opened this issue Oct 10, 2024 · 0 comments · May be fixed by #56

Comments

@martinthomson
Copy link
Collaborator

martinthomson commented Oct 10, 2024

Idea for part of #31.

Right now, we have no return value, so this can be very simple.

When the browser fetches any resource:

GET /some-resource
Host: intermediary1.example

The response can include a header field.

200 OK
Save-Impression: conversionSite=advertiser.example;histogramIndex=2;\
  filterData=12;lifetimeDays=7
Content-Type: image/jpeg

AD DATA

The browser infers the intermediary identity from the origin of the request.

If we want to define a response, then we can use a link relation trick, which I'll detail in other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Essential
Development

Successfully merging a pull request may close this issue.

1 participant