update logic of ad_types field in appnexusBidAdapter#4065
Merged
mkendall07 merged 1 commit intomasterfrom Sep 6, 2019
Merged
Conversation
jaiminpanchal27
approved these changes
Aug 6, 2019
Contributor
|
placing on hold for now due to some concerns about multi format. |
Collaborator
Author
|
@mkendall07 Per the internal feedback, this change should be good to implement. Can you take another look when you have the chance? Thanks! |
Contributor
|
Hey all, When I define adUnits without mediaTypes I get a parsing error returned, it looks like it's related to missing sizes in the request payload to AppNexus. I think sizes must still be defined and sent over to avoid the parse error. Check out my Fiddle for a working example - http://jsfiddle.net/nfm0ahbk/2/. |
10 tasks
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of change
Description of change
This PR changes how the
ad_typesfield of the appnexus request is populated in relation to banner media type.Previously the field was populated automatically with
'banner'if themediaType(s)field of the bid object was empty or if either of those fields were set tobanner. The latter case actually always happened since Prebid.js treats any adUnit request without a definedmediaTypesobject asbannerand creates amediaTypesfield in the bid with a banner object in this scenario.Now with this change, the
bannerad_typeis only populated if the originaladUnitcontained amediaTypes.bannerobject. If theadUnit.mediaTypesobject is missing, then the field is left out of the appnexus request. In terms of the delivery decision for the bid, this scenario would defer to the types that are setup within the placement and use that to choose the type of bid to find/return.