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

Shinez Bid Adapter: update adapter to comply with latest Prebid version #8494

Merged
merged 4 commits into from
Jun 26, 2022

Conversation

Soterix
Copy link
Contributor

@Soterix Soterix commented May 30, 2022

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

A refactored version of the Shinez bid adapter.

  • test parameters for validating bids
var adUnits = [{
        code: 'dfp-video-div',
        sizes: [
            [640, 480]
        ],
        mediaTypes: {
            video: {
                playerSize: [
                    [640, 480]
                ],
                context: 'instream'
            }
        },
        bids: [{
            bidder: 'shinez',
            params: {
                org: '56f91cd4d3e3660002000033', // Required
                floorPrice: 2.00, // Optional
                placementId: 'shinez-video-test', // Optional
                testMode: true // Optional
            }
        }]
    },
    {
        code: 'dfp-banner-div',
        sizes: [
            [640, 480]
        ],
        mediaTypes: {
            banner: {
                sizes: [
                    [640, 480]
                ]
            }
        },
        bids: [{
            bidder: 'shinez',
            params: {
                org: '56f91cd4d3e3660002000033', // Required
                floorPrice: 2.00, // Optional
                placementId: 'shinez-banner-test', // Optional
                testMode: true // Optional
            }
        }]
    }
];

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

  • contact email of the adapter’s maintainer: [email protected]
  • official adapter submission

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

Other information

@Soterix
Copy link
Contributor Author

Soterix commented Jun 6, 2022

PR was created 7 days ago, could anybody take a look at it, please?

@Soterix
Copy link
Contributor Author

Soterix commented Jun 7, 2022

Guys, would anybody take a look at this PR, please?

@ChrisHuie ChrisHuie changed the title Shinez adapter refactored, new Prebid version supported Shinez Bid Adapter: update adapter to comply with latest Prebid version Jun 8, 2022
@ChrisHuie ChrisHuie self-requested a review June 8, 2022 14:47
@ChrisHuie ChrisHuie self-assigned this Jun 8, 2022
@Soterix
Copy link
Contributor Author

Soterix commented Jun 11, 2022

Rebased on the last state of master, anything else I can do to speed up the review process?

@gitsh84
Copy link

gitsh84 commented Jun 19, 2022

Hey, any update re this PR ?

@Soterix
Copy link
Contributor Author

Soterix commented Jun 20, 2022

@ChrisHuie could you please update us on how we can get this approved?

@ChrisHuie
Copy link
Collaborator

ChrisHuie commented Jun 21, 2022

@Soterix @gitsh84 my apologies our integration tests didn't seem to run on this pr and we just got Prebid 7 out the door so this looks to have got lost in the shuffle. Can you please give me edit access so I can try and get them to run? They automatically run on new prs but you are likely following your fork of Prebid in CircleCi instead of Prebid itself.

@ChrisHuie ChrisHuie self-requested a review June 21, 2022 12:57
@ChrisHuie
Copy link
Collaborator

ChrisHuie commented Jun 21, 2022

Also, this will now go on Prebid 7. If you want to add it to the maintained Prebid 6 legacy version the branch is here (https://github.com/prebid/Prebid.js/tree/6.29.x-legacy) or once we get this squared away I can add it back to Prebid 6 as well if you like?

@Soterix
Copy link
Contributor Author

Soterix commented Jun 21, 2022

@ChrisHuie, thanks for update. Unfortunately, I am not able to allow editing for you because of https://github.com/orgs/github-community/discussions/5634. Instead, I have rebased changes on the last state of the upstream master and fixed failed tests. Is everything ok now?

@ChrisHuie
Copy link
Collaborator

ChrisHuie commented Jun 21, 2022

@Soterix so our CircleCI tests still didn't run on this pr. It has to do with your github account linking to your fork of the project in CircleCI vs the main project. You have to unfollow your fork in CircleCi I beleive. I can just resubmit this pr and the testing should pop up though if you are cool with that? It's a weird issue that pops up occasionally but not common. Likely would be the same for you on the 6 legacy branch though

@Soterix
Copy link
Contributor Author

Soterix commented Jun 22, 2022

understand... @ChrisHuie, can you advise where it is possible to change CircleCi configuration (linking)? I have tried to log in to https://app.circleci.com/ with my GitHub account but I can't find anything related to Prebid. Maybe the issue is that fork is not under the personal account but under the organization one? Do we need to allow integration between CircleCi and our organization account?
Alternatively, I can try to do everything from scratch, I mean remove the repository fork, fork again, add an adapter and create a new PR. Do you think it will resolve the issue with CircleCi?

@Soterix
Copy link
Contributor Author

Soterix commented Jun 23, 2022

@ChrisHuie, you have mentioned that you can re-submit this PR, which should also be ok for us. Could you please do it?

@ChrisHuie
Copy link
Collaborator

@ChrisHuie, you have mentioned that you can re-submit this PR, which should also be ok for us. Could you please do it?

Sure. Will submit and copy you both today. Will make 2 prs. One for master and one for Prebid 6 legacy branch.


if (bidderRequest && bidderRequest.refererInfo) {
generalParams.referrer = deepAccess(bidderRequest, 'refererInfo.referer');
generalParams.page_url = config.getConfig('pageUrl') || deepAccess(window, 'location.href');
Copy link
Collaborator

Choose a reason for hiding this comment

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

this isn't valid behavior in 7

Copy link
Collaborator

Choose a reason for hiding this comment

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

just look for site.page

}

if (bidderRequest && bidderRequest.refererInfo) {
generalParams.referrer = deepAccess(bidderRequest, 'refererInfo.referer');
Copy link
Collaborator

Choose a reason for hiding this comment

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

look for site.ref

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @patmmccann, as i understand ortb2.site.page and ortb2.site.ref should be for Prebid 7 - right?

@Soterix Soterix requested a review from patmmccann June 24, 2022 14:44
@Soterix
Copy link
Contributor Author

Soterix commented Jun 26, 2022

@patmmccann, @ChrisHuie updated, and it looks like ci/circleci tests were run on this PR. Can it be merged?

@patmmccann patmmccann merged commit d594516 into prebid:master Jun 26, 2022
Copy link
Collaborator

@patmmccann patmmccann left a comment

Choose a reason for hiding this comment

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

Lgtm

bwhisp pushed a commit to bwhisp/Prebid.js that referenced this pull request Jul 13, 2022
…on (prebid#8494)

* Shinez adapter refactored, new Prebid version supported

* Endpoints updated for Shinez adapter

* Tests fixed for ortb2 in Shinez adapter

* ortb2 site.ref and site.page used in Shinez Shinez adapter
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.

4 participants