8000 3 display banner and video vast support for rads by onlsol · Pull Request #4209 · prebid/Prebid.js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

3 display banner and video vast support for rads #4209

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

Conversation

onlsol
Copy link
Contributor
@onlsol onlsol commented Sep 18, 2019

Type of change

  • [v ] New bidder adapter

Description of change

  • test parameters for validating bids
{
   bidder: 'rads',
   params: {
      placement: 322,
      pfilter: {
         reqAdId: 34927
      }
    }
}

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

prebid/prebid.github.io#1500

Copy link
Contributor
@msm0504 msm0504 left a comment

Choose a reason for hiding this comment

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

@robertrmartinez The rads adapter lgtm

Copy link
Collaborator
@robertrmartinez robertrmartinez left a comment

Choose a reason for hiding this comment

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

All adapters should have valid test params in order for reviewers and testers to test the adapter with their integration. Please provide a working bid for SVT adapter so we can validate it.

Also some other minor changes.

const videoData = utils.deepAccess(bidRequest, 'mediaTypes.video') || {};
const sizes = utils.parseSizesInput(videoData.playerSize || bidRequest.sizes)[0];
const width = sizes.split('x')[0];
const height = sizes.split('x')[1];
Copy link
Collaborator

Choose a reason for hiding this comment

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

can move this to one line const [width, height] = sizes.split('x');

const bidResponses = [];
const response = serverResponse.body;
const crid = response.crid || 0;
const cpm = response.cpm / 1000000 || 0;
Copy link
Collaborator

Choose a reason for hiding this com 8000 ment

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

Why are we dividing the response CPM by a million?

dealId: dealId,
currency: currency,
netRevenue: netRevenue,
ttl: config.getConfig('_bidderTimeout')
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is the TTL for the creative to expire. since it is in bidResponse

So setting this to the config's bidderTimeout seems strange to me.

IS this actually what is wanted by STV bid adapter?

{
bidder: "stv",
params: {
placement: "", // placement ID of inventory with STV
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am not able to test with these params.

Can you please provide a test placement which will return a video ad?

Copy link
Contributor Author
@onlsol onlsol Sep 24, 2019

Choose a reason for hiding this comment

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

@robertrmartinez Could You help me to solve one problem? The STV adapter already merged into master (#3737) but I see its commits in this branch. I don't know how it got into this branch.

Our GitLab changes:

image

GitHub commits:

image

We have a Mirror a repository settings in our GitLab application. What could happen and how to fix it?

@robertrmartinez
Copy link
Collaborator

@onlsol

Have you tried to pull the latest of prebid master upstream?

On your local try and do a git pull https://github.com/prebid/Prebid.js.git master

Might catch your branch up with the latest commits you are missing.

Otherwise I would just catch your fork up with prebid master, The jsut create a new branch and add your RADS adapter changes to it and then create a new PR which does not have the STV commits and we will push it through.

Have not used gitLab so unsure how they handle all this type of stuff, but pretty sure your prebid needs to be fast-forwarded

…isplay-banner-and-video-vast-support-for-rads
@onlsol
Copy link
Contributor Author
onlsol commented Sep 24, 2019

@robertrmartinez Thanks a lot for help!

I merged branch 'master' of https://github.com/prebid/Prebid.js to this branch and now I see only 3 files with changes.

@robertrmartinez robertrmartinez merged commit 0ad0bd3 into prebid:master Sep 24, 2019
@onlsol onlsol deleted the 3-display-banner-and-video-vast-support-for-rads branch September 25, 2019 19:21
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.

7 participants
0