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

Formalizing support for site.ext.amp #711

Merged
merged 6 commits into from
Oct 22, 2018
Merged

Formalizing support for site.ext.amp #711

merged 6 commits into from
Oct 22, 2018

Conversation

dbemiller
Copy link
Contributor

@dbemiller dbemiller commented Oct 10, 2018

This fixes #708

Technically the ext was already going to the bidders... so this just adds input validation & documents it.

Along the way, I found that our AMP tests were testing lots of payloads with request.app defined. Since AMP implies site, these tests don't make sense. I added an explicit check for request.app in the code.

This seems like a breaking change... but I don't think it is, because a real AMP page would send the curl query param, and there was already code which defined site in that case. If the Stored Request already defined app, then it would cause both to be defined, which would make the request invalid anyway.

@dbemiller dbemiller changed the title Adding official support for site.ext.amp Formalizing support for site.ext.amp Oct 10, 2018
}
}

func setAmpExt(site *openrtb.Site, value string) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason you put this in auction.go rather than amp_auction.go?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No reason... but that makes sense. I'll move it.

It's used in both files... started out named something else, but with "amp" in the name I can definitely see how it fits better in the amp_auction file.

hhhjort
hhhjort previously approved these changes Oct 10, 2018
Copy link
Collaborator

@hhhjort hhhjort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just an odd home for a function, but not important enough to deny the PR.

@dbemiller dbemiller merged commit 1d13fb3 into master Oct 22, 2018
@dbemiller dbemiller deleted the amp-ext branch October 22, 2018 19:54
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 1, 2020
* Started adding some code to validate the amp ext, and some unit tests which dont pass yet.

* Fixed some bugs. Added more tests.

* Updated the docs.

* Fixed some tests... but not all.

* Fixed last remaining bug.

* Moved setAmpExt to the amp_auction file.
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 2, 2020
* Started adding some code to validate the amp ext, and some unit tests which dont pass yet.

* Fixed some bugs. Added more tests.

* Updated the docs.

* Fixed some tests... but not all.

* Fixed last remaining bug.

* Moved setAmpExt to the amp_auction file.
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 4, 2020
* Started adding some code to validate the amp ext, and some unit tests which dont pass yet.

* Fixed some bugs. Added more tests.

* Updated the docs.

* Fixed some tests... but not all.

* Fixed last remaining bug.

* Moved setAmpExt to the amp_auction file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pass AMP signal in ORTB request to adapters
3 participants