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

freewheelSSPBidAdapter #4645

Merged
merged 8 commits into from
Jan 3, 2020
Merged

Conversation

xwang202
Copy link
Contributor

@xwang202 xwang202 commented Dec 18, 2019

It seems our previous adapter has been deleted by one of your changes. I am pushing this file again with changes of updating the freewheelSSPBidAdapter based on Prebid 3.0 changes and adding max and min size limit as per client's requirement.

Please be aware that the file name has been changed from previously freewheel-sspBidAdapter.js to freewheelSSPBidAdapter.js

Type of change

  1. Prebid 3.0 changes
  2. Max and min size limit as per client's requirement

Description of change

  1. update the protocol to use HTTPS only
  2. use banner.sizes instead of sizes
  3. update the getUserSync method
  4. add maximum and minimum sizes limit as per client's requirement

…bid 3.0 changes, add max and min size limit as per client's requirement
@lgtm-com
Copy link

lgtm-com bot commented Dec 18, 2019

This pull request introduces 1 alert when merging cd6267a into 927d36e - view on LGTM.com

new alerts:

  • 1 for Superfluous trailing arguments

@lgtm-com
Copy link

lgtm-com bot commented Dec 19, 2019

This pull request introduces 1 alert when merging 59dfcd5 into 927d36e - view on LGTM.com

new alerts:

  • 1 for Superfluous trailing arguments

@xwang202
Copy link
Contributor Author

Hi @jsnellbaker , it seems our adapter freewheel-sspBidAdapter.js was deleted by one of your changes several days ago. It already impacted some of our clients. I pushed the new one and made some changes under the prebid 3.0. (Please be aware we changed the file name to freewheelSSPBidAdapter.js, hope it won't break the building process). Can you please help to review or at least put the original file back?

Thanks,
Xuan

@xwang202
Copy link
Contributor Author

Hi @jsnellbaker ,

I just noticed you released the legacy version 2.44.1 today. We will tell our client to use the legacy one so far.

Thanks,
Xuan

@jsnellbaker
Copy link
Collaborator

@xwang202
Renaming the file just here could impact some things. If you still want to do that, can you please also update adapter name in the 2.44.x-legacy branch (including the .md file and your adapter's _spec.js test file)? Further you'd also have to update the bidder file in the docs repo to keep everything consistent.

If you don't want to change the name in all these places, can you please go back to the original name of the adapter.js file in this PR?

Outside of the naming changes, can you also please re-add your adapter's test spec file here?

@xwang202
Copy link
Contributor Author

Thanks for your response @jsnellbaker . We will use the original file name. I've updated both js and md files. Please help to review again.

Thanks,
Xuan

@xwang202
Copy link
Contributor Author

xwang202 commented Jan 2, 2020

Hi @jsnellbaker ,

I've updated both code and tests files. Can you please help to re-run the CICD workflow?

Thanks,
Xuan

@xwang202
Copy link
Contributor Author

xwang202 commented Jan 2, 2020

Hi @jsnellbaker ,

To add to my previous comment, we are gonna do the CCPA release next week.

Thanks,
Xuan

Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

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

Hi @xwang202

Thanks for renaming the files back to the original name. There were some items that I saw in-line that need to be addressed.

In addition to the below, it seems the unit test file (ie the adapter's _spec.js) isn't present in this PR. Can you please add this back here? These tests are needed for your adapter to be re-added.

Thanks.

}
}

var location = utils.getTopWindowUrl();
Copy link
Collaborator

Choose a reason for hiding this comment

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

This function doesn't exist anymore in Prebid 3.x. Can you take a look at the bidderRequest.refererInfo property (see more info here)? It may have the information you were using here instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated.

@@ -0,0 +1,372 @@
import * as utils from '../src/utils';
import { registerBidder } from '../src/adapters/bidderFactory';
// import { config } from 'src/config';
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 please remove this commented line if it's no longer needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

@lgtm-com
Copy link

lgtm-com bot commented Jan 2, 2020

This pull request introduces 1 alert when merging 76a625a into 34416c4 - view on LGTM.com

new alerts:

  • 1 for Superfluous trailing arguments

@jsnellbaker
Copy link
Collaborator

@xwang202 Can you take a look at the test failures in the circleci job? I think one/several of the unit tests need to be updated to include the new refererInfo object in the bidderRequest variable.

Additionally, would you be able to look at the LGTM warning? I'd like you to confirm that the extra variable you're passing in that noted function isn't needed.

Thanks!

@lgtm-com
Copy link

lgtm-com bot commented Jan 2, 2020

This pull request introduces 1 alert when merging 382d914 into 773a004 - view on LGTM.com

new alerts:

  • 1 for Superfluous trailing arguments

Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

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

Hi @xwang202

Thanks for making the updates. I think we're okay to merge this PR at this point.

To confirm on a point you made earlier - did you want me to wait on merging so you can include the CCPA compliance as part of this PR? Or did you want me to merge it now and you'll just open a separate PR later?

Please confirm.

@xwang202
Copy link
Contributor Author

xwang202 commented Jan 3, 2020

Hi @jsnellbaker ,

Thanks for your confirmation. For the LGTM warning, we still want to keep our previous code. Please merge this PR at your first convenience.

For CCPA compliance, I will create another PR next week after we did the CCPA release on our end.

Thanks,
Xuan

@jsnellbaker
Copy link
Collaborator

Thanks for the confirmation.

redaguermas added a commit to redaguermas/Prebid.js that referenced this pull request Jan 8, 2020
…idVersion1.2.0

* 'master' of https://github.com/prebid/Prebid.js: (22 commits)
  fix lint errors in unit test file (prebid#4702)
  Add Revcontent Adapter (prebid#4654)
  Changed data structure in Platform One Analytic Adapter (prebid#4647)
  increment pre version
  Prebid 3.2.0 Release
  Add static API option to the consentManagementUsp module. (prebid#4685)
  replace all xhr stubs with global xhr stub to prevent all requests (prebid#4687)
  Add CCPA us_privacy support to spotxBidAdapter (prebid#4689)
  ucfunnel adapter support CCPA and remove utils.js in adapter (prebid#4541)
  freewheelSSPBidAdapter  (prebid#4645)
  Add CCPA support to Beachfront adapter (prebid#4673)
  add seedingAlliance Adapter (prebid#4614)
  Changed analytics data structure in YuktaMedia Analytic Adapter (prebid#4659)
  Add eplanning adapter for prebid 3.0 compliant and CCPA and GDPR support (prebid#4643)
  Bidder schain support (prebid#4551)
  Added CCPA support and GDPR compliance to Cedato adapter (prebid#4683)
  pass us privacy consent string to request (prebid#4581)
  Prebid 3 Admixer (prebid#4615)
  Pass uspConsent in bidRequest (prebid#4675)
  Advertly: New Bidder Adapter Submission (prebid#4496)
  ...
tadam75 pushed a commit to smartadserver/Prebid.js that referenced this pull request Jan 9, 2020
* freewheelSSPBidAdapter Update the freewheelSSPBidAdapter based on Prebid 3.0 changes, add max and min size limit as per client's requirement

* freewheelSSPBidAdapter fix the path issue

* freewheelSSPBidAdapter fix the indentation

* update the test

* rename freewheel bid adapter name

* freewheelSSPBidAdapter use bidderRequest.refererInfo instead of utils.getTopWindowUrl(), remove the unused code

* freewheelSSPBidAdapter add spec file

* freewheelSSPBidAdapter update the gdpr and refererInfo condition check
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.

2 participants