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

Update spotx video adapter to set the spotx_ad_key used in DFP #1614

Merged
merged 2 commits into from
Oct 13, 2017
Merged

Update spotx video adapter to set the spotx_ad_key used in DFP #1614

merged 2 commits into from
Oct 13, 2017

Conversation

npeceniak
Copy link
Contributor

@npeceniak npeceniak commented Sep 22, 2017

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

Description of change

In order for DFP targeting to work correctly we need access to the cpm and spotx_ad_key. We were already passing the cpm value but with this update we are now setting the spotx_ad_key to the bid.adId key so that it can be included with the prebid standard targeting keys.

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

  • contact email of the adapter’s maintainer
  • official adapter submission

Other information

@npeceniak npeceniak closed this Sep 22, 2017
@npeceniak npeceniak reopened this Sep 22, 2017
@mkendall07 mkendall07 self-assigned this Sep 25, 2017
@@ -85,7 +85,7 @@ function Spotx() {

bid.cpm = KVP_Object.spotx_bid;
bid.vastUrl = url;
bid.ad = url;
bid.adId = KVP_Object.spotx_ad_key;
Copy link
Member

Choose a reason for hiding this comment

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

This will break some internals in prebid.js unfortunately. Can you set the key using this method:
https://github.com/prebid/Prebid.js/blob/master/modules/xhbBidAdapter.js#L23
Basically set another property on bid and retrieve it using that function.

The only downside of overriding this key is you can't reference the bid later using this key but I assume that's ok.

@mkendall07
Copy link
Member

@npeceniak needs a little work for merge.

…ting

	- Instead of setting the adid to the spotx key in the bid response itself
	we now set a key bid.spotx_ad_key on the bid and then overwrite the hb_adid
	using this key.
@npeceniak
Copy link
Contributor Author

@mkendall07 Sorry for the delay in getting this updated. The adapter should be setting hb_adid the correct way now.

@mkendall07 mkendall07 merged commit fc9cbfb into prebid:master Oct 13, 2017
@npeceniak npeceniak deleted the spotx-adapter-ad_id-update branch October 13, 2017 19:14
outoftime pushed a commit to Genius/Prebid.js that referenced this pull request Oct 18, 2017
* tag '0.31.0' of https://github.com/prebid/Prebid.js: (54 commits)
  Fix for prebid#1628 (allowing standard bidCpmAdjustment) (prebid#1645)
  Prebid 0.31.0 Release
  Support native click tracking (prebid#1691)
  Initial commit for video support for pbs (prebid#1706)
  Fixes: Immediate adapter response may end auction (prebid#1690)
  Rubicon feature/s2s test module (prebid#1678)
  Renaming of "huddledmasses" adapter into colossusssp (prebid#1701)
  Don't set non-object configurations (prebid#1704)
  Update JSDoc for `pbjs.enableAnalytics` (prebid#1565)
  Add ad units event (prebid#1702)
  AppnexusAst adapter: logging error message from endpoint (prebid#1697)
  AppnexusAst bidadapter markdown file (prebid#1696)
  Change Default Content-Type for POST Requests to 'application/json' (prebid#1681)
  Code improvement for trustx adapter (prebid#1673)
  PulsePoint Lite adapter - Enabling Sync pixel (prebid#1686)
  Update spotx video adapter to set the spotx_ad_key used in DFP (prebid#1614)
  Fix broken AOL mobile endpoint secure bid requests (prebid#1684)
  Fix adapter tests that hardcoded pbjs. (prebid#1666)
  no longer attaching gpt slots to adUnits, which breaks utils.cloneJson(adUnit) (prebid#1676)
  remove bidmanager from rubicon tests (prebid#1671)
  ...
rachelrj pushed a commit to sovrn/Prebid.js that referenced this pull request Oct 20, 2017
…d#1614)

* Update spotx video adapter to set the spotx_ad_key used in DFP
targeting to the bid.adId

* Changed spotx adapter to set hb_adid through registerDefaultBidderSetting

	- Instead of setting the adid to the spotx key in the bid response itself
	we now set a key bid.spotx_ad_key on the bid and then overwrite the hb_adid
	using this key.
vzhukovsky added a commit to aol/Prebid.js that referenced this pull request Oct 30, 2017
….31.0 to aolgithub-master

* commit 'e7341c948014a789084849495171d08d4b353d07': (21 commits)
  Added changelog entry.
  Fix for prebid#1628 (allowing standard bidCpmAdjustment) (prebid#1645)
  Prebid 0.31.0 Release
  Support native click tracking (prebid#1691)
  Initial commit for video support for pbs (prebid#1706)
  Fixes: Immediate adapter response may end auction (prebid#1690)
  Rubicon feature/s2s test module (prebid#1678)
  Renaming of "huddledmasses" adapter into colossusssp (prebid#1701)
  Don't set non-object configurations (prebid#1704)
  Update JSDoc for `pbjs.enableAnalytics` (prebid#1565)
  Add ad units event (prebid#1702)
  AppnexusAst adapter: logging error message from endpoint (prebid#1697)
  AppnexusAst bidadapter markdown file (prebid#1696)
  Change Default Content-Type for POST Requests to 'application/json' (prebid#1681)
  Code improvement for trustx adapter (prebid#1673)
  PulsePoint Lite adapter - Enabling Sync pixel (prebid#1686)
  Update spotx video adapter to set the spotx_ad_key used in DFP (prebid#1614)
  Fix broken AOL mobile endpoint secure bid requests (prebid#1684)
  Fix adapter tests that hardcoded pbjs. (prebid#1666)
  no longer attaching gpt slots to adUnits, which breaks utils.cloneJson(adUnit) (prebid#1676)
  ...
mattpr pushed a commit to mattpr/Prebid.js that referenced this pull request Oct 31, 2017
…d#1614)

* Update spotx video adapter to set the spotx_ad_key used in DFP
targeting to the bid.adId

* Changed spotx adapter to set hb_adid through registerDefaultBidderSetting

	- Instead of setting the adid to the spotx key in the bid response itself
	we now set a key bid.spotx_ad_key on the bid and then overwrite the hb_adid
	using this key.
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
…d#1614)

* Update spotx video adapter to set the spotx_ad_key used in DFP
targeting to the bid.adId

* Changed spotx adapter to set hb_adid through registerDefaultBidderSetting

	- Instead of setting the adid to the spotx key in the bid response itself
	we now set a key bid.spotx_ad_key on the bid and then overwrite the hb_adid
	using this key.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants