Skip to content

Commit e3763a0

Browse files
anastasiiapankivFSibb-jilejsnellbakerYuriyVelichkoPIYuriyVelichkoOpenX
authored
PFG-2532 update to 1.16.0 (#5)
* add support for catching errors from postscribe library (prebid#129) * Prebid Universal Creative 1.12.0 Release * increment pre version * Static vast tag for mobile rendering API for rewarded video (prebid#148) * the static vast tag for mobile rendering API for rewarded video * update gulpfile to handle static vast XML file in build process Co-authored-by: Yuriy Velichko <yuriy.velichko@openx.com> Co-authored-by: Jason Snellbaker <jsnellbaker@appnexus.com> * temporarily disable unit test (prebid#149) * Prebid Universal Creative 1.13.0 Release * increment pre version * Signal AD_RENDER_FAILED / AD_RENDER_SUCCEEDED events to Prebid (prebid#152) Add a new type of cross-origin message ('Prebid Message') to signal when render-related events should be generated by Prebid. * Add issue tracking workflow: automatically create project items for new issues (prebid#161) * Upgrade dependencies make the build work on recent(ish) versions of Node (prebid#159) * Use MessageChannel for cross-frame messages (prebid#154) * Use MessageChannel for cross-frame messages * Use transformAuctionTargetingData for nativeTrackerManager * readme: removed 'coming soon' message (prebid#170) * Remove <!doctype> from markup before rendering with postscribe (prebid#172) * Bump got from 11.8.3 to 11.8.5 (prebid#169) Bumps [got](https://github.com/sindresorhus/got) from 11.8.3 to 11.8.5. - [Release notes](https://github.com/sindresorhus/got/releases) - [Commits](sindresorhus/got@v11.8.3...v11.8.5) --- updated-dependencies: - dependency-name: got dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump copy-props from 2.0.4 to 2.0.5 (prebid#163) Bumps [copy-props](https://github.com/gulpjs/copy-props) from 2.0.4 to 2.0.5. - [Release notes](https://github.com/gulpjs/copy-props/releases) - [Changelog](https://github.com/gulpjs/copy-props/blob/master/CHANGELOG.md) - [Commits](gulpjs/copy-props@2.0.4...2.0.5) --- updated-dependencies: - dependency-name: copy-props dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump tar from 4.4.8 to 4.4.19 (prebid#162) Bumps [tar](https://github.com/npm/node-tar) from 4.4.8 to 4.4.19. - [Release notes](https://github.com/npm/node-tar/releases) - [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md) - [Commits](isaacs/node-tar@v4.4.8...v4.4.19) --- updated-dependencies: - dependency-name: tar dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Replace missing native assets with empty strings (prebid#171) * Replace missing native assets with empty strings * Update: Replace missing native assets with empty strings * Fix: Replace missing native assets with empty strings Co-authored-by: anita.schiller <anita.schiller@gutefrage.net> * Fix bugs / tests with empty string default for missing assets (prebid#178) * Fix bugs / tests with empty string default for missing assets * Run tests on PRs * Update test browsers to be in line with Prebid.js * Update circleCI image to be in line with the one used for releases * Bump yargs-parser from 5.0.0 to 5.0.1 (prebid#164) Bumps [yargs-parser](https://github.com/yargs/yargs-parser) from 5.0.0 to 5.0.1. - [Release notes](https://github.com/yargs/yargs-parser/releases) - [Changelog](https://github.com/yargs/yargs-parser/blob/v5.0.1/CHANGELOG.md) - [Commits](yargs/yargs-parser@v5.0.0...v5.0.1) --- updated-dependencies: - dependency-name: yargs-parser dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Native ortb (prebid#150) * if there is an ortb2 field pass it to renderAd function * replace ortb2 with ortb * handle impression and clicktrackers within puc * fix tests * add tests for native ortb trackers * add openRTB feature for adTemplate * add unit test for native ortb * fix unit test post rebase * convert legacy templates to ortb templates * set the width of the iframe to the parent div width * native renderer receives both legacy and ortb assets * only resize the native ad when the size is 1x1 * send message to trigger trackers on pbjs * default: return empty string if no asset is found * add suport for eventtrackers as of native ortb 1.2 * fix broken test introduced with prebid#171 * fix broken test introduced with prebid#171 * remove accidentally added files * fixes after rebasing Co-authored-by: Michele Nasti <michele@rtk.io> Co-authored-by: Michele Nasti <musikele@users.noreply.github.com> * Bump engine.io and karma (prebid#173) Bumps [engine.io](https://github.com/socketio/engine.io) and [karma](https://github.com/karma-runner/karma). These dependencies needed to be updated together. Updates `engine.io` from 3.2.1 to 6.2.0 - [Release notes](https://github.com/socketio/engine.io/releases) - [Changelog](https://github.com/socketio/engine.io/blob/main/CHANGELOG.md) - [Commits](socketio/engine.io@3.2.1...6.2.0) Updates `karma` from 4.3.0 to 6.4.0 - [Release notes](https://github.com/karma-runner/karma/releases) - [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md) - [Commits](karma-runner/karma@v4.3.0...v6.4.0) --- updated-dependencies: - dependency-name: engine.io dependency-type: indirect - dependency-name: karma dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Prebid Universal Creative 1.14.0 release * Increment version to 1.15.0-pre * Bump ejs and webdriverio (prebid#184) Bumps [ejs](https://github.com/mde/ejs) to 3.1.8 and updates ancestor dependency [webdriverio](https://github.com/webdriverio/webdriverio). These dependencies need to be updated together. Updates `ejs` from 3.1.6 to 3.1.8 - [Release notes](https://github.com/mde/ejs/releases) - [Changelog](https://github.com/mde/ejs/blob/main/CHANGELOG.md) - [Commits](mde/ejs@v3.1.6...v3.1.8) Updates `webdriverio` from 4.14.4 to 7.25.2 - [Release notes](https://github.com/webdriverio/webdriverio/releases) - [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md) - [Commits](webdriverio/webdriverio@v4.14.4...v7.25.2) --- updated-dependencies: - dependency-name: ejs dependency-type: indirect - dependency-name: webdriverio dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Separate puc (prebid#165) * separate puc into multiple output files based on format * shake plugin * move stuff around for easier treeshaking * add building legacy 'creative.js' for backwards compatibility fix docs and style * Static vast tag for mobile rendering API for rewarded video (prebid#148) * temporarily disable unit test (prebid#149) * Signal AD_RENDER_FAILED / AD_RENDER_SUCCEEDED events to Prebid (prebid#152) * Add issue tracking workflow: automatically create project items for new issues * add .npmignore to not break jsdelivr * avoid code duplicates in gulpfile * fix renderCrossDomain after rebase * fixes post rebase * in order to support tree-shaking, environment is not an object anymore * remove deprecation warning from uid.js * update creative in the readme.md * add test for legacyNativeRender to accept only one argument * added package-lock so npm ci doesn't fail * fix to first argument of call method * fix for iframe width not being resized correctly when creative is safeframe * add generation of legacy files on watch * new package lock with newer dependencies Co-authored-by: Filip Stamenkovic <ficadub@gmail.com> Co-authored-by: Michele Nasti <michele@rtk.io> * add buil-dev task (prebid#189) Co-authored-by: Michele Nasti <michele@rtk.io> * make the project work with node latest; upgrade wdio (prebid#188) * make the project work with node latest; upgrade wdio * remove engine property Co-authored-by: Michele Nasti <michele@rtk.io> * Bump qs and body-parser (prebid#197) Bumps [qs](https://github.com/ljharb/qs) and [body-parser](https://github.com/expressjs/body-parser). These dependencies needed to be updated together. Updates `qs` from 6.9.0 to 6.11.0 - [Release notes](https://github.com/ljharb/qs/releases) - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](ljharb/qs@v6.9.0...v6.11.0) Updates `body-parser` from 1.19.0 to 1.20.1 - [Release notes](https://github.com/expressjs/body-parser/releases) - [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md) - [Commits](expressjs/body-parser@1.19.0...1.20.1) --- updated-dependencies: - dependency-name: qs dependency-type: indirect - dependency-name: body-parser dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump decode-uri-component from 0.2.0 to 0.2.2 (prebid#195) Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. - [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases) - [Commits](SamVerschueren/decode-uri-component@v0.2.0...v0.2.2) --- updated-dependencies: - dependency-name: decode-uri-component dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump engine.io from 6.2.0 to 6.2.1 (prebid#192) Bumps [engine.io](https://github.com/socketio/engine.io) from 6.2.0 to 6.2.1. - [Release notes](https://github.com/socketio/engine.io/releases) - [Changelog](https://github.com/socketio/engine.io/blob/main/CHANGELOG.md) - [Commits](socketio/engine.io@6.2.0...6.2.1) --- updated-dependencies: - dependency-name: engine.io dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * hb_native_privicon (prebid#194) Co-authored-by: skoklowski <slawomir.koklowski@ringieraxelspringer.pl> * Prebid Universal Creative 1.15.0 release * Increment version to 1.16.0-pre * Add macro to track clicks (prebid#196) * added support for GAM macro %%CLICK_URL_UNESC%% * add tests for %%CLICK_URL_UNESC%% * add info about clickUrlUnesc in readme Co-authored-by: Michele Nasti <michele@rtk.io> * Update issue_tracker.yml for new GH API (prebid#203) * Replace all placeholders with the corresponding ortb assets (prebid#211) * Replace all placeholders with the corresponding ortb assets * Add test for replacing all placeholders * Use gulp in test script --------- Co-authored-by: anita.schiller <anita.schiller@gutefrage.net> * Remove DOCTYPE from markup for app/amp/mobile (prebid#210) * Bump http-cache-semantics from 4.1.0 to 4.1.1 (prebid#205) Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/kornelski/http-cache-semantics/releases) - [Commits](kornelski/http-cache-semantics@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: http-cache-semantics dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump ua-parser-js from 0.7.32 to 0.7.33 (prebid#202) Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 0.7.32 to 0.7.33. - [Release notes](https://github.com/faisalman/ua-parser-js/releases) - [Changelog](https://github.com/faisalman/ua-parser-js/blob/master/changelog.md) - [Commits](faisalman/ua-parser-js@0.7.32...0.7.33) --- updated-dependencies: - dependency-name: ua-parser-js dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump minimist, mkdirp, handlebars, karma-mocha and mocha (prebid#207) Bumps [minimist](https://github.com/minimistjs/minimist) to 1.2.8 and updates ancestor dependencies [minimist](https://github.com/minimistjs/minimist), [mkdirp](https://github.com/isaacs/node-mkdirp), [handlebars](https://github.com/wycats/handlebars.js), [karma-mocha](https://github.com/karma-runner/karma-mocha) and [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together. Updates `minimist` from 1.2.0 to 1.2.8 - [Release notes](https://github.com/minimistjs/minimist/releases) - [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md) - [Commits](minimistjs/minimist@v1.2.0...v1.2.8) Updates `mkdirp` from 0.5.1 to 0.5.6 - [Release notes](https://github.com/isaacs/node-mkdirp/releases) - [Changelog](https://github.com/isaacs/node-mkdirp/blob/main/CHANGELOG.md) - [Commits](isaacs/node-mkdirp@0.5.1...v0.5.6) Updates `handlebars` from 4.4.3 to 4.7.7 - [Release notes](https://github.com/wycats/handlebars.js/releases) - [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md) - [Commits](handlebars-lang/handlebars.js@v4.4.3...v4.7.7) Updates `karma-mocha` from 1.3.0 to 2.0.1 - [Release notes](https://github.com/karma-runner/karma-mocha/releases) - [Changelog](https://github.com/karma-runner/karma-mocha/blob/master/CHANGELOG.md) - [Commits](karma-runner/karma-mocha@v1.3.0...v2.0.1) Updates `mocha` from 5.2.0 to 10.2.0 - [Release notes](https://github.com/mochajs/mocha/releases) - [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md) - [Commits](mochajs/mocha@v5.2.0...v10.2.0) --- updated-dependencies: - dependency-name: minimist dependency-type: indirect - dependency-name: mkdirp dependency-type: indirect - dependency-name: handlebars dependency-type: indirect - dependency-name: karma-mocha dependency-type: direct:development - dependency-name: mocha dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump socket.io-parser from 4.2.1 to 4.2.4 (prebid#214) Bumps [socket.io-parser](https://github.com/socketio/socket.io-parser) from 4.2.1 to 4.2.4. - [Release notes](https://github.com/socketio/socket.io-parser/releases) - [Changelog](https://github.com/socketio/socket.io-parser/blob/main/CHANGELOG.md) - [Commits](socketio/socket.io-parser@4.2.1...4.2.4) --- updated-dependencies: - dependency-name: socket.io-parser dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Improve resize logic for native (prebid#193) * Log error when renderAd lookup failed (prebid#217) * Emit AD_RENDER_SUCCEEDED and AD_RENDER_FAILED for native ads (prebid#199) * Emit AD_RENDER_SUCCEEDED and AD_RENDER_FAILED for native ads * Merge master * Bump fsevents from 1.2.9 to 1.2.13 (prebid#220) Bumps [fsevents](https://github.com/fsevents/fsevents) from 1.2.9 to 1.2.13. - [Release notes](https://github.com/fsevents/fsevents/releases) - [Commits](fsevents/fsevents@v1.2.9...v1.2.13) --- updated-dependencies: - dependency-name: fsevents dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Prebid Universal Creative 1.16.0 release * re-applied freestar logic to new codebase --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Jiří Leták <jiri.letak@ibillboard.com> Co-authored-by: Jason Snellbaker <jsnellbaker@appnexus.com> Co-authored-by: Yuriy Velichko <yuriy.velichko@postindustria.com> Co-authored-by: Yuriy Velichko <yuriy.velichko@openx.com> Co-authored-by: jsnellbaker <31102355+jsnellbaker@users.noreply.github.com> Co-authored-by: Demetrio Girardi <demetrio.girardi@gmail.com> Co-authored-by: Demetrio Girardi <dgirardi@prebid.org> Co-authored-by: bretg <bgorsline@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: anitaschiller <77627311+anitaschiller@users.noreply.github.com> Co-authored-by: anita.schiller <anita.schiller@gutefrage.net> Co-authored-by: Filip Stamenkovic <ficadub@gmail.com> Co-authored-by: Michele Nasti <michele@rtk.io> Co-authored-by: Michele Nasti <musikele@users.noreply.github.com> Co-authored-by: Prebid.js automated release <prebidjs-release@prebid.org> Co-authored-by: Sławomir Kokłowski <38455696+skoklowski@users.noreply.github.com> Co-authored-by: skoklowski <slawomir.koklowski@ringieraxelspringer.pl> Co-authored-by: Sir-Will <brieftaubenman@gmail.com>
1 parent ab58cb7 commit e3763a0

40 files changed

+16309
-13042
lines changed

.babelrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"plugins": [
66
"transform-object-assign",
77
"transform-es3-property-literals",
8-
"transform-es3-member-expression-literals",
9-
"@babel/plugin-transform-modules-commonjs"
8+
"transform-es3-member-expression-literals"
109
]
1110
}

.circleci/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs:
77
build:
88
docker:
99
# specify the version you desire here
10-
- image: circleci/node:8.9.0
11-
10+
- image: circleci/node:14.18.2-browsers
11+
1212
# Specify service dependencies here if necessary
1313
# CircleCI maintains a library of pre-built images
1414
# documented at https://circleci.com/docs/2.0/circleci-images/
@@ -45,6 +45,6 @@ jobs:
4545
# Run the file with user's access key
4646
./BrowserStackLocal ${BROWSERSTACK_ACCESS_KEY} &
4747
# run tests!
48-
- run:
48+
- run:
4949
name: BrowserStack testing
5050
command: gulp test --browserstack

.github/workflows/issue_tracker.yml

+104
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
name: Issue tracking
2+
on:
3+
issues:
4+
types:
5+
- opened
6+
permissions:
7+
contents: read
8+
jobs:
9+
track_issue:
10+
permissions:
11+
contents: none
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Generate token
15+
id: generate_token
16+
uses: tibdex/github-app-token@021a2405c7f990db57f5eae5397423dcc554159c
17+
with:
18+
app_id: ${{ secrets.ISSUE_APP_ID }}
19+
private_key: ${{ secrets.ISSUE_APP_PEM }}
20+
21+
- name: Get project data
22+
env:
23+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
24+
ORGANIZATION: prebid
25+
DATE_FIELD: Created on
26+
PROJECT_NUMBER: 2
27+
run: |
28+
gh api graphql -f query='
29+
query($org: String!, $number: Int!) {
30+
organization(login: $org){
31+
projectV2(number: $number) {
32+
id
33+
fields(first:100) {
34+
nodes {
35+
... on ProjectV2Field {
36+
id
37+
name
38+
}
39+
... on ProjectV2SingleSelectField {
40+
id
41+
name
42+
options {
43+
id
44+
name
45+
}
46+
}
47+
}
48+
}
49+
}
50+
}
51+
}' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json
52+
53+
echo 'PROJECT_ID='$(jq '.data.organization.projectV2.id' project_data.json) >> $GITHUB_ENV
54+
echo 'DATE_FIELD_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name=="'"$DATE_FIELD"'") | .id' project_data.json) >> $GITHUB_ENV
55+
56+
- name: Add issue to project
57+
env:
58+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
59+
ISSUE_ID: ${{ github.event.issue.node_id }}
60+
run: |
61+
gh api graphql -f query='
62+
mutation($project:ID!, $issue:ID!) {
63+
addProjectV2ItemById(input: {projectId: $project, contentId: $issue}) {
64+
item {
65+
id
66+
content {
67+
... on Issue {
68+
createdAt
69+
}
70+
... on PullRequest {
71+
createdAt
72+
}
73+
}
74+
}
75+
}
76+
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID > issue_data.json
77+
78+
echo 'ITEM_ID='$(jq '.data.addProjectV2ItemById.item.id' issue_data.json) >> $GITHUB_ENV
79+
echo 'ITEM_CREATION_DATE='$(jq '.data.addProjectV2ItemById.item.content.createdAt' issue_data.json | cut -c 2-11) >> $GITHUB_ENV
80+
81+
- name: Set fields
82+
env:
83+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
84+
run: |
85+
gh api graphql -f query='
86+
mutation (
87+
$project: ID!
88+
$item: ID!
89+
$date_field: ID!
90+
$date_value: Date!
91+
) {
92+
set_creation_date: updateProjectV2ItemFieldValue(input: {
93+
projectId: $project
94+
itemId: $item
95+
fieldId: $date_field
96+
value: {
97+
date: $date_value
98+
}
99+
}) {
100+
projectV2Item {
101+
id
102+
}
103+
}
104+
}' -f project=$PROJECT_ID -f item=$ITEM_ID -f date_field=$DATE_FIELD_ID -f date_value=$ITEM_CREATION_DATE --silent

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
node_modules/
33
build
44
coverage
5-
.idea
6-
dist
5+
dist/
6+
.idea/

.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
build
3+
coverage

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.7.0
1+
14.18.3

README.md

+39-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Prebid Universal Creative is a javascript api to render multiple formats. This file is inserted into the prebid creative as a placeholder for the winning prebid creative. It should support the following formats:
44
- Banner
55
- Outstream Video
6-
- Mobile (Coming Soon)
6+
- Mobile
77
- AMP creatives
88
- All safeFrame creatives
99

@@ -14,13 +14,18 @@ You can find a detailed explanations on the [Prebid Universal Creative](http://p
1414
> **important:** If you’re using the `Send All Bids` scenario (where every bidder has a separate order), the creative and targeting will be different from the example shown here. See [Send All Bids](http://prebid.org/adops/send-all-bids-adops.html) for details.
1515
1616
```html
17-
<script src = "https://cdn.jsdelivr.net/npm/prebid-universal-creative@latest/dist/creative.js"></script>
17+
<script src = "https://cdn.jsdelivr.net/npm/prebid-universal-creative@latest/dist/%%PATTERN:hb_format%%.js"></script>
1818
<script>
1919
var ucTagData = {};
2020
ucTagData.adServerDomain = "";
2121
ucTagData.pubUrl = "%%PATTERN:url%%";
2222
ucTagData.targetingMap = %%PATTERN:TARGETINGMAP%%;
2323
ucTagData.hbPb = "%%PATTERN:hb_pb%%";
24+
ucTagData.hbFormat = "%%PATTERN:hb_format%%";
25+
ucTagData.adId = "%%PATTERN:hb_adid%%";
26+
// if you're using GAM and want to track outbound clicks on native ads you can add this line
27+
ucTagData.clickUrlUnesc = "%%CLICK_URL_UNESC%%";
28+
ucTagData.requestAllAssets = true;
2429
2530
try {
2631
ucTag.renderAd(document, ucTagData);
@@ -30,6 +35,16 @@ You can find a detailed explanations on the [Prebid Universal Creative](http://p
3035
</script>
3136
```
3237

38+
Creative created like described above will work for all formats:
39+
- amp
40+
- banner
41+
- mobile
42+
- native
43+
- video (outstream video)
44+
45+
Which means that the same creative code can be reused on all formats.
46+
Universal creative library is loaded with `%%PATTERN:hb_format%%.js` path. Which means for each `hb_format` targeting key-value, separate `.js` library will be loaded.
47+
3348
> Note: Some build tools make explicit use of Node features which have been introduced in version *8.9.0*. Please make sure you're using the correct Node version (>8.9.0) before you proceed to create your own build using the commands listed below.
3449
3550
## Install
@@ -58,14 +73,33 @@ Starts a web server at `http://localhost:9999` serving from the project root and
5873
+ `./build/creative.js` - Full source code for dev and debug
5974
+ `./build/creative.js.map` - Source map for dev and debug
6075

61-
## Freestar Build For Staging and Production
76+
## Build for production
77+
78+
We publish `prebid-universal-creative` as npm package on npmjs.com
79+
80+
When we run `npm publish`, prepublish script of package.json is executed. Scripts given in prepublish Run BEFORE the package is packed and published. See https://docs.npmjs.com/misc/scripts
6281

6382
`gulp build` is executed before publish. It creates two files in dist directory
6483

65-
+ `./dist/creative.js` - Minified creative.js source code
66-
+ `./dist/creative.max.js` - Unminified source code to help in debugging.
84+
+ `./dist/amp.js` - Minified amp.js source code (responsible for rendering amp ads)
85+
+ `./dist/banner.js` - Minified banner.js source code (responsible for rendering banner ads)
86+
+ `./dist/mobile.js` - Minified mobile.js source code (responsible for rendering mobile ads)
87+
+ `./dist/native.js` - Minified native.js source code (responsible for rendering native ads)
88+
+ `./dist/video.js` - Minified video.js source code (responsible for rendering outstream video ads)
89+
6790
[jsDelivr](https://www.jsdelivr.com/) – Open Source CDN is used to serve creative.js file.
6891

92+
## Freestar Build For Staging and Production
93+
94+
`gulp build` is executed before publish. It creates following files in dist directory
95+
96+
+ `./dist/amp.js` - Minified amp.js source code (responsible for rendering amp ads)
97+
+ `./dist/banner.js` - Minified banner.js source code (responsible for rendering banner ads)
98+
+ `./dist/mobile.js` - Minified mobile.js source code (responsible for rendering mobile ads)
99+
+ `./dist/native.js` - Minified native.js source code (responsible for rendering native ads)
100+
+ `./dist/video.js` - Minified video.js source code (responsible for rendering outstream video ads)
101+
[jsDelivr](https://www.jsdelivr.com/) – Open Source CDN is used to serve creative.js file.
102+
69103
## Freestar Deployment
70104
```
71105
$ bash bin/publish.sh

bin/publish.sh

+35-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ read -p "
1919
If you are missing the dev-a sub domain that means you will be publishing to PRODUCTION.
2020
2121
22-
Are you sure you're ready to publish the file prebid-universal-creative.js to $DOMAIN?" -n 1 -r
22+
Are you sure you're ready to publish following files:
23+
- prebid-universal-creative-amp.js
24+
- prebid-universal-creative-banner.js
25+
- prebid-universal-creative-mobile.js
26+
- prebid-universal-creative-native.js
27+
- prebid-universal-creative-video.js
28+
to $DOMAIN?" -n 1 -r
2329
if [[ $REPLY =~ ^[Yy]$ ]]; then
2430
echo -e "${GREN}*** OKAY ***"
2531
PARENT_DIRECTORY="$(dirname $( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) )"
@@ -28,10 +34,35 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
2834
echo -e "${RED}*** DID YOU FORGET TO BUILD? ***${NC}"
2935
exit 1
3036
fi
31-
FILE=$PARENT_DIRECTORY/dist/creative.js
37+
38+
FILE=$PARENT_DIRECTORY/dist/amp.js
39+
echo -e "${GREEN}Built File ${FILE}"
40+
gsutil mv $PARENT_DIRECTORY/dist/amp.js gs://$DOMAIN/core/prebid-universal-creative-amp.js
41+
echo -e "${GREEN}Setting permissions for $FILE...${NC}"
42+
gsutil acl ch -u AllUsers:R gs://$DOMAIN/core/prebid-universal-creative-amp.js
43+
44+
FILE=$PARENT_DIRECTORY/dist/banner.js
45+
echo -e "${GREEN}Built File ${FILE}"
46+
gsutil mv $PARENT_DIRECTORY/dist/banner.js gs://$DOMAIN/core/prebid-universal-creative-banner.js
47+
echo -e "${GREEN}Setting permissions for $FILE...${NC}"
48+
gsutil acl ch -u AllUsers:R gs://$DOMAIN/core/prebid-universal-creative-banner.js
49+
50+
FILE=$PARENT_DIRECTORY/dist/mobile.js
51+
echo -e "${GREEN}Built File ${FILE}"
52+
gsutil mv $PARENT_DIRECTORY/dist/mobile.js gs://$DOMAIN/core/prebid-universal-creative-mobile.js
53+
echo -e "${GREEN}Setting permissions for $FILE...${NC}"
54+
gsutil acl ch -u AllUsers:R gs://$DOMAIN/core/prebid-universal-creative-mobile.js
55+
56+
FILE=$PARENT_DIRECTORY/dist/native.js
57+
echo -e "${GREEN}Built File ${FILE}"
58+
gsutil mv $PARENT_DIRECTORY/dist/native.js gs://$DOMAIN/core/prebid-universal-creative-native.js
59+
echo -e "${GREEN}Setting permissions for $FILE...${NC}"
60+
gsutil acl ch -u AllUsers:R gs://$DOMAIN/core/prebid-universal-creative-native.js
61+
62+
FILE=$PARENT_DIRECTORY/dist/video.js
3263
echo -e "${GREEN}Built File ${FILE}"
33-
gsutil mv $PARENT_DIRECTORY/dist/creative.js gs://$DOMAIN/core/prebid-universal-creative.js
64+
gsutil mv $PARENT_DIRECTORY/dist/video.js gs://$DOMAIN/core/prebid-universal-creative-video.js
3465
echo -e "${GREEN}Setting permissions for $FILE...${NC}"
35-
gsutil acl ch -u AllUsers:R gs://$DOMAIN/core/prebid-universal-creative.js
66+
gsutil acl ch -u AllUsers:R gs://$DOMAIN/core/prebid-universal-creative-video.js
3667
fi
3768

browsers.json

+17-33
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,50 @@
11
{
2-
"bs_edge_16_windows_10": {
2+
"bs_edge_latest_windows_10": {
33
"base": "BrowserStack",
44
"os_version": "10",
55
"browser": "edge",
6-
"browser_version": "16.0",
6+
"browser_version": "latest",
77
"device": null,
88
"os": "Windows"
99
},
10-
"bs_edge_17_windows_10": {
11-
"base": "BrowserStack",
12-
"os_version": "10",
13-
"browser": "edge",
14-
"browser_version": "17.0",
15-
"device": null,
16-
"os": "Windows"
17-
},
18-
"bs_ie_11_windows_10": {
19-
"base": "BrowserStack",
20-
"os_version": "10",
21-
"browser": "ie",
22-
"browser_version": "11.0",
23-
"device": null,
24-
"os": "Windows"
25-
},
26-
"bs_chrome_76_windows_10": {
10+
"bs_chrome_latest_windows_10": {
2711
"base": "BrowserStack",
2812
"os_version": "10",
2913
"browser": "chrome",
30-
"browser_version": "76.0",
14+
"browser_version": "latest",
3115
"device": null,
3216
"os": "Windows"
3317
},
34-
"bs_chrome_77_windows_10": {
18+
"bs_chrome_87_windows_10": {
3519
"base": "BrowserStack",
3620
"os_version": "10",
3721
"browser": "chrome",
38-
"browser_version": "77.0",
22+
"browser_version": "87.0",
3923
"device": null,
4024
"os": "Windows"
4125
},
42-
"bs_firefox_68_windows_10": {
26+
"bs_firefox_latest_windows_10": {
4327
"base": "BrowserStack",
4428
"os_version": "10",
4529
"browser": "firefox",
46-
"browser_version": "68.0",
30+
"browser_version": "latest",
4731
"device": null,
4832
"os": "Windows"
4933
},
50-
"bs_firefox_69_windows_10": {
34+
"bs_safari_latest_mac_bigsur": {
5135
"base": "BrowserStack",
52-
"os_version": "10",
53-
"browser": "firefox",
54-
"browser_version": "69.0",
36+
"os_version": "Big Sur",
37+
"browser": "safari",
38+
"browser_version": "latest",
5539
"device": null,
56-
"os": "Windows"
40+
"os": "OS X"
5741
},
58-
"bs_safari_12.1_mac_mojave": {
42+
"bs_safari_15_catalina": {
5943
"base": "BrowserStack",
60-
"os_version": "Mojave",
44+
"os_version": "Catalina",
6145
"browser": "safari",
62-
"browser_version": "12.1",
46+
"browser_version": "13.1",
6347
"device": null,
6448
"os": "OS X"
6549
}
66-
}
50+
}

0 commit comments

Comments
 (0)