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

New bid adapter: Adverxo #12376

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dev-adverxo
Copy link

@dev-adverxo dev-adverxo commented Oct 28, 2024

Type of change

  • Bugfix

  • Feature

  • New bidder adapter

  • Updated 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

  • contact email of the adapter’s maintainer: developer@adverxo.com

  • test parameters for validating bids:

var adUnits = [
    {
        code: 'div-gpt-ad-1460505748561-0',
        mediaTypes: {
            banner: {
                sizes: [300, 250]
            }
        },
        bids: [{
            bidder: 'adverxo',
            params: {
                host: "stresda.com",
                adUnitId: 41358,
                auth: "61336e75e414c77c367de5c47c2599ce80a8032b"
            }
        }]
    },
    {
        code: 'native-div',
        mediaTypes: {
            native: {
                sendTargetingKeys: false,
                title: {
                    required: true,
                    len: 800
                },
                body: {
                    required: false,
                },
                image: {
                    required: true
                },
                cta: {
                    required: false
                }
            }
        },
        bids: [{
            bidder: 'adverxo',
            params: {
                host: "stresda.com",
                adUnitId: 41359,
                auth: "9a640dfccc3381e71f0c29ffd4a72eabd29d9d86"
            }
        }]
    },
    {
        code: 'div-gpt-ad-1460505748561-1',
        mediaTypes: {
            video: {
                context: 'outstream', // or 'outstream',
                mimes: ['video/mp4'],
                playerSize: [1280, 720] // video player size
            }
        },
        // Replace this object to test a new Adapter!
        bids: [{
            bidder: 'adverxo',
            params: {
                host: "stresda.com",
                adUnitId: 41939,
                auth: "7813bfb2ebe04b8723a534021e3f7ddc5fcdf71c"
            }
        }],
        renderer: {
            url: "https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js",
            render: (bid) => {
                let ad = bid.ad || bid.vastXml;

                const adResponse = {
                    ad: {
                        video: {
                            content: ad,
                            player_width: 640,
                            player_height: 480,
                        }
                    }
                }

                bid.renderer.push(() => {
                    window.ANOutstreamVideo.renderAd({
                        targetId: bid.adUnitCode,
                        adResponse,
                    });
                });
            }
        }
    }
];

Other information

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.

1 participant