{"action":"created","issue":{"url":"https://api.github.com/repos/prebid/Prebid.js/issues/527","repository_url":"https://api.github.com/repos/prebid/Prebid.js","labels_url":"https://api.github.com/repos/prebid/Prebid.js/issues/527/labels{/name}","comments_url":"https://api.github.com/repos/prebid/Prebid.js/issues/527/comments","events_url":"https://api.github.com/repos/prebid/Prebid.js/issues/527/events","html_url":"https://github.com/prebid/Prebid.js/issues/527","id":171229316,"number":527,"title":"Setting a maximum bid","user":{"login":"dmsinger","id":1216979,"avatar_url":"https://avatars.githubusercontent.com/u/1216979?v=3","gravatar_id":"","url":"https://api.github.com/users/dmsinger","html_url":"https://github.com/dmsinger","followers_url":"https://api.github.com/users/dmsinger/followers","following_url":"https://api.github.com/users/dmsinger/following{/other_user}","gists_url":"https://api.github.com/users/dmsinger/gists{/gist_id}","starred_url":"https://api.github.com/users/dmsinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmsinger/subscriptions","organizations_url":"https://api.github.com/users/dmsinger/orgs","repos_url":"https://api.github.com/users/dmsinger/repos","events_url":"https://api.github.com/users/dmsinger/events{/privacy}","received_events_url":"https://api.github.com/users/dmsinger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-15T18:21:55Z","updated_at":"2016-08-15T22:42:04Z","closed_at":null,"body":"Looking at the custom bucket example and docs here:\r\nhttp://prebid.org/dev-docs/examples/custom-price-bucket.html\r\nand here:\r\nhttp://prebid.org/dev-docs/publisher-api-reference.html#module_pbjs.bidderSettings\r\n\r\nI'm trying to put together the simplest way to define a maximum bid.\r\n\r\nFor the sake of example, let's say we only have line items up to $11.00. I want to make sure anything below that is set to 11.00.\r\n\r\nI need to adjust most bids (net/gross or currency exchange). So I was wondering if this would do the trick:\r\n```\r\n        pbjs.bidderSettings = {\r\n            // all my one-by-one partner adjustments,\r\n            standard: {\r\n                adserverTargeting: [{\r\n                    key: \"hb_pb\",\r\n                    val: function(bidResponse) {\r\n                        var cpm = bidResponse.cpm;\r\n                        if (cpm > 11.00) {\r\n                          return '11.00';\r\n                        }\r\n                    }\r\n                }]\r\n            }\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/prebid/Prebid.js/issues/comments/239951282","html_url":"https://github.com/prebid/Prebid.js/issues/527#issuecomment-239951282","issue_url":"https://api.github.com/repos/prebid/Prebid.js/issues/527","id":239951282,"user":{"login":"dmsinger","id":1216979,"avatar_url":"https://avatars.githubusercontent.com/u/1216979?v=3","gravatar_id":"","url":"https://api.github.com/users/dmsinger","html_url":"https://github.com/dmsinger","followers_url":"https://api.github.com/users/dmsinger/followers","following_url":"https://api.github.com/users/dmsinger/following{/other_user}","gists_url":"https://api.github.com/users/dmsinger/gists{/gist_id}","starred_url":"https://api.github.com/users/dmsinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmsinger/subscriptions","organizations_url":"https://api.github.com/users/dmsinger/orgs","repos_url":"https://api.github.com/users/dmsinger/repos","events_url":"https://api.github.com/users/dmsinger/events{/privacy}","received_events_url":"https://api.github.com/users/dmsinger/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T22:42:04Z","updated_at":"2016-08-15T22:42:04Z","body":"I get this error:\r\n\r\n>ERROR: Error trying to write ad Id : to the page. Missing document or adId\r\n\r\nIf I change hb_pb in standard:adserverTargeting, am I going to need to add both hb_adid, and hb_bidder in there? It won't use the default?"}}
{"actor":{"display_login":"dmsinger"}}