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

find the ad with an rtb property #679

Merged
merged 2 commits into from
Oct 5, 2016
Merged

Conversation

protonate
Copy link
Collaborator

Type of change

  • Bugfix

@protonate
Copy link
Collaborator Author

@mkendall07 for review

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. Tests are green. Thanks

@@ -84,8 +84,9 @@ function AppnexusAstAdapter() {
}

parsed.tags.forEach(tag => {
const cpm = tag.ads && tag.ads[0].cpm;
const type = tag.ads && tag.ads[0].ad_type;
const ad = tag && tag.ads && tag.ads.length && tag.ads.find(ad => ad.rtb);
Copy link
Member

Choose a reason for hiding this comment

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

nit: can make this a function and reuse on line 167

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@mkendall07 ok fixed

@protonate protonate force-pushed the bugfix/appnexusAst-use-rtb-bid branch from a6a176d to e25565a Compare October 5, 2016 16:54
@mkendall07 mkendall07 merged commit 18ed080 into master Oct 5, 2016
@mkendall07 mkendall07 deleted the bugfix/appnexusAst-use-rtb-bid branch October 5, 2016 17:07
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.

2 participants