forked from prebid/Prebid.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from pm-shashank-jain/nativesupport
documentation for native
- Loading branch information
Showing
1 changed file
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ Maintainer: [email protected] | |
|
||
Connects to PubMatic exchange for bids. | ||
|
||
PubMatic bid adapter supports Video and Banner currently. | ||
PubMatic bid adapter supports Video, Banner and Native currently. | ||
|
||
# Sample Banner Ad Unit: For Publishers | ||
``` | ||
|
@@ -76,7 +76,40 @@ var adVideoAdUnits = [ | |
}] | ||
``` | ||
|
||
### Configuration | ||
# Sample Native Ad Unit: For Publishers | ||
``` | ||
var adUnits = [ | ||
{ | ||
code: 'test-div', | ||
mediaTypes: { | ||
native: { | ||
image: { | ||
required: true, | ||
sizes: [150, 50] | ||
}, | ||
title: { | ||
required: true, | ||
len: 80 | ||
}, | ||
sponsoredBy: { | ||
required: true | ||
}, | ||
clickUrl: { | ||
required: true | ||
} | ||
} | ||
}, | ||
bids: [{ | ||
bidder: 'pubmatic', | ||
params: { | ||
publisherId: '156209', // required | ||
adSlot: 'pubmatic_test2@1x1', // required | ||
} | ||
}] | ||
}]; | ||
``` | ||
|
||
# ## Configuration | ||
|
||
PubMatic recommends the UserSync configuration below. Without it, the PubMatic adapter will not able to perform user syncs, which lowers match rate and reduces monetization. | ||
|
||
|