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

aniview V3 support #4583

Merged
merged 22 commits into from
Dec 24, 2019
Merged

aniview V3 support #4583

merged 22 commits into from
Dec 24, 2019

Conversation

itaynave
Copy link
Contributor

@itaynave itaynave commented Dec 11, 2019

  • Refactoring (no functional changes, no api changes)
  • Feature
    Remove unsupported v3 function
    CCPA support

@lgtm-com
Copy link

lgtm-com bot commented Dec 11, 2019

This pull request introduces 1 alert when merging a0aa080 into 8019d82 - view on LGTM.com

new alerts:

  • 1 for Useless conditional

@lgtm-com
Copy link

lgtm-com bot commented Dec 11, 2019

This pull request introduces 1 alert when merging 6f354e8 into 8019d82 - view on LGTM.com

new alerts:

  • 1 for Useless conditional

@lgtm-com
Copy link

lgtm-com bot commented Dec 11, 2019

This pull request introduces 1 alert when merging f34d645 into 8019d82 - view on LGTM.com

new alerts:

  • 1 for Useless conditional

@lgtm-com
Copy link

lgtm-com bot commented Dec 12, 2019

This pull request introduces 1 alert when merging cdfa67b into 8019d82 - view on LGTM.com

new alerts:

  • 1 for Useless conditional

@itaynave
Copy link
Contributor Author

Why is it failing on openX checks? Not related to this PR...

openx analytics adapter
sending analytics event
✗ should send 1 request to the right endpoint
expected 'https://ads.openx.net:443/w/1.0/pban' to equal 'https://ads.openx.net/w/1.0/pban'
Error

for (let i = 0; i < validBidRequests.length; i++) {
let bidRequest = validBidRequests[i];

if (!bidRequest.sizes || !bidRequest.sizes.length) {
Copy link
Contributor

Choose a reason for hiding this comment

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

bidRequest.sizes may be deprecated in the next major release. Alternative is to use the new bidRequest.mediaTypes object.

@Fawke
Copy link
Contributor

Fawke commented Dec 20, 2019

Hi @itaynave,

This PR looks fine.

  • I would recommend you to open the same PR against the legacy branch 2.44.x-legacy.

  • Also, can you please open a Docs PR on prebid.github.io stating that you now support CCPA so that it's easy for publishers checking out the Docs to know your support CCPA as well. Just add usp_supported: true in the header section of the md file.

  • Few observations in the md file, you've stated the test parameters like this:

var videoAdUnit = [
{
    code: 'video1',
    sizes: [
        [300, 250],
        [640, 480]
    ],
    bids: [{
        bidder: 'aniview',
        params: {
            AV_PUBLISHERID: '55b78633181f4603178b4568',
            AV_CHANNELID: '55b7904d181f46410f8b4568'
        }
    }]
}];

Few things to note about this are:

  • sizes property is deprecated now. Publishers now have to use the mediaTypes.banner.sizes to declare the sizes. Or in the case of video, they have to use mediaTypes.video.playerSize to declare the playerSize.
  • Is there is any reason to omit the context field here. The context field indicates if the request is for a outstream, instream or adpod type video.

Fixed sizes from playerSize
Updated md sample
@itaynave
Copy link
Contributor Author

  • Will open additional PR to V2 once this one is approved
  • Opened a doc PR for CCPA
  • Updated the sample md
  • Fixed support for both playerSize and size
  • context is added in sample

@bretg
Copy link
Collaborator

bretg commented Dec 21, 2019

docs PR prebid/prebid.github.io#1716

@bretg bretg removed the needs docs label Dec 21, 2019
@itaynave
Copy link
Contributor Author

Hi @Fawke
Thanks for your comments, fixed everything
Let me know if there is anything else

@Fawke
Copy link
Contributor

Fawke commented Dec 23, 2019

@itaynave Thanks for making the requested changes. I plugged your instream params that you've shared in one of the hello_world examples for instream, but I didn't get any response back from the server. Will the params that you've shared in the md file work in an test example. I just wanted to doublecheck the response coming back from the server is fine.

@itaynave
Copy link
Contributor Author

itaynave commented Dec 23, 2019

@Fawke
Usually each of our partners is getting his own id...
Anyway updated sample in md to a working one.

@Fawke Fawke removed the question label Dec 24, 2019
@Fawke
Copy link
Contributor

Fawke commented Dec 24, 2019

Thanks @itaynave for providing the test parameter. I'm accepting your change in Prebid v3, I'd request you to open a PR against the legacy branch at 2.44.x-legacy.

@Fawke Fawke merged commit 88b6a6d into prebid:master Dec 24, 2019
tadam75 pushed a commit to smartadserver/Prebid.js that referenced this pull request Jan 9, 2020
* Support new aniview bid adapter

* Support new aniview bid adapter

* Support new aniview bid adapter

* Support new aniview bid adapter

* Fix Consent parameters

* Update aniviewBidAdapter.js

V3 support

* Update aniviewBidAdapter.js

* Update aniviewBidAdapter.js

Update refererInfo

* Update aniviewBidAdapter.js

Fix tabs and spaces

* Update aniviewBidAdapter.js

fixes

* Update aniviewBidAdapter.js

* Update aniviewBidAdapter.js

Add ccpa support

* Update aniviewBidAdapter.js

Typo

* Update aniviewBidAdapter.js

* Update aniviewBidAdapter.js

* Fix size and sample

Fixed sizes from playerSize
Updated md sample

* Fix tabs

* Fix sizes

* Recheck

* Add tgt parameter

* Update sample
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.

3 participants