-
Notifications
You must be signed in to change notification settings - Fork 758
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: Adtargetme #2296
New Adapter: Adtargetme #2296
Conversation
This PR is failing on the unit test:
This is because we require the first 6 characters of an bidder/adapter name to be unique unless both adapters refer to the same company. Is there a relationship between Adtarget and Adtargetme? |
Hi. What name should be correct in our case? |
Please be aware that PR #2280 was recently merged. This PR updates the package used for the openrtb2 model. You will need to update this PR to use the |
You should choose your own name. You just need to a choose a more unique name to avoid conflicts with the existing |
for _, imp := range imps { | ||
if imp.ID == impId { | ||
if imp.Video != nil { | ||
mediaType = openrtb_ext.BidTypeVideo | ||
} else if imp.Native != nil { | ||
mediaType = openrtb_ext.BidTypeNative | ||
} | ||
return mediaType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might be confusing myself, but here it looks like you support Video
and Native
media types in addition to Banner
. But in your docs PR and your adserver_adtarget.yaml
file, it looks like you only support Banner
. If you support video and native as well, could you update the docs PR and .yaml file? If not, could you explain what's being done here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to start with a banner, but we added the logic beforehand for the video and native. We will remove Video
and Native
support and return this logic later when we will be ready to work with Video
and Native.
return mediaType | ||
} | ||
} | ||
return mediaType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that this return statement isn't covered by your current tests, could you add another JSON test to cover it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We added returning an error for non-banner impressions.
* add failure tests for impressions
The new name you've chosen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@grakholsky just a friendly reminder to give @SyntaxNode's comments a look when you get a chance. |
* added tests for headers ipv6 * added tests for handling another non-200 statuses * removed port number
prebid/prebid.github.io#3888