Skip to content

add default sizes value for appnexus native requests #3602

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

Merged
merged 1 commit into from
Mar 5, 2019

Conversation

jsnellbaker
Copy link
Collaborator

Type of change

  • Bugfix

Description of change

This change adds a 1x1 default size for native placements in the UT request when the sizes field is otherwise empty.

Context

When sending bid requests to the UT endpoint that target a multi-format placement (eg banner + native), depending on the setup of the adUnit - the sizes information is not included into the request.

One example happens when you're only requesting for a native bid against a multi-format placement; since sizes aren't typically associated with native bids - the sizes field is left empty.

When sizes information is empty but it's expected, the UT request returns an {error: parse} response.

The [1, 1] size is commonly associated for native requests, so it was recommended to set this size to address the error returned by this type of situation.

@jaiminpanchal27 jaiminpanchal27 added LGTM needs 2nd review Core module updates require two approvals from the core team labels Mar 1, 2019
Copy link
Member

@mkendall07 mkendall07 left a comment

Choose a reason for hiding this comment

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

LGTM

@jsnellbaker jsnellbaker merged commit 7dd9f8a into master Mar 5, 2019
@jsnellbaker jsnellbaker deleted the appnexus_native_sizes branch March 18, 2019 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LGTM needs 2nd review Core module updates require two approvals from the core team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants