Skip to content

Doc native params on mediaTypes (incl. cta)#405

Merged
rmloveland merged 3 commits intomasterfrom
RAD-1935
Nov 6, 2017
Merged

Doc native params on mediaTypes (incl. cta)#405
rmloveland merged 3 commits intomasterfrom
RAD-1935

Conversation

@rmloveland
Copy link
Contributor

Scope of work here is:

  • add info on cta field
  • update example code to use mediaTypes: { native ... API
  • add some links to our list of bidders with native support

Let me know what you think - thanks!

@rmloveland
Copy link
Contributor Author

Code changes here for reference: prebid/Prebid.js#1625

+ `hb_native_cta`

Note that these keys correspond directly to the `nativeParams` object you define in your ad unit (which is described in more detail below).
Note that these keys correspond directly to the native object you define in your ad unit (which is [described in more detail below](#native-ad-keys)).
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's say "mediaTypes.native" object.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool, added.


{: .alert.alert-danger :}
For each native ad unit, all of the bidders within that ad unit must have declared native support in supportedMediaTypes as defined in the adapter's call to registerBidAdapter(). If there are any bidders without native support in a native ad unit, the request won't be made.
For each native ad unit, all of the bidders within that ad unit must have declared native support in their adapter. If there are any bidders without native support in a native ad unit, the request won't be made. For a list of bidders with native support, see [Bidders with Video and Native Demand]({{site.baseurl}}/bidders.html#bidders-with-video-and-native-demand).
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't seem to align with observed behavior (and I'm not sure that this should be the expected behavior)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Did some reading of the code and confirmed that the expected behavior is for Prebid to filter out non-native-enabled bidders's bids from native auctions (https://github.com/prebid/Prebid.js/blob/master/src/prebid.js#L399)

Did some testing and am updating the note text to read:

For each native ad unit, all of the bidders within that ad unit must have declared native support in their adapter if you want ads to appear. If there are any bidders without native support in a native ad unit, requests will not be made to those bidders.

@rmloveland
Copy link
Contributor Author

@mjacobsonny I think my latest commits address your feedback - let me know what you think

@rmloveland rmloveland merged commit 2cdf942 into master Nov 6, 2017
@rmloveland rmloveland deleted the RAD-1935 branch November 6, 2017 19:29
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

Comments