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

New Adapter: Aceex #1979

Merged
merged 4 commits into from
Sep 2, 2021
Merged

New Adapter: Aceex #1979

merged 4 commits into from
Sep 2, 2021

Conversation

supportAceex
Copy link
Contributor

No description provided.

@supportAceex
Copy link
Contributor Author

supportAceex commented Aug 26, 2021

Here is docs PR: prebid/prebid.github.io#3232

@mansinahar mansinahar changed the title init aceex prebid-server adapter New Adapter: Aceex Aug 26, 2021
@SyntaxNode SyntaxNode requested review from guscarreon and removed request for bsardo August 30, 2021 17:45
@SyntaxNode SyntaxNode assigned guscarreon and unassigned bsardo Aug 30, 2021
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.

Code looks pretty solid and very well covered by unit tests. Left a couple of questions

"github.com/prebid/prebid-server/openrtb_ext"
)

type AceexAdapter struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need to export this type. Can we rename to simply adapter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed!


func (a *AceexAdapter) checkResponseStatusCodes(response *adapters.ResponseData) error {
if response.StatusCode == http.StatusNoContent {
return nil
Copy link
Contributor

Choose a reason for hiding this comment

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

This exact check is found in line 146, which makes the true branch of this if statement to be unreachable. Can we remove either one or the other? It probably makes sense to remove the one in line 146 and leave this one but I'm good either way

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed!

}

func getMediaTypeForImp(impId string, imps []openrtb2.Imp) openrtb_ext.BidType {
mediaType := openrtb_ext.BidTypeBanner
Copy link
Contributor

Choose a reason for hiding this comment

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

The current logic makes getMediaTypeForImp to return openrtb_ext.BidTypeBanner even if we didn't find a matching imp.ID in line 184. Other adapters throw an error if the imp.ID didn't find a match. Does that make sense in the context of your adapter? This is not a requirement, I'm ok either way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's ok.

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.

@supportAceex thank you for adressing our feedback. Your code looks pretty good but test case adapters/aceex/aceextest/supplemental/status-code-no-content.json began failing in this last commit. Can you please correct before we approve?

Copy link
Contributor

@AlexBVolcy AlexBVolcy left a comment

Choose a reason for hiding this comment

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

I also think the code looks solid overall, but like Gus mentioned, there's a test that needs to be fixed before approval

@supportAceex
Copy link
Contributor Author

Thank you! Fixed!

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.

LGTM

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.

LGTM

@hhhjort hhhjort merged commit cff2b3f into prebid:master Sep 2, 2021
jizeyopera pushed a commit to operaads/prebid-server that referenced this pull request Oct 13, 2021
* init aceex prebid-server adapter

* remove gvlVendorID from config

* fix review

* fix unit tests
shunj-nb pushed a commit to ParticleMedia/prebid-server that referenced this pull request Nov 8, 2022
* init aceex prebid-server adapter

* remove gvlVendorID from config

* fix review

* fix unit tests
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.

6 participants