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

CCPA support for SPA or refresh ad units #5440

Closed
ronzilca opened this issue Jun 30, 2020 · 4 comments
Closed

CCPA support for SPA or refresh ad units #5440

ronzilca opened this issue Jun 30, 2020 · 4 comments
Labels

Comments

@ronzilca
Copy link

ronzilca commented Jun 30, 2020

Type of issue

Feature (it's a bug, I think, but according to the code, it was planned this way).

Description

Within CCPA states, the default usprivacy string is 1YNN.
But, users can choose to opt-out and avoid using cookies. Then, the usprivacy string becomes 1YYN.

The problem is when I want to refresh ad units, according to the consentManagementUsp, the usprivacy won't update.

Steps to reproduce

  1. Enable the usp consent module:
                pbjs.setConfig({
                    'consentManagement' : {
                        'usp'               : {
                            'cmpApi'                    : 'iab',
                            'timeout'                   : 100
                        }
                    }
                });
  1. Change the usprivacy cookie (1YYN to opt-out).
  2. Ask the __uspapi for the current status:
    __uspapi('getUSPData', 1, (a, b) => { console.log(a, b) });
  3. Refresh the ad units

Expected results

The new bid request should contain the current usprivacy string.

Actual results

The new bid request contains the old usprivacy string.

Other information

image

@patmmccann
Copy link
Collaborator

patmmccann commented Jul 2, 2020

According to issue #4425 it was not planned this way:

"Because the USP API does not wait for a user response, if it was not successfully obtained before the first auction, we should try again to retrieve privacy data before each subsequent auction."

and this indeed appears to be a bug to be fixed by removing the four lines at https://github.com/prebid/Prebid.js/blob/master/modules/consentManagementUsp.js#L161

@harpere @tjeastmond fyi

@stale
Copy link

stale bot commented Jul 18, 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 Jul 18, 2020
@patmmccann
Copy link
Collaborator

should be solved by #5452

@stale stale bot removed the stale label Jul 20, 2020
@stale
Copy link

stale bot commented Aug 8, 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.

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

No branches or pull requests

2 participants