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

OneVideo: Sync pixel redirect fix and Test cases #4741

Merged
merged 109 commits into from
Jan 16, 2020

Conversation

DeepthiNeeladri
Copy link
Contributor

@DeepthiNeeladri DeepthiNeeladri commented Jan 16, 2020

Type of change

  • [ X] Bugfix

Description of change

@bretg you are right #4718 I need to send gdpr%3D{gdpr}%26gdpr_consent%3D{gdpr_consent} only done the changes and test cases are written.

we need to fill both https://sync-tm.everesttech.net/upi/pid/m7y5t93k?gdpr=${gdprApplies ? 1 : 0}&gdpr_consent=${consentString} macros and redirect url macros also redir=https%3A%2F%2Fpixel.advertising.com%2Fups%2F55986%2Fsync%3Fuid%3D%24%7BUSER_ID%7D%26_origin%3D0 + encodeURI(&gdpr=${gdprApplies ? 1 : 0}&gdpr_consent=${consentString}`) the advertising.com is not resolving the macros checked with publisher.

  • 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

@DeepthiNeeladri DeepthiNeeladri requested a review from bretg January 16, 2020 13:26
@@ -408,7 +408,7 @@ describe('OneVideoBidAdapter', function () {
it('should get correct user sync when iframeEnabled', function () {
let pixel = spec.getUserSyncs({pixelEnabled: true}, {}, {gdprApplies: true, consentString: GDPR_CONSENT_STRING})
expect(pixel[2].type).to.equal('image');
expect(pixel[2].url).to.equal('https://sync-tm.everesttech.net/upi/pid/m7y5t93k?gdpr_qparam=1&gdpr_consent_qparam=' + GDPR_CONSENT_STRING + '&redir=https%3A%2F%2Fpixel.advertising.com%2Fups%2F55986%2Fsync%3Fuid%3D%24%7BUSER_ID%7D%26_origin%3D0%26gdpr%3D{gdpr}%26gdpr_consent%3D{gdpr_consent}');
expect(pixel[2].url).to.equal('https://sync-tm.everesttech.net/upi/pid/m7y5t93k?gdpr=1&gdpr_consent=' + GDPR_CONSENT_STRING + '&redir=https%3A%2F%2Fpixel.advertising.com%2Fups%2F55986%2Fsync%3Fuid%3D%24%7BUSER_ID%7D%26_origin%3D0&gdpr=1&gdpr_consent=GDPR_CONSENT_STRING');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems like the tail end of this ought to be

...&gdpr_consent=' + encodeURI(GDPR_CONSENT_STRING)

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@DeepthiNeeladri DeepthiNeeladri requested a review from bretg January 16, 2020 15:56
@DeepthiNeeladri
Copy link
Contributor Author

@bretg corrected the test case review pls

@bretg bretg merged commit 15204c5 into prebid:master Jan 16, 2020
@bretg bretg changed the title Sync pixel redirect fix and Test cases OneVideo: Sync pixel redirect fix and Test cases Jan 16, 2020
@DeepthiNeeladri DeepthiNeeladri deleted the SyncPixel_Change_OnevideoAdaptor branch January 17, 2024 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants