Skip to content

Add native param support to mediaTypes#1625

Merged
dbemiller merged 1 commit intomasterfrom
native-mediatypes
Oct 3, 2017
Merged

Add native param support to mediaTypes#1625
dbemiller merged 1 commit intomasterfrom
native-mediatypes

Conversation

@matthewlane
Copy link
Collaborator

Type of change

  • Feature

Description of change

This PR allows specifying requested native assets in the new mediaTypes ad unit parameter object. This can currently be done with the nativeParams ad unit object, and that continues to work. All values that work in nativeParams may now be specified in mediaTypes.native

mediaTypes: {
  native: {
    title: {required: true},
    sponsoredBy: {required: true},
  }
}

is equivalent to

mediaType: 'native',
nativeParams: {
  title: {required: true},
  sponsoredBy: {required: true},
}

the image type also works in the new mediaTypes form

mediaTypes: {
  native: {
    type: 'image',
  }
}

Copy link
Contributor

@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.

deepAccess FTW

@dbemiller dbemiller merged commit abb7d45 into master Oct 3, 2017
@dbemiller dbemiller deleted the native-mediatypes branch October 3, 2017 19:55
vzhukovsky added a commit to aol/Prebid.js that referenced this pull request Oct 25, 2017
….30.0 to aolgithub-master

* commit '5a8d2bf93ee15071a78e24ac976103cacf3c6021': (35 commits)
  Added changelog entry.
  Prebid 0.30.1 Release
  Remove undefined variable usage (prebid#1662)
  fixes bug for IE when invalid value passed to parse (prebid#1657)
  Aliasbidder fix (prebid#1652)
  prebidAdapter secure support (prebid#1655)
  Increment pre version
  Prebid 0.30.0 Release
  Add native param support to mediaTypes (prebid#1625)
  PulsePoint Lite adpater changes (prebid#1630)
  Appnexus ast unittest updates (prebid#1654)
  Support aspect ratio specification for native images (prebid#1634)
  Revert changes for switch between client side and server side. (prebid#1653)
  rubicon converted to bidderFactory (prebid#1624)
  Add JSDoc for `pbjs.getAllWinningBids` (prebid#1566)
  Add ignore-loader to handle .md files (prebid#1646)
  fixed PBS cookie syncs (prebid#1637)
  Add placementId request param to Yieldmo bid adapter (prebid#1632)
  Adxcg analytics adapter (prebid#1599)
  Add publisher sub-id support to the Criteo adapter (prebid#1629)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments