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

How to map the size from dimensions to sizes[] for prebid.js #4

Open
580 opened this issue Jun 22, 2018 · 0 comments
Open

How to map the size from dimensions to sizes[] for prebid.js #4

580 opened this issue Jun 22, 2018 · 0 comments

Comments

@580
Copy link

580 commented Jun 22, 2018

I am trying to setup a demo page with the sample from prebid.org. Here's the code snippet I am using:

arcAds.registerAd({
    id: 'div-1',
    slotName: 'header-bid-tag-0',
    adType: 'leaderboard',
    display: 'all',
    dimensions: '[[970, 250], [970, 90], [728, 90]]',
    sizemap: {
        breakpoints: '[ [1280, 0] ]',
        // refresh: 'leaderboard'
    },
    bidding: {
        prebid: {
            enabled: true,
            bids: [{
                bidder: 'appnexus',
                labels: ['desktop'],
                params: {
                    placementId: '13144370'
                }
            }]
        }
    }
})

Expected Behavior

Receive the bid from the auction request.

Actual Behavior

The auction failed with a {"error":"parse"} message.

Steps to Reproduce the Behavior

Looking into the bid request, you'll see the sizes[] from the payload is empty:

{
    "tags": [{
        "sizes": [],
        "ad_types": ["banner"],
        "uuid": "275015f90ea6f6",
        "id": 13144370,
        "allow_smaller_sizes": false,
        "use_pmt_rule": false,
        "prebid": true,
        "disable_psa": true
    }],
    "sdk": {
        "source": "pbjs",
        "version": "1.15.0"
    }
}

Additional Comments

Is there anything I've missed from the code? Or set the sizemap incorrectly?
Thank you so much for sharing the project. Any help would be appreciated.

kant added a commit to kant/ArcAds that referenced this issue Feb 10, 2019
design1online added a commit that referenced this issue Jan 23, 2020
Fixed typo on paragraph #4
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

No branches or pull requests

1 participant