Skip to content
This repository has been archived by the owner on Feb 13, 2021. It is now read-only.

Release/1.29.0 #13

Merged
merged 50 commits into from
Oct 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
a617398
Increment pre version
jaiminpanchal27 Sep 5, 2017
f57f337
Switch `gulp docs` to build its output using documentation.js (#1545)
rmloveland Sep 6, 2017
598817f
Yieldmo bid adapter (#1415)
xlozinguez Sep 8, 2017
27944ac
Tremor Video Bid Adapter (#1552)
tremorvideo Sep 11, 2017
d3e06a4
Add url.parse option to not decode the whole URL (#1480)
erikdubbelboer Sep 11, 2017
0d02f82
Allow bundling from node.js or with new gulp task bundle-to-stdout (…
snapwich Sep 11, 2017
0e167ad
Add a version to the Criteo adapter (#1573)
SebastienGaspar Sep 13, 2017
a4d3ce7
BaseAdapter for the Prebid 0.x -> 1.x transition (#1494)
dbemiller Sep 13, 2017
f3c67b9
Custom granularity precision should honor 0 if it is passed in closes…
Sep 15, 2017
d43c6cd
allow adapters to set default adserverTargeting for specific bid (#1568)
snapwich Sep 15, 2017
8e0ce69
Invalidate bid if matching bid request not found (#1575)
kitwestneat Sep 15, 2017
fcf8d18
Add support for video stream context (#1483)
matthewlane Sep 15, 2017
8fca7f6
Allow SET_TARGETING to be used in AnalyticsAdapter (#1577)
ptomasroos Sep 15, 2017
d757220
Fix renderer test for new validation rule (#1592)
matthewlane Sep 15, 2017
d05af09
Adding Orbitsoft adapter (#1378)
Indra-sensei Sep 15, 2017
9da2dba
Rubicon project improvement/user sync (#1549)
Sep 18, 2017
0298b7f
fix travis build (#1595)
Sep 18, 2017
1733da7
Add user sync to process for approving adapter PRs (#1457)
grevory Sep 18, 2017
5b99aaa
Serverbid alias (#1560)
jgrimes Sep 18, 2017
952e82d
Add Kumma adapter (#1512)
yehonatanshac Sep 19, 2017
9d2342f
Pass bidRequest to createBid (#1600)
jaiminpanchal27 Sep 19, 2017
96754ed
Add nurl to markup (#1601)
jaiminpanchal27 Sep 19, 2017
ea97915
Trustx adapter (#1488)
PWyrembak Sep 19, 2017
5fc4022
Rubicon Bidder Factory (#1587)
dbemiller Sep 19, 2017
6643be7
Fixed the broken tests. (#1602)
dbemiller Sep 19, 2017
fbf0840
closes #1298 (#1583)
Sep 19, 2017
2a6cdf8
fix amp example pages (#1597)
jaiminpanchal27 Sep 19, 2017
99aa370
Fix for not syncing bidders. (#1598)
Sep 19, 2017
9e1bf79
Prebid 0.29.0 Release
matthewlane Sep 19, 2017
76e289f
Merge tag '0.29.0' of https://github.com/prebid/Prebid.js into featur…
vzhukovsky Oct 3, 2017
a2333db
Merge remote-tracking branch 'remotes/origin/release/1.28.0' into fea…
vzhukovsky Oct 3, 2017
32da67f
Added new aol partners ids.
vzhukovsky Oct 3, 2017
3ab8c63
Added changelog entry.
vzhukovsky Oct 3, 2017
0d4c7ed
Converted AOL bid adapter to Prebid 1.0.
vzhukovsky Oct 3, 2017
d9026c0
Added bid response handler.
vzhukovsky Oct 4, 2017
d6bae06
Added drop pixels support.
vzhukovsky Oct 4, 2017
97afa0e
Added initial support for unit tests.
vzhukovsky Oct 4, 2017
b3a10e4
Added cpm adjustment warning.
vzhukovsky Oct 5, 2017
ea2b873
Added test cases for contentType and headers.
vzhukovsky Oct 6, 2017
49417b7
Added userSync feature for aol adapter.
vzhukovsky Oct 6, 2017
2a08353
Improved code formatting, fixed typos.
vzhukovsky Oct 6, 2017
3639748
Added support for dropping pixels after bid response.
vzhukovsky Oct 11, 2017
f31e416
Updated unit tests for AOL userSyncOn.
vzhukovsky Oct 11, 2017
5bfddf7
Fixed wrong userSyncs type for image tags
vzhukovsky Oct 11, 2017
4f89979
Fixed adding undefined value for request without data
vzhukovsky Oct 12, 2017
285f58f
Add support for secure bid requests for one mobile get endpoint.
vzhukovsky Oct 12, 2017
3331bdf
Merge pull request #124 in AOLP_ADS_JS/prebid.js from feature/PLMP-20…
vzhukovsky Oct 12, 2017
d7a1d28
Added changelog entry.
vzhukovsky Oct 12, 2017
02899e5
Merge pull request #125 in AOLP_ADS_JS/prebid.js from release/1.29.0 …
vzhukovsky Oct 13, 2017
71d8747
Fixed eslint isues.
vzhukovsky Oct 16, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
AOL Prebid 1.29.0
----------------
Updated to Prebid 0.29.0
Updated AOL adapter to be compatible with Prebid 1.0.


AOL Prebid 1.28.0
----------------
Updated to Prebid 0.28.0
Expand Down
10 changes: 5 additions & 5 deletions gulpHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ module.exports = {
externalModules = externalModules || [];
var internalModules;
try {
internalModules = fs.readdirSync(MODULE_PATH)
var absoluteModulePath = path.join(__dirname, MODULE_PATH);
internalModules = fs.readdirSync(absoluteModulePath)
.filter(file => !(/(^|\/)\.[^\/\.]/g).test(file))
.reduce((memo, file) => {
var moduleName = file.split(new RegExp('[.\\' + path.sep + ']'))[0];
var filePath = path.join(MODULE_PATH, file);
var modulePath = path.join(__dirname, filePath)
if (fs.lstatSync(filePath).isDirectory()) {
modulePath = path.join(__dirname, filePath, "index.js")
var modulePath = path.join(absoluteModulePath, file);
if (fs.lstatSync(modulePath).isDirectory()) {
modulePath = path.join(modulePath, "index.js")
}
memo[modulePath] = moduleName;
return memo;
Expand Down
44 changes: 33 additions & 11 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var opens = require('open');
var webpackConfig = require('./webpack.conf');
var helpers = require('./gulpHelpers');
var del = require('del');
var gulpJsdoc2md = require('gulp-jsdoc-to-markdown');
var gulpDocumentation = require('gulp-documentation');
var concat = require('gulp-concat');
var header = require('gulp-header');
var footer = require('gulp-footer');
Expand All @@ -26,6 +26,7 @@ var optimizejs = require('gulp-optimize-js');
var eslint = require('gulp-eslint');
var gulpif = require('gulp-if');
var sourcemaps = require('gulp-sourcemaps');
var through = require('through2');
var fs = require('fs');

var prebid = require('./package.json');
Expand All @@ -51,8 +52,25 @@ gulp.task('clean', function () {
.pipe(clean());
});

function bundle(dev) {
var modules = helpers.getArgModules(),
function gulpBundle(dev) {
return bundle(dev).pipe(gulp.dest('build/' + (dev ? 'dev' : 'dist')));
}

function nodeBundle(modules) {
return new Promise((resolve, reject) => {
bundle(false, modules)
.on('error', (err) => {
reject(err);
})
.pipe(through.obj(function(file, enc, done) {
resolve(file.contents.toString(enc));
done();
}));
});
}

function bundle(dev, moduleArr) {
var modules = moduleArr || helpers.getArgModules(),
allModules = helpers.getModuleNames(modules);

if(modules.length === 0) {
Expand Down Expand Up @@ -81,8 +99,7 @@ function bundle(dev) {
global: prebid.globalVarName
}
)))
.pipe(gulpif(dev, sourcemaps.write('.')))
.pipe(gulp.dest('build/' + (dev ? 'dev' : 'dist')));
.pipe(gulpif(dev, sourcemaps.write('.')));
}

// Workaround for incompatibility between Karma & gulp callbacks.
Expand All @@ -97,9 +114,13 @@ function newKarmaCallback(done) {
}
}

gulp.task('build-bundle-dev', ['devpack'], bundle.bind(null, true));
gulp.task('build-bundle-prod', ['webpack'], bundle.bind(null, false));
gulp.task('bundle', bundle.bind(null, false)); // used for just concatenating pre-built files with no build step
gulp.task('build-bundle-dev', ['devpack'], gulpBundle.bind(null, true));
gulp.task('build-bundle-prod', ['webpack'], gulpBundle.bind(null, false));
gulp.task('bundle', gulpBundle.bind(null, false)); // used for just concatenating pre-built files with no build step

gulp.task('bundle-to-stdout', function() {
nodeBundle().then(file => console.log(file));
});

gulp.task('devpack', ['clean'], function () {
var cloned = _.cloneDeep(webpackConfig);
Expand Down Expand Up @@ -234,10 +255,9 @@ gulp.task('clean-docs', function () {

gulp.task('docs', ['clean-docs'], function () {
return gulp.src('src/prebid.js')
.pipe(concat('readme.md'))
.pipe(gulpJsdoc2md())
.pipe(gulpDocumentation('md'))
.on('error', function (err) {
gutil.log('jsdoc2md failed:', err.message);
gutil.log('`gulp-documentation` failed:', err.message);
})
.pipe(gulp.dest('docs'));
});
Expand Down Expand Up @@ -291,3 +311,5 @@ gulp.task('build-postbid', function() {
.pipe(uglify())
.pipe(gulp.dest('build/dist'));
});

module.exports = nodeBundle;
12 changes: 12 additions & 0 deletions integrationExamples/gpt/amp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
This README provides steps to run amp example page.

Add following entries to your hosts file

127.0.0.1 publisher.com
127.0.0.1 amp.publisher.com

Command to run

gulp serve --https

Additional documentation can be found at [Prebid AMP](http://prebid.org/dev-docs/how-prebid-on-amp-works.html)
10 changes: 5 additions & 5 deletions integrationExamples/gpt/amp/amp_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
-->
<meta charset="utf-8">
<title>Hello, AMPs</title>
<link rel="canonical" href="http://example.ampproject.org/article-metadata.html" />
<link rel="canonical" href="https://example.ampproject.org/article-metadata.html" />
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">

<!-- The following meta tag specifies the path to the publisher-hosted file to use as the
Expand All @@ -22,15 +22,15 @@
domains and ports are:
https://publisher.com:9999/amp_page.html
and
https://amp.publisher.com:5000/remote.html
https://amp.publisher.com:9999/remote.html

Further reading
AMP documentation <amp-ad> spec
https://www.ampproject.org/docs/reference/components/amp-ad
See sections on "Running ads from a custom domain" and "Enhance incoming ad
configuration" for more details on techniques used here.
-->
<meta name="amp-3p-iframe-src" content="https://amp.publisher.com:5000/remote.html">
<meta name="amp-3p-iframe-src" content="https://amp.publisher.com:9999/integrationExamples/gpt/amp/remote.html">

<script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>
<script type="application/ld+json">
Expand All @@ -55,7 +55,7 @@ <h1>Welcome to the mobile web</h1>
height="250"
layout="fixed"
type="doubleclick"
json='{"prebid":{"requestBidsDuration":1000,"adUnits":[{"code":"/19968336/header-bid-tag-1","sizes":[[300,250],[300,600],[300,250],[100,100]],"bids":[{"bidder":"appnexusAst","params":{"placementId":"10433394","dealId":"some deal!"}},{"bidder":"aol","params":{"network":"10077.1","placement":3671670}},{"bidder":"sovrn","params":{"tagid":"315045"}}]},{"code":"/19968336/header-bid-tag-2","sizes":[[300,250],[300,600],[300,250],[100,100]],"bids":[{"bidder":"appnexusAst","params":{"placementId":"10433394","dealId":"some deal!"}},{"bidder":"aol","params":{"network":"10077.1","placement":3671670}},{"bidder":"sovrn","params":{"tagid":"315045"}}]}]}}'
json='{"prebid": {"requestBidsDuration": 1000,"adUnits": [{"code": "/19968336/header-bid-tag-1","sizes": [[300, 250],[300, 600],[300, 250],[100, 100]],"bids": [{"bidder": "appnexus","params": {"placementId": "10433394","dealId": "some deal!"}}]}, {"code": "/19968336/header-bid-tag-2","sizes": [[300, 250],[300, 600],[300, 250],[100, 100]],"bids": [{"bidder": "appnexus","params": {"placementId": "10433394","dealId": "some deal!"}}]}]}}'
data-slot="/19968336/header-bid-tag-1">
</amp-ad>

Expand All @@ -64,7 +64,7 @@ <h1>Welcome to the mobile web</h1>
height="250"
layout="fixed"
type="doubleclick"
json='{"prebid":{"requestBidsDuration":1000,"adUnits":[{"code":"/19968336/header-bid-tag-1","sizes":[[300,250],[300,600],[300,250],[100,100]],"bids":[{"bidder":"appnexusAst","params":{"placementId":"10433394","dealId":"some deal!"}},{"bidder":"aol","params":{"network":"10077.1","placement":3671670}},{"bidder":"sovrn","params":{"tagid":"315045"}}]},{"code":"/19968336/header-bid-tag-2","sizes":[[300,250],[300,600],[300,250],[100,100]],"bids":[{"bidder":"appnexusAst","params":{"placementId":"10433394","dealId":"some deal!"}},{"bidder":"aol","params":{"network":"10077.1","placement":3671670}},{"bidder":"sovrn","params":{"tagid":"315045"}}]}]}}'
json='{"prebid": {"requestBidsDuration": 1000,"adUnits": [{"code": "/19968336/header-bid-tag-1","sizes": [[300, 250],[300, 600],[300, 250],[100, 100]],"bids": [{"bidder": "appnexus","params": {"placementId": "10433394","dealId": "some deal!"}}]}, {"code": "/19968336/header-bid-tag-2","sizes": [[300, 250],[300, 600],[300, 250],[100, 100]],"bids": [{"bidder": "appnexus","params": {"placementId": "10433394","dealId": "some deal!"}}]}]}}'
data-slot="/19968336/header-bid-tag-2">
</amp-ad>

Expand Down
4 changes: 4 additions & 0 deletions integrationExamples/gpt/pbjs_example_gpt.html
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@
floor: 1.50 // Dynamic bid floor - optional
}
},
{
bidder: 'yieldmo',
params: {}
},
{
bidder: 'adequant',
params: {
Expand Down
Loading