Skip to content

Commit

Permalink
Use actual global object name in log message (prebid#3874)
Browse files Browse the repository at this point in the history
- The global Prebid.js object name can be something other than 'pbjs'. Update log messages to reference the specified prebid global object name.
  • Loading branch information
Rooke authored and Alex committed Aug 1, 2019
1 parent 6c20726 commit a870d4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/dfpAdServerVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const defaultParamConstants = {
*/
export default function buildDfpVideoUrl(options) {
if (!options.params && !options.url) {
logError(`A params object or a url is required to use pbjs.adServers.dfp.buildVideoUrl`);
logError(`A params object or a url is required to use $$PREBID_GLOBAL$$.adServers.dfp.buildVideoUrl`);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const checkVideoBidSetup = hook('sync', function(bid, bidRequest, videoMe
if (!config.getConfig('cache.url') && bid.vastXml && !bid.vastUrl) {
logError(`
This bid contains only vastXml and will not work when a prebid cache url is not specified.
Try enabling prebid cache with pbjs.setConfig({ cache: {url: "..."} });
Try enabling prebid cache with $$PREBID_GLOBAL$$.setConfig({ cache: {url: "..."} });
`);
return false;
}
Expand Down

0 comments on commit a870d4f

Please sign in to comment.