Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BMS Bid Adapter : initial release #12621

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

iagoBMS
Copy link

@iagoBMS iagoBMS commented Jan 6, 2025

Type of change

  • New bidder adapter

Related Documentation:

Description of change

Other information

Copy link

github-actions bot commented Jan 6, 2025

Tread carefully! This PR adds 17 linter errors (possibly disabled through directives):

  • modules/bmsBidAdapter.js (+17 errors)

Copy link

github-actions bot commented Jan 6, 2025

Tread carefully! This PR adds 17 linter errors (possibly disabled through directives):

  • modules/bmsBidAdapter.js (+17 errors)

@patmmccann patmmccann changed the title Feature/add bms bms bid adapter: initial release Jan 6, 2025
@ChrisHuie ChrisHuie changed the title bms bid adapter: initial release BMS Bid Adapter : initial release Jan 7, 2025
@@ -2,7 +2,7 @@
// creative will be rendered, e.g. GAM delivering a SafeFrame

// this code is autogenerated, also available in 'build/creative/creative.js'
<script>!function(){"use strict";const e="Prebid Event",n=(()=>{const e={frameBorder:0,scrolling:"no",marginHeight:0,marginWidth:0,topMargin:0,leftMargin:0,allowTransparency:"true"};return(n,t)=>{const r=n.createElement("iframe");return Object.entries(Object.assign({},t,e)).forEach((([e,n])=>r.setAttribute(e,n))),r}})();function t(e){return!!e.frames.__pb_locator__}window.pbRender=function(r){let o=r.parent;try{for(;o!==r.top&&!t(o);)o=o.parent;t(o)||(o=r.parent)}catch(e){}return function({adId:t,pubUrl:s,clickUrl:i}){const c=new URL(s,window.location).origin;function a(e,n,r){const s=new MessageChannel;s.port1.onmessage=u(r),o.postMessage(JSON.stringify(Object.assign({message:e,adId:t},n)),c,[s.port2])}function d(n){a(e,{event:"adRenderFailed",info:{reason:n?.reason||"exception",message:n?.message}}),n?.stack&&console.error(n)}function u(e){return function(){try{return e.apply(this,arguments)}catch(e){d(e)}}}a("Prebid Request",{options:{clickUrl:i}},(function(o){let s;try{s=JSON.parse(o.data)}catch(e){return}if("Prebid Response"===s.message&&s.adId===t){const t=n(r.document,{width:0,height:0,style:"display: none",srcdoc:`<script>${s.renderer}<\/script>`});t.onload=u((function(){const o=t.contentWindow;o.Promise.resolve(o.render(s,{sendMessage:a,mkFrame:n},r)).then((()=>a(e,{event:"adRenderSucceeded"})),d)})),r.document.body.appendChild(t)}}))}}(window)}();</script>
<script>(()=>{"use strict";const e="Prebid Event",n=(()=>{const e={frameBorder:0,scrolling:"no",marginHeight:0,marginWidth:0,topMargin:0,leftMargin:0,allowTransparency:"true"};return(n,t)=>{const r=n.createElement("iframe");return Object.entries(Object.assign({},t,e)).forEach((([e,n])=>r.setAttribute(e,n))),r}})();function t(e){return!!e.frames.__pb_locator__}window.pbRender=function(r){let o=r.parent;try{for(;o!==r.top&&!t(o);)o=o.parent;t(o)||(o=r.parent)}catch(e){}return function({adId:t,pubUrl:s,clickUrl:i}){const a=new URL(s,window.location).origin;function c(e,n,r){const s=new MessageChannel;s.port1.onmessage=l(r),o.postMessage(JSON.stringify(Object.assign({message:e,adId:t},n)),a,[s.port2])}function d(n){c(e,{event:"adRenderFailed",info:{reason:n?.reason||"exception",message:n?.message}}),n?.stack&&console.error(n)}function l(e){return function(){try{return e.apply(this,arguments)}catch(e){d(e)}}}c("Prebid Request",{options:{clickUrl:i}},(function(o){let s;try{s=JSON.parse(o.data)}catch(e){return}if("Prebid Response"===s.message&&s.adId===t){const t=n(r.document,{width:0,height:0,style:"display: none",srcdoc:`<script>${s.renderer}<\/script>`});t.onload=l((function(){const o=t.contentWindow;o.Promise.resolve(o.render(s,{sendMessage:c,mkFrame:n},r)).then((()=>c(e,{event:"adRenderSucceeded"})),d)})),r.document.body.appendChild(t)}}))}}(window)})();</script>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you remove changes to this file please. its autogenerated

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Copy link

github-actions bot commented Jan 8, 2025

Tread carefully! This PR adds 17 linter errors (possibly disabled through directives):

  • modules/bmsBidAdapter.js (+17 errors)

Copy link

github-actions bot commented Jan 8, 2025

Tread carefully! This PR adds 17 linter errors (possibly disabled through directives):

  • modules/bmsBidAdapter.js (+17 errors)

Copy link

Tread carefully! This PR adds 16 linter errors (possibly disabled through directives):

  • modules/bmsBidAdapter.js (+16 errors)

Copy link

Tread carefully! This PR adds 16 linter errors (possibly disabled through directives):

  • modules/bmsBidAdapter.js (+16 errors)

Copy link

Tread carefully! This PR adds 17 linter errors (possibly disabled through directives):

  • modules/bmsBidAdapter.js (+17 errors)

Copy link

Tread carefully! This PR adds 18 linter errors (possibly disabled through directives):

  • modules/bmsBidAdapter.js (+18 errors)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants