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

Newspassid Bid Adapter: initial release #8567

Merged
merged 16 commits into from
Jul 12, 2022

Conversation

newspassid-prebid
Copy link
Contributor

Type of change

  • Bugfix
  • Feature
  • New bidder adapter
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Does this change affect user-facing APIs or examples documented on http://prebid.org?
  • Other

Description of change

New Bid Adapter: newspassid

  • test parameters for validating bids

//Banner adUnit

adUnits = [{
                    code: 'id-of-your-banner-div',
			        mediaTypes: {
			          banner: {
			            sizes: [[300, 250], [300,600]]
			          }
			        },
                    bids: [{
                        bidder: 'newspass',
                        params: {
                            publisherId: 'NEWSPASS0001', /* an ID to identify the publisher account  - required */
                            siteId: '4204204201', /* An ID used to identify a site within a publisher account - required */
                            placementId: '8000000015', /* an ID used to identify the piece of inventory - required - for appnexus test use 13144370. */
							customData: [{"settings": {}, "targeting": {"key": "value", "key2": ["value1", "value2"]}}],/* optional array with 'targeting' placeholder for passing publisher specific key-values for targeting. */                            
                        }
                    }]
                }];
  • contact email of the adapter’s maintainer:
    [email protected]

  • official adapter submission

spec test file for new bid adapter with biddercode: newspassid
newspassid prebid JS bid adapter
@patmmccann patmmccann changed the title New Bid Adapter: Newspassid Newspassid Bid Adapter: initial release Jun 16, 2022
newspassidBidAdapter.js Outdated Show resolved Hide resolved
@patmmccann
Copy link
Collaborator

you double added the spec file

moved bidAdapter.js file to correct folder (modules) and deleted duplicate spec file
@Rothalack
Copy link
Collaborator

Hey @newspassid-prebid, you need to create a .md file for this. It's basically the same as the .md file you did over here prebid/prebid.github.io#3849. The .md file needs to be here in /modules/newspassidBidAdapter.md

I noticed in that docs PR, for the bidder code you put 'newspass' and it needs to be 'newspassid'. I noticed this when trying to run it on the test page and it says newspass bidder doesn't exist.

adding md file to modules folder as requested.
@newspassid-prebid
Copy link
Contributor Author

newspassid-prebid commented Jun 21, 2022

Thanks @Rothalack - I've added the md file to the modules folder as requested. The .md file has newspassid defined as the biddercode so should be correct & I've updated the original test params bidder code to reference the correct bidder code.

fixes error in test params
@Rothalack
Copy link
Collaborator

I see you updated the docs PR .md file correctly. I do not see an update here on this PR to add the .md file in this repo. It sounds like you have added it on your end, maybe you just need to push the commit?

@newspassid-prebid
Copy link
Contributor Author

I see you updated the docs PR .md file correctly. I do not see an update here on this PR to add the .md file in this repo. It sounds like you have added it on your end, maybe you just need to push the commit?

yeap - my bad - just done!

modules/newspassidBidAdapter.js Outdated Show resolved Hide resolved
fixing latest feedback from prebid.org review
@newspassid-prebid
Copy link
Contributor Author

hi @Rothalack @patmmccann - any feedback - had pushed an update last week and requested a re-review - not sure if we need to do anything else - please advise ?

Copy link
Collaborator

@Rothalack Rothalack left a comment

Choose a reason for hiding this comment

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

It looks good to me, working in testing. I'll give Pat some time to respond.

modules/newspassidBidAdapter.js Outdated Show resolved Hide resolved
@newspassid-prebid
Copy link
Contributor Author

@patmmccann - noticing the circle CI tests are failing - not sure why - its refusing to import chai so not sure this is down to something I've done - the edits committed shouldn't have caused any these issues ?

updating version number - re-committing to see if circle CI tests now pass
@AskRupert-DM
Copy link
Contributor

AskRupert-DM commented Jul 7, 2022

tried recommitting my files - the circleCI tests removed the 'Restoring Cache' error but I'm still seeing errors on the Browserstack test - there's import failures being logged for standard modules/files which I don't think is caused by the spec files per say. Let us know your thoughts when you can @Rothalack @patmmccann

should fix circleCi failures!
@patmmccann patmmccann merged commit a2462cc into prebid:master Jul 12, 2022
bwhisp pushed a commit to bwhisp/Prebid.js that referenced this pull request Jul 13, 2022
* New bid adapter: newspassid spec test

spec test file for new bid adapter with biddercode: newspassid

* New Bid Adapter: newspassid

newspassid prebid JS bid adapter

* fixed tests

fixed tests

* Rename newspassBidAdapter.js to newspassidBidAdapter.js

renamed to correct bidder code

* Update newspassidBidAdapter_spec.js

* Deleted duplicate spec file

moved bidAdapter.js file to correct folder (modules) and deleted duplicate spec file

* fixes

* Update newspassidBidAdapter.js

* Create newspassid.md

adding md file to modules folder as requested.

* updated dev doc to modules filder

fixes error in test params

* Update newspassidBidAdapter.js

fixing latest feedback from prebid.org review

* Update newspassidBidAdapter.js

fixing latest feedback

* Update newspassidBidAdapter.js

* updates per feedback

* Update newspassidBidAdapter.js

updating version number - re-committing to see if circle CI tests now pass

* fixing location of files

should fix circleCi failures!
ahmadlob referenced this pull request in taboola/Prebid.js Jul 27, 2022
* New bid adapter: newspassid spec test

spec test file for new bid adapter with biddercode: newspassid

* New Bid Adapter: newspassid

newspassid prebid JS bid adapter

* fixed tests

fixed tests

* Rename newspassBidAdapter.js to newspassidBidAdapter.js

renamed to correct bidder code

* Update newspassidBidAdapter_spec.js

* Deleted duplicate spec file

moved bidAdapter.js file to correct folder (modules) and deleted duplicate spec file

* fixes

* Update newspassidBidAdapter.js

* Create newspassid.md

adding md file to modules folder as requested.

* updated dev doc to modules filder

fixes error in test params

* Update newspassidBidAdapter.js

fixing latest feedback from prebid.org review

* Update newspassidBidAdapter.js

fixing latest feedback

* Update newspassidBidAdapter.js

* updates per feedback

* Update newspassidBidAdapter.js

updating version number - re-committing to see if circle CI tests now pass

* fixing location of files

should fix circleCi failures!
RomainLofaso pushed a commit to criteo-forks/Prebid.js that referenced this pull request Aug 8, 2022
* New bid adapter: newspassid spec test

spec test file for new bid adapter with biddercode: newspassid

* New Bid Adapter: newspassid

newspassid prebid JS bid adapter

* fixed tests

fixed tests

* Rename newspassBidAdapter.js to newspassidBidAdapter.js

renamed to correct bidder code

* Update newspassidBidAdapter_spec.js

* Deleted duplicate spec file

moved bidAdapter.js file to correct folder (modules) and deleted duplicate spec file

* fixes

* Update newspassidBidAdapter.js

* Create newspassid.md

adding md file to modules folder as requested.

* updated dev doc to modules filder

fixes error in test params

* Update newspassidBidAdapter.js

fixing latest feedback from prebid.org review

* Update newspassidBidAdapter.js

fixing latest feedback

* Update newspassidBidAdapter.js

* updates per feedback

* Update newspassidBidAdapter.js

updating version number - re-committing to see if circle CI tests now pass

* fixing location of files

should fix circleCi failures!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants