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

Add LockerDome bid adapter #1026

Merged
merged 5 commits into from
Oct 1, 2019
Merged

Add LockerDome bid adapter #1026

merged 5 commits into from
Oct 1, 2019

Conversation

margsliu
Copy link
Contributor

@margsliu margsliu commented Sep 6, 2019

No description provided.

Copy link
Contributor

@mansinahar mansinahar left a comment

Choose a reason for hiding this comment

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

LGTM in general. Just some minor comments

openrtb_ext/imp_lockerdome.go Show resolved Hide resolved
config/config.go Outdated Show resolved Hide resolved
adapters/lockerdome/lockerdome.go Outdated Show resolved Hide resolved
adapters/lockerdome/lockerdome.go Outdated Show resolved Hide resolved
adapters/lockerdome/lockerdome.go Outdated Show resolved Hide resolved
openrtb_ext/imp_lockerdome.go
* Delete unnecessary file

adapters/lockerdome/lockerdome.go
* Better error message for unmarshaling LockerDome bid response
* Inline bidsCapacity
* Move const unexpectedStatusCodeMessage to top

adapters/lockerdome/lockerdometest/exemplary/simple-banner.json
* Better error message for unmarshaling LockerDome bid response

adapters/lockerdome/lockerdometest/exemplary/simple-banner-multiple.json
* Add test case w/ multiple banner requests

config/config.go
* Inline lockerDomePlatformID
@margsliu
Copy link
Contributor Author

Thank you for your feedback, I've just pushed up changes.

mansinahar
mansinahar previously approved these changes Sep 17, 2019
Copy link
Contributor

@guscarreon guscarreon left a comment

Choose a reason for hiding this comment

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

Validation of all elements in openRTBRequest.Imp[] is needed. Try to keep coverage high after validation is added, 93 to 95 percent is pretty good.

╰─➤  go test -coverprofile=c.out
PASS
coverage: 93.3% of statements
ok      github.com/prebid/prebid-server/adapters/lockerdome     0.029s

╰─➤  go tool cover -func=c.out
github.com/prebid/prebid-server/adapters/lockerdome/lockerdome.go:21:   MakeRequests            81.8%
github.com/prebid/prebid-server/adapters/lockerdome/lockerdome.go:54:   MakeBids                100.0%
github.com/prebid/prebid-server/adapters/lockerdome/lockerdome.go:94:   NewLockerDomeBidder     100.0%
github.com/prebid/prebid-server/adapters/lockerdome/usersync.go:10:     NewLockerDomeSyncer     100.0%
total:                                                                  (statements)            93.3%

adapters/lockerdome/lockerdome.go Show resolved Hide resolved
adapters/lockerdome/lockerdome.go Outdated Show resolved Hide resolved
Copy link
Contributor

@guscarreon guscarreon left a comment

Choose a reason for hiding this comment

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

Please let me know if my latest comment is required or desirable on your end. If not, I'm perfectly ok with approving.

adapters/lockerdome/lockerdome.go Show resolved Hide resolved
Copy link
Contributor

@guscarreon guscarreon left a comment

Choose a reason for hiding this comment

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

One minor optimization comment. Appart from that, looks pretty good

adapters/lockerdome/lockerdome.go Outdated Show resolved Hide resolved
Copy link
Contributor

@guscarreon guscarreon left a comment

Choose a reason for hiding this comment

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

Looks great Margaret. Thank you for your patience.

@stale
Copy link

stale bot commented Oct 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 1, 2019
@mansinahar mansinahar removed the stale label Oct 1, 2019
@mansinahar mansinahar merged commit aa46a25 into prebid:master Oct 1, 2019
@margsliu
Copy link
Contributor Author

margsliu commented Oct 1, 2019

Yay! Thank you!

mansinahar pushed a commit to mansinahar/prebid-server that referenced this pull request Nov 1, 2019
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 1, 2020
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 2, 2020
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 4, 2020
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.

3 participants