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

ucfunnel adapter support CCPA and remove utils.js in adapter #4541

Merged
merged 38 commits into from
Jan 6, 2020

Conversation

ucfunnel
Copy link
Contributor

@ucfunnel ucfunnel commented Dec 6, 2019

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

  • test parameters for validating bids
{
  bidder: '<bidder name>',
  params: {
    // ...
  }
}

Be sure to test the integration with your adserver using the Hello World sample page.

  • contact email of the adapter’s maintainer
  • official adapter submission

For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:

Other information

root and others added 30 commits June 5, 2017 05:43
2. Replace var with let
3. Put JSON.parse(JSON.stringify()) into try catch block
Merge the latest changes 9/25/2017
@ucfunnel ucfunnel changed the title ucfunnel adapter support CCPA ucfunnel adapter support CCPA and remove utils.js in adapter Dec 12, 2019
@ucfunnel
Copy link
Contributor Author

documentation PR linked for support ccpa prebid/prebid.github.io#1677

@ucfunnel ucfunnel force-pushed the ccpa branch 4 times, most recently from 193e6b5 to 2864ddd Compare December 13, 2019 09:23
@ucfunnel
Copy link
Contributor Author

@idettman documentation PR linked for support ccpa prebid/prebid.github.io#1677 and I update the test case. What I need to do next?

@stale
Copy link

stale bot commented Jan 1, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 1, 2020
@ucfunnel
Copy link
Contributor Author

ucfunnel commented Jan 2, 2020

@idettman @jsnellbaker documentation PR linked for support ccpa prebid/prebid.github.io#1677 and I update the test case. What I need to do next?

@stale stale bot removed the stale label Jan 2, 2020
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 @ucfunnel

I took a look through the code and found a few items that should be addressed. Can you please take a look?

return bids.map(bid => {
return {
method: 'GET',
url: location.protocol + spec.ENDPOINT,
Copy link
Collaborator

Choose a reason for hiding this comment

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

As part of the 3.0 changes, requests always need to be https instead of being dynamic. Can you please hard-code the protocol here (and in the related unit tests)?

}

if (isVideoMediaType && videoContext === 'outstream') {
utils.logWarn('Warning: outstream video is not supported yet');
Copy link
Collaborator

Choose a reason for hiding this comment

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

This utils reference is still present, even though the import is gone. Can you either remove this message or re-add the import?

Comment on lines 141 to 145
/*
if (utils.isArray(requestSizes) && requestSizes.length === 2 && !utils.isArray(requestSizes[0])) {
return [parseInt(requestSizes[0], 10), parseInt(requestSizes[1], 10)];
} else
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

If this code is no longer needed, can you please remove it?

@ucfunnel
Copy link
Contributor Author

ucfunnel commented Jan 4, 2020

@jsnellbaker I fixed the problem that should be addressed.

@jsnellbaker jsnellbaker removed the request for review from sumit116 January 6, 2020 18:03
@jsnellbaker jsnellbaker assigned jsnellbaker and unassigned sumit116 Jan 6, 2020
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.

Thanks for making the updates; LGTM now.

@jsnellbaker jsnellbaker merged commit 41a8350 into prebid:master Jan 6, 2020
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
…4541)

* Add a new ucfunnel Adapter and test page

* Add a new ucfunnel Adapter and test page

* 1. Use prebid lib in the repo to keep updated
2. Replace var with let
3. Put JSON.parse(JSON.stringify()) into try catch block

* utils.getTopWindowLocation is a function

* Change to modules from adapters

* Migrate to module design

* [Dev Fix] Remove width and height which can be got from ad unit id

* Update ucfunnelBidAdapter to fit into new spec

* Correct the endpoint. Fix the error of query string

* Add test case for ucfunnelBidAdapter

* Fix lint error

* Update version number

* Combine all checks on bid request

* Add GDPR support for ucfunnel adapter

* Add in-stream video and native support for ucfunnel adapter

* Remove demo page. Add more test cases.

* Change request method from POST to GET

* Remove unnecessary comment

* Support vastXml and vastUrl for video request

* update TTL to 30 mins

* Avoid using arrow function which is not discuraged in mocha

* ucfunnel tdid support

* ucfunnel fix error message in debug mode

* ucfunnel adapter support CCPA

Co-authored-by: Ryan Chou <ryanchou0210@gmail.com>
@ucfunnel ucfunnel removed their assignment Jan 21, 2021
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.

6 participants