Skip to content

Commit

Permalink
Rubicon Adapter, added request type flags and new Doubleclick paramet…
Browse files Browse the repository at this point in the history
…er support (#3159)
  • Loading branch information
mhc-gh authored and dvoytenko committed May 9, 2016
1 parent ebb79de commit a5d12b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ads/rubicon.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export function rubicon(global, data) {
checkData(data, [
'slot', 'targeting', 'categoryExclusions',
'tagForChildDirectedTreatment', 'cookieOptions',
'overrideWidth', 'overrideHeight',
'overrideWidth', 'overrideHeight', 'loadingStrategy',
'consentNotificationId', 'useSameDomainRenderingUntilDeprecated',
'account', 'site', 'zone', 'size',
'pos', 'kw', 'visitor', 'inventory',
'type', 'method', 'callback',
Expand Down Expand Up @@ -101,6 +102,7 @@ function fastLane(global, data) {
if (data.visitor) { setFPD('V', data.visitor); };
if (data.inventory) { setFPD('I', data.inventory); };
rubicontag.setUrl(getSourceUrl(context.location.href));
rubicontag.setIntegration('amp');
rubicontag.run(gptrun, 1000);

});
Expand All @@ -122,6 +124,7 @@ function smartTag(global, data) {
global.rp_kw = data.kw;
global.rp_visitor = data.visitor;
global.rp_inventory = data.inventory;
global.rp_amp = 'st';
global.rp_callback = data.callback;
/* eslint-enable */
writeScript(global, 'https://ads.rubiconproject.com/ad/' + encodeURIComponent(data.account) + '.js');
Expand Down
6 changes: 4 additions & 2 deletions ads/rubicon.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ By default the ad size is based on the `width` and `height` attributes of the `a

Supported via `json` attribute (DFP parameters):

- `targeting`
- `categoryExclusions`
- `cookieOptions`
- `tagForChildDirectedTreatment`
- `targeting`
- `cookieOptions`

For the most up-to-date list of Doubleclick supported parameters and usage please refer to Doubleclick reference guide [here](google/doubleclick.md).

##### First Party Data & Keywords
- `data-kw`
Expand Down

0 comments on commit a5d12b4

Please sign in to comment.