From 2cc2c90a09708de6fe5cdbf5d798a08db0b806d9 Mon Sep 17 00:00:00 2001 From: Saurabh Narkhede <108730956+pm-saurabh-narkhede@users.noreply.github.com> Date: Thu, 11 Apr 2024 01:17:49 +0530 Subject: [PATCH] Add ImpIds in RequestData for associated Impressions (#3364) --- adapters/33across/33across.go | 1 + .../exemplary/bidresponse-defaults.json | 3 +- .../exemplary/instream-video-defaults.json | 3 +- .../33acrosstest/exemplary/multi-format.json | 3 +- .../exemplary/multi-imp-banner.json | 9 ++-- .../exemplary/optional-params.json | 3 +- .../exemplary/outstream-video-defaults.json | 3 +- .../33acrosstest/exemplary/site-banner.json | 3 +- .../33acrosstest/exemplary/site-video.json | 3 +- .../multi-imp-mixed-validation.json | 3 +- .../supplemental/status-not-ok.json | 3 +- adapters/aax/aax.go | 1 + .../aax/aaxtest/exemplary/multi-format.json | 3 +- .../aax/aaxtest/exemplary/multi-imps.json | 3 +- adapters/aax/aaxtest/exemplary/no-bid.json | 3 +- .../aaxtest/exemplary/optional-params.json | 3 +- .../aax/aaxtest/exemplary/simple-banner.json | 3 +- .../aax/aaxtest/exemplary/simple-video.json | 3 +- ...valid-req-400-status-code-bad-request.json | 3 +- .../invalid-resp-diff-imp-id.json | 3 +- .../invalid-resp-multi-imp-type.json | 3 +- .../valid-req-200-bid-response-from-aax.json | 3 +- .../valid-req-204-response-from-aax.json | 3 +- adapters/aceex/aceex.go | 1 + .../aceex/aceextest/exemplary/banner-app.json | 3 +- .../aceex/aceextest/exemplary/banner-web.json | 3 +- .../aceex/aceextest/exemplary/native-app.json | 3 +- .../aceex/aceextest/exemplary/native-web.json | 3 +- .../aceex/aceextest/exemplary/video-app.json | 3 +- .../aceex/aceextest/exemplary/video-web.json | 3 +- .../supplemental/empty-seatbid-array.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- .../status-code-service-unavailable.json | 3 +- adapters/acuityads/acuityads.go | 1 + .../acuityadstest/exemplary/banner-app.json | 3 +- .../acuityadstest/exemplary/banner-web.json | 3 +- .../acuityadstest/exemplary/native-app.json | 3 +- .../acuityadstest/exemplary/native-web.json | 3 +- .../acuityadstest/exemplary/video-app.json | 3 +- .../acuityadstest/exemplary/video-web.json | 3 +- .../supplemental/empty-seatbid-array.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- .../status-code-service-unavailable.json | 3 +- adapters/adapterstest/test_json.go | 12 +++++ adapters/adelement/adelement.go | 1 + .../adelementtest/exemplary/audio-app.json | 3 +- .../adelementtest/exemplary/audio-web.json | 3 +- .../adelementtest/exemplary/banner-app.json | 3 +- .../adelementtest/exemplary/banner-web.json | 3 +- .../adelementtest/exemplary/native-app.json | 3 +- .../adelementtest/exemplary/native-web.json | 3 +- .../adelementtest/exemplary/video-app.json | 3 +- .../adelementtest/exemplary/video-web.json | 3 +- .../supplemental/empty-seatbid-array.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- .../status-code-service-unavailable.json | 3 +- adapters/adf/adf.go | 1 + .../adf/adftest/exemplary/dynamic-tag.json | 3 +- .../adf/adftest/exemplary/multi-format.json | 3 +- .../adf/adftest/exemplary/multi-native.json | 3 +- ...gle-banner-pricetype-gross-extend-ext.json | 3 +- .../single-banner-pricetype-gross.json | 3 +- .../single-banner-pricetype-net.json | 3 +- .../adf/adftest/exemplary/single-banner.json | 3 +- .../adf/adftest/exemplary/single-native.json | 3 +- .../adf/adftest/exemplary/single-video.json | 3 +- ...nners-different-pricetypes-extend-ext.json | 3 +- .../two-banners-different-pricetypes.json | 3 +- .../adf/adftest/supplemental/bad-request.json | 3 +- .../adftest/supplemental/empty-response.json | 3 +- .../supplemental/invalid-imp-mediatype.json | 3 +- .../adftest/supplemental/nobid-response.json | 3 +- .../adftest/supplemental/server-error.json | 3 +- .../supplemental/unparsable-response.json | 3 +- adapters/adgeneration/adgeneration.go | 1 + .../exemplary/single-banner-android.json | 3 +- .../exemplary/single-banner-ios.json | 3 +- .../exemplary/single-banner.json | 3 +- .../supplemental/204-bid-response.json | 3 +- .../supplemental/400-bid-response.json | 3 +- .../supplemental/no-bid-response.json | 3 +- adapters/adhese/adhese.go | 1 + .../adhesetest/exemplary/banner-internal.json | 3 +- .../adhesetest/exemplary/banner-market.json | 3 +- .../exemplary/banner-video-internal.json | 3 +- .../adhese/adhesetest/exemplary/video.json | 4 +- .../supplemental/res-invalid-height.json | 3 +- .../supplemental/res-invalid-no-body.json | 3 +- .../supplemental/res-invalid-no-origin.json | 3 +- .../supplemental/res-invalid-price.json | 3 +- .../res-invalid-status-not-ok.json | 3 +- .../supplemental/res-invalid-width.json | 3 +- .../supplemental/res-no_bids_200.json | 3 +- .../supplemental/res-no_bids_204.json | 3 +- .../res-no_impression_counter.json | 3 +- adapters/adkernel/adkernel.go | 3 +- .../exemplary/multiformat-impression.json | 3 +- .../exemplary/single-banner-impression.json | 3 +- .../exemplary/single-video-impression.json | 3 +- adapters/adkernelAdn/adkernelAdn.go | 3 +- .../exemplary/multiformat-impression.json | 3 +- .../exemplary/single-banner-impression.json | 3 +- .../exemplary/single-video-impression.json | 3 +- .../supplemental/204status.json | 3 +- .../supplemental/http-err-status.json | 3 +- .../two-impressions-two-seatbids.json | 3 +- adapters/adman/adman.go | 1 + .../admantest/exemplary/simple-banner.json | 3 +- .../admantest/exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../admantest/supplemental/bad_response.json | 3 +- .../admantest/supplemental/status-204.json | 3 +- .../admantest/supplemental/status-404.json | 3 +- adapters/admixer/admixer.go | 1 + .../exemplary/optional-params.json | 3 +- .../exemplary/simple-app-audio.json | 3 +- .../exemplary/simple-app-banner.json | 3 +- .../exemplary/simple-app-native.json | 3 +- .../exemplary/simple-app-video.json | 3 +- .../exemplary/simple-site-audio.json | 3 +- .../exemplary/simple-site-banner.json | 3 +- .../exemplary/simple-site-native.json | 3 +- .../exemplary/simple-site-video.json | 3 +- .../supplemental/bad-dsp-request-example.json | 3 +- .../dsp-server-internal-error-example.json | 3 +- .../unknown-status-code-example.json | 3 +- adapters/adnuntius/adnuntius.go | 1 + .../exemplary/simple-banner.json | 3 +- .../supplemental/check-dealId.json | 3 +- .../supplemental/check-gdpr.json | 3 +- .../supplemental/check-gross-bids.json | 3 +- .../supplemental/check-net-bids.json | 3 +- .../check-noCookies-parameter.json | 3 +- .../supplemental/check-noCookies.json | 3 +- .../supplemental/check-order-multi-imp.json | 3 +- .../supplemental/check-userId.json | 3 +- .../supplemental/empty-regs-ext.json | 3 +- .../supplemental/empty-regs.json | 3 +- .../supplemental/height-error.json | 3 +- .../supplemental/max-deals-test.json | 3 +- .../supplemental/send-header-information.json | 3 +- .../adnuntiustest/supplemental/site-ext.json | 3 +- .../supplemental/size-check.json | 3 +- .../supplemental/status-400.json | 3 +- .../supplemental/test-networks.json | 3 +- .../adnuntiustest/supplemental/user-ext.json | 3 +- .../supplemental/width-error.json | 3 +- adapters/adocean/adocean.go | 4 ++ .../exemplary/multi-banner-impression.json | 3 +- .../exemplary/single-banner-impression.json | 3 +- .../adocean/adoceantest/supplemental/app.json | 3 +- .../supplemental/bad-response.json | 3 +- .../supplemental/encode-error.json | 3 +- .../supplemental/network-error.json | 3 +- .../adoceantest/supplemental/no-bid.json | 6 ++- .../adoceantest/supplemental/no-sizes.json | 6 ++- .../supplemental/requests-merge.json | 6 ++- adapters/adoppler/adoppler.go | 1 + .../adopplertest/exemplary/custom-client.json | 3 +- .../exemplary/default-client.json | 3 +- .../adopplertest/exemplary/multiimp.json | 9 ++-- .../supplemental/bad-request.json | 3 +- .../supplemental/duplicate-imp.json | 6 ++- .../supplemental/invalid-impid.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/invalid-video-ext.json | 6 ++- .../adopplertest/supplemental/no-bid.json | 3 +- .../supplemental/server-error.json | 3 +- adapters/adot/adot.go | 1 + .../adottest/exemplary/simple-banner.json | 3 +- .../exemplary/simple-interstitial.json | 3 +- .../adottest/exemplary/simple-native.json | 3 +- .../adot/adottest/exemplary/simple-video.json | 3 +- .../supplemental/ext-bidder-empty.json | 3 +- .../ext-bidder-publisher-path.json | 3 +- .../adottest/supplemental/simple-audio.json | 3 +- .../supplemental/simple-parallax.json | 3 +- .../adottest/supplemental/status_204.json | 3 +- .../adottest/supplemental/status_400.json | 3 +- .../adottest/supplemental/status_500.json | 3 +- .../supplemental/unmarshal_error.json | 3 +- adapters/adpone/adpone.go | 1 + .../adponetest/exemplary/simple-banner.json | 3 +- .../adponetest/supplemental/bad_response.json | 3 +- .../adponetest/supplemental/status_204.json | 3 +- .../adponetest/supplemental/status_400.json | 3 +- .../adponetest/supplemental/status_418.json | 3 +- adapters/adprime/adprime.go | 1 + .../adprimetest/exemplary/simple-banner.json | 3 +- .../adprimetest/exemplary/simple-native.json | 3 +- .../adprimetest/exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../adprimetest/exemplary/withAudiences.json | 3 +- .../adprimetest/exemplary/withKeywords.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../supplemental/bad_response.json | 3 +- .../adprimetest/supplemental/status-204.json | 3 +- .../adprimetest/supplemental/status-400.json | 3 +- .../adprimetest/supplemental/status-404.json | 3 +- adapters/adquery/adquery.go | 1 + .../adquerytest/exemplary/many-imps.json | 6 ++- .../adquerytest/exemplary/no-currency.json | 3 +- .../adquery/adquerytest/exemplary/ok.json | 3 +- .../exemplary/single-imp-banner-format.json | 3 +- .../adquerytest/supplemental/data-null.json | 3 +- .../invalid-numerical-values.json | 3 +- .../supplemental/malformed-resp.json | 3 +- .../supplemental/mediatype-unknown.json | 3 +- .../supplemental/mediatype-video.json | 3 +- .../adquerytest/supplemental/no-device.json | 3 +- .../supplemental/no-imp-banner-measures.json | 3 +- .../supplemental/no-imp-banner.json | 3 +- .../adquerytest/supplemental/no-site.json | 3 +- .../supplemental/resp-bad-request.json | 3 +- .../supplemental/resp-no-content.json | 3 +- .../supplemental/resp-server-error.json | 3 +- adapters/adrino/adrino.go | 1 + .../adrino/adrinotest/exemplary/no-bid.json | 3 +- .../adrinotest/exemplary/single-native.json | 3 +- .../adrinotest/supplemental/unknown-hash.json | 3 +- adapters/adsinteractive/adsinteractive.go | 1 + .../adsinteractivetest/exemplary/banner.json | 3 +- .../supplemental/bad-request-400.json | 3 +- .../supplemental/bad-response.json | 3 +- .../supplemental/no-content-204.json | 3 +- .../supplemental/service-unavailable-503.json | 3 +- adapters/adtarget/adtarget.go | 1 + .../exemplary/media-type-mapping.json | 3 +- .../adtargettest/exemplary/simple-banner.json | 3 +- .../adtargettest/exemplary/simple-video.json | 3 +- .../supplemental/explicit-dimensions.json | 3 +- .../wrong-impression-mapping.json | 3 +- adapters/adtelligent/adtelligent.go | 1 + .../exemplary/media-type-mapping.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-video.json | 3 +- .../supplemental/explicit-dimensions.json | 3 +- .../wrong-impression-mapping.json | 3 +- adapters/adtrgtme/adtrgtme.go | 1 + .../adtrgtmetest/exemplary/banner-app.json | 9 ++-- .../adtrgtmetest/exemplary/banner-web.json | 9 ++-- .../supplemental/banner-app-headers-ipv6.json | 3 +- .../supplemental/banner-web-headers-ipv6.json | 3 +- .../supplemental/empty-seatbid-array.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/not-found-imp.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../status-code-internal-server-error.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../status-code-service-unavaliable.json | 3 +- .../status-code-temporary-redirect.json | 3 +- .../unsupported-bid-type-native.json | 3 +- .../unsupported-bid-type-video.json | 3 +- adapters/advangelists/advangelists.go | 3 +- .../advangeliststest/exemplary/banner.json | 3 +- .../advangeliststest/exemplary/video.json | 3 +- adapters/adview/adview.go | 1 + .../exemplary/banner-app-format.json | 3 +- .../banner-app-resp-no-formattype.json | 3 +- .../adviewtest/exemplary/banner-app.json | 3 +- .../adviewtest/exemplary/native-app.json | 3 +- .../adviewtest/exemplary/video-app.json | 3 +- .../adviewtest/supplemental/bad-request.json | 3 +- .../supplemental/empty-response.json | 3 +- .../supplemental/nobid-response.json | 3 +- .../adviewtest/supplemental/server-error.json | 3 +- .../supplemental/unparsable-response.json | 3 +- adapters/adxcg/adxcg.go | 1 + .../exemplary/simple-banner-currency.json | 3 +- .../adxcgtest/exemplary/simple-banner.json | 3 +- .../adxcgtest/exemplary/simple-native.json | 3 +- .../adxcgtest/exemplary/simple-video.json | 3 +- .../adxcgtest/supplemental/bad_response.json | 3 +- .../adxcgtest/supplemental/status_204.json | 3 +- .../adxcgtest/supplemental/status_400.json | 3 +- .../adxcgtest/supplemental/status_418.json | 3 +- adapters/adyoulike/adyoulike.go | 1 + .../exemplary/currency-conversion.json | 3 +- .../exemplary/multiformat-impression.json | 3 +- .../supplemental/invalid-bid-response.json | 3 +- .../supplemental/status-bad-request.json | 3 +- .../supplemental/status-no-content.json | 3 +- .../status-service-unavailable.json | 3 +- .../supplemental/status-unknown.json | 3 +- adapters/aidem/aidem.go | 1 + .../aidemtest/exemplary/multi-format.json | 3 +- .../exemplary/multi-imps-multi-bid.json | 3 +- .../exemplary/multi-imps-single-bid.json | 3 +- .../aidem/aidemtest/exemplary/no-bid.json | 3 +- .../aidemtest/exemplary/optional-params.json | 3 +- .../aidemtest/exemplary/simple-banner.json | 3 +- .../aidemtest/exemplary/simple-video.json | 3 +- ...valid-req-400-status-code-bad-request.json | 3 +- ...nvalid-res-200-status-code-empty-bids.json | 3 +- .../invalid-resp-multi-imp-type.json | 3 +- ...valid-req-200-bid-response-from-aidem.json | 3 +- .../valid-req-204-response-from-aidem.json | 3 +- adapters/aja/aja.go | 1 + .../exemplary/banner-multiple-imps.json | 6 ++- adapters/aja/ajatest/exemplary/video.json | 3 +- .../supplemental/invalid-bid-type.json | 3 +- .../supplemental/status-bad-request.json | 3 +- .../status-internal-server-error.json | 3 +- .../supplemental/status-no-content.json | 3 +- adapters/algorix/algorix.go | 1 + .../exemplary/sample-banner-euc.json | 3 +- .../exemplary/sample-banner-use.json | 3 +- .../sample-banner-with-mediatype.json | 3 +- .../sample-banner-with-palcementid.json | 3 +- .../algorixtest/exemplary/sample-banner.json | 3 +- .../algorixtest/exemplary/sample-native.json | 3 +- .../algorixtest/exemplary/sample-nobid.json | 3 +- .../exemplary/sample-rewarded-video.json | 3 +- .../algorixtest/exemplary/sample-video.json | 3 +- .../supplemental/bad_response.json | 3 +- .../multiformat-no-mediatype-response.json | 3 +- .../sample-banner-with-other-mediatype.json | 3 +- .../algorixtest/supplemental/status_400.json | 3 +- .../algorixtest/supplemental/status_500.json | 3 +- adapters/alkimi/alkimi.go | 1 + .../alkimitest/exemplary/simple-audio.json | 3 +- .../alkimitest/exemplary/simple-banner.json | 3 +- .../alkimitest/exemplary/simple-video.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../alkimitest/supplemental/bad_response.json | 3 +- .../alkimitest/supplemental/status-204.json | 3 +- .../supplemental/status-not-200.json | 3 +- adapters/amx/amx.go | 1 + .../amx/amxtest/exemplary/app-simple.json | 3 +- .../amxtest/exemplary/display-multiple.json | 3 +- .../amx/amxtest/exemplary/simple-native.json | 3 +- .../amx/amxtest/exemplary/video-simple.json | 3 +- .../amx/amxtest/exemplary/web-simple.json | 3 +- .../amxtest/supplemental/204-response.json | 3 +- .../amxtest/supplemental/400-response.json | 3 +- .../amxtest/supplemental/500-response.json | 3 +- adapters/apacdex/apacdex.go | 1 + .../exemplary/banner-and-video.json | 3 +- .../apacdex/apacdextest/exemplary/banner.json | 3 +- .../apacdex/apacdextest/exemplary/video.json | 3 +- .../supplemental/explicit-dimensions.json | 3 +- .../invalid-response-no-bids.json | 3 +- .../invalid-response-unmarshall-error.json | 3 +- .../supplemental/server-error-code.json | 3 +- .../supplemental/server-no-content.json | 3 +- .../supplemental/wrong-bid-ext.json | 3 +- adapters/appnexus/appnexus.go | 1 + .../appnexustest/amp/simple-banner.json | 3 +- .../appnexustest/amp/simple-video.json | 3 +- .../exemplary/dynamic-keywords-params.json | 3 +- .../appnexustest/exemplary/native-1.1.json | 3 +- .../exemplary/optional-params.json | 3 +- .../exemplary/schain-24-other-ext.json | 3 +- .../appnexustest/exemplary/schain-24.json | 3 +- .../exemplary/schain-25-other-ext.json | 3 +- .../appnexustest/exemplary/schain-25.json | 3 +- .../simple-banner-foreign-currency.json | 3 +- .../appnexustest/exemplary/simple-banner.json | 3 +- .../appnexustest/exemplary/simple-video.json | 3 +- .../exemplary/string-keywords-params.json | 3 +- .../exemplary/video-invalid-category.json | 3 +- .../supplemental/displaymanager-test.json | 3 +- .../supplemental/explicit-dimensions.json | 3 +- .../supplemental/invalid-bid-type.json | 3 +- .../supplemental/legacy-params.json | 3 +- .../appnexustest/supplemental/multi-bid.json | 3 +- .../placement-id-as-string-test.json | 3 +- .../request-ext-appnexus-existing.json | 3 +- .../supplemental/reserve-ignored.json | 3 +- .../supplemental/reserve-test.json | 3 +- .../appnexustest/supplemental/status-400.json | 3 +- .../supplemental/usePmtRule-test.json | 3 +- .../video/video-brand-category.json | 3 +- ...deo-no-adpodid-two-imps-different-pod.json | 3 +- .../video-same-adpodid-two-imps-same-pod.json | 3 +- adapters/appush/appush.go | 1 + .../appushtest/exemplary/endpointId.json | 3 +- .../appushtest/exemplary/simple-banner.json | 3 +- .../appushtest/exemplary/simple-native.json | 3 +- .../appushtest/exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../appushtest/supplemental/bad_response.json | 3 +- .../appushtest/supplemental/status-204.json | 3 +- .../supplemental/status-not-200.json | 3 +- adapters/aso/aso.go | 1 + .../aso/asotest/exemplary/app-banner.json | 3 +- .../exemplary/app-multi-impressions.json | 6 ++- .../aso/asotest/exemplary/app-native.json | 3 +- adapters/aso/asotest/exemplary/app-video.json | 3 +- .../aso/asotest/exemplary/site-banner.json | 3 +- .../aso/asotest/exemplary/site-native.json | 3 +- .../aso/asotest/exemplary/site-video.json | 3 +- .../aso/asotest/supplemental/bad-request.json | 3 +- .../asotest/supplemental/empty-response.json | 3 +- .../supplemental/media-type-absent.json | 3 +- .../supplemental/media-type-mapping.json | 3 +- .../asotest/supplemental/server-error.json | 3 +- .../supplemental/unparsable-response.json | 3 +- .../exemplary/banner-app.json | 3 +- .../exemplary/interstitial.json | 3 +- .../exemplary/native-1.1.json | 3 +- .../audienceNetworktest/exemplary/video.json | 3 +- .../exemplary/video_consented_providers.json | 3 +- .../supplemental/banner-format-only.json | 3 +- .../supplemental/invalid-adm.json | 3 +- .../supplemental/missing-adm-bidid.json | 3 +- .../supplemental/missing-adm.json | 3 +- .../supplemental/multi-imp.json | 6 ++- .../supplemental/no-bid-204.json | 3 +- .../supplemental/server-error-500.json | 3 +- .../supplemental/split-placementId.json | 3 +- adapters/audienceNetwork/facebook.go | 1 + adapters/automatad/automatad.go | 1 + .../exemplary/simple-banner.json | 3 +- .../supplemental/bad-request.json | 3 +- .../supplemental/error-500-request.json | 3 +- .../supplemental/no-content.json | 3 +- adapters/avocet/avocet.go | 1 + adapters/avocet/avocet_test.go | 1 + .../avocet/avocettest/exemplary/banner.json | 3 +- .../avocet/avocettest/exemplary/video.json | 3 +- adapters/axis/axis.go | 1 + .../axistest/exemplary/simple-banner.json | 3 +- .../axistest/exemplary/simple-native.json | 3 +- .../axis/axistest/exemplary/simple-video.json | 3 +- .../axistest/exemplary/simple-web-banner.json | 3 +- .../axistest/supplemental/bad_media_type.json | 3 +- .../axistest/supplemental/bad_response.json | 3 +- .../axistest/supplemental/status-204.json | 3 +- .../axistest/supplemental/status-not-200.json | 3 +- adapters/axonix/axonix.go | 1 + .../exemplary/banner-and-video.json | 3 +- .../exemplary/banner-video-native.json | 3 +- .../axonixtest/exemplary/simple-banner.json | 3 +- .../axonixtest/exemplary/simple-video.json | 3 +- .../supplemental/bad-response-no-body.json | 3 +- .../supplemental/status-bad-request.json | 3 +- .../supplemental/status-no-content.json | 3 +- .../supplemental/unexpected-status-code.json | 3 +- .../supplemental/valid-extension.json | 3 +- .../supplemental/valid-with-device.json | 3 +- adapters/beachfront/beachfront.go | 11 +++++ .../exemplary/adm-video-app.json | 3 +- .../beachfronttest/exemplary/adm-video.json | 3 +- .../beachfronttest/exemplary/banner.json | 6 ++- .../beachfronttest/exemplary/nurl-video.json | 3 +- .../adm-video-app-alphanum-bundle.json | 3 +- .../adm-video-app-malformed-bundle.json | 3 +- .../supplemental/adm-video-by-explicit.json | 3 +- .../supplemental/adm-video-no-cat.json | 3 +- .../supplemental/adm-video-no-ip.json | 3 +- .../supplemental/adm-video-no-size.json | 3 +- .../supplemental/adm-video-partial-size.json | 3 +- .../supplemental/adm-video-schain.json | 3 +- .../adm-video-zero-size-partial.json | 3 +- .../supplemental/adm-video-zero-size.json | 3 +- .../supplemental/banner-204-with-body.json | 3 +- .../supplemental/banner-204.json | 3 +- .../banner-and-adm-video-by-explicit.json | 6 ++- ...video-expected-204-response-on-banner.json | 6 ++- .../supplemental/banner-and-adm-video.json | 6 ++- .../supplemental/banner-and-nurl-video.json | 6 ++- .../supplemental/banner-bad-request-400.json | 6 ++- .../supplemental/banner-schain.json | 6 ++- ...er_response_unmarshal_error_adm_video.json | 3 +- ...idder_response_unmarshal_error_banner.json | 6 ++- ...r_response_unmarshal_error_nurl_video.json | 3 +- .../currency-adm-video-converted.json | 3 +- .../currency-adm-video-ext-wins.json | 3 +- .../currency-adm-video-imp-wins.json | 3 +- ...rrency-adm-video-warning-and-fallback.json | 3 +- .../currency-adm-video-zero-by-min-both.json | 3 +- .../currency-adm-video-zero-by-min-ext.json | 3 +- .../currency-adm-video-zero-by-min-imp.json | 3 +- .../internal-server-error-500.json | 3 +- .../supplemental/six-nine-combo.json | 15 ++++--- .../supplemental/two-four-combo.json | 9 ++-- adapters/beintoo/beintoo.go | 1 + .../beintootest/exemplary/minimal-banner.json | 3 +- .../supplemental/add-bidfloor.json | 3 +- .../supplemental/build-banner-object.json | 3 +- .../invalid-response-no-bids.json | 3 +- .../invalid-response-unmarshall-error.json | 3 +- .../supplemental/server-error-code.json | 3 +- .../supplemental/server-no-content.json | 3 +- .../site-domain-and-url-correctly-parsed.json | 3 +- adapters/bematterfull/bematterfull.go | 1 + .../bematterfulltest/exemplary/banner.json | 6 ++- .../bematterfulltest/exemplary/native.json | 3 +- .../bematterfulltest/exemplary/video.json | 3 +- .../supplemental/bad-response.json | 3 +- .../supplemental/empty-mediatype.json | 3 +- .../supplemental/empty-seatbid-0-bid.json | 3 +- .../supplemental/empty-seatbid.json | 3 +- .../supplemental/invalid-mediatype.json | 3 +- .../supplemental/status-204.json | 3 +- .../supplemental/status-400.json | 3 +- .../supplemental/status-503.json | 3 +- .../supplemental/unexpected-status.json | 3 +- adapters/between/between.go | 1 + .../betweentest/exemplary/multi-request.json | 3 +- .../betweentest/exemplary/secure-detect.json | 3 +- .../exemplary/simple-site-banner.json | 3 +- .../supplemental/bad-dsp-request-example.json | 3 +- .../supplemental/bad-response-body.json | 3 +- .../dsp-server-internal-error-example.json | 3 +- .../betweentest/supplemental/no-bids.json | 3 +- .../unknown-status-code-example.json | 3 +- adapters/beyondmedia/beyondmedia.go | 1 + .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-native.json | 3 +- .../exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../supplemental/bad_response.json | 3 +- .../supplemental/status-204.json | 3 +- .../supplemental/status-not-200.json | 3 +- adapters/bidder.go | 1 + adapters/bidmachine/bidmachine.go | 1 + .../rewarded_interstitial_no_battr.json | 3 +- .../rewarded_interstitial_w_battr.json | 3 +- .../exemplary/rewarded_video_no_battr.json | 3 +- .../exemplary/rewarded_video_w_battr.json | 3 +- .../exemplary/simple_banner.json | 3 +- .../exemplary/simple_interstitial.json | 3 +- .../exemplary/simple_video.json | 3 +- .../supplemental/status-204.json | 3 +- .../supplemental/status-400.json | 3 +- .../supplemental/status-403.json | 3 +- .../supplemental/status-408.json | 3 +- .../supplemental/status-500.json | 3 +- .../supplemental/status-502.json | 3 +- .../supplemental/status-503.json | 3 +- .../supplemental/status-504.json | 3 +- adapters/bidmyadz/bidmyadz.go | 1 + .../bidmyadztest/exemplary/banner.json | 3 +- .../bidmyadztest/exemplary/native.json | 3 +- .../bidmyadztest/exemplary/video.json | 3 +- .../supplemental/missing-mediatype.json | 3 +- .../supplemental/response-without-bids.json | 6 ++- .../response-without-seatbid.json | 3 +- .../bidmyadztest/supplemental/status-204.json | 3 +- .../bidmyadztest/supplemental/status-400.json | 3 +- .../status-service-unavailable.json | 3 +- .../supplemental/status-unknown.json | 3 +- adapters/bidscube/bidscube.go | 1 + .../bidscubetest/exemplary/simple-banner.json | 3 +- .../bidscubetest/exemplary/simple-native.json | 3 +- .../bidscubetest/exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_bidtype_response.json | 3 +- .../supplemental/bad_response.json | 3 +- .../supplemental/bad_status_code.json | 3 +- .../bidscubetest/supplemental/status-204.json | 3 +- .../bidscubetest/supplemental/status-404.json | 3 +- adapters/bidstack/bidstack.go | 1 + .../exemplary/simple-app-video.json | 3 +- .../bidstacktest/supplemental/status-204.json | 3 +- .../bidstacktest/supplemental/status-400.json | 3 +- .../bidstacktest/supplemental/status-404.json | 3 +- adapters/bizzclick/bizzclick.go | 1 + .../bizzclicktest/exemplary/banner-app.json | 3 +- .../bizzclicktest/exemplary/banner-web.json | 3 +- .../exemplary/default-host-param.json | 3 +- .../bizzclicktest/exemplary/native-app.json | 3 +- .../bizzclicktest/exemplary/native-web.json | 3 +- .../bizzclicktest/exemplary/video-app.json | 3 +- .../bizzclicktest/exemplary/video-web.json | 3 +- .../supplemental/empty-seatbid-array.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- .../status-code-service-unavailable.json | 3 +- adapters/bliink/bliink.go | 1 + .../bliink/bliinktest/exemplary/banner.json | 3 +- .../exemplary/banner_native_video.json | 3 +- .../bliink/bliinktest/exemplary/native.json | 3 +- .../bliink/bliinktest/exemplary/video.json | 3 +- .../supplemental/multiple_format_request.json | 3 +- .../supplemental/no_seat_bid_in_response.json | 3 +- .../supplemental/status_bad_request.json | 3 +- .../supplemental/status_no_content.json | 3 +- .../supplemental/status_not_ok.json | 3 +- adapters/blue/blue.go | 1 + .../bluetest/exemplary/simple-web-banner.json | 3 +- .../204-response-from-target.json | 3 +- .../400-response-from-target.json | 3 +- .../500-response-from-target.json | 3 +- .../bluetest/supplemental/bad_response.json | 3 +- adapters/bluesea/bluesea.go | 1 + .../bluesea/blueseatest/exemplary/banner.json | 3 +- .../bluesea/blueseatest/exemplary/native.json | 3 +- .../bluesea/blueseatest/exemplary/nobid.json | 3 +- .../bluesea/blueseatest/exemplary/video.json | 3 +- .../supplemental/invalid-media-type.json | 3 +- .../supplemental/malformed-body-response.json | 3 +- .../supplemental/status-400-response.json | 3 +- adapters/bmtm/brightmountainmedia.go | 1 + .../exemplary/app-banner.json | 3 +- .../exemplary/app-video.json | 3 +- .../exemplary/banner.json | 3 +- .../exemplary/multi-imp.json | 6 ++- .../exemplary/video.json | 3 +- .../multi-imp-mixed-validation.json | 3 +- .../supplemental/status-not-ok.json | 3 +- adapters/boldwin/boldwin.go | 1 + .../boldwintest/exemplary/endpointId.json | 3 +- .../boldwintest/exemplary/simple-banner.json | 3 +- .../boldwintest/exemplary/simple-native.json | 3 +- .../boldwintest/exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../supplemental/bad_response.json | 3 +- .../boldwintest/supplemental/status-204.json | 3 +- .../supplemental/status-not-200.json | 3 +- adapters/brave/brave.go | 1 + .../brave/bravetest/exemplary/banner-app.json | 3 +- .../brave/bravetest/exemplary/banner-web.json | 3 +- .../brave/bravetest/exemplary/native-app.json | 3 +- .../brave/bravetest/exemplary/native-web.json | 3 +- .../brave/bravetest/exemplary/video-app.json | 3 +- .../brave/bravetest/exemplary/video-web.json | 3 +- .../supplemental/empty-seatbid-array.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- .../status-code-service-unavailable.json | 3 +- adapters/bwx/bwx.go | 1 + adapters/bwx/bwxtest/exemplary/banner.json | 6 ++- adapters/bwx/bwxtest/exemplary/native.json | 3 +- adapters/bwx/bwxtest/exemplary/video.json | 3 +- .../bwxtest/supplemental/bad-response.json | 3 +- .../bwxtest/supplemental/empty-mediatype.json | 3 +- .../supplemental/empty-seatbid-0-bid.json | 3 +- .../bwxtest/supplemental/empty-seatbid.json | 3 +- .../supplemental/invalid-mediatype.json | 3 +- .../bwx/bwxtest/supplemental/status-204.json | 3 +- .../bwx/bwxtest/supplemental/status-400.json | 3 +- .../bwx/bwxtest/supplemental/status-503.json | 3 +- .../supplemental/unexpected-status.json | 3 +- .../exemplary/banner-and-video-app.json | 3 +- .../exemplary/banner-and-video-site.json | 3 +- .../exemplary/banner-app.json | 3 +- .../exemplary/minimal-banner.json | 3 +- .../exemplary/video-app.json | 3 +- .../exemplary/video-ctv.json | 3 +- .../exemplary/video-site.json | 3 +- .../supplemental/add-bidfloor.json | 3 +- .../app-domain-and-url-correctly-parsed.json | 3 +- .../app-storeUrl-correctly-parsed.json | 3 +- .../bad-imp-video-missing-partial-sizes.json | 3 +- .../supplemental/build-banner-object.json | 3 +- .../supplemental/build-video-object.json | 3 +- .../invalid-response-no-bids.json | 3 +- .../invalid-response-unmarshall-error.json | 3 +- .../supplemental/server-error-code.json | 3 +- .../supplemental/server-no-content.json | 3 +- .../site-domain-and-url-correctly-parsed.json | 3 +- .../cadent_aperture_mx/cadentaperturemx.go | 1 + adapters/ccx/ccx.go | 1 + .../ccx/ccxtest/exemplary/multi-banner.json | 3 +- .../ccx/ccxtest/exemplary/simple-banner.json | 3 +- .../204-response-from-target.json | 3 +- .../400-response-from-target.json | 3 +- .../500-response-from-target.json | 3 +- adapters/coinzilla/coinzilla.go | 1 + .../exemplary/multi-banners.json | 3 +- .../coinzillatest/exemplary/multi-imp.json | 3 +- .../exemplary/single-banner.json | 3 +- .../supplemental/bad-request.json | 3 +- .../coinzillatest/supplemental/no-bid.json | 3 +- adapters/colossus/colossus.go | 1 + .../exemplary/simple-banner-groupId.json | 3 +- .../exemplary/simple-banner-without-ext.json | 3 +- .../colossustest/exemplary/simple-banner.json | 3 +- .../exemplary/simple-native-without-ext.json | 3 +- .../colossustest/exemplary/simple-native.json | 3 +- .../exemplary/simple-video-without-ext.json | 3 +- .../colossustest/exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../supplemental/bad_response.json | 3 +- .../supplemental/bad_status_code.json | 3 +- .../colossustest/supplemental/status-204.json | 3 +- .../colossustest/supplemental/status-404.json | 3 +- adapters/compass/compass.go | 1 + .../compasstest/exemplary/endpointId.json | 3 +- .../compasstest/exemplary/simple-banner.json | 3 +- .../compasstest/exemplary/simple-native.json | 3 +- .../compasstest/exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../supplemental/bad_response.json | 3 +- .../compasstest/supplemental/status-204.json | 3 +- .../supplemental/status-not-200.json | 3 +- adapters/connectad/connectad.go | 1 + .../exemplary/optional-params.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../connectadtest/supplemental/204.json | 3 +- .../supplemental/badresponse.json | 3 +- .../supplemental/banner-multi.json | 3 +- .../connectadtest/supplemental/err500.json | 3 +- .../connectadtest/supplemental/ipv6.json | 3 +- .../connectadtest/supplemental/no_device.json | 3 +- .../connectadtest/supplemental/no_dnt.json | 3 +- adapters/consumable/consumable.go | 2 + .../consumable/exemplary/app-audio.json | 3 +- .../consumable/exemplary/app-banner.json | 3 +- .../consumable/exemplary/app-video.json | 3 +- .../consumable/exemplary/simple-banner.json | 3 +- .../supplemental/app-banner-no-ad.json | 3 +- .../supplemental/app-video-no-media-type.json | 3 +- .../supplemental/bad-dsp-request-example.json | 3 +- .../dsp-server-internal-error-example.json | 3 +- .../simple-banner-content-meta.json | 3 +- .../supplemental/simple-banner-coppa.json | 3 +- .../supplemental/simple-banner-eids.json | 3 +- .../supplemental/simple-banner-gdpr-2.json | 3 +- .../supplemental/simple-banner-gdpr-3.json | 3 +- .../supplemental/simple-banner-gdpr.json | 3 +- .../supplemental/simple-banner-gpp.json | 3 +- .../supplemental/simple-banner-meta.json | 3 +- .../simple-banner-no-impressionUrl.json | 3 +- .../supplemental/simple-banner-schain.json | 3 +- .../simple-banner-us-privacy.json | 3 +- .../unknown-status-code-example.json | 3 +- adapters/conversant/conversant.go | 1 + .../conversanttest/exemplary/banner.json | 3 +- .../conversanttest/exemplary/simple_app.json | 3 +- .../conversanttest/exemplary/video.json | 3 +- .../supplemental/server_badresponse.json | 3 +- .../supplemental/server_nocontent.json | 3 +- .../supplemental/server_unknownstatus.json | 3 +- .../supplemental/test_params.json | 3 +- adapters/cpmstar/cpmstar.go | 1 + .../exemplary/banner-and-video.json | 3 +- .../cpmstar/cpmstartest/exemplary/banner.json | 3 +- .../cpmstar/cpmstartest/exemplary/video.json | 3 +- .../supplemental/explicit-dimensions.json | 3 +- .../invalid-response-no-bids.json | 3 +- .../invalid-response-unmarshall-error.json | 3 +- .../supplemental/server-error-code.json | 3 +- .../supplemental/server-no-content.json | 3 +- .../wrong-impression-mapping.json | 3 +- adapters/criteo/criteo.go | 1 + .../exemplary/simple-banner-cookie-uid.json | 3 +- .../exemplary/simple-banner-inapp.json | 3 +- .../simple-banner-multiple-bids.json | 3 +- .../exemplary/simple-banner-uid.json | 3 +- .../exemplary/simple-multi-type-banner.json | 3 +- .../exemplary/simple-multi-type-video.json | 3 +- .../criteotest/exemplary/simple-video.json | 3 +- .../204-response-from-target.json | 3 +- .../400-response-from-target.json | 3 +- .../500-response-from-target.json | 3 +- .../supplemental/simple-banner-with-ipv6.json | 3 +- adapters/cwire/cwire.go | 1 + .../cwiretest/exemplary/banner-imp-ext.json | 3 +- .../cwire/cwiretest/exemplary/banner.json | 3 +- .../cwire/cwiretest/supplemental/204.json | 3 +- .../cwire/cwiretest/supplemental/500.json | 3 +- .../cwiretest/supplemental/badresponse.json | 3 +- adapters/datablocks/datablocks.go | 3 +- .../exemplary/multi-request.json | 3 +- .../datablockstest/exemplary/native.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-video.json | 3 +- .../supplemental/bad-response-body.json | 3 +- .../supplemental/bad-server-response.json | 3 +- .../supplemental/no-content-response.json | 3 +- adapters/decenterads/decenterads.go | 1 + .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_response.json | 3 +- .../supplemental/bad_status_code.json | 3 +- .../supplemental/status-204.json | 3 +- .../supplemental/status-404.json | 3 +- adapters/deepintent/deepintent.go | 1 + .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_response.json | 3 +- .../supplemental/status-204.json | 3 +- .../supplemental/status-404.json | 3 +- .../deepintenttest/supplemental/wrongimp.json | 3 +- adapters/definemedia/definemedia.go | 1 + .../exemplary/sample-conative-banner.json | 3 +- .../exemplary/sample-conative-native.json | 3 +- .../supplemental/nobid-response.json | 3 +- .../supplemental/nocontent-response.json | 3 +- .../supplemental/status_400.json | 3 +- .../supplemental/status_418.json | 3 +- .../supplemental/unmarshal-error.json | 3 +- .../supplemental/unsupported-type.json | 3 +- adapters/dianomi/dianomi.go | 1 + .../dianomitest/exemplary/multi-format.json | 3 +- .../dianomitest/exemplary/multi-native.json | 3 +- ...gle-banner-pricetype-gross-extend-ext.json | 3 +- .../single-banner-pricetype-gross.json | 3 +- .../single-banner-pricetype-net.json | 3 +- .../dianomitest/exemplary/single-banner.json | 3 +- .../dianomitest/exemplary/single-native.json | 3 +- .../dianomitest/exemplary/single-video.json | 3 +- ...nners-different-pricetypes-extend-ext.json | 3 +- .../two-banners-different-pricetypes.json | 3 +- .../dianomitest/supplemental/bad-request.json | 3 +- .../supplemental/empty-response.json | 3 +- .../supplemental/invalid-imp-mediatype.json | 3 +- .../supplemental/nobid-response.json | 3 +- .../supplemental/server-error.json | 3 +- .../supplemental/unparsable-response.json | 3 +- adapters/dmx/dmx.go | 1 + .../dmx/dmxtest/exemplary/idfa-to-app-id.json | 3 +- .../exemplary/imp-populated-banner.json | 3 +- .../exemplary/missing-width-height.json | 3 +- .../dmx/dmxtest/exemplary/simple-app.json | 3 +- .../dmx/dmxtest/exemplary/simple-banner.json | 3 +- .../dmx/dmxtest/exemplary/simple-video.json | 3 +- adapters/dxkulture/dxkulture.go | 1 + .../dxkulturetest/exemplary/banner.json | 3 +- .../exemplary/empty-site-domain-ref.json | 3 +- .../dxkulturetest/exemplary/ipv6.json | 3 +- .../exemplary/video-test-request.json | 3 +- .../dxkulturetest/exemplary/video.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../dxkulturetest/supplemental/no-mtype.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- adapters/e_volution/evolution.go | 1 + .../exemplary/banner-without-mediatype.json | 3 +- .../evolutiontest/exemplary/banner.json | 3 +- .../evolutiontest/exemplary/native.json | 3 +- .../evolutiontest/exemplary/video.json | 3 +- .../supplemental/bad-response.json | 3 +- .../supplemental/empty-seatbid.json | 3 +- .../supplemental/status-204.json | 3 +- .../supplemental/status-400.json | 3 +- .../supplemental/status-503.json | 3 +- .../supplemental/unexpected-status.json | 3 +- adapters/edge226/edge226.go | 1 + .../edge226test/exemplary/endpointId.json | 3 +- .../edge226test/exemplary/simple-banner.json | 3 +- .../edge226test/exemplary/simple-native.json | 3 +- .../edge226test/exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../supplemental/bad_response.json | 3 +- .../edge226test/supplemental/status-204.json | 3 +- .../supplemental/status-not-200.json | 3 +- adapters/emtv/emtv.go | 1 + .../emtv/emtvtest/exemplary/endpointId.json | 3 +- .../emtvtest/exemplary/simple-banner.json | 3 +- .../emtvtest/exemplary/simple-native.json | 3 +- .../emtv/emtvtest/exemplary/simple-video.json | 3 +- .../emtvtest/exemplary/simple-web-banner.json | 3 +- .../emtvtest/supplemental/bad_media_type.json | 3 +- .../emtvtest/supplemental/bad_response.json | 3 +- .../emtvtest/supplemental/status-204.json | 3 +- .../emtvtest/supplemental/status-not-200.json | 3 +- adapters/eplanning/eplanning.go | 1 + .../exemplary/simple-banner-2.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../eplanningtest/exemplary/two-banners.json | 3 +- .../app-domain-and-url-correctly-parsed.json | 3 +- ...anner-2-sizes-in-priority-list-mobile.json | 3 +- ...nner-3-sizes-in-priority-list-desktop.json | 3 +- ...anner-3-sizes-in-priority-list-mobile.json | 3 +- ...er-3-sizes-inout-priority-list-mobile.json | 3 +- ...nner-4-sizes-in-priority-list-desktop.json | 3 +- .../banner-no-size-sends-1x1.json | 3 +- .../invalid-response-no-bids.json | 3 +- .../invalid-response-unmarshall-error.json | 3 +- .../supplemental/server-bad-request.json | 3 +- .../supplemental/server-error-code.json | 3 +- .../supplemental/server-no-content.json | 3 +- .../site-domain-and-url-correctly-parsed.json | 3 +- .../site-page-and-url-correctly-parsed.json | 3 +- ...eo_outstream-only-send-video-instream.json | 3 +- ...d-1_video_instream-send-only-instream.json | 3 +- ...1_video_outstream-send-only-outstream.json | 3 +- ...am-and-1_outstream-send-only-instream.json | 3 +- .../supplemental/two-imps-video-instream.json | 3 +- .../video-no-placement-send-vctx-2.json | 3 +- .../video-no-size-send-640x480.json | 3 +- .../video-partial-size-send-640x480.json | 3 +- .../video-placement-1-send-vctx-1.json | 3 +- .../video-placement-no-1-send-vctx-2.json | 3 +- .../video-zero-size-send-640x480.json | 3 +- adapters/epom/epom.go | 1 + .../epomtest/exemplary/simple-app-banner.json | 3 +- .../epomtest/exemplary/simple-app-native.json | 3 +- .../epomtest/exemplary/simple-app-video.json | 3 +- .../exemplary/simple-site-banner.json | 3 +- .../exemplary/simple-site-native.json | 3 +- .../epomtest/exemplary/simple-site-video.json | 3 +- .../bad-response-bad-request-error.json | 3 +- .../bad-response-no-bid-obj-error.json | 3 +- .../bad-response-no-seatbid-error.json | 3 +- .../bad-response-server-internal-error.json | 3 +- .../bad-response-unexpected-error.json | 3 +- adapters/flipp/flipp.go | 1 + .../exemplary/simple-banner-dtx.json | 3 +- ...ple-banner-native-param-transmit-eids.json | 3 +- ...simple-banner-native-param-user-coppa.json | 3 +- .../simple-banner-native-param-user-gdpr.json | 3 +- .../simple-banner-native-param-user.json | 3 +- .../exemplary/simple-banner-native.json | 3 +- .../flipptest/supplemental/bad-response.json | 3 +- .../supplemental/status-not-200.json | 3 +- adapters/freewheelssp/freewheelssp.go | 1 + .../freewheelssptest/exemplary/multi-imp.json | 3 +- .../exemplary/single-imp.json | 3 +- .../exemplary/string-single-imp.json | 3 +- .../supplemental/204-bid-response.json | 3 +- .../supplemental/503-bid-response.json | 3 +- adapters/frvradn/frvradn.go | 1 + .../frvradn/frvradntest/exemplary/banner.json | 3 +- .../frvradn/frvradntest/exemplary/native.json | 3 +- .../frvradn/frvradntest/exemplary/video.json | 3 +- .../frvradn/frvradntest/supplemental/204.json | 3 +- .../frvradn/frvradntest/supplemental/400.json | 3 +- .../frvradn/frvradntest/supplemental/503.json | 3 +- .../supplemental/currency_converter.json | 3 +- .../supplemental/empty_object_response.json | 3 +- .../supplemental/empty_reponse.json | 3 +- .../supplemental/missing_bid_ext.json | 3 +- .../supplemental/unknown_imp_media_type.json | 3 +- adapters/gamma/gamma.go | 1 + .../exemplary/banner-and-video-and-audio.json | 6 ++- .../gammatest/exemplary/simple-banner.json | 3 +- .../gammatest/exemplary/valid-extension.json | 3 +- .../exemplary/valid-full-params.json | 3 +- .../gammatest/supplemental/bad-request.json | 3 +- .../supplemental/bad-response-no-body.json | 3 +- .../gammatest/supplemental/ignore-imp.json | 6 ++- .../gammatest/supplemental/missing-adm.json | 3 +- .../supplemental/nobid-signaling.json | 3 +- .../supplemental/status-forbidden.json | 3 +- .../supplemental/status-no-content.json | 3 +- adapters/gamoshi/gamoshi.go | 1 + .../exemplary/banner-and-audio.json | 3 +- .../exemplary/banner-and-video.json | 3 +- .../exemplary/banner-native-audio.json | 3 +- .../exemplary/banner-video-native.json | 3 +- .../gamoshitest/exemplary/simple-banner.json | 3 +- .../gamoshitest/exemplary/simple-video.json | 3 +- .../exemplary/valid-extension.json | 3 +- .../exemplary/valid-with-device.json | 3 +- .../exemplary/video-and-audio.json | 3 +- .../supplemental/bad-response-no-body.json | 3 +- .../supplemental/status-bad-request.json | 3 +- .../supplemental/status-no-content.json | 3 +- .../supplemental/unexpected-status-code.json | 3 +- adapters/globalsun/globalsun.go | 1 + .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-native.json | 3 +- .../globalsuntest/exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../supplemental/bad_response.json | 3 +- .../supplemental/status-204.json | 3 +- .../supplemental/status-not-200.json | 3 +- adapters/gothamads/gothamads.go | 1 + .../gothamadstest/exemplary/banner-app.json | 3 +- .../gothamadstest/exemplary/banner-web.json | 3 +- .../gothamadstest/exemplary/native-app.json | 3 +- .../gothamadstest/exemplary/native-web.json | 3 +- .../gothamadstest/exemplary/video-app.json | 3 +- .../gothamadstest/exemplary/video-web.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../supplemental/empty-seatbid-array.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- .../status-code-service-unavailable.json | 3 +- adapters/grid/grid.go | 1 + .../gridtest/exemplary/multitype-banner.json | 3 +- .../gridtest/exemplary/multitype-native.json | 3 +- .../gridtest/exemplary/multitype-video.json | 3 +- .../gridtest/exemplary/native-as-string.json | 3 +- .../gridtest/exemplary/simple-banner.json | 3 +- .../gridtest/exemplary/simple-native.json | 3 +- .../grid/gridtest/exemplary/simple-video.json | 3 +- .../gridtest/exemplary/with-ext-keywords.json | 3 +- .../gridtest/exemplary/with-keywords.json | 3 +- .../exemplary/with-mixed-keywords.json | 3 +- .../exemplary/with-site-keywords.json | 3 +- .../exemplary/with-siteuser-keywords.json | 3 +- .../exemplary/with-user-keywords.json | 3 +- .../grid/gridtest/exemplary/with_gpid.json | 3 +- .../gridtest/supplemental/bad_response.json | 3 +- .../gridtest/supplemental/status_204.json | 3 +- .../gridtest/supplemental/status_400.json | 3 +- .../gridtest/supplemental/status_418.json | 3 +- adapters/gumgum/gumgum.go | 1 + .../gumgum/gumgumtest/exemplary/banner.json | 3 +- .../gumgum/gumgumtest/exemplary/video.json | 3 +- .../supplemental/banner-only-in-format.json | 3 +- .../banner-with-pubId-product-params.json | 3 +- .../supplemental/banner-with-pubId.json | 3 +- .../supplemental/banner-with-site.json | 3 +- .../supplemental/banner-with-slot-param.json | 3 +- .../supplemental/video-with-irisid.json | 3 +- adapters/huaweiads/huaweiads.go | 1 + .../huaweiadstest/exemplary/banner1.json | 3 +- .../exemplary/banner1_without_userext.json | 3 +- .../huaweiadstest/exemplary/banner2.json | 3 +- .../huaweiadstest/exemplary/banner3.json | 3 +- .../exemplary/banner4_mccmnc.json | 3 +- .../exemplary/banner5_user_geo.json | 3 +- .../huaweiadstest/exemplary/banner6_imei.json | 3 +- .../exemplary/bannerAppPromotionType.json | 3 +- .../exemplary/bannerNonIntegerMccmnc.json | 3 +- .../exemplary/bannerNotAppPromotionType.json | 3 +- .../exemplary/bannerTestExtraInfo1.json | 3 +- .../exemplary/bannerTestExtraInfo2.json | 3 +- .../exemplary/bannerTestExtraInfo3.json | 3 +- .../exemplary/bannerWrongMccmnc.json | 3 +- .../exemplary/interstitialBannerType.json | 3 +- .../exemplary/interstitialVideoType.json | 3 +- .../exemplary/nativeIncludeVideo.json | 3 +- .../exemplary/nativeMultiSizesByRange.json | 3 +- .../exemplary/nativeMultiSizesByRatio.json | 3 +- .../exemplary/nativeSingleImage.json | 3 +- .../exemplary/nativeThreeImage.json | 3 +- .../nativeThreeImageIncludeIcon.json | 3 +- .../exemplary/rewardedVideo.json | 3 +- .../exemplary/rewardedVideo1.json | 3 +- .../exemplary/rewardedVideo2.json | 3 +- .../exemplary/rewardedVideo3.json | 3 +- .../exemplary/rewardedVideo4.json | 3 +- .../huaweiadstest/exemplary/rollVideo.json | 3 +- .../huaweiadstest/exemplary/video.json | 3 +- .../supplemental/bad_response.json | 3 +- .../supplemental/bad_response_400.json | 3 +- .../supplemental/bad_response_503.json | 3 +- .../bad_response_dont_find_impid.json | 3 +- .../bad_response_incorrect_huawei_adtype.json | 3 +- .../supplemental/bad_response_not_intent.json | 3 +- .../supplemental/bad_response_not_native.json | 3 +- .../bad_response_retcode30_204.json | 3 +- .../bad_response_retcode_210.json | 3 +- .../bad_response_retcode_408.json | 3 +- .../bad_response_retcode_500.json | 3 +- .../supplemental/missing_video_size.json | 3 +- .../supplemental/zero_video_size.json | 3 +- adapters/imds/imds.go | 1 + .../imdstest/exemplary/simple-banner.json | 3 +- .../imds/imdstest/exemplary/simple-video.json | 3 +- .../imdstest/supplemental/audio_response.json | 3 +- .../imdstest/supplemental/bad_response.json | 3 +- .../supplemental/native_response.json | 3 +- .../imdstest/supplemental/one_bad_ext.json | 3 +- .../imdstest/supplemental/status_204.json | 3 +- .../imdstest/supplemental/status_400.json | 3 +- .../imdstest/supplemental/status_500.json | 3 +- adapters/impactify/impactify.go | 1 + .../exemplary/sample_banner.json | 3 +- .../impactifytest/exemplary/sample_video.json | 3 +- .../supplemental/bad_response.json | 3 +- .../impactifytest/supplemental/buyeruid.json | 3 +- .../impactifytest/supplemental/headers.json | 3 +- .../supplemental/headers_ip.json | 3 +- .../impactifytest/supplemental/http_204.json | 3 +- .../impactifytest/supplemental/http_400.json | 3 +- .../impactifytest/supplemental/http_500.json | 3 +- .../supplemental/negative_price.json | 3 +- .../supplemental/no_seat_bid.json | 3 +- .../not_supported_media_type.json | 3 +- .../impactifytest/supplemental/referer.json | 3 +- adapters/improvedigital/improvedigital.go | 1 + .../exemplary/app-multi.json | 9 ++-- .../improvedigitaltest/exemplary/audio.json | 3 +- .../improvedigitaltest/exemplary/native.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../exemplary/site-multi.json | 9 ++-- .../supplemental/ad-server-url.json | 3 +- .../addtl-consent-multi-tilda.json | 3 +- .../supplemental/addtl-consent.json | 3 +- .../supplemental/bad_response.json | 3 +- .../supplemental/dealid.json | 15 ++++--- .../supplemental/foreign-currency.json | 3 +- .../missing_and_unsupported_mtype.json | 9 ++-- .../supplemental/multi-seatbid.json | 3 +- .../supplemental/nobid-debug.json | 3 +- .../supplemental/nobid.json | 3 +- .../supplemental/noseatbid.json | 3 +- .../supplemental/rewarded-inventory.json | 9 ++-- .../supplemental/status_204.json | 3 +- .../supplemental/status_400.json | 3 +- .../supplemental/status_418.json | 3 +- .../supplemental/wrong_impid.json | 3 +- adapters/infytv/infytv.go | 1 + adapters/infytv/infytvtest/exemplary/app.json | 3 +- .../infytv/infytvtest/exemplary/video.json | 3 +- .../infytvtest/supplemental/bad-response.json | 3 +- .../supplemental/empty-seatbid.json | 3 +- .../infytvtest/supplemental/status-204.json | 3 +- .../infytvtest/supplemental/status-400.json | 3 +- .../infytvtest/supplemental/status-503.json | 3 +- .../supplemental/unexpected-status.json | 3 +- adapters/inmobi/inmobi.go | 1 + .../exemplary/simple-app-banner.json | 3 +- .../exemplary/simple-app-native.json | 3 +- .../exemplary/simple-app-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../exemplary/simple-web-video.json | 3 +- .../inmobi/inmobitest/supplemental/204.json | 3 +- .../inmobi/inmobitest/supplemental/400.json | 3 +- .../supplemental/banner-format-coersion.json | 3 +- .../interactiveoffers/interactiveoffers.go | 1 + .../exemplary/goodmultiplebidrequest.json | 3 +- .../exemplary/goodsinglebidrequest.json | 3 +- .../supplemental/204.json | 3 +- .../supplemental/400.json | 3 +- .../supplemental/not200.json | 3 +- .../supplemental/wrongjsonresponse.json | 3 +- adapters/invibes/invibes.go | 9 ++++ adapters/invibes/invibestest/amp/amp-ad.json | 3 +- .../invibestest/exemplary/advanced-ad.json | 3 +- .../invibestest/exemplary/basic-ad.json | 3 +- .../invibes/invibestest/exemplary/no-ad.json | 3 +- .../invibestest/exemplary/test-ad.json | 3 +- .../supplemental/request-error-servererr.json | 3 +- .../request-error-statuscode.json | 3 +- adapters/iqx/iqx.go | 1 + .../iqx/iqzonextest/exemplary/banner.json | 6 ++- .../iqx/iqzonextest/exemplary/native.json | 3 +- adapters/iqx/iqzonextest/exemplary/video.json | 3 +- .../supplemental/bad-response.json | 3 +- .../supplemental/empty-mediatype.json | 3 +- .../supplemental/empty-seatbid-0-bid.json | 3 +- .../supplemental/empty-seatbid.json | 3 +- .../supplemental/invalid-mediatype.json | 3 +- .../iqzonextest/supplemental/status-204.json | 3 +- .../iqzonextest/supplemental/status-400.json | 3 +- .../iqzonextest/supplemental/status-503.json | 3 +- .../supplemental/unexpected-status.json | 3 +- adapters/iqzone/iqzone.go | 1 + .../iqzonetest/exemplary/endpointId.json | 3 +- .../iqzonetest/exemplary/simple-banner.json | 3 +- .../iqzonetest/exemplary/simple-native.json | 3 +- .../iqzonetest/exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../iqzonetest/supplemental/bad_response.json | 3 +- .../iqzonetest/supplemental/status-204.json | 3 +- .../supplemental/status-not-200.json | 3 +- adapters/ix/ix.go | 1 + .../ixtest/exemplary/additional-consent.json | 3 +- adapters/ix/ixtest/exemplary/app-site-id.json | 3 +- .../ix/ixtest/exemplary/banner-no-format.json | 3 +- adapters/ix/ixtest/exemplary/fledge.json | 3 +- .../multi-format-with-ext-prebid-type.json | 3 +- .../exemplary/multi-format-with-mtype.json | 3 +- .../multi-imp-multi-size-requests.json | 3 +- .../ixtest/exemplary/multi-imp-requests.json | 3 +- adapters/ix/ixtest/exemplary/multibid.json | 3 +- .../ix/ixtest/exemplary/multiple-siteIds.json | 3 +- .../native-eventtrackers-compat-12.json | 3 +- adapters/ix/ixtest/exemplary/no-pub-id.json | 3 +- adapters/ix/ixtest/exemplary/no-pub.json | 3 +- .../ix/ixtest/exemplary/simple-audio.json | 3 +- .../exemplary/simple-banner-multi-size.json | 3 +- .../ix/ixtest/exemplary/simple-native.json | 3 +- .../ix/ixtest/exemplary/simple-video.json | 3 +- .../ix/ixtest/exemplary/structured-pod.json | 3 +- .../supplemental/app-site-id-publisher.json | 3 +- .../ix/ixtest/supplemental/bad-fledge.json | 3 +- .../ix/ixtest/supplemental/bad-imp-id.json | 3 +- .../ix/ixtest/supplemental/bad-request.json | 3 +- .../supplemental/bad-response-body.json | 3 +- .../ix/ixtest/supplemental/dsa-request.json | 3 +- .../ix/ixtest/supplemental/fledge-no-bid.json | 3 +- .../multi-imp-requests-error.json | 3 +- .../native-eventtrackers-empty.json | 3 +- .../native-eventtrackers-missing.json | 3 +- .../ixtest/supplemental/native-missing.json | 3 +- .../ix/ixtest/supplemental/no-content.json | 3 +- .../ix/ixtest/supplemental/not-found.json | 3 +- adapters/ix/ixtest/supplemental/sid.json | 3 +- adapters/jixie/jixie.go | 1 + .../exemplary/banner-and-video-site.json | 3 +- .../jixietest/supplemental/add-accountid.json | 3 +- .../jixietest/supplemental/add-extraprop.json | 3 +- .../jixietest/supplemental/add-userid.json | 3 +- adapters/kargo/kargo.go | 1 + .../kargo/kargotest/exemplary/banner.json | 3 +- .../kargo/kargotest/exemplary/native.json | 3 +- adapters/kargo/kargotest/exemplary/video.json | 3 +- .../supplemental/status-bad-request.json | 9 +++- .../supplemental/status-no-content.json | 3 +- adapters/kayzen/kayzen.go | 1 + .../kayzentest/exemplary/banner-app.json | 3 +- .../kayzentest/exemplary/banner-web.json | 3 +- .../kayzentest/exemplary/native-app.json | 3 +- .../kayzentest/exemplary/native-web.json | 3 +- .../kayzentest/exemplary/video-app.json | 3 +- .../kayzentest/exemplary/video-web.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- adapters/kidoz/kidoz.go | 1 + .../kidoztest/exemplary/simple-banner.json | 3 +- .../kidoztest/exemplary/simple-video.json | 3 +- .../kidoz/kidoztest/supplemental/bad-bid.json | 3 +- .../kidoztest/supplemental/status-204.json | 3 +- .../kidoztest/supplemental/status-400.json | 3 +- .../kidoztest/supplemental/status-403.json | 3 +- .../kidoztest/supplemental/status-408.json | 3 +- .../kidoztest/supplemental/status-500.json | 3 +- .../kidoztest/supplemental/status-502.json | 3 +- .../kidoztest/supplemental/status-503.json | 3 +- .../kidoztest/supplemental/status-504.json | 3 +- adapters/kiviads/kiviads.go | 1 + .../kiviadstest/exemplary/endpointId.json | 3 +- .../kiviadstest/exemplary/simple-banner.json | 3 +- .../kiviadstest/exemplary/simple-native.json | 3 +- .../kiviadstest/exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../supplemental/bad_response.json | 3 +- .../kiviadstest/supplemental/status-204.json | 3 +- .../supplemental/status-not-200.json | 3 +- adapters/krushmedia/krushmedia.go | 1 + .../krushmediatest/exemplary/banner-app.json | 3 +- .../krushmediatest/exemplary/banner-web.json | 3 +- .../krushmediatest/exemplary/native-app.json | 3 +- .../krushmediatest/exemplary/native-web.json | 3 +- .../krushmediatest/exemplary/video-app.json | 3 +- .../krushmediatest/exemplary/video-web.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- .../status-code-service-unavailable.json | 3 +- adapters/lemmadigital/lemmadigital.go | 1 + .../lemmadigitaltest/exemplary/banner.json | 3 +- .../lemmadigitaltest/exemplary/multi-imp.json | 3 +- .../lemmadigitaltest/exemplary/video.json | 3 +- .../supplemental/empty-seatbid-array.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- adapters/liftoff/liftoff.go | 1 + .../exemplary/app_video_instl.json | 3 +- .../exemplary/app_video_rewarded.json | 3 +- .../exemplary/site_video_instl.json | 3 +- .../exemplary/site_video_rewarded.json | 3 +- .../supplemental/appid_placementid_check.json | 3 +- .../supplemental/liftoff_ext_check.json | 3 +- .../missing_appid_or_placementid.json | 3 +- .../supplemental/response_code_204.json | 3 +- .../supplemental/response_code_400.json | 3 +- .../supplemental/response_code_non_200.json | 3 +- .../LimelightDigitaltest/exemplary/audio.json | 3 +- .../exemplary/banner.json | 3 +- .../exemplary/multibid.json | 6 ++- .../exemplary/native.json | 3 +- .../LimelightDigitaltest/exemplary/video.json | 3 +- .../supplemental/204.json | 3 +- .../supplemental/503.json | 3 +- .../supplemental/additional_fields.json | 3 +- .../supplemental/currency_converter.json | 3 +- .../supplemental/empty_object_response.json | 3 +- .../supplemental/empty_reponse.json | 3 +- .../supplemental/publisher_id_string.json | 3 +- .../supplemental/unknown_bid_impid.json | 3 +- .../supplemental/unknown_imp_media_type.json | 3 +- adapters/limelightDigital/limelightDigital.go | 1 + adapters/lm_kiviads/lmkiviads.go | 1 + .../lmkiviadstest/exemplary/banner.json | 6 ++- .../lmkiviadstest/exemplary/native.json | 3 +- .../lmkiviadstest/exemplary/video.json | 3 +- .../supplemental/bad-response.json | 3 +- .../supplemental/empty-mediatype.json | 3 +- .../supplemental/empty-seatbid-0-bid.json | 3 +- .../supplemental/empty-seatbid.json | 3 +- .../supplemental/invalid-mediatype.json | 3 +- .../supplemental/status-204.json | 3 +- .../supplemental/status-400.json | 3 +- .../supplemental/status-503.json | 3 +- .../supplemental/unexpected-status.json | 3 +- adapters/lockerdome/lockerdome.go | 1 + .../exemplary/simple-banner-multiple.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../supplemental/bad_response.json | 3 +- .../supplemental/empty_seatbid.json | 3 +- .../supplemental/status_204.json | 3 +- .../supplemental/status_400.json | 3 +- .../supplemental/status_418.json | 3 +- adapters/logan/logan.go | 1 + .../logantest/exemplary/simple-banner.json | 3 +- .../logantest/exemplary/simple-native.json | 3 +- .../logantest/exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../logantest/supplemental/bad_response.json | 3 +- .../logantest/supplemental/status-204.json | 3 +- .../supplemental/status-not-200.json | 3 +- adapters/logicad/logicad.go | 3 +- .../logicad/logicadtest/exemplary/banner.json | 3 +- .../supplemental/multiImpSameTid.json | 3 +- .../supplemental/responseCode.json | 3 +- .../supplemental/responseNoBid.json | 3 +- .../logicadtest/supplemental/responsebid.json | 3 +- .../logicadtest/supplemental/site.json | 3 +- adapters/lunamedia/lunamedia.go | 3 +- .../lunamediatest/exemplary/banner.json | 3 +- .../lunamediatest/exemplary/video.json | 3 +- .../lunamediatest/supplemental/compat.json | 3 +- .../supplemental/responseCode.json | 3 +- .../supplemental/responsebid.json | 3 +- .../lunamediatest/supplemental/site.json | 3 +- adapters/mabidder/mabidder.go | 1 + .../exemplary/simple-app-banner.json | 3 +- .../supplemental/bad-request-example.json | 3 +- .../supplemental/bad-response-malformed.json | 3 +- .../supplemental/bad-response-status-500.json | 3 +- .../supplemental/no-content-response.json | 3 +- adapters/madvertise/madvertise.go | 1 + .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-video.json | 3 +- .../supplemental/display-site-test.json | 3 +- .../supplemental/response-204.json | 3 +- .../supplemental/response-400.json | 3 +- .../supplemental/response-500.json | 3 +- adapters/marsmedia/marsmedia.go | 1 + .../exemplary/simple-banner-int-param.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../marsmediatest/exemplary/simple-video.json | 3 +- .../exemplary/valid-extension.json | 3 +- adapters/medianet/medianet.go | 1 + .../medianettest/exemplary/multi-format.json | 3 +- .../medianettest/exemplary/multi-imps.json | 3 +- .../medianettest/exemplary/no-bid.json | 3 +- .../exemplary/optional-params.json | 3 +- .../medianettest/exemplary/simple-banner.json | 3 +- .../medianettest/exemplary/simple-video.json | 3 +- ...valid-req-400-status-code-bad-request.json | 3 +- .../valid-req-200-bid-response-from-mnet.json | 3 +- .../valid-req-204-response-from-mnet.json | 3 +- adapters/mgid/mgid.go | 1 + .../mgidtest/exemplary/noplacementid.json | 3 +- .../mgidtest/exemplary/simple-banner.json | 3 +- .../exemplary/simple-banner_no_device.json | 3 +- .../simple-banner_no_device_no_site.json | 3 +- .../exemplary/simple-banner_with_crtype.json | 3 +- .../mgidtest/supplemental/status_204.json | 3 +- .../mgidtest/supplemental/status_not200.json | 3 +- .../mgid/mgidtest/supplemental/video.json | 3 +- adapters/mgidX/mgidX.go | 1 + .../mgidX/mgidXtest/exemplary/endpointId.json | 3 +- .../mgidXtest/exemplary/simple-banner.json | 3 +- .../mgidXtest/exemplary/simple-native.json | 3 +- .../mgidXtest/exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../mgidXtest/supplemental/bad_response.json | 3 +- .../mgidXtest/supplemental/status-204.json | 3 +- .../supplemental/status-not-200.json | 3 +- adapters/minutemedia/minutemedia.go | 1 + .../exemplary/banner-and-video-app.json | 3 +- .../exemplary/banner-and-video-gdpr.json | 3 +- .../exemplary/banner-and-video-site.json | 3 +- .../exemplary/banner-and-video.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-video.json | 3 +- .../supplemental/bad-request.json | 3 +- .../supplemental/missing-mtype.json | 3 +- adapters/mobfoxpb/mobfoxpb.go | 1 + .../exemplary/simple-banner-direct-route.json | 3 +- .../exemplary/simple-banner-rtb-route.json | 3 +- .../exemplary/simple-video-direct-route.json | 3 +- .../exemplary/simple-video-rtb-route.json | 3 +- .../simple-web-banner-direct-route.json | 3 +- .../simple-web-banner-rtb-route.json | 3 +- .../supplemental/bad_response.json | 3 +- .../supplemental/bad_status_code.json | 3 +- .../supplemental/missmatch_bid_id.json | 3 +- .../mobfoxpbtest/supplemental/status-204.json | 3 +- .../mobfoxpbtest/supplemental/status-404.json | 3 +- adapters/mobilefuse/mobilefuse.go | 1 + .../exemplary/multi-format.json | 3 +- .../exemplary/multi-imps-multi-format.json | 3 +- .../mobilefusetest/exemplary/multi-imps.json | 3 +- .../mobilefusetest/exemplary/no-bid.json | 3 +- .../exemplary/optional-params.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-native.json | 3 +- .../exemplary/simple-video.json | 3 +- .../mobilefusetest/exemplary/skadn.json | 3 +- .../supplemental/bad-status-code.json | 3 +- .../supplemental/server-error-response.json | 3 +- adapters/motorik/motorik.go | 1 + .../motoriktest/exemplary/banner-app.json | 3 +- .../motoriktest/exemplary/banner-web.json | 3 +- .../motoriktest/exemplary/native-app.json | 3 +- .../motoriktest/exemplary/native-web.json | 3 +- .../motoriktest/exemplary/video-app.json | 3 +- .../motoriktest/exemplary/video-web.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../supplemental/empty-seatbid-array.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- .../status-code-service-unavailable.json | 3 +- adapters/nextmillennium/nextmillennium.go | 3 +- .../exemplary/banner-empty-group-id.json | 3 +- .../exemplary/banner-with-group-id.json | 3 +- .../exemplary/banner-with-group-id_app.json | 3 +- .../exemplary/banner-with-only-width.json | 3 +- .../exemplary/banner-with-wh.json | 3 +- .../exemplary/banner-wo-domain.json | 3 +- .../exemplary/banner-wo-size.json | 3 +- .../nextmillenniumtest/exemplary/banner.json | 3 +- .../exemplary/empty-banner-obj.json | 3 +- .../nextmillenniumtest/exemplary/video.json | 3 +- .../supplemental/empty-seatbid.json | 3 +- .../supplemental/error-response.json | 3 +- .../supplemental/no-content.json | 3 +- adapters/nobid/nobid.go | 1 + .../nobid/nobidtest/exemplary/banner.json | 3 +- .../nobidtest/supplemental/bad-mediatype.json | 3 +- .../nobidtest/supplemental/bad-request.json | 3 +- .../nobidtest/supplemental/bad-response.json | 3 +- .../nobidtest/supplemental/no-content.json | 3 +- .../supplemental/notok-response.json | 3 +- adapters/oms/oms.go | 1 + .../exemplary/simple-banner-cookie-uid.json | 3 +- .../simple-banner-multiple-bids.json | 3 +- .../omstest/exemplary/simple-banner-uid.json | 3 +- .../exemplary/simple-multi-type-banner.json | 3 +- .../204-response-from-target.json | 3 +- .../400-response-from-target.json | 3 +- .../500-response-from-target.json | 3 +- .../supplemental/simple-banner-with-ipv6.json | 3 +- adapters/onetag/onetag.go | 1 + .../onetag/onetagtest/exemplary/no-bid.json | 3 +- .../onetagtest/exemplary/simple-banner.json | 3 +- .../onetagtest/exemplary/simple-native.json | 3 +- .../onetagtest/exemplary/simple-video.json | 3 +- .../supplemental/internal-server-error.json | 3 +- .../supplemental/wrong-impression-id.json | 3 +- adapters/openweb/openweb.go | 1 + .../exemplary/multiple-imps-same-aid.json | 3 +- .../openwebtest/exemplary/simple-banner.json | 6 ++- .../openwebtest/exemplary/simple-video.json | 3 +- .../openwebtest/supplemental/status-204.json | 3 +- .../openwebtest/supplemental/status-400.json | 3 +- .../openwebtest/supplemental/status-500.json | 3 +- .../wrong-impression-mapping.json | 3 +- adapters/openx/openx.go | 1 + .../openxtest/exemplary/fledge-no-bids.json | 3 +- .../openx/openxtest/exemplary/fledge.json | 3 +- .../exemplary/imp-ext-passthrough.json | 3 +- .../openxtest/exemplary/optional-params.json | 3 +- .../openxtest/exemplary/simple-banner.json | 3 +- .../openxtest/exemplary/simple-video.json | 3 +- .../openxtest/exemplary/video-rewarded.json | 3 +- .../openxtest/supplemental/multi-imp.json | 9 ++-- adapters/operaads/operaads.go | 1 + .../operaadstest/exemplary/multiformat.json | 6 ++- .../operaadstest/exemplary/native.json | 3 +- .../operaadstest/exemplary/simple-banner.json | 3 +- .../operaadstest/exemplary/video.json | 3 +- .../operaadstest/supplemental/badrequest.json | 3 +- .../supplemental/miss-native.json | 3 +- .../operaadstest/supplemental/nocontent.json | 3 +- .../supplemental/unexcept-statuscode.json | 3 +- adapters/orbidder/orbidder.go | 1 + .../multibid-multi-format-with-mtype.json | 3 +- .../exemplary/simple-app-banner.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../exemplary/simple-web-native.json | 3 +- .../supplemental/dsp-bad-request-example.json | 3 +- .../dsp-bad-response-example.json | 3 +- .../dsp-internal-server-error-example.json | 3 +- .../dsp-invalid-accountid-example.json | 3 +- .../supplemental/no-content-response.json | 3 +- .../supplemental/valid-and-invalid-imps.json | 3 +- adapters/outbrain/outbrain.go | 1 + .../outbraintest/exemplary/banner.json | 3 +- .../outbraintest/exemplary/native.json | 3 +- .../outbraintest/exemplary/video.json | 3 +- .../supplemental/app_request.json | 3 +- .../outbraintest/supplemental/eids.json | 3 +- .../supplemental/general_params.json | 3 +- .../supplemental/optional_params.json | 3 +- .../outbraintest/supplemental/status_204.json | 3 +- .../outbraintest/supplemental/status_400.json | 3 +- .../outbraintest/supplemental/status_418.json | 3 +- adapters/ownadx/ownadx.go | 3 +- .../ownadx/ownadxtest/exemplary/banner.json | 3 +- .../ownadx/ownadxtest/exemplary/video.json | 3 +- .../supplemental/bad-server-response.json | 3 +- .../ownadxtest/supplemental/bid-empty-.json | 3 +- .../ownadxtest/supplemental/bidext-type.json | 3 +- .../supplemental/http-status-204.json | 3 +- .../supplemental/http-status-400.json | 3 +- .../supplemental/seatbid-empty-.json | 3 +- .../supplemental/unexpected-status.json | 3 +- adapters/pangle/pangle.go | 1 + .../pangletest/exemplary/app_banner.json | 3 +- .../exemplary/app_banner_instl.json | 3 +- .../pangletest/exemplary/app_native.json | 3 +- .../pangletest/exemplary/app_video_instl.json | 3 +- .../exemplary/app_video_rewarded.json | 3 +- .../supplemental/appid_placementid_check.json | 3 +- .../supplemental/pangle_ext_check.json | 3 +- .../supplemental/response_code_204.json | 3 +- .../supplemental/response_code_400.json | 3 +- .../supplemental/response_code_non_200.json | 3 +- .../supplemental/unrecognized_adtype.json | 3 +- adapters/pgamssp/pgamssp.go | 1 + .../pgamssptest/exemplary/endpointId.json | 3 +- .../pgamssptest/exemplary/simple-banner.json | 3 +- .../pgamssptest/exemplary/simple-native.json | 3 +- .../pgamssptest/exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../supplemental/bad_response.json | 3 +- .../pgamssptest/supplemental/status-204.json | 3 +- .../supplemental/status-not-200.json | 3 +- adapters/pubmatic/pubmatic.go | 1 + .../pubmatictest/exemplary/banner.json | 3 +- .../pubmatictest/exemplary/fledge.json | 3 +- .../pubmatictest/exemplary/native.json | 3 +- .../pubmatictest/exemplary/video.json | 3 +- .../pubmatictest/supplemental/app.json | 3 +- .../supplemental/dctrAndPmZoneID.json | 3 +- .../pubmatictest/supplemental/extra-bid.json | 3 +- .../supplemental/gptSlotNameInImpExt.json | 3 +- .../gptSlotNameInImpExtPbAdslot.json | 3 +- .../pubmatictest/supplemental/impExtData.json | 3 +- .../supplemental/multiplemedia.json | 3 +- .../supplemental/native_invalid_adm.json | 3 +- .../pubmatictest/supplemental/nilReqExt.json | 3 +- .../pubmatictest/supplemental/noAdSlot.json | 3 +- .../supplemental/pmZoneIDInKeywords.json | 3 +- .../supplemental/reqBidderParams.json | 3 +- .../supplemental/trimPublisherID.json | 3 +- adapters/pubnative/pubnative.go | 1 + .../pubnativetest/exemplary/native.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../pubnativetest/exemplary/video.json | 3 +- adapters/pulsepoint/pulsepoint.go | 1 + .../pulsepointtest/exemplary/banner-app.json | 3 +- .../pulsepointtest/exemplary/banner.json | 3 +- .../exemplary/empty-pub-node-app.json | 3 +- .../exemplary/empty-pub-node-site.json | 3 +- .../pulsepointtest/exemplary/multi-imps.json | 3 +- .../pulsepointtest/exemplary/native.json | 3 +- .../pulsepointtest/exemplary/video.json | 3 +- .../supplemental/bad-bid-data.json | 3 +- .../supplemental/bad-input.json | 3 +- .../pulsepointtest/supplemental/error.json | 3 +- .../supplemental/impid-mismatch.json | 3 +- .../pulsepointtest/supplemental/passback.json | 3 +- adapters/pwbid/pwbid.go | 1 + .../pwbid/pwbidtest/exemplary/banner.json | 3 +- .../pwbid/pwbidtest/exemplary/native.json | 3 +- .../pwbidtest/exemplary/optional-params.json | 3 +- adapters/pwbid/pwbidtest/exemplary/video.json | 3 +- .../response-200-without-body.json | 3 +- .../pwbidtest/supplemental/response-204.json | 3 +- .../pwbidtest/supplemental/response-400.json | 3 +- .../pwbidtest/supplemental/response-500.json | 3 +- adapters/relevantdigital/relevantdigital.go | 1 + .../exemplary/simple-audio.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-native.json | 3 +- .../exemplary/simple-video.json | 3 +- .../supplemental/invalidBidMType.json | 3 +- .../invalidBidMTypeParsesExt.json | 3 +- .../supplemental/invalidBidType.json | 3 +- adapters/revcontent/revcontent.go | 1 + .../revcontenttest/exemplary/no-bid.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-native.json | 3 +- .../supplemental/bad_response.json | 3 +- .../supplemental/status_400.json | 3 +- .../supplemental/status_500.json | 3 +- adapters/richaudience/richaudience.go | 1 + .../exemplary/single-banner-app.json | 3 +- .../single-banner-defaultCurrency.json | 3 +- .../exemplary/single-banner-deviceConfig.json | 3 +- .../exemplary/single-banner-extUser.json | 3 +- .../exemplary/single-banner-floorPrice.json | 3 +- .../exemplary/single-banner-iPv6.json | 3 +- .../exemplary/single-banner-nil-device.json | 3 +- .../exemplary/single-banner-nosecure.json | 3 +- .../exemplary/single-banner-setCurrency.json | 3 +- .../exemplary/single-banner-sitePage.json | 3 +- .../exemplary/single-banner.json | 3 +- .../exemplary/single-video.json | 3 +- .../supplemental/bidTypeNotAssigned.json | 3 +- .../supplemental/responseBlank.json | 3 +- .../supplemental/statusCode400.json | 3 +- .../supplemental/statusCodeError.json | 3 +- .../supplemental/unexpectedStatusCode.json | 3 +- adapters/rise/rise.go | 1 + .../exemplary/banner-and-video-app.json | 3 +- .../exemplary/banner-and-video-gdpr.json | 3 +- .../exemplary/banner-and-video-site.json | 3 +- .../risetest/exemplary/banner-and-video.json | 3 +- .../exemplary/simple-banner-both-ids.json | 3 +- .../risetest/exemplary/simple-banner.json | 3 +- .../rise/risetest/exemplary/simple-video.json | 3 +- .../risetest/supplemental/bad-request.json | 3 +- .../risetest/supplemental/missing-mtype.json | 3 +- adapters/roulax/roulax.go | 6 ++- .../roulaxtest/exemplary/simple-banner.json | 3 +- .../roulaxtest/exemplary/simple-native.json | 3 +- .../roulaxtest/exemplary/simple-video.json | 3 +- .../supplemental/no-bid-response.json | 3 +- adapters/rtbhouse/rtbhouse.go | 1 + .../rtbhousetest/exemplary/app_banner.json | 3 +- .../rtbhousetest/exemplary/app_native.json | 3 +- .../bidfloor-as-bidder-param-without-cur.json | 3 +- .../exemplary/bidfloor-as-bidder-param.json | 3 +- .../bidfloor-as-impbidfloor-with-cur.json | 3 +- .../bidfloor-as-impbidfloor-without-cur.json | 3 +- .../native-with-deprecated-native-prop.json | 3 +- .../native-with-proper-native-response.json | 3 +- .../rtbhousetest/exemplary/simple-banner.json | 3 +- ...bidfloors-given-param-and-impbidfloor.json | 3 +- .../supplemental/bad_response.json | 3 +- ...ner-native-req-faulty-mtype-in-native.json | 3 +- .../native-with-faulty-adm-native-prop.json | 3 +- .../native-with-faulty-adm-response.json | 3 +- .../supplemental/simple-banner-bad-mtype.json | 3 +- .../supplemental/simple-banner-no-mtype.json | 3 +- .../rtbhousetest/supplemental/status_204.json | 3 +- .../rtbhousetest/supplemental/status_400.json | 3 +- .../rtbhousetest/supplemental/status_418.json | 3 +- adapters/rubicon/rubicon.go | 1 + .../exemplary/25-26-transition-period.json | 3 +- .../rubicontest/exemplary/app-imp-fpd.json | 3 +- .../exemplary/bidonmultiformat.json | 6 ++- .../exemplary/flexible-schema.json | 3 +- .../exemplary/hardcode-secure.json | 3 +- .../exemplary/non-bidonmultiformat.json | 3 +- .../rubicontest/exemplary/simple-banner.json | 3 +- .../rubicontest/exemplary/simple-native.json | 3 +- .../rubicontest/exemplary/simple-video.json | 3 +- .../rubicontest/exemplary/site-imp-fpd.json | 3 +- .../rubicontest/exemplary/user-fpd.json | 3 +- .../supplemental/no-site-content-data.json | 3 +- .../supplemental/no-site-content.json | 3 +- adapters/sa_lunamedia/salunamedia.go | 1 + .../salunamediatest/exemplary/banner.json | 3 +- .../salunamediatest/exemplary/native.json | 3 +- .../salunamediatest/exemplary/video.json | 3 +- .../supplemental/bad-response.json | 3 +- .../supplemental/empty-seatbid.json | 3 +- .../supplemental/status-204.json | 3 +- .../supplemental/status-400.json | 3 +- .../supplemental/status-503.json | 3 +- .../supplemental/unexpected-status.json | 3 +- adapters/screencore/screencore.go | 1 + .../screencoretest/exemplary/banner-app.json | 3 +- .../screencoretest/exemplary/banner-web.json | 3 +- .../screencoretest/exemplary/native-app.json | 3 +- .../screencoretest/exemplary/native-web.json | 3 +- .../screencoretest/exemplary/video-app.json | 3 +- .../screencoretest/exemplary/video-web.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../supplemental/empty-seatbid-array.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- .../status-code-service-unavailable.json | 3 +- adapters/seedingAlliance/seedingAlliance.go | 1 + .../seedingAlliancetest/exemplary/banner.json | 3 +- .../exemplary/banner_with_account.json | 5 ++- .../banner_with_account_and_seat.json | 5 ++- .../exemplary/banner_with_seat.json | 3 +- .../seedingAlliancetest/exemplary/native.json | 3 +- .../supplemental/status_bad_request.json | 3 +- .../supplemental/status_no_content.json | 3 +- .../supplemental/status_not_ok.json | 3 +- adapters/sharethrough/sharethrough.go | 1 + .../exemplary/app-banner.json | 3 +- .../exemplary/app-native.json | 3 +- .../sharethroughtest/exemplary/app-video.json | 3 +- .../exemplary/web-banner.json | 3 +- .../sharethroughtest/exemplary/web-video.json | 3 +- .../supplemental/error-bad-request.json | 3 +- .../supplemental/error-internal-server.json | 3 +- .../supplemental/multi-imp.json | 6 ++- .../supplemental/multiformat-impression.json | 9 ++-- .../supplemental/no-fill.json | 3 +- .../sharethroughtest/supplemental/schain.json | 3 +- adapters/silvermob/silvermob.go | 1 + .../silvermobtest/exemplary/banner-app.json | 3 +- .../exemplary/banner-multi-app.json | 6 ++- .../silvermobtest/exemplary/native-app.json | 3 +- .../silvermobtest/exemplary/video-app.json | 3 +- .../supplemental/empty-seatbid-array.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- .../status-code-service-unavailable.json | 3 +- adapters/silverpush/silverpush.go | 1 + .../exemplary/banner-bidfloor-zero.json | 3 +- .../exemplary/banner-device-ctv-.json | 3 +- .../exemplary/banner-device-site.json | 3 +- .../silverpushtest/exemplary/banner-eids.json | 3 +- .../exemplary/banner-iOS-ua.json | 3 +- .../exemplary/banner-windows-ua.json | 3 +- .../banner-without-site-publisher.json | 3 +- .../exemplary/banner-without-w-h.json | 3 +- .../silverpushtest/exemplary/banner.json | 3 +- .../exemplary/banner_without_publisher.json | 3 +- .../exemplary/video-bidfloor-zero.json | 3 +- .../silverpushtest/exemplary/video.json | 3 +- .../exemplary/video_min_max_duration.json | 3 +- .../supplemental/bad-eids-value.json | 3 +- .../supplemental/bad-response-unmarshal.json | 3 +- .../supplemental/status-204-resp.json | 3 +- .../supplemental/status-400-resp.json | 3 +- .../supplemental/status-500-resp.json | 3 +- adapters/smaato/smaato.go | 1 + .../exemplary/multiple-impressions-skadn.json | 6 ++- .../exemplary/multiple-impressions.json | 6 ++- .../exemplary/multiple-media-types-skadn.json | 6 ++- .../exemplary/multiple-media-types.json | 6 ++- .../smaato/smaatotest/exemplary/native.json | 3 +- .../exemplary/simple-banner-app.json | 3 +- .../simple-banner-richMedia-app.json | 3 +- .../exemplary/simple-banner-richMedia.json | 3 +- .../exemplary/simple-banner-skadn.json | 3 +- .../smaatotest/exemplary/simple-banner.json | 3 +- .../smaatotest/exemplary/video-app.json | 3 +- .../smaato/smaatotest/exemplary/video.json | 3 +- .../supplemental/adtype-header-response.json | 3 +- .../supplemental/bad-adm-response.json | 3 +- .../bad-adtype-header-response.json | 3 +- .../bad-expires-header-response.json | 3 +- .../bad-status-code-response.json | 3 +- .../supplemental/banner-w-and-h.json | 3 +- .../supplemental/expires-header-response.json | 3 +- .../supplemental/no-bid-response.json | 3 +- .../supplemental/no-consent-info-request.json | 3 +- .../outdated-expires-header-response.json | 3 +- .../video/multiple-adpods-skadn.json | 6 ++- .../smaatotest/video/multiple-adpods.json | 6 ++- .../smaatotest/video/single-adpod-skadn.json | 3 +- .../smaato/smaatotest/video/single-adpod.json | 3 +- .../videosupplemental/bad-adm-response.json | 3 +- .../bad-bid-ext-response.json | 3 +- adapters/smartadserver/smartadserver.go | 1 + .../exemplary/multi-banner.json | 6 ++- .../exemplary/native-app.json | 3 +- .../exemplary/native-web.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-video.json | 3 +- .../supplemental/request-site-recreated.json | 3 +- .../response-200-without-body.json | 3 +- .../supplemental/response-204.json | 3 +- .../supplemental/response-400.json | 3 +- .../supplemental/response-500.json | 3 +- adapters/smarthub/smarthub.go | 1 + .../smarthubtest/exemplary/banner.json | 3 +- .../smarthubtest/exemplary/native.json | 3 +- .../smarthubtest/exemplary/video.json | 3 +- .../supplemental/bad-response.json | 3 +- .../supplemental/empty-seatbid-0-bid.json | 3 +- .../supplemental/empty-seatbid.json | 3 +- .../smarthubtest/supplemental/status-204.json | 3 +- .../smarthubtest/supplemental/status-400.json | 3 +- .../smarthubtest/supplemental/status-503.json | 3 +- .../supplemental/unexpected-status.json | 3 +- .../supplemental/wrong-bidtype.json | 3 +- adapters/smartrtb/smartrtb.go | 1 + .../smartrtbtest/exemplary/banner.json | 3 +- .../smartrtbtest/exemplary/video.json | 3 +- .../supplemental/bad-request.json | 3 +- .../supplemental/invalid-bid-ext.json | 3 +- .../supplemental/invalid-bid-format.json | 3 +- .../supplemental/invalid-bid-json.json | 3 +- .../smartrtbtest/supplemental/nobid.json | 3 +- .../supplemental/non-http-ok.json | 3 +- adapters/smartx/smartx.go | 1 + .../smartx/smartxtest/exemplary/01-video.json | 3 +- .../smartxtest/exemplary/02-consent.json | 3 +- .../smartxtest/exemplary/03-device.json | 3 +- .../02-internal-server-error.json | 3 +- .../03-missing-bidder-in-response.json | 3 +- adapters/smartyads/smartyads.go | 1 + .../smartyadstest/exemplary/banner-app.json | 3 +- .../smartyadstest/exemplary/banner-web.json | 3 +- .../smartyadstest/exemplary/native-app.json | 3 +- .../smartyadstest/exemplary/native-web.json | 3 +- .../smartyadstest/exemplary/video-app.json | 3 +- .../smartyadstest/exemplary/video-web.json | 3 +- .../supplemental/empty-seatbid-array.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- .../status-code-service-unavailable.json | 3 +- adapters/smilewanted/smilewanted.go | 1 + .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-video.json | 3 +- .../supplemental/bad-server-response.json | 3 +- .../supplemental/status-code-204.json | 3 +- .../supplemental/status-code-400.json | 3 +- .../supplemental/unexpected-status-code.json | 3 +- adapters/smrtconnect/smrtconnect.go | 1 + .../smrtconnecttest/exemplary/audio-app.json | 3 +- .../smrtconnecttest/exemplary/audio-web.json | 3 +- .../smrtconnecttest/exemplary/banner-app.json | 3 +- .../exemplary/banner-multiple-bids.json | 6 ++- .../smrtconnecttest/exemplary/banner-web.json | 3 +- .../smrtconnecttest/exemplary/native-app.json | 3 +- .../smrtconnecttest/exemplary/native-web.json | 3 +- .../smrtconnecttest/exemplary/video-app.json | 3 +- .../smrtconnecttest/exemplary/video-web.json | 3 +- .../supplemental/empty-seatbid-array.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- .../status-code-service-unavailable.json | 3 +- adapters/sonobi/sonobi.go | 1 + .../sonobi/sonobitest/exemplary/banner.json | 3 +- .../sonobi/sonobitest/exemplary/no-bid.json | 3 +- adapters/sovrn/sovrn.go | 1 + .../sovrntest/exemplary/multi-banner.json | 3 +- .../sovrn/sovrntest/exemplary/no-bid.json | 3 +- .../sovrntest/exemplary/simple-banner.json | 3 +- .../sovrntest/supplemental/adunitcode.json | 3 +- .../sovrntest/supplemental/blank-device.json | 3 +- .../both-custom-default-bidfloor.json | 3 +- .../supplemental/camel-case-tagId.json | 3 +- .../sovrn/sovrntest/supplemental/fpd.json | 3 +- .../sovrn/sovrntest/supplemental/gdpr.json | 3 +- .../supplemental/invalid-adunitcode.json | 3 +- .../supplemental/invalid-imp-id.json | 3 +- .../sovrntest/supplemental/no-bidfloor.json | 3 +- .../sovrn/sovrntest/supplemental/no-user.json | 3 +- .../supplemental/only-custom-bidfloor.json | 3 +- .../supplemental/only-default-bidfloor.json | 3 +- .../with-both-custom-default-bidfloor.json | 3 +- .../with-only-custom-bidfloor.json | 3 +- .../with-only-default-bidfloor.json | 3 +- .../sovrn/sovrntest/video/full-video.json | 3 +- .../sovrntest/video/multi-banner-video.json | 3 +- .../sovrn/sovrntest/video/multi-video.json | 3 +- adapters/sovrn/sovrntest/video/no-bid.json | 3 +- .../sovrn/sovrntest/video/simple-video.json | 3 +- adapters/sovrnXsp/sovrnXsp.go | 1 + .../sovrnXsptest/exemplary/banner.json | 3 +- .../sovrnXsptest/exemplary/native.json | 3 +- .../sovrnXsptest/exemplary/video.json | 3 +- .../supplemental/response-empty-seat.json | 3 +- .../supplemental/response-http-error.json | 3 +- .../supplemental/response-invalid-crtype.json | 3 +- .../supplemental/response-nobid.json | 3 +- adapters/sspBC/sspbc.go | 10 +++++ .../exemplary/banner-fromtemplate.json | 3 +- .../banner-preformatted-multiple-imps.json | 3 +- .../banner-preformatted-onecode.json | 3 +- .../exemplary/banner-preformatted.json | 3 +- .../sspbctest/supplemental/bad_response.json | 3 +- .../bad_response_with_incorrect_impid.json | 3 +- .../bad_response_without_adm.json | 3 +- .../request_with_diffrent_siteid.json | 3 +- ...request_with_incorrect_imp_bidder_ext.json | 3 +- .../request_with_incorrect_imp_ext.json | 3 +- ...request_with_standard_and_onecode_imp.json | 3 +- .../supplemental/request_with_test.json | 3 +- .../request_without_banner_format.json | 3 +- .../supplemental/request_without_ext_id.json | 3 +- .../request_without_ext_site_id.json | 3 +- .../sspbctest/supplemental/status_204.json | 3 +- .../sspbctest/supplemental/status_400.json | 3 +- adapters/stroeerCore/stroeercore.go | 1 + .../stroeercoretest/exemplary/dsa.json | 3 +- .../exemplary/mobile-banner-single.json | 3 +- .../exemplary/site-banner-multi.json | 3 +- .../exemplary/site-banner-single.json | 3 +- .../exemplary/site-multi-format-single.json | 3 +- .../exemplary/site-multi-types.json | 3 +- .../exemplary/site-video-single.json | 3 +- .../supplemental/bad-server-response.json | 3 +- .../supplemental/unknown-bid-media-type.json | 3 +- adapters/taboola/taboola.go | 1 + .../taboola/taboolatest/exemplary/banner.json | 3 +- .../exemplary/bannerResolveMacro.json | 3 +- .../multiFormatImpressionsRequest.json | 6 ++- .../taboola/taboolatest/exemplary/native.json | 3 +- .../exemplary/nativeResolveMacro.json | 3 +- .../taboolatest/exemplary/withPageType.json | 3 +- .../taboolatest/exemplary/withPosition.json | 3 +- .../bidParamsOverrideRequestFields.json | 3 +- .../supplemental/bidderServerError.json | 3 +- .../supplemental/emptyReponseFromBidder.json | 3 +- .../supplemental/emptySiteInRequest.json | 3 +- .../incorrectResponseImpMapping.json | 3 +- .../supplemental/multiImpressionsRequest.json | 3 +- .../supplemental/optionalParamsProvided.json | 3 +- .../supplemental/unexpectedStatusCode.json | 3 +- adapters/tappx/tappx.go | 1 + .../single-banner-impression-extra.json | 3 +- ...ngle-banner-impression-future-feature.json | 3 +- .../exemplary/single-banner-impression.json | 3 +- .../exemplary/single-banner-site.json | 3 +- .../exemplary/single-video-impression.json | 3 +- .../exemplary/single-video-site.json | 3 +- .../tappxtest/supplemental/204status.json | 3 +- .../tappxtest/supplemental/bidfloor.json | 3 +- .../supplemental/http-err-status.json | 3 +- .../supplemental/http-err-status2.json | 3 +- adapters/teads/teads.go | 1 + .../exemplary/simple-banner-with-format.json | 3 +- .../teadstest/exemplary/simple-banner.json | 3 +- .../teadstest/exemplary/simple-video.json | 3 +- .../supplemental/bid-id-does-not-match.json | 3 +- .../supplemental/currency-empty-string.json | 3 +- .../supplemental/no-impression-response.json | 3 +- .../supplemental/renderer-name-empty.json | 3 +- .../supplemental/renderer-version-empty.json | 3 +- .../teadstest/supplemental/status-400.json | 3 +- .../teadstest/supplemental/status-500.json | 3 +- adapters/telaria/telaria.go | 1 + .../exemplary/multiple-video-web.json | 3 +- .../exemplary/multiple-vidoe-app.json | 3 +- .../telariatest/exemplary/video-app.json | 3 +- .../telariatest/exemplary/video-web.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- .../status-code-service-unavailable.json | 3 +- adapters/theadx/theadx.go | 1 + .../theadxtest/exemplary/dynamic-tag.json | 3 +- .../theadxtest/exemplary/multi-format.json | 3 +- .../theadxtest/exemplary/multi-native.json | 3 +- .../theadxtest/exemplary/single-banner.json | 3 +- .../theadxtest/exemplary/single-native.json | 3 +- .../theadxtest/exemplary/single-video.json | 3 +- .../theadxtest/supplemental/bad-request.json | 3 +- .../supplemental/empty-response.json | 3 +- .../supplemental/nobid-response.json | 3 +- .../theadxtest/supplemental/server-error.json | 3 +- .../supplemental/unparsable-response.json | 3 +- adapters/tpmn/tpmn.go | 1 + .../tpmntest/exemplary/simple-banner.json | 3 +- .../tpmntest/exemplary/simple-native.json | 3 +- .../exemplary/simple-site-banner.json | 3 +- .../exemplary/simple-site-native.json | 3 +- .../tpmntest/exemplary/simple-site-video.json | 3 +- .../tpmn/tpmntest/exemplary/simple-video.json | 3 +- .../tpmntest/supplemental/bad-imp-ext.json | 3 +- .../tpmntest/supplemental/bad_response.json | 3 +- .../tpmntest/supplemental/no-imp-ext.json | 3 +- .../tpmntest/supplemental/status-204.json | 3 +- .../tpmntest/supplemental/status-404.json | 3 +- adapters/trafficgate/trafficgate.go | 3 +- .../exemplary/multiple-imps.json | 3 +- .../exemplary/simple-audio.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-native.json | 3 +- .../exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_bidtype_response.json | 3 +- .../supplemental/bad_ext_response.json | 3 +- .../supplemental/bad_response.json | 3 +- .../supplemental/bad_status_code.json | 3 +- .../supplemental/status-204.json | 3 +- .../supplemental/status-404.json | 3 +- adapters/triplelift/triplelift.go | 3 +- .../exemplary/optional-params.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-video.json | 3 +- .../supplemental/badresponseext.json | 3 +- .../supplemental/badstatuscode.json | 3 +- .../supplemental/notgoodstatuscode.json | 3 +- .../supplemental/video-format-11.json | 3 +- .../supplemental/video-format-12.json | 3 +- .../supplemental/video-format-17.json | 3 +- .../triplelift_native/triplelift_native.go | 3 +- .../exemplary/optional-params.json | 3 +- .../supplemental/badresponseext.json | 3 +- .../supplemental/badstatuscode.json | 3 +- .../supplemental/notgoodstatuscode.json | 3 +- adapters/ucfunnel/ucfunnel.go | 1 + adapters/ucfunnel/ucfunnel_test.go | 45 ++++++++++++++----- adapters/undertone/undertone.go | 1 + .../exemplary/multi-imp-app-request.json | 3 +- .../exemplary/multi-imp-site-request.json | 3 +- .../supplemental/badrequest.json | 3 +- .../supplemental/internalerror.json | 3 +- .../undertonetest/supplemental/nocontent.json | 3 +- adapters/unicorn/unicorn.go | 1 + .../banner-app-no-app-publisher.json | 3 +- .../exemplary/banner-app-no-mediaid.json | 3 +- .../exemplary/banner-app-no-publisherid.json | 3 +- .../exemplary/banner-app-no-source.json | 3 +- .../exemplary/banner-app-with-ip.json | 3 +- .../exemplary/banner-app-with-ipv6.json | 3 +- .../exemplary/banner-app-without-ext.json | 3 +- .../banner-app-without-placementid.json | 3 +- .../unicorntest/exemplary/banner-app.json | 3 +- .../exemplary/banner-app_with_fpd.json | 3 +- .../exemplary/banner-app_with_no_fpd.json | 3 +- .../unicorn/unicorntest/supplemental/204.json | 3 +- .../unicorn/unicorntest/supplemental/400.json | 3 +- .../unicorn/unicorntest/supplemental/500.json | 3 +- adapters/unruly/unruly.go | 1 + .../exemplary/banner-and-video-app.json | 3 +- .../exemplary/banner-and-video-gdpr.json | 3 +- .../exemplary/banner-and-video-site.json | 3 +- .../exemplary/banner-and-video.json | 3 +- .../unrulytest/exemplary/simple-banner.json | 3 +- .../unrulytest/exemplary/simple-video.json | 3 +- .../supplemental/no-matching-impid.json | 3 +- .../supplemental/status-code-204.json | 3 +- .../supplemental/status-code-400.json | 3 +- .../supplemental/status-code-401.json | 3 +- adapters/videobyte/videobyte.go | 1 + .../videobytetest/exemplary/banner.json | 3 +- .../exemplary/empty-placement-network.json | 3 +- .../exemplary/empty-site-domain-ref.json | 3 +- .../videobytetest/exemplary/multi-format.json | 3 +- .../videobytetest/exemplary/multi-imp.json | 6 ++- .../videobytetest/exemplary/video.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- adapters/videoheroes/videoheroes.go | 1 + .../videoheroestest/exemplary/banner-app.json | 3 +- .../videoheroestest/exemplary/banner-web.json | 3 +- .../videoheroestest/exemplary/native-app.json | 3 +- .../videoheroestest/exemplary/native-web.json | 3 +- .../videoheroestest/exemplary/video-app.json | 3 +- .../videoheroestest/exemplary/video-web.json | 3 +- .../supplemental/empty-seatbid-array.json | 3 +- .../supplemental/invalid-response.json | 3 +- .../supplemental/status-code-bad-request.json | 3 +- .../supplemental/status-code-no-content.json | 3 +- .../supplemental/status-code-other-error.json | 3 +- .../status-code-service-unavailable.json | 3 +- adapters/vidoomy/vidoomy.go | 1 + .../multi-impression-video-banner.json | 6 ++- .../exemplary/simple-app-banner.json | 3 +- .../vidoomytest/exemplary/simple-banner.json | 3 +- .../exemplary/simple-site-video.json | 3 +- .../supplemental/server-error.json | 3 +- .../server-response-wrong-impid.json | 3 +- .../simple-banner-no-response.json | 3 +- adapters/visiblemeasures/visiblemeasures.go | 1 + .../exemplary/endpointId.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-native.json | 3 +- .../exemplary/simple-video.json | 3 +- .../exemplary/simple-web-banner.json | 3 +- .../supplemental/bad_media_type.json | 3 +- .../supplemental/bad_response.json | 3 +- .../supplemental/status-204.json | 3 +- .../supplemental/status-not-200.json | 3 +- adapters/visx/visx.go | 1 + .../visx/visxtest/exemplary/headers_ipv4.json | 3 +- .../visx/visxtest/exemplary/headers_ipv6.json | 3 +- .../exemplary/multitype-banner-response.json | 3 +- .../exemplary/multitype-video-response.json | 3 +- .../visxtest/exemplary/simple-banner.json | 3 +- .../visx/visxtest/exemplary/simple-video.json | 3 +- .../visxtest/exemplary/with_currency.json | 3 +- .../visxtest/supplemental/bad_response.json | 3 +- .../visxtest/supplemental/status_204.json | 3 +- .../visxtest/supplemental/status_400.json | 3 +- .../visxtest/supplemental/status_418.json | 3 +- .../visxtest/supplemental/wrong_imp_type.json | 3 +- .../visxtest/supplemental/wrong_impid.json | 3 +- adapters/vox/vox.go | 1 + adapters/vox/voxtest/exemplary/banner.json | 3 +- adapters/vox/voxtest/exemplary/video.json | 3 +- .../response_204_to_nocontent.json | 3 +- .../supplemental/response_500_to_error.json | 3 +- adapters/vrtcal/vrtcal.go | 1 + .../vrtcaltest/exemplary/simple-banner.json | 3 +- .../vrtcaltest/exemplary/simple-native.json | 3 +- .../vrtcaltest/exemplary/simple-video.json | 3 +- .../exemplary/web-simple-banner.json | 3 +- .../exemplary/web-simple-native.json | 3 +- .../exemplary/web-simple-video.json | 3 +- .../supplemental/unsupported_return_type.json | 3 +- adapters/xeworks/xeworks.go | 1 + .../xeworks/xeworkstest/exemplary/banner.json | 6 ++- .../xeworks/xeworkstest/exemplary/native.json | 3 +- .../xeworks/xeworkstest/exemplary/video.json | 3 +- .../supplemental/bad-response.json | 3 +- .../supplemental/empty-mediatype.json | 3 +- .../supplemental/empty-seatbid-0-bid.json | 3 +- .../supplemental/empty-seatbid.json | 3 +- .../supplemental/invalid-mediatype.json | 3 +- .../xeworkstest/supplemental/status-204.json | 3 +- .../xeworkstest/supplemental/status-400.json | 3 +- .../xeworkstest/supplemental/status-503.json | 3 +- .../supplemental/unexpected-status.json | 3 +- adapters/yahooAds/yahooAds.go | 1 + .../exemplary/simple-app-banner.json | 3 +- .../yahooAdstest/exemplary/simple-banner.json | 3 +- .../yahooAdstest/exemplary/simple-video.json | 3 +- .../non-supported-requests-bids-ignored.json | 3 +- .../supplemental/server-error.json | 3 +- .../server-response-wrong-impid.json | 3 +- .../simple-banner-gpp-overwrite.json | 3 +- .../supplemental/simple-banner-gpp.json | 3 +- ...nner-ignore-width-when-height-missing.json | 3 +- adapters/yandex/yandex.go | 1 + .../yandex/yandextest/exemplary/native.json | 3 +- .../yandextest/exemplary/simple-banner.json | 3 +- .../multiple-imps-some-malformed.json | 3 +- .../supplemental/multiple-imps.json | 6 ++- .../simple-banner-empty-response.json | 3 +- .../simple-banner-empty-seatbid.json | 3 +- .../supplemental/simple-banner-sizes.json | 3 +- .../simple-banner-status-400.json | 3 +- .../simple-banner-unknown-imp.json | 3 +- .../simple-banner-unparsable-body.json | 3 +- adapters/yeahmobi/yeahmobi.go | 1 + .../yeahmobitest/exemplary/no-bid.json | 3 +- .../yeahmobitest/exemplary/simple-banner.json | 3 +- .../exemplary/simple-native-1.1.json | 3 +- .../yeahmobitest/exemplary/simple-native.json | 3 +- .../yeahmobitest/exemplary/simple-video.json | 3 +- .../supplemental/bad_response.json | 3 +- .../yeahmobitest/supplemental/status_400.json | 3 +- .../yeahmobitest/supplemental/status_500.json | 3 +- adapters/yieldlab/yieldlab.go | 1 + .../yieldlabtest/exemplary/banner.json | 3 +- .../yieldlab/yieldlabtest/exemplary/dsa.json | 3 +- .../yieldlab/yieldlabtest/exemplary/gdpr.json | 3 +- .../yieldlabtest/exemplary/mixed_types.json | 3 +- .../exemplary/multiple_impressions.json | 3 +- .../yieldlabtest/exemplary/schain.json | 3 +- .../exemplary/schain_multiple_nodes.json | 3 +- .../yieldlabtest/exemplary/video.json | 3 +- .../yieldlabtest/exemplary/video_app.json | 3 +- .../yieldlabtest/supplemental/dsa_empty.json | 3 +- .../supplemental/dsa_empty_transparency.json | 3 +- adapters/yieldmo/yieldmo.go | 1 + .../yieldmotest/exemplary/app-banner.json | 3 +- .../yieldmotest/exemplary/app_video.json | 3 +- .../yieldmotest/exemplary/simple-banner.json | 3 +- .../yieldmotest/exemplary/simple_video.json | 3 +- .../yieldmotest/exemplary/with_gpid.json | 3 +- adapters/yieldone/yieldone.go | 1 + .../yieldonetest/exemplary/simple-banner.json | 3 +- .../yieldonetest/exemplary/simple-video.json | 3 +- .../supplemental/bad_response.json | 3 +- .../yieldonetest/supplemental/status_204.json | 3 +- .../yieldonetest/supplemental/status_400.json | 3 +- .../yieldonetest/supplemental/status_418.json | 3 +- adapters/zeroclickfraud/zeroclickfraud.go | 4 +- .../exemplary/multi-request.json | 3 +- .../zeroclickfraudtest/exemplary/native.json | 3 +- .../exemplary/simple-banner.json | 3 +- .../exemplary/simple-video.json | 3 +- .../supplemental/bad-response-body.json | 3 +- .../supplemental/bad-server-response.json | 3 +- .../supplemental/no-content-response.json | 3 +- .../exemplary/banner.json | 3 +- .../exemplary/no-bid.json | 3 +- .../zeta_global_ssp-test/exemplary/video.json | 3 +- .../supplemental/bad-request.json | 3 +- .../supplemental/invalid-bid-type.json | 3 +- .../supplemental/no-bid-type.json.json | 3 +- .../supplemental/server-error.json | 3 +- adapters/zeta_global_ssp/zeta_global_ssp.go | 1 + adapters/zmaticoo/zmaticoo.go | 1 + .../zmaticootest/exemplary/no-bid.json | 3 +- .../zmaticootest/exemplary/simple-banner.json | 3 +- .../exemplary/simple-native-1.1.json | 3 +- .../zmaticootest/exemplary/simple-native.json | 3 +- .../zmaticootest/exemplary/simple-video.json | 3 +- .../supplemental/bad_response.json | 3 +- .../zmaticootest/supplemental/status_400.json | 3 +- .../zmaticootest/supplemental/status_500.json | 3 +- go.mod | 1 + go.sum | 2 + openrtb_ext/imp.go | 11 +++++ 2207 files changed, 4469 insertions(+), 2102 deletions(-) diff --git a/adapters/33across/33across.go b/adapters/33across/33across.go index b9062468a73..b9f0c98a38f 100644 --- a/adapters/33across/33across.go +++ b/adapters/33across/33across.go @@ -114,6 +114,7 @@ func (a *TtxAdapter) makeRequest(request openrtb2.BidRequest, impList []openrtb2 Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, nil } diff --git a/adapters/33across/33acrosstest/exemplary/bidresponse-defaults.json b/adapters/33across/33acrosstest/exemplary/bidresponse-defaults.json index 50fba69bde1..9f6a28e6d19 100644 --- a/adapters/33across/33acrosstest/exemplary/bidresponse-defaults.json +++ b/adapters/33across/33acrosstest/exemplary/bidresponse-defaults.json @@ -61,7 +61,8 @@ } ], "site": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/33across/33acrosstest/exemplary/instream-video-defaults.json b/adapters/33across/33acrosstest/exemplary/instream-video-defaults.json index c99e535cdb7..9b7c717153f 100644 --- a/adapters/33across/33acrosstest/exemplary/instream-video-defaults.json +++ b/adapters/33across/33acrosstest/exemplary/instream-video-defaults.json @@ -59,7 +59,8 @@ } ], "site": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/33across/33acrosstest/exemplary/multi-format.json b/adapters/33across/33acrosstest/exemplary/multi-format.json index 3315ff72559..af09bb75cb6 100644 --- a/adapters/33across/33acrosstest/exemplary/multi-format.json +++ b/adapters/33across/33acrosstest/exemplary/multi-format.json @@ -64,7 +64,8 @@ } ], "site": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/33across/33acrosstest/exemplary/multi-imp-banner.json b/adapters/33across/33acrosstest/exemplary/multi-imp-banner.json index db03a001526..c0b6166548b 100644 --- a/adapters/33across/33acrosstest/exemplary/multi-imp-banner.json +++ b/adapters/33across/33acrosstest/exemplary/multi-imp-banner.json @@ -97,7 +97,8 @@ } ], "site": {} - } + }, + "impIDs":["test-imp-id1","test-imp-id2"] }, "mockResponse": { "status": 200, @@ -172,7 +173,8 @@ } ], "site": {} - } + }, + "impIDs":["test-imp-id3"] }, "mockResponse": { "status": 200, @@ -233,7 +235,8 @@ } ], "site": {} - } + }, + "impIDs":["test-imp-id4"] }, "mockResponse": { "status": 200, diff --git a/adapters/33across/33acrosstest/exemplary/optional-params.json b/adapters/33across/33acrosstest/exemplary/optional-params.json index f429f9458a7..f6171b3f242 100644 --- a/adapters/33across/33acrosstest/exemplary/optional-params.json +++ b/adapters/33across/33acrosstest/exemplary/optional-params.json @@ -50,7 +50,8 @@ } ], "site": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/33across/33acrosstest/exemplary/outstream-video-defaults.json b/adapters/33across/33acrosstest/exemplary/outstream-video-defaults.json index fdd422c7a63..7044a145a7c 100644 --- a/adapters/33across/33acrosstest/exemplary/outstream-video-defaults.json +++ b/adapters/33across/33acrosstest/exemplary/outstream-video-defaults.json @@ -58,7 +58,8 @@ } ], "site": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/33across/33acrosstest/exemplary/site-banner.json b/adapters/33across/33acrosstest/exemplary/site-banner.json index 552daf25224..e55a92ed887 100644 --- a/adapters/33across/33acrosstest/exemplary/site-banner.json +++ b/adapters/33across/33acrosstest/exemplary/site-banner.json @@ -49,7 +49,8 @@ } ], "site": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/33across/33acrosstest/exemplary/site-video.json b/adapters/33across/33acrosstest/exemplary/site-video.json index 3cf44775efb..12170cb77d2 100644 --- a/adapters/33across/33acrosstest/exemplary/site-video.json +++ b/adapters/33across/33acrosstest/exemplary/site-video.json @@ -61,7 +61,8 @@ } ], "site": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/33across/33acrosstest/supplemental/multi-imp-mixed-validation.json b/adapters/33across/33acrosstest/supplemental/multi-imp-mixed-validation.json index a2bc7890e96..3aaa6e94e90 100644 --- a/adapters/33across/33acrosstest/supplemental/multi-imp-mixed-validation.json +++ b/adapters/33across/33acrosstest/supplemental/multi-imp-mixed-validation.json @@ -58,7 +58,8 @@ } ], "site": {} - } + }, + "impIDs":["test-imp-id1"] }, "mockResponse": { "status": 200, diff --git a/adapters/33across/33acrosstest/supplemental/status-not-ok.json b/adapters/33across/33acrosstest/supplemental/status-not-ok.json index 2c7fcd013f3..668e8a0bbae 100644 --- a/adapters/33across/33acrosstest/supplemental/status-not-ok.json +++ b/adapters/33across/33acrosstest/supplemental/status-not-ok.json @@ -49,7 +49,8 @@ } ], "site": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/aax/aax.go b/adapters/aax/aax.go index 2ad39b1446b..09a06a1f5bb 100644 --- a/adapters/aax/aax.go +++ b/adapters/aax/aax.go @@ -38,6 +38,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: a.endpoint, Body: reqJson, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errs } diff --git a/adapters/aax/aaxtest/exemplary/multi-format.json b/adapters/aax/aaxtest/exemplary/multi-format.json index 493f268ccf5..dd757882b7a 100644 --- a/adapters/aax/aaxtest/exemplary/multi-format.json +++ b/adapters/aax/aaxtest/exemplary/multi-format.json @@ -68,7 +68,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 204, diff --git a/adapters/aax/aaxtest/exemplary/multi-imps.json b/adapters/aax/aaxtest/exemplary/multi-imps.json index 9ad02293e95..25b39323456 100644 --- a/adapters/aax/aaxtest/exemplary/multi-imps.json +++ b/adapters/aax/aaxtest/exemplary/multi-imps.json @@ -80,7 +80,8 @@ } } ] - } + }, + "impIDs":["1","2"] }, "mockResponse": { "status": 200, diff --git a/adapters/aax/aaxtest/exemplary/no-bid.json b/adapters/aax/aaxtest/exemplary/no-bid.json index 2ffbdac7e93..e2a6ac2a1d7 100644 --- a/adapters/aax/aaxtest/exemplary/no-bid.json +++ b/adapters/aax/aaxtest/exemplary/no-bid.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 204, diff --git a/adapters/aax/aaxtest/exemplary/optional-params.json b/adapters/aax/aaxtest/exemplary/optional-params.json index 37458ed6d0e..b8c2a264c89 100644 --- a/adapters/aax/aaxtest/exemplary/optional-params.json +++ b/adapters/aax/aaxtest/exemplary/optional-params.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 204, diff --git a/adapters/aax/aaxtest/exemplary/simple-banner.json b/adapters/aax/aaxtest/exemplary/simple-banner.json index 7e8c0fce1d8..f7eb36b3fc7 100644 --- a/adapters/aax/aaxtest/exemplary/simple-banner.json +++ b/adapters/aax/aaxtest/exemplary/simple-banner.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/aax/aaxtest/exemplary/simple-video.json b/adapters/aax/aaxtest/exemplary/simple-video.json index 6ee8d3d8bfe..7e11ee52126 100644 --- a/adapters/aax/aaxtest/exemplary/simple-video.json +++ b/adapters/aax/aaxtest/exemplary/simple-video.json @@ -52,7 +52,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/aax/aaxtest/supplemental/invalid-req-400-status-code-bad-request.json b/adapters/aax/aaxtest/supplemental/invalid-req-400-status-code-bad-request.json index 276e0fc381a..0091c1aa2ab 100644 --- a/adapters/aax/aaxtest/supplemental/invalid-req-400-status-code-bad-request.json +++ b/adapters/aax/aaxtest/supplemental/invalid-req-400-status-code-bad-request.json @@ -80,7 +80,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/aax/aaxtest/supplemental/invalid-resp-diff-imp-id.json b/adapters/aax/aaxtest/supplemental/invalid-resp-diff-imp-id.json index 2d9d02d66ba..28894b288ad 100644 --- a/adapters/aax/aaxtest/supplemental/invalid-resp-diff-imp-id.json +++ b/adapters/aax/aaxtest/supplemental/invalid-resp-diff-imp-id.json @@ -86,7 +86,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aax/aaxtest/supplemental/invalid-resp-multi-imp-type.json b/adapters/aax/aaxtest/supplemental/invalid-resp-multi-imp-type.json index b0a0b750ab1..087e5ff63ae 100644 --- a/adapters/aax/aaxtest/supplemental/invalid-resp-multi-imp-type.json +++ b/adapters/aax/aaxtest/supplemental/invalid-resp-multi-imp-type.json @@ -112,7 +112,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aax/aaxtest/supplemental/valid-req-200-bid-response-from-aax.json b/adapters/aax/aaxtest/supplemental/valid-req-200-bid-response-from-aax.json index bad8743488c..72243d19696 100644 --- a/adapters/aax/aaxtest/supplemental/valid-req-200-bid-response-from-aax.json +++ b/adapters/aax/aaxtest/supplemental/valid-req-200-bid-response-from-aax.json @@ -86,7 +86,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aax/aaxtest/supplemental/valid-req-204-response-from-aax.json b/adapters/aax/aaxtest/supplemental/valid-req-204-response-from-aax.json index db8219029ff..3076cc842d2 100644 --- a/adapters/aax/aaxtest/supplemental/valid-req-204-response-from-aax.json +++ b/adapters/aax/aaxtest/supplemental/valid-req-204-response-from-aax.json @@ -54,7 +54,8 @@ "id": "imp-id" } ] - } + }, + "impIDs":["imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/aceex/aceex.go b/adapters/aceex/aceex.go index 450d82b4df3..c579fe81c9b 100644 --- a/adapters/aceex/aceex.go +++ b/adapters/aceex/aceex.go @@ -84,6 +84,7 @@ func (a *adapter) MakeRequests( Body: reqJSON, Uri: url, Headers: getHeaders(openRTBRequest), + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), }}, nil } diff --git a/adapters/aceex/aceextest/exemplary/banner-app.json b/adapters/aceex/aceextest/exemplary/banner-app.json index f6509699ad0..f83826b0188 100644 --- a/adapters/aceex/aceextest/exemplary/banner-app.json +++ b/adapters/aceex/aceextest/exemplary/banner-app.json @@ -94,7 +94,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aceex/aceextest/exemplary/banner-web.json b/adapters/aceex/aceextest/exemplary/banner-web.json index cf0d69bed7f..8b90d477666 100644 --- a/adapters/aceex/aceextest/exemplary/banner-web.json +++ b/adapters/aceex/aceextest/exemplary/banner-web.json @@ -82,7 +82,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aceex/aceextest/exemplary/native-app.json b/adapters/aceex/aceextest/exemplary/native-app.json index 3e8d0fe2b96..b5daeb94bcb 100644 --- a/adapters/aceex/aceextest/exemplary/native-app.json +++ b/adapters/aceex/aceextest/exemplary/native-app.json @@ -94,7 +94,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aceex/aceextest/exemplary/native-web.json b/adapters/aceex/aceextest/exemplary/native-web.json index a0c220ef74c..5874d8591a5 100644 --- a/adapters/aceex/aceextest/exemplary/native-web.json +++ b/adapters/aceex/aceextest/exemplary/native-web.json @@ -83,7 +83,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aceex/aceextest/exemplary/video-app.json b/adapters/aceex/aceextest/exemplary/video-app.json index cc27ad608f3..95bff875682 100644 --- a/adapters/aceex/aceextest/exemplary/video-app.json +++ b/adapters/aceex/aceextest/exemplary/video-app.json @@ -104,7 +104,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aceex/aceextest/exemplary/video-web.json b/adapters/aceex/aceextest/exemplary/video-web.json index a15590860c9..eac6c195d58 100644 --- a/adapters/aceex/aceextest/exemplary/video-web.json +++ b/adapters/aceex/aceextest/exemplary/video-web.json @@ -92,7 +92,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aceex/aceextest/supplemental/empty-seatbid-array.json b/adapters/aceex/aceextest/supplemental/empty-seatbid-array.json index e53e6252135..dc0ac9be496 100644 --- a/adapters/aceex/aceextest/supplemental/empty-seatbid-array.json +++ b/adapters/aceex/aceextest/supplemental/empty-seatbid-array.json @@ -104,7 +104,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aceex/aceextest/supplemental/invalid-response.json b/adapters/aceex/aceextest/supplemental/invalid-response.json index c1d62068089..ec96f10a2ce 100644 --- a/adapters/aceex/aceextest/supplemental/invalid-response.json +++ b/adapters/aceex/aceextest/supplemental/invalid-response.json @@ -95,7 +95,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aceex/aceextest/supplemental/status-code-bad-request.json b/adapters/aceex/aceextest/supplemental/status-code-bad-request.json index 553a9264a10..4af8bb55792 100644 --- a/adapters/aceex/aceextest/supplemental/status-code-bad-request.json +++ b/adapters/aceex/aceextest/supplemental/status-code-bad-request.json @@ -76,7 +76,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/aceex/aceextest/supplemental/status-code-no-content.json b/adapters/aceex/aceextest/supplemental/status-code-no-content.json index c669c3ce450..c907f8615b6 100644 --- a/adapters/aceex/aceextest/supplemental/status-code-no-content.json +++ b/adapters/aceex/aceextest/supplemental/status-code-no-content.json @@ -57,7 +57,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/aceex/aceextest/supplemental/status-code-other-error.json b/adapters/aceex/aceextest/supplemental/status-code-other-error.json index 18892fe5e71..0c05ae9bc9f 100644 --- a/adapters/aceex/aceextest/supplemental/status-code-other-error.json +++ b/adapters/aceex/aceextest/supplemental/status-code-other-error.json @@ -62,7 +62,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 306 diff --git a/adapters/aceex/aceextest/supplemental/status-code-service-unavailable.json b/adapters/aceex/aceextest/supplemental/status-code-service-unavailable.json index 9c244ce36d5..4f3071b610d 100644 --- a/adapters/aceex/aceextest/supplemental/status-code-service-unavailable.json +++ b/adapters/aceex/aceextest/supplemental/status-code-service-unavailable.json @@ -62,7 +62,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/acuityads/acuityads.go b/adapters/acuityads/acuityads.go index 183f1168d9f..43d8e1eff97 100644 --- a/adapters/acuityads/acuityads.go +++ b/adapters/acuityads/acuityads.go @@ -84,6 +84,7 @@ func (a *AcuityAdsAdapter) MakeRequests( Body: reqJSON, Uri: url, Headers: getHeaders(openRTBRequest), + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), }}, nil } diff --git a/adapters/acuityads/acuityadstest/exemplary/banner-app.json b/adapters/acuityads/acuityadstest/exemplary/banner-app.json index 526f1ea69ac..2cf1e4849e8 100644 --- a/adapters/acuityads/acuityadstest/exemplary/banner-app.json +++ b/adapters/acuityads/acuityadstest/exemplary/banner-app.json @@ -95,7 +95,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/acuityads/acuityadstest/exemplary/banner-web.json b/adapters/acuityads/acuityadstest/exemplary/banner-web.json index f4616bc4030..9968ce3fe6b 100644 --- a/adapters/acuityads/acuityadstest/exemplary/banner-web.json +++ b/adapters/acuityads/acuityadstest/exemplary/banner-web.json @@ -83,7 +83,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/acuityads/acuityadstest/exemplary/native-app.json b/adapters/acuityads/acuityadstest/exemplary/native-app.json index f10a0a9af4d..6022d6487f8 100644 --- a/adapters/acuityads/acuityadstest/exemplary/native-app.json +++ b/adapters/acuityads/acuityadstest/exemplary/native-app.json @@ -95,7 +95,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/acuityads/acuityadstest/exemplary/native-web.json b/adapters/acuityads/acuityadstest/exemplary/native-web.json index 96b3ca06aec..a9333bc667f 100644 --- a/adapters/acuityads/acuityadstest/exemplary/native-web.json +++ b/adapters/acuityads/acuityadstest/exemplary/native-web.json @@ -83,7 +83,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/acuityads/acuityadstest/exemplary/video-app.json b/adapters/acuityads/acuityadstest/exemplary/video-app.json index 4130602db47..4e51426b670 100644 --- a/adapters/acuityads/acuityadstest/exemplary/video-app.json +++ b/adapters/acuityads/acuityadstest/exemplary/video-app.json @@ -105,7 +105,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/acuityads/acuityadstest/exemplary/video-web.json b/adapters/acuityads/acuityadstest/exemplary/video-web.json index 2efeffec320..fad814fdee9 100644 --- a/adapters/acuityads/acuityadstest/exemplary/video-web.json +++ b/adapters/acuityads/acuityadstest/exemplary/video-web.json @@ -93,7 +93,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/acuityads/acuityadstest/supplemental/empty-seatbid-array.json b/adapters/acuityads/acuityadstest/supplemental/empty-seatbid-array.json index b822421ad4f..d1af6aac4b1 100644 --- a/adapters/acuityads/acuityadstest/supplemental/empty-seatbid-array.json +++ b/adapters/acuityads/acuityadstest/supplemental/empty-seatbid-array.json @@ -105,7 +105,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/acuityads/acuityadstest/supplemental/invalid-response.json b/adapters/acuityads/acuityadstest/supplemental/invalid-response.json index 16ba7ada294..129dca5112e 100644 --- a/adapters/acuityads/acuityadstest/supplemental/invalid-response.json +++ b/adapters/acuityads/acuityadstest/supplemental/invalid-response.json @@ -96,7 +96,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/acuityads/acuityadstest/supplemental/status-code-bad-request.json b/adapters/acuityads/acuityadstest/supplemental/status-code-bad-request.json index 87b72b07f68..391df714b9e 100644 --- a/adapters/acuityads/acuityadstest/supplemental/status-code-bad-request.json +++ b/adapters/acuityads/acuityadstest/supplemental/status-code-bad-request.json @@ -77,7 +77,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/acuityads/acuityadstest/supplemental/status-code-no-content.json b/adapters/acuityads/acuityadstest/supplemental/status-code-no-content.json index 130710db361..0d4fe2b20e8 100644 --- a/adapters/acuityads/acuityadstest/supplemental/status-code-no-content.json +++ b/adapters/acuityads/acuityadstest/supplemental/status-code-no-content.json @@ -58,7 +58,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/acuityads/acuityadstest/supplemental/status-code-other-error.json b/adapters/acuityads/acuityadstest/supplemental/status-code-other-error.json index 52042483b2c..78c2d39f3a4 100644 --- a/adapters/acuityads/acuityadstest/supplemental/status-code-other-error.json +++ b/adapters/acuityads/acuityadstest/supplemental/status-code-other-error.json @@ -63,7 +63,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 306 diff --git a/adapters/acuityads/acuityadstest/supplemental/status-code-service-unavailable.json b/adapters/acuityads/acuityadstest/supplemental/status-code-service-unavailable.json index 634b07cab33..45faf7a12fe 100644 --- a/adapters/acuityads/acuityadstest/supplemental/status-code-service-unavailable.json +++ b/adapters/acuityads/acuityadstest/supplemental/status-code-service-unavailable.json @@ -63,7 +63,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/adapterstest/test_json.go b/adapters/adapterstest/test_json.go index 5b6c56d2cee..1c10513919b 100644 --- a/adapters/adapterstest/test_json.go +++ b/adapters/adapterstest/test_json.go @@ -10,6 +10,8 @@ import ( "regexp" "testing" + "github.com/google/go-cmp/cmp" + "github.com/google/go-cmp/cmp/cmpopts" "github.com/mitchellh/copystructure" "github.com/prebid/openrtb/v20/openrtb2" "github.com/prebid/prebid-server/v2/adapters" @@ -200,6 +202,7 @@ type httpRequest struct { Body json.RawMessage `json:"body"` Uri string `json:"uri"` Headers http.Header `json:"headers"` + ImpIDs []string `json:"impIDs"` } type httpResponse struct { @@ -318,6 +321,15 @@ func diffHttpRequests(description string, actual *adapters.RequestData, expected return err } } + + if len(expected.ImpIDs) < 1 { + return fmt.Errorf(`expected.ImpIDs must contain at least one imp ID`) + } + + opt := cmpopts.SortSlices(func(a, b string) bool { return a < b }) + if !cmp.Equal(expected.ImpIDs, actual.ImpIDs, opt) { + return fmt.Errorf(`%s actual.ImpIDs "%q" do not match expected "%q"`, description, actual.ImpIDs, expected.ImpIDs) + } return diffJson(description, actual.Body, expected.Body) } diff --git a/adapters/adelement/adelement.go b/adapters/adelement/adelement.go index 2203aa6d6ea..427741eb077 100644 --- a/adapters/adelement/adelement.go +++ b/adapters/adelement/adelement.go @@ -50,6 +50,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: url, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/adelement/adelementtest/exemplary/audio-app.json b/adapters/adelement/adelementtest/exemplary/audio-app.json index 5384c847b0d..2e67d460680 100644 --- a/adapters/adelement/adelementtest/exemplary/audio-app.json +++ b/adapters/adelement/adelementtest/exemplary/audio-app.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs": ["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adelement/adelementtest/exemplary/audio-web.json b/adapters/adelement/adelementtest/exemplary/audio-web.json index 39d1b9ab456..7bb39f3cb06 100644 --- a/adapters/adelement/adelementtest/exemplary/audio-web.json +++ b/adapters/adelement/adelementtest/exemplary/audio-web.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs": ["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adelement/adelementtest/exemplary/banner-app.json b/adapters/adelement/adelementtest/exemplary/banner-app.json index 2f2b18ffb6a..c714ca7416e 100644 --- a/adapters/adelement/adelementtest/exemplary/banner-app.json +++ b/adapters/adelement/adelementtest/exemplary/banner-app.json @@ -77,7 +77,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs": ["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adelement/adelementtest/exemplary/banner-web.json b/adapters/adelement/adelementtest/exemplary/banner-web.json index fc731fbe1de..a1706cbc323 100644 --- a/adapters/adelement/adelementtest/exemplary/banner-web.json +++ b/adapters/adelement/adelementtest/exemplary/banner-web.json @@ -65,7 +65,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs": ["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adelement/adelementtest/exemplary/native-app.json b/adapters/adelement/adelementtest/exemplary/native-app.json index 4ced9789e63..9b957456e6c 100644 --- a/adapters/adelement/adelementtest/exemplary/native-app.json +++ b/adapters/adelement/adelementtest/exemplary/native-app.json @@ -77,7 +77,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs": ["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adelement/adelementtest/exemplary/native-web.json b/adapters/adelement/adelementtest/exemplary/native-web.json index 7c9faad7579..92e4eb9aa46 100644 --- a/adapters/adelement/adelementtest/exemplary/native-web.json +++ b/adapters/adelement/adelementtest/exemplary/native-web.json @@ -66,7 +66,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs": ["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adelement/adelementtest/exemplary/video-app.json b/adapters/adelement/adelementtest/exemplary/video-app.json index c53f2391020..700f74341ff 100644 --- a/adapters/adelement/adelementtest/exemplary/video-app.json +++ b/adapters/adelement/adelementtest/exemplary/video-app.json @@ -87,7 +87,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs": ["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adelement/adelementtest/exemplary/video-web.json b/adapters/adelement/adelementtest/exemplary/video-web.json index 7248d0ac191..0351a7ebcd2 100644 --- a/adapters/adelement/adelementtest/exemplary/video-web.json +++ b/adapters/adelement/adelementtest/exemplary/video-web.json @@ -75,7 +75,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs": ["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adelement/adelementtest/supplemental/empty-seatbid-array.json b/adapters/adelement/adelementtest/supplemental/empty-seatbid-array.json index 64fdde7e0b1..ff7a2540f87 100644 --- a/adapters/adelement/adelementtest/supplemental/empty-seatbid-array.json +++ b/adapters/adelement/adelementtest/supplemental/empty-seatbid-array.json @@ -87,7 +87,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs": ["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adelement/adelementtest/supplemental/invalid-response.json b/adapters/adelement/adelementtest/supplemental/invalid-response.json index b44dcaf462f..e70dccfdb0f 100644 --- a/adapters/adelement/adelementtest/supplemental/invalid-response.json +++ b/adapters/adelement/adelementtest/supplemental/invalid-response.json @@ -78,7 +78,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs": ["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adelement/adelementtest/supplemental/status-code-bad-request.json b/adapters/adelement/adelementtest/supplemental/status-code-bad-request.json index d2db833803b..008c17da1d9 100644 --- a/adapters/adelement/adelementtest/supplemental/status-code-bad-request.json +++ b/adapters/adelement/adelementtest/supplemental/status-code-bad-request.json @@ -76,7 +76,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs": ["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/adelement/adelementtest/supplemental/status-code-no-content.json b/adapters/adelement/adelementtest/supplemental/status-code-no-content.json index a830cbcfc97..eeecb9bef23 100644 --- a/adapters/adelement/adelementtest/supplemental/status-code-no-content.json +++ b/adapters/adelement/adelementtest/supplemental/status-code-no-content.json @@ -57,7 +57,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs": ["some-impression-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/adelement/adelementtest/supplemental/status-code-other-error.json b/adapters/adelement/adelementtest/supplemental/status-code-other-error.json index f5a383d1577..b142d0c0796 100644 --- a/adapters/adelement/adelementtest/supplemental/status-code-other-error.json +++ b/adapters/adelement/adelementtest/supplemental/status-code-other-error.json @@ -62,7 +62,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs": ["some-impression-id"] }, "mockResponse": { "status": 306 diff --git a/adapters/adelement/adelementtest/supplemental/status-code-service-unavailable.json b/adapters/adelement/adelementtest/supplemental/status-code-service-unavailable.json index abec808b12e..545afa63b11 100644 --- a/adapters/adelement/adelementtest/supplemental/status-code-service-unavailable.json +++ b/adapters/adelement/adelementtest/supplemental/status-code-service-unavailable.json @@ -62,7 +62,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs": ["some-impression-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/adf/adf.go b/adapters/adf/adf.go index 4b6ff2b76c7..afa9bc84562 100644 --- a/adapters/adf/adf.go +++ b/adapters/adf/adf.go @@ -91,6 +91,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: a.endpoint, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, errors diff --git a/adapters/adf/adftest/exemplary/dynamic-tag.json b/adapters/adf/adftest/exemplary/dynamic-tag.json index be366a24807..9770bc07832 100644 --- a/adapters/adf/adftest/exemplary/dynamic-tag.json +++ b/adapters/adf/adftest/exemplary/dynamic-tag.json @@ -88,7 +88,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id","test-imp-id2"] }, "mockResponse": { "status": 204 diff --git a/adapters/adf/adftest/exemplary/multi-format.json b/adapters/adf/adftest/exemplary/multi-format.json index b0e9d98f440..ffea1b185be 100644 --- a/adapters/adf/adftest/exemplary/multi-format.json +++ b/adapters/adf/adftest/exemplary/multi-format.json @@ -87,7 +87,8 @@ }, "tagid": "828783" }] - } + }, + "impIDs":["test-imp-id-1","test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/adf/adftest/exemplary/multi-native.json b/adapters/adf/adftest/exemplary/multi-native.json index 6c9279b7db6..6b9f72b214f 100644 --- a/adapters/adf/adftest/exemplary/multi-native.json +++ b/adapters/adf/adftest/exemplary/multi-native.json @@ -55,7 +55,8 @@ }, "tagid": "828783" }] - } + }, + "impIDs":["test-imp-id-1","test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/adf/adftest/exemplary/single-banner-pricetype-gross-extend-ext.json b/adapters/adf/adftest/exemplary/single-banner-pricetype-gross-extend-ext.json index 0cd03c75bb5..777842d3e08 100644 --- a/adapters/adf/adftest/exemplary/single-banner-pricetype-gross-extend-ext.json +++ b/adapters/adf/adftest/exemplary/single-banner-pricetype-gross-extend-ext.json @@ -73,7 +73,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adf/adftest/exemplary/single-banner-pricetype-gross.json b/adapters/adf/adftest/exemplary/single-banner-pricetype-gross.json index 2fb7cf24c5a..98781cd1285 100644 --- a/adapters/adf/adftest/exemplary/single-banner-pricetype-gross.json +++ b/adapters/adf/adftest/exemplary/single-banner-pricetype-gross.json @@ -63,7 +63,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adf/adftest/exemplary/single-banner-pricetype-net.json b/adapters/adf/adftest/exemplary/single-banner-pricetype-net.json index cb4b5f8a1f4..bd716bac1b3 100644 --- a/adapters/adf/adftest/exemplary/single-banner-pricetype-net.json +++ b/adapters/adf/adftest/exemplary/single-banner-pricetype-net.json @@ -63,7 +63,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adf/adftest/exemplary/single-banner.json b/adapters/adf/adftest/exemplary/single-banner.json index 2fc869024c1..d4017c1e85d 100644 --- a/adapters/adf/adftest/exemplary/single-banner.json +++ b/adapters/adf/adftest/exemplary/single-banner.json @@ -56,7 +56,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adf/adftest/exemplary/single-native.json b/adapters/adf/adftest/exemplary/single-native.json index 347c4aebcc6..ec3c465727c 100644 --- a/adapters/adf/adftest/exemplary/single-native.json +++ b/adapters/adf/adftest/exemplary/single-native.json @@ -52,7 +52,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adf/adftest/exemplary/single-video.json b/adapters/adf/adftest/exemplary/single-video.json index 2e8c0f953e2..f6e2eb2441e 100644 --- a/adapters/adf/adftest/exemplary/single-video.json +++ b/adapters/adf/adftest/exemplary/single-video.json @@ -56,7 +56,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adf/adftest/exemplary/two-banners-different-pricetypes-extend-ext.json b/adapters/adf/adftest/exemplary/two-banners-different-pricetypes-extend-ext.json index 59e380d5f2e..4e524ec1905 100644 --- a/adapters/adf/adftest/exemplary/two-banners-different-pricetypes-extend-ext.json +++ b/adapters/adf/adftest/exemplary/two-banners-different-pricetypes-extend-ext.json @@ -102,7 +102,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id","test-imp-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/adf/adftest/exemplary/two-banners-different-pricetypes.json b/adapters/adf/adftest/exemplary/two-banners-different-pricetypes.json index 918ef3ca7f3..24c8d98beae 100644 --- a/adapters/adf/adftest/exemplary/two-banners-different-pricetypes.json +++ b/adapters/adf/adftest/exemplary/two-banners-different-pricetypes.json @@ -92,7 +92,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id","test-imp-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/adf/adftest/supplemental/bad-request.json b/adapters/adf/adftest/supplemental/bad-request.json index 7424eae4656..f32f10056f8 100644 --- a/adapters/adf/adftest/supplemental/bad-request.json +++ b/adapters/adf/adftest/supplemental/bad-request.json @@ -31,7 +31,8 @@ }, "tagid": "12345" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/adf/adftest/supplemental/empty-response.json b/adapters/adf/adftest/supplemental/empty-response.json index b2d6eab97fe..96772c03c67 100644 --- a/adapters/adf/adftest/supplemental/empty-response.json +++ b/adapters/adf/adftest/supplemental/empty-response.json @@ -31,7 +31,8 @@ }, "tagid": "12345" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/adf/adftest/supplemental/invalid-imp-mediatype.json b/adapters/adf/adftest/supplemental/invalid-imp-mediatype.json index 5dab8c36fa2..eb3935851cb 100644 --- a/adapters/adf/adftest/supplemental/invalid-imp-mediatype.json +++ b/adapters/adf/adftest/supplemental/invalid-imp-mediatype.json @@ -48,7 +48,8 @@ }, "tagid": "12345" }] - } + }, + "impIDs":["test-imp-id","test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/adf/adftest/supplemental/nobid-response.json b/adapters/adf/adftest/supplemental/nobid-response.json index 57dd2d5c626..800666615dd 100644 --- a/adapters/adf/adftest/supplemental/nobid-response.json +++ b/adapters/adf/adftest/supplemental/nobid-response.json @@ -31,7 +31,8 @@ }, "tagid": "12345" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adf/adftest/supplemental/server-error.json b/adapters/adf/adftest/supplemental/server-error.json index 15604ad2189..1983498093e 100644 --- a/adapters/adf/adftest/supplemental/server-error.json +++ b/adapters/adf/adftest/supplemental/server-error.json @@ -31,7 +31,8 @@ }, "tagid": "12345" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/adf/adftest/supplemental/unparsable-response.json b/adapters/adf/adftest/supplemental/unparsable-response.json index 091f05cea22..5e63febee4c 100644 --- a/adapters/adf/adftest/supplemental/unparsable-response.json +++ b/adapters/adf/adftest/supplemental/unparsable-response.json @@ -31,7 +31,8 @@ }, "tagid": "12345" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adgeneration/adgeneration.go b/adapters/adgeneration/adgeneration.go index 92ea0c3adc8..192680ca9f2 100644 --- a/adapters/adgeneration/adgeneration.go +++ b/adapters/adgeneration/adgeneration.go @@ -77,6 +77,7 @@ func (adg *AdgenerationAdapter) MakeRequests(request *openrtb2.BidRequest, reqIn Uri: bidRequestUri, Body: nil, Headers: headers, + ImpIDs: []string{request.Imp[index].ID}, } bidRequestArray = append(bidRequestArray, bidRequest) } diff --git a/adapters/adgeneration/adgenerationtest/exemplary/single-banner-android.json b/adapters/adgeneration/adgenerationtest/exemplary/single-banner-android.json index 487d44692e0..1753abc7127 100644 --- a/adapters/adgeneration/adgenerationtest/exemplary/single-banner-android.json +++ b/adapters/adgeneration/adgenerationtest/exemplary/single-banner-android.json @@ -75,7 +75,8 @@ "X-Forwarded-For": [ "0.0.0.0" ] - } + }, + "impIDs":["some-impression-id"] }, "mockResponse":{ "status": 200, diff --git a/adapters/adgeneration/adgenerationtest/exemplary/single-banner-ios.json b/adapters/adgeneration/adgenerationtest/exemplary/single-banner-ios.json index e0ff64c453d..836cfde35c0 100644 --- a/adapters/adgeneration/adgenerationtest/exemplary/single-banner-ios.json +++ b/adapters/adgeneration/adgenerationtest/exemplary/single-banner-ios.json @@ -75,7 +75,8 @@ "X-Forwarded-For": [ "0.0.0.0" ] - } + }, + "impIDs":["some-impression-id"] }, "mockResponse":{ "status": 200, diff --git a/adapters/adgeneration/adgenerationtest/exemplary/single-banner.json b/adapters/adgeneration/adgenerationtest/exemplary/single-banner.json index cd68e32cd09..1ad91f8fabf 100644 --- a/adapters/adgeneration/adgenerationtest/exemplary/single-banner.json +++ b/adapters/adgeneration/adgenerationtest/exemplary/single-banner.json @@ -73,7 +73,8 @@ "X-Forwarded-For": [ "0.0.0.0" ] - } + }, + "impIDs":["some-impression-id"] }, "mockResponse":{ "status": 200, diff --git a/adapters/adgeneration/adgenerationtest/supplemental/204-bid-response.json b/adapters/adgeneration/adgenerationtest/supplemental/204-bid-response.json index 8d1ab442154..8adf7442976 100644 --- a/adapters/adgeneration/adgenerationtest/supplemental/204-bid-response.json +++ b/adapters/adgeneration/adgenerationtest/supplemental/204-bid-response.json @@ -66,7 +66,8 @@ "User-Agent": [ "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" ] - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/adgeneration/adgenerationtest/supplemental/400-bid-response.json b/adapters/adgeneration/adgenerationtest/supplemental/400-bid-response.json index dc7c41d0f6b..c4459aca972 100644 --- a/adapters/adgeneration/adgenerationtest/supplemental/400-bid-response.json +++ b/adapters/adgeneration/adgenerationtest/supplemental/400-bid-response.json @@ -66,7 +66,8 @@ "User-Agent": [ "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" ] - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/adgeneration/adgenerationtest/supplemental/no-bid-response.json b/adapters/adgeneration/adgenerationtest/supplemental/no-bid-response.json index 523806a9f3c..58ed36e5d23 100644 --- a/adapters/adgeneration/adgenerationtest/supplemental/no-bid-response.json +++ b/adapters/adgeneration/adgenerationtest/supplemental/no-bid-response.json @@ -66,7 +66,8 @@ "User-Agent": [ "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" ] - } + }, + "impIDs":["some-impression-id"] }, "mockResponse":{ "status": 200, diff --git a/adapters/adhese/adhese.go b/adapters/adhese/adhese.go index f27848f023d..09bd4ba8041 100644 --- a/adapters/adhese/adhese.go +++ b/adapters/adhese/adhese.go @@ -124,6 +124,7 @@ func (a *AdheseAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adap return []*adapters.RequestData{{ Method: "GET", Uri: complete_url, + ImpIDs: []string{imp.ID}, }}, errs } diff --git a/adapters/adhese/adhesetest/exemplary/banner-internal.json b/adapters/adhese/adhesetest/exemplary/banner-internal.json index 50efe4a656d..4d9b2d80093 100644 --- a/adapters/adhese/adhesetest/exemplary/banner-internal.json +++ b/adapters/adhese/adhesetest/exemplary/banner-internal.json @@ -45,7 +45,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xtdummy/xzdum-my" + "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xtdummy/xzdum-my", + "impIDs":["test-req"] }, "mockResponse": { "status": 200, diff --git a/adapters/adhese/adhesetest/exemplary/banner-market.json b/adapters/adhese/adhesetest/exemplary/banner-market.json index 340e6d87223..97240c67fda 100644 --- a/adapters/adhese/adhesetest/exemplary/banner-market.json +++ b/adapters/adhese/adhesetest/exemplary/banner-market.json @@ -38,7 +38,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://ads-market.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xfdummy" + "uri": "https://ads-market.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xfdummy", + "impIDs":["test-req"] }, "mockResponse": { "status": 200, diff --git a/adapters/adhese/adhesetest/exemplary/banner-video-internal.json b/adapters/adhese/adhesetest/exemplary/banner-video-internal.json index bd9203c2509..72182bea90c 100644 --- a/adapters/adhese/adhesetest/exemplary/banner-video-internal.json +++ b/adapters/adhese/adhesetest/exemplary/banner-video-internal.json @@ -42,7 +42,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xtdummy" + "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xtdummy", + "impIDs":["test-req"] }, "mockResponse": { "status": 200, diff --git a/adapters/adhese/adhesetest/exemplary/video.json b/adapters/adhese/adhesetest/exemplary/video.json index 134e3add52d..2c77d7f2229 100644 --- a/adapters/adhese/adhesetest/exemplary/video.json +++ b/adapters/adhese/adhesetest/exemplary/video.json @@ -1,6 +1,7 @@ { "mockBidRequest": { "imp": [{ + "id":"test-imp-id", "ext": { "bidder": { "account": "demo", @@ -20,7 +21,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall" + "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adhese/adhesetest/supplemental/res-invalid-height.json b/adapters/adhese/adhesetest/supplemental/res-invalid-height.json index 1e11df2f4c4..86ff3e49692 100644 --- a/adapters/adhese/adhesetest/supplemental/res-invalid-height.json +++ b/adapters/adhese/adhesetest/supplemental/res-invalid-height.json @@ -38,7 +38,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://ads-market.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xfdummy" + "uri": "https://ads-market.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xfdummy", + "impIDs":["test-req"] }, "mockResponse": { "status": 200, diff --git a/adapters/adhese/adhesetest/supplemental/res-invalid-no-body.json b/adapters/adhese/adhesetest/supplemental/res-invalid-no-body.json index f970476450f..f05ca15a862 100644 --- a/adapters/adhese/adhesetest/supplemental/res-invalid-no-body.json +++ b/adapters/adhese/adhesetest/supplemental/res-invalid-no-body.json @@ -42,7 +42,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xtdummy" + "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xtdummy", + "impIDs":["test-req"] }, "mockResponse": { "status": 200 diff --git a/adapters/adhese/adhesetest/supplemental/res-invalid-no-origin.json b/adapters/adhese/adhesetest/supplemental/res-invalid-no-origin.json index 636e30741bb..886849bde46 100644 --- a/adapters/adhese/adhesetest/supplemental/res-invalid-no-origin.json +++ b/adapters/adhese/adhesetest/supplemental/res-invalid-no-origin.json @@ -42,7 +42,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xtdummy" + "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xtdummy", + "impIDs":["test-req"] }, "mockResponse": { "status": 200, diff --git a/adapters/adhese/adhesetest/supplemental/res-invalid-price.json b/adapters/adhese/adhesetest/supplemental/res-invalid-price.json index f23bf0f7cb1..9505af358bf 100644 --- a/adapters/adhese/adhesetest/supplemental/res-invalid-price.json +++ b/adapters/adhese/adhesetest/supplemental/res-invalid-price.json @@ -38,7 +38,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://ads-market.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xfdummy" + "uri": "https://ads-market.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xfdummy", + "impIDs":["test-req"] }, "mockResponse": { "status": 200, diff --git a/adapters/adhese/adhesetest/supplemental/res-invalid-status-not-ok.json b/adapters/adhese/adhesetest/supplemental/res-invalid-status-not-ok.json index 96f17b15b32..4234986dd68 100644 --- a/adapters/adhese/adhesetest/supplemental/res-invalid-status-not-ok.json +++ b/adapters/adhese/adhesetest/supplemental/res-invalid-status-not-ok.json @@ -42,7 +42,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xtdummy" + "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xtdummy", + "impIDs":["test-req"] }, "mockResponse": { "status": 501, diff --git a/adapters/adhese/adhesetest/supplemental/res-invalid-width.json b/adapters/adhese/adhesetest/supplemental/res-invalid-width.json index 77b23d347af..b554ed65450 100644 --- a/adapters/adhese/adhesetest/supplemental/res-invalid-width.json +++ b/adapters/adhese/adhesetest/supplemental/res-invalid-width.json @@ -38,7 +38,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://ads-market.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xfdummy" + "uri": "https://ads-market.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xfdummy", + "impIDs":["test-req"] }, "mockResponse": { "status": 200, diff --git a/adapters/adhese/adhesetest/supplemental/res-no_bids_200.json b/adapters/adhese/adhesetest/supplemental/res-no_bids_200.json index 2a778bdf0b4..f8b0b5f17cd 100644 --- a/adapters/adhese/adhesetest/supplemental/res-no_bids_200.json +++ b/adapters/adhese/adhesetest/supplemental/res-no_bids_200.json @@ -42,7 +42,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xtdummy" + "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xtdummy", + "impIDs":["test-req"] }, "mockResponse": { "status": 200, diff --git a/adapters/adhese/adhesetest/supplemental/res-no_bids_204.json b/adapters/adhese/adhesetest/supplemental/res-no_bids_204.json index c9630049f02..e678406a75f 100644 --- a/adapters/adhese/adhesetest/supplemental/res-no_bids_204.json +++ b/adapters/adhese/adhesetest/supplemental/res-no_bids_204.json @@ -42,7 +42,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xtdummy" + "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xtdummy", + "impIDs":["test-req"] }, "mockResponse": { "status": 204, diff --git a/adapters/adhese/adhesetest/supplemental/res-no_impression_counter.json b/adapters/adhese/adhesetest/supplemental/res-no_impression_counter.json index 99af5671f4b..20539464aa5 100644 --- a/adapters/adhese/adhesetest/supplemental/res-no_impression_counter.json +++ b/adapters/adhese/adhesetest/supplemental/res-no_impression_counter.json @@ -42,7 +42,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xtdummy" + "uri": "https://ads-demo.adhese.com/json/sl_adhese_prebid_demo_-leaderboard/ag55/cigent;brussels/tlall/xtdummy", + "impIDs":["test-req"] }, "mockResponse": { "status": 200, diff --git a/adapters/adkernel/adkernel.go b/adapters/adkernel/adkernel.go index 09a2358a951..0d435e91dda 100644 --- a/adapters/adkernel/adkernel.go +++ b/adapters/adkernel/adkernel.go @@ -204,7 +204,8 @@ func (adapter *adkernelAdapter) buildAdapterRequest(prebidBidRequest *openrtb2.B Method: "POST", Uri: url, Body: reqJSON, - Headers: headers}, nil + Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(imps)}, nil } func createBidRequest(prebidBidRequest *openrtb2.BidRequest, params *openrtb_ext.ExtImpAdkernel, imps []openrtb2.Imp) *openrtb2.BidRequest { diff --git a/adapters/adkernel/adkerneltest/exemplary/multiformat-impression.json b/adapters/adkernel/adkerneltest/exemplary/multiformat-impression.json index 49c5249f0cc..1cdf260020b 100644 --- a/adapters/adkernel/adkerneltest/exemplary/multiformat-impression.json +++ b/adapters/adkernel/adkerneltest/exemplary/multiformat-impression.json @@ -73,7 +73,8 @@ "user": { "buyeruid": "A-38327932832" } - } + }, + "impIDs":["multi-adunitb__mf", "multi-adunitv__mf", "multi-adunitn__mf"] }, "mockResponse": { "status": 200, diff --git a/adapters/adkernel/adkerneltest/exemplary/single-banner-impression.json b/adapters/adkernel/adkerneltest/exemplary/single-banner-impression.json index 6a01b847c5f..69e80d0620e 100644 --- a/adapters/adkernel/adkerneltest/exemplary/single-banner-impression.json +++ b/adapters/adkernel/adkerneltest/exemplary/single-banner-impression.json @@ -48,7 +48,8 @@ "buyeruid": "A-38327932832" }, "cur": ["TYR"] - } + }, + "impIDs":["adunit-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/adkernel/adkerneltest/exemplary/single-video-impression.json b/adapters/adkernel/adkerneltest/exemplary/single-video-impression.json index cd458826702..a5759aa0a22 100644 --- a/adapters/adkernel/adkerneltest/exemplary/single-video-impression.json +++ b/adapters/adkernel/adkerneltest/exemplary/single-video-impression.json @@ -55,7 +55,8 @@ "user": { "buyeruid": "A-38327932832" } - } + }, + "impIDs":["video-adunit-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/adkernelAdn/adkernelAdn.go b/adapters/adkernelAdn/adkernelAdn.go index a6255f89820..00b4c1a23c4 100644 --- a/adapters/adkernelAdn/adkernelAdn.go +++ b/adapters/adkernelAdn/adkernelAdn.go @@ -184,7 +184,8 @@ func (adapter *adkernelAdnAdapter) buildAdapterRequest(prebidBidRequest *openrtb Method: "POST", Uri: url, Body: reqJSON, - Headers: headers}, nil + Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(imps)}, nil } func createBidRequest(prebidBidRequest *openrtb2.BidRequest, params *openrtb_ext.ExtImpAdkernelAdn, imps []openrtb2.Imp) *openrtb2.BidRequest { diff --git a/adapters/adkernelAdn/adkerneladntest/exemplary/multiformat-impression.json b/adapters/adkernelAdn/adkerneladntest/exemplary/multiformat-impression.json index 2a6db14d540..dc20bfa0df8 100644 --- a/adapters/adkernelAdn/adkerneladntest/exemplary/multiformat-impression.json +++ b/adapters/adkernelAdn/adkerneladntest/exemplary/multiformat-impression.json @@ -55,7 +55,8 @@ "user": { "buyeruid": "A-38327932832" } - } + }, + "impIDs":["multi-adunit"] }, "mockResponse": { "status": 200, diff --git a/adapters/adkernelAdn/adkerneladntest/exemplary/single-banner-impression.json b/adapters/adkernelAdn/adkerneladntest/exemplary/single-banner-impression.json index 6df3e0f16e3..d05abb04ed2 100644 --- a/adapters/adkernelAdn/adkerneladntest/exemplary/single-banner-impression.json +++ b/adapters/adkernelAdn/adkerneladntest/exemplary/single-banner-impression.json @@ -48,7 +48,8 @@ "user": { "buyeruid": "A-38327932832" } - } + }, + "impIDs":["adunit-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/adkernelAdn/adkerneladntest/exemplary/single-video-impression.json b/adapters/adkernelAdn/adkerneladntest/exemplary/single-video-impression.json index e60aa06ca1f..d57213630c7 100644 --- a/adapters/adkernelAdn/adkerneladntest/exemplary/single-video-impression.json +++ b/adapters/adkernelAdn/adkerneladntest/exemplary/single-video-impression.json @@ -55,7 +55,8 @@ "user": { "buyeruid": "A-38327932832" } - } + }, + "impIDs":["video-adunit-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/adkernelAdn/adkerneladntest/supplemental/204status.json b/adapters/adkernelAdn/adkerneladntest/supplemental/204status.json index ae71ff41352..3efbaf1d422 100644 --- a/adapters/adkernelAdn/adkerneladntest/supplemental/204status.json +++ b/adapters/adkernelAdn/adkerneladntest/supplemental/204status.json @@ -41,7 +41,8 @@ "site": { "page": "http://example.com/test.html" } - } + }, + "impIDs":["adunit-1"] }, "mockResponse": { "status": 204, diff --git a/adapters/adkernelAdn/adkerneladntest/supplemental/http-err-status.json b/adapters/adkernelAdn/adkerneladntest/supplemental/http-err-status.json index 8a25aae0ecd..6ed9013e102 100644 --- a/adapters/adkernelAdn/adkerneladntest/supplemental/http-err-status.json +++ b/adapters/adkernelAdn/adkerneladntest/supplemental/http-err-status.json @@ -41,7 +41,8 @@ "site": { "page": "http://example.com/test.html" } - } + }, + "impIDs":["adunit-1"] }, "mockResponse": { "status": 404 diff --git a/adapters/adkernelAdn/adkerneladntest/supplemental/two-impressions-two-seatbids.json b/adapters/adkernelAdn/adkerneladntest/supplemental/two-impressions-two-seatbids.json index 37a5a36d859..e538e33a097 100644 --- a/adapters/adkernelAdn/adkerneladntest/supplemental/two-impressions-two-seatbids.json +++ b/adapters/adkernelAdn/adkerneladntest/supplemental/two-impressions-two-seatbids.json @@ -56,7 +56,8 @@ "video": {"mimes": ["video/mp4"]} } ] - } + }, + "impIDs":["banner-adunit-1","video-adunit-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/adman/adman.go b/adapters/adman/adman.go index 6611e0cdee8..e6a4da712b3 100644 --- a/adapters/adman/adman.go +++ b/adapters/adman/adman.go @@ -78,6 +78,7 @@ func (a *AdmanAdapter) makeRequest(request *openrtb2.BidRequest) (*adapters.Requ Uri: a.URI, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, errs } diff --git a/adapters/adman/admantest/exemplary/simple-banner.json b/adapters/adman/admantest/exemplary/simple-banner.json index 8bbe16aa0fe..e6abaf6a1a4 100644 --- a/adapters/adman/admantest/exemplary/simple-banner.json +++ b/adapters/adman/admantest/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adman/admantest/exemplary/simple-video.json b/adapters/adman/admantest/exemplary/simple-video.json index 159a30a93e0..ef227371957 100644 --- a/adapters/adman/admantest/exemplary/simple-video.json +++ b/adapters/adman/admantest/exemplary/simple-video.json @@ -58,7 +58,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adman/admantest/exemplary/simple-web-banner.json b/adapters/adman/admantest/exemplary/simple-web-banner.json index 0ceaac7c6d5..6dcf5f05af1 100644 --- a/adapters/adman/admantest/exemplary/simple-web-banner.json +++ b/adapters/adman/admantest/exemplary/simple-web-banner.json @@ -69,7 +69,8 @@ "device": { "ip": "123.123.123.123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adman/admantest/supplemental/bad_response.json b/adapters/adman/admantest/supplemental/bad_response.json index 4431a328154..f9920c9069d 100644 --- a/adapters/adman/admantest/supplemental/bad_response.json +++ b/adapters/adman/admantest/supplemental/bad_response.json @@ -69,7 +69,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adman/admantest/supplemental/status-204.json b/adapters/adman/admantest/supplemental/status-204.json index 05f9d030832..859524562d0 100644 --- a/adapters/adman/admantest/supplemental/status-204.json +++ b/adapters/adman/admantest/supplemental/status-204.json @@ -70,7 +70,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/adman/admantest/supplemental/status-404.json b/adapters/adman/admantest/supplemental/status-404.json index 043afbdc1dc..8896b1d0ed6 100644 --- a/adapters/adman/admantest/supplemental/status-404.json +++ b/adapters/adman/admantest/supplemental/status-404.json @@ -69,7 +69,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/admixer/admixer.go b/adapters/admixer/admixer.go index b0f8b1b2e56..968b5954103 100644 --- a/adapters/admixer/admixer.go +++ b/adapters/admixer/admixer.go @@ -81,6 +81,7 @@ func (a *AdmixerAdapter) makeRequest(request *openrtb2.BidRequest) (*adapters.Re Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, errs } diff --git a/adapters/admixer/admixertest/exemplary/optional-params.json b/adapters/admixer/admixertest/exemplary/optional-params.json index b93aa9c8154..6d60878c835 100644 --- a/adapters/admixer/admixertest/exemplary/optional-params.json +++ b/adapters/admixer/admixertest/exemplary/optional-params.json @@ -227,7 +227,8 @@ } } ] - } + }, + "impIDs":["test-imp-id","test-imp-id","test-imp-id","test-imp-id","test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/admixer/admixertest/exemplary/simple-app-audio.json b/adapters/admixer/admixertest/exemplary/simple-app-audio.json index b8c39ead95e..3b6673180a4 100644 --- a/adapters/admixer/admixertest/exemplary/simple-app-audio.json +++ b/adapters/admixer/admixertest/exemplary/simple-app-audio.json @@ -45,7 +45,8 @@ "tagid": "473e443c-43d0-423d-a8d7-a302637a01d8" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/admixer/admixertest/exemplary/simple-app-banner.json b/adapters/admixer/admixertest/exemplary/simple-app-banner.json index aff4ccddd64..1be2f132bdf 100644 --- a/adapters/admixer/admixertest/exemplary/simple-app-banner.json +++ b/adapters/admixer/admixertest/exemplary/simple-app-banner.json @@ -52,7 +52,8 @@ "tagid": "2eb6bd58-865c-47ce-af7f-a918108c3fd2" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/admixer/admixertest/exemplary/simple-app-native.json b/adapters/admixer/admixertest/exemplary/simple-app-native.json index 38c005c651c..1a99f2a4488 100644 --- a/adapters/admixer/admixertest/exemplary/simple-app-native.json +++ b/adapters/admixer/admixertest/exemplary/simple-app-native.json @@ -46,7 +46,8 @@ "tagid": "b1fbebfc-7155-4922-bb86-615e7f3d6eef" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/admixer/admixertest/exemplary/simple-app-video.json b/adapters/admixer/admixertest/exemplary/simple-app-video.json index 627023fa1e6..a94d1faf422 100644 --- a/adapters/admixer/admixertest/exemplary/simple-app-video.json +++ b/adapters/admixer/admixertest/exemplary/simple-app-video.json @@ -62,7 +62,8 @@ "tagid": "ac7fa772-d7be-48cc-820b-e21728e434fe" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/admixer/admixertest/exemplary/simple-site-audio.json b/adapters/admixer/admixertest/exemplary/simple-site-audio.json index 5a1d6531a85..c141442e7a5 100644 --- a/adapters/admixer/admixertest/exemplary/simple-site-audio.json +++ b/adapters/admixer/admixertest/exemplary/simple-site-audio.json @@ -45,7 +45,8 @@ "tagid": "473e443c-43d0-423d-a8d7-a302637a01d8" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/admixer/admixertest/exemplary/simple-site-banner.json b/adapters/admixer/admixertest/exemplary/simple-site-banner.json index bd50aba8d1a..776cdcff50e 100644 --- a/adapters/admixer/admixertest/exemplary/simple-site-banner.json +++ b/adapters/admixer/admixertest/exemplary/simple-site-banner.json @@ -52,7 +52,8 @@ "tagid": "2eb6bd58-865c-47ce-af7f-a918108c3fd2" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/admixer/admixertest/exemplary/simple-site-native.json b/adapters/admixer/admixertest/exemplary/simple-site-native.json index 246d02025b1..95f604ce2d9 100644 --- a/adapters/admixer/admixertest/exemplary/simple-site-native.json +++ b/adapters/admixer/admixertest/exemplary/simple-site-native.json @@ -46,7 +46,8 @@ "tagid": "b1fbebfc-7155-4922-bb86-615e7f3d6eef" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/admixer/admixertest/exemplary/simple-site-video.json b/adapters/admixer/admixertest/exemplary/simple-site-video.json index 42d771ce86b..5f3a0e1037c 100644 --- a/adapters/admixer/admixertest/exemplary/simple-site-video.json +++ b/adapters/admixer/admixertest/exemplary/simple-site-video.json @@ -62,7 +62,8 @@ "tagid": "ac7fa772-d7be-48cc-820b-e21728e434fe" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/admixer/admixertest/supplemental/bad-dsp-request-example.json b/adapters/admixer/admixertest/supplemental/bad-dsp-request-example.json index 5256c14050b..1e10f331c8c 100644 --- a/adapters/admixer/admixertest/supplemental/bad-dsp-request-example.json +++ b/adapters/admixer/admixertest/supplemental/bad-dsp-request-example.json @@ -52,7 +52,8 @@ "tagid": "3e56bd58-865c-47ce-af7f-a918108c3fd2" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/admixer/admixertest/supplemental/dsp-server-internal-error-example.json b/adapters/admixer/admixertest/supplemental/dsp-server-internal-error-example.json index 1c06eadce44..aa3f0f17dd5 100644 --- a/adapters/admixer/admixertest/supplemental/dsp-server-internal-error-example.json +++ b/adapters/admixer/admixertest/supplemental/dsp-server-internal-error-example.json @@ -52,7 +52,8 @@ "tagid": "3e56bd58-865c-47ce-af7f-a918108c3fd2" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/admixer/admixertest/supplemental/unknown-status-code-example.json b/adapters/admixer/admixertest/supplemental/unknown-status-code-example.json index 972f2f5dd01..aeebb1e0b7d 100644 --- a/adapters/admixer/admixertest/supplemental/unknown-status-code-example.json +++ b/adapters/admixer/admixertest/supplemental/unknown-status-code-example.json @@ -52,7 +52,8 @@ "tagid": "3e56bd58-865c-47ce-af7f-a918108c3fd2" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 301, diff --git a/adapters/adnuntius/adnuntius.go b/adapters/adnuntius/adnuntius.go index c1d71cc1ab4..465547dbe72 100644 --- a/adapters/adnuntius/adnuntius.go +++ b/adapters/adnuntius/adnuntius.go @@ -299,6 +299,7 @@ func (a *adapter) generateRequests(ortbRequest openrtb2.BidRequest) ([]*adapters Uri: endpoint, Body: adnJson, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(ortbRequest.Imp), }) } diff --git a/adapters/adnuntius/adnuntiustest/exemplary/simple-banner.json b/adapters/adnuntius/adnuntiustest/exemplary/simple-banner.json index 3a50789e4dd..881c02e340d 100644 --- a/adapters/adnuntius/adnuntiustest/exemplary/simple-banner.json +++ b/adapters/adnuntius/adnuntiustest/exemplary/simple-banner.json @@ -42,7 +42,8 @@ ], "context": "prebid.org", "metaData": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/check-dealId.json b/adapters/adnuntius/adnuntiustest/supplemental/check-dealId.json index 2565fee93c9..06dbeff4113 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/check-dealId.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/check-dealId.json @@ -42,7 +42,8 @@ ], "context": "prebid.org", "metaData": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/check-gdpr.json b/adapters/adnuntius/adnuntiustest/supplemental/check-gdpr.json index c73d69bad83..44e59316a7d 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/check-gdpr.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/check-gdpr.json @@ -51,7 +51,8 @@ "usi": "1kjh3429kjh295jkl" }, "context": "unknown" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/check-gross-bids.json b/adapters/adnuntius/adnuntiustest/supplemental/check-gross-bids.json index d6301fe71cf..7e533098fb5 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/check-gross-bids.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/check-gross-bids.json @@ -44,7 +44,8 @@ "usi": "1kjh3429kjh295jkl" }, "context": "unknown" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/check-net-bids.json b/adapters/adnuntius/adnuntiustest/supplemental/check-net-bids.json index ebb25b2b7ad..301a1f60fec 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/check-net-bids.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/check-net-bids.json @@ -44,7 +44,8 @@ "usi": "1kjh3429kjh295jkl" }, "context": "unknown" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/check-noCookies-parameter.json b/adapters/adnuntius/adnuntiustest/supplemental/check-noCookies-parameter.json index b0d74565771..5ac10a86ce5 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/check-noCookies-parameter.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/check-noCookies-parameter.json @@ -44,7 +44,8 @@ "usi": "1kjh3429kjh295jkl" }, "context": "unknown" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/check-noCookies.json b/adapters/adnuntius/adnuntiustest/supplemental/check-noCookies.json index f1ddd3f7d5a..7080ef678d2 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/check-noCookies.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/check-noCookies.json @@ -48,7 +48,8 @@ "usi": "1kjh3429kjh295jkl" }, "context": "unknown" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/check-order-multi-imp.json b/adapters/adnuntius/adnuntiustest/supplemental/check-order-multi-imp.json index d6f292d8cd5..75b08f73716 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/check-order-multi-imp.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/check-order-multi-imp.json @@ -67,7 +67,8 @@ ], "context": "prebid.org", "metaData": {} - } + }, + "impIDs":["test-imp-id","test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/check-userId.json b/adapters/adnuntius/adnuntiustest/supplemental/check-userId.json index 4b8e6de346e..eb2f71111a7 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/check-userId.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/check-userId.json @@ -43,7 +43,8 @@ "usi": "1kjh3429kjh295jkl" }, "context": "unknown" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/empty-regs-ext.json b/adapters/adnuntius/adnuntiustest/supplemental/empty-regs-ext.json index f3aebd99621..d0b7b1450ea 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/empty-regs-ext.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/empty-regs-ext.json @@ -46,7 +46,8 @@ "usi": "1kjh3429kjh295jkl" }, "context": "unknown" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/empty-regs.json b/adapters/adnuntius/adnuntiustest/supplemental/empty-regs.json index 06593630c43..79571562c7f 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/empty-regs.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/empty-regs.json @@ -45,7 +45,8 @@ "usi": "1kjh3429kjh295jkl" }, "context": "unknown" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/height-error.json b/adapters/adnuntius/adnuntiustest/supplemental/height-error.json index 1987fb9d08e..c58d27eba3e 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/height-error.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/height-error.json @@ -43,7 +43,8 @@ "metaData": { } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/max-deals-test.json b/adapters/adnuntius/adnuntiustest/supplemental/max-deals-test.json index 1d4c5bf0747..7f480d8cd08 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/max-deals-test.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/max-deals-test.json @@ -44,7 +44,8 @@ ], "context": "prebid.org", "metaData": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/send-header-information.json b/adapters/adnuntius/adnuntiustest/supplemental/send-header-information.json index bcfecfa8e98..8d2b60da238 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/send-header-information.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/send-header-information.json @@ -63,7 +63,8 @@ "usi": "1kjh3429kjh295jkl" }, "context": "unknown" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/site-ext.json b/adapters/adnuntius/adnuntiustest/supplemental/site-ext.json index 1d1ef3d3586..8213ac1787f 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/site-ext.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/site-ext.json @@ -53,7 +53,8 @@ "usi": "1kjh3429kjh295jkl" }, "context": "unknown" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/size-check.json b/adapters/adnuntius/adnuntiustest/supplemental/size-check.json index c05428c123f..da17af1497d 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/size-check.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/size-check.json @@ -41,7 +41,8 @@ "usi": "1kjh3429kjh295jkl" }, "context": "unknown" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/status-400.json b/adapters/adnuntius/adnuntiustest/supplemental/status-400.json index f8407b1de5b..ca54a2057e8 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/status-400.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/status-400.json @@ -40,7 +40,8 @@ "metaData": { } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/test-networks.json b/adapters/adnuntius/adnuntiustest/supplemental/test-networks.json index 2e0f0afcbbd..6e608b28a39 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/test-networks.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/test-networks.json @@ -43,7 +43,8 @@ ], "context": "prebid.org", "metaData": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/user-ext.json b/adapters/adnuntius/adnuntiustest/supplemental/user-ext.json index 7d5f89377b7..0d852386b9e 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/user-ext.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/user-ext.json @@ -52,7 +52,8 @@ "usi": "userId" }, "context": "unknown" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adnuntius/adnuntiustest/supplemental/width-error.json b/adapters/adnuntius/adnuntiustest/supplemental/width-error.json index 4f109942b91..870cdbc3f87 100644 --- a/adapters/adnuntius/adnuntiustest/supplemental/width-error.json +++ b/adapters/adnuntius/adnuntiustest/supplemental/width-error.json @@ -43,7 +43,8 @@ "metaData": { } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adocean/adocean.go b/adapters/adocean/adocean.go index 778a6f60a6b..560df4893b9 100644 --- a/adapters/adocean/adocean.go +++ b/adapters/adocean/adocean.go @@ -57,6 +57,7 @@ type requestData struct { Url *url.URL Headers *http.Header SlaveSizes map[string]string + ImpIDs []string } // Builder builds a new instance of the AdOcean adapter for the given bidder with the given config. @@ -111,6 +112,7 @@ func (a *AdOceanAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *ada Method: "GET", Uri: requestData.Url.String(), Headers: *requestData.Headers, + ImpIDs: requestData.ImpIDs, }) } @@ -160,6 +162,7 @@ func (a *AdOceanAdapter) addNewBid( Url: url, Headers: a.formHeaders(request), SlaveSizes: slaveSizes, + ImpIDs: []string{imp.ID}, }) return requestsData, nil @@ -185,6 +188,7 @@ func addToExistingRequest(requestsData []*requestData, newParams *openrtb_ext.Ex newUrl.RawQuery = queryParams.Encode() if len(newUrl.String()) < maxUriLength { requestData.Url = &newUrl + requestData.ImpIDs = append(requestData.ImpIDs, auctionID) return true } diff --git a/adapters/adocean/adoceantest/exemplary/multi-banner-impression.json b/adapters/adocean/adoceantest/exemplary/multi-banner-impression.json index f70bc46749c..6eac26e0d03 100644 --- a/adapters/adocean/adoceantest/exemplary/multi-banner-impression.json +++ b/adapters/adocean/adoceantest/exemplary/multi-banner-impression.json @@ -72,7 +72,8 @@ }, "httpCalls": [{ "expectedRequest": { - "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aid=adoceanmyaowafpdwlrks%3Asecod-twelve&aosspsizes=myaowafpdwlrks~300x250-myaozpniqismex~300x250_320x600&devmake=&devmodel=&devos=&devosv=&dpidmd5=f2ba45ece57cff9477d5a8083b138c9g&gdpr=1&gdpr_consent=COwK6gaOwK6gaFmAAAENAPCAAAAAAAAAAAAAAAAAAAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0" + "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aid=adoceanmyaowafpdwlrks%3Asecod-twelve&aosspsizes=myaowafpdwlrks~300x250-myaozpniqismex~300x250_320x600&devmake=&devmodel=&devos=&devosv=&dpidmd5=f2ba45ece57cff9477d5a8083b138c9g&gdpr=1&gdpr_consent=COwK6gaOwK6gaFmAAAENAPCAAAAAAAAAAAAAAAAAAAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0", + "impIDs":["ao-test","secod-twelve"] }, "mockResponse": { "status": 200, diff --git a/adapters/adocean/adoceantest/exemplary/single-banner-impression.json b/adapters/adocean/adoceantest/exemplary/single-banner-impression.json index 19b9528152d..9f5fa2a3499 100644 --- a/adapters/adocean/adoceantest/exemplary/single-banner-impression.json +++ b/adapters/adocean/adoceantest/exemplary/single-banner-impression.json @@ -60,7 +60,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aosspsizes=myaozpniqismex~300x250&devmake=&devmodel=&devos=&devosv=&gdpr=1&gdpr_consent=COwK6gaOwK6gaFmAAAENAPCAAAAAAAAAAAAAAAAAAAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&ifa=f2ba45ece57cff9477d5a8083b138c9a&nc=1&nosecure=1&pbsrv_v=1.3.0" + "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aosspsizes=myaozpniqismex~300x250&devmake=&devmodel=&devos=&devosv=&gdpr=1&gdpr_consent=COwK6gaOwK6gaFmAAAENAPCAAAAAAAAAAAAAAAAAAAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&ifa=f2ba45ece57cff9477d5a8083b138c9a&nc=1&nosecure=1&pbsrv_v=1.3.0", + "impIDs":["ao-test"] }, "mockResponse": { "status": 200, diff --git a/adapters/adocean/adoceantest/supplemental/app.json b/adapters/adocean/adoceantest/supplemental/app.json index 994495d5291..b68798d362c 100644 --- a/adapters/adocean/adoceantest/supplemental/app.json +++ b/adapters/adocean/adoceantest/supplemental/app.json @@ -54,7 +54,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aosspsizes=myaozpniqismex~300x250&app=1&appbundle=12345&appdomain=example.com&appname=Weather+App&devmake=&devmodel=&devos=iOS&devosv=&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&ifa=f2ba45ece57cff9477d5a8083b138c9a&nc=1&nosecure=1&pbsrv_v=1.3.0" + "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aosspsizes=myaozpniqismex~300x250&app=1&appbundle=12345&appdomain=example.com&appname=Weather+App&devmake=&devmodel=&devos=iOS&devosv=&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&ifa=f2ba45ece57cff9477d5a8083b138c9a&nc=1&nosecure=1&pbsrv_v=1.3.0", + "impIDs":["ao-test"] }, "mockResponse": { "status": 200, diff --git a/adapters/adocean/adoceantest/supplemental/bad-response.json b/adapters/adocean/adoceantest/supplemental/bad-response.json index 43e62d6f794..9bf3ab16069 100644 --- a/adapters/adocean/adoceantest/supplemental/bad-response.json +++ b/adapters/adocean/adoceantest/supplemental/bad-response.json @@ -49,7 +49,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aosspsizes=myaozpniqismex~300x250&devmake=&devmodel=&devos=&devosv=&dpidmd5=&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0" + "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aosspsizes=myaozpniqismex~300x250&devmake=&devmodel=&devos=&devosv=&dpidmd5=&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0", + "impIDs":["ao-test"] }, "mockResponse": { "status": 200, diff --git a/adapters/adocean/adoceantest/supplemental/encode-error.json b/adapters/adocean/adoceantest/supplemental/encode-error.json index 98b977fd22b..32a0565da26 100644 --- a/adapters/adocean/adoceantest/supplemental/encode-error.json +++ b/adapters/adocean/adoceantest/supplemental/encode-error.json @@ -49,7 +49,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aosspsizes=myaozpniqismex~300x250&devmake=&devmodel=&devos=&devosv=&dpidmd5=&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0" + "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aosspsizes=myaozpniqismex~300x250&devmake=&devmodel=&devos=&devosv=&dpidmd5=&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0", + "impIDs":["ao-test"] }, "mockResponse": { "status": 200, diff --git a/adapters/adocean/adoceantest/supplemental/network-error.json b/adapters/adocean/adoceantest/supplemental/network-error.json index c18ddf16bfc..5910a5626b6 100644 --- a/adapters/adocean/adoceantest/supplemental/network-error.json +++ b/adapters/adocean/adoceantest/supplemental/network-error.json @@ -49,7 +49,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aosspsizes=myaozpniqismex~300x250&devmake=&devmodel=&devos=&devosv=&dpidmd5=&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0" + "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aosspsizes=myaozpniqismex~300x250&devmake=&devmodel=&devos=&devosv=&dpidmd5=&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0", + "impIDs":["ao-test"] }, "mockResponse": { "status": 500, diff --git a/adapters/adocean/adoceantest/supplemental/no-bid.json b/adapters/adocean/adoceantest/supplemental/no-bid.json index caf2cc9e3b5..a2c9b9c7ef9 100644 --- a/adapters/adocean/adoceantest/supplemental/no-bid.json +++ b/adapters/adocean/adoceantest/supplemental/no-bid.json @@ -83,7 +83,8 @@ }, "httpCalls": [{ "expectedRequest": { - "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aid=adoceanmyaowafpdwlrks%3Aao-test-two&aosspsizes=myaowafpdwlrks~300x250-myaozpniqismex~300x250&devmake=&devmodel=&devos=&devosv=&dpidmd5=&gdpr=1&gdpr_consent=COwK6gaOwK6gaFmAAAENAPCAAAAAAAAAAAAAAAAAAAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0" + "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aid=adoceanmyaowafpdwlrks%3Aao-test-two&aosspsizes=myaowafpdwlrks~300x250-myaozpniqismex~300x250&devmake=&devmodel=&devos=&devosv=&dpidmd5=&gdpr=1&gdpr_consent=COwK6gaOwK6gaFmAAAENAPCAAAAAAAAAAAAAAAAAAAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0", + "impIDs":["ao-test","ao-test-two"] }, "mockResponse": { "status": 200, @@ -108,7 +109,8 @@ } }, { "expectedRequest": { - "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaowafpdwlrks%3Aao-test-three&aosspsizes=myaowafpdwlrks~300x250&devmake=&devmodel=&devos=&devosv=&dpidmd5=&gdpr=1&gdpr_consent=COwK6gaOwK6gaFmAAAENAPCAAAAAAAAAAAAAAAAAAAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0" + "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaowafpdwlrks%3Aao-test-three&aosspsizes=myaowafpdwlrks~300x250&devmake=&devmodel=&devos=&devosv=&dpidmd5=&gdpr=1&gdpr_consent=COwK6gaOwK6gaFmAAAENAPCAAAAAAAAAAAAAAAAAAAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0", + "impIDs":["ao-test-three"] }, "mockResponse": { "status": 200, diff --git a/adapters/adocean/adoceantest/supplemental/no-sizes.json b/adapters/adocean/adoceantest/supplemental/no-sizes.json index 465698fdac4..c469f5e095d 100644 --- a/adapters/adocean/adoceantest/supplemental/no-sizes.json +++ b/adapters/adocean/adoceantest/supplemental/no-sizes.json @@ -72,7 +72,8 @@ }, "httpCalls": [{ "expectedRequest": { - "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aid=adoceanmyaowafpdwlrks%3Aao-test-two&devmake=&devmodel=&devos=&devosv=&dpidmd5=&gdpr=1&gdpr_consent=COwK6gaOwK6gaFmAAAENAPCAAAAAAAAAAAAAAAAAAAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0" + "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aid=adoceanmyaowafpdwlrks%3Aao-test-two&devmake=&devmodel=&devos=&devosv=&dpidmd5=&gdpr=1&gdpr_consent=COwK6gaOwK6gaFmAAAENAPCAAAAAAAAAAAAAAAAAAAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0", + "impIDs":["ao-test","ao-test-two"] }, "mockResponse": { "status": 200, @@ -106,7 +107,8 @@ } }, { "expectedRequest": { - "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaowafpdwlrks%3Aao-test-three&aosspsizes=myaowafpdwlrks~300x250&devmake=&devmodel=&devos=&devosv=&dpidmd5=&gdpr=1&gdpr_consent=COwK6gaOwK6gaFmAAAENAPCAAAAAAAAAAAAAAAAAAAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0" + "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaowafpdwlrks%3Aao-test-three&aosspsizes=myaowafpdwlrks~300x250&devmake=&devmodel=&devos=&devosv=&dpidmd5=&gdpr=1&gdpr_consent=COwK6gaOwK6gaFmAAAENAPCAAAAAAAAAAAAAAAAAAAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0", + "impIDs":["ao-test-three"] }, "mockResponse": { "status": 200, diff --git a/adapters/adocean/adoceantest/supplemental/requests-merge.json b/adapters/adocean/adoceantest/supplemental/requests-merge.json index 9021bf66f16..240c74bc776 100644 --- a/adapters/adocean/adoceantest/supplemental/requests-merge.json +++ b/adapters/adocean/adoceantest/supplemental/requests-merge.json @@ -83,7 +83,8 @@ }, "httpCalls": [{ "expectedRequest": { - "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aid=adoceanmyaowafpdwlrks%3Aao-test-two&aosspsizes=myaowafpdwlrks~300x250-myaozpniqismex~300x250&devmake=&devmodel=&devos=&devosv=&dpidmd5=&gdpr=1&gdpr_consent=COwK6gaOwK6gaFmAAAENAPCAAAAAAAAAAAAAAAAAAAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0" + "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaozpniqismex%3Aao-test&aid=adoceanmyaowafpdwlrks%3Aao-test-two&aosspsizes=myaowafpdwlrks~300x250-myaozpniqismex~300x250&devmake=&devmodel=&devos=&devosv=&dpidmd5=&gdpr=1&gdpr_consent=COwK6gaOwK6gaFmAAAENAPCAAAAAAAAAAAAAAAAAAAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0", + "impIDs":["ao-test","ao-test-two"] }, "mockResponse": { "status": 200, @@ -117,7 +118,8 @@ } }, { "expectedRequest": { - "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaowafpdwlrks%3Aao-test-three&aosspsizes=myaowafpdwlrks~300x250&devmake=&devmodel=&devos=&devosv=&dpidmd5=&gdpr=1&gdpr_consent=COwK6gaOwK6gaFmAAAENAPCAAAAAAAAAAAAAAAAAAAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0" + "uri": "https://myao.adocean.pl/_10000000/ad.json?aid=adoceanmyaowafpdwlrks%3Aao-test-three&aosspsizes=myaowafpdwlrks~300x250&devmake=&devmodel=&devos=&devosv=&dpidmd5=&gdpr=1&gdpr_consent=COwK6gaOwK6gaFmAAAENAPCAAAAAAAAAAAAAAAAAAAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&id=tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7&nc=1&nosecure=1&pbsrv_v=1.3.0", + "impIDs":["ao-test-three"] }, "mockResponse": { "status": 200, diff --git a/adapters/adoppler/adoppler.go b/adapters/adoppler/adoppler.go index 1af0b72017d..ff588991493 100644 --- a/adapters/adoppler/adoppler.go +++ b/adapters/adoppler/adoppler.go @@ -91,6 +91,7 @@ func (ads *AdopplerAdapter) MakeRequests( Uri: uri, Body: body, Headers: bidHeaders, + ImpIDs: openrtb_ext.GetImpIDs(r.Imp), } datas = append(datas, data) } diff --git a/adapters/adoppler/adopplertest/exemplary/custom-client.json b/adapters/adoppler/adopplertest/exemplary/custom-client.json index 6bb32f71546..fe92c363903 100644 --- a/adapters/adoppler/adopplertest/exemplary/custom-client.json +++ b/adapters/adoppler/adopplertest/exemplary/custom-client.json @@ -38,7 +38,8 @@ } } ] - } + }, + "impIDs":["imp1"] }, "mockResponse":{ "status":200, diff --git a/adapters/adoppler/adopplertest/exemplary/default-client.json b/adapters/adoppler/adopplertest/exemplary/default-client.json index 25fb71970e0..dd53208f7d8 100644 --- a/adapters/adoppler/adopplertest/exemplary/default-client.json +++ b/adapters/adoppler/adopplertest/exemplary/default-client.json @@ -36,7 +36,8 @@ } } ] - } + }, + "impIDs":["imp1"] }, "mockResponse":{ "status":200, diff --git a/adapters/adoppler/adopplertest/exemplary/multiimp.json b/adapters/adoppler/adopplertest/exemplary/multiimp.json index 6eebbe43071..bdbef5a4af0 100644 --- a/adapters/adoppler/adopplertest/exemplary/multiimp.json +++ b/adapters/adoppler/adopplertest/exemplary/multiimp.json @@ -61,7 +61,8 @@ } } ] - } + }, + "impIDs":["imp1"] }, "mockResponse":{ "status":200, @@ -104,7 +105,8 @@ } } ] - } + }, + "impIDs":["imp2"] }, "mockResponse":{ "status":200, @@ -155,7 +157,8 @@ } } ] - } + }, + "impIDs":["imp3"] }, "mockResponse":{ "status":204, diff --git a/adapters/adoppler/adopplertest/supplemental/bad-request.json b/adapters/adoppler/adopplertest/supplemental/bad-request.json index ae515e01e18..c2e38460202 100644 --- a/adapters/adoppler/adopplertest/supplemental/bad-request.json +++ b/adapters/adoppler/adopplertest/supplemental/bad-request.json @@ -36,7 +36,8 @@ } } ] - } + }, + "impIDs":["imp1"] }, "mockResponse":{ "status":400, diff --git a/adapters/adoppler/adopplertest/supplemental/duplicate-imp.json b/adapters/adoppler/adopplertest/supplemental/duplicate-imp.json index d6f17a6bb2c..cc24ae03a2f 100644 --- a/adapters/adoppler/adopplertest/supplemental/duplicate-imp.json +++ b/adapters/adoppler/adopplertest/supplemental/duplicate-imp.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["imp1"] }, "mockResponse":{ "status":200, @@ -89,7 +90,8 @@ } } ] - } + }, + "impIDs":["imp1"] }, "mockResponse":{ "status":200, diff --git a/adapters/adoppler/adopplertest/supplemental/invalid-impid.json b/adapters/adoppler/adopplertest/supplemental/invalid-impid.json index b5f062ac94a..e94a0e0c406 100644 --- a/adapters/adoppler/adopplertest/supplemental/invalid-impid.json +++ b/adapters/adoppler/adopplertest/supplemental/invalid-impid.json @@ -36,7 +36,8 @@ } } ] - } + }, + "impIDs":["imp1"] }, "mockResponse":{ "status":200, diff --git a/adapters/adoppler/adopplertest/supplemental/invalid-response.json b/adapters/adoppler/adopplertest/supplemental/invalid-response.json index 83aa35f0ec1..14853d68bdc 100644 --- a/adapters/adoppler/adopplertest/supplemental/invalid-response.json +++ b/adapters/adoppler/adopplertest/supplemental/invalid-response.json @@ -36,7 +36,8 @@ } } ] - } + }, + "impIDs":["imp1"] }, "mockResponse":{ "status":200, diff --git a/adapters/adoppler/adopplertest/supplemental/invalid-video-ext.json b/adapters/adoppler/adopplertest/supplemental/invalid-video-ext.json index c08cdca5cee..84af94e2e3f 100644 --- a/adapters/adoppler/adopplertest/supplemental/invalid-video-ext.json +++ b/adapters/adoppler/adopplertest/supplemental/invalid-video-ext.json @@ -54,7 +54,8 @@ } } ] - } + }, + "impIDs":["imp1"] }, "mockResponse":{ "status":200, @@ -104,7 +105,8 @@ } } ] - } + }, + "impIDs":["imp2"] }, "mockResponse":{ "status":200, diff --git a/adapters/adoppler/adopplertest/supplemental/no-bid.json b/adapters/adoppler/adopplertest/supplemental/no-bid.json index 08a29481350..9135b4c5f2f 100644 --- a/adapters/adoppler/adopplertest/supplemental/no-bid.json +++ b/adapters/adoppler/adopplertest/supplemental/no-bid.json @@ -36,7 +36,8 @@ } } ] - } + }, + "impIDs":["imp1"] }, "mockResponse":{ "status":204, diff --git a/adapters/adoppler/adopplertest/supplemental/server-error.json b/adapters/adoppler/adopplertest/supplemental/server-error.json index 604b83e74a6..dcd45e3718d 100644 --- a/adapters/adoppler/adopplertest/supplemental/server-error.json +++ b/adapters/adoppler/adopplertest/supplemental/server-error.json @@ -36,7 +36,8 @@ } } ] - } + }, + "impIDs":["imp1"] }, "mockResponse":{ "status":500, diff --git a/adapters/adot/adot.go b/adapters/adot/adot.go index a0274c29ddf..f86281bf79e 100644 --- a/adapters/adot/adot.go +++ b/adapters/adot/adot.go @@ -60,6 +60,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, nil } diff --git a/adapters/adot/adottest/exemplary/simple-banner.json b/adapters/adot/adottest/exemplary/simple-banner.json index 185addfcaef..83b4b9fcd68 100644 --- a/adapters/adot/adottest/exemplary/simple-banner.json +++ b/adapters/adot/adottest/exemplary/simple-banner.json @@ -43,7 +43,8 @@ } } ] - } + }, + "impIDs":["test-imp-banner-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adot/adottest/exemplary/simple-interstitial.json b/adapters/adot/adottest/exemplary/simple-interstitial.json index 09878984e76..0b43c7a46d7 100644 --- a/adapters/adot/adottest/exemplary/simple-interstitial.json +++ b/adapters/adot/adottest/exemplary/simple-interstitial.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-inter-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adot/adottest/exemplary/simple-native.json b/adapters/adot/adottest/exemplary/simple-native.json index 9ad26b260ac..d1fff99b08d 100644 --- a/adapters/adot/adottest/exemplary/simple-native.json +++ b/adapters/adot/adottest/exemplary/simple-native.json @@ -32,7 +32,8 @@ } } ] - } + }, + "impIDs":["test-imp-native-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adot/adottest/exemplary/simple-video.json b/adapters/adot/adottest/exemplary/simple-video.json index f4620a9e2cf..5fabaf8b7ac 100644 --- a/adapters/adot/adottest/exemplary/simple-video.json +++ b/adapters/adot/adottest/exemplary/simple-video.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adot/adottest/supplemental/ext-bidder-empty.json b/adapters/adot/adottest/supplemental/ext-bidder-empty.json index b3fc956f3da..69ad90179f8 100644 --- a/adapters/adot/adottest/supplemental/ext-bidder-empty.json +++ b/adapters/adot/adottest/supplemental/ext-bidder-empty.json @@ -47,7 +47,8 @@ } } ] - } + }, + "impIDs":["test-imp-publishPath-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adot/adottest/supplemental/ext-bidder-publisher-path.json b/adapters/adot/adottest/supplemental/ext-bidder-publisher-path.json index bf69d12a8d9..312eb5f4732 100644 --- a/adapters/adot/adottest/supplemental/ext-bidder-publisher-path.json +++ b/adapters/adot/adottest/supplemental/ext-bidder-publisher-path.json @@ -50,7 +50,8 @@ } } ] - } + }, + "impIDs":["test-imp-publishPath-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adot/adottest/supplemental/simple-audio.json b/adapters/adot/adottest/supplemental/simple-audio.json index 38be60ed893..e6d313a3a41 100644 --- a/adapters/adot/adottest/supplemental/simple-audio.json +++ b/adapters/adot/adottest/supplemental/simple-audio.json @@ -34,7 +34,8 @@ } } ] - } + }, + "impIDs":["unsupported-audio-imp"] }, "mockResponse": { "status": 200, diff --git a/adapters/adot/adottest/supplemental/simple-parallax.json b/adapters/adot/adottest/supplemental/simple-parallax.json index 4ee2ebc22d0..a9356e3f066 100644 --- a/adapters/adot/adottest/supplemental/simple-parallax.json +++ b/adapters/adot/adottest/supplemental/simple-parallax.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["test-imp-parallax-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adot/adottest/supplemental/status_204.json b/adapters/adot/adottest/supplemental/status_204.json index 44a895b5c24..898d82f38b5 100644 --- a/adapters/adot/adottest/supplemental/status_204.json +++ b/adapters/adot/adottest/supplemental/status_204.json @@ -26,7 +26,8 @@ } } ] - } + }, + "impIDs":["test-imp-banner-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/adot/adottest/supplemental/status_400.json b/adapters/adot/adottest/supplemental/status_400.json index 22328fd9908..b39eb6b4325 100644 --- a/adapters/adot/adottest/supplemental/status_400.json +++ b/adapters/adot/adottest/supplemental/status_400.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-imp-banner-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/adot/adottest/supplemental/status_500.json b/adapters/adot/adottest/supplemental/status_500.json index f749ecc8a69..dd2873e299e 100644 --- a/adapters/adot/adottest/supplemental/status_500.json +++ b/adapters/adot/adottest/supplemental/status_500.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-imp-banner-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/adot/adottest/supplemental/unmarshal_error.json b/adapters/adot/adottest/supplemental/unmarshal_error.json index 557fb16cb43..c9c6db88ea7 100644 --- a/adapters/adot/adottest/supplemental/unmarshal_error.json +++ b/adapters/adot/adottest/supplemental/unmarshal_error.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-imp-banner-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adpone/adpone.go b/adapters/adpone/adpone.go index f5c9121e86d..c4965f927a9 100644 --- a/adapters/adpone/adpone.go +++ b/adapters/adpone/adpone.go @@ -65,6 +65,7 @@ func (adapter *adponeAdapter) MakeRequests( Uri: adapter.endpoint, Body: openRTBRequestJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), } requestsToBidder = append(requestsToBidder, requestToBidder) diff --git a/adapters/adpone/adponetest/exemplary/simple-banner.json b/adapters/adpone/adponetest/exemplary/simple-banner.json index c481829b898..b6608558a40 100644 --- a/adapters/adpone/adponetest/exemplary/simple-banner.json +++ b/adapters/adpone/adponetest/exemplary/simple-banner.json @@ -42,7 +42,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adpone/adponetest/supplemental/bad_response.json b/adapters/adpone/adponetest/supplemental/bad_response.json index 68da7064b97..38714ea78b4 100644 --- a/adapters/adpone/adponetest/supplemental/bad_response.json +++ b/adapters/adpone/adponetest/supplemental/bad_response.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adpone/adponetest/supplemental/status_204.json b/adapters/adpone/adponetest/supplemental/status_204.json index 0702c103332..950e5c0d5fe 100644 --- a/adapters/adpone/adponetest/supplemental/status_204.json +++ b/adapters/adpone/adponetest/supplemental/status_204.json @@ -43,7 +43,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/adpone/adponetest/supplemental/status_400.json b/adapters/adpone/adponetest/supplemental/status_400.json index 3d3914bad16..30f9f458698 100644 --- a/adapters/adpone/adponetest/supplemental/status_400.json +++ b/adapters/adpone/adponetest/supplemental/status_400.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/adpone/adponetest/supplemental/status_418.json b/adapters/adpone/adponetest/supplemental/status_418.json index cf14f728846..ad5245b2c4f 100644 --- a/adapters/adpone/adponetest/supplemental/status_418.json +++ b/adapters/adpone/adponetest/supplemental/status_418.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 418, diff --git a/adapters/adprime/adprime.go b/adapters/adprime/adprime.go index b53ab4aa7dc..2c6c319ef05 100644 --- a/adapters/adprime/adprime.go +++ b/adapters/adprime/adprime.go @@ -115,6 +115,7 @@ func (a *AdprimeAdapter) makeRequest(request *openrtb2.BidRequest) (*adapters.Re Uri: a.URI, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, errs } diff --git a/adapters/adprime/adprimetest/exemplary/simple-banner.json b/adapters/adprime/adprimetest/exemplary/simple-banner.json index 88ed1770d14..20351d8cf0c 100644 --- a/adapters/adprime/adprimetest/exemplary/simple-banner.json +++ b/adapters/adprime/adprimetest/exemplary/simple-banner.json @@ -72,7 +72,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adprime/adprimetest/exemplary/simple-native.json b/adapters/adprime/adprimetest/exemplary/simple-native.json index 4ec94edeb50..41c187b361c 100644 --- a/adapters/adprime/adprimetest/exemplary/simple-native.json +++ b/adapters/adprime/adprimetest/exemplary/simple-native.json @@ -56,7 +56,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adprime/adprimetest/exemplary/simple-video.json b/adapters/adprime/adprimetest/exemplary/simple-video.json index 722cfd29612..c7f3aacf084 100644 --- a/adapters/adprime/adprimetest/exemplary/simple-video.json +++ b/adapters/adprime/adprimetest/exemplary/simple-video.json @@ -70,7 +70,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adprime/adprimetest/exemplary/simple-web-banner.json b/adapters/adprime/adprimetest/exemplary/simple-web-banner.json index db518934055..0af088bbdad 100644 --- a/adapters/adprime/adprimetest/exemplary/simple-web-banner.json +++ b/adapters/adprime/adprimetest/exemplary/simple-web-banner.json @@ -72,7 +72,8 @@ "ip": "123.123.123.123", "ua": "Ubuntu" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adprime/adprimetest/exemplary/withAudiences.json b/adapters/adprime/adprimetest/exemplary/withAudiences.json index 40a0304656b..0a8ee04ddc8 100644 --- a/adapters/adprime/adprimetest/exemplary/withAudiences.json +++ b/adapters/adprime/adprimetest/exemplary/withAudiences.json @@ -76,7 +76,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adprime/adprimetest/exemplary/withKeywords.json b/adapters/adprime/adprimetest/exemplary/withKeywords.json index b7018097902..b18e3e2399f 100644 --- a/adapters/adprime/adprimetest/exemplary/withKeywords.json +++ b/adapters/adprime/adprimetest/exemplary/withKeywords.json @@ -74,7 +74,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adprime/adprimetest/supplemental/bad_media_type.json b/adapters/adprime/adprimetest/supplemental/bad_media_type.json index 3dce9019174..e66fb9965d6 100644 --- a/adapters/adprime/adprimetest/supplemental/bad_media_type.json +++ b/adapters/adprime/adprimetest/supplemental/bad_media_type.json @@ -48,7 +48,8 @@ "ip": "123.123.123.123", "ua": "Ubuntu" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adprime/adprimetest/supplemental/bad_response.json b/adapters/adprime/adprimetest/supplemental/bad_response.json index acec885f98a..f28c8864d8e 100644 --- a/adapters/adprime/adprimetest/supplemental/bad_response.json +++ b/adapters/adprime/adprimetest/supplemental/bad_response.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adprime/adprimetest/supplemental/status-204.json b/adapters/adprime/adprimetest/supplemental/status-204.json index c0c2f346fb7..ca1a52b1031 100644 --- a/adapters/adprime/adprimetest/supplemental/status-204.json +++ b/adapters/adprime/adprimetest/supplemental/status-204.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/adprime/adprimetest/supplemental/status-400.json b/adapters/adprime/adprimetest/supplemental/status-400.json index ab1c38a0346..78e76ea9919 100644 --- a/adapters/adprime/adprimetest/supplemental/status-400.json +++ b/adapters/adprime/adprimetest/supplemental/status-400.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/adprime/adprimetest/supplemental/status-404.json b/adapters/adprime/adprimetest/supplemental/status-404.json index 6cd718548d3..fe3a247a63b 100644 --- a/adapters/adprime/adprimetest/supplemental/status-404.json +++ b/adapters/adprime/adprimetest/supplemental/status-404.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/adquery/adquery.go b/adapters/adquery/adquery.go index e14c52f183d..f615c6ad27d 100644 --- a/adapters/adquery/adquery.go +++ b/adapters/adquery/adquery.go @@ -55,6 +55,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, _ *adapters.ExtraRe Uri: a.endpoint, Body: requestJSON, Headers: headers, + ImpIDs: []string{imp.ID}, } result = append(result, data) } diff --git a/adapters/adquery/adquerytest/exemplary/many-imps.json b/adapters/adquery/adquerytest/exemplary/many-imps.json index b3f5f8c9a78..03747b5dd09 100644 --- a/adapters/adquery/adquerytest/exemplary/many-imps.json +++ b/adapters/adquery/adquerytest/exemplary/many-imps.json @@ -83,7 +83,8 @@ "sizes": "320x100,300x250", "type": "banner", "v": "server" - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, @@ -153,7 +154,8 @@ "sizes": "300x250", "type": "banner", "v": "server" - } + }, + "impIDs":["2"] }, "mockResponse": { "status": 200, diff --git a/adapters/adquery/adquerytest/exemplary/no-currency.json b/adapters/adquery/adquerytest/exemplary/no-currency.json index 301eec783fa..a40d032eaf8 100644 --- a/adapters/adquery/adquerytest/exemplary/no-currency.json +++ b/adapters/adquery/adquerytest/exemplary/no-currency.json @@ -64,7 +64,8 @@ "sizes": "320x100,300x250", "type": "banner", "v": "server" - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/adquery/adquerytest/exemplary/ok.json b/adapters/adquery/adquerytest/exemplary/ok.json index 573fb2336e6..49ab3253842 100644 --- a/adapters/adquery/adquerytest/exemplary/ok.json +++ b/adapters/adquery/adquerytest/exemplary/ok.json @@ -65,7 +65,8 @@ "sizes": "320x100,300x250", "type": "banner", "v": "server" - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/adquery/adquerytest/exemplary/single-imp-banner-format.json b/adapters/adquery/adquerytest/exemplary/single-imp-banner-format.json index 5b2a54a70d3..538284c6967 100644 --- a/adapters/adquery/adquerytest/exemplary/single-imp-banner-format.json +++ b/adapters/adquery/adquerytest/exemplary/single-imp-banner-format.json @@ -56,7 +56,8 @@ "sizes": "320x100", "type": "banner", "v": "server" - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/adquery/adquerytest/supplemental/data-null.json b/adapters/adquery/adquerytest/supplemental/data-null.json index 8bbe8dc501f..e61f997c0a2 100644 --- a/adapters/adquery/adquerytest/supplemental/data-null.json +++ b/adapters/adquery/adquerytest/supplemental/data-null.json @@ -56,7 +56,8 @@ "sizes": "320x100,300x250", "type": "banner", "v": "server" - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/adquery/adquerytest/supplemental/invalid-numerical-values.json b/adapters/adquery/adquerytest/supplemental/invalid-numerical-values.json index a9664e5232e..66454799ff8 100644 --- a/adapters/adquery/adquerytest/supplemental/invalid-numerical-values.json +++ b/adapters/adquery/adquerytest/supplemental/invalid-numerical-values.json @@ -56,7 +56,8 @@ "sizes": "320x100,300x250", "type": "banner", "v": "server" - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/adquery/adquerytest/supplemental/malformed-resp.json b/adapters/adquery/adquerytest/supplemental/malformed-resp.json index 8ab1763c0be..c65c32cb4fb 100644 --- a/adapters/adquery/adquerytest/supplemental/malformed-resp.json +++ b/adapters/adquery/adquerytest/supplemental/malformed-resp.json @@ -56,7 +56,8 @@ "sizes": "320x100,300x250", "type": "banner", "v": "server" - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/adquery/adquerytest/supplemental/mediatype-unknown.json b/adapters/adquery/adquerytest/supplemental/mediatype-unknown.json index 47b05d836f9..5e81bd87b01 100644 --- a/adapters/adquery/adquerytest/supplemental/mediatype-unknown.json +++ b/adapters/adquery/adquerytest/supplemental/mediatype-unknown.json @@ -56,7 +56,8 @@ "sizes": "320x100,300x250", "type": "banner", "v": "server" - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/adquery/adquerytest/supplemental/mediatype-video.json b/adapters/adquery/adquerytest/supplemental/mediatype-video.json index a6d19e7fc5a..40e7ed5baed 100644 --- a/adapters/adquery/adquerytest/supplemental/mediatype-video.json +++ b/adapters/adquery/adquerytest/supplemental/mediatype-video.json @@ -56,7 +56,8 @@ "sizes": "320x100,300x250", "type": "banner", "v": "server" - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/adquery/adquerytest/supplemental/no-device.json b/adapters/adquery/adquerytest/supplemental/no-device.json index 9876cd57c88..d368072ff8f 100644 --- a/adapters/adquery/adquerytest/supplemental/no-device.json +++ b/adapters/adquery/adquerytest/supplemental/no-device.json @@ -59,7 +59,8 @@ "sizes": "320x100,300x250", "type": "banner", "v": "server" - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/adquery/adquerytest/supplemental/no-imp-banner-measures.json b/adapters/adquery/adquerytest/supplemental/no-imp-banner-measures.json index c745c9a7c30..58219cc9419 100644 --- a/adapters/adquery/adquerytest/supplemental/no-imp-banner-measures.json +++ b/adapters/adquery/adquerytest/supplemental/no-imp-banner-measures.json @@ -45,7 +45,8 @@ "sizes": "", "type": "banner", "v": "server" - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/adquery/adquerytest/supplemental/no-imp-banner.json b/adapters/adquery/adquerytest/supplemental/no-imp-banner.json index f7de622587f..dcdfd9e9351 100644 --- a/adapters/adquery/adquerytest/supplemental/no-imp-banner.json +++ b/adapters/adquery/adquerytest/supplemental/no-imp-banner.json @@ -44,7 +44,8 @@ "sizes": "", "type": "banner", "v": "server" - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/adquery/adquerytest/supplemental/no-site.json b/adapters/adquery/adquerytest/supplemental/no-site.json index 20305f52b11..500dc87b356 100644 --- a/adapters/adquery/adquerytest/supplemental/no-site.json +++ b/adapters/adquery/adquerytest/supplemental/no-site.json @@ -61,7 +61,8 @@ "sizes": "320x100,300x250", "type": "banner", "v": "server" - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/adquery/adquerytest/supplemental/resp-bad-request.json b/adapters/adquery/adquerytest/supplemental/resp-bad-request.json index f5e807ebad5..92a3748e81a 100644 --- a/adapters/adquery/adquerytest/supplemental/resp-bad-request.json +++ b/adapters/adquery/adquerytest/supplemental/resp-bad-request.json @@ -56,7 +56,8 @@ "sizes": "320x100,300x250", "type": "banner", "v": "server" - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 400, diff --git a/adapters/adquery/adquerytest/supplemental/resp-no-content.json b/adapters/adquery/adquerytest/supplemental/resp-no-content.json index 1ce24c17081..f79df18b450 100644 --- a/adapters/adquery/adquerytest/supplemental/resp-no-content.json +++ b/adapters/adquery/adquerytest/supplemental/resp-no-content.json @@ -56,7 +56,8 @@ "sizes": "320x100,300x250", "type": "banner", "v": "server" - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 204, diff --git a/adapters/adquery/adquerytest/supplemental/resp-server-error.json b/adapters/adquery/adquerytest/supplemental/resp-server-error.json index 2e8e42ba927..fc0cbd8c9ab 100644 --- a/adapters/adquery/adquerytest/supplemental/resp-server-error.json +++ b/adapters/adquery/adquerytest/supplemental/resp-server-error.json @@ -56,7 +56,8 @@ "sizes": "320x100,300x250", "type": "banner", "v": "server" - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 500, diff --git a/adapters/adrino/adrino.go b/adapters/adrino/adrino.go index 4510285adc0..830d7d3aca3 100644 --- a/adapters/adrino/adrino.go +++ b/adapters/adrino/adrino.go @@ -33,6 +33,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: a.endpoint, Body: reqJson, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errs } diff --git a/adapters/adrino/adrinotest/exemplary/no-bid.json b/adapters/adrino/adrinotest/exemplary/no-bid.json index 66b64e14690..54189a50d87 100644 --- a/adapters/adrino/adrinotest/exemplary/no-bid.json +++ b/adapters/adrino/adrinotest/exemplary/no-bid.json @@ -61,7 +61,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/adrino/adrinotest/exemplary/single-native.json b/adapters/adrino/adrinotest/exemplary/single-native.json index 41e4b5ef3ef..25fb1c9d3fb 100644 --- a/adapters/adrino/adrinotest/exemplary/single-native.json +++ b/adapters/adrino/adrinotest/exemplary/single-native.json @@ -61,7 +61,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adrino/adrinotest/supplemental/unknown-hash.json b/adapters/adrino/adrinotest/supplemental/unknown-hash.json index e678b5267b1..b60f082baaf 100644 --- a/adapters/adrino/adrinotest/supplemental/unknown-hash.json +++ b/adapters/adrino/adrinotest/supplemental/unknown-hash.json @@ -61,7 +61,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/adsinteractive/adsinteractive.go b/adapters/adsinteractive/adsinteractive.go index b7dc9fd041f..c1b521be9f2 100644 --- a/adapters/adsinteractive/adsinteractive.go +++ b/adapters/adsinteractive/adsinteractive.go @@ -34,6 +34,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: a.endpoint, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/adsinteractive/adsinteractivetest/exemplary/banner.json b/adapters/adsinteractive/adsinteractivetest/exemplary/banner.json index 53b96fbe0f4..bc4d4c70913 100644 --- a/adapters/adsinteractive/adsinteractivetest/exemplary/banner.json +++ b/adapters/adsinteractive/adsinteractivetest/exemplary/banner.json @@ -35,7 +35,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adsinteractive/adsinteractivetest/supplemental/bad-request-400.json b/adapters/adsinteractive/adsinteractivetest/supplemental/bad-request-400.json index 695f2fb0c5e..d584c81144c 100644 --- a/adapters/adsinteractive/adsinteractivetest/supplemental/bad-request-400.json +++ b/adapters/adsinteractive/adsinteractivetest/supplemental/bad-request-400.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/adsinteractive/adsinteractivetest/supplemental/bad-response.json b/adapters/adsinteractive/adsinteractivetest/supplemental/bad-response.json index 98acce17a91..1539e000094 100644 --- a/adapters/adsinteractive/adsinteractivetest/supplemental/bad-response.json +++ b/adapters/adsinteractive/adsinteractivetest/supplemental/bad-response.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adsinteractive/adsinteractivetest/supplemental/no-content-204.json b/adapters/adsinteractive/adsinteractivetest/supplemental/no-content-204.json index 9b24dca0308..ee5adb91939 100644 --- a/adapters/adsinteractive/adsinteractivetest/supplemental/no-content-204.json +++ b/adapters/adsinteractive/adsinteractivetest/supplemental/no-content-204.json @@ -43,7 +43,8 @@ } } ] - } + }, + "impIDs":["fake-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/adsinteractive/adsinteractivetest/supplemental/service-unavailable-503.json b/adapters/adsinteractive/adsinteractivetest/supplemental/service-unavailable-503.json index 42e259b8db8..2800076417f 100644 --- a/adapters/adsinteractive/adsinteractivetest/supplemental/service-unavailable-503.json +++ b/adapters/adsinteractive/adsinteractivetest/supplemental/service-unavailable-503.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 503, diff --git a/adapters/adtarget/adtarget.go b/adapters/adtarget/adtarget.go index 54f25205790..bb760574d93 100644 --- a/adapters/adtarget/adtarget.go +++ b/adapters/adtarget/adtarget.go @@ -74,6 +74,7 @@ func (a *AdtargetAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *ad Uri: a.endpoint + fmt.Sprintf("?aid=%d", sourceId), Body: body, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }) } diff --git a/adapters/adtarget/adtargettest/exemplary/media-type-mapping.json b/adapters/adtarget/adtargettest/exemplary/media-type-mapping.json index 518268d4fea..acc8c850931 100644 --- a/adapters/adtarget/adtargettest/exemplary/media-type-mapping.json +++ b/adapters/adtarget/adtargettest/exemplary/media-type-mapping.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adtarget/adtargettest/exemplary/simple-banner.json b/adapters/adtarget/adtargettest/exemplary/simple-banner.json index 0d925bacd9f..2745b5332b9 100644 --- a/adapters/adtarget/adtargettest/exemplary/simple-banner.json +++ b/adapters/adtarget/adtargettest/exemplary/simple-banner.json @@ -52,7 +52,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/adtarget/adtargettest/exemplary/simple-video.json b/adapters/adtarget/adtargettest/exemplary/simple-video.json index 5b47751749c..fdfef91de41 100644 --- a/adapters/adtarget/adtargettest/exemplary/simple-video.json +++ b/adapters/adtarget/adtargettest/exemplary/simple-video.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/adtarget/adtargettest/supplemental/explicit-dimensions.json b/adapters/adtarget/adtargettest/supplemental/explicit-dimensions.json index c33b1bb2daa..10496adaea0 100644 --- a/adapters/adtarget/adtargettest/supplemental/explicit-dimensions.json +++ b/adapters/adtarget/adtargettest/supplemental/explicit-dimensions.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/adtarget/adtargettest/supplemental/wrong-impression-mapping.json b/adapters/adtarget/adtargettest/supplemental/wrong-impression-mapping.json index 2aac06a9e68..da594aa74dd 100644 --- a/adapters/adtarget/adtargettest/supplemental/wrong-impression-mapping.json +++ b/adapters/adtarget/adtargettest/supplemental/wrong-impression-mapping.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adtelligent/adtelligent.go b/adapters/adtelligent/adtelligent.go index 45d4d291c4e..d466c3df191 100644 --- a/adapters/adtelligent/adtelligent.go +++ b/adapters/adtelligent/adtelligent.go @@ -74,6 +74,7 @@ func (a *AdtelligentAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo Uri: a.endpoint + fmt.Sprintf("?aid=%d", sourceId), Body: body, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }) } diff --git a/adapters/adtelligent/adtelligenttest/exemplary/media-type-mapping.json b/adapters/adtelligent/adtelligenttest/exemplary/media-type-mapping.json index 553ec61833b..cd64601911d 100644 --- a/adapters/adtelligent/adtelligenttest/exemplary/media-type-mapping.json +++ b/adapters/adtelligent/adtelligenttest/exemplary/media-type-mapping.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adtelligent/adtelligenttest/exemplary/simple-banner.json b/adapters/adtelligent/adtelligenttest/exemplary/simple-banner.json index 8c6fe3ade1b..dac9180251b 100644 --- a/adapters/adtelligent/adtelligenttest/exemplary/simple-banner.json +++ b/adapters/adtelligent/adtelligenttest/exemplary/simple-banner.json @@ -52,7 +52,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/adtelligent/adtelligenttest/exemplary/simple-video.json b/adapters/adtelligent/adtelligenttest/exemplary/simple-video.json index aabcf952f78..8288137b7fc 100644 --- a/adapters/adtelligent/adtelligenttest/exemplary/simple-video.json +++ b/adapters/adtelligent/adtelligenttest/exemplary/simple-video.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/adtelligent/adtelligenttest/supplemental/explicit-dimensions.json b/adapters/adtelligent/adtelligenttest/supplemental/explicit-dimensions.json index 7d6ce5b8084..d73d95d3d75 100644 --- a/adapters/adtelligent/adtelligenttest/supplemental/explicit-dimensions.json +++ b/adapters/adtelligent/adtelligenttest/supplemental/explicit-dimensions.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/adtelligent/adtelligenttest/supplemental/wrong-impression-mapping.json b/adapters/adtelligent/adtelligenttest/supplemental/wrong-impression-mapping.json index 894e9fbe04d..5d43a8683df 100644 --- a/adapters/adtelligent/adtelligenttest/supplemental/wrong-impression-mapping.json +++ b/adapters/adtelligent/adtelligenttest/supplemental/wrong-impression-mapping.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adtrgtme/adtrgtme.go b/adapters/adtrgtme/adtrgtme.go index e0a724146fa..f2fc09cb322 100644 --- a/adapters/adtrgtme/adtrgtme.go +++ b/adapters/adtrgtme/adtrgtme.go @@ -57,6 +57,7 @@ func (v *adapter) MakeRequests( Uri: v.buildRequestURI(siteID), Body: requestBody, Headers: makeRequestHeaders(openRTBRequest), + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), } requests = append(requests, requestData) diff --git a/adapters/adtrgtme/adtrgtmetest/exemplary/banner-app.json b/adapters/adtrgtme/adtrgtmetest/exemplary/banner-app.json index b0849093459..fac5251fbaf 100644 --- a/adapters/adtrgtme/adtrgtmetest/exemplary/banner-app.json +++ b/adapters/adtrgtme/adtrgtmetest/exemplary/banner-app.json @@ -136,7 +136,8 @@ "user": { "id": "super-user-id" } - } + }, + "impIDs":["super-bid-id"] }, "mockResponse": { "status": 200, @@ -220,7 +221,8 @@ "user": { "id": "super-user-id" } - } + }, + "impIDs":["incredible-bid-id"] }, "mockResponse": { "status": 200, @@ -304,7 +306,8 @@ "user": { "id": "super-user-id" } - } + }, + "impIDs":["amazing-bid-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adtrgtme/adtrgtmetest/exemplary/banner-web.json b/adapters/adtrgtme/adtrgtmetest/exemplary/banner-web.json index 0eedafa1bc6..23eb23ff54a 100644 --- a/adapters/adtrgtme/adtrgtmetest/exemplary/banner-web.json +++ b/adapters/adtrgtme/adtrgtmetest/exemplary/banner-web.json @@ -132,7 +132,8 @@ "user": { "id": "super-user-id" } - } + }, + "impIDs":["super-bid-id"] }, "mockResponse": { "status": 200, @@ -214,7 +215,8 @@ "user": { "id": "super-user-id" } - } + }, + "impIDs":["incredible-bid-id"] }, "mockResponse": { "status": 200, @@ -296,7 +298,8 @@ "user": { "id": "super-user-id" } - } + }, + "impIDs":["amazing-bid-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adtrgtme/adtrgtmetest/supplemental/banner-app-headers-ipv6.json b/adapters/adtrgtme/adtrgtmetest/supplemental/banner-app-headers-ipv6.json index d90f66a4a82..60c8171fa51 100644 --- a/adapters/adtrgtme/adtrgtmetest/supplemental/banner-app-headers-ipv6.json +++ b/adapters/adtrgtme/adtrgtmetest/supplemental/banner-app-headers-ipv6.json @@ -106,7 +106,8 @@ "user": { "id": "test-user-id" } - } + }, + "impIDs":["test-bid-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adtrgtme/adtrgtmetest/supplemental/banner-web-headers-ipv6.json b/adapters/adtrgtme/adtrgtmetest/supplemental/banner-web-headers-ipv6.json index e2c53b8abb2..0ba55ddac68 100644 --- a/adapters/adtrgtme/adtrgtmetest/supplemental/banner-web-headers-ipv6.json +++ b/adapters/adtrgtme/adtrgtmetest/supplemental/banner-web-headers-ipv6.json @@ -102,7 +102,8 @@ "user": { "id": "test-user-id" } - } + }, + "impIDs":["test-bid-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adtrgtme/adtrgtmetest/supplemental/empty-seatbid-array.json b/adapters/adtrgtme/adtrgtmetest/supplemental/empty-seatbid-array.json index 648a462059c..7221767005e 100644 --- a/adapters/adtrgtme/adtrgtmetest/supplemental/empty-seatbid-array.json +++ b/adapters/adtrgtme/adtrgtmetest/supplemental/empty-seatbid-array.json @@ -104,7 +104,8 @@ "buyeruid": "test-buyer-id" }, "tmax": 1000 - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adtrgtme/adtrgtmetest/supplemental/invalid-response.json b/adapters/adtrgtme/adtrgtmetest/supplemental/invalid-response.json index ba03cb8575c..c8527fe2f97 100644 --- a/adapters/adtrgtme/adtrgtmetest/supplemental/invalid-response.json +++ b/adapters/adtrgtme/adtrgtmetest/supplemental/invalid-response.json @@ -94,7 +94,8 @@ "buyeruid": "test-buyer-id" }, "tmax": 1000 - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adtrgtme/adtrgtmetest/supplemental/not-found-imp.json b/adapters/adtrgtme/adtrgtmetest/supplemental/not-found-imp.json index 448aa6e49b0..a86e2442b65 100644 --- a/adapters/adtrgtme/adtrgtmetest/supplemental/not-found-imp.json +++ b/adapters/adtrgtme/adtrgtmetest/supplemental/not-found-imp.json @@ -94,7 +94,8 @@ "buyeruid": "test-user-id" }, "tmax": 1000 - } + }, + "impIDs":["test-unsupported-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-bad-request.json b/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-bad-request.json index a883ad47294..5b4a2fa9419 100644 --- a/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-bad-request.json +++ b/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-bad-request.json @@ -75,7 +75,8 @@ "buyeruid": "test-user" }, "tmax": 1000 - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-internal-server-error.json b/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-internal-server-error.json index af924a95149..c533e08f9b8 100644 --- a/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-internal-server-error.json +++ b/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-internal-server-error.json @@ -65,7 +65,8 @@ "buyeruid": "test-user" }, "tmax": 1000 - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500 diff --git a/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-no-content.json b/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-no-content.json index 0693fbba04f..b60bcac8944 100644 --- a/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-no-content.json +++ b/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-no-content.json @@ -65,7 +65,8 @@ "buyeruid": "test-user" }, "tmax": 1000 - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-service-unavaliable.json b/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-service-unavaliable.json index bc749628315..73e2c677dc5 100644 --- a/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-service-unavaliable.json +++ b/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-service-unavaliable.json @@ -65,7 +65,8 @@ "buyeruid": "test-user" }, "tmax": 1000 - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-temporary-redirect.json b/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-temporary-redirect.json index a97e7e9663b..3bbd06cd5e2 100644 --- a/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-temporary-redirect.json +++ b/adapters/adtrgtme/adtrgtmetest/supplemental/status-code-temporary-redirect.json @@ -65,7 +65,8 @@ "buyeruid": "test-user" }, "tmax": 1000 - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 307 diff --git a/adapters/adtrgtme/adtrgtmetest/supplemental/unsupported-bid-type-native.json b/adapters/adtrgtme/adtrgtmetest/supplemental/unsupported-bid-type-native.json index dc6389eb97b..dd320e4b0db 100644 --- a/adapters/adtrgtme/adtrgtmetest/supplemental/unsupported-bid-type-native.json +++ b/adapters/adtrgtme/adtrgtmetest/supplemental/unsupported-bid-type-native.json @@ -84,7 +84,8 @@ "buyeruid": "test-user-id" }, "tmax": 1000 - } + }, + "impIDs":["test-unsupported-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adtrgtme/adtrgtmetest/supplemental/unsupported-bid-type-video.json b/adapters/adtrgtme/adtrgtmetest/supplemental/unsupported-bid-type-video.json index 9c374420f6f..7826be2de3a 100644 --- a/adapters/adtrgtme/adtrgtmetest/supplemental/unsupported-bid-type-video.json +++ b/adapters/adtrgtme/adtrgtmetest/supplemental/unsupported-bid-type-video.json @@ -94,7 +94,8 @@ "buyeruid": "test-user-id" }, "tmax": 1000 - } + }, + "impIDs":["test-unsupported-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/advangelists/advangelists.go b/adapters/advangelists/advangelists.go index fc23973f040..f1d3a013f37 100644 --- a/adapters/advangelists/advangelists.go +++ b/adapters/advangelists/advangelists.go @@ -164,7 +164,8 @@ func (adapter *AdvangelistsAdapter) buildAdapterRequest(prebidBidRequest *openrt Method: "POST", Uri: url, Body: reqJSON, - Headers: headers}, nil + Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(imps)}, nil } func createBidRequest(prebidBidRequest *openrtb2.BidRequest, params *openrtb_ext.ExtImpAdvangelists, imps []openrtb2.Imp) *openrtb2.BidRequest { diff --git a/adapters/advangelists/advangeliststest/exemplary/banner.json b/adapters/advangelists/advangeliststest/exemplary/banner.json index b011137cb9f..6aa803c7e86 100644 --- a/adapters/advangelists/advangeliststest/exemplary/banner.json +++ b/adapters/advangelists/advangeliststest/exemplary/banner.json @@ -50,7 +50,8 @@ } }] - } + }, + "impIDs":["testimpid"] }, "mockResponse": { "status": 200, diff --git a/adapters/advangelists/advangeliststest/exemplary/video.json b/adapters/advangelists/advangeliststest/exemplary/video.json index 28a78753d80..ea9e955d67a 100644 --- a/adapters/advangelists/advangeliststest/exemplary/video.json +++ b/adapters/advangelists/advangeliststest/exemplary/video.json @@ -38,7 +38,8 @@ "h": 480 } }] - } + }, + "impIDs":["testimpid"] }, "mockResponse": { "status": 200, diff --git a/adapters/adview/adview.go b/adapters/adview/adview.go index d880cc4956a..69e1f27ac9d 100644 --- a/adapters/adview/adview.go +++ b/adapters/adview/adview.go @@ -105,6 +105,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: http.MethodPost, Uri: url, Body: reqJSON, + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), } requests = append(requests, requestData) } diff --git a/adapters/adview/adviewtest/exemplary/banner-app-format.json b/adapters/adview/adviewtest/exemplary/banner-app-format.json index f35f9db72c6..44787106744 100644 --- a/adapters/adview/adviewtest/exemplary/banner-app-format.json +++ b/adapters/adview/adviewtest/exemplary/banner-app-format.json @@ -96,7 +96,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adview/adviewtest/exemplary/banner-app-resp-no-formattype.json b/adapters/adview/adviewtest/exemplary/banner-app-resp-no-formattype.json index e3b92913dc6..156f941fad2 100644 --- a/adapters/adview/adviewtest/exemplary/banner-app-resp-no-formattype.json +++ b/adapters/adview/adviewtest/exemplary/banner-app-resp-no-formattype.json @@ -86,7 +86,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs": ["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adview/adviewtest/exemplary/banner-app.json b/adapters/adview/adviewtest/exemplary/banner-app.json index 2c740504ab3..65b09b61616 100644 --- a/adapters/adview/adviewtest/exemplary/banner-app.json +++ b/adapters/adview/adviewtest/exemplary/banner-app.json @@ -86,7 +86,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adview/adviewtest/exemplary/native-app.json b/adapters/adview/adviewtest/exemplary/native-app.json index aea0f58d1b2..70b6f8daacc 100644 --- a/adapters/adview/adviewtest/exemplary/native-app.json +++ b/adapters/adview/adviewtest/exemplary/native-app.json @@ -86,7 +86,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adview/adviewtest/exemplary/video-app.json b/adapters/adview/adviewtest/exemplary/video-app.json index 8697fc0fdef..491fbbcc456 100644 --- a/adapters/adview/adviewtest/exemplary/video-app.json +++ b/adapters/adview/adviewtest/exemplary/video-app.json @@ -96,7 +96,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adview/adviewtest/supplemental/bad-request.json b/adapters/adview/adviewtest/supplemental/bad-request.json index 0f10fe79062..ae50df385ff 100644 --- a/adapters/adview/adviewtest/supplemental/bad-request.json +++ b/adapters/adview/adviewtest/supplemental/bad-request.json @@ -34,7 +34,8 @@ }, "tagid": "posid00001" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/adview/adviewtest/supplemental/empty-response.json b/adapters/adview/adviewtest/supplemental/empty-response.json index c080b18d4bb..28a6a208d4a 100644 --- a/adapters/adview/adviewtest/supplemental/empty-response.json +++ b/adapters/adview/adviewtest/supplemental/empty-response.json @@ -34,7 +34,8 @@ }, "tagid": "posid00001" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/adview/adviewtest/supplemental/nobid-response.json b/adapters/adview/adviewtest/supplemental/nobid-response.json index 76a96484e12..b32d81d7486 100644 --- a/adapters/adview/adviewtest/supplemental/nobid-response.json +++ b/adapters/adview/adviewtest/supplemental/nobid-response.json @@ -34,7 +34,8 @@ }, "tagid": "posid00001" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adview/adviewtest/supplemental/server-error.json b/adapters/adview/adviewtest/supplemental/server-error.json index de3bc9d3721..d45872a2b50 100644 --- a/adapters/adview/adviewtest/supplemental/server-error.json +++ b/adapters/adview/adviewtest/supplemental/server-error.json @@ -34,7 +34,8 @@ }, "tagid": "posid00001" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/adview/adviewtest/supplemental/unparsable-response.json b/adapters/adview/adviewtest/supplemental/unparsable-response.json index 18bc2e0f4ed..af126dab8e7 100644 --- a/adapters/adview/adviewtest/supplemental/unparsable-response.json +++ b/adapters/adview/adviewtest/supplemental/unparsable-response.json @@ -34,7 +34,8 @@ }, "tagid": "posid00001" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adxcg/adxcg.go b/adapters/adxcg/adxcg.go index 6c1a4f78b2b..3bccf806902 100644 --- a/adapters/adxcg/adxcg.go +++ b/adapters/adxcg/adxcg.go @@ -45,6 +45,7 @@ func (adapter *adapter) MakeRequests( Uri: adapter.endpoint, Body: openRTBRequestJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), } requestsToBidder = append(requestsToBidder, requestToBidder) diff --git a/adapters/adxcg/adxcgtest/exemplary/simple-banner-currency.json b/adapters/adxcg/adxcgtest/exemplary/simple-banner-currency.json index 8678a62c8a7..70f7c66f11e 100644 --- a/adapters/adxcg/adxcgtest/exemplary/simple-banner-currency.json +++ b/adapters/adxcg/adxcgtest/exemplary/simple-banner-currency.json @@ -40,7 +40,8 @@ "bidder": {} } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adxcg/adxcgtest/exemplary/simple-banner.json b/adapters/adxcg/adxcgtest/exemplary/simple-banner.json index 42902014126..2171ab538f6 100644 --- a/adapters/adxcg/adxcgtest/exemplary/simple-banner.json +++ b/adapters/adxcg/adxcgtest/exemplary/simple-banner.json @@ -38,7 +38,8 @@ "bidder": {} } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adxcg/adxcgtest/exemplary/simple-native.json b/adapters/adxcg/adxcgtest/exemplary/simple-native.json index 1b0d5b5996c..9e96042db60 100644 --- a/adapters/adxcg/adxcgtest/exemplary/simple-native.json +++ b/adapters/adxcg/adxcgtest/exemplary/simple-native.json @@ -26,7 +26,8 @@ } } ] - } + }, + "impIDs":["test-imp-native-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adxcg/adxcgtest/exemplary/simple-video.json b/adapters/adxcg/adxcgtest/exemplary/simple-video.json index 735f10036b8..20589e10620 100644 --- a/adapters/adxcg/adxcgtest/exemplary/simple-video.json +++ b/adapters/adxcg/adxcgtest/exemplary/simple-video.json @@ -58,7 +58,8 @@ } } ] - } + }, + "impIDs":["test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adxcg/adxcgtest/supplemental/bad_response.json b/adapters/adxcg/adxcgtest/supplemental/bad_response.json index f84f5555259..b8ce74b28a6 100644 --- a/adapters/adxcg/adxcgtest/supplemental/bad_response.json +++ b/adapters/adxcg/adxcgtest/supplemental/bad_response.json @@ -43,7 +43,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adxcg/adxcgtest/supplemental/status_204.json b/adapters/adxcg/adxcgtest/supplemental/status_204.json index 0702c103332..950e5c0d5fe 100644 --- a/adapters/adxcg/adxcgtest/supplemental/status_204.json +++ b/adapters/adxcg/adxcgtest/supplemental/status_204.json @@ -43,7 +43,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/adxcg/adxcgtest/supplemental/status_400.json b/adapters/adxcg/adxcgtest/supplemental/status_400.json index 65d21406bf0..6551dee32ba 100644 --- a/adapters/adxcg/adxcgtest/supplemental/status_400.json +++ b/adapters/adxcg/adxcgtest/supplemental/status_400.json @@ -43,7 +43,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/adxcg/adxcgtest/supplemental/status_418.json b/adapters/adxcg/adxcgtest/supplemental/status_418.json index 4c5dd576aa6..903f7d8a5c2 100644 --- a/adapters/adxcg/adxcgtest/supplemental/status_418.json +++ b/adapters/adxcg/adxcgtest/supplemental/status_418.json @@ -43,7 +43,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 418, diff --git a/adapters/adyoulike/adyoulike.go b/adapters/adyoulike/adyoulike.go index d1d05f6b3de..babc7627949 100644 --- a/adapters/adyoulike/adyoulike.go +++ b/adapters/adyoulike/adyoulike.go @@ -84,6 +84,7 @@ func (a *adapter) MakeRequests( Uri: a.endpoint, Body: openRTBRequestJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(reqCopy.Imp), } requestsToBidder = append(requestsToBidder, requestToBidder) diff --git a/adapters/adyoulike/adyouliketest/exemplary/currency-conversion.json b/adapters/adyoulike/adyouliketest/exemplary/currency-conversion.json index 85e14fbe3e8..2eabe27d679 100644 --- a/adapters/adyoulike/adyouliketest/exemplary/currency-conversion.json +++ b/adapters/adyoulike/adyouliketest/exemplary/currency-conversion.json @@ -74,7 +74,8 @@ } } } - } + }, + "impIDs":["banner-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adyoulike/adyouliketest/exemplary/multiformat-impression.json b/adapters/adyoulike/adyouliketest/exemplary/multiformat-impression.json index 8e69fcf5bc9..a850d3b11c3 100644 --- a/adapters/adyoulike/adyouliketest/exemplary/multiformat-impression.json +++ b/adapters/adyoulike/adyouliketest/exemplary/multiformat-impression.json @@ -95,7 +95,8 @@ "tagid": "123123" } ] - } + }, + "impIDs":["banner-imp-id","video-imp-id","native-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adyoulike/adyouliketest/supplemental/invalid-bid-response.json b/adapters/adyoulike/adyouliketest/supplemental/invalid-bid-response.json index 01a80efdec3..2d68274da1a 100644 --- a/adapters/adyoulike/adyouliketest/supplemental/invalid-bid-response.json +++ b/adapters/adyoulike/adyouliketest/supplemental/invalid-bid-response.json @@ -46,7 +46,8 @@ "tagid": "12345" } ] - } + }, + "impIDs":["banner-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/adyoulike/adyouliketest/supplemental/status-bad-request.json b/adapters/adyoulike/adyouliketest/supplemental/status-bad-request.json index 5c4c2df3d0b..8a1611401ec 100644 --- a/adapters/adyoulike/adyouliketest/supplemental/status-bad-request.json +++ b/adapters/adyoulike/adyouliketest/supplemental/status-bad-request.json @@ -46,7 +46,8 @@ "tagid": "12345" } ] - } + }, + "impIDs":["banner-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/adyoulike/adyouliketest/supplemental/status-no-content.json b/adapters/adyoulike/adyouliketest/supplemental/status-no-content.json index c296128e914..f19fd3eeb46 100644 --- a/adapters/adyoulike/adyouliketest/supplemental/status-no-content.json +++ b/adapters/adyoulike/adyouliketest/supplemental/status-no-content.json @@ -46,7 +46,8 @@ "tagid": "12345" } ] - } + }, + "impIDs":["banner-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/adyoulike/adyouliketest/supplemental/status-service-unavailable.json b/adapters/adyoulike/adyouliketest/supplemental/status-service-unavailable.json index 445d01e2ccd..5faecb76cf2 100644 --- a/adapters/adyoulike/adyouliketest/supplemental/status-service-unavailable.json +++ b/adapters/adyoulike/adyouliketest/supplemental/status-service-unavailable.json @@ -46,7 +46,8 @@ "tagid": "12345" } ] - } + }, + "impIDs":["banner-imp-id"] }, "mockResponse": { "status": 503, diff --git a/adapters/adyoulike/adyouliketest/supplemental/status-unknown.json b/adapters/adyoulike/adyouliketest/supplemental/status-unknown.json index 5177befdfd9..240d5375785 100644 --- a/adapters/adyoulike/adyouliketest/supplemental/status-unknown.json +++ b/adapters/adyoulike/adyouliketest/supplemental/status-unknown.json @@ -46,7 +46,8 @@ "tagid": "12345" } ] - } + }, + "impIDs":["banner-imp-id"] }, "mockResponse": { "status": 999, diff --git a/adapters/aidem/aidem.go b/adapters/aidem/aidem.go index b50f5a7db61..fe1259450ca 100644 --- a/adapters/aidem/aidem.go +++ b/adapters/aidem/aidem.go @@ -43,6 +43,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: url, Body: reqJson, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, nil } diff --git a/adapters/aidem/aidemtest/exemplary/multi-format.json b/adapters/aidem/aidemtest/exemplary/multi-format.json index bc0c467b646..b16877f2572 100644 --- a/adapters/aidem/aidemtest/exemplary/multi-format.json +++ b/adapters/aidem/aidemtest/exemplary/multi-format.json @@ -68,7 +68,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/aidem/aidemtest/exemplary/multi-imps-multi-bid.json b/adapters/aidem/aidemtest/exemplary/multi-imps-multi-bid.json index 68c87ee11be..dd92c169cdc 100644 --- a/adapters/aidem/aidemtest/exemplary/multi-imps-multi-bid.json +++ b/adapters/aidem/aidemtest/exemplary/multi-imps-multi-bid.json @@ -80,7 +80,8 @@ } } ] - } + }, + "impIDs":["1","2"] }, "mockResponse": { "status": 200, diff --git a/adapters/aidem/aidemtest/exemplary/multi-imps-single-bid.json b/adapters/aidem/aidemtest/exemplary/multi-imps-single-bid.json index e628323ad33..e0006eb0ad1 100644 --- a/adapters/aidem/aidemtest/exemplary/multi-imps-single-bid.json +++ b/adapters/aidem/aidemtest/exemplary/multi-imps-single-bid.json @@ -80,7 +80,8 @@ } } ] - } + }, + "impIDs":["1","2"] }, "mockResponse": { "status": 200, diff --git a/adapters/aidem/aidemtest/exemplary/no-bid.json b/adapters/aidem/aidemtest/exemplary/no-bid.json index c67a205ef58..c8c7b7142c3 100644 --- a/adapters/aidem/aidemtest/exemplary/no-bid.json +++ b/adapters/aidem/aidemtest/exemplary/no-bid.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 204, diff --git a/adapters/aidem/aidemtest/exemplary/optional-params.json b/adapters/aidem/aidemtest/exemplary/optional-params.json index 856e0c5cdf1..fa36a407ce3 100644 --- a/adapters/aidem/aidemtest/exemplary/optional-params.json +++ b/adapters/aidem/aidemtest/exemplary/optional-params.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 204, diff --git a/adapters/aidem/aidemtest/exemplary/simple-banner.json b/adapters/aidem/aidemtest/exemplary/simple-banner.json index d39ac30e459..d1d75559392 100644 --- a/adapters/aidem/aidemtest/exemplary/simple-banner.json +++ b/adapters/aidem/aidemtest/exemplary/simple-banner.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/aidem/aidemtest/exemplary/simple-video.json b/adapters/aidem/aidemtest/exemplary/simple-video.json index 94eb98cd8a1..c4f8edd82af 100644 --- a/adapters/aidem/aidemtest/exemplary/simple-video.json +++ b/adapters/aidem/aidemtest/exemplary/simple-video.json @@ -52,7 +52,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/aidem/aidemtest/supplemental/invalid-req-400-status-code-bad-request.json b/adapters/aidem/aidemtest/supplemental/invalid-req-400-status-code-bad-request.json index e0a1f6e9837..913ff001624 100644 --- a/adapters/aidem/aidemtest/supplemental/invalid-req-400-status-code-bad-request.json +++ b/adapters/aidem/aidemtest/supplemental/invalid-req-400-status-code-bad-request.json @@ -80,7 +80,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/aidem/aidemtest/supplemental/invalid-res-200-status-code-empty-bids.json b/adapters/aidem/aidemtest/supplemental/invalid-res-200-status-code-empty-bids.json index 33b412b46e3..7396331f2c5 100644 --- a/adapters/aidem/aidemtest/supplemental/invalid-res-200-status-code-empty-bids.json +++ b/adapters/aidem/aidemtest/supplemental/invalid-res-200-status-code-empty-bids.json @@ -80,7 +80,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aidem/aidemtest/supplemental/invalid-resp-multi-imp-type.json b/adapters/aidem/aidemtest/supplemental/invalid-resp-multi-imp-type.json index 0c390f6595d..204cafc9e7e 100644 --- a/adapters/aidem/aidemtest/supplemental/invalid-resp-multi-imp-type.json +++ b/adapters/aidem/aidemtest/supplemental/invalid-resp-multi-imp-type.json @@ -112,7 +112,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aidem/aidemtest/supplemental/valid-req-200-bid-response-from-aidem.json b/adapters/aidem/aidemtest/supplemental/valid-req-200-bid-response-from-aidem.json index 16cb98baf21..94e888b893d 100644 --- a/adapters/aidem/aidemtest/supplemental/valid-req-200-bid-response-from-aidem.json +++ b/adapters/aidem/aidemtest/supplemental/valid-req-200-bid-response-from-aidem.json @@ -86,7 +86,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aidem/aidemtest/supplemental/valid-req-204-response-from-aidem.json b/adapters/aidem/aidemtest/supplemental/valid-req-204-response-from-aidem.json index d51c6da9932..0813f9cee8f 100644 --- a/adapters/aidem/aidemtest/supplemental/valid-req-204-response-from-aidem.json +++ b/adapters/aidem/aidemtest/supplemental/valid-req-204-response-from-aidem.json @@ -54,7 +54,8 @@ "id": "imp-id" } ] - } + }, + "impIDs":["imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/aja/aja.go b/adapters/aja/aja.go index edf9f316d4d..e65ab357fb3 100644 --- a/adapters/aja/aja.go +++ b/adapters/aja/aja.go @@ -48,6 +48,7 @@ func (a *AJAAdapter) MakeRequests(bidReq *openrtb2.BidRequest, extraInfo *adapte Method: "POST", Uri: a.endpoint, Body: body, + ImpIDs: openrtb_ext.GetImpIDs(req.Imp), }) } diff --git a/adapters/aja/ajatest/exemplary/banner-multiple-imps.json b/adapters/aja/ajatest/exemplary/banner-multiple-imps.json index 8de9a31eadb..0dd5ba07ff7 100644 --- a/adapters/aja/ajatest/exemplary/banner-multiple-imps.json +++ b/adapters/aja/ajatest/exemplary/banner-multiple-imps.json @@ -54,7 +54,8 @@ "buyeruid": "test-uid" }, "tmax": 500 - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, @@ -98,7 +99,8 @@ "buyeruid": "test-uid" }, "tmax": 500 - } + }, + "impIDs":["test-imp-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/aja/ajatest/exemplary/video.json b/adapters/aja/ajatest/exemplary/video.json index a7991570bba..4e3774028a6 100644 --- a/adapters/aja/ajatest/exemplary/video.json +++ b/adapters/aja/ajatest/exemplary/video.json @@ -44,7 +44,8 @@ "buyeruid": "test-uid" }, "tmax": 500 - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aja/ajatest/supplemental/invalid-bid-type.json b/adapters/aja/ajatest/supplemental/invalid-bid-type.json index 52f2c49296a..bcbabc1f1fd 100644 --- a/adapters/aja/ajatest/supplemental/invalid-bid-type.json +++ b/adapters/aja/ajatest/supplemental/invalid-bid-type.json @@ -34,7 +34,8 @@ "buyeruid": "test-uid" }, "tmax": 500 - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aja/ajatest/supplemental/status-bad-request.json b/adapters/aja/ajatest/supplemental/status-bad-request.json index a47db8bbca9..7733fdd75b8 100644 --- a/adapters/aja/ajatest/supplemental/status-bad-request.json +++ b/adapters/aja/ajatest/supplemental/status-bad-request.json @@ -44,7 +44,8 @@ "buyeruid": "test-uid" }, "tmax": 500 - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/aja/ajatest/supplemental/status-internal-server-error.json b/adapters/aja/ajatest/supplemental/status-internal-server-error.json index 5d36dc5dcdc..56b0f437bd9 100644 --- a/adapters/aja/ajatest/supplemental/status-internal-server-error.json +++ b/adapters/aja/ajatest/supplemental/status-internal-server-error.json @@ -44,7 +44,8 @@ "buyeruid": "test-uid" }, "tmax": 500 - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/aja/ajatest/supplemental/status-no-content.json b/adapters/aja/ajatest/supplemental/status-no-content.json index e12fd21a26a..d21b1ab38d1 100644 --- a/adapters/aja/ajatest/supplemental/status-no-content.json +++ b/adapters/aja/ajatest/supplemental/status-no-content.json @@ -44,7 +44,8 @@ "buyeruid": "test-uid" }, "tmax": 500 - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/algorix/algorix.go b/adapters/algorix/algorix.go index d6b1ea074fa..cf28bff7d67 100644 --- a/adapters/algorix/algorix.go +++ b/adapters/algorix/algorix.go @@ -80,6 +80,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: endPoint, Body: reqBody, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, nil } diff --git a/adapters/algorix/algorixtest/exemplary/sample-banner-euc.json b/adapters/algorix/algorixtest/exemplary/sample-banner-euc.json index bc451225709..18102ed5048 100644 --- a/adapters/algorix/algorixtest/exemplary/sample-banner-euc.json +++ b/adapters/algorix/algorixtest/exemplary/sample-banner-euc.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/algorix/algorixtest/exemplary/sample-banner-use.json b/adapters/algorix/algorixtest/exemplary/sample-banner-use.json index ca83ee4e872..14a135f1142 100644 --- a/adapters/algorix/algorixtest/exemplary/sample-banner-use.json +++ b/adapters/algorix/algorixtest/exemplary/sample-banner-use.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/algorix/algorixtest/exemplary/sample-banner-with-mediatype.json b/adapters/algorix/algorixtest/exemplary/sample-banner-with-mediatype.json index c9f9f877cde..3a1d7286a5d 100644 --- a/adapters/algorix/algorixtest/exemplary/sample-banner-with-mediatype.json +++ b/adapters/algorix/algorixtest/exemplary/sample-banner-with-mediatype.json @@ -55,7 +55,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/algorix/algorixtest/exemplary/sample-banner-with-palcementid.json b/adapters/algorix/algorixtest/exemplary/sample-banner-with-palcementid.json index e50fb3a48e8..b26db6420ec 100644 --- a/adapters/algorix/algorixtest/exemplary/sample-banner-with-palcementid.json +++ b/adapters/algorix/algorixtest/exemplary/sample-banner-with-palcementid.json @@ -47,7 +47,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/algorix/algorixtest/exemplary/sample-banner.json b/adapters/algorix/algorixtest/exemplary/sample-banner.json index d558214a46d..a133c5bded8 100644 --- a/adapters/algorix/algorixtest/exemplary/sample-banner.json +++ b/adapters/algorix/algorixtest/exemplary/sample-banner.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/algorix/algorixtest/exemplary/sample-native.json b/adapters/algorix/algorixtest/exemplary/sample-native.json index 36a0d1af84f..dcfe15f45f5 100644 --- a/adapters/algorix/algorixtest/exemplary/sample-native.json +++ b/adapters/algorix/algorixtest/exemplary/sample-native.json @@ -42,7 +42,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/algorix/algorixtest/exemplary/sample-nobid.json b/adapters/algorix/algorixtest/exemplary/sample-nobid.json index d4fbd561f7e..4d7c4e49cd4 100644 --- a/adapters/algorix/algorixtest/exemplary/sample-nobid.json +++ b/adapters/algorix/algorixtest/exemplary/sample-nobid.json @@ -43,7 +43,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/algorix/algorixtest/exemplary/sample-rewarded-video.json b/adapters/algorix/algorixtest/exemplary/sample-rewarded-video.json index 0d98de60a8d..1925dc01b9a 100644 --- a/adapters/algorix/algorixtest/exemplary/sample-rewarded-video.json +++ b/adapters/algorix/algorixtest/exemplary/sample-rewarded-video.json @@ -58,7 +58,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/algorix/algorixtest/exemplary/sample-video.json b/adapters/algorix/algorixtest/exemplary/sample-video.json index edb8fddba09..f3ff4659aba 100644 --- a/adapters/algorix/algorixtest/exemplary/sample-video.json +++ b/adapters/algorix/algorixtest/exemplary/sample-video.json @@ -49,7 +49,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/algorix/algorixtest/supplemental/bad_response.json b/adapters/algorix/algorixtest/supplemental/bad_response.json index 83ed5663072..9c5a44b2f14 100644 --- a/adapters/algorix/algorixtest/supplemental/bad_response.json +++ b/adapters/algorix/algorixtest/supplemental/bad_response.json @@ -39,7 +39,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/algorix/algorixtest/supplemental/multiformat-no-mediatype-response.json b/adapters/algorix/algorixtest/supplemental/multiformat-no-mediatype-response.json index 4d3ea89454e..985d2d3a965 100644 --- a/adapters/algorix/algorixtest/supplemental/multiformat-no-mediatype-response.json +++ b/adapters/algorix/algorixtest/supplemental/multiformat-no-mediatype-response.json @@ -55,7 +55,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/algorix/algorixtest/supplemental/sample-banner-with-other-mediatype.json b/adapters/algorix/algorixtest/supplemental/sample-banner-with-other-mediatype.json index df53531856d..dfbb26ca1cb 100644 --- a/adapters/algorix/algorixtest/supplemental/sample-banner-with-other-mediatype.json +++ b/adapters/algorix/algorixtest/supplemental/sample-banner-with-other-mediatype.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/algorix/algorixtest/supplemental/status_400.json b/adapters/algorix/algorixtest/supplemental/status_400.json index 2085bf3cbee..bfec811d6a7 100644 --- a/adapters/algorix/algorixtest/supplemental/status_400.json +++ b/adapters/algorix/algorixtest/supplemental/status_400.json @@ -39,7 +39,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/algorix/algorixtest/supplemental/status_500.json b/adapters/algorix/algorixtest/supplemental/status_500.json index c7820917b28..1b6789591ce 100644 --- a/adapters/algorix/algorixtest/supplemental/status_500.json +++ b/adapters/algorix/algorixtest/supplemental/status_500.json @@ -39,7 +39,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/alkimi/alkimi.go b/adapters/alkimi/alkimi.go index 4fe0cdefc8f..9b49c3ddc72 100644 --- a/adapters/alkimi/alkimi.go +++ b/adapters/alkimi/alkimi.go @@ -55,6 +55,7 @@ func (adapter *adapter) MakeRequests(request *openrtb2.BidRequest, req *adapters errs = append(errs, err) } else { reqBidder := buildBidderRequest(adapter, encoded) + reqBidder.ImpIDs = openrtb_ext.GetImpIDs(reqCopy.Imp) reqsBidder = append(reqsBidder, reqBidder) } return diff --git a/adapters/alkimi/alkimitest/exemplary/simple-audio.json b/adapters/alkimi/alkimitest/exemplary/simple-audio.json index 09ac2131a12..2ce94161cbe 100644 --- a/adapters/alkimi/alkimitest/exemplary/simple-audio.json +++ b/adapters/alkimi/alkimitest/exemplary/simple-audio.json @@ -87,7 +87,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/alkimi/alkimitest/exemplary/simple-banner.json b/adapters/alkimi/alkimitest/exemplary/simple-banner.json index 96512989596..dea656368a9 100644 --- a/adapters/alkimi/alkimitest/exemplary/simple-banner.json +++ b/adapters/alkimi/alkimitest/exemplary/simple-banner.json @@ -88,7 +88,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/alkimi/alkimitest/exemplary/simple-video.json b/adapters/alkimi/alkimitest/exemplary/simple-video.json index 28be7a469c3..685638f4dad 100644 --- a/adapters/alkimi/alkimitest/exemplary/simple-video.json +++ b/adapters/alkimi/alkimitest/exemplary/simple-video.json @@ -86,7 +86,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/alkimi/alkimitest/supplemental/bad_media_type.json b/adapters/alkimi/alkimitest/supplemental/bad_media_type.json index db2a5dd61a1..d16f94a844c 100644 --- a/adapters/alkimi/alkimitest/supplemental/bad_media_type.json +++ b/adapters/alkimi/alkimitest/supplemental/bad_media_type.json @@ -61,7 +61,8 @@ "ip": "123.123.123.123", "ifa": "test" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/alkimi/alkimitest/supplemental/bad_response.json b/adapters/alkimi/alkimitest/supplemental/bad_response.json index f5223fe0445..92b8d658968 100644 --- a/adapters/alkimi/alkimitest/supplemental/bad_response.json +++ b/adapters/alkimi/alkimitest/supplemental/bad_response.json @@ -85,7 +85,8 @@ "ip": "123.123.123.123", "ifa": "test" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/alkimi/alkimitest/supplemental/status-204.json b/adapters/alkimi/alkimitest/supplemental/status-204.json index 7432a2d0776..1f0dd2a1947 100644 --- a/adapters/alkimi/alkimitest/supplemental/status-204.json +++ b/adapters/alkimi/alkimitest/supplemental/status-204.json @@ -85,7 +85,8 @@ "ip": "123.123.123.123", "ifa": "test" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/alkimi/alkimitest/supplemental/status-not-200.json b/adapters/alkimi/alkimitest/supplemental/status-not-200.json index 1edaaebf082..65be0d020cc 100644 --- a/adapters/alkimi/alkimitest/supplemental/status-not-200.json +++ b/adapters/alkimi/alkimitest/supplemental/status-not-200.json @@ -85,7 +85,8 @@ "ip": "123.123.123.123", "ifa": "test" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/amx/amx.go b/adapters/amx/amx.go index 73b75e7d9db..a738efe11f3 100644 --- a/adapters/amx/amx.go +++ b/adapters/amx/amx.go @@ -105,6 +105,7 @@ func (adapter *AMXAdapter) MakeRequests(request *openrtb2.BidRequest, req *adapt Uri: adapter.endpoint, Body: encoded, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(reqCopy.Imp), } reqsBidder = append(reqsBidder, reqBidder) return diff --git a/adapters/amx/amxtest/exemplary/app-simple.json b/adapters/amx/amxtest/exemplary/app-simple.json index 066eb02d579..1bc205e5109 100644 --- a/adapters/amx/amxtest/exemplary/app-simple.json +++ b/adapters/amx/amxtest/exemplary/app-simple.json @@ -126,7 +126,8 @@ } }, "tmax": 300 - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/amx/amxtest/exemplary/display-multiple.json b/adapters/amx/amxtest/exemplary/display-multiple.json index eaa5025155d..330bc00d77b 100644 --- a/adapters/amx/amxtest/exemplary/display-multiple.json +++ b/adapters/amx/amxtest/exemplary/display-multiple.json @@ -194,7 +194,8 @@ "us_privacy": "1---" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/amx/amxtest/exemplary/simple-native.json b/adapters/amx/amxtest/exemplary/simple-native.json index a342623382d..dc158c1a748 100644 --- a/adapters/amx/amxtest/exemplary/simple-native.json +++ b/adapters/amx/amxtest/exemplary/simple-native.json @@ -36,7 +36,8 @@ } } ] - } + }, + "impIDs":["imp_id"] }, "mockResponse": { "status": 200, diff --git a/adapters/amx/amxtest/exemplary/video-simple.json b/adapters/amx/amxtest/exemplary/video-simple.json index 934e8e3151b..45e57bf39bc 100644 --- a/adapters/amx/amxtest/exemplary/video-simple.json +++ b/adapters/amx/amxtest/exemplary/video-simple.json @@ -186,7 +186,8 @@ "us_privacy": "1---" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/amx/amxtest/exemplary/web-simple.json b/adapters/amx/amxtest/exemplary/web-simple.json index cc0777cb533..6067243f12e 100644 --- a/adapters/amx/amxtest/exemplary/web-simple.json +++ b/adapters/amx/amxtest/exemplary/web-simple.json @@ -194,7 +194,8 @@ "us_privacy": "1---" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/amx/amxtest/supplemental/204-response.json b/adapters/amx/amxtest/supplemental/204-response.json index ee56633d186..cc5eea2416a 100644 --- a/adapters/amx/amxtest/supplemental/204-response.json +++ b/adapters/amx/amxtest/supplemental/204-response.json @@ -94,7 +94,8 @@ } }, "tmax": 300 - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 204, diff --git a/adapters/amx/amxtest/supplemental/400-response.json b/adapters/amx/amxtest/supplemental/400-response.json index 3ae0d0b33d0..683bdb8c060 100644 --- a/adapters/amx/amxtest/supplemental/400-response.json +++ b/adapters/amx/amxtest/supplemental/400-response.json @@ -94,7 +94,8 @@ } }, "tmax": 300 - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 400, diff --git a/adapters/amx/amxtest/supplemental/500-response.json b/adapters/amx/amxtest/supplemental/500-response.json index 2e37f3ec7dc..6beefe80b73 100644 --- a/adapters/amx/amxtest/supplemental/500-response.json +++ b/adapters/amx/amxtest/supplemental/500-response.json @@ -93,7 +93,8 @@ } }, "tmax": 300 - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 500, diff --git a/adapters/apacdex/apacdex.go b/adapters/apacdex/apacdex.go index 35ba3a04b4f..8eee996c7bd 100644 --- a/adapters/apacdex/apacdex.go +++ b/adapters/apacdex/apacdex.go @@ -62,6 +62,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: jsonBody, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, nil } diff --git a/adapters/apacdex/apacdextest/exemplary/banner-and-video.json b/adapters/apacdex/apacdextest/exemplary/banner-and-video.json index 78ce13fd106..2a65dbc5772 100644 --- a/adapters/apacdex/apacdextest/exemplary/banner-and-video.json +++ b/adapters/apacdex/apacdextest/exemplary/banner-and-video.json @@ -84,7 +84,8 @@ "site": { "id": "123" } - } + }, + "impIDs":["test-banner-imp-id","test-video-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/apacdex/apacdextest/exemplary/banner.json b/adapters/apacdex/apacdextest/exemplary/banner.json index 31b685da15f..80e25c4bf0e 100644 --- a/adapters/apacdex/apacdextest/exemplary/banner.json +++ b/adapters/apacdex/apacdextest/exemplary/banner.json @@ -48,7 +48,8 @@ "site": { "id": "fake-site-id" } - } + }, + "impIDs":["test-banner-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/apacdex/apacdextest/exemplary/video.json b/adapters/apacdex/apacdextest/exemplary/video.json index ac387059671..e42e7caeb19 100644 --- a/adapters/apacdex/apacdextest/exemplary/video.json +++ b/adapters/apacdex/apacdextest/exemplary/video.json @@ -43,7 +43,8 @@ } } ] - } + }, + "impIDs":["test-video-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/apacdex/apacdextest/supplemental/explicit-dimensions.json b/adapters/apacdex/apacdextest/supplemental/explicit-dimensions.json index cf2fd7dd01e..5346c1f0589 100644 --- a/adapters/apacdex/apacdextest/supplemental/explicit-dimensions.json +++ b/adapters/apacdex/apacdextest/supplemental/explicit-dimensions.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/apacdex/apacdextest/supplemental/invalid-response-no-bids.json b/adapters/apacdex/apacdextest/supplemental/invalid-response-no-bids.json index 48122f5926a..39edd4bbbfa 100644 --- a/adapters/apacdex/apacdextest/supplemental/invalid-response-no-bids.json +++ b/adapters/apacdex/apacdextest/supplemental/invalid-response-no-bids.json @@ -34,7 +34,8 @@ } } ] - } + }, + "impIDs":["some_test_ad"] }, "mockResponse": { "status": 200, diff --git a/adapters/apacdex/apacdextest/supplemental/invalid-response-unmarshall-error.json b/adapters/apacdex/apacdextest/supplemental/invalid-response-unmarshall-error.json index 2de5213d686..7c162cbfbad 100644 --- a/adapters/apacdex/apacdextest/supplemental/invalid-response-unmarshall-error.json +++ b/adapters/apacdex/apacdextest/supplemental/invalid-response-unmarshall-error.json @@ -34,7 +34,8 @@ } } ] - } + }, + "impIDs":["some_test_ad"] }, "mockResponse": { "status": 200, diff --git a/adapters/apacdex/apacdextest/supplemental/server-error-code.json b/adapters/apacdex/apacdextest/supplemental/server-error-code.json index b8656aa74a5..0cafc80acf2 100644 --- a/adapters/apacdex/apacdextest/supplemental/server-error-code.json +++ b/adapters/apacdex/apacdextest/supplemental/server-error-code.json @@ -35,7 +35,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/apacdex/apacdextest/supplemental/server-no-content.json b/adapters/apacdex/apacdextest/supplemental/server-no-content.json index 63a8bfb7918..0c7cb16aa2c 100644 --- a/adapters/apacdex/apacdextest/supplemental/server-no-content.json +++ b/adapters/apacdex/apacdextest/supplemental/server-no-content.json @@ -35,7 +35,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/apacdex/apacdextest/supplemental/wrong-bid-ext.json b/adapters/apacdex/apacdextest/supplemental/wrong-bid-ext.json index f93cc01171b..1af796e6a69 100644 --- a/adapters/apacdex/apacdextest/supplemental/wrong-bid-ext.json +++ b/adapters/apacdex/apacdextest/supplemental/wrong-bid-ext.json @@ -42,7 +42,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexus.go b/adapters/appnexus/appnexus.go index 10a8d825d7a..bfa14016b2a 100644 --- a/adapters/appnexus/appnexus.go +++ b/adapters/appnexus/appnexus.go @@ -343,6 +343,7 @@ func splitRequests(imps []openrtb2.Imp, request *openrtb2.BidRequest, requestExt Uri: uri, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }) startInd = endInd } diff --git a/adapters/appnexus/appnexustest/amp/simple-banner.json b/adapters/appnexus/appnexustest/amp/simple-banner.json index 4ed3403db7a..52bf4d7100e 100644 --- a/adapters/appnexus/appnexustest/amp/simple-banner.json +++ b/adapters/appnexus/appnexustest/amp/simple-banner.json @@ -61,7 +61,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/amp/simple-video.json b/adapters/appnexus/appnexustest/amp/simple-video.json index 623085e72a0..68243af363d 100644 --- a/adapters/appnexus/appnexustest/amp/simple-video.json +++ b/adapters/appnexus/appnexustest/amp/simple-video.json @@ -51,7 +51,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/exemplary/dynamic-keywords-params.json b/adapters/appnexus/appnexustest/exemplary/dynamic-keywords-params.json index d0af71e648a..976da0dd9a9 100644 --- a/adapters/appnexus/appnexustest/exemplary/dynamic-keywords-params.json +++ b/adapters/appnexus/appnexustest/exemplary/dynamic-keywords-params.json @@ -67,7 +67,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/exemplary/native-1.1.json b/adapters/appnexus/appnexustest/exemplary/native-1.1.json index b40543f12e9..a814ac6fff0 100644 --- a/adapters/appnexus/appnexustest/exemplary/native-1.1.json +++ b/adapters/appnexus/appnexustest/exemplary/native-1.1.json @@ -65,7 +65,8 @@ "buyeruid": "8299345306627569435" }, "tmax": 500 - } + }, + "impIDs":["some-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/exemplary/optional-params.json b/adapters/appnexus/appnexustest/exemplary/optional-params.json index 01af8252ba9..4a2ae737e9a 100644 --- a/adapters/appnexus/appnexustest/exemplary/optional-params.json +++ b/adapters/appnexus/appnexustest/exemplary/optional-params.json @@ -74,7 +74,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/appnexus/appnexustest/exemplary/schain-24-other-ext.json b/adapters/appnexus/appnexustest/exemplary/schain-24-other-ext.json index e5a258e7f35..0c11af34a2b 100644 --- a/adapters/appnexus/appnexustest/exemplary/schain-24-other-ext.json +++ b/adapters/appnexus/appnexustest/exemplary/schain-24-other-ext.json @@ -106,7 +106,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/exemplary/schain-24.json b/adapters/appnexus/appnexustest/exemplary/schain-24.json index d8f26d10a07..d752e4b7649 100644 --- a/adapters/appnexus/appnexustest/exemplary/schain-24.json +++ b/adapters/appnexus/appnexustest/exemplary/schain-24.json @@ -104,7 +104,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/exemplary/schain-25-other-ext.json b/adapters/appnexus/appnexustest/exemplary/schain-25-other-ext.json index 19b9f1db6c4..5c45ead1a55 100644 --- a/adapters/appnexus/appnexustest/exemplary/schain-25-other-ext.json +++ b/adapters/appnexus/appnexustest/exemplary/schain-25-other-ext.json @@ -116,7 +116,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/exemplary/schain-25.json b/adapters/appnexus/appnexustest/exemplary/schain-25.json index 8ff11b0122c..c9ff1dd7ed7 100644 --- a/adapters/appnexus/appnexustest/exemplary/schain-25.json +++ b/adapters/appnexus/appnexustest/exemplary/schain-25.json @@ -107,7 +107,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/exemplary/simple-banner-foreign-currency.json b/adapters/appnexus/appnexustest/exemplary/simple-banner-foreign-currency.json index 52112419a8d..74badce712d 100644 --- a/adapters/appnexus/appnexustest/exemplary/simple-banner-foreign-currency.json +++ b/adapters/appnexus/appnexustest/exemplary/simple-banner-foreign-currency.json @@ -60,7 +60,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/exemplary/simple-banner.json b/adapters/appnexus/appnexustest/exemplary/simple-banner.json index 24deea82428..377ed768c7b 100644 --- a/adapters/appnexus/appnexustest/exemplary/simple-banner.json +++ b/adapters/appnexus/appnexustest/exemplary/simple-banner.json @@ -79,7 +79,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/exemplary/simple-video.json b/adapters/appnexus/appnexustest/exemplary/simple-video.json index beb630104ca..be9f05966b0 100644 --- a/adapters/appnexus/appnexustest/exemplary/simple-video.json +++ b/adapters/appnexus/appnexustest/exemplary/simple-video.json @@ -50,7 +50,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/exemplary/string-keywords-params.json b/adapters/appnexus/appnexustest/exemplary/string-keywords-params.json index a6d8d95eb5c..b0c5595f310 100644 --- a/adapters/appnexus/appnexustest/exemplary/string-keywords-params.json +++ b/adapters/appnexus/appnexustest/exemplary/string-keywords-params.json @@ -67,7 +67,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/exemplary/video-invalid-category.json b/adapters/appnexus/appnexustest/exemplary/video-invalid-category.json index a65595e1bc0..cc09adb8e8b 100644 --- a/adapters/appnexus/appnexustest/exemplary/video-invalid-category.json +++ b/adapters/appnexus/appnexustest/exemplary/video-invalid-category.json @@ -50,7 +50,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/supplemental/displaymanager-test.json b/adapters/appnexus/appnexustest/supplemental/displaymanager-test.json index ebfa1f239fe..e7c510277d3 100644 --- a/adapters/appnexus/appnexustest/supplemental/displaymanager-test.json +++ b/adapters/appnexus/appnexustest/supplemental/displaymanager-test.json @@ -77,7 +77,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/supplemental/explicit-dimensions.json b/adapters/appnexus/appnexustest/supplemental/explicit-dimensions.json index c66f897349f..364b88965d5 100644 --- a/adapters/appnexus/appnexustest/supplemental/explicit-dimensions.json +++ b/adapters/appnexus/appnexustest/supplemental/explicit-dimensions.json @@ -53,7 +53,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/appnexus/appnexustest/supplemental/invalid-bid-type.json b/adapters/appnexus/appnexustest/supplemental/invalid-bid-type.json index a66f69e358e..47e20f197ec 100644 --- a/adapters/appnexus/appnexustest/supplemental/invalid-bid-type.json +++ b/adapters/appnexus/appnexustest/supplemental/invalid-bid-type.json @@ -79,7 +79,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/supplemental/legacy-params.json b/adapters/appnexus/appnexustest/supplemental/legacy-params.json index 15a4c54587a..6d51df50bf0 100644 --- a/adapters/appnexus/appnexustest/supplemental/legacy-params.json +++ b/adapters/appnexus/appnexustest/supplemental/legacy-params.json @@ -66,7 +66,8 @@ "tagid": "abc123" } ] - } + }, + "impIDs":["test-imp-id-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/supplemental/multi-bid.json b/adapters/appnexus/appnexustest/supplemental/multi-bid.json index 664244a9850..521273e606c 100644 --- a/adapters/appnexus/appnexustest/supplemental/multi-bid.json +++ b/adapters/appnexus/appnexustest/supplemental/multi-bid.json @@ -60,7 +60,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/supplemental/placement-id-as-string-test.json b/adapters/appnexus/appnexustest/supplemental/placement-id-as-string-test.json index b1e0401ecfc..9fc951aa7e4 100644 --- a/adapters/appnexus/appnexustest/supplemental/placement-id-as-string-test.json +++ b/adapters/appnexus/appnexustest/supplemental/placement-id-as-string-test.json @@ -65,7 +65,8 @@ "buyeruid": "8299345306627569435" }, "tmax": 500 - } + }, + "impIDs":["some-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/supplemental/request-ext-appnexus-existing.json b/adapters/appnexus/appnexustest/supplemental/request-ext-appnexus-existing.json index 0f153117550..a2a549022d4 100644 --- a/adapters/appnexus/appnexustest/supplemental/request-ext-appnexus-existing.json +++ b/adapters/appnexus/appnexustest/supplemental/request-ext-appnexus-existing.json @@ -84,7 +84,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/supplemental/reserve-ignored.json b/adapters/appnexus/appnexustest/supplemental/reserve-ignored.json index e9df5038c1d..7e364868b1d 100644 --- a/adapters/appnexus/appnexustest/supplemental/reserve-ignored.json +++ b/adapters/appnexus/appnexustest/supplemental/reserve-ignored.json @@ -63,7 +63,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/supplemental/reserve-test.json b/adapters/appnexus/appnexustest/supplemental/reserve-test.json index df861897d74..0ab2cb7f2b2 100644 --- a/adapters/appnexus/appnexustest/supplemental/reserve-test.json +++ b/adapters/appnexus/appnexustest/supplemental/reserve-test.json @@ -62,7 +62,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/supplemental/status-400.json b/adapters/appnexus/appnexustest/supplemental/status-400.json index 58c7a465219..691900d1bf9 100644 --- a/adapters/appnexus/appnexustest/supplemental/status-400.json +++ b/adapters/appnexus/appnexustest/supplemental/status-400.json @@ -62,7 +62,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/appnexus/appnexustest/supplemental/usePmtRule-test.json b/adapters/appnexus/appnexustest/supplemental/usePmtRule-test.json index 2d3f307a5a8..2785062c5ea 100644 --- a/adapters/appnexus/appnexustest/supplemental/usePmtRule-test.json +++ b/adapters/appnexus/appnexustest/supplemental/usePmtRule-test.json @@ -105,7 +105,8 @@ } } ] - } + }, + "impIDs":["test-imp-id","test-imp-id-2"] }, "mockResponse": { "status": 204 diff --git a/adapters/appnexus/appnexustest/video/video-brand-category.json b/adapters/appnexus/appnexustest/video/video-brand-category.json index 1671b97171d..e3ec0c4fb73 100644 --- a/adapters/appnexus/appnexustest/video/video-brand-category.json +++ b/adapters/appnexus/appnexustest/video/video-brand-category.json @@ -89,7 +89,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/video/video-no-adpodid-two-imps-different-pod.json b/adapters/appnexus/appnexustest/video/video-no-adpodid-two-imps-different-pod.json index 811cfcb2866..be47b95b21e 100644 --- a/adapters/appnexus/appnexustest/video/video-no-adpodid-two-imps-different-pod.json +++ b/adapters/appnexus/appnexustest/video/video-no-adpodid-two-imps-different-pod.json @@ -82,7 +82,8 @@ } } ] - } + }, + "impIDs":["1_1","2_1"] }, "mockResponse": { "status": 200, diff --git a/adapters/appnexus/appnexustest/video/video-same-adpodid-two-imps-same-pod.json b/adapters/appnexus/appnexustest/video/video-same-adpodid-two-imps-same-pod.json index 8f0f15262c4..6fbb4a9d6c5 100644 --- a/adapters/appnexus/appnexustest/video/video-same-adpodid-two-imps-same-pod.json +++ b/adapters/appnexus/appnexustest/video/video-same-adpodid-two-imps-same-pod.json @@ -85,7 +85,8 @@ } } ] - } + }, + "impIDs":["1_1","1_2"] }, "mockResponse": { "status": 200, diff --git a/adapters/appush/appush.go b/adapters/appush/appush.go index bbbbc871360..df15f716866 100644 --- a/adapters/appush/appush.go +++ b/adapters/appush/appush.go @@ -94,6 +94,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, err } diff --git a/adapters/appush/appushtest/exemplary/endpointId.json b/adapters/appush/appushtest/exemplary/endpointId.json index 691e1bbcbcd..52a005dd94d 100644 --- a/adapters/appush/appushtest/exemplary/endpointId.json +++ b/adapters/appush/appushtest/exemplary/endpointId.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appush/appushtest/exemplary/simple-banner.json b/adapters/appush/appushtest/exemplary/simple-banner.json index 5804d6bfa0e..ced76f8c59a 100644 --- a/adapters/appush/appushtest/exemplary/simple-banner.json +++ b/adapters/appush/appushtest/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appush/appushtest/exemplary/simple-native.json b/adapters/appush/appushtest/exemplary/simple-native.json index 633216b2787..70097898e7a 100644 --- a/adapters/appush/appushtest/exemplary/simple-native.json +++ b/adapters/appush/appushtest/exemplary/simple-native.json @@ -55,7 +55,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appush/appushtest/exemplary/simple-video.json b/adapters/appush/appushtest/exemplary/simple-video.json index 21a0a03d94b..d4c4eed642b 100644 --- a/adapters/appush/appushtest/exemplary/simple-video.json +++ b/adapters/appush/appushtest/exemplary/simple-video.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appush/appushtest/exemplary/simple-web-banner.json b/adapters/appush/appushtest/exemplary/simple-web-banner.json index 431170dc4b2..277fe877352 100644 --- a/adapters/appush/appushtest/exemplary/simple-web-banner.json +++ b/adapters/appush/appushtest/exemplary/simple-web-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "Ubuntu" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appush/appushtest/supplemental/bad_media_type.json b/adapters/appush/appushtest/supplemental/bad_media_type.json index 6489c38aef0..f36aabc8a64 100644 --- a/adapters/appush/appushtest/supplemental/bad_media_type.json +++ b/adapters/appush/appushtest/supplemental/bad_media_type.json @@ -44,7 +44,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appush/appushtest/supplemental/bad_response.json b/adapters/appush/appushtest/supplemental/bad_response.json index 8c1cc3750db..c732ba92c67 100644 --- a/adapters/appush/appushtest/supplemental/bad_response.json +++ b/adapters/appush/appushtest/supplemental/bad_response.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/appush/appushtest/supplemental/status-204.json b/adapters/appush/appushtest/supplemental/status-204.json index 3e536c25a60..b2c822cb446 100644 --- a/adapters/appush/appushtest/supplemental/status-204.json +++ b/adapters/appush/appushtest/supplemental/status-204.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/appush/appushtest/supplemental/status-not-200.json b/adapters/appush/appushtest/supplemental/status-not-200.json index b60ca2ccb33..30f92ef4180 100644 --- a/adapters/appush/appushtest/supplemental/status-not-200.json +++ b/adapters/appush/appushtest/supplemental/status-not-200.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/aso/aso.go b/adapters/aso/aso.go index 6b52afa4d81..3664b49af2e 100644 --- a/adapters/aso/aso.go +++ b/adapters/aso/aso.go @@ -79,6 +79,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Uri: endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), } requests = append(requests, requestData) } diff --git a/adapters/aso/asotest/exemplary/app-banner.json b/adapters/aso/asotest/exemplary/app-banner.json index fb97e04fe67..5917370846d 100644 --- a/adapters/aso/asotest/exemplary/app-banner.json +++ b/adapters/aso/asotest/exemplary/app-banner.json @@ -65,7 +65,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aso/asotest/exemplary/app-multi-impressions.json b/adapters/aso/asotest/exemplary/app-multi-impressions.json index a4c1d9a2236..be13c789294 100644 --- a/adapters/aso/asotest/exemplary/app-multi-impressions.json +++ b/adapters/aso/asotest/exemplary/app-multi-impressions.json @@ -73,7 +73,8 @@ "app": { "bundle": "com.prebid" } - } + }, + "impIDs":["banner-imp"] }, "mockResponse": { "status": 200, @@ -145,7 +146,8 @@ "app": { "bundle": "com.prebid" } - } + }, + "impIDs":["video-imp"] }, "mockResponse": { "status": 200, diff --git a/adapters/aso/asotest/exemplary/app-native.json b/adapters/aso/asotest/exemplary/app-native.json index 0d51e15e844..ad29e69ff51 100644 --- a/adapters/aso/asotest/exemplary/app-native.json +++ b/adapters/aso/asotest/exemplary/app-native.json @@ -57,7 +57,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aso/asotest/exemplary/app-video.json b/adapters/aso/asotest/exemplary/app-video.json index 58b7cda92c7..637fe3bb1d4 100644 --- a/adapters/aso/asotest/exemplary/app-video.json +++ b/adapters/aso/asotest/exemplary/app-video.json @@ -75,7 +75,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aso/asotest/exemplary/site-banner.json b/adapters/aso/asotest/exemplary/site-banner.json index 6680e7a8119..35c50c01a36 100644 --- a/adapters/aso/asotest/exemplary/site-banner.json +++ b/adapters/aso/asotest/exemplary/site-banner.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aso/asotest/exemplary/site-native.json b/adapters/aso/asotest/exemplary/site-native.json index a1200007408..058a8e7df22 100644 --- a/adapters/aso/asotest/exemplary/site-native.json +++ b/adapters/aso/asotest/exemplary/site-native.json @@ -58,7 +58,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aso/asotest/exemplary/site-video.json b/adapters/aso/asotest/exemplary/site-video.json index 792ce8a24f8..7acd3db08b4 100644 --- a/adapters/aso/asotest/exemplary/site-video.json +++ b/adapters/aso/asotest/exemplary/site-video.json @@ -75,7 +75,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aso/asotest/supplemental/bad-request.json b/adapters/aso/asotest/supplemental/bad-request.json index 24147fc587c..f575e64299b 100644 --- a/adapters/aso/asotest/supplemental/bad-request.json +++ b/adapters/aso/asotest/supplemental/bad-request.json @@ -34,7 +34,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/aso/asotest/supplemental/empty-response.json b/adapters/aso/asotest/supplemental/empty-response.json index 09ca2b43a77..8daf9af64bd 100644 --- a/adapters/aso/asotest/supplemental/empty-response.json +++ b/adapters/aso/asotest/supplemental/empty-response.json @@ -30,7 +30,8 @@ "request": "" } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/aso/asotest/supplemental/media-type-absent.json b/adapters/aso/asotest/supplemental/media-type-absent.json index b594b247ed3..85ede039ff2 100644 --- a/adapters/aso/asotest/supplemental/media-type-absent.json +++ b/adapters/aso/asotest/supplemental/media-type-absent.json @@ -47,7 +47,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aso/asotest/supplemental/media-type-mapping.json b/adapters/aso/asotest/supplemental/media-type-mapping.json index 4af63675f54..f1a44c582b7 100644 --- a/adapters/aso/asotest/supplemental/media-type-mapping.json +++ b/adapters/aso/asotest/supplemental/media-type-mapping.json @@ -47,7 +47,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/aso/asotest/supplemental/server-error.json b/adapters/aso/asotest/supplemental/server-error.json index 8af763e7d23..f68fd6313a4 100644 --- a/adapters/aso/asotest/supplemental/server-error.json +++ b/adapters/aso/asotest/supplemental/server-error.json @@ -30,7 +30,8 @@ "request": "" } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/aso/asotest/supplemental/unparsable-response.json b/adapters/aso/asotest/supplemental/unparsable-response.json index fb2142e52f4..c05b1f4c5e8 100644 --- a/adapters/aso/asotest/supplemental/unparsable-response.json +++ b/adapters/aso/asotest/supplemental/unparsable-response.json @@ -30,7 +30,8 @@ "request": "" } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/audienceNetwork/audienceNetworktest/exemplary/banner-app.json b/adapters/audienceNetwork/audienceNetworktest/exemplary/banner-app.json index 3ac62d90cd4..e243c0acdec 100644 --- a/adapters/audienceNetwork/audienceNetworktest/exemplary/banner-app.json +++ b/adapters/audienceNetwork/audienceNetworktest/exemplary/banner-app.json @@ -74,7 +74,8 @@ "authentication_id": "4e24a2b23fbfb5e41a9093b921d6cddf497c24dd5f63879038cec2ab2f27d174", "platformid": "test-platform-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/audienceNetwork/audienceNetworktest/exemplary/interstitial.json b/adapters/audienceNetwork/audienceNetworktest/exemplary/interstitial.json index 573032c81e1..a63621ec714 100644 --- a/adapters/audienceNetwork/audienceNetworktest/exemplary/interstitial.json +++ b/adapters/audienceNetwork/audienceNetworktest/exemplary/interstitial.json @@ -83,7 +83,8 @@ "authentication_id": "4e24a2b23fbfb5e41a9093b921d6cddf497c24dd5f63879038cec2ab2f27d174", "platformid": "test-platform-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/audienceNetwork/audienceNetworktest/exemplary/native-1.1.json b/adapters/audienceNetwork/audienceNetworktest/exemplary/native-1.1.json index 08639bee013..34ef93617db 100644 --- a/adapters/audienceNetwork/audienceNetworktest/exemplary/native-1.1.json +++ b/adapters/audienceNetwork/audienceNetworktest/exemplary/native-1.1.json @@ -75,7 +75,8 @@ "authentication_id": "4e24a2b23fbfb5e41a9093b921d6cddf497c24dd5f63879038cec2ab2f27d174", "platformid": "test-platform-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/audienceNetwork/audienceNetworktest/exemplary/video.json b/adapters/audienceNetwork/audienceNetworktest/exemplary/video.json index 35bdf9a443e..571cce0ac5b 100644 --- a/adapters/audienceNetwork/audienceNetworktest/exemplary/video.json +++ b/adapters/audienceNetwork/audienceNetworktest/exemplary/video.json @@ -85,7 +85,8 @@ "authentication_id": "4e24a2b23fbfb5e41a9093b921d6cddf497c24dd5f63879038cec2ab2f27d174", "platformid": "test-platform-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/audienceNetwork/audienceNetworktest/exemplary/video_consented_providers.json b/adapters/audienceNetwork/audienceNetworktest/exemplary/video_consented_providers.json index 5b72f70cbfd..6daef7aef8d 100644 --- a/adapters/audienceNetwork/audienceNetworktest/exemplary/video_consented_providers.json +++ b/adapters/audienceNetwork/audienceNetworktest/exemplary/video_consented_providers.json @@ -94,7 +94,8 @@ "authentication_id": "4e24a2b23fbfb5e41a9093b921d6cddf497c24dd5f63879038cec2ab2f27d174", "platformid": "test-platform-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/audienceNetwork/audienceNetworktest/supplemental/banner-format-only.json b/adapters/audienceNetwork/audienceNetworktest/supplemental/banner-format-only.json index 450e0d9e45b..c14eb39c48d 100644 --- a/adapters/audienceNetwork/audienceNetworktest/supplemental/banner-format-only.json +++ b/adapters/audienceNetwork/audienceNetworktest/supplemental/banner-format-only.json @@ -83,7 +83,8 @@ "authentication_id": "4e24a2b23fbfb5e41a9093b921d6cddf497c24dd5f63879038cec2ab2f27d174", "platformid": "test-platform-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/audienceNetwork/audienceNetworktest/supplemental/invalid-adm.json b/adapters/audienceNetwork/audienceNetworktest/supplemental/invalid-adm.json index a5a9384edc5..f79c88e3e3c 100644 --- a/adapters/audienceNetwork/audienceNetworktest/supplemental/invalid-adm.json +++ b/adapters/audienceNetwork/audienceNetworktest/supplemental/invalid-adm.json @@ -74,7 +74,8 @@ "authentication_id": "4e24a2b23fbfb5e41a9093b921d6cddf497c24dd5f63879038cec2ab2f27d174", "platformid": "test-platform-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/audienceNetwork/audienceNetworktest/supplemental/missing-adm-bidid.json b/adapters/audienceNetwork/audienceNetworktest/supplemental/missing-adm-bidid.json index 50212155752..600e9d53cb5 100644 --- a/adapters/audienceNetwork/audienceNetworktest/supplemental/missing-adm-bidid.json +++ b/adapters/audienceNetwork/audienceNetworktest/supplemental/missing-adm-bidid.json @@ -74,7 +74,8 @@ "authentication_id": "4e24a2b23fbfb5e41a9093b921d6cddf497c24dd5f63879038cec2ab2f27d174", "platformid": "test-platform-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/audienceNetwork/audienceNetworktest/supplemental/missing-adm.json b/adapters/audienceNetwork/audienceNetworktest/supplemental/missing-adm.json index 832b16dca22..43f8bab75c4 100644 --- a/adapters/audienceNetwork/audienceNetworktest/supplemental/missing-adm.json +++ b/adapters/audienceNetwork/audienceNetworktest/supplemental/missing-adm.json @@ -74,7 +74,8 @@ "authentication_id": "4e24a2b23fbfb5e41a9093b921d6cddf497c24dd5f63879038cec2ab2f27d174", "platformid": "test-platform-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/audienceNetwork/audienceNetworktest/supplemental/multi-imp.json b/adapters/audienceNetwork/audienceNetworktest/supplemental/multi-imp.json index 682c33e46b8..27a1ab66048 100644 --- a/adapters/audienceNetwork/audienceNetworktest/supplemental/multi-imp.json +++ b/adapters/audienceNetwork/audienceNetworktest/supplemental/multi-imp.json @@ -100,7 +100,8 @@ "authentication_id": "dfecd103a45daeb2a01728afb8ce78f6738f6007ecfebe1ca616b196e22b43e9", "platformid": "test-platform-id" } - } + }, + "impIDs":["test-imp-1"] }, "mockResponse": { "status": 200, @@ -171,7 +172,8 @@ "authentication_id": "a5fead11a4db86d0f62f57c3d8001640227120c8ef236549f0db010c1dbab399", "platformid": "test-platform-id" } - } + }, + "impIDs":["test-imp-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/audienceNetwork/audienceNetworktest/supplemental/no-bid-204.json b/adapters/audienceNetwork/audienceNetworktest/supplemental/no-bid-204.json index c857ba2c83f..fca9e2824f7 100644 --- a/adapters/audienceNetwork/audienceNetworktest/supplemental/no-bid-204.json +++ b/adapters/audienceNetwork/audienceNetworktest/supplemental/no-bid-204.json @@ -75,7 +75,8 @@ "authentication_id": "4e24a2b23fbfb5e41a9093b921d6cddf497c24dd5f63879038cec2ab2f27d174", "platformid": "test-platform-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/audienceNetwork/audienceNetworktest/supplemental/server-error-500.json b/adapters/audienceNetwork/audienceNetworktest/supplemental/server-error-500.json index f0a11905cf8..b2ee6e93995 100644 --- a/adapters/audienceNetwork/audienceNetworktest/supplemental/server-error-500.json +++ b/adapters/audienceNetwork/audienceNetworktest/supplemental/server-error-500.json @@ -70,7 +70,8 @@ "authentication_id": "4e24a2b23fbfb5e41a9093b921d6cddf497c24dd5f63879038cec2ab2f27d174", "platformid": "test-platform-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "headers": { diff --git a/adapters/audienceNetwork/audienceNetworktest/supplemental/split-placementId.json b/adapters/audienceNetwork/audienceNetworktest/supplemental/split-placementId.json index 45c34192ea2..a81aa44943d 100644 --- a/adapters/audienceNetwork/audienceNetworktest/supplemental/split-placementId.json +++ b/adapters/audienceNetwork/audienceNetworktest/supplemental/split-placementId.json @@ -69,7 +69,8 @@ "authentication_id": "4e24a2b23fbfb5e41a9093b921d6cddf497c24dd5f63879038cec2ab2f27d174", "platformid": "test-platform-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/audienceNetwork/facebook.go b/adapters/audienceNetwork/facebook.go index ebd72938f03..807fe337cf2 100644 --- a/adapters/audienceNetwork/facebook.go +++ b/adapters/audienceNetwork/facebook.go @@ -109,6 +109,7 @@ func (a *adapter) buildRequests(request *openrtb2.BidRequest) ([]*adapters.Reque Uri: a.uri, Body: body, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(fbreq.Imp), }) } diff --git a/adapters/automatad/automatad.go b/adapters/automatad/automatad.go index 50dd2b79566..cbb5d2ef2cc 100644 --- a/adapters/automatad/automatad.go +++ b/adapters/automatad/automatad.go @@ -34,6 +34,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: a.endpoint, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/automatad/automatadtest/exemplary/simple-banner.json b/adapters/automatad/automatadtest/exemplary/simple-banner.json index 98d4a0a6944..a12282f22e5 100644 --- a/adapters/automatad/automatadtest/exemplary/simple-banner.json +++ b/adapters/automatad/automatadtest/exemplary/simple-banner.json @@ -52,7 +52,8 @@ "site": { "id": "123" } - } + }, + "impIDs":["test-banner-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/automatad/automatadtest/supplemental/bad-request.json b/adapters/automatad/automatadtest/supplemental/bad-request.json index df569ea16a8..550d8122164 100644 --- a/adapters/automatad/automatadtest/supplemental/bad-request.json +++ b/adapters/automatad/automatadtest/supplemental/bad-request.json @@ -52,7 +52,8 @@ "site": { "id": "123" } - } + }, + "impIDs":["test-banner-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/automatad/automatadtest/supplemental/error-500-request.json b/adapters/automatad/automatadtest/supplemental/error-500-request.json index 52f87543602..b4de92ff6ff 100644 --- a/adapters/automatad/automatadtest/supplemental/error-500-request.json +++ b/adapters/automatad/automatadtest/supplemental/error-500-request.json @@ -52,7 +52,8 @@ "site": { "id": "123" } - } + }, + "impIDs":["test-banner-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/automatad/automatadtest/supplemental/no-content.json b/adapters/automatad/automatadtest/supplemental/no-content.json index 7e3dec9ed84..75c7230a255 100644 --- a/adapters/automatad/automatadtest/supplemental/no-content.json +++ b/adapters/automatad/automatadtest/supplemental/no-content.json @@ -52,7 +52,8 @@ "site": { "id": "123" } - } + }, + "impIDs":["test-banner-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/avocet/avocet.go b/adapters/avocet/avocet.go index c922f32da64..097370859b3 100644 --- a/adapters/avocet/avocet.go +++ b/adapters/avocet/avocet.go @@ -38,6 +38,7 @@ func (a *AvocetAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adap Uri: a.Endpoint, Body: body, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{reqData}, nil } diff --git a/adapters/avocet/avocet_test.go b/adapters/avocet/avocet_test.go index 7d1295e09d8..d7356e2cb80 100644 --- a/adapters/avocet/avocet_test.go +++ b/adapters/avocet/avocet_test.go @@ -68,6 +68,7 @@ func TestAvocetAdapter_MakeRequests(t *testing.T) { "Accept": {"application/json"}, "Content-Type": {"application/json;charset=utf-8"}, }, + ImpIDs: []string{""}, }, }, wantErrs: nil, diff --git a/adapters/avocet/avocettest/exemplary/banner.json b/adapters/avocet/avocettest/exemplary/banner.json index ea5173f9137..cf6cf02a3a1 100644 --- a/adapters/avocet/avocettest/exemplary/banner.json +++ b/adapters/avocet/avocettest/exemplary/banner.json @@ -52,7 +52,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/avocet/avocettest/exemplary/video.json b/adapters/avocet/avocettest/exemplary/video.json index 64c3fa3bd73..2be96757501 100644 --- a/adapters/avocet/avocettest/exemplary/video.json +++ b/adapters/avocet/avocettest/exemplary/video.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/axis/axis.go b/adapters/axis/axis.go index 6d7658eb99e..4d15e19a4ea 100644 --- a/adapters/axis/axis.go +++ b/adapters/axis/axis.go @@ -77,6 +77,7 @@ func (a *adapter) buildRequest(request *openrtb2.BidRequest) (*adapters.RequestD Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, nil } diff --git a/adapters/axis/axistest/exemplary/simple-banner.json b/adapters/axis/axistest/exemplary/simple-banner.json index 2c276c49b6d..b07bfe330e2 100644 --- a/adapters/axis/axistest/exemplary/simple-banner.json +++ b/adapters/axis/axistest/exemplary/simple-banner.json @@ -72,7 +72,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/axis/axistest/exemplary/simple-native.json b/adapters/axis/axistest/exemplary/simple-native.json index ce337ec64a2..6fe3969780d 100644 --- a/adapters/axis/axistest/exemplary/simple-native.json +++ b/adapters/axis/axistest/exemplary/simple-native.json @@ -56,7 +56,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/axis/axistest/exemplary/simple-video.json b/adapters/axis/axistest/exemplary/simple-video.json index 291a4f42762..d40741f2524 100644 --- a/adapters/axis/axistest/exemplary/simple-video.json +++ b/adapters/axis/axistest/exemplary/simple-video.json @@ -70,7 +70,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/axis/axistest/exemplary/simple-web-banner.json b/adapters/axis/axistest/exemplary/simple-web-banner.json index 06ba5bc5d54..3f64da0f96a 100644 --- a/adapters/axis/axistest/exemplary/simple-web-banner.json +++ b/adapters/axis/axistest/exemplary/simple-web-banner.json @@ -72,7 +72,8 @@ "ip": "123.123.123.123", "ua": "Ubuntu" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/axis/axistest/supplemental/bad_media_type.json b/adapters/axis/axistest/supplemental/bad_media_type.json index bf26adc5418..2e843e00a24 100644 --- a/adapters/axis/axistest/supplemental/bad_media_type.json +++ b/adapters/axis/axistest/supplemental/bad_media_type.json @@ -45,7 +45,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/axis/axistest/supplemental/bad_response.json b/adapters/axis/axistest/supplemental/bad_response.json index ae1ad6a6a52..fa1b7579f25 100644 --- a/adapters/axis/axistest/supplemental/bad_response.json +++ b/adapters/axis/axistest/supplemental/bad_response.json @@ -69,7 +69,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/axis/axistest/supplemental/status-204.json b/adapters/axis/axistest/supplemental/status-204.json index db8cdf2a748..c2e696608ec 100644 --- a/adapters/axis/axistest/supplemental/status-204.json +++ b/adapters/axis/axistest/supplemental/status-204.json @@ -69,7 +69,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/axis/axistest/supplemental/status-not-200.json b/adapters/axis/axistest/supplemental/status-not-200.json index 2d27dcfc674..5cc1dc9e0bf 100644 --- a/adapters/axis/axistest/supplemental/status-not-200.json +++ b/adapters/axis/axistest/supplemental/status-not-200.json @@ -69,7 +69,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/axonix/axonix.go b/adapters/axonix/axonix.go index 2c29cc258a4..b57e44057d7 100644 --- a/adapters/axonix/axonix.go +++ b/adapters/axonix/axonix.go @@ -80,6 +80,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Uri: endpoint, Body: requestJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/axonix/axonixtest/exemplary/banner-and-video.json b/adapters/axonix/axonixtest/exemplary/banner-and-video.json index 04b640826dc..20719a19bbd 100644 --- a/adapters/axonix/axonixtest/exemplary/banner-and-video.json +++ b/adapters/axonix/axonixtest/exemplary/banner-and-video.json @@ -80,7 +80,8 @@ } } ] - } + }, + "impIDs":["test-imp-id","test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/axonix/axonixtest/exemplary/banner-video-native.json b/adapters/axonix/axonixtest/exemplary/banner-video-native.json index 5dd5775004a..9b632e5538c 100644 --- a/adapters/axonix/axonixtest/exemplary/banner-video-native.json +++ b/adapters/axonix/axonixtest/exemplary/banner-video-native.json @@ -104,7 +104,8 @@ } } ] - } + }, + "impIDs":["test-imp-id","native-imp","test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/axonix/axonixtest/exemplary/simple-banner.json b/adapters/axonix/axonixtest/exemplary/simple-banner.json index d1199b80929..39bc651433e 100644 --- a/adapters/axonix/axonixtest/exemplary/simple-banner.json +++ b/adapters/axonix/axonixtest/exemplary/simple-banner.json @@ -53,7 +53,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/axonix/axonixtest/exemplary/simple-video.json b/adapters/axonix/axonixtest/exemplary/simple-video.json index 56964b13565..e78fabc71e3 100644 --- a/adapters/axonix/axonixtest/exemplary/simple-video.json +++ b/adapters/axonix/axonixtest/exemplary/simple-video.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/axonix/axonixtest/supplemental/bad-response-no-body.json b/adapters/axonix/axonixtest/supplemental/bad-response-no-body.json index a4704990ef6..8fafaa38fed 100644 --- a/adapters/axonix/axonixtest/supplemental/bad-response-no-body.json +++ b/adapters/axonix/axonixtest/supplemental/bad-response-no-body.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200 diff --git a/adapters/axonix/axonixtest/supplemental/status-bad-request.json b/adapters/axonix/axonixtest/supplemental/status-bad-request.json index 7483da19834..3c9f89a8054 100644 --- a/adapters/axonix/axonixtest/supplemental/status-bad-request.json +++ b/adapters/axonix/axonixtest/supplemental/status-bad-request.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/axonix/axonixtest/supplemental/status-no-content.json b/adapters/axonix/axonixtest/supplemental/status-no-content.json index 7d4cd79589d..b4873859a33 100644 --- a/adapters/axonix/axonixtest/supplemental/status-no-content.json +++ b/adapters/axonix/axonixtest/supplemental/status-no-content.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/axonix/axonixtest/supplemental/unexpected-status-code.json b/adapters/axonix/axonixtest/supplemental/unexpected-status-code.json index fe0f7141bc8..9c0e5a4f8f2 100644 --- a/adapters/axonix/axonixtest/supplemental/unexpected-status-code.json +++ b/adapters/axonix/axonixtest/supplemental/unexpected-status-code.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/axonix/axonixtest/supplemental/valid-extension.json b/adapters/axonix/axonixtest/supplemental/valid-extension.json index c174d245bc8..dd5ecc198c1 100644 --- a/adapters/axonix/axonixtest/supplemental/valid-extension.json +++ b/adapters/axonix/axonixtest/supplemental/valid-extension.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/axonix/axonixtest/supplemental/valid-with-device.json b/adapters/axonix/axonixtest/supplemental/valid-with-device.json index 50d48410e8a..6137ccaab1a 100644 --- a/adapters/axonix/axonixtest/supplemental/valid-with-device.json +++ b/adapters/axonix/axonixtest/supplemental/valid-with-device.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfront.go b/adapters/beachfront/beachfront.go index 326b4f31091..154a14286cd 100644 --- a/adapters/beachfront/beachfront.go +++ b/adapters/beachfront/beachfront.go @@ -153,6 +153,7 @@ func (a *BeachfrontAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo * Uri: a.bannerEndpoint, Body: bytes, Headers: headers, + ImpIDs: getBannerImpIDs(beachfrontRequests.Banner.Slots), } nurlBump++ @@ -174,6 +175,7 @@ func (a *BeachfrontAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo * Uri: a.extraInfo.VideoEndpoint + "=" + beachfrontRequests.ADMVideo[j].AppId, Body: bytes, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(beachfrontRequests.ADMVideo[j].Request.Imp), } admBump++ @@ -193,6 +195,7 @@ func (a *BeachfrontAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo * Uri: a.extraInfo.VideoEndpoint + "=" + beachfrontRequests.NurlVideo[j].AppId + nurlVideoEndpointSuffix, Body: bytes, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(beachfrontRequests.NurlVideo[j].Request.Imp), } } else { errs = append(errs, err) @@ -796,3 +799,11 @@ func getDefaultExtraInfo() ExtraInfo { VideoEndpoint: defaultVideoEndpoint, } } + +func getBannerImpIDs(bfs []beachfrontSlot) []string { + impIDs := make([]string, len(bfs)) + for i := range bfs { + impIDs[i] = bfs[i].Slot + } + return impIDs +} diff --git a/adapters/beachfront/beachfronttest/exemplary/adm-video-app.json b/adapters/beachfront/beachfronttest/exemplary/adm-video-app.json index 47507ba1cf7..c4506c5dbcb 100644 --- a/adapters/beachfront/beachfronttest/exemplary/adm-video-app.json +++ b/adapters/beachfront/beachfronttest/exemplary/adm-video-app.json @@ -57,7 +57,8 @@ "devicetype": 1, "ip":"192.168.168.168" } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/exemplary/adm-video.json b/adapters/beachfront/beachfronttest/exemplary/adm-video.json index 8fd8a4597e7..39a06380a7a 100644 --- a/adapters/beachfront/beachfronttest/exemplary/adm-video.json +++ b/adapters/beachfront/beachfronttest/exemplary/adm-video.json @@ -57,7 +57,8 @@ "devicetype": 2, "ip":"192.168.168.168" } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/exemplary/banner.json b/adapters/beachfront/beachfronttest/exemplary/banner.json index 1707f3bbca9..2a15c990134 100644 --- a/adapters/beachfront/beachfronttest/exemplary/banner.json +++ b/adapters/beachfront/beachfronttest/exemplary/banner.json @@ -6,6 +6,7 @@ }, "imp": [ { + "id":"test-imp-id", "bidfloor": 0.02, "banner": { "format": [ @@ -32,7 +33,7 @@ "body": { "slots": [ { - "slot": "", + "slot": "test-imp-id", "id": "bannerAppId1", "bidfloor": 0.02, "sizes": [ @@ -64,7 +65,8 @@ "nodes": null, "ver": "" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/exemplary/nurl-video.json b/adapters/beachfront/beachfronttest/exemplary/nurl-video.json index 4a2a2d84926..39e8042f3ba 100644 --- a/adapters/beachfront/beachfronttest/exemplary/nurl-video.json +++ b/adapters/beachfront/beachfronttest/exemplary/nurl-video.json @@ -59,7 +59,8 @@ "cur": [ "USD" ] - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/adm-video-app-alphanum-bundle.json b/adapters/beachfront/beachfronttest/supplemental/adm-video-app-alphanum-bundle.json index aad4d1f59e1..da2091c0faa 100644 --- a/adapters/beachfront/beachfronttest/supplemental/adm-video-app-alphanum-bundle.json +++ b/adapters/beachfront/beachfronttest/supplemental/adm-video-app-alphanum-bundle.json @@ -56,7 +56,8 @@ "devicetype": 1, "ip":"192.168.168.168" } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/adm-video-app-malformed-bundle.json b/adapters/beachfront/beachfronttest/supplemental/adm-video-app-malformed-bundle.json index 6d2b3a120b1..133232c73ad 100644 --- a/adapters/beachfront/beachfronttest/supplemental/adm-video-app-malformed-bundle.json +++ b/adapters/beachfront/beachfronttest/supplemental/adm-video-app-malformed-bundle.json @@ -57,7 +57,8 @@ "devicetype": 1, "ip":"192.168.168.168" } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/adm-video-by-explicit.json b/adapters/beachfront/beachfronttest/supplemental/adm-video-by-explicit.json index 7855639cd80..7ffea042824 100644 --- a/adapters/beachfront/beachfronttest/supplemental/adm-video-by-explicit.json +++ b/adapters/beachfront/beachfronttest/supplemental/adm-video-by-explicit.json @@ -58,7 +58,8 @@ "devicetype": 2, "ip":"255.255.255.255" } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/adm-video-no-cat.json b/adapters/beachfront/beachfronttest/supplemental/adm-video-no-cat.json index 2e6bbc5d56a..d89cc741aba 100644 --- a/adapters/beachfront/beachfronttest/supplemental/adm-video-no-cat.json +++ b/adapters/beachfront/beachfronttest/supplemental/adm-video-no-cat.json @@ -57,7 +57,8 @@ "devicetype": 2, "ip":"192.168.168.168" } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/adm-video-no-ip.json b/adapters/beachfront/beachfronttest/supplemental/adm-video-no-ip.json index 0fe36fafc76..d250bc069f2 100644 --- a/adapters/beachfront/beachfronttest/supplemental/adm-video-no-ip.json +++ b/adapters/beachfront/beachfronttest/supplemental/adm-video-no-ip.json @@ -54,7 +54,8 @@ "devicetype": 2, "ip":"255.255.255.255" } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/adm-video-no-size.json b/adapters/beachfront/beachfronttest/supplemental/adm-video-no-size.json index a84e6c9199b..477c3af0962 100644 --- a/adapters/beachfront/beachfronttest/supplemental/adm-video-no-size.json +++ b/adapters/beachfront/beachfronttest/supplemental/adm-video-no-size.json @@ -54,7 +54,8 @@ "devicetype": 2, "ip": "192.168.168.168" } - } + }, + "impIDs": ["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/adm-video-partial-size.json b/adapters/beachfront/beachfronttest/supplemental/adm-video-partial-size.json index 07ccfcf3401..54d36c4a5c6 100644 --- a/adapters/beachfront/beachfronttest/supplemental/adm-video-partial-size.json +++ b/adapters/beachfront/beachfronttest/supplemental/adm-video-partial-size.json @@ -55,7 +55,8 @@ "devicetype": 2, "ip": "192.168.168.168" } - } + }, + "impIDs": ["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/adm-video-schain.json b/adapters/beachfront/beachfronttest/supplemental/adm-video-schain.json index 56565acc8a7..407c744ae47 100644 --- a/adapters/beachfront/beachfronttest/supplemental/adm-video-schain.json +++ b/adapters/beachfront/beachfronttest/supplemental/adm-video-schain.json @@ -91,7 +91,8 @@ } } } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/adm-video-zero-size-partial.json b/adapters/beachfront/beachfronttest/supplemental/adm-video-zero-size-partial.json index f4ce178e980..125af3f75af 100644 --- a/adapters/beachfront/beachfronttest/supplemental/adm-video-zero-size-partial.json +++ b/adapters/beachfront/beachfronttest/supplemental/adm-video-zero-size-partial.json @@ -56,7 +56,8 @@ "devicetype": 2, "ip": "192.168.168.168" } - } + }, + "impIDs": ["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/adm-video-zero-size.json b/adapters/beachfront/beachfronttest/supplemental/adm-video-zero-size.json index cf0a4e6daa6..c17d32bb582 100644 --- a/adapters/beachfront/beachfronttest/supplemental/adm-video-zero-size.json +++ b/adapters/beachfront/beachfronttest/supplemental/adm-video-zero-size.json @@ -56,7 +56,8 @@ "devicetype": 2, "ip": "192.168.168.168" } - } + }, + "impIDs": ["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/banner-204-with-body.json b/adapters/beachfront/beachfronttest/supplemental/banner-204-with-body.json index d9a2d14fe32..4980767c465 100644 --- a/adapters/beachfront/beachfronttest/supplemental/banner-204-with-body.json +++ b/adapters/beachfront/beachfronttest/supplemental/banner-204-with-body.json @@ -66,7 +66,8 @@ "nodes": null, "ver": "" } - } + }, + "impIDs":["dudImp"] }, "mockResponse": { "status": 204, diff --git a/adapters/beachfront/beachfronttest/supplemental/banner-204.json b/adapters/beachfront/beachfronttest/supplemental/banner-204.json index eb24f592b02..b7837d5b304 100644 --- a/adapters/beachfront/beachfronttest/supplemental/banner-204.json +++ b/adapters/beachfront/beachfronttest/supplemental/banner-204.json @@ -66,7 +66,8 @@ "nodes": null, "ver": "" } - } + }, + "impIDs":["dudImp"] }, "mockResponse": { "status": 204, diff --git a/adapters/beachfront/beachfronttest/supplemental/banner-and-adm-video-by-explicit.json b/adapters/beachfront/beachfronttest/supplemental/banner-and-adm-video-by-explicit.json index 57853983dfa..c9add98b04d 100644 --- a/adapters/beachfront/beachfronttest/supplemental/banner-and-adm-video-by-explicit.json +++ b/adapters/beachfront/beachfronttest/supplemental/banner-and-adm-video-by-explicit.json @@ -78,7 +78,8 @@ "nodes": null, "ver": "" } - } + }, + "impIDs":["mix1"] }, "mockResponse": { "status": 200, @@ -123,7 +124,8 @@ "cur": [ "USD" ] - } + }, + "impIDs":["mix1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/banner-and-adm-video-expected-204-response-on-banner.json b/adapters/beachfront/beachfronttest/supplemental/banner-and-adm-video-expected-204-response-on-banner.json index 27ed881f0a8..e1f3d13fcf3 100644 --- a/adapters/beachfront/beachfronttest/supplemental/banner-and-adm-video-expected-204-response-on-banner.json +++ b/adapters/beachfront/beachfronttest/supplemental/banner-and-adm-video-expected-204-response-on-banner.json @@ -77,7 +77,8 @@ "nodes": null, "ver": "" } - } + }, + "impIDs":["mix1"] }, "mockResponse": { "status": 204, @@ -113,7 +114,8 @@ "cur": [ "USD" ] - } + }, + "impIDs":["mix1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/banner-and-adm-video.json b/adapters/beachfront/beachfronttest/supplemental/banner-and-adm-video.json index 95073918079..21875ecc0fc 100644 --- a/adapters/beachfront/beachfronttest/supplemental/banner-and-adm-video.json +++ b/adapters/beachfront/beachfronttest/supplemental/banner-and-adm-video.json @@ -77,7 +77,8 @@ "nodes": null, "ver": "" } - } + }, + "impIDs":["mix1"] }, "mockResponse": { "status": 200, @@ -122,7 +123,8 @@ "cur": [ "USD" ] - } + }, + "impIDs":["mix1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/banner-and-nurl-video.json b/adapters/beachfront/beachfronttest/supplemental/banner-and-nurl-video.json index a05edc4000a..657dc205968 100644 --- a/adapters/beachfront/beachfronttest/supplemental/banner-and-nurl-video.json +++ b/adapters/beachfront/beachfronttest/supplemental/banner-and-nurl-video.json @@ -75,7 +75,8 @@ "nodes": null, "ver": "" } - } + }, + "impIDs":["mix1"] }, "mockResponse": { "status": 200, @@ -120,7 +121,8 @@ "cur": [ "USD" ] - } + }, + "impIDs":["mix1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/banner-bad-request-400.json b/adapters/beachfront/beachfronttest/supplemental/banner-bad-request-400.json index 1e54fea6183..336f5f566a2 100644 --- a/adapters/beachfront/beachfronttest/supplemental/banner-bad-request-400.json +++ b/adapters/beachfront/beachfronttest/supplemental/banner-bad-request-400.json @@ -6,6 +6,7 @@ }, "imp": [ { + "id":"test-imp-id", "banner": { "format": [ { @@ -30,7 +31,7 @@ "body": { "slots": [ { - "slot": "", + "slot": "test-imp-id", "id": "dudAppId", "bidfloor": 0, "sizes": [ @@ -62,7 +63,8 @@ "nodes": null, "ver": "" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/beachfront/beachfronttest/supplemental/banner-schain.json b/adapters/beachfront/beachfronttest/supplemental/banner-schain.json index b2cede7afb1..37b80e5b5b8 100644 --- a/adapters/beachfront/beachfronttest/supplemental/banner-schain.json +++ b/adapters/beachfront/beachfronttest/supplemental/banner-schain.json @@ -6,6 +6,7 @@ }, "imp": [ { + "id":"test-imp-id", "bidfloor": 0.02, "banner": { "format": [ @@ -49,7 +50,7 @@ "body": { "slots": [ { - "slot": "", + "slot": "test-imp-id", "id": "bannerAppId1", "bidfloor": 0.02, "sizes": [ @@ -88,7 +89,8 @@ } ] } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/bidder_response_unmarshal_error_adm_video.json b/adapters/beachfront/beachfronttest/supplemental/bidder_response_unmarshal_error_adm_video.json index fe558c80247..c6e71bf017a 100644 --- a/adapters/beachfront/beachfronttest/supplemental/bidder_response_unmarshal_error_adm_video.json +++ b/adapters/beachfront/beachfronttest/supplemental/bidder_response_unmarshal_error_adm_video.json @@ -57,7 +57,8 @@ "devicetype": 2, "ip":"255.255.255.255" } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/bidder_response_unmarshal_error_banner.json b/adapters/beachfront/beachfronttest/supplemental/bidder_response_unmarshal_error_banner.json index 9b83e0d39e3..16d3cc73c53 100644 --- a/adapters/beachfront/beachfronttest/supplemental/bidder_response_unmarshal_error_banner.json +++ b/adapters/beachfront/beachfronttest/supplemental/bidder_response_unmarshal_error_banner.json @@ -6,6 +6,7 @@ }, "imp": [ { + "id":"test-imp-id", "banner": { "format": [ { @@ -29,7 +30,7 @@ "body": { "slots": [ { - "slot": "", + "slot": "test-imp-id", "id": "bannerAppId1", "bidfloor": 0, "sizes": [ @@ -61,7 +62,8 @@ "nodes": null, "ver": "" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/bidder_response_unmarshal_error_nurl_video.json b/adapters/beachfront/beachfronttest/supplemental/bidder_response_unmarshal_error_nurl_video.json index ff467f7b317..7a928c44341 100644 --- a/adapters/beachfront/beachfronttest/supplemental/bidder_response_unmarshal_error_nurl_video.json +++ b/adapters/beachfront/beachfronttest/supplemental/bidder_response_unmarshal_error_nurl_video.json @@ -59,7 +59,8 @@ "devicetype": 2, "ip":"255.255.255.255" } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-converted.json b/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-converted.json index ba361ef445f..ec95022fa49 100644 --- a/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-converted.json +++ b/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-converted.json @@ -78,7 +78,8 @@ "devicetype": 2, "ip":"192.168.168.168" } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-ext-wins.json b/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-ext-wins.json index b0bf84fa7b4..b77738a411f 100644 --- a/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-ext-wins.json +++ b/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-ext-wins.json @@ -61,7 +61,8 @@ "devicetype": 2, "ip":"192.168.168.168" } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-imp-wins.json b/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-imp-wins.json index 379fe1965e7..c2c9dbfc324 100644 --- a/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-imp-wins.json +++ b/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-imp-wins.json @@ -61,7 +61,8 @@ "devicetype": 2, "ip":"192.168.168.168" } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-warning-and-fallback.json b/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-warning-and-fallback.json index 71b3161b894..f4767e12c8e 100644 --- a/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-warning-and-fallback.json +++ b/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-warning-and-fallback.json @@ -78,7 +78,8 @@ "devicetype": 2, "ip":"192.168.168.168" } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-zero-by-min-both.json b/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-zero-by-min-both.json index c4d85323ada..954d3e8a2cb 100644 --- a/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-zero-by-min-both.json +++ b/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-zero-by-min-both.json @@ -59,7 +59,8 @@ "devicetype": 2, "ip":"192.168.168.168" } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-zero-by-min-ext.json b/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-zero-by-min-ext.json index f4ac4e041c2..209fb0faea0 100644 --- a/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-zero-by-min-ext.json +++ b/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-zero-by-min-ext.json @@ -58,7 +58,8 @@ "devicetype": 2, "ip":"192.168.168.168" } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-zero-by-min-imp.json b/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-zero-by-min-imp.json index a574e99b7c6..dda02dea3c4 100644 --- a/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-zero-by-min-imp.json +++ b/adapters/beachfront/beachfronttest/supplemental/currency-adm-video-zero-by-min-imp.json @@ -58,7 +58,8 @@ "devicetype": 2, "ip":"192.168.168.168" } - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/internal-server-error-500.json b/adapters/beachfront/beachfronttest/supplemental/internal-server-error-500.json index 7344db12084..ac95052eaa5 100644 --- a/adapters/beachfront/beachfronttest/supplemental/internal-server-error-500.json +++ b/adapters/beachfront/beachfronttest/supplemental/internal-server-error-500.json @@ -60,7 +60,8 @@ "cur": [ "USD" ] - } + }, + "impIDs":["video1"] }, "mockResponse": { "status": 500, diff --git a/adapters/beachfront/beachfronttest/supplemental/six-nine-combo.json b/adapters/beachfront/beachfronttest/supplemental/six-nine-combo.json index c75642dff8c..57924dcb27e 100644 --- a/adapters/beachfront/beachfronttest/supplemental/six-nine-combo.json +++ b/adapters/beachfront/beachfronttest/supplemental/six-nine-combo.json @@ -208,7 +208,8 @@ "nodes": null, "ver": "" } - } + }, + "impIDs":["ADMVideoWithBannerImp1","ADMVideoWithBannerImp2","RegularBannerImp4","RegularBannerImp5"] }, "mockResponse": { "status" : 200, @@ -279,7 +280,8 @@ "cur": [ "USD" ] - } + }, + "impIDs":["ADMVideoWithBannerImp1"] }, "mockResponse": { "status" : 200, @@ -339,7 +341,8 @@ "cur": [ "USD" ] - } + }, + "impIDs":["ADMVideoWithBannerImp2"] }, "mockResponse": { "status" : 200, @@ -399,7 +402,8 @@ "cur": [ "USD" ] - } + }, + "impIDs":["ADMVideoImp6"] }, "mockResponse": { "status" : 200, @@ -460,7 +464,8 @@ "cur": [ "USD" ] - } + }, + "impIDs":["NURLVideoImp3"] }, "mockResponse": { "status": 200, diff --git a/adapters/beachfront/beachfronttest/supplemental/two-four-combo.json b/adapters/beachfront/beachfronttest/supplemental/two-four-combo.json index a305034fc0f..a9c48d8fff5 100644 --- a/adapters/beachfront/beachfronttest/supplemental/two-four-combo.json +++ b/adapters/beachfront/beachfronttest/supplemental/two-four-combo.json @@ -121,7 +121,8 @@ "ver": "" } - } + }, + "impIDs":["ComboADMVideoWithBannerImp1","ComboNurlVideoWithBannerImp2"] }, "mockResponse": { "status": 200, @@ -177,7 +178,8 @@ "cur":[ "USD" ] - } + }, + "impIDs":["ComboADMVideoWithBannerImp1"] }, "mockResponse": { "status": 200, @@ -247,7 +249,8 @@ "cur":[ "USD" ] - } + }, + "impIDs":["ComboNurlVideoWithBannerImp2"] }, "mockResponse": { "status": 200, diff --git a/adapters/beintoo/beintoo.go b/adapters/beintoo/beintoo.go index 5b2cbfcbb2a..ee16082a750 100644 --- a/adapters/beintoo/beintoo.go +++ b/adapters/beintoo/beintoo.go @@ -61,6 +61,7 @@ func (a *BeintooAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *ada Uri: a.endpoint, Body: data, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errors } diff --git a/adapters/beintoo/beintootest/exemplary/minimal-banner.json b/adapters/beintoo/beintootest/exemplary/minimal-banner.json index 6579bc68e17..836824ed3cc 100644 --- a/adapters/beintoo/beintootest/exemplary/minimal-banner.json +++ b/adapters/beintoo/beintootest/exemplary/minimal-banner.json @@ -75,7 +75,8 @@ "ip": "123.123.123.123", "dnt": 1 } - } + }, + "impIDs":["some_test_ad_id"] }, "mockResponse": { "status": 200, diff --git a/adapters/beintoo/beintootest/supplemental/add-bidfloor.json b/adapters/beintoo/beintootest/supplemental/add-bidfloor.json index b578701bc24..6f7b35f2741 100644 --- a/adapters/beintoo/beintootest/supplemental/add-bidfloor.json +++ b/adapters/beintoo/beintootest/supplemental/add-bidfloor.json @@ -30,7 +30,8 @@ "tagid": "1234568", "bidfloor": 1.25 }] - } + }, + "impIDs":["some_test_ad"] }, "mockResponse": { "status": 200, diff --git a/adapters/beintoo/beintootest/supplemental/build-banner-object.json b/adapters/beintoo/beintootest/supplemental/build-banner-object.json index 0ad6cf955a3..9b68695f762 100644 --- a/adapters/beintoo/beintootest/supplemental/build-banner-object.json +++ b/adapters/beintoo/beintootest/supplemental/build-banner-object.json @@ -49,7 +49,8 @@ "tagid": "1234568", "bidfloor": 1.25 }] - } + }, + "impIDs":["some_test_ad"] }, "mockResponse": { "status": 200, diff --git a/adapters/beintoo/beintootest/supplemental/invalid-response-no-bids.json b/adapters/beintoo/beintootest/supplemental/invalid-response-no-bids.json index fa305556bf8..d3141f5d187 100644 --- a/adapters/beintoo/beintootest/supplemental/invalid-response-no-bids.json +++ b/adapters/beintoo/beintootest/supplemental/invalid-response-no-bids.json @@ -34,7 +34,8 @@ "tagid": "98765" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/beintoo/beintootest/supplemental/invalid-response-unmarshall-error.json b/adapters/beintoo/beintootest/supplemental/invalid-response-unmarshall-error.json index 6d587c2252b..eb8840d3404 100644 --- a/adapters/beintoo/beintootest/supplemental/invalid-response-unmarshall-error.json +++ b/adapters/beintoo/beintootest/supplemental/invalid-response-unmarshall-error.json @@ -29,7 +29,8 @@ "secure": 0, "tagid": "654321" }] - } + }, + "impIDs":["some_test_ad"] }, "mockResponse": { "status": 200, diff --git a/adapters/beintoo/beintootest/supplemental/server-error-code.json b/adapters/beintoo/beintootest/supplemental/server-error-code.json index 2ece4370f95..4a52cbfb09b 100644 --- a/adapters/beintoo/beintootest/supplemental/server-error-code.json +++ b/adapters/beintoo/beintootest/supplemental/server-error-code.json @@ -34,7 +34,8 @@ "tagid": "1234567" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/beintoo/beintootest/supplemental/server-no-content.json b/adapters/beintoo/beintootest/supplemental/server-no-content.json index 6a6cce3e065..60b6f0a23fa 100644 --- a/adapters/beintoo/beintootest/supplemental/server-no-content.json +++ b/adapters/beintoo/beintootest/supplemental/server-no-content.json @@ -34,7 +34,8 @@ "tagid": "1234567" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/beintoo/beintootest/supplemental/site-domain-and-url-correctly-parsed.json b/adapters/beintoo/beintootest/supplemental/site-domain-and-url-correctly-parsed.json index 1f8ba2e1783..cdac9d9a153 100644 --- a/adapters/beintoo/beintootest/supplemental/site-domain-and-url-correctly-parsed.json +++ b/adapters/beintoo/beintootest/supplemental/site-domain-and-url-correctly-parsed.json @@ -48,7 +48,8 @@ "domain": "www.publisher.com", "page": "http://www.publisher.com/awesome/site?with=some¶meters=here" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bematterfull/bematterfull.go b/adapters/bematterfull/bematterfull.go index c1b4a9c4381..337bbc1b60c 100644 --- a/adapters/bematterfull/bematterfull.go +++ b/adapters/bematterfull/bematterfull.go @@ -91,6 +91,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Body: requestJSON, Uri: endpoint, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), } requests = append(requests, request) diff --git a/adapters/bematterfull/bematterfulltest/exemplary/banner.json b/adapters/bematterfull/bematterfulltest/exemplary/banner.json index d90cc677c0f..072ec6a532e 100644 --- a/adapters/bematterfull/bematterfulltest/exemplary/banner.json +++ b/adapters/bematterfull/bematterfulltest/exemplary/banner.json @@ -103,7 +103,8 @@ "id": "pubid" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, @@ -183,7 +184,8 @@ "id": "pubid" } } - } + }, + "impIDs":["2"] }, "mockResponse": { "status": 200, diff --git a/adapters/bematterfull/bematterfulltest/exemplary/native.json b/adapters/bematterfull/bematterfulltest/exemplary/native.json index 7f81dce6237..14715a0add8 100644 --- a/adapters/bematterfull/bematterfulltest/exemplary/native.json +++ b/adapters/bematterfull/bematterfulltest/exemplary/native.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bematterfull/bematterfulltest/exemplary/video.json b/adapters/bematterfull/bematterfulltest/exemplary/video.json index eb6a02a4249..8036f573954 100644 --- a/adapters/bematterfull/bematterfulltest/exemplary/video.json +++ b/adapters/bematterfull/bematterfulltest/exemplary/video.json @@ -128,7 +128,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bematterfull/bematterfulltest/supplemental/bad-response.json b/adapters/bematterfull/bematterfulltest/supplemental/bad-response.json index bf459fce210..942c73e7d30 100644 --- a/adapters/bematterfull/bematterfulltest/supplemental/bad-response.json +++ b/adapters/bematterfull/bematterfulltest/supplemental/bad-response.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bematterfull/bematterfulltest/supplemental/empty-mediatype.json b/adapters/bematterfull/bematterfulltest/supplemental/empty-mediatype.json index b408c7510a7..19b0cd29582 100644 --- a/adapters/bematterfull/bematterfulltest/supplemental/empty-mediatype.json +++ b/adapters/bematterfull/bematterfulltest/supplemental/empty-mediatype.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bematterfull/bematterfulltest/supplemental/empty-seatbid-0-bid.json b/adapters/bematterfull/bematterfulltest/supplemental/empty-seatbid-0-bid.json index 94c7905832d..ab692bdc861 100644 --- a/adapters/bematterfull/bematterfulltest/supplemental/empty-seatbid-0-bid.json +++ b/adapters/bematterfull/bematterfulltest/supplemental/empty-seatbid-0-bid.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bematterfull/bematterfulltest/supplemental/empty-seatbid.json b/adapters/bematterfull/bematterfulltest/supplemental/empty-seatbid.json index 3a7fee5a102..68c7aee64e8 100644 --- a/adapters/bematterfull/bematterfulltest/supplemental/empty-seatbid.json +++ b/adapters/bematterfull/bematterfulltest/supplemental/empty-seatbid.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bematterfull/bematterfulltest/supplemental/invalid-mediatype.json b/adapters/bematterfull/bematterfulltest/supplemental/invalid-mediatype.json index 138dd7bbd5d..409eae60d7b 100644 --- a/adapters/bematterfull/bematterfulltest/supplemental/invalid-mediatype.json +++ b/adapters/bematterfull/bematterfulltest/supplemental/invalid-mediatype.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bematterfull/bematterfulltest/supplemental/status-204.json b/adapters/bematterfull/bematterfulltest/supplemental/status-204.json index e5cf2f4096c..11813fea074 100644 --- a/adapters/bematterfull/bematterfulltest/supplemental/status-204.json +++ b/adapters/bematterfull/bematterfulltest/supplemental/status-204.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 204, diff --git a/adapters/bematterfull/bematterfulltest/supplemental/status-400.json b/adapters/bematterfull/bematterfulltest/supplemental/status-400.json index 0a74f74f751..bf1e584d1b3 100644 --- a/adapters/bematterfull/bematterfulltest/supplemental/status-400.json +++ b/adapters/bematterfull/bematterfulltest/supplemental/status-400.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 400, diff --git a/adapters/bematterfull/bematterfulltest/supplemental/status-503.json b/adapters/bematterfull/bematterfulltest/supplemental/status-503.json index 71c8936e94e..0f0ca81846c 100644 --- a/adapters/bematterfull/bematterfulltest/supplemental/status-503.json +++ b/adapters/bematterfull/bematterfulltest/supplemental/status-503.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 503 diff --git a/adapters/bematterfull/bematterfulltest/supplemental/unexpected-status.json b/adapters/bematterfull/bematterfulltest/supplemental/unexpected-status.json index 9f4c43ab0d2..032a4fb5c60 100644 --- a/adapters/bematterfull/bematterfulltest/supplemental/unexpected-status.json +++ b/adapters/bematterfull/bematterfulltest/supplemental/unexpected-status.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 403, diff --git a/adapters/between/between.go b/adapters/between/between.go index 25ac3f0dd57..50c130a7676 100644 --- a/adapters/between/between.go +++ b/adapters/between/between.go @@ -63,6 +63,7 @@ func (a *BetweenAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *ada Uri: endpoint, Body: data, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errors } diff --git a/adapters/between/betweentest/exemplary/multi-request.json b/adapters/between/betweentest/exemplary/multi-request.json index 345e99dd527..0ecef767d32 100644 --- a/adapters/between/betweentest/exemplary/multi-request.json +++ b/adapters/between/betweentest/exemplary/multi-request.json @@ -98,7 +98,8 @@ "ip": "8.8.8.12" }, "tmax": 500 - } + }, + "impIDs":["some-impression-id1","some-impression-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/between/betweentest/exemplary/secure-detect.json b/adapters/between/betweentest/exemplary/secure-detect.json index 9df77f0d3cc..eceecd33bf1 100644 --- a/adapters/between/betweentest/exemplary/secure-detect.json +++ b/adapters/between/betweentest/exemplary/secure-detect.json @@ -55,7 +55,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/between/betweentest/exemplary/simple-site-banner.json b/adapters/between/betweentest/exemplary/simple-site-banner.json index bcb7b30eea0..c606a07f84d 100644 --- a/adapters/between/betweentest/exemplary/simple-site-banner.json +++ b/adapters/between/betweentest/exemplary/simple-site-banner.json @@ -55,7 +55,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/between/betweentest/supplemental/bad-dsp-request-example.json b/adapters/between/betweentest/supplemental/bad-dsp-request-example.json index 0e52313502f..ff94d7a3cbd 100644 --- a/adapters/between/betweentest/supplemental/bad-dsp-request-example.json +++ b/adapters/between/betweentest/supplemental/bad-dsp-request-example.json @@ -55,7 +55,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/between/betweentest/supplemental/bad-response-body.json b/adapters/between/betweentest/supplemental/bad-response-body.json index a916136c54e..2998f11a2f9 100644 --- a/adapters/between/betweentest/supplemental/bad-response-body.json +++ b/adapters/between/betweentest/supplemental/bad-response-body.json @@ -59,7 +59,8 @@ }, "at": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/between/betweentest/supplemental/dsp-server-internal-error-example.json b/adapters/between/betweentest/supplemental/dsp-server-internal-error-example.json index f17644bd1a1..15ea763bb6a 100644 --- a/adapters/between/betweentest/supplemental/dsp-server-internal-error-example.json +++ b/adapters/between/betweentest/supplemental/dsp-server-internal-error-example.json @@ -55,7 +55,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/between/betweentest/supplemental/no-bids.json b/adapters/between/betweentest/supplemental/no-bids.json index d82828a9f1a..595e0c4f49c 100644 --- a/adapters/between/betweentest/supplemental/no-bids.json +++ b/adapters/between/betweentest/supplemental/no-bids.json @@ -55,7 +55,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/between/betweentest/supplemental/unknown-status-code-example.json b/adapters/between/betweentest/supplemental/unknown-status-code-example.json index ee568d0888a..2b0057917f7 100644 --- a/adapters/between/betweentest/supplemental/unknown-status-code-example.json +++ b/adapters/between/betweentest/supplemental/unknown-status-code-example.json @@ -54,7 +54,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 301, diff --git a/adapters/beyondmedia/beyondmedia.go b/adapters/beyondmedia/beyondmedia.go index 3fbaa66b613..bc1e8ea4b69 100644 --- a/adapters/beyondmedia/beyondmedia.go +++ b/adapters/beyondmedia/beyondmedia.go @@ -87,6 +87,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, err } diff --git a/adapters/beyondmedia/beyondmediatest/exemplary/simple-banner.json b/adapters/beyondmedia/beyondmediatest/exemplary/simple-banner.json index d53a5f1b09d..fe3d64db53a 100644 --- a/adapters/beyondmedia/beyondmediatest/exemplary/simple-banner.json +++ b/adapters/beyondmedia/beyondmediatest/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/beyondmedia/beyondmediatest/exemplary/simple-native.json b/adapters/beyondmedia/beyondmediatest/exemplary/simple-native.json index f0a62312f6e..a5d5e3708ef 100644 --- a/adapters/beyondmedia/beyondmediatest/exemplary/simple-native.json +++ b/adapters/beyondmedia/beyondmediatest/exemplary/simple-native.json @@ -55,7 +55,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/beyondmedia/beyondmediatest/exemplary/simple-video.json b/adapters/beyondmedia/beyondmediatest/exemplary/simple-video.json index 0b650d62c88..bcc7e6f03bd 100644 --- a/adapters/beyondmedia/beyondmediatest/exemplary/simple-video.json +++ b/adapters/beyondmedia/beyondmediatest/exemplary/simple-video.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/beyondmedia/beyondmediatest/exemplary/simple-web-banner.json b/adapters/beyondmedia/beyondmediatest/exemplary/simple-web-banner.json index 0e04a25d73c..965283dbabf 100644 --- a/adapters/beyondmedia/beyondmediatest/exemplary/simple-web-banner.json +++ b/adapters/beyondmedia/beyondmediatest/exemplary/simple-web-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "Ubuntu" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/beyondmedia/beyondmediatest/supplemental/bad_media_type.json b/adapters/beyondmedia/beyondmediatest/supplemental/bad_media_type.json index 542529ab490..2d383e53bec 100644 --- a/adapters/beyondmedia/beyondmediatest/supplemental/bad_media_type.json +++ b/adapters/beyondmedia/beyondmediatest/supplemental/bad_media_type.json @@ -44,7 +44,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/beyondmedia/beyondmediatest/supplemental/bad_response.json b/adapters/beyondmedia/beyondmediatest/supplemental/bad_response.json index e003ff895e3..906fe1cadaf 100644 --- a/adapters/beyondmedia/beyondmediatest/supplemental/bad_response.json +++ b/adapters/beyondmedia/beyondmediatest/supplemental/bad_response.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/beyondmedia/beyondmediatest/supplemental/status-204.json b/adapters/beyondmedia/beyondmediatest/supplemental/status-204.json index 1223dd0132c..cbca899c7da 100644 --- a/adapters/beyondmedia/beyondmediatest/supplemental/status-204.json +++ b/adapters/beyondmedia/beyondmediatest/supplemental/status-204.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/beyondmedia/beyondmediatest/supplemental/status-not-200.json b/adapters/beyondmedia/beyondmediatest/supplemental/status-not-200.json index 731b33deae8..a70c6d7438b 100644 --- a/adapters/beyondmedia/beyondmediatest/supplemental/status-not-200.json +++ b/adapters/beyondmedia/beyondmediatest/supplemental/status-not-200.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/bidder.go b/adapters/bidder.go index 5f4867713e6..47c71d78df6 100644 --- a/adapters/bidder.go +++ b/adapters/bidder.go @@ -121,6 +121,7 @@ type RequestData struct { Uri string Body []byte Headers http.Header + ImpIDs []string } // ExtImpBidder can be used by Bidders to unmarshal any request.imp[i].ext. diff --git a/adapters/bidmachine/bidmachine.go b/adapters/bidmachine/bidmachine.go index 0744d6131c4..3ff85b1dd79 100644 --- a/adapters/bidmachine/bidmachine.go +++ b/adapters/bidmachine/bidmachine.go @@ -94,6 +94,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, _ *adapters.ExtraRe Uri: url, Body: body, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }) } diff --git a/adapters/bidmachine/bidmachinetest/exemplary/rewarded_interstitial_no_battr.json b/adapters/bidmachine/bidmachinetest/exemplary/rewarded_interstitial_no_battr.json index 96bf06be015..0f8d6ba8e10 100644 --- a/adapters/bidmachine/bidmachinetest/exemplary/rewarded_interstitial_no_battr.json +++ b/adapters/bidmachine/bidmachinetest/exemplary/rewarded_interstitial_no_battr.json @@ -83,7 +83,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { diff --git a/adapters/bidmachine/bidmachinetest/exemplary/rewarded_interstitial_w_battr.json b/adapters/bidmachine/bidmachinetest/exemplary/rewarded_interstitial_w_battr.json index 08b187e5710..02bb79b4cf4 100644 --- a/adapters/bidmachine/bidmachinetest/exemplary/rewarded_interstitial_w_battr.json +++ b/adapters/bidmachine/bidmachinetest/exemplary/rewarded_interstitial_w_battr.json @@ -83,7 +83,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { diff --git a/adapters/bidmachine/bidmachinetest/exemplary/rewarded_video_no_battr.json b/adapters/bidmachine/bidmachinetest/exemplary/rewarded_video_no_battr.json index 72bf59d7d1e..ecc88f6c162 100644 --- a/adapters/bidmachine/bidmachinetest/exemplary/rewarded_video_no_battr.json +++ b/adapters/bidmachine/bidmachinetest/exemplary/rewarded_video_no_battr.json @@ -87,7 +87,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { diff --git a/adapters/bidmachine/bidmachinetest/exemplary/rewarded_video_w_battr.json b/adapters/bidmachine/bidmachinetest/exemplary/rewarded_video_w_battr.json index 0d681e160a8..b056061d9c2 100644 --- a/adapters/bidmachine/bidmachinetest/exemplary/rewarded_video_w_battr.json +++ b/adapters/bidmachine/bidmachinetest/exemplary/rewarded_video_w_battr.json @@ -87,7 +87,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { diff --git a/adapters/bidmachine/bidmachinetest/exemplary/simple_banner.json b/adapters/bidmachine/bidmachinetest/exemplary/simple_banner.json index bde25edc92a..5598d50949b 100644 --- a/adapters/bidmachine/bidmachinetest/exemplary/simple_banner.json +++ b/adapters/bidmachine/bidmachinetest/exemplary/simple_banner.json @@ -73,7 +73,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { diff --git a/adapters/bidmachine/bidmachinetest/exemplary/simple_interstitial.json b/adapters/bidmachine/bidmachinetest/exemplary/simple_interstitial.json index b49c85e54af..4a8257632ac 100644 --- a/adapters/bidmachine/bidmachinetest/exemplary/simple_interstitial.json +++ b/adapters/bidmachine/bidmachinetest/exemplary/simple_interstitial.json @@ -75,7 +75,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { diff --git a/adapters/bidmachine/bidmachinetest/exemplary/simple_video.json b/adapters/bidmachine/bidmachinetest/exemplary/simple_video.json index e6e1d2dc70f..bc28a1b7c0f 100644 --- a/adapters/bidmachine/bidmachinetest/exemplary/simple_video.json +++ b/adapters/bidmachine/bidmachinetest/exemplary/simple_video.json @@ -79,7 +79,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { diff --git a/adapters/bidmachine/bidmachinetest/supplemental/status-204.json b/adapters/bidmachine/bidmachinetest/supplemental/status-204.json index daa7f00a8e0..7616dbf3389 100644 --- a/adapters/bidmachine/bidmachinetest/supplemental/status-204.json +++ b/adapters/bidmachine/bidmachinetest/supplemental/status-204.json @@ -53,7 +53,8 @@ } } }] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { diff --git a/adapters/bidmachine/bidmachinetest/supplemental/status-400.json b/adapters/bidmachine/bidmachinetest/supplemental/status-400.json index 5eb4ccfcebf..c9b1d883f8c 100644 --- a/adapters/bidmachine/bidmachinetest/supplemental/status-400.json +++ b/adapters/bidmachine/bidmachinetest/supplemental/status-400.json @@ -53,7 +53,8 @@ } } }] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { diff --git a/adapters/bidmachine/bidmachinetest/supplemental/status-403.json b/adapters/bidmachine/bidmachinetest/supplemental/status-403.json index 3434275bf06..f4d0b1b2dea 100644 --- a/adapters/bidmachine/bidmachinetest/supplemental/status-403.json +++ b/adapters/bidmachine/bidmachinetest/supplemental/status-403.json @@ -53,7 +53,8 @@ } } }] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { diff --git a/adapters/bidmachine/bidmachinetest/supplemental/status-408.json b/adapters/bidmachine/bidmachinetest/supplemental/status-408.json index 51965461a81..b6fff27905b 100644 --- a/adapters/bidmachine/bidmachinetest/supplemental/status-408.json +++ b/adapters/bidmachine/bidmachinetest/supplemental/status-408.json @@ -53,7 +53,8 @@ } } }] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { diff --git a/adapters/bidmachine/bidmachinetest/supplemental/status-500.json b/adapters/bidmachine/bidmachinetest/supplemental/status-500.json index f7abfb0fdc4..18302831371 100644 --- a/adapters/bidmachine/bidmachinetest/supplemental/status-500.json +++ b/adapters/bidmachine/bidmachinetest/supplemental/status-500.json @@ -53,7 +53,8 @@ } } }] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { diff --git a/adapters/bidmachine/bidmachinetest/supplemental/status-502.json b/adapters/bidmachine/bidmachinetest/supplemental/status-502.json index 44dabb052a2..4deaf291930 100644 --- a/adapters/bidmachine/bidmachinetest/supplemental/status-502.json +++ b/adapters/bidmachine/bidmachinetest/supplemental/status-502.json @@ -53,7 +53,8 @@ } } }] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { diff --git a/adapters/bidmachine/bidmachinetest/supplemental/status-503.json b/adapters/bidmachine/bidmachinetest/supplemental/status-503.json index 979ac4f642a..16b1bb0f113 100644 --- a/adapters/bidmachine/bidmachinetest/supplemental/status-503.json +++ b/adapters/bidmachine/bidmachinetest/supplemental/status-503.json @@ -53,7 +53,8 @@ } } }] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { diff --git a/adapters/bidmachine/bidmachinetest/supplemental/status-504.json b/adapters/bidmachine/bidmachinetest/supplemental/status-504.json index 918ada2c150..3928bed9372 100644 --- a/adapters/bidmachine/bidmachinetest/supplemental/status-504.json +++ b/adapters/bidmachine/bidmachinetest/supplemental/status-504.json @@ -53,7 +53,8 @@ } } }] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { diff --git a/adapters/bidmyadz/bidmyadz.go b/adapters/bidmyadz/bidmyadz.go index 74e71df3b23..8b9b4cc841b 100644 --- a/adapters/bidmyadz/bidmyadz.go +++ b/adapters/bidmyadz/bidmyadz.go @@ -75,6 +75,7 @@ func (a *adapter) MakeRequests( Body: reqJSON, Uri: a.endpoint, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), }}, nil } diff --git a/adapters/bidmyadz/bidmyadztest/exemplary/banner.json b/adapters/bidmyadz/bidmyadztest/exemplary/banner.json index 460291bc4f0..adac65073cf 100644 --- a/adapters/bidmyadz/bidmyadztest/exemplary/banner.json +++ b/adapters/bidmyadz/bidmyadztest/exemplary/banner.json @@ -83,7 +83,8 @@ "id": "1" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/bidmyadz/bidmyadztest/exemplary/native.json b/adapters/bidmyadz/bidmyadztest/exemplary/native.json index 984802601c0..69fab3920dc 100644 --- a/adapters/bidmyadz/bidmyadztest/exemplary/native.json +++ b/adapters/bidmyadz/bidmyadztest/exemplary/native.json @@ -85,7 +85,8 @@ } } }] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/bidmyadz/bidmyadztest/exemplary/video.json b/adapters/bidmyadz/bidmyadztest/exemplary/video.json index 92c42f8331a..90942659bad 100644 --- a/adapters/bidmyadz/bidmyadztest/exemplary/video.json +++ b/adapters/bidmyadz/bidmyadztest/exemplary/video.json @@ -97,7 +97,8 @@ "id": "1" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/bidmyadz/bidmyadztest/supplemental/missing-mediatype.json b/adapters/bidmyadz/bidmyadztest/supplemental/missing-mediatype.json index 486d7324dfc..f787bd20cbc 100644 --- a/adapters/bidmyadz/bidmyadztest/supplemental/missing-mediatype.json +++ b/adapters/bidmyadz/bidmyadztest/supplemental/missing-mediatype.json @@ -83,7 +83,8 @@ "id": "1" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/bidmyadz/bidmyadztest/supplemental/response-without-bids.json b/adapters/bidmyadz/bidmyadztest/supplemental/response-without-bids.json index fe3361f69d8..6e133ef9d1d 100644 --- a/adapters/bidmyadz/bidmyadztest/supplemental/response-without-bids.json +++ b/adapters/bidmyadz/bidmyadztest/supplemental/response-without-bids.json @@ -37,7 +37,8 @@ "publisher": { "id": "1" } - } + }, + "impIDs":["1"] }, "httpCalls": [ @@ -83,7 +84,8 @@ "id": "1" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/bidmyadz/bidmyadztest/supplemental/response-without-seatbid.json b/adapters/bidmyadz/bidmyadztest/supplemental/response-without-seatbid.json index 727e745e762..762a28e4fc1 100644 --- a/adapters/bidmyadz/bidmyadztest/supplemental/response-without-seatbid.json +++ b/adapters/bidmyadz/bidmyadztest/supplemental/response-without-seatbid.json @@ -83,7 +83,8 @@ "id": "1" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/bidmyadz/bidmyadztest/supplemental/status-204.json b/adapters/bidmyadz/bidmyadztest/supplemental/status-204.json index 05efda0e9f3..876fa6f9571 100644 --- a/adapters/bidmyadz/bidmyadztest/supplemental/status-204.json +++ b/adapters/bidmyadz/bidmyadztest/supplemental/status-204.json @@ -83,7 +83,8 @@ "id": "test" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 204, diff --git a/adapters/bidmyadz/bidmyadztest/supplemental/status-400.json b/adapters/bidmyadz/bidmyadztest/supplemental/status-400.json index e24acdc6766..a4bf80b7b7d 100644 --- a/adapters/bidmyadz/bidmyadztest/supplemental/status-400.json +++ b/adapters/bidmyadz/bidmyadztest/supplemental/status-400.json @@ -83,7 +83,8 @@ "id": "test" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 400, diff --git a/adapters/bidmyadz/bidmyadztest/supplemental/status-service-unavailable.json b/adapters/bidmyadz/bidmyadztest/supplemental/status-service-unavailable.json index 13e22f55889..a6b515bb7a2 100644 --- a/adapters/bidmyadz/bidmyadztest/supplemental/status-service-unavailable.json +++ b/adapters/bidmyadz/bidmyadztest/supplemental/status-service-unavailable.json @@ -83,7 +83,8 @@ "id": "test" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 503 diff --git a/adapters/bidmyadz/bidmyadztest/supplemental/status-unknown.json b/adapters/bidmyadz/bidmyadztest/supplemental/status-unknown.json index 69b649e19ad..90e707ac1d6 100644 --- a/adapters/bidmyadz/bidmyadztest/supplemental/status-unknown.json +++ b/adapters/bidmyadz/bidmyadztest/supplemental/status-unknown.json @@ -83,7 +83,8 @@ "id": "test" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 403, diff --git a/adapters/bidscube/bidscube.go b/adapters/bidscube/bidscube.go index 73c842b87f9..c16d01b5a33 100644 --- a/adapters/bidscube/bidscube.go +++ b/adapters/bidscube/bidscube.go @@ -52,6 +52,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, _ *adapters.ExtraRe Uri: a.endpoint, Body: body, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }) } diff --git a/adapters/bidscube/bidscubetest/exemplary/simple-banner.json b/adapters/bidscube/bidscubetest/exemplary/simple-banner.json index 079086a7e91..da8bab04a6b 100644 --- a/adapters/bidscube/bidscubetest/exemplary/simple-banner.json +++ b/adapters/bidscube/bidscubetest/exemplary/simple-banner.json @@ -67,7 +67,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bidscube/bidscubetest/exemplary/simple-native.json b/adapters/bidscube/bidscubetest/exemplary/simple-native.json index 7436f2fe34d..66ad2b25710 100644 --- a/adapters/bidscube/bidscubetest/exemplary/simple-native.json +++ b/adapters/bidscube/bidscubetest/exemplary/simple-native.json @@ -51,7 +51,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bidscube/bidscubetest/exemplary/simple-video.json b/adapters/bidscube/bidscubetest/exemplary/simple-video.json index 36d8d43fc71..e42aad77ff9 100644 --- a/adapters/bidscube/bidscubetest/exemplary/simple-video.json +++ b/adapters/bidscube/bidscubetest/exemplary/simple-video.json @@ -55,7 +55,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bidscube/bidscubetest/exemplary/simple-web-banner.json b/adapters/bidscube/bidscubetest/exemplary/simple-web-banner.json index 2f09cc902dd..f7cfb895f76 100644 --- a/adapters/bidscube/bidscubetest/exemplary/simple-web-banner.json +++ b/adapters/bidscube/bidscubetest/exemplary/simple-web-banner.json @@ -64,7 +64,8 @@ "device": { "ip": "123.123.123.123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bidscube/bidscubetest/supplemental/bad_bidtype_response.json b/adapters/bidscube/bidscubetest/supplemental/bad_bidtype_response.json index 998ef2dd309..4411e88d164 100644 --- a/adapters/bidscube/bidscubetest/supplemental/bad_bidtype_response.json +++ b/adapters/bidscube/bidscubetest/supplemental/bad_bidtype_response.json @@ -66,7 +66,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bidscube/bidscubetest/supplemental/bad_response.json b/adapters/bidscube/bidscubetest/supplemental/bad_response.json index 487d6adf413..a6087b506a4 100644 --- a/adapters/bidscube/bidscubetest/supplemental/bad_response.json +++ b/adapters/bidscube/bidscubetest/supplemental/bad_response.json @@ -66,7 +66,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bidscube/bidscubetest/supplemental/bad_status_code.json b/adapters/bidscube/bidscubetest/supplemental/bad_status_code.json index 4a81da360e4..c6db01b4588 100644 --- a/adapters/bidscube/bidscubetest/supplemental/bad_status_code.json +++ b/adapters/bidscube/bidscubetest/supplemental/bad_status_code.json @@ -60,7 +60,8 @@ "bundle": "com.wls.testwlsapplication" }, "device": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/bidscube/bidscubetest/supplemental/status-204.json b/adapters/bidscube/bidscubetest/supplemental/status-204.json index 3eff0fdcd8d..f6c21ee7e6f 100644 --- a/adapters/bidscube/bidscubetest/supplemental/status-204.json +++ b/adapters/bidscube/bidscubetest/supplemental/status-204.json @@ -66,7 +66,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "expectedBidResponses": [], "mockResponse": { diff --git a/adapters/bidscube/bidscubetest/supplemental/status-404.json b/adapters/bidscube/bidscubetest/supplemental/status-404.json index a162dd897ea..f5258b39449 100644 --- a/adapters/bidscube/bidscubetest/supplemental/status-404.json +++ b/adapters/bidscube/bidscubetest/supplemental/status-404.json @@ -66,7 +66,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/bidstack/bidstack.go b/adapters/bidstack/bidstack.go index 01586f50bb3..c4396153211 100644 --- a/adapters/bidstack/bidstack.go +++ b/adapters/bidstack/bidstack.go @@ -65,6 +65,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: a.endpoint, Headers: headers, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/bidstack/bidstacktest/exemplary/simple-app-video.json b/adapters/bidstack/bidstacktest/exemplary/simple-app-video.json index 46729f9b7c8..8d166ef7751 100644 --- a/adapters/bidstack/bidstacktest/exemplary/simple-app-video.json +++ b/adapters/bidstack/bidstacktest/exemplary/simple-app-video.json @@ -94,7 +94,8 @@ } } } - } + }, + "impIDs":["imp-id-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/bidstack/bidstacktest/supplemental/status-204.json b/adapters/bidstack/bidstacktest/supplemental/status-204.json index 2c84a3544d4..c231ee13ded 100644 --- a/adapters/bidstack/bidstacktest/supplemental/status-204.json +++ b/adapters/bidstack/bidstacktest/supplemental/status-204.json @@ -66,7 +66,8 @@ } } ] - } + }, + "impIDs":["imp-id-1"] }, "mockResponse": { "status": 204, diff --git a/adapters/bidstack/bidstacktest/supplemental/status-400.json b/adapters/bidstack/bidstacktest/supplemental/status-400.json index eaf5b0e5e04..2d118289ba4 100644 --- a/adapters/bidstack/bidstacktest/supplemental/status-400.json +++ b/adapters/bidstack/bidstacktest/supplemental/status-400.json @@ -66,7 +66,8 @@ } } ] - } + }, + "impIDs":["imp-id-1"] }, "mockResponse": { "status": 400, diff --git a/adapters/bidstack/bidstacktest/supplemental/status-404.json b/adapters/bidstack/bidstacktest/supplemental/status-404.json index 7bed7485ebc..3b5da2e7e48 100644 --- a/adapters/bidstack/bidstacktest/supplemental/status-404.json +++ b/adapters/bidstack/bidstacktest/supplemental/status-404.json @@ -66,7 +66,8 @@ } } ] - } + }, + "impIDs":["imp-id-1"] }, "mockResponse": { "status": 404, diff --git a/adapters/bizzclick/bizzclick.go b/adapters/bizzclick/bizzclick.go index b869a5f7a69..40805da0cb0 100644 --- a/adapters/bizzclick/bizzclick.go +++ b/adapters/bizzclick/bizzclick.go @@ -83,6 +83,7 @@ func (a *adapter) MakeRequests( Body: reqJSON, Uri: url, Headers: getHeaders(openRTBRequest), + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), }}, nil } diff --git a/adapters/bizzclick/bizzclicktest/exemplary/banner-app.json b/adapters/bizzclick/bizzclicktest/exemplary/banner-app.json index 3875d70cc95..840ed212623 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/banner-app.json +++ b/adapters/bizzclick/bizzclicktest/exemplary/banner-app.json @@ -96,7 +96,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bizzclick/bizzclicktest/exemplary/banner-web.json b/adapters/bizzclick/bizzclicktest/exemplary/banner-web.json index fa9ba4d4dee..21dad82fd12 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/banner-web.json +++ b/adapters/bizzclick/bizzclicktest/exemplary/banner-web.json @@ -107,7 +107,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id1","some-impression-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/bizzclick/bizzclicktest/exemplary/default-host-param.json b/adapters/bizzclick/bizzclicktest/exemplary/default-host-param.json index d11883899b7..a99099092d7 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/default-host-param.json +++ b/adapters/bizzclick/bizzclicktest/exemplary/default-host-param.json @@ -95,7 +95,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bizzclick/bizzclicktest/exemplary/native-app.json b/adapters/bizzclick/bizzclicktest/exemplary/native-app.json index 7b94970d085..65fe85085ad 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/native-app.json +++ b/adapters/bizzclick/bizzclicktest/exemplary/native-app.json @@ -96,7 +96,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bizzclick/bizzclicktest/exemplary/native-web.json b/adapters/bizzclick/bizzclicktest/exemplary/native-web.json index 396e1e1e65b..0e36975194c 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/native-web.json +++ b/adapters/bizzclick/bizzclicktest/exemplary/native-web.json @@ -84,7 +84,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bizzclick/bizzclicktest/exemplary/video-app.json b/adapters/bizzclick/bizzclicktest/exemplary/video-app.json index 58a4a4a0048..9c16795230a 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/video-app.json +++ b/adapters/bizzclick/bizzclicktest/exemplary/video-app.json @@ -106,7 +106,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bizzclick/bizzclicktest/exemplary/video-web.json b/adapters/bizzclick/bizzclicktest/exemplary/video-web.json index 69a038b3f21..9410fdb78df 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/video-web.json +++ b/adapters/bizzclick/bizzclicktest/exemplary/video-web.json @@ -94,7 +94,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bizzclick/bizzclicktest/supplemental/empty-seatbid-array.json b/adapters/bizzclick/bizzclicktest/supplemental/empty-seatbid-array.json index faf72aabf04..40aa5374504 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/empty-seatbid-array.json +++ b/adapters/bizzclick/bizzclicktest/supplemental/empty-seatbid-array.json @@ -106,7 +106,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bizzclick/bizzclicktest/supplemental/invalid-response.json b/adapters/bizzclick/bizzclicktest/supplemental/invalid-response.json index eff1d6caa8d..4808f4823ee 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/invalid-response.json +++ b/adapters/bizzclick/bizzclicktest/supplemental/invalid-response.json @@ -96,7 +96,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bizzclick/bizzclicktest/supplemental/status-code-bad-request.json b/adapters/bizzclick/bizzclicktest/supplemental/status-code-bad-request.json index eb29b89bf0b..b274c758856 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/status-code-bad-request.json +++ b/adapters/bizzclick/bizzclicktest/supplemental/status-code-bad-request.json @@ -77,7 +77,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/bizzclick/bizzclicktest/supplemental/status-code-no-content.json b/adapters/bizzclick/bizzclicktest/supplemental/status-code-no-content.json index 3ed865f289d..6163a4af0dd 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/status-code-no-content.json +++ b/adapters/bizzclick/bizzclicktest/supplemental/status-code-no-content.json @@ -65,7 +65,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/bizzclick/bizzclicktest/supplemental/status-code-other-error.json b/adapters/bizzclick/bizzclicktest/supplemental/status-code-other-error.json index 81682bedd98..af2a91110d2 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/status-code-other-error.json +++ b/adapters/bizzclick/bizzclicktest/supplemental/status-code-other-error.json @@ -65,7 +65,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 306 diff --git a/adapters/bizzclick/bizzclicktest/supplemental/status-code-service-unavailable.json b/adapters/bizzclick/bizzclicktest/supplemental/status-code-service-unavailable.json index 9ea01f9eeea..d4c0fa392c8 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/status-code-service-unavailable.json +++ b/adapters/bizzclick/bizzclicktest/supplemental/status-code-service-unavailable.json @@ -65,7 +65,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/bliink/bliink.go b/adapters/bliink/bliink.go index 2472d3c72eb..51463698597 100644 --- a/adapters/bliink/bliink.go +++ b/adapters/bliink/bliink.go @@ -42,6 +42,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, _ *adapters.ExtraRe Uri: a.endpoint, Body: requestJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/bliink/bliinktest/exemplary/banner.json b/adapters/bliink/bliinktest/exemplary/banner.json index dbff2dfc786..d24fefc3e7a 100644 --- a/adapters/bliink/bliinktest/exemplary/banner.json +++ b/adapters/bliink/bliinktest/exemplary/banner.json @@ -71,7 +71,8 @@ "consent": "gdprConsentString" } } - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bliink/bliinktest/exemplary/banner_native_video.json b/adapters/bliink/bliinktest/exemplary/banner_native_video.json index cb652749b2c..e8b66d1d51e 100644 --- a/adapters/bliink/bliinktest/exemplary/banner_native_video.json +++ b/adapters/bliink/bliinktest/exemplary/banner_native_video.json @@ -113,7 +113,8 @@ "consent": "gdprConsentString" } } - } + }, + "impIDs":["test-banner-id","test-native-id","test-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bliink/bliinktest/exemplary/native.json b/adapters/bliink/bliinktest/exemplary/native.json index 960d91aa106..61a737431ff 100644 --- a/adapters/bliink/bliinktest/exemplary/native.json +++ b/adapters/bliink/bliinktest/exemplary/native.json @@ -71,7 +71,8 @@ "consent": "gdprConsentString" } } - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bliink/bliinktest/exemplary/video.json b/adapters/bliink/bliinktest/exemplary/video.json index 8b3bc5e1b3c..4421f0bba2f 100644 --- a/adapters/bliink/bliinktest/exemplary/video.json +++ b/adapters/bliink/bliinktest/exemplary/video.json @@ -81,7 +81,8 @@ "consent": "gdprConsentString" } } - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bliink/bliinktest/supplemental/multiple_format_request.json b/adapters/bliink/bliinktest/supplemental/multiple_format_request.json index c85bc9ed822..c14e9cd887c 100644 --- a/adapters/bliink/bliinktest/supplemental/multiple_format_request.json +++ b/adapters/bliink/bliinktest/supplemental/multiple_format_request.json @@ -87,7 +87,8 @@ "consent": "gdprConsentString" } } - } + }, + "impIDs":["some-impression-id","some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bliink/bliinktest/supplemental/no_seat_bid_in_response.json b/adapters/bliink/bliinktest/supplemental/no_seat_bid_in_response.json index 7482a6ff27f..8c354afa2dd 100644 --- a/adapters/bliink/bliinktest/supplemental/no_seat_bid_in_response.json +++ b/adapters/bliink/bliinktest/supplemental/no_seat_bid_in_response.json @@ -71,7 +71,8 @@ "consent": "gdprConsentString" } } - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bliink/bliinktest/supplemental/status_bad_request.json b/adapters/bliink/bliinktest/supplemental/status_bad_request.json index 2b0bf4e7f4c..a4956518e4b 100644 --- a/adapters/bliink/bliinktest/supplemental/status_bad_request.json +++ b/adapters/bliink/bliinktest/supplemental/status_bad_request.json @@ -71,7 +71,8 @@ "consent": "gdprConsentString" } } - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/bliink/bliinktest/supplemental/status_no_content.json b/adapters/bliink/bliinktest/supplemental/status_no_content.json index b696dc2722e..f8f9902250a 100644 --- a/adapters/bliink/bliinktest/supplemental/status_no_content.json +++ b/adapters/bliink/bliinktest/supplemental/status_no_content.json @@ -71,7 +71,8 @@ "consent": "gdprConsentString" } } - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/bliink/bliinktest/supplemental/status_not_ok.json b/adapters/bliink/bliinktest/supplemental/status_not_ok.json index 5560f830018..f1d70d7a700 100644 --- a/adapters/bliink/bliinktest/supplemental/status_not_ok.json +++ b/adapters/bliink/bliinktest/supplemental/status_not_ok.json @@ -71,7 +71,8 @@ "consent": "gdprConsentString" } } - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/blue/blue.go b/adapters/blue/blue.go index 481543e4763..127adf136c3 100644 --- a/adapters/blue/blue.go +++ b/adapters/blue/blue.go @@ -39,6 +39,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, _ *adapters.ExtraRe Uri: a.endpoint, Body: requestJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/blue/bluetest/exemplary/simple-web-banner.json b/adapters/blue/bluetest/exemplary/simple-web-banner.json index 8f75f53659f..fec884fadea 100644 --- a/adapters/blue/bluetest/exemplary/simple-web-banner.json +++ b/adapters/blue/bluetest/exemplary/simple-web-banner.json @@ -55,7 +55,8 @@ "id": "blue-id" } ] - } + }, + "impIDs":["blue-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/blue/bluetest/supplemental/204-response-from-target.json b/adapters/blue/bluetest/supplemental/204-response-from-target.json index 801fdb3e321..c4ca4e99bca 100755 --- a/adapters/blue/bluetest/supplemental/204-response-from-target.json +++ b/adapters/blue/bluetest/supplemental/204-response-from-target.json @@ -40,7 +40,8 @@ } } ] - } + }, + "impIDs":["blue-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/blue/bluetest/supplemental/400-response-from-target.json b/adapters/blue/bluetest/supplemental/400-response-from-target.json index 9daeeec6d23..89f97fb1c6c 100755 --- a/adapters/blue/bluetest/supplemental/400-response-from-target.json +++ b/adapters/blue/bluetest/supplemental/400-response-from-target.json @@ -40,7 +40,8 @@ } } ] - } + }, + "impIDs":["blue-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/blue/bluetest/supplemental/500-response-from-target.json b/adapters/blue/bluetest/supplemental/500-response-from-target.json index 5c206fae0bf..97cb955a153 100755 --- a/adapters/blue/bluetest/supplemental/500-response-from-target.json +++ b/adapters/blue/bluetest/supplemental/500-response-from-target.json @@ -40,7 +40,8 @@ } } ] - } + }, + "impIDs":["blue-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/blue/bluetest/supplemental/bad_response.json b/adapters/blue/bluetest/supplemental/bad_response.json index 2d3e45b2fa9..c45d6b84517 100644 --- a/adapters/blue/bluetest/supplemental/bad_response.json +++ b/adapters/blue/bluetest/supplemental/bad_response.json @@ -40,7 +40,8 @@ } } ] - } + }, + "impIDs":["blue-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bluesea/bluesea.go b/adapters/bluesea/bluesea.go index 994f8033bf6..326b15fa42d 100644 --- a/adapters/bluesea/bluesea.go +++ b/adapters/bluesea/bluesea.go @@ -67,6 +67,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Uri: fmt.Sprintf("%s?%s", a.endpoint, queryString), Body: reqJson, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } requestDatas = append(requestDatas, requestData) } diff --git a/adapters/bluesea/blueseatest/exemplary/banner.json b/adapters/bluesea/blueseatest/exemplary/banner.json index 5bb9b44670c..9d37e84f371 100644 --- a/adapters/bluesea/blueseatest/exemplary/banner.json +++ b/adapters/bluesea/blueseatest/exemplary/banner.json @@ -72,7 +72,8 @@ "at":1, "tmax":1200, "test":1 - } + }, + "impIDs":["1"] }, "mockResponse":{ "status":200, diff --git a/adapters/bluesea/blueseatest/exemplary/native.json b/adapters/bluesea/blueseatest/exemplary/native.json index c70523564a0..5f3f9f6e59e 100644 --- a/adapters/bluesea/blueseatest/exemplary/native.json +++ b/adapters/bluesea/blueseatest/exemplary/native.json @@ -72,7 +72,8 @@ "at":1, "tmax":1200, "test":1 - } + }, + "impIDs":["1"] }, "mockResponse":{ "status":200, diff --git a/adapters/bluesea/blueseatest/exemplary/nobid.json b/adapters/bluesea/blueseatest/exemplary/nobid.json index 4e881471818..2ca2f4847ab 100644 --- a/adapters/bluesea/blueseatest/exemplary/nobid.json +++ b/adapters/bluesea/blueseatest/exemplary/nobid.json @@ -72,7 +72,8 @@ "at":1, "tmax":1200, "test":1 - } + }, + "impIDs":["1"] }, "mockResponse":{ "status": 204, diff --git a/adapters/bluesea/blueseatest/exemplary/video.json b/adapters/bluesea/blueseatest/exemplary/video.json index 7092583aa54..4f08c2f8bf0 100644 --- a/adapters/bluesea/blueseatest/exemplary/video.json +++ b/adapters/bluesea/blueseatest/exemplary/video.json @@ -102,7 +102,8 @@ "at":1, "tmax":1200, "test":1 - } + }, + "impIDs":["1"] }, "mockResponse":{ "status":200, diff --git a/adapters/bluesea/blueseatest/supplemental/invalid-media-type.json b/adapters/bluesea/blueseatest/supplemental/invalid-media-type.json index b4b4ad25ae3..1a07134b558 100644 --- a/adapters/bluesea/blueseatest/supplemental/invalid-media-type.json +++ b/adapters/bluesea/blueseatest/supplemental/invalid-media-type.json @@ -72,7 +72,8 @@ "at":1, "tmax":1200, "test":1 - } + }, + "impIDs":["1"] }, "mockResponse":{ "status":200, diff --git a/adapters/bluesea/blueseatest/supplemental/malformed-body-response.json b/adapters/bluesea/blueseatest/supplemental/malformed-body-response.json index 7fef3f6d6e2..b50ed7ad6c0 100644 --- a/adapters/bluesea/blueseatest/supplemental/malformed-body-response.json +++ b/adapters/bluesea/blueseatest/supplemental/malformed-body-response.json @@ -72,7 +72,8 @@ "at":1, "tmax":1200, "test":1 - } + }, + "impIDs":["1"] }, "mockResponse":{ "status":200, diff --git a/adapters/bluesea/blueseatest/supplemental/status-400-response.json b/adapters/bluesea/blueseatest/supplemental/status-400-response.json index 6fcb6a21c7e..050c630f2d2 100644 --- a/adapters/bluesea/blueseatest/supplemental/status-400-response.json +++ b/adapters/bluesea/blueseatest/supplemental/status-400-response.json @@ -72,7 +72,8 @@ "at":1, "tmax":1200, "test":1 - } + }, + "impIDs":["1"] }, "mockResponse":{ "status":400, diff --git a/adapters/bmtm/brightmountainmedia.go b/adapters/bmtm/brightmountainmedia.go index f820254c0ce..068021ff337 100644 --- a/adapters/bmtm/brightmountainmedia.go +++ b/adapters/bmtm/brightmountainmedia.go @@ -75,6 +75,7 @@ func (a *adapter) makeRequest(ortbRequest openrtb2.BidRequest, ortbImp openrtb2. Uri: a.endpoint, Body: requestJSON, Headers: setHeaders(ortbRequest), + ImpIDs: openrtb_ext.GetImpIDs(ortbRequest.Imp), } return requestData, nil } diff --git a/adapters/bmtm/brightmountainmediatest/exemplary/app-banner.json b/adapters/bmtm/brightmountainmediatest/exemplary/app-banner.json index 8a02ad8d5ea..70c57352f98 100644 --- a/adapters/bmtm/brightmountainmediatest/exemplary/app-banner.json +++ b/adapters/bmtm/brightmountainmediatest/exemplary/app-banner.json @@ -56,7 +56,8 @@ "tagid": "329" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bmtm/brightmountainmediatest/exemplary/app-video.json b/adapters/bmtm/brightmountainmediatest/exemplary/app-video.json index 1dc1a4752f5..920cdb6abcb 100644 --- a/adapters/bmtm/brightmountainmediatest/exemplary/app-video.json +++ b/adapters/bmtm/brightmountainmediatest/exemplary/app-video.json @@ -66,7 +66,8 @@ "tagid": "329" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bmtm/brightmountainmediatest/exemplary/banner.json b/adapters/bmtm/brightmountainmediatest/exemplary/banner.json index 7d6b26b6d5f..678f901da1d 100644 --- a/adapters/bmtm/brightmountainmediatest/exemplary/banner.json +++ b/adapters/bmtm/brightmountainmediatest/exemplary/banner.json @@ -54,7 +54,8 @@ "tagid": "329" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bmtm/brightmountainmediatest/exemplary/multi-imp.json b/adapters/bmtm/brightmountainmediatest/exemplary/multi-imp.json index c86a2acf034..bccf7153e0e 100644 --- a/adapters/bmtm/brightmountainmediatest/exemplary/multi-imp.json +++ b/adapters/bmtm/brightmountainmediatest/exemplary/multi-imp.json @@ -75,7 +75,8 @@ "tagid": "329" } ] - } + }, + "impIDs":["test-imp-id1"] }, "mockResponse": { "status": 200, @@ -132,7 +133,8 @@ "tagid": "329" } ] - } + }, + "impIDs":["test-imp-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/bmtm/brightmountainmediatest/exemplary/video.json b/adapters/bmtm/brightmountainmediatest/exemplary/video.json index 72035647eea..1a67f250677 100644 --- a/adapters/bmtm/brightmountainmediatest/exemplary/video.json +++ b/adapters/bmtm/brightmountainmediatest/exemplary/video.json @@ -64,7 +64,8 @@ "tagid": "329" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bmtm/brightmountainmediatest/supplemental/multi-imp-mixed-validation.json b/adapters/bmtm/brightmountainmediatest/supplemental/multi-imp-mixed-validation.json index 09659cfb5f2..2b8843fef0a 100644 --- a/adapters/bmtm/brightmountainmediatest/supplemental/multi-imp-mixed-validation.json +++ b/adapters/bmtm/brightmountainmediatest/supplemental/multi-imp-mixed-validation.json @@ -62,7 +62,8 @@ "tagid": "329" } ] - } + }, + "impIDs":["test-imp-id1"] }, "mockResponse": { "status": 200, diff --git a/adapters/bmtm/brightmountainmediatest/supplemental/status-not-ok.json b/adapters/bmtm/brightmountainmediatest/supplemental/status-not-ok.json index 12ec25e23c4..c7a1cf72b38 100644 --- a/adapters/bmtm/brightmountainmediatest/supplemental/status-not-ok.json +++ b/adapters/bmtm/brightmountainmediatest/supplemental/status-not-ok.json @@ -54,7 +54,8 @@ "tagid": "329" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/boldwin/boldwin.go b/adapters/boldwin/boldwin.go index 96a9aaec52a..48de29f3ce2 100644 --- a/adapters/boldwin/boldwin.go +++ b/adapters/boldwin/boldwin.go @@ -94,6 +94,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, err } diff --git a/adapters/boldwin/boldwintest/exemplary/endpointId.json b/adapters/boldwin/boldwintest/exemplary/endpointId.json index 65a0274afd9..9948a7f36c8 100644 --- a/adapters/boldwin/boldwintest/exemplary/endpointId.json +++ b/adapters/boldwin/boldwintest/exemplary/endpointId.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/boldwin/boldwintest/exemplary/simple-banner.json b/adapters/boldwin/boldwintest/exemplary/simple-banner.json index 5032d716088..77a6b5494c2 100644 --- a/adapters/boldwin/boldwintest/exemplary/simple-banner.json +++ b/adapters/boldwin/boldwintest/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/boldwin/boldwintest/exemplary/simple-native.json b/adapters/boldwin/boldwintest/exemplary/simple-native.json index aad2426ac52..e91c873b9a9 100644 --- a/adapters/boldwin/boldwintest/exemplary/simple-native.json +++ b/adapters/boldwin/boldwintest/exemplary/simple-native.json @@ -55,7 +55,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/boldwin/boldwintest/exemplary/simple-video.json b/adapters/boldwin/boldwintest/exemplary/simple-video.json index c754659c64b..f1ee8559c24 100644 --- a/adapters/boldwin/boldwintest/exemplary/simple-video.json +++ b/adapters/boldwin/boldwintest/exemplary/simple-video.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/boldwin/boldwintest/exemplary/simple-web-banner.json b/adapters/boldwin/boldwintest/exemplary/simple-web-banner.json index 2ffb9a0c377..14735484207 100644 --- a/adapters/boldwin/boldwintest/exemplary/simple-web-banner.json +++ b/adapters/boldwin/boldwintest/exemplary/simple-web-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "Ubuntu" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/boldwin/boldwintest/supplemental/bad_media_type.json b/adapters/boldwin/boldwintest/supplemental/bad_media_type.json index ea40993fcab..fe9336ed81b 100644 --- a/adapters/boldwin/boldwintest/supplemental/bad_media_type.json +++ b/adapters/boldwin/boldwintest/supplemental/bad_media_type.json @@ -44,7 +44,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/boldwin/boldwintest/supplemental/bad_response.json b/adapters/boldwin/boldwintest/supplemental/bad_response.json index cb874fc349d..231a089d2ae 100644 --- a/adapters/boldwin/boldwintest/supplemental/bad_response.json +++ b/adapters/boldwin/boldwintest/supplemental/bad_response.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/boldwin/boldwintest/supplemental/status-204.json b/adapters/boldwin/boldwintest/supplemental/status-204.json index 81aa6401339..9d8144fcca3 100644 --- a/adapters/boldwin/boldwintest/supplemental/status-204.json +++ b/adapters/boldwin/boldwintest/supplemental/status-204.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/boldwin/boldwintest/supplemental/status-not-200.json b/adapters/boldwin/boldwintest/supplemental/status-not-200.json index 9add2335420..e598b4b503c 100644 --- a/adapters/boldwin/boldwintest/supplemental/status-not-200.json +++ b/adapters/boldwin/boldwintest/supplemental/status-not-200.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/brave/brave.go b/adapters/brave/brave.go index 2642a2b91c1..a641314813a 100755 --- a/adapters/brave/brave.go +++ b/adapters/brave/brave.go @@ -61,6 +61,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Body: reqJSON, Uri: url, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, nil } diff --git a/adapters/brave/bravetest/exemplary/banner-app.json b/adapters/brave/bravetest/exemplary/banner-app.json index 71a30978299..2302cdafdc5 100644 --- a/adapters/brave/bravetest/exemplary/banner-app.json +++ b/adapters/brave/bravetest/exemplary/banner-app.json @@ -81,7 +81,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/brave/bravetest/exemplary/banner-web.json b/adapters/brave/bravetest/exemplary/banner-web.json index 0dd6dde0bd8..e623568ac7b 100644 --- a/adapters/brave/bravetest/exemplary/banner-web.json +++ b/adapters/brave/bravetest/exemplary/banner-web.json @@ -79,7 +79,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/brave/bravetest/exemplary/native-app.json b/adapters/brave/bravetest/exemplary/native-app.json index 05ac5aa8482..c6d89c7f0e8 100644 --- a/adapters/brave/bravetest/exemplary/native-app.json +++ b/adapters/brave/bravetest/exemplary/native-app.json @@ -81,7 +81,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { diff --git a/adapters/brave/bravetest/exemplary/native-web.json b/adapters/brave/bravetest/exemplary/native-web.json index 01126e46762..720a49061f9 100644 --- a/adapters/brave/bravetest/exemplary/native-web.json +++ b/adapters/brave/bravetest/exemplary/native-web.json @@ -79,7 +79,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { diff --git a/adapters/brave/bravetest/exemplary/video-app.json b/adapters/brave/bravetest/exemplary/video-app.json index 7f41510921c..a658eb18634 100644 --- a/adapters/brave/bravetest/exemplary/video-app.json +++ b/adapters/brave/bravetest/exemplary/video-app.json @@ -91,7 +91,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/brave/bravetest/exemplary/video-web.json b/adapters/brave/bravetest/exemplary/video-web.json index 5da8ff3587c..cbacfffbde9 100644 --- a/adapters/brave/bravetest/exemplary/video-web.json +++ b/adapters/brave/bravetest/exemplary/video-web.json @@ -89,7 +89,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/brave/bravetest/supplemental/empty-seatbid-array.json b/adapters/brave/bravetest/supplemental/empty-seatbid-array.json index c407c8223cb..230015dc122 100644 --- a/adapters/brave/bravetest/supplemental/empty-seatbid-array.json +++ b/adapters/brave/bravetest/supplemental/empty-seatbid-array.json @@ -89,7 +89,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/brave/bravetest/supplemental/invalid-response.json b/adapters/brave/bravetest/supplemental/invalid-response.json index 972c2b30d1d..cb5c5291f23 100644 --- a/adapters/brave/bravetest/supplemental/invalid-response.json +++ b/adapters/brave/bravetest/supplemental/invalid-response.json @@ -81,7 +81,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/brave/bravetest/supplemental/status-code-bad-request.json b/adapters/brave/bravetest/supplemental/status-code-bad-request.json index e80273a7d91..025011932be 100644 --- a/adapters/brave/bravetest/supplemental/status-code-bad-request.json +++ b/adapters/brave/bravetest/supplemental/status-code-bad-request.json @@ -92,7 +92,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/brave/bravetest/supplemental/status-code-no-content.json b/adapters/brave/bravetest/supplemental/status-code-no-content.json index eb369bd8de6..d611345d24a 100644 --- a/adapters/brave/bravetest/supplemental/status-code-no-content.json +++ b/adapters/brave/bravetest/supplemental/status-code-no-content.json @@ -92,7 +92,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/brave/bravetest/supplemental/status-code-other-error.json b/adapters/brave/bravetest/supplemental/status-code-other-error.json index bd68ee85916..72c30589e0a 100644 --- a/adapters/brave/bravetest/supplemental/status-code-other-error.json +++ b/adapters/brave/bravetest/supplemental/status-code-other-error.json @@ -92,7 +92,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 306 diff --git a/adapters/brave/bravetest/supplemental/status-code-service-unavailable.json b/adapters/brave/bravetest/supplemental/status-code-service-unavailable.json index f66347d8934..7a5d7d4ada1 100644 --- a/adapters/brave/bravetest/supplemental/status-code-service-unavailable.json +++ b/adapters/brave/bravetest/supplemental/status-code-service-unavailable.json @@ -91,7 +91,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/bwx/bwx.go b/adapters/bwx/bwx.go index bab1fb7d6a2..baa80498347 100644 --- a/adapters/bwx/bwx.go +++ b/adapters/bwx/bwx.go @@ -91,6 +91,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Body: requestJSON, Uri: endpoint, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), } requests = append(requests, request) diff --git a/adapters/bwx/bwxtest/exemplary/banner.json b/adapters/bwx/bwxtest/exemplary/banner.json index af82099d24f..085cdcd366f 100644 --- a/adapters/bwx/bwxtest/exemplary/banner.json +++ b/adapters/bwx/bwxtest/exemplary/banner.json @@ -101,7 +101,8 @@ "id": "pubid" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, @@ -182,7 +183,8 @@ "id": "pubid" } } - } + }, + "impIDs":["2"] }, "mockResponse": { "status": 200, diff --git a/adapters/bwx/bwxtest/exemplary/native.json b/adapters/bwx/bwxtest/exemplary/native.json index 0bba948285e..91a7d233c5f 100644 --- a/adapters/bwx/bwxtest/exemplary/native.json +++ b/adapters/bwx/bwxtest/exemplary/native.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bwx/bwxtest/exemplary/video.json b/adapters/bwx/bwxtest/exemplary/video.json index ffe74ee7cc4..f66c1ddb139 100644 --- a/adapters/bwx/bwxtest/exemplary/video.json +++ b/adapters/bwx/bwxtest/exemplary/video.json @@ -128,7 +128,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bwx/bwxtest/supplemental/bad-response.json b/adapters/bwx/bwxtest/supplemental/bad-response.json index 8a32dab14b6..8a26dc6409f 100644 --- a/adapters/bwx/bwxtest/supplemental/bad-response.json +++ b/adapters/bwx/bwxtest/supplemental/bad-response.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bwx/bwxtest/supplemental/empty-mediatype.json b/adapters/bwx/bwxtest/supplemental/empty-mediatype.json index ad319e84f20..6947edfcd84 100644 --- a/adapters/bwx/bwxtest/supplemental/empty-mediatype.json +++ b/adapters/bwx/bwxtest/supplemental/empty-mediatype.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bwx/bwxtest/supplemental/empty-seatbid-0-bid.json b/adapters/bwx/bwxtest/supplemental/empty-seatbid-0-bid.json index ce9d7875857..a8b4361c46a 100644 --- a/adapters/bwx/bwxtest/supplemental/empty-seatbid-0-bid.json +++ b/adapters/bwx/bwxtest/supplemental/empty-seatbid-0-bid.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bwx/bwxtest/supplemental/empty-seatbid.json b/adapters/bwx/bwxtest/supplemental/empty-seatbid.json index 2bb3290f8aa..93b20aad971 100644 --- a/adapters/bwx/bwxtest/supplemental/empty-seatbid.json +++ b/adapters/bwx/bwxtest/supplemental/empty-seatbid.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bwx/bwxtest/supplemental/invalid-mediatype.json b/adapters/bwx/bwxtest/supplemental/invalid-mediatype.json index aff08f53786..10dd5b512c9 100644 --- a/adapters/bwx/bwxtest/supplemental/invalid-mediatype.json +++ b/adapters/bwx/bwxtest/supplemental/invalid-mediatype.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/bwx/bwxtest/supplemental/status-204.json b/adapters/bwx/bwxtest/supplemental/status-204.json index e89b6e19dc8..03ac3bff991 100644 --- a/adapters/bwx/bwxtest/supplemental/status-204.json +++ b/adapters/bwx/bwxtest/supplemental/status-204.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 204, diff --git a/adapters/bwx/bwxtest/supplemental/status-400.json b/adapters/bwx/bwxtest/supplemental/status-400.json index 2094204026e..579279ad69b 100644 --- a/adapters/bwx/bwxtest/supplemental/status-400.json +++ b/adapters/bwx/bwxtest/supplemental/status-400.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 400, diff --git a/adapters/bwx/bwxtest/supplemental/status-503.json b/adapters/bwx/bwxtest/supplemental/status-503.json index 3d5a6170345..cada94ce1ce 100644 --- a/adapters/bwx/bwxtest/supplemental/status-503.json +++ b/adapters/bwx/bwxtest/supplemental/status-503.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 503 diff --git a/adapters/bwx/bwxtest/supplemental/unexpected-status.json b/adapters/bwx/bwxtest/supplemental/unexpected-status.json index f3d7ecc740f..a1671c44504 100644 --- a/adapters/bwx/bwxtest/supplemental/unexpected-status.json +++ b/adapters/bwx/bwxtest/supplemental/unexpected-status.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 403, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/banner-and-video-app.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/banner-and-video-app.json index 255174e2ec1..a2034b03120 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/banner-and-video-app.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/banner-and-video-app.json @@ -123,7 +123,8 @@ "ip": "123.123.123.123", "dnt": 1 } - } + }, + "impIDs":["some_test_ad_id_1","some_test_ad_id_2"] }, "mockResponse": { "status": 200, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/banner-and-video-site.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/banner-and-video-site.json index 1ea0397fced..ccc449db254 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/banner-and-video-site.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/banner-and-video-site.json @@ -127,7 +127,8 @@ "ip": "123.123.123.123", "dnt": 1 } - } + }, + "impIDs":["some_test_ad_id_1","some_test_ad_id_2"] }, "mockResponse": { "status": 200, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/banner-app.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/banner-app.json index 20c62402fc1..6ca6684e703 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/banner-app.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/banner-app.json @@ -77,7 +77,8 @@ "ip": "123.123.123.123", "dnt": 1 } - } + }, + "impIDs":["some_test_ad_id"] }, "mockResponse": { "status": 200, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/minimal-banner.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/minimal-banner.json index 2baf6ed3d4a..017b3242766 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/minimal-banner.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/minimal-banner.json @@ -80,7 +80,8 @@ "ip": "123.123.123.123", "dnt": 1 } - } + }, + "impIDs":["some_test_ad_id"] }, "mockResponse": { "status": 200, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/video-app.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/video-app.json index 5bade072bdd..717896c6cb5 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/video-app.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/video-app.json @@ -89,7 +89,8 @@ "ip": "123.123.123.123", "dnt": 1 } - } + }, + "impIDs":["some_test_ad_id"] }, "mockResponse": { "status": 200, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/video-ctv.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/video-ctv.json index 7afbfbf088d..254c7ad4d79 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/video-ctv.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/video-ctv.json @@ -107,7 +107,8 @@ "language": "en", "ifa": "7a2016d7-17b0-572f-a7a6-13f89a81d905" } - } + }, + "impIDs":["some_test_ad_id"] }, "mockResponse": { "status": 200, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/video-site.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/video-site.json index 9d209b91958..b1cd8e58546 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/video-site.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/exemplary/video-site.json @@ -92,7 +92,8 @@ "ip": "123.123.123.123", "dnt": 1 } - } + }, + "impIDs":["some_test_ad_id"] }, "mockResponse": { "status": 200, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/add-bidfloor.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/add-bidfloor.json index 2e3dbc3650f..6ca27960b2a 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/add-bidfloor.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/add-bidfloor.json @@ -37,7 +37,8 @@ "bidfloor": 1.25, "bidfloorcur": "USD" }] - } + }, + "impIDs":["some_test_ad"] }, "mockResponse": { "status": 200, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/app-domain-and-url-correctly-parsed.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/app-domain-and-url-correctly-parsed.json index 8930efaf470..78756b36c19 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/app-domain-and-url-correctly-parsed.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/app-domain-and-url-correctly-parsed.json @@ -53,7 +53,8 @@ "domain": "www.publisher.com", "storeurl": "http://www.publisher.com/awesome/site?with=some¶meters=here" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/app-storeUrl-correctly-parsed.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/app-storeUrl-correctly-parsed.json index 4693a105c26..792701ced0d 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/app-storeUrl-correctly-parsed.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/app-storeUrl-correctly-parsed.json @@ -51,7 +51,8 @@ "app": { "storeurl": "http://www.publisher.com/awesome/site?with=some¶meters=here" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/bad-imp-video-missing-partial-sizes.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/bad-imp-video-missing-partial-sizes.json index e3c0a84a173..fc6b9db9c8b 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/bad-imp-video-missing-partial-sizes.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/bad-imp-video-missing-partial-sizes.json @@ -94,7 +94,8 @@ "ip": "123.123.123.123", "dnt": 1 } - } + }, + "impIDs": ["some_test_ad_id"] }, "mockResponse": { "status": 200, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/build-banner-object.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/build-banner-object.json index 0c3d0d9aee3..61368b7e1ef 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/build-banner-object.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/build-banner-object.json @@ -56,7 +56,8 @@ } } }] - } + }, + "impIDs":["some_test_ad"] }, "mockResponse": { "status": 200, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/build-video-object.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/build-video-object.json index 7076501da23..e5ffbf22b2e 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/build-video-object.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/build-video-object.json @@ -57,7 +57,8 @@ } } }] - } + }, + "impIDs":["some_test_ad"] }, "mockResponse": { "status": 200, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/invalid-response-no-bids.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/invalid-response-no-bids.json index b32cc168219..e4064ce83cb 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/invalid-response-no-bids.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/invalid-response-no-bids.json @@ -39,7 +39,8 @@ "tagid": "98765" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/invalid-response-unmarshall-error.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/invalid-response-unmarshall-error.json index 4108c7a524a..5a48518513f 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/invalid-response-unmarshall-error.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/invalid-response-unmarshall-error.json @@ -34,7 +34,8 @@ }, "tagid": "654321" }] - } + }, + "impIDs":["some_test_ad"] }, "mockResponse": { "status": 200, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/server-error-code.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/server-error-code.json index e2652b36491..c5ff49c3939 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/server-error-code.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/server-error-code.json @@ -39,7 +39,8 @@ "tagid": "1234567" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/server-no-content.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/server-no-content.json index 16d7d6a5962..9e17898d9a4 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/server-no-content.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/server-no-content.json @@ -39,7 +39,8 @@ "tagid": "1234567" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/site-domain-and-url-correctly-parsed.json b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/site-domain-and-url-correctly-parsed.json index 22160cf319b..d1e4483bfcc 100644 --- a/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/site-domain-and-url-correctly-parsed.json +++ b/adapters/cadent_aperture_mx/cadent_aperture_mxtest/supplemental/site-domain-and-url-correctly-parsed.json @@ -53,7 +53,8 @@ "domain": "www.publisher.com", "page": "http://www.publisher.com/awesome/site?with=some¶meters=here" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/cadent_aperture_mx/cadentaperturemx.go b/adapters/cadent_aperture_mx/cadentaperturemx.go index b7e55d0d80b..2a0b3759733 100644 --- a/adapters/cadent_aperture_mx/cadentaperturemx.go +++ b/adapters/cadent_aperture_mx/cadentaperturemx.go @@ -78,6 +78,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: url, Body: data, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errs } diff --git a/adapters/ccx/ccx.go b/adapters/ccx/ccx.go index ac6ae4f9d0f..eb9e3597265 100644 --- a/adapters/ccx/ccx.go +++ b/adapters/ccx/ccx.go @@ -36,6 +36,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: a.endpoint, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/ccx/ccxtest/exemplary/multi-banner.json b/adapters/ccx/ccxtest/exemplary/multi-banner.json index 0d6fb2254ae..bd4e8bfca65 100644 --- a/adapters/ccx/ccxtest/exemplary/multi-banner.json +++ b/adapters/ccx/ccxtest/exemplary/multi-banner.json @@ -85,7 +85,8 @@ "gdpr":1 } } - } + }, + "impIDs":["test-imp-id-1","test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/ccx/ccxtest/exemplary/simple-banner.json b/adapters/ccx/ccxtest/exemplary/simple-banner.json index a9ea10c680b..4cac04a6f32 100644 --- a/adapters/ccx/ccxtest/exemplary/simple-banner.json +++ b/adapters/ccx/ccxtest/exemplary/simple-banner.json @@ -63,7 +63,8 @@ "gdpr":1 } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ccx/ccxtest/supplemental/204-response-from-target.json b/adapters/ccx/ccxtest/supplemental/204-response-from-target.json index 75b4dfd19b8..86c4b4970fb 100644 --- a/adapters/ccx/ccxtest/supplemental/204-response-from-target.json +++ b/adapters/ccx/ccxtest/supplemental/204-response-from-target.json @@ -41,7 +41,8 @@ "site": { "page": "somepage.com" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/ccx/ccxtest/supplemental/400-response-from-target.json b/adapters/ccx/ccxtest/supplemental/400-response-from-target.json index a57394cd90b..52045de2825 100644 --- a/adapters/ccx/ccxtest/supplemental/400-response-from-target.json +++ b/adapters/ccx/ccxtest/supplemental/400-response-from-target.json @@ -41,7 +41,8 @@ "site": { "page": "somepage.com" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/ccx/ccxtest/supplemental/500-response-from-target.json b/adapters/ccx/ccxtest/supplemental/500-response-from-target.json index 2ddd51f9dd1..6faa1418ce7 100644 --- a/adapters/ccx/ccxtest/supplemental/500-response-from-target.json +++ b/adapters/ccx/ccxtest/supplemental/500-response-from-target.json @@ -41,7 +41,8 @@ "site": { "page": "somepage.com" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500 diff --git a/adapters/coinzilla/coinzilla.go b/adapters/coinzilla/coinzilla.go index a3de4fa534f..8939a75cec7 100644 --- a/adapters/coinzilla/coinzilla.go +++ b/adapters/coinzilla/coinzilla.go @@ -46,6 +46,7 @@ func (adapter *adapter) MakeRequests(openRTBRequest *openrtb2.BidRequest, reqInf Uri: adapter.endpoint, Body: openRTBRequestJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), } requestsToBidder = append(requestsToBidder, requestToBidder) diff --git a/adapters/coinzilla/coinzillatest/exemplary/multi-banners.json b/adapters/coinzilla/coinzillatest/exemplary/multi-banners.json index dcbfe3e1797..8a2e7229220 100644 --- a/adapters/coinzilla/coinzillatest/exemplary/multi-banners.json +++ b/adapters/coinzilla/coinzillatest/exemplary/multi-banners.json @@ -48,7 +48,8 @@ } } }] - } + }, + "impIDs":["testImpressionId"] }, "mockResponse": { "status": 200, diff --git a/adapters/coinzilla/coinzillatest/exemplary/multi-imp.json b/adapters/coinzilla/coinzillatest/exemplary/multi-imp.json index f17ee95db5b..9ed98f8d8cc 100644 --- a/adapters/coinzilla/coinzillatest/exemplary/multi-imp.json +++ b/adapters/coinzilla/coinzillatest/exemplary/multi-imp.json @@ -69,7 +69,8 @@ } } }] - } + }, + "impIDs":["testImpressionIdFirst","testImpressionIdSecond"] }, "mockResponse": { "status": 200, diff --git a/adapters/coinzilla/coinzillatest/exemplary/single-banner.json b/adapters/coinzilla/coinzillatest/exemplary/single-banner.json index 5d609266dcf..970654b8ffa 100644 --- a/adapters/coinzilla/coinzillatest/exemplary/single-banner.json +++ b/adapters/coinzilla/coinzillatest/exemplary/single-banner.json @@ -42,7 +42,8 @@ } } }] - } + }, + "impIDs":["testImpressionId"] }, "mockResponse": { "status": 200, diff --git a/adapters/coinzilla/coinzillatest/supplemental/bad-request.json b/adapters/coinzilla/coinzillatest/supplemental/bad-request.json index 3787ff71841..311953a67e9 100644 --- a/adapters/coinzilla/coinzillatest/supplemental/bad-request.json +++ b/adapters/coinzilla/coinzillatest/supplemental/bad-request.json @@ -42,7 +42,8 @@ } } }] - } + }, + "impIDs":["testImpressionId"] }, "mockResponse": { "status": 400, diff --git a/adapters/coinzilla/coinzillatest/supplemental/no-bid.json b/adapters/coinzilla/coinzillatest/supplemental/no-bid.json index cff63b6b983..a52114b1fac 100644 --- a/adapters/coinzilla/coinzillatest/supplemental/no-bid.json +++ b/adapters/coinzilla/coinzillatest/supplemental/no-bid.json @@ -42,7 +42,8 @@ } } }] - } + }, + "impIDs":["testImpressionId"] }, "mockResponse": { "status": 204, diff --git a/adapters/colossus/colossus.go b/adapters/colossus/colossus.go index 649de9b79cd..d66b588ab4e 100644 --- a/adapters/colossus/colossus.go +++ b/adapters/colossus/colossus.go @@ -73,6 +73,7 @@ func (a *ColossusAdapter) makeRequest(request *openrtb2.BidRequest) (*adapters.R Uri: a.URI, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, errs } diff --git a/adapters/colossus/colossustest/exemplary/simple-banner-groupId.json b/adapters/colossus/colossustest/exemplary/simple-banner-groupId.json index e8baa00ab1f..21a9ba7afce 100644 --- a/adapters/colossus/colossustest/exemplary/simple-banner-groupId.json +++ b/adapters/colossus/colossustest/exemplary/simple-banner-groupId.json @@ -47,7 +47,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/colossus/colossustest/exemplary/simple-banner-without-ext.json b/adapters/colossus/colossustest/exemplary/simple-banner-without-ext.json index 2fd8887882f..0499ce6a5cd 100644 --- a/adapters/colossus/colossustest/exemplary/simple-banner-without-ext.json +++ b/adapters/colossus/colossustest/exemplary/simple-banner-without-ext.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/colossus/colossustest/exemplary/simple-banner.json b/adapters/colossus/colossustest/exemplary/simple-banner.json index df6618248d6..e0715398409 100644 --- a/adapters/colossus/colossustest/exemplary/simple-banner.json +++ b/adapters/colossus/colossustest/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/colossus/colossustest/exemplary/simple-native-without-ext.json b/adapters/colossus/colossustest/exemplary/simple-native-without-ext.json index 4fbbe064842..9548890559f 100644 --- a/adapters/colossus/colossustest/exemplary/simple-native-without-ext.json +++ b/adapters/colossus/colossustest/exemplary/simple-native-without-ext.json @@ -53,7 +53,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/colossus/colossustest/exemplary/simple-native.json b/adapters/colossus/colossustest/exemplary/simple-native.json index 360ab9ace07..b5c2a9c30a5 100644 --- a/adapters/colossus/colossustest/exemplary/simple-native.json +++ b/adapters/colossus/colossustest/exemplary/simple-native.json @@ -53,7 +53,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/colossus/colossustest/exemplary/simple-video-without-ext.json b/adapters/colossus/colossustest/exemplary/simple-video-without-ext.json index 14ddba57c2c..fbfb4be4c12 100644 --- a/adapters/colossus/colossustest/exemplary/simple-video-without-ext.json +++ b/adapters/colossus/colossustest/exemplary/simple-video-without-ext.json @@ -58,7 +58,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/colossus/colossustest/exemplary/simple-video.json b/adapters/colossus/colossustest/exemplary/simple-video.json index d31a6cf9f8c..e40a773951d 100644 --- a/adapters/colossus/colossustest/exemplary/simple-video.json +++ b/adapters/colossus/colossustest/exemplary/simple-video.json @@ -58,7 +58,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/colossus/colossustest/exemplary/simple-web-banner.json b/adapters/colossus/colossustest/exemplary/simple-web-banner.json index 14f613fde93..f8d26327405 100644 --- a/adapters/colossus/colossustest/exemplary/simple-web-banner.json +++ b/adapters/colossus/colossustest/exemplary/simple-web-banner.json @@ -69,7 +69,8 @@ "device": { "ip": "123.123.123.123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/colossus/colossustest/supplemental/bad_media_type.json b/adapters/colossus/colossustest/supplemental/bad_media_type.json index 828e0a807a5..03deb68fbb2 100644 --- a/adapters/colossus/colossustest/supplemental/bad_media_type.json +++ b/adapters/colossus/colossustest/supplemental/bad_media_type.json @@ -44,7 +44,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/colossus/colossustest/supplemental/bad_response.json b/adapters/colossus/colossustest/supplemental/bad_response.json index 62b862b181e..10efa26e397 100644 --- a/adapters/colossus/colossustest/supplemental/bad_response.json +++ b/adapters/colossus/colossustest/supplemental/bad_response.json @@ -69,7 +69,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/colossus/colossustest/supplemental/bad_status_code.json b/adapters/colossus/colossustest/supplemental/bad_status_code.json index f5b6a5748af..5ae2954263b 100644 --- a/adapters/colossus/colossustest/supplemental/bad_status_code.json +++ b/adapters/colossus/colossustest/supplemental/bad_status_code.json @@ -63,7 +63,8 @@ "bundle": "com.wls.testwlsapplication" }, "device": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/colossus/colossustest/supplemental/status-204.json b/adapters/colossus/colossustest/supplemental/status-204.json index 92834b0cee0..966baac385b 100644 --- a/adapters/colossus/colossustest/supplemental/status-204.json +++ b/adapters/colossus/colossustest/supplemental/status-204.json @@ -69,7 +69,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/colossus/colossustest/supplemental/status-404.json b/adapters/colossus/colossustest/supplemental/status-404.json index 676eb8bb2f4..258306067f8 100644 --- a/adapters/colossus/colossustest/supplemental/status-404.json +++ b/adapters/colossus/colossustest/supplemental/status-404.json @@ -69,7 +69,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/compass/compass.go b/adapters/compass/compass.go index ea4886fa5d5..ff74757d058 100644 --- a/adapters/compass/compass.go +++ b/adapters/compass/compass.go @@ -94,6 +94,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, err } diff --git a/adapters/compass/compasstest/exemplary/endpointId.json b/adapters/compass/compasstest/exemplary/endpointId.json index f02481b32a3..2fd3f902e5f 100644 --- a/adapters/compass/compasstest/exemplary/endpointId.json +++ b/adapters/compass/compasstest/exemplary/endpointId.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/compass/compasstest/exemplary/simple-banner.json b/adapters/compass/compasstest/exemplary/simple-banner.json index 592570cda6b..aed12bec5cf 100644 --- a/adapters/compass/compasstest/exemplary/simple-banner.json +++ b/adapters/compass/compasstest/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/compass/compasstest/exemplary/simple-native.json b/adapters/compass/compasstest/exemplary/simple-native.json index 0ec8b43ce9c..5be9bd98187 100644 --- a/adapters/compass/compasstest/exemplary/simple-native.json +++ b/adapters/compass/compasstest/exemplary/simple-native.json @@ -55,7 +55,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/compass/compasstest/exemplary/simple-video.json b/adapters/compass/compasstest/exemplary/simple-video.json index 0f279496f36..5692121ea88 100644 --- a/adapters/compass/compasstest/exemplary/simple-video.json +++ b/adapters/compass/compasstest/exemplary/simple-video.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/compass/compasstest/exemplary/simple-web-banner.json b/adapters/compass/compasstest/exemplary/simple-web-banner.json index 1896101ac68..8ef46cf7909 100644 --- a/adapters/compass/compasstest/exemplary/simple-web-banner.json +++ b/adapters/compass/compasstest/exemplary/simple-web-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "Ubuntu" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/compass/compasstest/supplemental/bad_media_type.json b/adapters/compass/compasstest/supplemental/bad_media_type.json index 0bfaec4f23d..abd3e37b171 100644 --- a/adapters/compass/compasstest/supplemental/bad_media_type.json +++ b/adapters/compass/compasstest/supplemental/bad_media_type.json @@ -44,7 +44,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/compass/compasstest/supplemental/bad_response.json b/adapters/compass/compasstest/supplemental/bad_response.json index 3c660338c63..86656d785bc 100644 --- a/adapters/compass/compasstest/supplemental/bad_response.json +++ b/adapters/compass/compasstest/supplemental/bad_response.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/compass/compasstest/supplemental/status-204.json b/adapters/compass/compasstest/supplemental/status-204.json index 1ff5c55abeb..1e99bea063f 100644 --- a/adapters/compass/compasstest/supplemental/status-204.json +++ b/adapters/compass/compasstest/supplemental/status-204.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/compass/compasstest/supplemental/status-not-200.json b/adapters/compass/compasstest/supplemental/status-not-200.json index 51f648de360..4b268e6a2d4 100644 --- a/adapters/compass/compasstest/supplemental/status-not-200.json +++ b/adapters/compass/compasstest/supplemental/status-not-200.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/connectad/connectad.go b/adapters/connectad/connectad.go index 5bf60106016..e71184aec0c 100644 --- a/adapters/connectad/connectad.go +++ b/adapters/connectad/connectad.go @@ -66,6 +66,7 @@ func (a *ConnectAdAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *a Uri: a.endpoint, Body: data, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errs } diff --git a/adapters/connectad/connectadtest/exemplary/optional-params.json b/adapters/connectad/connectadtest/exemplary/optional-params.json index 78e69294c9a..6fa2634686e 100644 --- a/adapters/connectad/connectadtest/exemplary/optional-params.json +++ b/adapters/connectad/connectadtest/exemplary/optional-params.json @@ -76,7 +76,8 @@ "ip": "111.111.111.111", "dnt": 1 } - } + }, + "impIDs":["test-banner-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/connectad/connectadtest/exemplary/simple-banner.json b/adapters/connectad/connectadtest/exemplary/simple-banner.json index df855acf506..77905a53b6e 100644 --- a/adapters/connectad/connectadtest/exemplary/simple-banner.json +++ b/adapters/connectad/connectadtest/exemplary/simple-banner.json @@ -73,7 +73,8 @@ "ip": "111.111.111.111", "dnt": 1 } - } + }, + "impIDs":["test-banner-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/connectad/connectadtest/supplemental/204.json b/adapters/connectad/connectadtest/supplemental/204.json index 4b5828b4d77..94b36b58352 100644 --- a/adapters/connectad/connectadtest/supplemental/204.json +++ b/adapters/connectad/connectadtest/supplemental/204.json @@ -73,7 +73,8 @@ "ip": "111.111.111.111", "dnt": 1 } - } + }, + "impIDs":["test-banner-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/connectad/connectadtest/supplemental/badresponse.json b/adapters/connectad/connectadtest/supplemental/badresponse.json index 6c3bdaa4985..9f2761c9044 100644 --- a/adapters/connectad/connectadtest/supplemental/badresponse.json +++ b/adapters/connectad/connectadtest/supplemental/badresponse.json @@ -73,7 +73,8 @@ "ip": "111.111.111.111", "dnt": 1 } - } + }, + "impIDs":["test-banner-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/connectad/connectadtest/supplemental/banner-multi.json b/adapters/connectad/connectadtest/supplemental/banner-multi.json index ccb39a48feb..f01de17e5f8 100644 --- a/adapters/connectad/connectadtest/supplemental/banner-multi.json +++ b/adapters/connectad/connectadtest/supplemental/banner-multi.json @@ -99,7 +99,8 @@ "ip": "111.111.111.111", "dnt": 1 } - } + }, + "impIDs":["test-banner-imp-id","test-banner-imp-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/connectad/connectadtest/supplemental/err500.json b/adapters/connectad/connectadtest/supplemental/err500.json index a00e6edeb8e..3d7b73f088a 100644 --- a/adapters/connectad/connectadtest/supplemental/err500.json +++ b/adapters/connectad/connectadtest/supplemental/err500.json @@ -73,7 +73,8 @@ "ip": "111.111.111.111", "dnt": 1 } - } + }, + "impIDs":["test-banner-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/connectad/connectadtest/supplemental/ipv6.json b/adapters/connectad/connectadtest/supplemental/ipv6.json index 3b09536a5de..f4e7e4d77fc 100644 --- a/adapters/connectad/connectadtest/supplemental/ipv6.json +++ b/adapters/connectad/connectadtest/supplemental/ipv6.json @@ -73,7 +73,8 @@ "ipv6": "2001:0db8:0a0b:12f0:0000:0000:0000:0001", "dnt": 1 } - } + }, + "impIDs":["test-banner-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/connectad/connectadtest/supplemental/no_device.json b/adapters/connectad/connectadtest/supplemental/no_device.json index 78a6499f434..71cccbc7b24 100644 --- a/adapters/connectad/connectadtest/supplemental/no_device.json +++ b/adapters/connectad/connectadtest/supplemental/no_device.json @@ -54,7 +54,8 @@ "domain": "connectad.io", "page": "http://connectad.io/" } - } + }, + "impIDs":["test-banner-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/connectad/connectadtest/supplemental/no_dnt.json b/adapters/connectad/connectadtest/supplemental/no_dnt.json index 9f36f556952..0a9c9de05c6 100644 --- a/adapters/connectad/connectadtest/supplemental/no_dnt.json +++ b/adapters/connectad/connectadtest/supplemental/no_dnt.json @@ -71,7 +71,8 @@ "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36", "ip": "111.111.111.111" } - } + }, + "impIDs":["test-banner-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable.go b/adapters/consumable/consumable.go index 94cd7d5fd2d..17ef90f2acf 100644 --- a/adapters/consumable/consumable.go +++ b/adapters/consumable/consumable.go @@ -44,6 +44,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: "https://e.serverbid.com/sb/rtb", Body: bodyBytes, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, } return requests, errs @@ -65,6 +66,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: "https://e.serverbid.com/rtb/bid?s=" + consumableExt.PlacementId, Body: bodyBytes, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, } return requests, errs diff --git a/adapters/consumable/consumable/exemplary/app-audio.json b/adapters/consumable/consumable/exemplary/app-audio.json index 589842c8876..5c814c1e1b1 100644 --- a/adapters/consumable/consumable/exemplary/app-audio.json +++ b/adapters/consumable/consumable/exemplary/app-audio.json @@ -66,7 +66,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable/exemplary/app-banner.json b/adapters/consumable/consumable/exemplary/app-banner.json index 688ccb74c05..339f8a95d0a 100644 --- a/adapters/consumable/consumable/exemplary/app-banner.json +++ b/adapters/consumable/consumable/exemplary/app-banner.json @@ -60,7 +60,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable/exemplary/app-video.json b/adapters/consumable/consumable/exemplary/app-video.json index a3772933aba..6cfb68b3124 100644 --- a/adapters/consumable/consumable/exemplary/app-video.json +++ b/adapters/consumable/consumable/exemplary/app-video.json @@ -70,7 +70,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable/exemplary/simple-banner.json b/adapters/consumable/consumable/exemplary/simple-banner.json index 2e401b88087..819caeea415 100644 --- a/adapters/consumable/consumable/exemplary/simple-banner.json +++ b/adapters/consumable/consumable/exemplary/simple-banner.json @@ -78,7 +78,8 @@ "domain": "www.some.com", "page": "http://www.some.com/page-where-ad-will-be-shown" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable/supplemental/app-banner-no-ad.json b/adapters/consumable/consumable/supplemental/app-banner-no-ad.json index c3d7238e104..42335eac028 100644 --- a/adapters/consumable/consumable/supplemental/app-banner-no-ad.json +++ b/adapters/consumable/consumable/supplemental/app-banner-no-ad.json @@ -60,7 +60,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/consumable/consumable/supplemental/app-video-no-media-type.json b/adapters/consumable/consumable/supplemental/app-video-no-media-type.json index 3cba39bb5b5..15e6390eaae 100644 --- a/adapters/consumable/consumable/supplemental/app-video-no-media-type.json +++ b/adapters/consumable/consumable/supplemental/app-video-no-media-type.json @@ -70,7 +70,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable/supplemental/bad-dsp-request-example.json b/adapters/consumable/consumable/supplemental/bad-dsp-request-example.json index c66bb9ab5de..388a6e13220 100644 --- a/adapters/consumable/consumable/supplemental/bad-dsp-request-example.json +++ b/adapters/consumable/consumable/supplemental/bad-dsp-request-example.json @@ -60,7 +60,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/consumable/consumable/supplemental/dsp-server-internal-error-example.json b/adapters/consumable/consumable/supplemental/dsp-server-internal-error-example.json index 07ad8e2358a..0ab1b24c65a 100644 --- a/adapters/consumable/consumable/supplemental/dsp-server-internal-error-example.json +++ b/adapters/consumable/consumable/supplemental/dsp-server-internal-error-example.json @@ -60,7 +60,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/consumable/consumable/supplemental/simple-banner-content-meta.json b/adapters/consumable/consumable/supplemental/simple-banner-content-meta.json index 220c8ab2069..d8be0cde0d7 100644 --- a/adapters/consumable/consumable/supplemental/simple-banner-content-meta.json +++ b/adapters/consumable/consumable/supplemental/simple-banner-content-meta.json @@ -80,7 +80,8 @@ "domain": "www.some.com", "page": "http://www.some.com/page-where-ad-will-be-shown" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable/supplemental/simple-banner-coppa.json b/adapters/consumable/consumable/supplemental/simple-banner-coppa.json index 25b732a21ce..9baa383b352 100644 --- a/adapters/consumable/consumable/supplemental/simple-banner-coppa.json +++ b/adapters/consumable/consumable/supplemental/simple-banner-coppa.json @@ -65,7 +65,8 @@ "domain": "www.some.com", "page": "http://www.some.com/page-where-ad-will-be-shown" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable/supplemental/simple-banner-eids.json b/adapters/consumable/consumable/supplemental/simple-banner-eids.json index d273117b1ae..769d0ea74a2 100644 --- a/adapters/consumable/consumable/supplemental/simple-banner-eids.json +++ b/adapters/consumable/consumable/supplemental/simple-banner-eids.json @@ -100,7 +100,8 @@ ] } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable/supplemental/simple-banner-gdpr-2.json b/adapters/consumable/consumable/supplemental/simple-banner-gdpr-2.json index b2dbc9bdfbf..eddaff8723a 100644 --- a/adapters/consumable/consumable/supplemental/simple-banner-gdpr-2.json +++ b/adapters/consumable/consumable/supplemental/simple-banner-gdpr-2.json @@ -69,7 +69,8 @@ "domain": "www.some.com", "page": "http://www.some.com/page-where-ad-will-be-shown" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable/supplemental/simple-banner-gdpr-3.json b/adapters/consumable/consumable/supplemental/simple-banner-gdpr-3.json index fccc96ed6df..be3e6e54539 100644 --- a/adapters/consumable/consumable/supplemental/simple-banner-gdpr-3.json +++ b/adapters/consumable/consumable/supplemental/simple-banner-gdpr-3.json @@ -74,7 +74,8 @@ "consent": "abcdefghijklm" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable/supplemental/simple-banner-gdpr.json b/adapters/consumable/consumable/supplemental/simple-banner-gdpr.json index 99105a77325..60d54c05b5c 100644 --- a/adapters/consumable/consumable/supplemental/simple-banner-gdpr.json +++ b/adapters/consumable/consumable/supplemental/simple-banner-gdpr.json @@ -84,7 +84,8 @@ "consent": "abcdefghijklm" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable/supplemental/simple-banner-gpp.json b/adapters/consumable/consumable/supplemental/simple-banner-gpp.json index eae291c1c61..bc0dc5f0887 100644 --- a/adapters/consumable/consumable/supplemental/simple-banner-gpp.json +++ b/adapters/consumable/consumable/supplemental/simple-banner-gpp.json @@ -76,7 +76,8 @@ "domain": "www.some.com", "page": "http://www.some.com/page-where-ad-will-be-shown" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable/supplemental/simple-banner-meta.json b/adapters/consumable/consumable/supplemental/simple-banner-meta.json index 782ddc7bbe7..4a0cadf554f 100644 --- a/adapters/consumable/consumable/supplemental/simple-banner-meta.json +++ b/adapters/consumable/consumable/supplemental/simple-banner-meta.json @@ -59,7 +59,8 @@ "domain": "www.some.com", "page": "http://www.some.com/page-where-ad-will-be-shown" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable/supplemental/simple-banner-no-impressionUrl.json b/adapters/consumable/consumable/supplemental/simple-banner-no-impressionUrl.json index fddf160a548..3a40bfaa679 100644 --- a/adapters/consumable/consumable/supplemental/simple-banner-no-impressionUrl.json +++ b/adapters/consumable/consumable/supplemental/simple-banner-no-impressionUrl.json @@ -74,7 +74,8 @@ "user": { "buyeruid": "azk-user-id" } - } + }, + "impIDs":["test-no-impUrl-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable/supplemental/simple-banner-schain.json b/adapters/consumable/consumable/supplemental/simple-banner-schain.json index c3491e6d1e0..734bdda91b5 100644 --- a/adapters/consumable/consumable/supplemental/simple-banner-schain.json +++ b/adapters/consumable/consumable/supplemental/simple-banner-schain.json @@ -94,7 +94,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable/supplemental/simple-banner-us-privacy.json b/adapters/consumable/consumable/supplemental/simple-banner-us-privacy.json index bf27672805c..924b0c301f4 100644 --- a/adapters/consumable/consumable/supplemental/simple-banner-us-privacy.json +++ b/adapters/consumable/consumable/supplemental/simple-banner-us-privacy.json @@ -74,7 +74,8 @@ "us_privacy": "1NYN" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/consumable/consumable/supplemental/unknown-status-code-example.json b/adapters/consumable/consumable/supplemental/unknown-status-code-example.json index 58fafcff6b2..7fca5ef653d 100644 --- a/adapters/consumable/consumable/supplemental/unknown-status-code-example.json +++ b/adapters/consumable/consumable/supplemental/unknown-status-code-example.json @@ -60,7 +60,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 301, diff --git a/adapters/conversant/conversant.go b/adapters/conversant/conversant.go index 48d238bebd0..f8edc4a72c6 100644 --- a/adapters/conversant/conversant.go +++ b/adapters/conversant/conversant.go @@ -69,6 +69,7 @@ func (c *ConversantAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo * Uri: c.URI, Body: data, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, nil } diff --git a/adapters/conversant/conversanttest/exemplary/banner.json b/adapters/conversant/conversanttest/exemplary/banner.json index 472e18f712d..8523bb671d7 100644 --- a/adapters/conversant/conversanttest/exemplary/banner.json +++ b/adapters/conversant/conversanttest/exemplary/banner.json @@ -61,7 +61,8 @@ "ip": "192.168.1.1", "dnt": 1 } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/conversant/conversanttest/exemplary/simple_app.json b/adapters/conversant/conversanttest/exemplary/simple_app.json index 303c60f75a9..a4c825e1f64 100644 --- a/adapters/conversant/conversanttest/exemplary/simple_app.json +++ b/adapters/conversant/conversanttest/exemplary/simple_app.json @@ -65,7 +65,8 @@ "ip": "192.168.1.1", "dnt": 1 } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/conversant/conversanttest/exemplary/video.json b/adapters/conversant/conversanttest/exemplary/video.json index 475dd796262..3f2df23f95c 100644 --- a/adapters/conversant/conversanttest/exemplary/video.json +++ b/adapters/conversant/conversanttest/exemplary/video.json @@ -87,7 +87,8 @@ "ip": "192.168.1.1", "dnt": 1 } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/conversant/conversanttest/supplemental/server_badresponse.json b/adapters/conversant/conversanttest/supplemental/server_badresponse.json index 96cb4b46452..26c74eaa662 100644 --- a/adapters/conversant/conversanttest/supplemental/server_badresponse.json +++ b/adapters/conversant/conversanttest/supplemental/server_badresponse.json @@ -42,7 +42,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/conversant/conversanttest/supplemental/server_nocontent.json b/adapters/conversant/conversanttest/supplemental/server_nocontent.json index ad86d19d6b2..ca33f470a5b 100644 --- a/adapters/conversant/conversanttest/supplemental/server_nocontent.json +++ b/adapters/conversant/conversanttest/supplemental/server_nocontent.json @@ -42,7 +42,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 204 diff --git a/adapters/conversant/conversanttest/supplemental/server_unknownstatus.json b/adapters/conversant/conversanttest/supplemental/server_unknownstatus.json index 85586f066c6..129b6fba025 100644 --- a/adapters/conversant/conversanttest/supplemental/server_unknownstatus.json +++ b/adapters/conversant/conversanttest/supplemental/server_unknownstatus.json @@ -42,7 +42,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 302 diff --git a/adapters/conversant/conversanttest/supplemental/test_params.json b/adapters/conversant/conversanttest/supplemental/test_params.json index 403bcc42226..41366dbe19b 100644 --- a/adapters/conversant/conversanttest/supplemental/test_params.json +++ b/adapters/conversant/conversanttest/supplemental/test_params.json @@ -206,7 +206,8 @@ } } ] - } + }, + "impIDs":["1","2","3","4"] }, "mockResponse": { "status": 200, diff --git a/adapters/cpmstar/cpmstar.go b/adapters/cpmstar/cpmstar.go index 9b2c6fd862f..893290c891e 100644 --- a/adapters/cpmstar/cpmstar.go +++ b/adapters/cpmstar/cpmstar.go @@ -52,6 +52,7 @@ func (a *Adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: jsonBody, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, nil } diff --git a/adapters/cpmstar/cpmstartest/exemplary/banner-and-video.json b/adapters/cpmstar/cpmstartest/exemplary/banner-and-video.json index 05a67d577ac..828d435b7c9 100644 --- a/adapters/cpmstar/cpmstartest/exemplary/banner-and-video.json +++ b/adapters/cpmstar/cpmstartest/exemplary/banner-and-video.json @@ -88,7 +88,8 @@ "site": { "id": "fake-site-id" } - } + }, + "impIDs":["test-banner-imp-id","test-video-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/cpmstar/cpmstartest/exemplary/banner.json b/adapters/cpmstar/cpmstartest/exemplary/banner.json index 0bbe3060a63..5c2362ee3cc 100644 --- a/adapters/cpmstar/cpmstartest/exemplary/banner.json +++ b/adapters/cpmstar/cpmstartest/exemplary/banner.json @@ -50,7 +50,8 @@ "site": { "id": "fake-site-id" } - } + }, + "impIDs":["test-banner-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/cpmstar/cpmstartest/exemplary/video.json b/adapters/cpmstar/cpmstartest/exemplary/video.json index f18a5773b0a..5b55ff0635e 100644 --- a/adapters/cpmstar/cpmstartest/exemplary/video.json +++ b/adapters/cpmstar/cpmstartest/exemplary/video.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-video-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/cpmstar/cpmstartest/supplemental/explicit-dimensions.json b/adapters/cpmstar/cpmstartest/supplemental/explicit-dimensions.json index 8e73961a155..3e2121a5b83 100644 --- a/adapters/cpmstar/cpmstartest/supplemental/explicit-dimensions.json +++ b/adapters/cpmstar/cpmstartest/supplemental/explicit-dimensions.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/cpmstar/cpmstartest/supplemental/invalid-response-no-bids.json b/adapters/cpmstar/cpmstartest/supplemental/invalid-response-no-bids.json index 01a9a2980bb..a1e84b814bb 100644 --- a/adapters/cpmstar/cpmstartest/supplemental/invalid-response-no-bids.json +++ b/adapters/cpmstar/cpmstartest/supplemental/invalid-response-no-bids.json @@ -34,7 +34,8 @@ } } ] - } + }, + "impIDs":["some_test_ad"] }, "mockResponse": { "status": 200, diff --git a/adapters/cpmstar/cpmstartest/supplemental/invalid-response-unmarshall-error.json b/adapters/cpmstar/cpmstartest/supplemental/invalid-response-unmarshall-error.json index 4350b2dc714..141cfc0271c 100644 --- a/adapters/cpmstar/cpmstartest/supplemental/invalid-response-unmarshall-error.json +++ b/adapters/cpmstar/cpmstartest/supplemental/invalid-response-unmarshall-error.json @@ -34,7 +34,8 @@ } } ] - } + }, + "impIDs":["some_test_ad"] }, "mockResponse": { "status": 200, diff --git a/adapters/cpmstar/cpmstartest/supplemental/server-error-code.json b/adapters/cpmstar/cpmstartest/supplemental/server-error-code.json index 21e697d13f1..7bb157fa490 100644 --- a/adapters/cpmstar/cpmstartest/supplemental/server-error-code.json +++ b/adapters/cpmstar/cpmstartest/supplemental/server-error-code.json @@ -35,7 +35,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/cpmstar/cpmstartest/supplemental/server-no-content.json b/adapters/cpmstar/cpmstartest/supplemental/server-no-content.json index 9af091fa5ca..427460f8099 100644 --- a/adapters/cpmstar/cpmstartest/supplemental/server-no-content.json +++ b/adapters/cpmstar/cpmstartest/supplemental/server-no-content.json @@ -34,7 +34,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/cpmstar/cpmstartest/supplemental/wrong-impression-mapping.json b/adapters/cpmstar/cpmstartest/supplemental/wrong-impression-mapping.json index e1e5ddf9dba..89e815becaa 100644 --- a/adapters/cpmstar/cpmstartest/supplemental/wrong-impression-mapping.json +++ b/adapters/cpmstar/cpmstartest/supplemental/wrong-impression-mapping.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/criteo/criteo.go b/adapters/criteo/criteo.go index e08831ad35f..69fc8b38f14 100644 --- a/adapters/criteo/criteo.go +++ b/adapters/criteo/criteo.go @@ -42,6 +42,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: a.endpoint, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/criteo/criteotest/exemplary/simple-banner-cookie-uid.json b/adapters/criteo/criteotest/exemplary/simple-banner-cookie-uid.json index bc6098c5e35..97f13a84ab3 100755 --- a/adapters/criteo/criteotest/exemplary/simple-banner-cookie-uid.json +++ b/adapters/criteo/criteotest/exemplary/simple-banner-cookie-uid.json @@ -71,7 +71,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/criteo/criteotest/exemplary/simple-banner-inapp.json b/adapters/criteo/criteotest/exemplary/simple-banner-inapp.json index af62c3d1a6c..a1b6fad14d0 100755 --- a/adapters/criteo/criteotest/exemplary/simple-banner-inapp.json +++ b/adapters/criteo/criteotest/exemplary/simple-banner-inapp.json @@ -65,7 +65,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/criteo/criteotest/exemplary/simple-banner-multiple-bids.json b/adapters/criteo/criteotest/exemplary/simple-banner-multiple-bids.json index 444055869d5..6bf1fb89e24 100644 --- a/adapters/criteo/criteotest/exemplary/simple-banner-multiple-bids.json +++ b/adapters/criteo/criteotest/exemplary/simple-banner-multiple-bids.json @@ -127,7 +127,8 @@ } } ] - } + }, + "impIDs":["test-imp-id","test-imp-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/criteo/criteotest/exemplary/simple-banner-uid.json b/adapters/criteo/criteotest/exemplary/simple-banner-uid.json index d1174c38eca..3b9edf5f073 100755 --- a/adapters/criteo/criteotest/exemplary/simple-banner-uid.json +++ b/adapters/criteo/criteotest/exemplary/simple-banner-uid.json @@ -93,7 +93,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/criteo/criteotest/exemplary/simple-multi-type-banner.json b/adapters/criteo/criteotest/exemplary/simple-multi-type-banner.json index a13f5684660..5fc15fd1c1e 100644 --- a/adapters/criteo/criteotest/exemplary/simple-multi-type-banner.json +++ b/adapters/criteo/criteotest/exemplary/simple-multi-type-banner.json @@ -105,7 +105,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/criteo/criteotest/exemplary/simple-multi-type-video.json b/adapters/criteo/criteotest/exemplary/simple-multi-type-video.json index 4aaba73fff5..d4f9c9683ed 100644 --- a/adapters/criteo/criteotest/exemplary/simple-multi-type-video.json +++ b/adapters/criteo/criteotest/exemplary/simple-multi-type-video.json @@ -105,7 +105,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/criteo/criteotest/exemplary/simple-video.json b/adapters/criteo/criteotest/exemplary/simple-video.json index 01a1ddbdfd6..87c8d0ddead 100644 --- a/adapters/criteo/criteotest/exemplary/simple-video.json +++ b/adapters/criteo/criteotest/exemplary/simple-video.json @@ -89,7 +89,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/criteo/criteotest/supplemental/204-response-from-target.json b/adapters/criteo/criteotest/supplemental/204-response-from-target.json index c3b30ac9927..449607ddb9b 100755 --- a/adapters/criteo/criteotest/supplemental/204-response-from-target.json +++ b/adapters/criteo/criteotest/supplemental/204-response-from-target.json @@ -75,7 +75,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/criteo/criteotest/supplemental/400-response-from-target.json b/adapters/criteo/criteotest/supplemental/400-response-from-target.json index 43b7d0854f8..b0c6b8b4ae2 100755 --- a/adapters/criteo/criteotest/supplemental/400-response-from-target.json +++ b/adapters/criteo/criteotest/supplemental/400-response-from-target.json @@ -75,7 +75,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/criteo/criteotest/supplemental/500-response-from-target.json b/adapters/criteo/criteotest/supplemental/500-response-from-target.json index 089c7b5febb..d9a507f8e9e 100755 --- a/adapters/criteo/criteotest/supplemental/500-response-from-target.json +++ b/adapters/criteo/criteotest/supplemental/500-response-from-target.json @@ -75,7 +75,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500 diff --git a/adapters/criteo/criteotest/supplemental/simple-banner-with-ipv6.json b/adapters/criteo/criteotest/supplemental/simple-banner-with-ipv6.json index 31e24fcc4ef..b56da8a5f3d 100755 --- a/adapters/criteo/criteotest/supplemental/simple-banner-with-ipv6.json +++ b/adapters/criteo/criteotest/supplemental/simple-banner-with-ipv6.json @@ -85,7 +85,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/cwire/cwire.go b/adapters/cwire/cwire.go index 00c2c373ab4..244be129b30 100644 --- a/adapters/cwire/cwire.go +++ b/adapters/cwire/cwire.go @@ -57,6 +57,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: a.endpoint, Body: resJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, } diff --git a/adapters/cwire/cwiretest/exemplary/banner-imp-ext.json b/adapters/cwire/cwiretest/exemplary/banner-imp-ext.json index af9860d6a40..f303eed38fd 100644 --- a/adapters/cwire/cwiretest/exemplary/banner-imp-ext.json +++ b/adapters/cwire/cwiretest/exemplary/banner-imp-ext.json @@ -82,7 +82,8 @@ "city": "basel" } } - } + }, + "impIDs":["102"] }, "mockResponse": { "status": 200, diff --git a/adapters/cwire/cwiretest/exemplary/banner.json b/adapters/cwire/cwiretest/exemplary/banner.json index ca67cea8e51..e4c90dee9c9 100644 --- a/adapters/cwire/cwiretest/exemplary/banner.json +++ b/adapters/cwire/cwiretest/exemplary/banner.json @@ -70,7 +70,8 @@ "city": "basel" } } - } + }, + "impIDs":["102"] }, "mockResponse": { "status": 200, diff --git a/adapters/cwire/cwiretest/supplemental/204.json b/adapters/cwire/cwiretest/supplemental/204.json index c57b7134d04..48f43268499 100644 --- a/adapters/cwire/cwiretest/supplemental/204.json +++ b/adapters/cwire/cwiretest/supplemental/204.json @@ -70,7 +70,8 @@ "city": "basel" } } - } + }, + "impIDs":["102"] }, "mockResponse": { "status": 204 diff --git a/adapters/cwire/cwiretest/supplemental/500.json b/adapters/cwire/cwiretest/supplemental/500.json index f0128f38bd7..3cf5a46e99a 100644 --- a/adapters/cwire/cwiretest/supplemental/500.json +++ b/adapters/cwire/cwiretest/supplemental/500.json @@ -70,7 +70,8 @@ "city": "basel" } } - } + }, + "impIDs":["102"] }, "mockResponse": { "status": 500 diff --git a/adapters/cwire/cwiretest/supplemental/badresponse.json b/adapters/cwire/cwiretest/supplemental/badresponse.json index eb81ea33e8c..56ff3182af5 100644 --- a/adapters/cwire/cwiretest/supplemental/badresponse.json +++ b/adapters/cwire/cwiretest/supplemental/badresponse.json @@ -70,7 +70,8 @@ "city": "basel" } } - } + }, + "impIDs":["102"] }, "mockResponse": { "status": 200, diff --git a/adapters/datablocks/datablocks.go b/adapters/datablocks/datablocks.go index 6617fb75c48..aea4d65cfad 100644 --- a/adapters/datablocks/datablocks.go +++ b/adapters/datablocks/datablocks.go @@ -57,7 +57,8 @@ func (a *DatablocksAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo * Method: "POST", Uri: url, Body: reqJson, - Headers: headers} + Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp)} requests = append(requests, &request) } diff --git a/adapters/datablocks/datablockstest/exemplary/multi-request.json b/adapters/datablocks/datablockstest/exemplary/multi-request.json index eafd80927fa..79a600cec17 100644 --- a/adapters/datablocks/datablockstest/exemplary/multi-request.json +++ b/adapters/datablocks/datablockstest/exemplary/multi-request.json @@ -106,7 +106,8 @@ }, "at": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id","some-impression-id2"] }, "mockResponse": { diff --git a/adapters/datablocks/datablockstest/exemplary/native.json b/adapters/datablocks/datablockstest/exemplary/native.json index c4cf189e1b4..17880ca2750 100644 --- a/adapters/datablocks/datablockstest/exemplary/native.json +++ b/adapters/datablocks/datablockstest/exemplary/native.json @@ -73,7 +73,8 @@ }, "at": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { diff --git a/adapters/datablocks/datablockstest/exemplary/simple-banner.json b/adapters/datablocks/datablockstest/exemplary/simple-banner.json index 5c01a29a519..20217b322e5 100644 --- a/adapters/datablocks/datablockstest/exemplary/simple-banner.json +++ b/adapters/datablocks/datablockstest/exemplary/simple-banner.json @@ -79,7 +79,8 @@ }, "at": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { diff --git a/adapters/datablocks/datablockstest/exemplary/simple-video.json b/adapters/datablocks/datablockstest/exemplary/simple-video.json index fcb2defa649..94d7f73649b 100644 --- a/adapters/datablocks/datablockstest/exemplary/simple-video.json +++ b/adapters/datablocks/datablockstest/exemplary/simple-video.json @@ -74,7 +74,8 @@ }, "at": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { diff --git a/adapters/datablocks/datablockstest/supplemental/bad-response-body.json b/adapters/datablocks/datablockstest/supplemental/bad-response-body.json index e60c6aabb7d..8e872cca163 100644 --- a/adapters/datablocks/datablockstest/supplemental/bad-response-body.json +++ b/adapters/datablocks/datablockstest/supplemental/bad-response-body.json @@ -71,7 +71,8 @@ }, "at": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { diff --git a/adapters/datablocks/datablockstest/supplemental/bad-server-response.json b/adapters/datablocks/datablockstest/supplemental/bad-server-response.json index cdcc0c37d4c..42f0d6cfae9 100644 --- a/adapters/datablocks/datablockstest/supplemental/bad-server-response.json +++ b/adapters/datablocks/datablockstest/supplemental/bad-server-response.json @@ -71,7 +71,8 @@ }, "at": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { diff --git a/adapters/datablocks/datablockstest/supplemental/no-content-response.json b/adapters/datablocks/datablockstest/supplemental/no-content-response.json index 0e53f4720a9..20386e1db4a 100644 --- a/adapters/datablocks/datablockstest/supplemental/no-content-response.json +++ b/adapters/datablocks/datablockstest/supplemental/no-content-response.json @@ -71,7 +71,8 @@ }, "at": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { diff --git a/adapters/decenterads/decenterads.go b/adapters/decenterads/decenterads.go index 4e69574558e..e4545466d5c 100644 --- a/adapters/decenterads/decenterads.go +++ b/adapters/decenterads/decenterads.go @@ -51,6 +51,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, _ *adapters.ExtraRe Uri: a.endpoint, Body: body, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }) } diff --git a/adapters/decenterads/decenteradstest/exemplary/simple-banner.json b/adapters/decenterads/decenteradstest/exemplary/simple-banner.json index fd2c09d01f7..bd6c33206bf 100644 --- a/adapters/decenterads/decenteradstest/exemplary/simple-banner.json +++ b/adapters/decenterads/decenteradstest/exemplary/simple-banner.json @@ -67,7 +67,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/decenterads/decenteradstest/exemplary/simple-video.json b/adapters/decenterads/decenteradstest/exemplary/simple-video.json index b85d302b662..b4a403c1172 100644 --- a/adapters/decenterads/decenteradstest/exemplary/simple-video.json +++ b/adapters/decenterads/decenteradstest/exemplary/simple-video.json @@ -55,7 +55,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/decenterads/decenteradstest/exemplary/simple-web-banner.json b/adapters/decenterads/decenteradstest/exemplary/simple-web-banner.json index 8f8aa0e94b1..9fd44be9648 100644 --- a/adapters/decenterads/decenteradstest/exemplary/simple-web-banner.json +++ b/adapters/decenterads/decenteradstest/exemplary/simple-web-banner.json @@ -64,7 +64,8 @@ "device": { "ip": "123.123.123.123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/decenterads/decenteradstest/supplemental/bad_response.json b/adapters/decenterads/decenteradstest/supplemental/bad_response.json index 487d6adf413..a6087b506a4 100644 --- a/adapters/decenterads/decenteradstest/supplemental/bad_response.json +++ b/adapters/decenterads/decenteradstest/supplemental/bad_response.json @@ -66,7 +66,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/decenterads/decenteradstest/supplemental/bad_status_code.json b/adapters/decenterads/decenteradstest/supplemental/bad_status_code.json index 4a81da360e4..c6db01b4588 100644 --- a/adapters/decenterads/decenteradstest/supplemental/bad_status_code.json +++ b/adapters/decenterads/decenteradstest/supplemental/bad_status_code.json @@ -60,7 +60,8 @@ "bundle": "com.wls.testwlsapplication" }, "device": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/decenterads/decenteradstest/supplemental/status-204.json b/adapters/decenterads/decenteradstest/supplemental/status-204.json index 3eff0fdcd8d..f6c21ee7e6f 100644 --- a/adapters/decenterads/decenteradstest/supplemental/status-204.json +++ b/adapters/decenterads/decenteradstest/supplemental/status-204.json @@ -66,7 +66,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "expectedBidResponses": [], "mockResponse": { diff --git a/adapters/decenterads/decenteradstest/supplemental/status-404.json b/adapters/decenterads/decenteradstest/supplemental/status-404.json index a162dd897ea..f5258b39449 100644 --- a/adapters/decenterads/decenteradstest/supplemental/status-404.json +++ b/adapters/decenterads/decenteradstest/supplemental/status-404.json @@ -66,7 +66,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/deepintent/deepintent.go b/adapters/deepintent/deepintent.go index 0404b33928a..1df58a060fa 100644 --- a/adapters/deepintent/deepintent.go +++ b/adapters/deepintent/deepintent.go @@ -143,6 +143,7 @@ func (d *DeepintentAdapter) preprocess(request openrtb2.BidRequest) (*adapters.R Uri: d.URI, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, errs } diff --git a/adapters/deepintent/deepintenttest/exemplary/simple-banner.json b/adapters/deepintent/deepintenttest/exemplary/simple-banner.json index 68fe66a8f11..a3db1c9f4dd 100644 --- a/adapters/deepintent/deepintenttest/exemplary/simple-banner.json +++ b/adapters/deepintent/deepintenttest/exemplary/simple-banner.json @@ -77,7 +77,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/deepintent/deepintenttest/exemplary/simple-web-banner.json b/adapters/deepintent/deepintenttest/exemplary/simple-web-banner.json index 912a15e4ab8..0808fcc037b 100644 --- a/adapters/deepintent/deepintenttest/exemplary/simple-web-banner.json +++ b/adapters/deepintent/deepintenttest/exemplary/simple-web-banner.json @@ -75,7 +75,8 @@ "device": { "ip": "123.123.123.123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/deepintent/deepintenttest/supplemental/bad_response.json b/adapters/deepintent/deepintenttest/supplemental/bad_response.json index b2c4c210df6..7c090732330 100644 --- a/adapters/deepintent/deepintenttest/supplemental/bad_response.json +++ b/adapters/deepintent/deepintenttest/supplemental/bad_response.json @@ -75,7 +75,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/deepintent/deepintenttest/supplemental/status-204.json b/adapters/deepintent/deepintenttest/supplemental/status-204.json index d83c37dca74..3843a6a5d0b 100644 --- a/adapters/deepintent/deepintenttest/supplemental/status-204.json +++ b/adapters/deepintent/deepintenttest/supplemental/status-204.json @@ -75,7 +75,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/deepintent/deepintenttest/supplemental/status-404.json b/adapters/deepintent/deepintenttest/supplemental/status-404.json index b931843b59b..04068ade8db 100644 --- a/adapters/deepintent/deepintenttest/supplemental/status-404.json +++ b/adapters/deepintent/deepintenttest/supplemental/status-404.json @@ -75,7 +75,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/deepintent/deepintenttest/supplemental/wrongimp.json b/adapters/deepintent/deepintenttest/supplemental/wrongimp.json index a8205217b42..a03e24871c7 100644 --- a/adapters/deepintent/deepintenttest/supplemental/wrongimp.json +++ b/adapters/deepintent/deepintenttest/supplemental/wrongimp.json @@ -77,7 +77,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/definemedia/definemedia.go b/adapters/definemedia/definemedia.go index 10478ba14d2..79d1b7fbfb4 100644 --- a/adapters/definemedia/definemedia.go +++ b/adapters/definemedia/definemedia.go @@ -37,6 +37,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Method: "POST", Uri: a.endpoint, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, errors diff --git a/adapters/definemedia/definemediatest/exemplary/sample-conative-banner.json b/adapters/definemedia/definemediatest/exemplary/sample-conative-banner.json index a7d7e411f78..389efb18550 100644 --- a/adapters/definemedia/definemediatest/exemplary/sample-conative-banner.json +++ b/adapters/definemedia/definemediatest/exemplary/sample-conative-banner.json @@ -210,7 +210,8 @@ } } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/definemedia/definemediatest/exemplary/sample-conative-native.json b/adapters/definemedia/definemediatest/exemplary/sample-conative-native.json index 4fe56a4c22e..b0ca1508ce7 100644 --- a/adapters/definemedia/definemediatest/exemplary/sample-conative-native.json +++ b/adapters/definemedia/definemediatest/exemplary/sample-conative-native.json @@ -196,7 +196,8 @@ } } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/definemedia/definemediatest/supplemental/nobid-response.json b/adapters/definemedia/definemediatest/supplemental/nobid-response.json index aaa942da76e..2434a3e3937 100644 --- a/adapters/definemedia/definemediatest/supplemental/nobid-response.json +++ b/adapters/definemedia/definemediatest/supplemental/nobid-response.json @@ -206,7 +206,8 @@ } } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/definemedia/definemediatest/supplemental/nocontent-response.json b/adapters/definemedia/definemediatest/supplemental/nocontent-response.json index 147d2185e1f..3069381b657 100644 --- a/adapters/definemedia/definemediatest/supplemental/nocontent-response.json +++ b/adapters/definemedia/definemediatest/supplemental/nocontent-response.json @@ -206,7 +206,8 @@ } } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 204, diff --git a/adapters/definemedia/definemediatest/supplemental/status_400.json b/adapters/definemedia/definemediatest/supplemental/status_400.json index ec772bf8428..84461a940ef 100644 --- a/adapters/definemedia/definemediatest/supplemental/status_400.json +++ b/adapters/definemedia/definemediatest/supplemental/status_400.json @@ -206,7 +206,8 @@ } } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 400, diff --git a/adapters/definemedia/definemediatest/supplemental/status_418.json b/adapters/definemedia/definemediatest/supplemental/status_418.json index 6e82f90476e..6e75c23c606 100644 --- a/adapters/definemedia/definemediatest/supplemental/status_418.json +++ b/adapters/definemedia/definemediatest/supplemental/status_418.json @@ -206,7 +206,8 @@ } } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 418, diff --git a/adapters/definemedia/definemediatest/supplemental/unmarshal-error.json b/adapters/definemedia/definemediatest/supplemental/unmarshal-error.json index 396d6821c36..ac03cc6e48c 100644 --- a/adapters/definemedia/definemediatest/supplemental/unmarshal-error.json +++ b/adapters/definemedia/definemediatest/supplemental/unmarshal-error.json @@ -206,7 +206,8 @@ } } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/definemedia/definemediatest/supplemental/unsupported-type.json b/adapters/definemedia/definemediatest/supplemental/unsupported-type.json index 91bfbc413c1..dd21f487324 100644 --- a/adapters/definemedia/definemediatest/supplemental/unsupported-type.json +++ b/adapters/definemedia/definemediatest/supplemental/unsupported-type.json @@ -208,7 +208,8 @@ } } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/dianomi/dianomi.go b/adapters/dianomi/dianomi.go index 9e770906c51..57cd85a27c3 100644 --- a/adapters/dianomi/dianomi.go +++ b/adapters/dianomi/dianomi.go @@ -95,6 +95,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Uri: a.endpoint, Body: requestJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, errors diff --git a/adapters/dianomi/dianomitest/exemplary/multi-format.json b/adapters/dianomi/dianomitest/exemplary/multi-format.json index 69497d897e0..8d3507e8789 100644 --- a/adapters/dianomi/dianomitest/exemplary/multi-format.json +++ b/adapters/dianomi/dianomitest/exemplary/multi-format.json @@ -95,7 +95,8 @@ }, "tagid": "9526" }] - } + }, + "impIDs":["test-imp-id-1","test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/dianomi/dianomitest/exemplary/multi-native.json b/adapters/dianomi/dianomitest/exemplary/multi-native.json index ccaeb33a152..83a7c1ddf6b 100644 --- a/adapters/dianomi/dianomitest/exemplary/multi-native.json +++ b/adapters/dianomi/dianomitest/exemplary/multi-native.json @@ -63,7 +63,8 @@ }, "tagid": "9607" }] - } + }, + "impIDs":["test-imp-id-1","test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/dianomi/dianomitest/exemplary/single-banner-pricetype-gross-extend-ext.json b/adapters/dianomi/dianomitest/exemplary/single-banner-pricetype-gross-extend-ext.json index 836da52eef0..922d8feb901 100644 --- a/adapters/dianomi/dianomitest/exemplary/single-banner-pricetype-gross-extend-ext.json +++ b/adapters/dianomi/dianomitest/exemplary/single-banner-pricetype-gross-extend-ext.json @@ -81,7 +81,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dianomi/dianomitest/exemplary/single-banner-pricetype-gross.json b/adapters/dianomi/dianomitest/exemplary/single-banner-pricetype-gross.json index 0b3683f08eb..d3dfe6ad2f1 100644 --- a/adapters/dianomi/dianomitest/exemplary/single-banner-pricetype-gross.json +++ b/adapters/dianomi/dianomitest/exemplary/single-banner-pricetype-gross.json @@ -71,7 +71,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dianomi/dianomitest/exemplary/single-banner-pricetype-net.json b/adapters/dianomi/dianomitest/exemplary/single-banner-pricetype-net.json index a45b0118565..46e38350ed2 100644 --- a/adapters/dianomi/dianomitest/exemplary/single-banner-pricetype-net.json +++ b/adapters/dianomi/dianomitest/exemplary/single-banner-pricetype-net.json @@ -71,7 +71,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dianomi/dianomitest/exemplary/single-banner.json b/adapters/dianomi/dianomitest/exemplary/single-banner.json index 9ddcab7cd7b..034ce3d63d4 100644 --- a/adapters/dianomi/dianomitest/exemplary/single-banner.json +++ b/adapters/dianomi/dianomitest/exemplary/single-banner.json @@ -64,7 +64,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dianomi/dianomitest/exemplary/single-native.json b/adapters/dianomi/dianomitest/exemplary/single-native.json index d532f7d9168..a266b8498fb 100644 --- a/adapters/dianomi/dianomitest/exemplary/single-native.json +++ b/adapters/dianomi/dianomitest/exemplary/single-native.json @@ -60,7 +60,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dianomi/dianomitest/exemplary/single-video.json b/adapters/dianomi/dianomitest/exemplary/single-video.json index 4c13602c887..88a3e0943ce 100644 --- a/adapters/dianomi/dianomitest/exemplary/single-video.json +++ b/adapters/dianomi/dianomitest/exemplary/single-video.json @@ -64,7 +64,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dianomi/dianomitest/exemplary/two-banners-different-pricetypes-extend-ext.json b/adapters/dianomi/dianomitest/exemplary/two-banners-different-pricetypes-extend-ext.json index f9f0a95bafc..b10ba4fab18 100644 --- a/adapters/dianomi/dianomitest/exemplary/two-banners-different-pricetypes-extend-ext.json +++ b/adapters/dianomi/dianomitest/exemplary/two-banners-different-pricetypes-extend-ext.json @@ -110,7 +110,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id","test-imp-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/dianomi/dianomitest/exemplary/two-banners-different-pricetypes.json b/adapters/dianomi/dianomitest/exemplary/two-banners-different-pricetypes.json index 0d4f77fc5e3..10fd35198d5 100644 --- a/adapters/dianomi/dianomitest/exemplary/two-banners-different-pricetypes.json +++ b/adapters/dianomi/dianomitest/exemplary/two-banners-different-pricetypes.json @@ -100,7 +100,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id","test-imp-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/dianomi/dianomitest/supplemental/bad-request.json b/adapters/dianomi/dianomitest/supplemental/bad-request.json index 3c8628c8608..6e2477faf4c 100644 --- a/adapters/dianomi/dianomitest/supplemental/bad-request.json +++ b/adapters/dianomi/dianomitest/supplemental/bad-request.json @@ -31,7 +31,8 @@ }, "tagid": "9607" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/dianomi/dianomitest/supplemental/empty-response.json b/adapters/dianomi/dianomitest/supplemental/empty-response.json index ea6f657b59d..41c89fdba46 100644 --- a/adapters/dianomi/dianomitest/supplemental/empty-response.json +++ b/adapters/dianomi/dianomitest/supplemental/empty-response.json @@ -31,7 +31,8 @@ }, "tagid": "9607" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/dianomi/dianomitest/supplemental/invalid-imp-mediatype.json b/adapters/dianomi/dianomitest/supplemental/invalid-imp-mediatype.json index 1b7b522a600..46e1f4bdd4c 100644 --- a/adapters/dianomi/dianomitest/supplemental/invalid-imp-mediatype.json +++ b/adapters/dianomi/dianomitest/supplemental/invalid-imp-mediatype.json @@ -48,7 +48,8 @@ }, "tagid": "12345" }] - } + }, + "impIDs":["test-imp-id","test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/dianomi/dianomitest/supplemental/nobid-response.json b/adapters/dianomi/dianomitest/supplemental/nobid-response.json index 7a56456eea6..3c8845163b0 100644 --- a/adapters/dianomi/dianomitest/supplemental/nobid-response.json +++ b/adapters/dianomi/dianomitest/supplemental/nobid-response.json @@ -31,7 +31,8 @@ }, "tagid": "9607" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dianomi/dianomitest/supplemental/server-error.json b/adapters/dianomi/dianomitest/supplemental/server-error.json index 3aa5be915ae..0e8cbc9678d 100644 --- a/adapters/dianomi/dianomitest/supplemental/server-error.json +++ b/adapters/dianomi/dianomitest/supplemental/server-error.json @@ -31,7 +31,8 @@ }, "tagid": "9607" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/dianomi/dianomitest/supplemental/unparsable-response.json b/adapters/dianomi/dianomitest/supplemental/unparsable-response.json index 7ab8ef2fdeb..cf5ab4fca11 100644 --- a/adapters/dianomi/dianomitest/supplemental/unparsable-response.json +++ b/adapters/dianomi/dianomitest/supplemental/unparsable-response.json @@ -31,7 +31,8 @@ }, "tagid": "9607" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dmx/dmx.go b/adapters/dmx/dmx.go index b9422c7a152..e35b5562204 100644 --- a/adapters/dmx/dmx.go +++ b/adapters/dmx/dmx.go @@ -208,6 +208,7 @@ func (adapter *DmxAdapter) MakeRequests(request *openrtb2.BidRequest, req *adapt Uri: adapter.endpoint + addParams(sellerId), //adapter.endpoint, Body: oJson, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(dmxReq.Imp), } reqsBidder = append(reqsBidder, reqBidder) diff --git a/adapters/dmx/dmxtest/exemplary/idfa-to-app-id.json b/adapters/dmx/dmxtest/exemplary/idfa-to-app-id.json index 2fcf9179796..bb9e6ec277c 100644 --- a/adapters/dmx/dmxtest/exemplary/idfa-to-app-id.json +++ b/adapters/dmx/dmxtest/exemplary/idfa-to-app-id.json @@ -90,7 +90,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dmx/dmxtest/exemplary/imp-populated-banner.json b/adapters/dmx/dmxtest/exemplary/imp-populated-banner.json index b39b722d562..1cb4b9e0ccb 100644 --- a/adapters/dmx/dmxtest/exemplary/imp-populated-banner.json +++ b/adapters/dmx/dmxtest/exemplary/imp-populated-banner.json @@ -86,7 +86,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dmx/dmxtest/exemplary/missing-width-height.json b/adapters/dmx/dmxtest/exemplary/missing-width-height.json index b7eeec68fcf..3e21705d9c2 100644 --- a/adapters/dmx/dmxtest/exemplary/missing-width-height.json +++ b/adapters/dmx/dmxtest/exemplary/missing-width-height.json @@ -85,7 +85,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dmx/dmxtest/exemplary/simple-app.json b/adapters/dmx/dmxtest/exemplary/simple-app.json index 3c226f5e89d..841cdd379c1 100644 --- a/adapters/dmx/dmxtest/exemplary/simple-app.json +++ b/adapters/dmx/dmxtest/exemplary/simple-app.json @@ -85,7 +85,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dmx/dmxtest/exemplary/simple-banner.json b/adapters/dmx/dmxtest/exemplary/simple-banner.json index 03ea6246ee4..b1da7290a43 100644 --- a/adapters/dmx/dmxtest/exemplary/simple-banner.json +++ b/adapters/dmx/dmxtest/exemplary/simple-banner.json @@ -68,7 +68,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dmx/dmxtest/exemplary/simple-video.json b/adapters/dmx/dmxtest/exemplary/simple-video.json index b4c53188119..a6659d0ac28 100644 --- a/adapters/dmx/dmxtest/exemplary/simple-video.json +++ b/adapters/dmx/dmxtest/exemplary/simple-video.json @@ -55,7 +55,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dxkulture/dxkulture.go b/adapters/dxkulture/dxkulture.go index 3dc6001f286..90fb341f533 100644 --- a/adapters/dxkulture/dxkulture.go +++ b/adapters/dxkulture/dxkulture.go @@ -64,6 +64,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: a.endpoint + "?" + params.Encode(), Body: body, Headers: getHeaders(request), + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }) } diff --git a/adapters/dxkulture/dxkulturetest/exemplary/banner.json b/adapters/dxkulture/dxkulturetest/exemplary/banner.json index 86b0e928c67..6ae690bece6 100644 --- a/adapters/dxkulture/dxkulturetest/exemplary/banner.json +++ b/adapters/dxkulture/dxkulturetest/exemplary/banner.json @@ -88,7 +88,8 @@ "page": "http://site.com/page", "ref": "http://site.com/ref" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dxkulture/dxkulturetest/exemplary/empty-site-domain-ref.json b/adapters/dxkulture/dxkulturetest/exemplary/empty-site-domain-ref.json index 7460153f5ab..8c2408b2914 100644 --- a/adapters/dxkulture/dxkulturetest/exemplary/empty-site-domain-ref.json +++ b/adapters/dxkulture/dxkulturetest/exemplary/empty-site-domain-ref.json @@ -86,7 +86,8 @@ "site": { "page": "http://site.com/page" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dxkulture/dxkulturetest/exemplary/ipv6.json b/adapters/dxkulture/dxkulturetest/exemplary/ipv6.json index 20841500d58..ca23591b92b 100644 --- a/adapters/dxkulture/dxkulturetest/exemplary/ipv6.json +++ b/adapters/dxkulture/dxkulturetest/exemplary/ipv6.json @@ -86,7 +86,8 @@ "site": { "page": "http://site.com/page" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dxkulture/dxkulturetest/exemplary/video-test-request.json b/adapters/dxkulture/dxkulturetest/exemplary/video-test-request.json index f1d0a840ba0..2b3599f9424 100644 --- a/adapters/dxkulture/dxkulturetest/exemplary/video-test-request.json +++ b/adapters/dxkulture/dxkulturetest/exemplary/video-test-request.json @@ -98,7 +98,8 @@ "page": "http://site.com/page", "ref": "http://site.com/ref" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dxkulture/dxkulturetest/exemplary/video.json b/adapters/dxkulture/dxkulturetest/exemplary/video.json index 37f4b9e8236..b96fb107e3b 100644 --- a/adapters/dxkulture/dxkulturetest/exemplary/video.json +++ b/adapters/dxkulture/dxkulturetest/exemplary/video.json @@ -96,7 +96,8 @@ "page": "http://site.com/page", "ref": "http://site.com/ref" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dxkulture/dxkulturetest/supplemental/invalid-response.json b/adapters/dxkulture/dxkulturetest/supplemental/invalid-response.json index 4ef0539c69b..40d18e63437 100644 --- a/adapters/dxkulture/dxkulturetest/supplemental/invalid-response.json +++ b/adapters/dxkulture/dxkulturetest/supplemental/invalid-response.json @@ -96,7 +96,8 @@ "page": "http://site.com/page", "ref": "http://site.com/ref" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dxkulture/dxkulturetest/supplemental/no-mtype.json b/adapters/dxkulture/dxkulturetest/supplemental/no-mtype.json index a65a46ef0ee..fe0f8a12028 100644 --- a/adapters/dxkulture/dxkulturetest/supplemental/no-mtype.json +++ b/adapters/dxkulture/dxkulturetest/supplemental/no-mtype.json @@ -96,7 +96,8 @@ "page": "http://site.com/page", "ref": "http://site.com/ref" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/dxkulture/dxkulturetest/supplemental/status-code-bad-request.json b/adapters/dxkulture/dxkulturetest/supplemental/status-code-bad-request.json index 0338be9f811..f152bb9ecfc 100644 --- a/adapters/dxkulture/dxkulturetest/supplemental/status-code-bad-request.json +++ b/adapters/dxkulture/dxkulturetest/supplemental/status-code-bad-request.json @@ -96,7 +96,8 @@ "page": "http://site.com/page", "ref": "http://site.com/ref" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/dxkulture/dxkulturetest/supplemental/status-code-no-content.json b/adapters/dxkulture/dxkulturetest/supplemental/status-code-no-content.json index 4363b998cf7..75bae07d4fd 100644 --- a/adapters/dxkulture/dxkulturetest/supplemental/status-code-no-content.json +++ b/adapters/dxkulture/dxkulturetest/supplemental/status-code-no-content.json @@ -96,7 +96,8 @@ "page": "http://site.com/page", "ref": "http://site.com/ref" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/dxkulture/dxkulturetest/supplemental/status-code-other-error.json b/adapters/dxkulture/dxkulturetest/supplemental/status-code-other-error.json index 608521b42a0..a568c3910b7 100644 --- a/adapters/dxkulture/dxkulturetest/supplemental/status-code-other-error.json +++ b/adapters/dxkulture/dxkulturetest/supplemental/status-code-other-error.json @@ -96,7 +96,8 @@ "page": "http://site.com/page", "ref": "http://site.com/ref" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 505 diff --git a/adapters/e_volution/evolution.go b/adapters/e_volution/evolution.go index a4c4c6ad36a..f182480de5b 100644 --- a/adapters/e_volution/evolution.go +++ b/adapters/e_volution/evolution.go @@ -50,6 +50,7 @@ func (a *adapter) MakeRequests( Body: reqJSON, Uri: a.URI, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), }}, nil } diff --git a/adapters/e_volution/evolutiontest/exemplary/banner-without-mediatype.json b/adapters/e_volution/evolutiontest/exemplary/banner-without-mediatype.json index 251fe8c6f87..ed426f3cb33 100644 --- a/adapters/e_volution/evolutiontest/exemplary/banner-without-mediatype.json +++ b/adapters/e_volution/evolutiontest/exemplary/banner-without-mediatype.json @@ -113,7 +113,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["126365"] }, "mockResponse": { "status": 200, diff --git a/adapters/e_volution/evolutiontest/exemplary/banner.json b/adapters/e_volution/evolutiontest/exemplary/banner.json index 68fda4907e2..81ed6d1c3b3 100644 --- a/adapters/e_volution/evolutiontest/exemplary/banner.json +++ b/adapters/e_volution/evolutiontest/exemplary/banner.json @@ -113,7 +113,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["126365"] }, "mockResponse": { "status": 200, diff --git a/adapters/e_volution/evolutiontest/exemplary/native.json b/adapters/e_volution/evolutiontest/exemplary/native.json index 724f55f6b8b..d6087540714 100644 --- a/adapters/e_volution/evolutiontest/exemplary/native.json +++ b/adapters/e_volution/evolutiontest/exemplary/native.json @@ -125,7 +125,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/e_volution/evolutiontest/exemplary/video.json b/adapters/e_volution/evolutiontest/exemplary/video.json index f7a03146918..83fb7cf5c1b 100644 --- a/adapters/e_volution/evolutiontest/exemplary/video.json +++ b/adapters/e_volution/evolutiontest/exemplary/video.json @@ -139,7 +139,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["bfb2dd46a5e63a0a84711c20fd8ce9e1"] }, "mockResponse": { "status": 200, diff --git a/adapters/e_volution/evolutiontest/supplemental/bad-response.json b/adapters/e_volution/evolutiontest/supplemental/bad-response.json index 75f3cb455af..d30a01e3158 100644 --- a/adapters/e_volution/evolutiontest/supplemental/bad-response.json +++ b/adapters/e_volution/evolutiontest/supplemental/bad-response.json @@ -139,7 +139,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["bfb2dd46a5e63a0a84711c20fd8ce9e1"] }, "mockResponse": { "status": 200, diff --git a/adapters/e_volution/evolutiontest/supplemental/empty-seatbid.json b/adapters/e_volution/evolutiontest/supplemental/empty-seatbid.json index c9a103aea39..2304e4a764f 100644 --- a/adapters/e_volution/evolutiontest/supplemental/empty-seatbid.json +++ b/adapters/e_volution/evolutiontest/supplemental/empty-seatbid.json @@ -125,7 +125,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/e_volution/evolutiontest/supplemental/status-204.json b/adapters/e_volution/evolutiontest/supplemental/status-204.json index 85e89873fd2..4de43013ea6 100644 --- a/adapters/e_volution/evolutiontest/supplemental/status-204.json +++ b/adapters/e_volution/evolutiontest/supplemental/status-204.json @@ -113,7 +113,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["126365"] }, "mockResponse": { "status": 204, diff --git a/adapters/e_volution/evolutiontest/supplemental/status-400.json b/adapters/e_volution/evolutiontest/supplemental/status-400.json index b26e827200e..93b3f0b5f45 100644 --- a/adapters/e_volution/evolutiontest/supplemental/status-400.json +++ b/adapters/e_volution/evolutiontest/supplemental/status-400.json @@ -113,7 +113,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["126365"] }, "mockResponse": { "status": 400, diff --git a/adapters/e_volution/evolutiontest/supplemental/status-503.json b/adapters/e_volution/evolutiontest/supplemental/status-503.json index 0f289ea8d3e..ad779405801 100644 --- a/adapters/e_volution/evolutiontest/supplemental/status-503.json +++ b/adapters/e_volution/evolutiontest/supplemental/status-503.json @@ -113,7 +113,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["126365"] }, "mockResponse": { "status": 503 diff --git a/adapters/e_volution/evolutiontest/supplemental/unexpected-status.json b/adapters/e_volution/evolutiontest/supplemental/unexpected-status.json index 5d0df32383e..4140e282405 100644 --- a/adapters/e_volution/evolutiontest/supplemental/unexpected-status.json +++ b/adapters/e_volution/evolutiontest/supplemental/unexpected-status.json @@ -113,7 +113,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["126365"] }, "mockResponse": { "status": 401 diff --git a/adapters/edge226/edge226.go b/adapters/edge226/edge226.go index 91d6d5c7ad1..0859da1df67 100644 --- a/adapters/edge226/edge226.go +++ b/adapters/edge226/edge226.go @@ -93,6 +93,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, err } diff --git a/adapters/edge226/edge226test/exemplary/endpointId.json b/adapters/edge226/edge226test/exemplary/endpointId.json index 741c1f8cb9b..63cf5d379a7 100644 --- a/adapters/edge226/edge226test/exemplary/endpointId.json +++ b/adapters/edge226/edge226test/exemplary/endpointId.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/edge226/edge226test/exemplary/simple-banner.json b/adapters/edge226/edge226test/exemplary/simple-banner.json index 741c1f8cb9b..63cf5d379a7 100644 --- a/adapters/edge226/edge226test/exemplary/simple-banner.json +++ b/adapters/edge226/edge226test/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/edge226/edge226test/exemplary/simple-native.json b/adapters/edge226/edge226test/exemplary/simple-native.json index 581864cdb41..0afcbfe31d2 100644 --- a/adapters/edge226/edge226test/exemplary/simple-native.json +++ b/adapters/edge226/edge226test/exemplary/simple-native.json @@ -55,7 +55,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/edge226/edge226test/exemplary/simple-video.json b/adapters/edge226/edge226test/exemplary/simple-video.json index c14a1bd988e..bbc55e1494e 100644 --- a/adapters/edge226/edge226test/exemplary/simple-video.json +++ b/adapters/edge226/edge226test/exemplary/simple-video.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/edge226/edge226test/exemplary/simple-web-banner.json b/adapters/edge226/edge226test/exemplary/simple-web-banner.json index 6cc7295003c..db12cf0d2ac 100644 --- a/adapters/edge226/edge226test/exemplary/simple-web-banner.json +++ b/adapters/edge226/edge226test/exemplary/simple-web-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "Ubuntu" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/edge226/edge226test/supplemental/bad_media_type.json b/adapters/edge226/edge226test/supplemental/bad_media_type.json index 75b13412ad6..d471d08d2f8 100644 --- a/adapters/edge226/edge226test/supplemental/bad_media_type.json +++ b/adapters/edge226/edge226test/supplemental/bad_media_type.json @@ -44,7 +44,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/edge226/edge226test/supplemental/bad_response.json b/adapters/edge226/edge226test/supplemental/bad_response.json index 1e5664bafec..aa37c31f5b1 100644 --- a/adapters/edge226/edge226test/supplemental/bad_response.json +++ b/adapters/edge226/edge226test/supplemental/bad_response.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/edge226/edge226test/supplemental/status-204.json b/adapters/edge226/edge226test/supplemental/status-204.json index da929ce61cb..e5337a81469 100644 --- a/adapters/edge226/edge226test/supplemental/status-204.json +++ b/adapters/edge226/edge226test/supplemental/status-204.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/edge226/edge226test/supplemental/status-not-200.json b/adapters/edge226/edge226test/supplemental/status-not-200.json index cf1847c2cac..d1aba9533e7 100644 --- a/adapters/edge226/edge226test/supplemental/status-not-200.json +++ b/adapters/edge226/edge226test/supplemental/status-not-200.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/emtv/emtv.go b/adapters/emtv/emtv.go index d7f1ac03821..f361010ebbe 100644 --- a/adapters/emtv/emtv.go +++ b/adapters/emtv/emtv.go @@ -102,6 +102,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, nil } diff --git a/adapters/emtv/emtvtest/exemplary/endpointId.json b/adapters/emtv/emtvtest/exemplary/endpointId.json index ef73cb84cb8..b159dacf5fa 100644 --- a/adapters/emtv/emtvtest/exemplary/endpointId.json +++ b/adapters/emtv/emtvtest/exemplary/endpointId.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/emtv/emtvtest/exemplary/simple-banner.json b/adapters/emtv/emtvtest/exemplary/simple-banner.json index 4399da28a9e..a093775fa58 100644 --- a/adapters/emtv/emtvtest/exemplary/simple-banner.json +++ b/adapters/emtv/emtvtest/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/emtv/emtvtest/exemplary/simple-native.json b/adapters/emtv/emtvtest/exemplary/simple-native.json index 63bb7c73cf8..aa459368f5e 100644 --- a/adapters/emtv/emtvtest/exemplary/simple-native.json +++ b/adapters/emtv/emtvtest/exemplary/simple-native.json @@ -55,7 +55,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/emtv/emtvtest/exemplary/simple-video.json b/adapters/emtv/emtvtest/exemplary/simple-video.json index 9bb3c20e254..2d3bc6bfcb0 100644 --- a/adapters/emtv/emtvtest/exemplary/simple-video.json +++ b/adapters/emtv/emtvtest/exemplary/simple-video.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/emtv/emtvtest/exemplary/simple-web-banner.json b/adapters/emtv/emtvtest/exemplary/simple-web-banner.json index 458ee258dff..17c8ddc235c 100644 --- a/adapters/emtv/emtvtest/exemplary/simple-web-banner.json +++ b/adapters/emtv/emtvtest/exemplary/simple-web-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "Ubuntu" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/emtv/emtvtest/supplemental/bad_media_type.json b/adapters/emtv/emtvtest/supplemental/bad_media_type.json index 5a565246930..3ab5ae9084b 100644 --- a/adapters/emtv/emtvtest/supplemental/bad_media_type.json +++ b/adapters/emtv/emtvtest/supplemental/bad_media_type.json @@ -44,7 +44,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/emtv/emtvtest/supplemental/bad_response.json b/adapters/emtv/emtvtest/supplemental/bad_response.json index 8c1cc3750db..c732ba92c67 100644 --- a/adapters/emtv/emtvtest/supplemental/bad_response.json +++ b/adapters/emtv/emtvtest/supplemental/bad_response.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/emtv/emtvtest/supplemental/status-204.json b/adapters/emtv/emtvtest/supplemental/status-204.json index 3e536c25a60..b2c822cb446 100644 --- a/adapters/emtv/emtvtest/supplemental/status-204.json +++ b/adapters/emtv/emtvtest/supplemental/status-204.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/emtv/emtvtest/supplemental/status-not-200.json b/adapters/emtv/emtvtest/supplemental/status-not-200.json index 4bb3c8d5b53..a6879edd82d 100644 --- a/adapters/emtv/emtvtest/supplemental/status-not-200.json +++ b/adapters/emtv/emtvtest/supplemental/status-not-200.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/eplanning/eplanning.go b/adapters/eplanning/eplanning.go index 556739c6d24..25a44cdd44f 100644 --- a/adapters/eplanning/eplanning.go +++ b/adapters/eplanning/eplanning.go @@ -204,6 +204,7 @@ func (adapter *EPlanningAdapter) MakeRequests(request *openrtb2.BidRequest, reqI Uri: uri, Body: body, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } requests := []*adapters.RequestData{&requestData} diff --git a/adapters/eplanning/eplanningtest/exemplary/simple-banner-2.json b/adapters/eplanning/eplanningtest/exemplary/simple-banner-2.json index 556831217ec..d27ca0ae9f9 100644 --- a/adapters/eplanning/eplanningtest/exemplary/simple-banner-2.json +++ b/adapters/eplanning/eplanningtest/exemplary/simple-banner-2.json @@ -29,7 +29,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=300x250%3A300x250&ncb=1&ur=FILE", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/exemplary/simple-banner.json b/adapters/eplanning/eplanningtest/exemplary/simple-banner.json index 04eca985340..fb0bf6918fd 100644 --- a/adapters/eplanning/eplanningtest/exemplary/simple-banner.json +++ b/adapters/eplanning/eplanningtest/exemplary/simple-banner.json @@ -32,7 +32,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=testadun_itco_de%3A600x300&ip=123.123.123.123&ncb=1&uid=2154987&ur=FILE", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/exemplary/two-banners.json b/adapters/eplanning/eplanningtest/exemplary/two-banners.json index 72aeb64b3a9..18b7e7d6e0b 100644 --- a/adapters/eplanning/eplanningtest/exemplary/two-banners.json +++ b/adapters/eplanning/eplanningtest/exemplary/two-banners.json @@ -40,7 +40,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=testadunitcode%3A600x300%2B300x250%3A300x250&ip=123.123.123.123&ncb=1&ur=FILE", - "body": {} + "body": {}, + "impIDs":["test-imp-id","test-imp-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/app-domain-and-url-correctly-parsed.json b/adapters/eplanning/eplanningtest/supplemental/app-domain-and-url-correctly-parsed.json index 413c973dfa2..3ca3c994ecb 100644 --- a/adapters/eplanning/eplanningtest/supplemental/app-domain-and-url-correctly-parsed.json +++ b/adapters/eplanning/eplanningtest/supplemental/app-domain-and-url-correctly-parsed.json @@ -40,7 +40,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/mx.com.xeu/ROS?app=1&appid=%5Ba-f0-9%5D%7B16%7D&appn=MobileExchange&e=testadunitcode%3A600x300&ifa=3B8E2335-Z049&ip=123.123.123.123&ncb=1", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/banner-2-sizes-in-priority-list-mobile.json b/adapters/eplanning/eplanningtest/supplemental/banner-2-sizes-in-priority-list-mobile.json index b1f0677cb3c..ae994f82857 100644 --- a/adapters/eplanning/eplanningtest/supplemental/banner-2-sizes-in-priority-list-mobile.json +++ b/adapters/eplanning/eplanningtest/supplemental/banner-2-sizes-in-priority-list-mobile.json @@ -32,7 +32,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=300x250%3A300x250&ncb=1&ur=FILE", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/banner-3-sizes-in-priority-list-desktop.json b/adapters/eplanning/eplanningtest/supplemental/banner-3-sizes-in-priority-list-desktop.json index 31197c383e2..fac3713f8fb 100644 --- a/adapters/eplanning/eplanningtest/supplemental/banner-3-sizes-in-priority-list-desktop.json +++ b/adapters/eplanning/eplanningtest/supplemental/banner-3-sizes-in-priority-list-desktop.json @@ -36,7 +36,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=300x250%3A300x250&ncb=1&ur=FILE", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/banner-3-sizes-in-priority-list-mobile.json b/adapters/eplanning/eplanningtest/supplemental/banner-3-sizes-in-priority-list-mobile.json index 661955e8706..0f78db2a203 100644 --- a/adapters/eplanning/eplanningtest/supplemental/banner-3-sizes-in-priority-list-mobile.json +++ b/adapters/eplanning/eplanningtest/supplemental/banner-3-sizes-in-priority-list-mobile.json @@ -36,7 +36,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=320x50%3A320x50&ncb=1&ur=FILE", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/banner-3-sizes-inout-priority-list-mobile.json b/adapters/eplanning/eplanningtest/supplemental/banner-3-sizes-inout-priority-list-mobile.json index f13df90ddc2..830a6ca7f27 100644 --- a/adapters/eplanning/eplanningtest/supplemental/banner-3-sizes-inout-priority-list-mobile.json +++ b/adapters/eplanning/eplanningtest/supplemental/banner-3-sizes-inout-priority-list-mobile.json @@ -36,7 +36,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=970x250%3A970x250&ncb=1&ur=FILE", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/banner-4-sizes-in-priority-list-desktop.json b/adapters/eplanning/eplanningtest/supplemental/banner-4-sizes-in-priority-list-desktop.json index 103be4e46c9..4195a6948b2 100644 --- a/adapters/eplanning/eplanningtest/supplemental/banner-4-sizes-in-priority-list-desktop.json +++ b/adapters/eplanning/eplanningtest/supplemental/banner-4-sizes-in-priority-list-desktop.json @@ -40,7 +40,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=300x250%3A300x250&ncb=1&ur=FILE", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/banner-no-size-sends-1x1.json b/adapters/eplanning/eplanningtest/supplemental/banner-no-size-sends-1x1.json index 05547d81707..a5778473ab3 100644 --- a/adapters/eplanning/eplanningtest/supplemental/banner-no-size-sends-1x1.json +++ b/adapters/eplanning/eplanningtest/supplemental/banner-no-size-sends-1x1.json @@ -20,7 +20,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=testadunitcodenosize%3A1x1&ncb=1&ur=FILE", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/invalid-response-no-bids.json b/adapters/eplanning/eplanningtest/supplemental/invalid-response-no-bids.json index acbd256a9a4..0f4ea006025 100644 --- a/adapters/eplanning/eplanningtest/supplemental/invalid-response-no-bids.json +++ b/adapters/eplanning/eplanningtest/supplemental/invalid-response-no-bids.json @@ -21,7 +21,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=testadunitcode%3A600x300&ncb=1&ur=FILE", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/invalid-response-unmarshall-error.json b/adapters/eplanning/eplanningtest/supplemental/invalid-response-unmarshall-error.json index 4ba2d44bf3a..e507648206d 100644 --- a/adapters/eplanning/eplanningtest/supplemental/invalid-response-unmarshall-error.json +++ b/adapters/eplanning/eplanningtest/supplemental/invalid-response-unmarshall-error.json @@ -22,7 +22,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=testadunitcode%3A600x300&ncb=1&ur=FILE", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/server-bad-request.json b/adapters/eplanning/eplanningtest/supplemental/server-bad-request.json index 9e8eae8c080..8daad31029b 100644 --- a/adapters/eplanning/eplanningtest/supplemental/server-bad-request.json +++ b/adapters/eplanning/eplanningtest/supplemental/server-bad-request.json @@ -22,7 +22,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=testadunitcode%3A600x300&ncb=1&ur=FILE", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/eplanning/eplanningtest/supplemental/server-error-code.json b/adapters/eplanning/eplanningtest/supplemental/server-error-code.json index 08f46d9e6c2..11c7a330382 100644 --- a/adapters/eplanning/eplanningtest/supplemental/server-error-code.json +++ b/adapters/eplanning/eplanningtest/supplemental/server-error-code.json @@ -22,7 +22,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=testadunitcode%3A600x300&ncb=1&ur=FILE", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/eplanning/eplanningtest/supplemental/server-no-content.json b/adapters/eplanning/eplanningtest/supplemental/server-no-content.json index cb1823cace9..951b5aebb38 100644 --- a/adapters/eplanning/eplanningtest/supplemental/server-no-content.json +++ b/adapters/eplanning/eplanningtest/supplemental/server-no-content.json @@ -21,7 +21,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=testadunitcode%3A600x300&ncb=1&ur=FILE", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/eplanning/eplanningtest/supplemental/site-domain-and-url-correctly-parsed.json b/adapters/eplanning/eplanningtest/supplemental/site-domain-and-url-correctly-parsed.json index 62890d914ff..e4682392f98 100644 --- a/adapters/eplanning/eplanningtest/supplemental/site-domain-and-url-correctly-parsed.json +++ b/adapters/eplanning/eplanningtest/supplemental/site-domain-and-url-correctly-parsed.json @@ -26,7 +26,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/www.publisher.com/ROS?e=testadunitcode%3A600x300&ncb=1&ur=http%3A%2F%2Fwww.publisher.com%2Fawesome%2Fsite%3Fwith%3Dsome%26parameters%3Dhere", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/site-page-and-url-correctly-parsed.json b/adapters/eplanning/eplanningtest/supplemental/site-page-and-url-correctly-parsed.json index 20a419cdbfd..caf67729a1d 100644 --- a/adapters/eplanning/eplanningtest/supplemental/site-page-and-url-correctly-parsed.json +++ b/adapters/eplanning/eplanningtest/supplemental/site-page-and-url-correctly-parsed.json @@ -25,7 +25,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/www.publisher.com/ROS?e=testadunitcode%3A600x300&ncb=1&ur=http%3A%2F%2Fwww.publisher.com%2Fawesome%2Fsite%3Fwith%3Dsome%26parameters%3Dhere", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/three-imps-1_banner-1_video_instream-and-1_video_outstream-only-send-video-instream.json b/adapters/eplanning/eplanningtest/supplemental/three-imps-1_banner-1_video_instream-and-1_video_outstream-only-send-video-instream.json index f0409bdc8d5..61dac03da98 100644 --- a/adapters/eplanning/eplanningtest/supplemental/three-imps-1_banner-1_video_instream-and-1_video_outstream-only-send-video-instream.json +++ b/adapters/eplanning/eplanningtest/supplemental/three-imps-1_banner-1_video_instream-and-1_video_outstream-only-send-video-instream.json @@ -50,7 +50,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/6789/1/FILE/ROS?e=video_640x480_0%3A640x480%3B1&ncb=1&ur=FILE&vctx=1&vv=3", - "body": {} + "body": {}, + "impIDs":["test-imp-id","test-imp-instream","test-imp-outstream"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/two-imps-1_banner-and-1_video_instream-send-only-instream.json b/adapters/eplanning/eplanningtest/supplemental/two-imps-1_banner-and-1_video_instream-send-only-instream.json index 29d09c0e88c..82bce6ec815 100644 --- a/adapters/eplanning/eplanningtest/supplemental/two-imps-1_banner-and-1_video_instream-send-only-instream.json +++ b/adapters/eplanning/eplanningtest/supplemental/two-imps-1_banner-and-1_video_instream-send-only-instream.json @@ -36,7 +36,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/6789/1/FILE/ROS?e=video_640x480_0%3A640x480%3B1&ncb=1&ur=FILE&vctx=1&vv=3", - "body": {} + "body": {}, + "impIDs":["test-imp-id","test-imp-instream"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/two-imps-1_banner-and-1_video_outstream-send-only-outstream.json b/adapters/eplanning/eplanningtest/supplemental/two-imps-1_banner-and-1_video_outstream-send-only-outstream.json index c8c3c4e5123..28df3590cd3 100644 --- a/adapters/eplanning/eplanningtest/supplemental/two-imps-1_banner-and-1_video_outstream-send-only-outstream.json +++ b/adapters/eplanning/eplanningtest/supplemental/two-imps-1_banner-and-1_video_outstream-send-only-outstream.json @@ -36,7 +36,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/6789/1/FILE/ROS?e=video_640x480_0%3A640x480%3B1&ncb=1&ur=FILE&vctx=2&vv=3", - "body": {} + "body": {}, + "impIDs":["test-imp-id","test-imp-outstream"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/two-imps-video-1_instream-and-1_outstream-send-only-instream.json b/adapters/eplanning/eplanningtest/supplemental/two-imps-video-1_instream-and-1_outstream-send-only-instream.json index 078a05114d4..46ee1055063 100644 --- a/adapters/eplanning/eplanningtest/supplemental/two-imps-video-1_instream-and-1_outstream-send-only-instream.json +++ b/adapters/eplanning/eplanningtest/supplemental/two-imps-video-1_instream-and-1_outstream-send-only-instream.json @@ -37,7 +37,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=video_300x150_0%3A300x150%3B1&ncb=1&ur=FILE&vctx=1&vv=3", - "body": {} + "body": {}, + "impIDs":["test-imp-instream","test-imp-outstream"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/two-imps-video-instream.json b/adapters/eplanning/eplanningtest/supplemental/two-imps-video-instream.json index 5e6df243b39..4222dc51088 100644 --- a/adapters/eplanning/eplanningtest/supplemental/two-imps-video-instream.json +++ b/adapters/eplanning/eplanningtest/supplemental/two-imps-video-instream.json @@ -37,7 +37,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=video_640x480_0%3A640x480%3B1%2Bvideo_640x480_1%3A640x480%3B1&ncb=1&ur=FILE&vctx=1&vv=3", - "body": {} + "body": {}, + "impIDs":["test-imp-instream-1","test-imp-instream-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/video-no-placement-send-vctx-2.json b/adapters/eplanning/eplanningtest/supplemental/video-no-placement-send-vctx-2.json index 877fb8744c5..6c840fd9c1d 100644 --- a/adapters/eplanning/eplanningtest/supplemental/video-no-placement-send-vctx-2.json +++ b/adapters/eplanning/eplanningtest/supplemental/video-no-placement-send-vctx-2.json @@ -22,7 +22,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=video_300x150_0%3A300x150%3B1&ncb=1&ur=FILE&vctx=2&vv=3", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/video-no-size-send-640x480.json b/adapters/eplanning/eplanningtest/supplemental/video-no-size-send-640x480.json index 62efdc5cfe7..36ae81bbd70 100644 --- a/adapters/eplanning/eplanningtest/supplemental/video-no-size-send-640x480.json +++ b/adapters/eplanning/eplanningtest/supplemental/video-no-size-send-640x480.json @@ -20,7 +20,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=video_640x480_0%3A640x480%3B1&ncb=1&ur=FILE&vctx=2&vv=3", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/video-partial-size-send-640x480.json b/adapters/eplanning/eplanningtest/supplemental/video-partial-size-send-640x480.json index df17f2adfcf..10895e93479 100644 --- a/adapters/eplanning/eplanningtest/supplemental/video-partial-size-send-640x480.json +++ b/adapters/eplanning/eplanningtest/supplemental/video-partial-size-send-640x480.json @@ -21,7 +21,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=video_640x480_0%3A640x480%3B1&ncb=1&ur=FILE&vctx=2&vv=3", - "body": {} + "body": {}, + "impIDs": ["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/video-placement-1-send-vctx-1.json b/adapters/eplanning/eplanningtest/supplemental/video-placement-1-send-vctx-1.json index 62efdc5cfe7..36ae81bbd70 100644 --- a/adapters/eplanning/eplanningtest/supplemental/video-placement-1-send-vctx-1.json +++ b/adapters/eplanning/eplanningtest/supplemental/video-placement-1-send-vctx-1.json @@ -20,7 +20,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=video_640x480_0%3A640x480%3B1&ncb=1&ur=FILE&vctx=2&vv=3", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/video-placement-no-1-send-vctx-2.json b/adapters/eplanning/eplanningtest/supplemental/video-placement-no-1-send-vctx-2.json index 62efdc5cfe7..36ae81bbd70 100644 --- a/adapters/eplanning/eplanningtest/supplemental/video-placement-no-1-send-vctx-2.json +++ b/adapters/eplanning/eplanningtest/supplemental/video-placement-no-1-send-vctx-2.json @@ -20,7 +20,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=video_640x480_0%3A640x480%3B1&ncb=1&ur=FILE&vctx=2&vv=3", - "body": {} + "body": {}, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/eplanning/eplanningtest/supplemental/video-zero-size-send-640x480.json b/adapters/eplanning/eplanningtest/supplemental/video-zero-size-send-640x480.json index 6bc28224c16..006627a9513 100644 --- a/adapters/eplanning/eplanningtest/supplemental/video-zero-size-send-640x480.json +++ b/adapters/eplanning/eplanningtest/supplemental/video-zero-size-send-640x480.json @@ -22,7 +22,8 @@ { "expectedRequest": { "uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=video_640x480_0%3A640x480%3B1&ncb=1&ur=FILE&vctx=2&vv=3", - "body": {} + "body": {}, + "impIDs": ["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/epom/epom.go b/adapters/epom/epom.go index d3e5f207236..0bee7c33e3d 100644 --- a/adapters/epom/epom.go +++ b/adapters/epom/epom.go @@ -58,6 +58,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, nil } diff --git a/adapters/epom/epomtest/exemplary/simple-app-banner.json b/adapters/epom/epomtest/exemplary/simple-app-banner.json index f24b5b6e25f..05386641481 100644 --- a/adapters/epom/epomtest/exemplary/simple-app-banner.json +++ b/adapters/epom/epomtest/exemplary/simple-app-banner.json @@ -55,7 +55,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/epom/epomtest/exemplary/simple-app-native.json b/adapters/epom/epomtest/exemplary/simple-app-native.json index 1504870b3a2..85cedf5e7bc 100644 --- a/adapters/epom/epomtest/exemplary/simple-app-native.json +++ b/adapters/epom/epomtest/exemplary/simple-app-native.json @@ -47,7 +47,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/epom/epomtest/exemplary/simple-app-video.json b/adapters/epom/epomtest/exemplary/simple-app-video.json index af210467f78..580cefc7460 100644 --- a/adapters/epom/epomtest/exemplary/simple-app-video.json +++ b/adapters/epom/epomtest/exemplary/simple-app-video.json @@ -65,7 +65,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/epom/epomtest/exemplary/simple-site-banner.json b/adapters/epom/epomtest/exemplary/simple-site-banner.json index 65d05977424..5b8bffcae38 100644 --- a/adapters/epom/epomtest/exemplary/simple-site-banner.json +++ b/adapters/epom/epomtest/exemplary/simple-site-banner.json @@ -55,7 +55,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/epom/epomtest/exemplary/simple-site-native.json b/adapters/epom/epomtest/exemplary/simple-site-native.json index 0ae393f5704..59d58f977b7 100644 --- a/adapters/epom/epomtest/exemplary/simple-site-native.json +++ b/adapters/epom/epomtest/exemplary/simple-site-native.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/epom/epomtest/exemplary/simple-site-video.json b/adapters/epom/epomtest/exemplary/simple-site-video.json index fdf89011dd5..ebf45f968cf 100644 --- a/adapters/epom/epomtest/exemplary/simple-site-video.json +++ b/adapters/epom/epomtest/exemplary/simple-site-video.json @@ -65,7 +65,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/epom/epomtest/supplemental/bad-response-bad-request-error.json b/adapters/epom/epomtest/supplemental/bad-response-bad-request-error.json index b278bc9ce17..d7e75552439 100644 --- a/adapters/epom/epomtest/supplemental/bad-response-bad-request-error.json +++ b/adapters/epom/epomtest/supplemental/bad-response-bad-request-error.json @@ -54,7 +54,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/epom/epomtest/supplemental/bad-response-no-bid-obj-error.json b/adapters/epom/epomtest/supplemental/bad-response-no-bid-obj-error.json index 47eea3a44c2..5363df10201 100644 --- a/adapters/epom/epomtest/supplemental/bad-response-no-bid-obj-error.json +++ b/adapters/epom/epomtest/supplemental/bad-response-no-bid-obj-error.json @@ -54,7 +54,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/epom/epomtest/supplemental/bad-response-no-seatbid-error.json b/adapters/epom/epomtest/supplemental/bad-response-no-seatbid-error.json index ef8c7698f32..414a19e9a41 100644 --- a/adapters/epom/epomtest/supplemental/bad-response-no-seatbid-error.json +++ b/adapters/epom/epomtest/supplemental/bad-response-no-seatbid-error.json @@ -54,7 +54,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/epom/epomtest/supplemental/bad-response-server-internal-error.json b/adapters/epom/epomtest/supplemental/bad-response-server-internal-error.json index 402990ebb84..8f1f88f61aa 100644 --- a/adapters/epom/epomtest/supplemental/bad-response-server-internal-error.json +++ b/adapters/epom/epomtest/supplemental/bad-response-server-internal-error.json @@ -54,7 +54,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/epom/epomtest/supplemental/bad-response-unexpected-error.json b/adapters/epom/epomtest/supplemental/bad-response-unexpected-error.json index 23e5e974033..4fb5236a333 100644 --- a/adapters/epom/epomtest/supplemental/bad-response-unexpected-error.json +++ b/adapters/epom/epomtest/supplemental/bad-response-unexpected-error.json @@ -54,7 +54,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 301, diff --git a/adapters/flipp/flipp.go b/adapters/flipp/flipp.go index 5534981679f..f0c32a77460 100644 --- a/adapters/flipp/flipp.go +++ b/adapters/flipp/flipp.go @@ -153,6 +153,7 @@ func (a *adapter) processImp(request *openrtb2.BidRequest, imp openrtb2.Imp) (*a } adapterReq, err := a.makeRequest(request, campaignRequestBody) + adapterReq.ImpIDs = []string{imp.ID} if err != nil { return nil, fmt.Errorf("make request failed with err %v", err) } diff --git a/adapters/flipp/flipptest/exemplary/simple-banner-dtx.json b/adapters/flipp/flipptest/exemplary/simple-banner-dtx.json index 6bdad61d6b2..379f881ed85 100644 --- a/adapters/flipp/flipptest/exemplary/simple-banner-dtx.json +++ b/adapters/flipp/flipptest/exemplary/simple-banner-dtx.json @@ -78,7 +78,8 @@ "user":{ "key":"1234" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/flipp/flipptest/exemplary/simple-banner-native-param-transmit-eids.json b/adapters/flipp/flipptest/exemplary/simple-banner-native-param-transmit-eids.json index 77ba527b5cf..19748d47fba 100644 --- a/adapters/flipp/flipptest/exemplary/simple-banner-native-param-transmit-eids.json +++ b/adapters/flipp/flipptest/exemplary/simple-banner-native-param-transmit-eids.json @@ -86,7 +86,8 @@ "user":{ "key":"30470a14-2949-4110-abce-b62d57304ad5" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/flipp/flipptest/exemplary/simple-banner-native-param-user-coppa.json b/adapters/flipp/flipptest/exemplary/simple-banner-native-param-user-coppa.json index f61f6d9d710..eb81940da63 100644 --- a/adapters/flipp/flipptest/exemplary/simple-banner-native-param-user-coppa.json +++ b/adapters/flipp/flipptest/exemplary/simple-banner-native-param-user-coppa.json @@ -82,7 +82,8 @@ "user":{ "key":"30470a14-2949-4110-abce-b62d57304ad5" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/flipp/flipptest/exemplary/simple-banner-native-param-user-gdpr.json b/adapters/flipp/flipptest/exemplary/simple-banner-native-param-user-gdpr.json index 446ecd7d3f1..2a9c276696c 100644 --- a/adapters/flipp/flipptest/exemplary/simple-banner-native-param-user-gdpr.json +++ b/adapters/flipp/flipptest/exemplary/simple-banner-native-param-user-gdpr.json @@ -82,7 +82,8 @@ "user":{ "key":"30470a14-2949-4110-abce-b62d57304ad5" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/flipp/flipptest/exemplary/simple-banner-native-param-user.json b/adapters/flipp/flipptest/exemplary/simple-banner-native-param-user.json index 21957ae7096..f9f9537a86c 100644 --- a/adapters/flipp/flipptest/exemplary/simple-banner-native-param-user.json +++ b/adapters/flipp/flipptest/exemplary/simple-banner-native-param-user.json @@ -84,7 +84,8 @@ "user":{ "key":"abc123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/flipp/flipptest/exemplary/simple-banner-native.json b/adapters/flipp/flipptest/exemplary/simple-banner-native.json index d8a24131c77..d1d6188f0b8 100644 --- a/adapters/flipp/flipptest/exemplary/simple-banner-native.json +++ b/adapters/flipp/flipptest/exemplary/simple-banner-native.json @@ -81,7 +81,8 @@ "user":{ "key":"1234" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/flipp/flipptest/supplemental/bad-response.json b/adapters/flipp/flipptest/supplemental/bad-response.json index 764932ecb6e..f17320bded9 100644 --- a/adapters/flipp/flipptest/supplemental/bad-response.json +++ b/adapters/flipp/flipptest/supplemental/bad-response.json @@ -72,7 +72,8 @@ "user":{ "key":"1234" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/flipp/flipptest/supplemental/status-not-200.json b/adapters/flipp/flipptest/supplemental/status-not-200.json index 5039a905e47..c44125219ef 100644 --- a/adapters/flipp/flipptest/supplemental/status-not-200.json +++ b/adapters/flipp/flipptest/supplemental/status-not-200.json @@ -72,7 +72,8 @@ "user":{ "key":"1234" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/freewheelssp/freewheelssp.go b/adapters/freewheelssp/freewheelssp.go index 7ee2f76ca04..b11cf7c3f77 100644 --- a/adapters/freewheelssp/freewheelssp.go +++ b/adapters/freewheelssp/freewheelssp.go @@ -56,6 +56,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: a.endpoint, Body: requestJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil } diff --git a/adapters/freewheelssp/freewheelssptest/exemplary/multi-imp.json b/adapters/freewheelssp/freewheelssptest/exemplary/multi-imp.json index e6838240ca4..3060341c954 100644 --- a/adapters/freewheelssp/freewheelssptest/exemplary/multi-imp.json +++ b/adapters/freewheelssp/freewheelssptest/exemplary/multi-imp.json @@ -72,7 +72,8 @@ "Componentid": [ "prebid-go" ] - } + }, + "impIDs":["imp-1","imp-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/freewheelssp/freewheelssptest/exemplary/single-imp.json b/adapters/freewheelssp/freewheelssptest/exemplary/single-imp.json index 1d55dfecaf0..dd70cced61a 100644 --- a/adapters/freewheelssp/freewheelssptest/exemplary/single-imp.json +++ b/adapters/freewheelssp/freewheelssptest/exemplary/single-imp.json @@ -46,7 +46,8 @@ "Componentid": [ "prebid-go" ] - } + }, + "impIDs":["imp-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/freewheelssp/freewheelssptest/exemplary/string-single-imp.json b/adapters/freewheelssp/freewheelssptest/exemplary/string-single-imp.json index c17c7167d6e..c9b5d71519d 100644 --- a/adapters/freewheelssp/freewheelssptest/exemplary/string-single-imp.json +++ b/adapters/freewheelssp/freewheelssptest/exemplary/string-single-imp.json @@ -46,7 +46,8 @@ "Componentid": [ "prebid-go" ] - } + }, + "impIDs":["imp-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/freewheelssp/freewheelssptest/supplemental/204-bid-response.json b/adapters/freewheelssp/freewheelssptest/supplemental/204-bid-response.json index a84fa4f1268..c3292b6f6dc 100644 --- a/adapters/freewheelssp/freewheelssptest/supplemental/204-bid-response.json +++ b/adapters/freewheelssp/freewheelssptest/supplemental/204-bid-response.json @@ -46,7 +46,8 @@ "Componentid": [ "prebid-go" ] - } + }, + "impIDs":["imp-1"] }, "mockResponse": { "status": 204, diff --git a/adapters/freewheelssp/freewheelssptest/supplemental/503-bid-response.json b/adapters/freewheelssp/freewheelssptest/supplemental/503-bid-response.json index 475114d0230..240230fc096 100644 --- a/adapters/freewheelssp/freewheelssptest/supplemental/503-bid-response.json +++ b/adapters/freewheelssp/freewheelssptest/supplemental/503-bid-response.json @@ -46,7 +46,8 @@ "Componentid": [ "prebid-go" ] - } + }, + "impIDs":["imp-1"] }, "mockResponse": { "status": 503, diff --git a/adapters/frvradn/frvradn.go b/adapters/frvradn/frvradn.go index a25754a18de..7d71e13e374 100644 --- a/adapters/frvradn/frvradn.go +++ b/adapters/frvradn/frvradn.go @@ -69,6 +69,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: a.uri, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), } requests = append(requests, requestData) } diff --git a/adapters/frvradn/frvradntest/exemplary/banner.json b/adapters/frvradn/frvradntest/exemplary/banner.json index 1c9866aa312..1e34952b4c3 100644 --- a/adapters/frvradn/frvradntest/exemplary/banner.json +++ b/adapters/frvradn/frvradntest/exemplary/banner.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/frvradn/frvradntest/exemplary/native.json b/adapters/frvradn/frvradntest/exemplary/native.json index 9b350547e94..dc902cb46cb 100644 --- a/adapters/frvradn/frvradntest/exemplary/native.json +++ b/adapters/frvradn/frvradntest/exemplary/native.json @@ -34,7 +34,8 @@ } } ] - } + }, + "impIDs":["test-native-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/frvradn/frvradntest/exemplary/video.json b/adapters/frvradn/frvradntest/exemplary/video.json index 9ff1bb31f8a..247abb9847c 100644 --- a/adapters/frvradn/frvradntest/exemplary/video.json +++ b/adapters/frvradn/frvradntest/exemplary/video.json @@ -38,7 +38,8 @@ } } ] - } + }, + "impIDs":["test-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/frvradn/frvradntest/supplemental/204.json b/adapters/frvradn/frvradntest/supplemental/204.json index 48fe8a03aa7..52e2916955f 100644 --- a/adapters/frvradn/frvradntest/supplemental/204.json +++ b/adapters/frvradn/frvradntest/supplemental/204.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/frvradn/frvradntest/supplemental/400.json b/adapters/frvradn/frvradntest/supplemental/400.json index a7e5f40d176..97a54a8002f 100644 --- a/adapters/frvradn/frvradntest/supplemental/400.json +++ b/adapters/frvradn/frvradntest/supplemental/400.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/frvradn/frvradntest/supplemental/503.json b/adapters/frvradn/frvradntest/supplemental/503.json index 11b9ce2d52e..fc31a639f75 100644 --- a/adapters/frvradn/frvradntest/supplemental/503.json +++ b/adapters/frvradn/frvradntest/supplemental/503.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/frvradn/frvradntest/supplemental/currency_converter.json b/adapters/frvradn/frvradntest/supplemental/currency_converter.json index 45561d0be16..4aa8a38b599 100644 --- a/adapters/frvradn/frvradntest/supplemental/currency_converter.json +++ b/adapters/frvradn/frvradntest/supplemental/currency_converter.json @@ -72,7 +72,8 @@ } } } - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/frvradn/frvradntest/supplemental/empty_object_response.json b/adapters/frvradn/frvradntest/supplemental/empty_object_response.json index 00655c70fe2..8474132d08c 100644 --- a/adapters/frvradn/frvradntest/supplemental/empty_object_response.json +++ b/adapters/frvradn/frvradntest/supplemental/empty_object_response.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/frvradn/frvradntest/supplemental/empty_reponse.json b/adapters/frvradn/frvradntest/supplemental/empty_reponse.json index d6e2b059a6e..b9e295c0c25 100644 --- a/adapters/frvradn/frvradntest/supplemental/empty_reponse.json +++ b/adapters/frvradn/frvradntest/supplemental/empty_reponse.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 200 diff --git a/adapters/frvradn/frvradntest/supplemental/missing_bid_ext.json b/adapters/frvradn/frvradntest/supplemental/missing_bid_ext.json index e601c882dc1..4326e572733 100644 --- a/adapters/frvradn/frvradntest/supplemental/missing_bid_ext.json +++ b/adapters/frvradn/frvradntest/supplemental/missing_bid_ext.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/frvradn/frvradntest/supplemental/unknown_imp_media_type.json b/adapters/frvradn/frvradntest/supplemental/unknown_imp_media_type.json index 5b8dfb62d1c..b9584b58859 100644 --- a/adapters/frvradn/frvradntest/supplemental/unknown_imp_media_type.json +++ b/adapters/frvradn/frvradntest/supplemental/unknown_imp_media_type.json @@ -28,7 +28,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamma/gamma.go b/adapters/gamma/gamma.go index 4564e34244e..631132cc505 100644 --- a/adapters/gamma/gamma.go +++ b/adapters/gamma/gamma.go @@ -138,6 +138,7 @@ func (a *GammaAdapter) makeRequest(request *openrtb2.BidRequest, imp openrtb2.Im Method: "GET", Uri: thisURI, Headers: headers, + ImpIDs: []string{imp.ID}, }, errors } func (a *GammaAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.ExtraRequestInfo) ([]*adapters.RequestData, []error) { diff --git a/adapters/gamma/gammatest/exemplary/banner-and-video-and-audio.json b/adapters/gamma/gammatest/exemplary/banner-and-video-and-audio.json index 6ae9084c68b..1da7ecefbca 100644 --- a/adapters/gamma/gammatest/exemplary/banner-and-video-and-audio.json +++ b/adapters/gamma/gammatest/exemplary/banner-and-video-and-audio.json @@ -50,7 +50,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile" + "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, @@ -84,7 +85,8 @@ }, { "expectedRequest": { - "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-video-id&hb=pbmobile" + "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-video-id&hb=pbmobile", + "impIDs":["test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamma/gammatest/exemplary/simple-banner.json b/adapters/gamma/gammatest/exemplary/simple-banner.json index a7e513f2046..f6f4bffafb7 100644 --- a/adapters/gamma/gammatest/exemplary/simple-banner.json +++ b/adapters/gamma/gammatest/exemplary/simple-banner.json @@ -29,7 +29,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile" + "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamma/gammatest/exemplary/valid-extension.json b/adapters/gamma/gammatest/exemplary/valid-extension.json index 12e78808b67..a9002f32f54 100644 --- a/adapters/gamma/gammatest/exemplary/valid-extension.json +++ b/adapters/gamma/gammatest/exemplary/valid-extension.json @@ -28,7 +28,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile" + "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamma/gammatest/exemplary/valid-full-params.json b/adapters/gamma/gammatest/exemplary/valid-full-params.json index 21981bd3c97..c9f5df0e16a 100644 --- a/adapters/gamma/gammatest/exemplary/valid-full-params.json +++ b/adapters/gamma/gammatest/exemplary/valid-full-params.json @@ -49,7 +49,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile&device_ip=test-device-ip&device_model=test-device-model&device_os=test-device-os&device_ua=test-device-ua&device_ifa=test-device-ifa&app_id=test-app-id&app_bundle=test-app-bundle&app_name=test-app-name" + "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile&device_ip=test-device-ip&device_model=test-device-model&device_os=test-device-os&device_ua=test-device-ua&device_ifa=test-device-ifa&app_id=test-app-id&app_bundle=test-app-bundle&app_name=test-app-name", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamma/gammatest/supplemental/bad-request.json b/adapters/gamma/gammatest/supplemental/bad-request.json index 8b533f91de0..c4ccc138dc4 100644 --- a/adapters/gamma/gammatest/supplemental/bad-request.json +++ b/adapters/gamma/gammatest/supplemental/bad-request.json @@ -40,7 +40,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile&device_ip=test-device-ip&device_model=test-device-model&device_os=test-device-os&device_ua=test-device-ua&device_ifa=test-device-ifa&app_id=test-app-id&app_bundle=test-app-bundle&app_name=test-app-name" + "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile&device_ip=test-device-ip&device_model=test-device-model&device_os=test-device-os&device_ua=test-device-ua&device_ifa=test-device-ifa&app_id=test-app-id&app_bundle=test-app-bundle&app_name=test-app-name", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/gamma/gammatest/supplemental/bad-response-no-body.json b/adapters/gamma/gammatest/supplemental/bad-response-no-body.json index b75f9cb2ebd..7d27e7c8160 100644 --- a/adapters/gamma/gammatest/supplemental/bad-response-no-body.json +++ b/adapters/gamma/gammatest/supplemental/bad-response-no-body.json @@ -30,7 +30,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile" + "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200 diff --git a/adapters/gamma/gammatest/supplemental/ignore-imp.json b/adapters/gamma/gammatest/supplemental/ignore-imp.json index d62f7873a58..ff27c8c394e 100644 --- a/adapters/gamma/gammatest/supplemental/ignore-imp.json +++ b/adapters/gamma/gammatest/supplemental/ignore-imp.json @@ -58,7 +58,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile" + "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, @@ -88,7 +89,8 @@ }, { "expectedRequest": { - "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-video-id&hb=pbmobile" + "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-video-id&hb=pbmobile", + "impIDs":["test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamma/gammatest/supplemental/missing-adm.json b/adapters/gamma/gammatest/supplemental/missing-adm.json index 4e8603d3c9a..17fbf97efaa 100644 --- a/adapters/gamma/gammatest/supplemental/missing-adm.json +++ b/adapters/gamma/gammatest/supplemental/missing-adm.json @@ -28,7 +28,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-video-id&hb=pbmobile" + "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-video-id&hb=pbmobile", + "impIDs":["test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamma/gammatest/supplemental/nobid-signaling.json b/adapters/gamma/gammatest/supplemental/nobid-signaling.json index 4055ad70249..b211a3e646a 100644 --- a/adapters/gamma/gammatest/supplemental/nobid-signaling.json +++ b/adapters/gamma/gammatest/supplemental/nobid-signaling.json @@ -40,7 +40,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile&device_ip=test-device-ip&device_model=test-device-model&device_os=test-device-os&device_ua=test-device-ua&device_ifa=test-device-ifa&app_id=test-app-id&app_bundle=test-app-bundle&app_name=test-app-name" + "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile&device_ip=test-device-ip&device_model=test-device-model&device_os=test-device-os&device_ua=test-device-ua&device_ifa=test-device-ifa&app_id=test-app-id&app_bundle=test-app-bundle&app_name=test-app-name", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamma/gammatest/supplemental/status-forbidden.json b/adapters/gamma/gammatest/supplemental/status-forbidden.json index 3a30b210f4f..d4509586143 100644 --- a/adapters/gamma/gammatest/supplemental/status-forbidden.json +++ b/adapters/gamma/gammatest/supplemental/status-forbidden.json @@ -40,7 +40,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile&device_ip=test-device-ip&device_model=test-device-model&device_os=test-device-os&device_ua=test-device-ua&device_ifa=test-device-ifa&app_id=test-app-id&app_bundle=test-app-bundle&app_name=test-app-name" + "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile&device_ip=test-device-ip&device_model=test-device-model&device_os=test-device-os&device_ua=test-device-ua&device_ifa=test-device-ifa&app_id=test-app-id&app_bundle=test-app-bundle&app_name=test-app-name", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 403 diff --git a/adapters/gamma/gammatest/supplemental/status-no-content.json b/adapters/gamma/gammatest/supplemental/status-no-content.json index 045fb939ced..974266d8820 100644 --- a/adapters/gamma/gammatest/supplemental/status-no-content.json +++ b/adapters/gamma/gammatest/supplemental/status-no-content.json @@ -40,7 +40,8 @@ "httpCalls": [ { "expectedRequest": { - "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile&device_ip=test-device-ip&device_model=test-device-model&device_os=test-device-os&device_ua=test-device-ua&device_ifa=test-device-ifa&app_id=test-app-id&app_bundle=test-app-bundle&app_name=test-app-name" + "uri": "https://hb.gammaplatform.com/adx/request/?id=sample-id&zid=sample-zone-id&wid=sample-web-id&bidid=test-imp-id&hb=pbmobile&device_ip=test-device-ip&device_model=test-device-model&device_os=test-device-os&device_ua=test-device-ua&device_ifa=test-device-ifa&app_id=test-app-id&app_bundle=test-app-bundle&app_name=test-app-name", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/gamoshi/gamoshi.go b/adapters/gamoshi/gamoshi.go index 7842bf773aa..19016fdbdae 100644 --- a/adapters/gamoshi/gamoshi.go +++ b/adapters/gamoshi/gamoshi.go @@ -120,6 +120,7 @@ func (a *GamoshiAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *ada Uri: thisURI, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errors } diff --git a/adapters/gamoshi/gamoshitest/exemplary/banner-and-audio.json b/adapters/gamoshi/gamoshitest/exemplary/banner-and-audio.json index 33f39ff5c3e..6a7da0be59c 100644 --- a/adapters/gamoshi/gamoshitest/exemplary/banner-and-audio.json +++ b/adapters/gamoshi/gamoshitest/exemplary/banner-and-audio.json @@ -67,7 +67,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamoshi/gamoshitest/exemplary/banner-and-video.json b/adapters/gamoshi/gamoshitest/exemplary/banner-and-video.json index e20f754171c..1ba8de422ec 100644 --- a/adapters/gamoshi/gamoshitest/exemplary/banner-and-video.json +++ b/adapters/gamoshi/gamoshitest/exemplary/banner-and-video.json @@ -82,7 +82,8 @@ } } ] - } + }, + "impIDs":["test-imp-id","test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamoshi/gamoshitest/exemplary/banner-native-audio.json b/adapters/gamoshi/gamoshitest/exemplary/banner-native-audio.json index 2709b5828d5..031ba8789bf 100644 --- a/adapters/gamoshi/gamoshitest/exemplary/banner-native-audio.json +++ b/adapters/gamoshi/gamoshitest/exemplary/banner-native-audio.json @@ -79,7 +79,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamoshi/gamoshitest/exemplary/banner-video-native.json b/adapters/gamoshi/gamoshitest/exemplary/banner-video-native.json index 3e9064b4a3c..fcc990494e3 100644 --- a/adapters/gamoshi/gamoshitest/exemplary/banner-video-native.json +++ b/adapters/gamoshi/gamoshitest/exemplary/banner-video-native.json @@ -94,7 +94,8 @@ } } ] - } + }, + "impIDs":["test-imp-id","test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamoshi/gamoshitest/exemplary/simple-banner.json b/adapters/gamoshi/gamoshitest/exemplary/simple-banner.json index 7edb310d821..b22310f9f87 100644 --- a/adapters/gamoshi/gamoshitest/exemplary/simple-banner.json +++ b/adapters/gamoshi/gamoshitest/exemplary/simple-banner.json @@ -55,7 +55,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamoshi/gamoshitest/exemplary/simple-video.json b/adapters/gamoshi/gamoshitest/exemplary/simple-video.json index de9921cee05..f2a649e3c2b 100644 --- a/adapters/gamoshi/gamoshitest/exemplary/simple-video.json +++ b/adapters/gamoshi/gamoshitest/exemplary/simple-video.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamoshi/gamoshitest/exemplary/valid-extension.json b/adapters/gamoshi/gamoshitest/exemplary/valid-extension.json index 59d233917dd..3f1b0a3102f 100644 --- a/adapters/gamoshi/gamoshitest/exemplary/valid-extension.json +++ b/adapters/gamoshi/gamoshitest/exemplary/valid-extension.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamoshi/gamoshitest/exemplary/valid-with-device.json b/adapters/gamoshi/gamoshitest/exemplary/valid-with-device.json index 5e12822351a..949c2b9cac4 100644 --- a/adapters/gamoshi/gamoshitest/exemplary/valid-with-device.json +++ b/adapters/gamoshi/gamoshitest/exemplary/valid-with-device.json @@ -61,7 +61,8 @@ } } ] - } + }, + "impIDs":["test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamoshi/gamoshitest/exemplary/video-and-audio.json b/adapters/gamoshi/gamoshitest/exemplary/video-and-audio.json index 29e0e06996d..d78f73d0b34 100644 --- a/adapters/gamoshi/gamoshitest/exemplary/video-and-audio.json +++ b/adapters/gamoshi/gamoshitest/exemplary/video-and-audio.json @@ -53,7 +53,8 @@ } } ] - } + }, + "impIDs":["test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gamoshi/gamoshitest/supplemental/bad-response-no-body.json b/adapters/gamoshi/gamoshitest/supplemental/bad-response-no-body.json index 29390963bef..897844ff8e4 100644 --- a/adapters/gamoshi/gamoshitest/supplemental/bad-response-no-body.json +++ b/adapters/gamoshi/gamoshitest/supplemental/bad-response-no-body.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200 diff --git a/adapters/gamoshi/gamoshitest/supplemental/status-bad-request.json b/adapters/gamoshi/gamoshitest/supplemental/status-bad-request.json index 64c75fc85bb..ce5765f6ce6 100644 --- a/adapters/gamoshi/gamoshitest/supplemental/status-bad-request.json +++ b/adapters/gamoshi/gamoshitest/supplemental/status-bad-request.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/gamoshi/gamoshitest/supplemental/status-no-content.json b/adapters/gamoshi/gamoshitest/supplemental/status-no-content.json index 3bcb4a9b62d..42a3689bc9a 100644 --- a/adapters/gamoshi/gamoshitest/supplemental/status-no-content.json +++ b/adapters/gamoshi/gamoshitest/supplemental/status-no-content.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/gamoshi/gamoshitest/supplemental/unexpected-status-code.json b/adapters/gamoshi/gamoshitest/supplemental/unexpected-status-code.json index 1789707adf7..3dcafc3aebd 100644 --- a/adapters/gamoshi/gamoshitest/supplemental/unexpected-status-code.json +++ b/adapters/gamoshi/gamoshitest/supplemental/unexpected-status-code.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/globalsun/globalsun.go b/adapters/globalsun/globalsun.go index 7bcd418907c..533815f7403 100644 --- a/adapters/globalsun/globalsun.go +++ b/adapters/globalsun/globalsun.go @@ -83,6 +83,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, err } diff --git a/adapters/globalsun/globalsuntest/exemplary/simple-banner.json b/adapters/globalsun/globalsuntest/exemplary/simple-banner.json index d787a299927..8b03218c919 100644 --- a/adapters/globalsun/globalsuntest/exemplary/simple-banner.json +++ b/adapters/globalsun/globalsuntest/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/globalsun/globalsuntest/exemplary/simple-native.json b/adapters/globalsun/globalsuntest/exemplary/simple-native.json index ed52f529e14..bfddf2fca31 100644 --- a/adapters/globalsun/globalsuntest/exemplary/simple-native.json +++ b/adapters/globalsun/globalsuntest/exemplary/simple-native.json @@ -55,7 +55,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/globalsun/globalsuntest/exemplary/simple-video.json b/adapters/globalsun/globalsuntest/exemplary/simple-video.json index c7bee66a4da..0682224a45e 100644 --- a/adapters/globalsun/globalsuntest/exemplary/simple-video.json +++ b/adapters/globalsun/globalsuntest/exemplary/simple-video.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/globalsun/globalsuntest/exemplary/simple-web-banner.json b/adapters/globalsun/globalsuntest/exemplary/simple-web-banner.json index 3c8cb33665e..02ae8d3bc49 100644 --- a/adapters/globalsun/globalsuntest/exemplary/simple-web-banner.json +++ b/adapters/globalsun/globalsuntest/exemplary/simple-web-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "Ubuntu" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/globalsun/globalsuntest/supplemental/bad_media_type.json b/adapters/globalsun/globalsuntest/supplemental/bad_media_type.json index b9ff167ce36..fcad6ab326a 100644 --- a/adapters/globalsun/globalsuntest/supplemental/bad_media_type.json +++ b/adapters/globalsun/globalsuntest/supplemental/bad_media_type.json @@ -44,7 +44,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/globalsun/globalsuntest/supplemental/bad_response.json b/adapters/globalsun/globalsuntest/supplemental/bad_response.json index 8c1cc3750db..c732ba92c67 100644 --- a/adapters/globalsun/globalsuntest/supplemental/bad_response.json +++ b/adapters/globalsun/globalsuntest/supplemental/bad_response.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/globalsun/globalsuntest/supplemental/status-204.json b/adapters/globalsun/globalsuntest/supplemental/status-204.json index 3e536c25a60..b2c822cb446 100644 --- a/adapters/globalsun/globalsuntest/supplemental/status-204.json +++ b/adapters/globalsun/globalsuntest/supplemental/status-204.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/globalsun/globalsuntest/supplemental/status-not-200.json b/adapters/globalsun/globalsuntest/supplemental/status-not-200.json index b60ca2ccb33..30f92ef4180 100644 --- a/adapters/globalsun/globalsuntest/supplemental/status-not-200.json +++ b/adapters/globalsun/globalsuntest/supplemental/status-not-200.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/gothamads/gothamads.go b/adapters/gothamads/gothamads.go index c5f215333e9..b4fc8e64cdd 100644 --- a/adapters/gothamads/gothamads.go +++ b/adapters/gothamads/gothamads.go @@ -76,6 +76,7 @@ func (a *adapter) MakeRequests(openRTBRequest *openrtb2.BidRequest, reqInfo *ada Body: reqJSON, Uri: url, Headers: getHeaders(openRTBRequest), + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), }}, nil } diff --git a/adapters/gothamads/gothamadstest/exemplary/banner-app.json b/adapters/gothamads/gothamadstest/exemplary/banner-app.json index 44966ea8888..61fd85abc74 100644 --- a/adapters/gothamads/gothamadstest/exemplary/banner-app.json +++ b/adapters/gothamads/gothamadstest/exemplary/banner-app.json @@ -94,7 +94,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/gothamads/gothamadstest/exemplary/banner-web.json b/adapters/gothamads/gothamadstest/exemplary/banner-web.json index baac33a4f8c..0d09bbeb1f8 100644 --- a/adapters/gothamads/gothamadstest/exemplary/banner-web.json +++ b/adapters/gothamads/gothamadstest/exemplary/banner-web.json @@ -108,7 +108,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id1","some-impression-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/gothamads/gothamadstest/exemplary/native-app.json b/adapters/gothamads/gothamadstest/exemplary/native-app.json index 5c54d526699..16ba08b5ebe 100644 --- a/adapters/gothamads/gothamadstest/exemplary/native-app.json +++ b/adapters/gothamads/gothamadstest/exemplary/native-app.json @@ -94,7 +94,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gothamads/gothamadstest/exemplary/native-web.json b/adapters/gothamads/gothamadstest/exemplary/native-web.json index a2f16e78606..943871a0082 100644 --- a/adapters/gothamads/gothamadstest/exemplary/native-web.json +++ b/adapters/gothamads/gothamadstest/exemplary/native-web.json @@ -82,7 +82,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gothamads/gothamadstest/exemplary/video-app.json b/adapters/gothamads/gothamadstest/exemplary/video-app.json index a08c5a032c1..ce2e289014a 100644 --- a/adapters/gothamads/gothamadstest/exemplary/video-app.json +++ b/adapters/gothamads/gothamadstest/exemplary/video-app.json @@ -104,7 +104,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gothamads/gothamadstest/exemplary/video-web.json b/adapters/gothamads/gothamadstest/exemplary/video-web.json index 64293e740ba..a475fc5a0c1 100644 --- a/adapters/gothamads/gothamadstest/exemplary/video-web.json +++ b/adapters/gothamads/gothamadstest/exemplary/video-web.json @@ -92,7 +92,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gothamads/gothamadstest/supplemental/bad_media_type.json b/adapters/gothamads/gothamadstest/supplemental/bad_media_type.json index 349ea5da3f4..0079ce3e717 100644 --- a/adapters/gothamads/gothamadstest/supplemental/bad_media_type.json +++ b/adapters/gothamads/gothamadstest/supplemental/bad_media_type.json @@ -94,7 +94,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/gothamads/gothamadstest/supplemental/empty-seatbid-array.json b/adapters/gothamads/gothamadstest/supplemental/empty-seatbid-array.json index 50eafd989af..58970bd8e85 100644 --- a/adapters/gothamads/gothamadstest/supplemental/empty-seatbid-array.json +++ b/adapters/gothamads/gothamadstest/supplemental/empty-seatbid-array.json @@ -104,7 +104,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gothamads/gothamadstest/supplemental/invalid-response.json b/adapters/gothamads/gothamadstest/supplemental/invalid-response.json index eb928b41551..fe9cb3fd381 100644 --- a/adapters/gothamads/gothamadstest/supplemental/invalid-response.json +++ b/adapters/gothamads/gothamadstest/supplemental/invalid-response.json @@ -94,7 +94,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gothamads/gothamadstest/supplemental/status-code-bad-request.json b/adapters/gothamads/gothamadstest/supplemental/status-code-bad-request.json index 37c047edaa3..b0e2a098558 100644 --- a/adapters/gothamads/gothamadstest/supplemental/status-code-bad-request.json +++ b/adapters/gothamads/gothamadstest/supplemental/status-code-bad-request.json @@ -75,7 +75,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/gothamads/gothamadstest/supplemental/status-code-no-content.json b/adapters/gothamads/gothamadstest/supplemental/status-code-no-content.json index 76a3a4fc84d..97fbc419afa 100644 --- a/adapters/gothamads/gothamadstest/supplemental/status-code-no-content.json +++ b/adapters/gothamads/gothamadstest/supplemental/status-code-no-content.json @@ -63,7 +63,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/gothamads/gothamadstest/supplemental/status-code-other-error.json b/adapters/gothamads/gothamadstest/supplemental/status-code-other-error.json index 45a0f67f3e0..5d1916cce74 100644 --- a/adapters/gothamads/gothamadstest/supplemental/status-code-other-error.json +++ b/adapters/gothamads/gothamadstest/supplemental/status-code-other-error.json @@ -63,7 +63,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 306 diff --git a/adapters/gothamads/gothamadstest/supplemental/status-code-service-unavailable.json b/adapters/gothamads/gothamadstest/supplemental/status-code-service-unavailable.json index 97773cd0d53..e69644e9673 100644 --- a/adapters/gothamads/gothamadstest/supplemental/status-code-service-unavailable.json +++ b/adapters/gothamads/gothamadstest/supplemental/status-code-service-unavailable.json @@ -63,7 +63,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/grid/grid.go b/adapters/grid/grid.go index 30180cab89f..fe3e9fb0198 100644 --- a/adapters/grid/grid.go +++ b/adapters/grid/grid.go @@ -363,6 +363,7 @@ func (a *GridAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapte Uri: a.endpoint, Body: fixedReqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errors } diff --git a/adapters/grid/gridtest/exemplary/multitype-banner.json b/adapters/grid/gridtest/exemplary/multitype-banner.json index c87e9f1e98d..86999d33549 100644 --- a/adapters/grid/gridtest/exemplary/multitype-banner.json +++ b/adapters/grid/gridtest/exemplary/multitype-banner.json @@ -54,7 +54,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/grid/gridtest/exemplary/multitype-native.json b/adapters/grid/gridtest/exemplary/multitype-native.json index 2a142938ac6..435b9d5e0bd 100644 --- a/adapters/grid/gridtest/exemplary/multitype-native.json +++ b/adapters/grid/gridtest/exemplary/multitype-native.json @@ -62,7 +62,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/grid/gridtest/exemplary/multitype-video.json b/adapters/grid/gridtest/exemplary/multitype-video.json index e822cd4be40..8038b6d9f55 100644 --- a/adapters/grid/gridtest/exemplary/multitype-video.json +++ b/adapters/grid/gridtest/exemplary/multitype-video.json @@ -54,7 +54,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/grid/gridtest/exemplary/native-as-string.json b/adapters/grid/gridtest/exemplary/native-as-string.json index 3ad66b98ea9..66972e7d24b 100644 --- a/adapters/grid/gridtest/exemplary/native-as-string.json +++ b/adapters/grid/gridtest/exemplary/native-as-string.json @@ -38,7 +38,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/grid/gridtest/exemplary/simple-banner.json b/adapters/grid/gridtest/exemplary/simple-banner.json index 1161e48218a..cb54c464042 100644 --- a/adapters/grid/gridtest/exemplary/simple-banner.json +++ b/adapters/grid/gridtest/exemplary/simple-banner.json @@ -52,7 +52,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/grid/gridtest/exemplary/simple-native.json b/adapters/grid/gridtest/exemplary/simple-native.json index be7c17f77ae..da419a7202e 100644 --- a/adapters/grid/gridtest/exemplary/simple-native.json +++ b/adapters/grid/gridtest/exemplary/simple-native.json @@ -38,7 +38,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/grid/gridtest/exemplary/simple-video.json b/adapters/grid/gridtest/exemplary/simple-video.json index 12c3771d1b2..88d9f29d30c 100644 --- a/adapters/grid/gridtest/exemplary/simple-video.json +++ b/adapters/grid/gridtest/exemplary/simple-video.json @@ -42,7 +42,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/grid/gridtest/exemplary/with-ext-keywords.json b/adapters/grid/gridtest/exemplary/with-ext-keywords.json index e0d0563c241..8d4fa4159ac 100644 --- a/adapters/grid/gridtest/exemplary/with-ext-keywords.json +++ b/adapters/grid/gridtest/exemplary/with-ext-keywords.json @@ -171,7 +171,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/grid/gridtest/exemplary/with-keywords.json b/adapters/grid/gridtest/exemplary/with-keywords.json index a8875220618..f1a02a35f05 100644 --- a/adapters/grid/gridtest/exemplary/with-keywords.json +++ b/adapters/grid/gridtest/exemplary/with-keywords.json @@ -77,7 +77,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/grid/gridtest/exemplary/with-mixed-keywords.json b/adapters/grid/gridtest/exemplary/with-mixed-keywords.json index 49831991831..e42f006222f 100644 --- a/adapters/grid/gridtest/exemplary/with-mixed-keywords.json +++ b/adapters/grid/gridtest/exemplary/with-mixed-keywords.json @@ -263,7 +263,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/grid/gridtest/exemplary/with-site-keywords.json b/adapters/grid/gridtest/exemplary/with-site-keywords.json index bbdf830a42d..ddf496f6864 100644 --- a/adapters/grid/gridtest/exemplary/with-site-keywords.json +++ b/adapters/grid/gridtest/exemplary/with-site-keywords.json @@ -59,7 +59,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/grid/gridtest/exemplary/with-siteuser-keywords.json b/adapters/grid/gridtest/exemplary/with-siteuser-keywords.json index 7a4822f8566..e30be0e0c03 100644 --- a/adapters/grid/gridtest/exemplary/with-siteuser-keywords.json +++ b/adapters/grid/gridtest/exemplary/with-siteuser-keywords.json @@ -75,7 +75,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/grid/gridtest/exemplary/with-user-keywords.json b/adapters/grid/gridtest/exemplary/with-user-keywords.json index dbb8a7fe9d2..e9de4e946de 100644 --- a/adapters/grid/gridtest/exemplary/with-user-keywords.json +++ b/adapters/grid/gridtest/exemplary/with-user-keywords.json @@ -64,7 +64,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/grid/gridtest/exemplary/with_gpid.json b/adapters/grid/gridtest/exemplary/with_gpid.json index a436e4a8919..e6b634b2e13 100644 --- a/adapters/grid/gridtest/exemplary/with_gpid.json +++ b/adapters/grid/gridtest/exemplary/with_gpid.json @@ -63,7 +63,8 @@ "gpid": "some_slot" } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/grid/gridtest/supplemental/bad_response.json b/adapters/grid/gridtest/supplemental/bad_response.json index 248632073e4..a4c32c017c4 100644 --- a/adapters/grid/gridtest/supplemental/bad_response.json +++ b/adapters/grid/gridtest/supplemental/bad_response.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/grid/gridtest/supplemental/status_204.json b/adapters/grid/gridtest/supplemental/status_204.json index f935cbe85ae..bdfeb798a4c 100644 --- a/adapters/grid/gridtest/supplemental/status_204.json +++ b/adapters/grid/gridtest/supplemental/status_204.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/grid/gridtest/supplemental/status_400.json b/adapters/grid/gridtest/supplemental/status_400.json index 629b1c07bd7..bd8f0f7fd71 100644 --- a/adapters/grid/gridtest/supplemental/status_400.json +++ b/adapters/grid/gridtest/supplemental/status_400.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/grid/gridtest/supplemental/status_418.json b/adapters/grid/gridtest/supplemental/status_418.json index 0ca365c76ce..60dc19586b8 100644 --- a/adapters/grid/gridtest/supplemental/status_418.json +++ b/adapters/grid/gridtest/supplemental/status_418.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 418, diff --git a/adapters/gumgum/gumgum.go b/adapters/gumgum/gumgum.go index 0fb06d3c6bf..9e25e291825 100644 --- a/adapters/gumgum/gumgum.go +++ b/adapters/gumgum/gumgum.go @@ -76,6 +76,7 @@ func (g *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: g.URI, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errs } diff --git a/adapters/gumgum/gumgumtest/exemplary/banner.json b/adapters/gumgum/gumgumtest/exemplary/banner.json index 2fbd3da22da..cd5e8c34d48 100644 --- a/adapters/gumgum/gumgumtest/exemplary/banner.json +++ b/adapters/gumgum/gumgumtest/exemplary/banner.json @@ -52,7 +52,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gumgum/gumgumtest/exemplary/video.json b/adapters/gumgum/gumgumtest/exemplary/video.json index ea76c733f34..fbd62de35fc 100644 --- a/adapters/gumgum/gumgumtest/exemplary/video.json +++ b/adapters/gumgum/gumgumtest/exemplary/video.json @@ -60,7 +60,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gumgum/gumgumtest/supplemental/banner-only-in-format.json b/adapters/gumgum/gumgumtest/supplemental/banner-only-in-format.json index 238935aedf6..66b90c910e2 100644 --- a/adapters/gumgum/gumgumtest/supplemental/banner-only-in-format.json +++ b/adapters/gumgum/gumgumtest/supplemental/banner-only-in-format.json @@ -50,7 +50,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gumgum/gumgumtest/supplemental/banner-with-pubId-product-params.json b/adapters/gumgum/gumgumtest/supplemental/banner-with-pubId-product-params.json index 6e2793658d3..78e62adcada 100644 --- a/adapters/gumgum/gumgumtest/supplemental/banner-with-pubId-product-params.json +++ b/adapters/gumgum/gumgumtest/supplemental/banner-with-pubId-product-params.json @@ -58,7 +58,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gumgum/gumgumtest/supplemental/banner-with-pubId.json b/adapters/gumgum/gumgumtest/supplemental/banner-with-pubId.json index cd00cf2e586..c7b8f061095 100644 --- a/adapters/gumgum/gumgumtest/supplemental/banner-with-pubId.json +++ b/adapters/gumgum/gumgumtest/supplemental/banner-with-pubId.json @@ -52,7 +52,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gumgum/gumgumtest/supplemental/banner-with-site.json b/adapters/gumgum/gumgumtest/supplemental/banner-with-site.json index 1f89f5a229d..d0d7aa5d410 100644 --- a/adapters/gumgum/gumgumtest/supplemental/banner-with-site.json +++ b/adapters/gumgum/gumgumtest/supplemental/banner-with-site.json @@ -62,7 +62,8 @@ "id": "12345678" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gumgum/gumgumtest/supplemental/banner-with-slot-param.json b/adapters/gumgum/gumgumtest/supplemental/banner-with-slot-param.json index d50ab6a74c9..170abcc8a6e 100644 --- a/adapters/gumgum/gumgumtest/supplemental/banner-with-slot-param.json +++ b/adapters/gumgum/gumgumtest/supplemental/banner-with-slot-param.json @@ -61,7 +61,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/gumgum/gumgumtest/supplemental/video-with-irisid.json b/adapters/gumgum/gumgumtest/supplemental/video-with-irisid.json index 645ec748666..8d9fa64474c 100644 --- a/adapters/gumgum/gumgumtest/supplemental/video-with-irisid.json +++ b/adapters/gumgum/gumgumtest/supplemental/video-with-irisid.json @@ -65,7 +65,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiads.go b/adapters/huaweiads/huaweiads.go index c1ac451a839..bc346096437 100644 --- a/adapters/huaweiads/huaweiads.go +++ b/adapters/huaweiads/huaweiads.go @@ -317,6 +317,7 @@ func (a *adapter) MakeRequests(openRTBRequest *openrtb2.BidRequest, Uri: getFinalEndPoint(countryCode, a.endpoint, a.extraInfo), Body: reqJSON, Headers: header, + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), } return []*adapters.RequestData{bidRequest}, nil diff --git a/adapters/huaweiads/huaweiadstest/exemplary/banner1.json b/adapters/huaweiads/huaweiadstest/exemplary/banner1.json index ffcc704f617..1408de463a5 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/banner1.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/banner1.json @@ -144,7 +144,8 @@ "consent": "CPaYLJBPaYLJBIPAAAENCSCgAPAAAAAAAAAAGsQAQGsAAAAA.YAAAAAAAAAA", "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/banner1_without_userext.json b/adapters/huaweiads/huaweiadstest/exemplary/banner1_without_userext.json index 34b8b69e293..b41ee04324d 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/banner1_without_userext.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/banner1_without_userext.json @@ -137,7 +137,8 @@ "consent": "CPaYLJBPaYLJBIPAAAENCSCgAPAAAAAAAAAAGsQAQGsAAAAA.YAAAAAAAAAA", "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/banner2.json b/adapters/huaweiads/huaweiadstest/exemplary/banner2.json index 92afb558743..6e2a2b62145 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/banner2.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/banner2.json @@ -167,7 +167,8 @@ }, "version": "3.4", "clientAdRequestId": "a3b18c5b-6708-4bb7-b41b-40ed37d89561" - } + }, + "impIDs":["PrebidMobile"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/banner3.json b/adapters/huaweiads/huaweiadstest/exemplary/banner3.json index d012dd8e912..79e29ec696d 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/banner3.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/banner3.json @@ -166,7 +166,8 @@ }, "version": "3.4", "clientAdRequestId": "a3b18c5b-6708-4bb7-b41b-40ed37d89561" - } + }, + "impIDs":["PrebidMobile"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/banner4_mccmnc.json b/adapters/huaweiads/huaweiadstest/exemplary/banner4_mccmnc.json index d72cdb19e40..bf327366c67 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/banner4_mccmnc.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/banner4_mccmnc.json @@ -164,7 +164,8 @@ }, "version": "3.4", "clientAdRequestId": "a3b18c5b-6708-4bb7-b41b-40ed37d89561" - } + }, + "impIDs":["PrebidMobile"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/banner5_user_geo.json b/adapters/huaweiads/huaweiadstest/exemplary/banner5_user_geo.json index 987d157e0eb..7f4e301829a 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/banner5_user_geo.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/banner5_user_geo.json @@ -167,7 +167,8 @@ }, "version": "3.4", "clientAdRequestId": "a3b18c5b-6708-4bb7-b41b-40ed37d89561" - } + }, + "impIDs":["PrebidMobile"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/banner6_imei.json b/adapters/huaweiads/huaweiadstest/exemplary/banner6_imei.json index 4de8fa7ef94..8814faba49f 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/banner6_imei.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/banner6_imei.json @@ -148,7 +148,8 @@ "consent": "CPaYLJBPaYLJBIPAAAENCSCgAPAAAAAAAAAAGsQAQGsAAAAA.YAAAAAAAAAA", "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/bannerAppPromotionType.json b/adapters/huaweiads/huaweiadstest/exemplary/bannerAppPromotionType.json index 685a5235492..dc58891db6f 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/bannerAppPromotionType.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/bannerAppPromotionType.json @@ -140,7 +140,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/bannerNonIntegerMccmnc.json b/adapters/huaweiads/huaweiadstest/exemplary/bannerNonIntegerMccmnc.json index 8cb6ca920b1..64a62268c3e 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/bannerNonIntegerMccmnc.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/bannerNonIntegerMccmnc.json @@ -164,7 +164,8 @@ }, "version": "3.4", "clientAdRequestId": "a3b18c5b-6708-4bb7-b41b-40ed37d89561" - } + }, + "impIDs":["PrebidMobile"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/bannerNotAppPromotionType.json b/adapters/huaweiads/huaweiadstest/exemplary/bannerNotAppPromotionType.json index ec1ace1dee2..d4d7a298f8f 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/bannerNotAppPromotionType.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/bannerNotAppPromotionType.json @@ -140,7 +140,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/bannerTestExtraInfo1.json b/adapters/huaweiads/huaweiadstest/exemplary/bannerTestExtraInfo1.json index 6010fdcf7c7..10f41ad766d 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/bannerTestExtraInfo1.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/bannerTestExtraInfo1.json @@ -140,7 +140,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/bannerTestExtraInfo2.json b/adapters/huaweiads/huaweiadstest/exemplary/bannerTestExtraInfo2.json index 43e540f30bc..5423de9fcd9 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/bannerTestExtraInfo2.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/bannerTestExtraInfo2.json @@ -167,7 +167,8 @@ }, "version": "3.4", "clientAdRequestId": "a3b18c5b-6708-4bb7-b41b-40ed37d89561" - } + }, + "impIDs":["PrebidMobile"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/bannerTestExtraInfo3.json b/adapters/huaweiads/huaweiadstest/exemplary/bannerTestExtraInfo3.json index 65f47015975..122583a0572 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/bannerTestExtraInfo3.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/bannerTestExtraInfo3.json @@ -167,7 +167,8 @@ }, "version": "3.4", "clientAdRequestId": "a3b18c5b-6708-4bb7-b41b-40ed37d89561" - } + }, + "impIDs":["PrebidMobile"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/bannerWrongMccmnc.json b/adapters/huaweiads/huaweiadstest/exemplary/bannerWrongMccmnc.json index 52962e459ff..a56c0f8faff 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/bannerWrongMccmnc.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/bannerWrongMccmnc.json @@ -164,7 +164,8 @@ }, "version": "3.4", "clientAdRequestId": "a3b18c5b-6708-4bb7-b41b-40ed37d89561" - } + }, + "impIDs":["PrebidMobile"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/interstitialBannerType.json b/adapters/huaweiads/huaweiadstest/exemplary/interstitialBannerType.json index be7366a48cb..0b19c69d8bd 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/interstitialBannerType.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/interstitialBannerType.json @@ -140,7 +140,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/interstitialVideoType.json b/adapters/huaweiads/huaweiadstest/exemplary/interstitialVideoType.json index d48e8abf677..d1486ae2be4 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/interstitialVideoType.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/interstitialVideoType.json @@ -132,7 +132,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/nativeIncludeVideo.json b/adapters/huaweiads/huaweiadstest/exemplary/nativeIncludeVideo.json index c38c4124981..453d8723615 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/nativeIncludeVideo.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/nativeIncludeVideo.json @@ -124,7 +124,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/nativeMultiSizesByRange.json b/adapters/huaweiads/huaweiadstest/exemplary/nativeMultiSizesByRange.json index 97679a3bb1f..5dd77bf8fdb 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/nativeMultiSizesByRange.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/nativeMultiSizesByRange.json @@ -128,7 +128,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/nativeMultiSizesByRatio.json b/adapters/huaweiads/huaweiadstest/exemplary/nativeMultiSizesByRatio.json index e9c50baea89..a6ba78f6fab 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/nativeMultiSizesByRatio.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/nativeMultiSizesByRatio.json @@ -128,7 +128,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/nativeSingleImage.json b/adapters/huaweiads/huaweiadstest/exemplary/nativeSingleImage.json index 4ba3adce8a7..2a23420ff21 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/nativeSingleImage.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/nativeSingleImage.json @@ -128,7 +128,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/nativeThreeImage.json b/adapters/huaweiads/huaweiadstest/exemplary/nativeThreeImage.json index 240dee2d9d1..84e523e8bf9 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/nativeThreeImage.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/nativeThreeImage.json @@ -138,7 +138,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/nativeThreeImageIncludeIcon.json b/adapters/huaweiads/huaweiadstest/exemplary/nativeThreeImageIncludeIcon.json index 3f4222c2146..5a8722c6f7d 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/nativeThreeImageIncludeIcon.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/nativeThreeImageIncludeIcon.json @@ -126,7 +126,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo.json b/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo.json index 77308a62ca0..0a23ca7c9de 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo.json @@ -132,7 +132,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo1.json b/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo1.json index 1f5b8b9b2da..26562f51d0d 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo1.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo1.json @@ -132,7 +132,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo2.json b/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo2.json index 61ff7fa0c60..a911e38df77 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo2.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo2.json @@ -132,7 +132,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo3.json b/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo3.json index 4e72f089c4b..c2d8342cf3f 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo3.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo3.json @@ -132,7 +132,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo4.json b/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo4.json index 0045e5cd17e..f61acf30c24 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo4.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo4.json @@ -132,7 +132,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/rollVideo.json b/adapters/huaweiads/huaweiadstest/exemplary/rollVideo.json index f0429670360..20da7ddf377 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/rollVideo.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/rollVideo.json @@ -134,7 +134,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/exemplary/video.json b/adapters/huaweiads/huaweiadstest/exemplary/video.json index acc572c721f..74e7e7e6c27 100644 --- a/adapters/huaweiads/huaweiadstest/exemplary/video.json +++ b/adapters/huaweiads/huaweiadstest/exemplary/video.json @@ -132,7 +132,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/supplemental/bad_response.json b/adapters/huaweiads/huaweiadstest/supplemental/bad_response.json index 92f5e8b65f6..5d6386f4f5a 100644 --- a/adapters/huaweiads/huaweiadstest/supplemental/bad_response.json +++ b/adapters/huaweiads/huaweiadstest/supplemental/bad_response.json @@ -134,7 +134,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_400.json b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_400.json index b860e57c26d..e420246d956 100644 --- a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_400.json +++ b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_400.json @@ -134,7 +134,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_503.json b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_503.json index 8261a13fff4..a617f23ccf3 100644 --- a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_503.json +++ b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_503.json @@ -134,7 +134,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 503, diff --git a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_dont_find_impid.json b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_dont_find_impid.json index f040ce955be..ec69e1fb148 100644 --- a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_dont_find_impid.json +++ b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_dont_find_impid.json @@ -170,7 +170,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id","test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_incorrect_huawei_adtype.json b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_incorrect_huawei_adtype.json index a0a93bda5e1..5c3f1506d3f 100644 --- a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_incorrect_huawei_adtype.json +++ b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_incorrect_huawei_adtype.json @@ -140,7 +140,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_not_intent.json b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_not_intent.json index d801946d661..a78b794d39a 100644 --- a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_not_intent.json +++ b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_not_intent.json @@ -140,7 +140,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_not_native.json b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_not_native.json index 10814d7eb9e..e18efc205d2 100644 --- a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_not_native.json +++ b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_not_native.json @@ -157,7 +157,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_retcode30_204.json b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_retcode30_204.json index d4a41bba3fc..2b7a78523f6 100644 --- a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_retcode30_204.json +++ b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_retcode30_204.json @@ -134,7 +134,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_retcode_210.json b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_retcode_210.json index 4d9543d259a..e9318933553 100644 --- a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_retcode_210.json +++ b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_retcode_210.json @@ -134,7 +134,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_retcode_408.json b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_retcode_408.json index c7cc4d0534a..1a7109c1e29 100644 --- a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_retcode_408.json +++ b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_retcode_408.json @@ -134,7 +134,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_retcode_500.json b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_retcode_500.json index f0fdeb665e2..24fe6e5b34b 100644 --- a/adapters/huaweiads/huaweiadstest/supplemental/bad_response_retcode_500.json +++ b/adapters/huaweiads/huaweiadstest/supplemental/bad_response_retcode_500.json @@ -134,7 +134,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/supplemental/missing_video_size.json b/adapters/huaweiads/huaweiadstest/supplemental/missing_video_size.json index c4d7697974a..d32f1cf57ec 100644 --- a/adapters/huaweiads/huaweiadstest/supplemental/missing_video_size.json +++ b/adapters/huaweiads/huaweiadstest/supplemental/missing_video_size.json @@ -128,7 +128,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs": ["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/huaweiads/huaweiadstest/supplemental/zero_video_size.json b/adapters/huaweiads/huaweiadstest/supplemental/zero_video_size.json index 4c38e56d1a0..4cbed97552f 100644 --- a/adapters/huaweiads/huaweiadstest/supplemental/zero_video_size.json +++ b/adapters/huaweiads/huaweiadstest/supplemental/zero_video_size.json @@ -130,7 +130,8 @@ }, "version": "3.4", "clientAdRequestId": "test-req-id" - } + }, + "impIDs": ["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/imds/imds.go b/adapters/imds/imds.go index 87583f0f6a3..797c7e25b6b 100644 --- a/adapters/imds/imds.go +++ b/adapters/imds/imds.go @@ -125,6 +125,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: reqUri, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, errs } diff --git a/adapters/imds/imdstest/exemplary/simple-banner.json b/adapters/imds/imdstest/exemplary/simple-banner.json index c19d19bd5fe..753f89ac8f5 100644 --- a/adapters/imds/imdstest/exemplary/simple-banner.json +++ b/adapters/imds/imdstest/exemplary/simple-banner.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/imds/imdstest/exemplary/simple-video.json b/adapters/imds/imdstest/exemplary/simple-video.json index 31a8d568b5d..90d5d39f80c 100644 --- a/adapters/imds/imdstest/exemplary/simple-video.json +++ b/adapters/imds/imdstest/exemplary/simple-video.json @@ -62,7 +62,8 @@ } } ] - } + }, + "impIDs":["i3"] }, "mockResponse": { "status": 200, diff --git a/adapters/imds/imdstest/supplemental/audio_response.json b/adapters/imds/imdstest/supplemental/audio_response.json index 9873d9b91d4..1e8eecd5ab8 100644 --- a/adapters/imds/imdstest/supplemental/audio_response.json +++ b/adapters/imds/imdstest/supplemental/audio_response.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/imds/imdstest/supplemental/bad_response.json b/adapters/imds/imdstest/supplemental/bad_response.json index 1f96ac643bb..9860bc7ac0d 100644 --- a/adapters/imds/imdstest/supplemental/bad_response.json +++ b/adapters/imds/imdstest/supplemental/bad_response.json @@ -53,7 +53,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/imds/imdstest/supplemental/native_response.json b/adapters/imds/imdstest/supplemental/native_response.json index b402084a97e..5d5bec1e24d 100644 --- a/adapters/imds/imdstest/supplemental/native_response.json +++ b/adapters/imds/imdstest/supplemental/native_response.json @@ -41,7 +41,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/imds/imdstest/supplemental/one_bad_ext.json b/adapters/imds/imdstest/supplemental/one_bad_ext.json index d1bd7451384..9da43d95057 100644 --- a/adapters/imds/imdstest/supplemental/one_bad_ext.json +++ b/adapters/imds/imdstest/supplemental/one_bad_ext.json @@ -65,7 +65,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/imds/imdstest/supplemental/status_204.json b/adapters/imds/imdstest/supplemental/status_204.json index 77906a7b54b..c9002a6c455 100644 --- a/adapters/imds/imdstest/supplemental/status_204.json +++ b/adapters/imds/imdstest/supplemental/status_204.json @@ -53,7 +53,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/imds/imdstest/supplemental/status_400.json b/adapters/imds/imdstest/supplemental/status_400.json index 9a63221972b..e6a100d62b2 100644 --- a/adapters/imds/imdstest/supplemental/status_400.json +++ b/adapters/imds/imdstest/supplemental/status_400.json @@ -53,7 +53,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/imds/imdstest/supplemental/status_500.json b/adapters/imds/imdstest/supplemental/status_500.json index ee29aee4329..ba1ccfe5db6 100644 --- a/adapters/imds/imdstest/supplemental/status_500.json +++ b/adapters/imds/imdstest/supplemental/status_500.json @@ -53,7 +53,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/impactify/impactify.go b/adapters/impactify/impactify.go index 2b42230e46c..960a29d6c9b 100644 --- a/adapters/impactify/impactify.go +++ b/adapters/impactify/impactify.go @@ -103,6 +103,7 @@ func (a *adapter) MakeRequests(bidRequest *openrtb2.BidRequest, reqInfo *adapter Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(bidRequest.Imp), }) return adapterRequests, nil diff --git a/adapters/impactify/impactifytest/exemplary/sample_banner.json b/adapters/impactify/impactifytest/exemplary/sample_banner.json index 2eeba02b26e..f5ab71d3d21 100644 --- a/adapters/impactify/impactifytest/exemplary/sample_banner.json +++ b/adapters/impactify/impactifytest/exemplary/sample_banner.json @@ -82,7 +82,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/impactify/impactifytest/exemplary/sample_video.json b/adapters/impactify/impactifytest/exemplary/sample_video.json index 4c904833ad8..e331d596791 100644 --- a/adapters/impactify/impactifytest/exemplary/sample_video.json +++ b/adapters/impactify/impactifytest/exemplary/sample_video.json @@ -50,7 +50,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/impactify/impactifytest/supplemental/bad_response.json b/adapters/impactify/impactifytest/supplemental/bad_response.json index a9dfa4cc3a2..fe75e0a32e3 100644 --- a/adapters/impactify/impactifytest/supplemental/bad_response.json +++ b/adapters/impactify/impactifytest/supplemental/bad_response.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/impactify/impactifytest/supplemental/buyeruid.json b/adapters/impactify/impactifytest/supplemental/buyeruid.json index df940813e91..f5656eed1d3 100644 --- a/adapters/impactify/impactifytest/supplemental/buyeruid.json +++ b/adapters/impactify/impactifytest/supplemental/buyeruid.json @@ -84,7 +84,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/impactify/impactifytest/supplemental/headers.json b/adapters/impactify/impactifytest/supplemental/headers.json index 8d4fe2fabfd..d0a6aab6ba9 100644 --- a/adapters/impactify/impactifytest/supplemental/headers.json +++ b/adapters/impactify/impactifytest/supplemental/headers.json @@ -75,7 +75,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/impactify/impactifytest/supplemental/headers_ip.json b/adapters/impactify/impactifytest/supplemental/headers_ip.json index 1add398ad7e..45f87d09d27 100644 --- a/adapters/impactify/impactifytest/supplemental/headers_ip.json +++ b/adapters/impactify/impactifytest/supplemental/headers_ip.json @@ -75,7 +75,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/impactify/impactifytest/supplemental/http_204.json b/adapters/impactify/impactifytest/supplemental/http_204.json index d3f790b21d2..0a92f904603 100644 --- a/adapters/impactify/impactifytest/supplemental/http_204.json +++ b/adapters/impactify/impactifytest/supplemental/http_204.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/impactify/impactifytest/supplemental/http_400.json b/adapters/impactify/impactifytest/supplemental/http_400.json index 10d1f56c206..7800bdf6502 100644 --- a/adapters/impactify/impactifytest/supplemental/http_400.json +++ b/adapters/impactify/impactifytest/supplemental/http_400.json @@ -75,7 +75,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/impactify/impactifytest/supplemental/http_500.json b/adapters/impactify/impactifytest/supplemental/http_500.json index 7633cc0aae3..d207510ae12 100644 --- a/adapters/impactify/impactifytest/supplemental/http_500.json +++ b/adapters/impactify/impactifytest/supplemental/http_500.json @@ -75,7 +75,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/impactify/impactifytest/supplemental/negative_price.json b/adapters/impactify/impactifytest/supplemental/negative_price.json index 02827baa984..42724010829 100644 --- a/adapters/impactify/impactifytest/supplemental/negative_price.json +++ b/adapters/impactify/impactifytest/supplemental/negative_price.json @@ -75,7 +75,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/impactify/impactifytest/supplemental/no_seat_bid.json b/adapters/impactify/impactifytest/supplemental/no_seat_bid.json index 21a3d00ec18..5da61176039 100644 --- a/adapters/impactify/impactifytest/supplemental/no_seat_bid.json +++ b/adapters/impactify/impactifytest/supplemental/no_seat_bid.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/impactify/impactifytest/supplemental/not_supported_media_type.json b/adapters/impactify/impactifytest/supplemental/not_supported_media_type.json index e47594eea1c..6251554aba0 100644 --- a/adapters/impactify/impactifytest/supplemental/not_supported_media_type.json +++ b/adapters/impactify/impactifytest/supplemental/not_supported_media_type.json @@ -35,7 +35,8 @@ "mimes": null } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/impactify/impactifytest/supplemental/referer.json b/adapters/impactify/impactifytest/supplemental/referer.json index 457f5cfbd77..ed66d46a506 100644 --- a/adapters/impactify/impactifytest/supplemental/referer.json +++ b/adapters/impactify/impactifytest/supplemental/referer.json @@ -93,7 +93,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigital.go b/adapters/improvedigital/improvedigital.go index 3fd514be86d..392e1040eaa 100644 --- a/adapters/improvedigital/improvedigital.go +++ b/adapters/improvedigital/improvedigital.go @@ -99,6 +99,7 @@ func (a *ImprovedigitalAdapter) makeRequest(request openrtb2.BidRequest, imp ope Uri: a.buildEndpointURL(imp), Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, nil } diff --git a/adapters/improvedigital/improvedigitaltest/exemplary/app-multi.json b/adapters/improvedigital/improvedigitaltest/exemplary/app-multi.json index 425435049db..b641e486050 100644 --- a/adapters/improvedigital/improvedigitaltest/exemplary/app-multi.json +++ b/adapters/improvedigital/improvedigitaltest/exemplary/app-multi.json @@ -98,7 +98,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-banner"] }, "mockResponse": { "status": 200, @@ -156,7 +157,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-video"] }, "mockResponse": { "status": 200, @@ -220,7 +222,8 @@ } } ] - } + }, + "impIDs":["test-multi-format-id-with-mtype"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigitaltest/exemplary/audio.json b/adapters/improvedigital/improvedigitaltest/exemplary/audio.json index 9ddbf799517..0b349ab3aba 100644 --- a/adapters/improvedigital/improvedigitaltest/exemplary/audio.json +++ b/adapters/improvedigital/improvedigitaltest/exemplary/audio.json @@ -108,7 +108,8 @@ } } } - } + }, + "impIDs":["audio"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigitaltest/exemplary/native.json b/adapters/improvedigital/improvedigitaltest/exemplary/native.json index 3865d40383b..3dcfb0762bb 100644 --- a/adapters/improvedigital/improvedigitaltest/exemplary/native.json +++ b/adapters/improvedigital/improvedigitaltest/exemplary/native.json @@ -108,7 +108,8 @@ } } } - } + }, + "impIDs":["native"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigitaltest/exemplary/simple-banner.json b/adapters/improvedigital/improvedigitaltest/exemplary/simple-banner.json index 19668c457b9..9791be6ad81 100644 --- a/adapters/improvedigital/improvedigitaltest/exemplary/simple-banner.json +++ b/adapters/improvedigital/improvedigitaltest/exemplary/simple-banner.json @@ -42,7 +42,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigitaltest/exemplary/site-multi.json b/adapters/improvedigital/improvedigitaltest/exemplary/site-multi.json index d7131a54577..1029b302430 100644 --- a/adapters/improvedigital/improvedigitaltest/exemplary/site-multi.json +++ b/adapters/improvedigital/improvedigitaltest/exemplary/site-multi.json @@ -103,7 +103,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-banner"] }, "mockResponse": { "status": 200, @@ -163,7 +164,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-video"] }, "mockResponse": { "status": 200, @@ -229,7 +231,8 @@ } } ] - } + }, + "impIDs":["test-multi-format-id-with-mtype"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigitaltest/supplemental/ad-server-url.json b/adapters/improvedigital/improvedigitaltest/supplemental/ad-server-url.json index 4df449cfe4f..a78b61f8d78 100644 --- a/adapters/improvedigital/improvedigitaltest/supplemental/ad-server-url.json +++ b/adapters/improvedigital/improvedigitaltest/supplemental/ad-server-url.json @@ -68,7 +68,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-banner"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigitaltest/supplemental/addtl-consent-multi-tilda.json b/adapters/improvedigital/improvedigitaltest/supplemental/addtl-consent-multi-tilda.json index 24c4b813ff3..87007a6391c 100644 --- a/adapters/improvedigital/improvedigitaltest/supplemental/addtl-consent-multi-tilda.json +++ b/adapters/improvedigital/improvedigitaltest/supplemental/addtl-consent-multi-tilda.json @@ -49,7 +49,8 @@ "ext": {"consent": "ABC","ConsentedProvidersSettings":{"consented_providers":"1~10.20.90~2"},"consented_providers_settings": {"consented_providers": [10,20,90]} } } - } + }, + "impIDs": ["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigitaltest/supplemental/addtl-consent.json b/adapters/improvedigital/improvedigitaltest/supplemental/addtl-consent.json index b1b780f64ba..f3980e64423 100644 --- a/adapters/improvedigital/improvedigitaltest/supplemental/addtl-consent.json +++ b/adapters/improvedigital/improvedigitaltest/supplemental/addtl-consent.json @@ -49,7 +49,8 @@ "ext": {"consent": "ABC","ConsentedProvidersSettings":{"consented_providers":"1~10.20.90"},"consented_providers_settings": {"consented_providers": [10,20,90]} } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigitaltest/supplemental/bad_response.json b/adapters/improvedigital/improvedigitaltest/supplemental/bad_response.json index 7b103f011a1..5edafaaca68 100644 --- a/adapters/improvedigital/improvedigitaltest/supplemental/bad_response.json +++ b/adapters/improvedigital/improvedigitaltest/supplemental/bad_response.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigitaltest/supplemental/dealid.json b/adapters/improvedigital/improvedigitaltest/supplemental/dealid.json index 012a5a6a3c5..631d59fb161 100644 --- a/adapters/improvedigital/improvedigitaltest/supplemental/dealid.json +++ b/adapters/improvedigital/improvedigitaltest/supplemental/dealid.json @@ -130,7 +130,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-banner"] }, "mockResponse": { "status": 200, @@ -201,7 +202,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-banner"] }, "mockResponse": { "status": 200, @@ -272,7 +274,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-banner"] }, "mockResponse": { "status": 200, @@ -342,7 +345,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-banner"] }, "mockResponse": { "status": 200, @@ -413,7 +417,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-banner"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigitaltest/supplemental/foreign-currency.json b/adapters/improvedigital/improvedigitaltest/supplemental/foreign-currency.json index 633e8b6b0aa..a3fc0eacb95 100644 --- a/adapters/improvedigital/improvedigitaltest/supplemental/foreign-currency.json +++ b/adapters/improvedigital/improvedigitaltest/supplemental/foreign-currency.json @@ -44,7 +44,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigitaltest/supplemental/missing_and_unsupported_mtype.json b/adapters/improvedigital/improvedigitaltest/supplemental/missing_and_unsupported_mtype.json index ad82321a401..8b859f8d4be 100644 --- a/adapters/improvedigital/improvedigitaltest/supplemental/missing_and_unsupported_mtype.json +++ b/adapters/improvedigital/improvedigitaltest/supplemental/missing_and_unsupported_mtype.json @@ -75,7 +75,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, @@ -129,7 +130,8 @@ } } ] - } + }, + "impIDs":["test-multi-format-id-without-mtype"] }, "mockResponse": { "status": 200, @@ -170,7 +172,8 @@ } } ] - } + }, + "impIDs":["test-unsupported-format-id-without-mtype"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigitaltest/supplemental/multi-seatbid.json b/adapters/improvedigital/improvedigitaltest/supplemental/multi-seatbid.json index 8fe46f6a5f8..c30681e0e30 100644 --- a/adapters/improvedigital/improvedigitaltest/supplemental/multi-seatbid.json +++ b/adapters/improvedigital/improvedigitaltest/supplemental/multi-seatbid.json @@ -36,7 +36,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigitaltest/supplemental/nobid-debug.json b/adapters/improvedigital/improvedigitaltest/supplemental/nobid-debug.json index 8e70da371ac..39ffa7ce2aa 100644 --- a/adapters/improvedigital/improvedigitaltest/supplemental/nobid-debug.json +++ b/adapters/improvedigital/improvedigitaltest/supplemental/nobid-debug.json @@ -36,7 +36,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/improvedigital/improvedigitaltest/supplemental/nobid.json b/adapters/improvedigital/improvedigitaltest/supplemental/nobid.json index 49ad0a72955..a836903b0e1 100644 --- a/adapters/improvedigital/improvedigitaltest/supplemental/nobid.json +++ b/adapters/improvedigital/improvedigitaltest/supplemental/nobid.json @@ -36,7 +36,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigitaltest/supplemental/noseatbid.json b/adapters/improvedigital/improvedigitaltest/supplemental/noseatbid.json index 4d75bedbf81..d1eabba6e4c 100644 --- a/adapters/improvedigital/improvedigitaltest/supplemental/noseatbid.json +++ b/adapters/improvedigital/improvedigitaltest/supplemental/noseatbid.json @@ -36,7 +36,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigitaltest/supplemental/rewarded-inventory.json b/adapters/improvedigital/improvedigitaltest/supplemental/rewarded-inventory.json index 17c8a656b89..b853e3c278c 100644 --- a/adapters/improvedigital/improvedigitaltest/supplemental/rewarded-inventory.json +++ b/adapters/improvedigital/improvedigitaltest/supplemental/rewarded-inventory.json @@ -93,7 +93,8 @@ } } ] - } + }, + "impIDs":["rewarded-inventory-imp-id-true"] }, "mockResponse": { "status": 200, @@ -129,7 +130,8 @@ } } ] - } + }, + "impIDs":["rewarded-inventory-imp-id-false"] }, "mockResponse": { "status": 200, @@ -163,7 +165,8 @@ } } ] - } + }, + "impIDs":["rewarded-inventory-imp-id-not-defined"] }, "mockResponse": { "status": 200, diff --git a/adapters/improvedigital/improvedigitaltest/supplemental/status_204.json b/adapters/improvedigital/improvedigitaltest/supplemental/status_204.json index 25e9ae197e7..9f580c83bb3 100644 --- a/adapters/improvedigital/improvedigitaltest/supplemental/status_204.json +++ b/adapters/improvedigital/improvedigitaltest/supplemental/status_204.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/improvedigital/improvedigitaltest/supplemental/status_400.json b/adapters/improvedigital/improvedigitaltest/supplemental/status_400.json index fd66a82c80d..28272a19d65 100644 --- a/adapters/improvedigital/improvedigitaltest/supplemental/status_400.json +++ b/adapters/improvedigital/improvedigitaltest/supplemental/status_400.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/improvedigital/improvedigitaltest/supplemental/status_418.json b/adapters/improvedigital/improvedigitaltest/supplemental/status_418.json index 290e628c2a3..7a0fe070c62 100644 --- a/adapters/improvedigital/improvedigitaltest/supplemental/status_418.json +++ b/adapters/improvedigital/improvedigitaltest/supplemental/status_418.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 418, diff --git a/adapters/improvedigital/improvedigitaltest/supplemental/wrong_impid.json b/adapters/improvedigital/improvedigitaltest/supplemental/wrong_impid.json index 87a88cb895a..a28c99382f7 100644 --- a/adapters/improvedigital/improvedigitaltest/supplemental/wrong_impid.json +++ b/adapters/improvedigital/improvedigitaltest/supplemental/wrong_impid.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/infytv/infytv.go b/adapters/infytv/infytv.go index b0dbcb5b476..a5d325e329f 100644 --- a/adapters/infytv/infytv.go +++ b/adapters/infytv/infytv.go @@ -35,6 +35,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: a.endpoint, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/infytv/infytvtest/exemplary/app.json b/adapters/infytv/infytvtest/exemplary/app.json index d4426bf7bde..fa146e0fad1 100644 --- a/adapters/infytv/infytvtest/exemplary/app.json +++ b/adapters/infytv/infytvtest/exemplary/app.json @@ -186,7 +186,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["bfb2dd46a5e63a0a84711c20fd8ce9e1"] }, "mockResponse": { "status": 200, diff --git a/adapters/infytv/infytvtest/exemplary/video.json b/adapters/infytv/infytvtest/exemplary/video.json index 7eb9c80080c..18b4a4957ec 100644 --- a/adapters/infytv/infytvtest/exemplary/video.json +++ b/adapters/infytv/infytvtest/exemplary/video.json @@ -208,7 +208,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["bfb2dd46a5e63a0a84711c20fd8ce9e1"] }, "mockResponse": { "status": 200, diff --git a/adapters/infytv/infytvtest/supplemental/bad-response.json b/adapters/infytv/infytvtest/supplemental/bad-response.json index 5141cdca702..01d560cf5e7 100644 --- a/adapters/infytv/infytvtest/supplemental/bad-response.json +++ b/adapters/infytv/infytvtest/supplemental/bad-response.json @@ -184,7 +184,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["bfb2dd46a5e63a0a84711c20fd8ce9e1"] }, "mockResponse": { "status": 200, diff --git a/adapters/infytv/infytvtest/supplemental/empty-seatbid.json b/adapters/infytv/infytvtest/supplemental/empty-seatbid.json index 0db426fc478..e295d99ac01 100644 --- a/adapters/infytv/infytvtest/supplemental/empty-seatbid.json +++ b/adapters/infytv/infytvtest/supplemental/empty-seatbid.json @@ -184,7 +184,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["bfb2dd46a5e63a0a84711c20fd8ce9e1"] }, "mockResponse": { "status": 200, diff --git a/adapters/infytv/infytvtest/supplemental/status-204.json b/adapters/infytv/infytvtest/supplemental/status-204.json index f432e241ac1..906de31bc0d 100644 --- a/adapters/infytv/infytvtest/supplemental/status-204.json +++ b/adapters/infytv/infytvtest/supplemental/status-204.json @@ -184,7 +184,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["bfb2dd46a5e63a0a84711c20fd8ce9e1"] }, "mockResponse": { "status": 204, diff --git a/adapters/infytv/infytvtest/supplemental/status-400.json b/adapters/infytv/infytvtest/supplemental/status-400.json index 44d55575128..c4801445bb1 100644 --- a/adapters/infytv/infytvtest/supplemental/status-400.json +++ b/adapters/infytv/infytvtest/supplemental/status-400.json @@ -184,7 +184,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["bfb2dd46a5e63a0a84711c20fd8ce9e1"] }, "mockResponse": { "status": 400, diff --git a/adapters/infytv/infytvtest/supplemental/status-503.json b/adapters/infytv/infytvtest/supplemental/status-503.json index 310ad85e8ce..3fd8a5b535b 100644 --- a/adapters/infytv/infytvtest/supplemental/status-503.json +++ b/adapters/infytv/infytvtest/supplemental/status-503.json @@ -184,7 +184,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["bfb2dd46a5e63a0a84711c20fd8ce9e1"] }, "mockResponse": { "status": 503 diff --git a/adapters/infytv/infytvtest/supplemental/unexpected-status.json b/adapters/infytv/infytvtest/supplemental/unexpected-status.json index bfb4b3f9b0b..123c792869d 100644 --- a/adapters/infytv/infytvtest/supplemental/unexpected-status.json +++ b/adapters/infytv/infytvtest/supplemental/unexpected-status.json @@ -184,7 +184,8 @@ "gdpr": 0 } } - } + }, + "impIDs":["bfb2dd46a5e63a0a84711c20fd8ce9e1"] }, "mockResponse": { "status": 401 diff --git a/adapters/inmobi/inmobi.go b/adapters/inmobi/inmobi.go index 3c20fdc5627..9ceac3ec01a 100644 --- a/adapters/inmobi/inmobi.go +++ b/adapters/inmobi/inmobi.go @@ -53,6 +53,7 @@ func (a *InMobiAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adap Uri: a.endPoint, Body: reqJson, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errs } diff --git a/adapters/inmobi/inmobitest/exemplary/simple-app-banner.json b/adapters/inmobi/inmobitest/exemplary/simple-app-banner.json index 4345ef8ff66..563c8b9103e 100644 --- a/adapters/inmobi/inmobitest/exemplary/simple-app-banner.json +++ b/adapters/inmobi/inmobitest/exemplary/simple-app-banner.json @@ -51,7 +51,8 @@ "id": "imp-id" } ] - } + }, + "impIDs":["imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/inmobi/inmobitest/exemplary/simple-app-native.json b/adapters/inmobi/inmobitest/exemplary/simple-app-native.json index 3a5bfd38412..7b823c13e11 100644 --- a/adapters/inmobi/inmobitest/exemplary/simple-app-native.json +++ b/adapters/inmobi/inmobitest/exemplary/simple-app-native.json @@ -49,7 +49,8 @@ "id": "imp-id" } ] - } + }, + "impIDs":["imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/inmobi/inmobitest/exemplary/simple-app-video.json b/adapters/inmobi/inmobitest/exemplary/simple-app-video.json index 20b3c0cc810..69356fd4de7 100644 --- a/adapters/inmobi/inmobitest/exemplary/simple-app-video.json +++ b/adapters/inmobi/inmobitest/exemplary/simple-app-video.json @@ -53,7 +53,8 @@ "id": "imp-id" } ] - } + }, + "impIDs":["imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/inmobi/inmobitest/exemplary/simple-web-banner.json b/adapters/inmobi/inmobitest/exemplary/simple-web-banner.json index 131249ba8a1..0aac1b1571d 100644 --- a/adapters/inmobi/inmobitest/exemplary/simple-web-banner.json +++ b/adapters/inmobi/inmobitest/exemplary/simple-web-banner.json @@ -49,7 +49,8 @@ "id": "imp-id" } ] - } + }, + "impIDs":["imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/inmobi/inmobitest/exemplary/simple-web-video.json b/adapters/inmobi/inmobitest/exemplary/simple-web-video.json index 3aed605f416..7ea5dd268ef 100644 --- a/adapters/inmobi/inmobitest/exemplary/simple-web-video.json +++ b/adapters/inmobi/inmobitest/exemplary/simple-web-video.json @@ -51,7 +51,8 @@ "id": "imp-id" } ] - } + }, + "impIDs":["imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/inmobi/inmobitest/supplemental/204.json b/adapters/inmobi/inmobitest/supplemental/204.json index e4cf55da2ae..8d1a5e59719 100644 --- a/adapters/inmobi/inmobitest/supplemental/204.json +++ b/adapters/inmobi/inmobitest/supplemental/204.json @@ -52,7 +52,8 @@ "id": "imp-id" } ] - } + }, + "impIDs":["imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/inmobi/inmobitest/supplemental/400.json b/adapters/inmobi/inmobitest/supplemental/400.json index 2df5c85aaca..bad64f0d68f 100644 --- a/adapters/inmobi/inmobitest/supplemental/400.json +++ b/adapters/inmobi/inmobitest/supplemental/400.json @@ -51,7 +51,8 @@ "id": "imp-id" } ] - } + }, + "impIDs":["imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/inmobi/inmobitest/supplemental/banner-format-coersion.json b/adapters/inmobi/inmobitest/supplemental/banner-format-coersion.json index 514f86817c9..211348de3f3 100644 --- a/adapters/inmobi/inmobitest/supplemental/banner-format-coersion.json +++ b/adapters/inmobi/inmobitest/supplemental/banner-format-coersion.json @@ -57,7 +57,8 @@ "id": "imp-id" } ] - } + }, + "impIDs":["imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/interactiveoffers/interactiveoffers.go b/adapters/interactiveoffers/interactiveoffers.go index 210b3f28ca5..53286aa9cc7 100644 --- a/adapters/interactiveoffers/interactiveoffers.go +++ b/adapters/interactiveoffers/interactiveoffers.go @@ -51,6 +51,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Uri: url, Body: requestJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil } diff --git a/adapters/interactiveoffers/interactiveofferstest/exemplary/goodmultiplebidrequest.json b/adapters/interactiveoffers/interactiveofferstest/exemplary/goodmultiplebidrequest.json index f42475471a4..e523c528bab 100644 --- a/adapters/interactiveoffers/interactiveofferstest/exemplary/goodmultiplebidrequest.json +++ b/adapters/interactiveoffers/interactiveofferstest/exemplary/goodmultiplebidrequest.json @@ -68,7 +68,8 @@ } } }] - } + }, + "impIDs":["test-imp-id","test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/interactiveoffers/interactiveofferstest/exemplary/goodsinglebidrequest.json b/adapters/interactiveoffers/interactiveofferstest/exemplary/goodsinglebidrequest.json index ec670d74beb..7488334b1b1 100644 --- a/adapters/interactiveoffers/interactiveofferstest/exemplary/goodsinglebidrequest.json +++ b/adapters/interactiveoffers/interactiveofferstest/exemplary/goodsinglebidrequest.json @@ -42,7 +42,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/interactiveoffers/interactiveofferstest/supplemental/204.json b/adapters/interactiveoffers/interactiveofferstest/supplemental/204.json index 9dc9a1615d1..c9ad76ef270 100644 --- a/adapters/interactiveoffers/interactiveofferstest/supplemental/204.json +++ b/adapters/interactiveoffers/interactiveofferstest/supplemental/204.json @@ -42,7 +42,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/interactiveoffers/interactiveofferstest/supplemental/400.json b/adapters/interactiveoffers/interactiveofferstest/supplemental/400.json index 767c25bc2f4..cb63f6b8073 100644 --- a/adapters/interactiveoffers/interactiveofferstest/supplemental/400.json +++ b/adapters/interactiveoffers/interactiveofferstest/supplemental/400.json @@ -42,7 +42,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/interactiveoffers/interactiveofferstest/supplemental/not200.json b/adapters/interactiveoffers/interactiveofferstest/supplemental/not200.json index 25d8b21cd62..2a5bb941d9e 100644 --- a/adapters/interactiveoffers/interactiveofferstest/supplemental/not200.json +++ b/adapters/interactiveoffers/interactiveofferstest/supplemental/not200.json @@ -42,7 +42,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 202, diff --git a/adapters/interactiveoffers/interactiveofferstest/supplemental/wrongjsonresponse.json b/adapters/interactiveoffers/interactiveofferstest/supplemental/wrongjsonresponse.json index b3f48c1f309..3f087a0d79c 100644 --- a/adapters/interactiveoffers/interactiveofferstest/supplemental/wrongjsonresponse.json +++ b/adapters/interactiveoffers/interactiveofferstest/supplemental/wrongjsonresponse.json @@ -42,7 +42,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/invibes/invibes.go b/adapters/invibes/invibes.go index f66a7359bf9..ecb3ebae4e8 100644 --- a/adapters/invibes/invibes.go +++ b/adapters/invibes/invibes.go @@ -230,6 +230,7 @@ func (a *InvibesAdapter) makeRequest(invibesParams InvibesInternalParams, reqInf Uri: url, Headers: headers, Body: body, + ImpIDs: getImpIDs(invibesParams.BidParams.Properties), }, nil } @@ -336,3 +337,11 @@ func (a *InvibesAdapter) MakeBids( return parsedResponses, errors } + +func getImpIDs(bidParamsProperties map[string]InvibesPlacementProperty) []string { + impIDs := make([]string, 0, len(bidParamsProperties)) + for i := range bidParamsProperties { + impIDs = append(impIDs, bidParamsProperties[i].ImpID) + } + return impIDs +} diff --git a/adapters/invibes/invibestest/amp/amp-ad.json b/adapters/invibes/invibestest/amp/amp-ad.json index 742df1bba65..622d76fe741 100644 --- a/adapters/invibes/invibestest/amp/amp-ad.json +++ b/adapters/invibes/invibestest/amp/amp-ad.json @@ -49,7 +49,8 @@ "InvibBVLog": false, "VideoAdDebug": false, "Width": "1000" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/invibes/invibestest/exemplary/advanced-ad.json b/adapters/invibes/invibestest/exemplary/advanced-ad.json index ebb2a7f9ab7..ab0fb1974ee 100644 --- a/adapters/invibes/invibestest/exemplary/advanced-ad.json +++ b/adapters/invibes/invibestest/exemplary/advanced-ad.json @@ -59,7 +59,8 @@ "InvibBVLog": false, "VideoAdDebug": false, "Width": "1000" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/invibes/invibestest/exemplary/basic-ad.json b/adapters/invibes/invibestest/exemplary/basic-ad.json index b62578f23c9..890087c919a 100644 --- a/adapters/invibes/invibestest/exemplary/basic-ad.json +++ b/adapters/invibes/invibestest/exemplary/basic-ad.json @@ -46,7 +46,8 @@ "InvibBVLog": false, "VideoAdDebug": false, "Width": "" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/invibes/invibestest/exemplary/no-ad.json b/adapters/invibes/invibestest/exemplary/no-ad.json index 56be0abdbd7..386061147b9 100644 --- a/adapters/invibes/invibestest/exemplary/no-ad.json +++ b/adapters/invibes/invibestest/exemplary/no-ad.json @@ -49,7 +49,8 @@ "InvibBVLog": false, "VideoAdDebug": false, "Width": "" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/invibes/invibestest/exemplary/test-ad.json b/adapters/invibes/invibestest/exemplary/test-ad.json index 44160b923c0..5eaeba091e1 100644 --- a/adapters/invibes/invibestest/exemplary/test-ad.json +++ b/adapters/invibes/invibestest/exemplary/test-ad.json @@ -49,7 +49,8 @@ "InvibBVLog": false, "VideoAdDebug": false, "Width": "" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/invibes/invibestest/supplemental/request-error-servererr.json b/adapters/invibes/invibestest/supplemental/request-error-servererr.json index 270d87a6463..7492b9f64d3 100644 --- a/adapters/invibes/invibestest/supplemental/request-error-servererr.json +++ b/adapters/invibes/invibestest/supplemental/request-error-servererr.json @@ -48,7 +48,8 @@ "InvibBVLog": true, "VideoAdDebug": true, "Width": "" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "body": { diff --git a/adapters/invibes/invibestest/supplemental/request-error-statuscode.json b/adapters/invibes/invibestest/supplemental/request-error-statuscode.json index 11a7f94fe55..06512333a79 100644 --- a/adapters/invibes/invibestest/supplemental/request-error-statuscode.json +++ b/adapters/invibes/invibestest/supplemental/request-error-statuscode.json @@ -47,7 +47,8 @@ "InvibBVLog": true, "VideoAdDebug": true, "Width": "" - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500 diff --git a/adapters/iqx/iqx.go b/adapters/iqx/iqx.go index 5838ba379aa..23da6bc8947 100644 --- a/adapters/iqx/iqx.go +++ b/adapters/iqx/iqx.go @@ -91,6 +91,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Body: requestJSON, Uri: endpoint, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), } requests = append(requests, request) diff --git a/adapters/iqx/iqzonextest/exemplary/banner.json b/adapters/iqx/iqzonextest/exemplary/banner.json index 303de661a2d..1c07aab56c6 100644 --- a/adapters/iqx/iqzonextest/exemplary/banner.json +++ b/adapters/iqx/iqzonextest/exemplary/banner.json @@ -103,7 +103,8 @@ "id": "pubid" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, @@ -184,7 +185,8 @@ "id": "pubid" } } - } + }, + "impIDs":["2"] }, "mockResponse": { "status": 200, diff --git a/adapters/iqx/iqzonextest/exemplary/native.json b/adapters/iqx/iqzonextest/exemplary/native.json index f458d70e127..24bf5e03223 100644 --- a/adapters/iqx/iqzonextest/exemplary/native.json +++ b/adapters/iqx/iqzonextest/exemplary/native.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/iqx/iqzonextest/exemplary/video.json b/adapters/iqx/iqzonextest/exemplary/video.json index 21826ac0440..3ba6197e2e5 100644 --- a/adapters/iqx/iqzonextest/exemplary/video.json +++ b/adapters/iqx/iqzonextest/exemplary/video.json @@ -128,7 +128,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/iqx/iqzonextest/supplemental/bad-response.json b/adapters/iqx/iqzonextest/supplemental/bad-response.json index 3d9ff9ffcd3..a5cc1f2aeae 100644 --- a/adapters/iqx/iqzonextest/supplemental/bad-response.json +++ b/adapters/iqx/iqzonextest/supplemental/bad-response.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/iqx/iqzonextest/supplemental/empty-mediatype.json b/adapters/iqx/iqzonextest/supplemental/empty-mediatype.json index 3f471c9c06e..701e1e5aed3 100644 --- a/adapters/iqx/iqzonextest/supplemental/empty-mediatype.json +++ b/adapters/iqx/iqzonextest/supplemental/empty-mediatype.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/iqx/iqzonextest/supplemental/empty-seatbid-0-bid.json b/adapters/iqx/iqzonextest/supplemental/empty-seatbid-0-bid.json index 66b78f4bfbd..5edc10bc1dc 100644 --- a/adapters/iqx/iqzonextest/supplemental/empty-seatbid-0-bid.json +++ b/adapters/iqx/iqzonextest/supplemental/empty-seatbid-0-bid.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/iqx/iqzonextest/supplemental/empty-seatbid.json b/adapters/iqx/iqzonextest/supplemental/empty-seatbid.json index 4df7e16f767..e1319e7aad1 100644 --- a/adapters/iqx/iqzonextest/supplemental/empty-seatbid.json +++ b/adapters/iqx/iqzonextest/supplemental/empty-seatbid.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/iqx/iqzonextest/supplemental/invalid-mediatype.json b/adapters/iqx/iqzonextest/supplemental/invalid-mediatype.json index f2ded0f0cb4..c3767be52e7 100644 --- a/adapters/iqx/iqzonextest/supplemental/invalid-mediatype.json +++ b/adapters/iqx/iqzonextest/supplemental/invalid-mediatype.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/iqx/iqzonextest/supplemental/status-204.json b/adapters/iqx/iqzonextest/supplemental/status-204.json index c850d34b527..d15ce155360 100644 --- a/adapters/iqx/iqzonextest/supplemental/status-204.json +++ b/adapters/iqx/iqzonextest/supplemental/status-204.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 204, diff --git a/adapters/iqx/iqzonextest/supplemental/status-400.json b/adapters/iqx/iqzonextest/supplemental/status-400.json index 7e3d17d3baf..e38d08acfb5 100644 --- a/adapters/iqx/iqzonextest/supplemental/status-400.json +++ b/adapters/iqx/iqzonextest/supplemental/status-400.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 400, diff --git a/adapters/iqx/iqzonextest/supplemental/status-503.json b/adapters/iqx/iqzonextest/supplemental/status-503.json index 1b6dd02af8c..19c816d449c 100644 --- a/adapters/iqx/iqzonextest/supplemental/status-503.json +++ b/adapters/iqx/iqzonextest/supplemental/status-503.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 503 diff --git a/adapters/iqx/iqzonextest/supplemental/unexpected-status.json b/adapters/iqx/iqzonextest/supplemental/unexpected-status.json index edfdf5fdd80..6d64d83dc5e 100644 --- a/adapters/iqx/iqzonextest/supplemental/unexpected-status.json +++ b/adapters/iqx/iqzonextest/supplemental/unexpected-status.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 403, diff --git a/adapters/iqzone/iqzone.go b/adapters/iqzone/iqzone.go index 099d11106b3..db570707ba8 100644 --- a/adapters/iqzone/iqzone.go +++ b/adapters/iqzone/iqzone.go @@ -87,6 +87,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, errs } diff --git a/adapters/iqzone/iqzonetest/exemplary/endpointId.json b/adapters/iqzone/iqzonetest/exemplary/endpointId.json index dc8a0010bee..7ce6aa9ce91 100644 --- a/adapters/iqzone/iqzonetest/exemplary/endpointId.json +++ b/adapters/iqzone/iqzonetest/exemplary/endpointId.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/iqzone/iqzonetest/exemplary/simple-banner.json b/adapters/iqzone/iqzonetest/exemplary/simple-banner.json index 08d27d151cd..fc3c7d06ec0 100644 --- a/adapters/iqzone/iqzonetest/exemplary/simple-banner.json +++ b/adapters/iqzone/iqzonetest/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/iqzone/iqzonetest/exemplary/simple-native.json b/adapters/iqzone/iqzonetest/exemplary/simple-native.json index bf811487c7d..e67198573c2 100644 --- a/adapters/iqzone/iqzonetest/exemplary/simple-native.json +++ b/adapters/iqzone/iqzonetest/exemplary/simple-native.json @@ -55,7 +55,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/iqzone/iqzonetest/exemplary/simple-video.json b/adapters/iqzone/iqzonetest/exemplary/simple-video.json index 5130a6e651b..db9699baa9a 100644 --- a/adapters/iqzone/iqzonetest/exemplary/simple-video.json +++ b/adapters/iqzone/iqzonetest/exemplary/simple-video.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/iqzone/iqzonetest/exemplary/simple-web-banner.json b/adapters/iqzone/iqzonetest/exemplary/simple-web-banner.json index 96ff1b88aa8..d065cac6a13 100644 --- a/adapters/iqzone/iqzonetest/exemplary/simple-web-banner.json +++ b/adapters/iqzone/iqzonetest/exemplary/simple-web-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "Ubuntu" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/iqzone/iqzonetest/supplemental/bad_media_type.json b/adapters/iqzone/iqzonetest/supplemental/bad_media_type.json index a2c886504b0..6a47fe216d7 100644 --- a/adapters/iqzone/iqzonetest/supplemental/bad_media_type.json +++ b/adapters/iqzone/iqzonetest/supplemental/bad_media_type.json @@ -44,7 +44,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/iqzone/iqzonetest/supplemental/bad_response.json b/adapters/iqzone/iqzonetest/supplemental/bad_response.json index 74c603b4a9e..6bae2a728a7 100644 --- a/adapters/iqzone/iqzonetest/supplemental/bad_response.json +++ b/adapters/iqzone/iqzonetest/supplemental/bad_response.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/iqzone/iqzonetest/supplemental/status-204.json b/adapters/iqzone/iqzonetest/supplemental/status-204.json index 8ef22bdaad6..a1e27d93ff9 100644 --- a/adapters/iqzone/iqzonetest/supplemental/status-204.json +++ b/adapters/iqzone/iqzonetest/supplemental/status-204.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/iqzone/iqzonetest/supplemental/status-not-200.json b/adapters/iqzone/iqzonetest/supplemental/status-not-200.json index 2cb4ba98ecc..136b9fdd024 100644 --- a/adapters/iqzone/iqzonetest/supplemental/status-not-200.json +++ b/adapters/iqzone/iqzonetest/supplemental/status-not-200.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/ix/ix.go b/adapters/ix/ix.go index 356562675d1..23f60d4b905 100644 --- a/adapters/ix/ix.go +++ b/adapters/ix/ix.go @@ -184,6 +184,7 @@ func createRequestData(a *IxAdapter, request *openrtb2.BidRequest, headers *http Uri: a.URI, Body: body, Headers: *headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, err } diff --git a/adapters/ix/ixtest/exemplary/additional-consent.json b/adapters/ix/ixtest/exemplary/additional-consent.json index 697c8697061..dcd388dd505 100644 --- a/adapters/ix/ixtest/exemplary/additional-consent.json +++ b/adapters/ix/ixtest/exemplary/additional-consent.json @@ -58,7 +58,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/app-site-id.json b/adapters/ix/ixtest/exemplary/app-site-id.json index 80441cc4382..4ba3ed52da9 100644 --- a/adapters/ix/ixtest/exemplary/app-site-id.json +++ b/adapters/ix/ixtest/exemplary/app-site-id.json @@ -74,7 +74,8 @@ } } } - } + }, + "impIDs":["test-imp-id-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/banner-no-format.json b/adapters/ix/ixtest/exemplary/banner-no-format.json index 84f8499f2aa..8024a98eb58 100644 --- a/adapters/ix/ixtest/exemplary/banner-no-format.json +++ b/adapters/ix/ixtest/exemplary/banner-no-format.json @@ -42,7 +42,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/fledge.json b/adapters/ix/ixtest/exemplary/fledge.json index 919c7076556..876b9785684 100644 --- a/adapters/ix/ixtest/exemplary/fledge.json +++ b/adapters/ix/ixtest/exemplary/fledge.json @@ -71,7 +71,8 @@ "id": "569749" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/multi-format-with-ext-prebid-type.json b/adapters/ix/ixtest/exemplary/multi-format-with-ext-prebid-type.json index 51ea1fd1e72..25986a1b864 100644 --- a/adapters/ix/ixtest/exemplary/multi-format-with-ext-prebid-type.json +++ b/adapters/ix/ixtest/exemplary/multi-format-with-ext-prebid-type.json @@ -76,7 +76,8 @@ } } ] - } + }, + "impIDs":["multi-format-test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/multi-format-with-mtype.json b/adapters/ix/ixtest/exemplary/multi-format-with-mtype.json index ca8e82179f8..ee571c96af0 100644 --- a/adapters/ix/ixtest/exemplary/multi-format-with-mtype.json +++ b/adapters/ix/ixtest/exemplary/multi-format-with-mtype.json @@ -76,7 +76,8 @@ } } ] - } + }, + "impIDs":["multi-format-test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/multi-imp-multi-size-requests.json b/adapters/ix/ixtest/exemplary/multi-imp-multi-size-requests.json index 4decdaf985d..ca122dee6bd 100644 --- a/adapters/ix/ixtest/exemplary/multi-imp-multi-size-requests.json +++ b/adapters/ix/ixtest/exemplary/multi-imp-multi-size-requests.json @@ -145,7 +145,8 @@ "id": "569749" } } - } + }, + "impIDs":["test-imp-id-1","test-imp-id-2","test-imp-id-3"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/multi-imp-requests.json b/adapters/ix/ixtest/exemplary/multi-imp-requests.json index d8d00aeea69..1ab57a89c3f 100644 --- a/adapters/ix/ixtest/exemplary/multi-imp-requests.json +++ b/adapters/ix/ixtest/exemplary/multi-imp-requests.json @@ -198,7 +198,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-1","test-imp-id-2","test-imp-id-3","test-imp-id-4","test-imp-id-5"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/multibid.json b/adapters/ix/ixtest/exemplary/multibid.json index acf248158ad..5ac68675d28 100644 --- a/adapters/ix/ixtest/exemplary/multibid.json +++ b/adapters/ix/ixtest/exemplary/multibid.json @@ -42,7 +42,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/multiple-siteIds.json b/adapters/ix/ixtest/exemplary/multiple-siteIds.json index 7f4227ac4b2..93778438945 100644 --- a/adapters/ix/ixtest/exemplary/multiple-siteIds.json +++ b/adapters/ix/ixtest/exemplary/multiple-siteIds.json @@ -158,7 +158,8 @@ } } } - } + }, + "impIDs":["test-imp-id-1","test-imp-id-2","test-imp-id-3"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/native-eventtrackers-compat-12.json b/adapters/ix/ixtest/exemplary/native-eventtrackers-compat-12.json index 38fb73c4a2b..8d7dcc4c55a 100644 --- a/adapters/ix/ixtest/exemplary/native-eventtrackers-compat-12.json +++ b/adapters/ix/ixtest/exemplary/native-eventtrackers-compat-12.json @@ -36,7 +36,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/no-pub-id.json b/adapters/ix/ixtest/exemplary/no-pub-id.json index 838d3c5ee2e..0f280633ad6 100644 --- a/adapters/ix/ixtest/exemplary/no-pub-id.json +++ b/adapters/ix/ixtest/exemplary/no-pub-id.json @@ -55,7 +55,8 @@ "name": "publisher-name" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/no-pub.json b/adapters/ix/ixtest/exemplary/no-pub.json index bc113468be9..60db036bc8b 100644 --- a/adapters/ix/ixtest/exemplary/no-pub.json +++ b/adapters/ix/ixtest/exemplary/no-pub.json @@ -51,7 +51,8 @@ "id": "569749" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/simple-audio.json b/adapters/ix/ixtest/exemplary/simple-audio.json index 6bfe62a415b..38131a2bb0e 100644 --- a/adapters/ix/ixtest/exemplary/simple-audio.json +++ b/adapters/ix/ixtest/exemplary/simple-audio.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/simple-banner-multi-size.json b/adapters/ix/ixtest/exemplary/simple-banner-multi-size.json index 15dc3ecbb0c..3fef8bf4dad 100644 --- a/adapters/ix/ixtest/exemplary/simple-banner-multi-size.json +++ b/adapters/ix/ixtest/exemplary/simple-banner-multi-size.json @@ -69,7 +69,8 @@ "id": "569749" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/simple-native.json b/adapters/ix/ixtest/exemplary/simple-native.json index 845ba7cd80a..7d6e378a01d 100644 --- a/adapters/ix/ixtest/exemplary/simple-native.json +++ b/adapters/ix/ixtest/exemplary/simple-native.json @@ -36,7 +36,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/simple-video.json b/adapters/ix/ixtest/exemplary/simple-video.json index 051eaa98b7d..5a0a3de5950 100644 --- a/adapters/ix/ixtest/exemplary/simple-video.json +++ b/adapters/ix/ixtest/exemplary/simple-video.json @@ -62,7 +62,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/exemplary/structured-pod.json b/adapters/ix/ixtest/exemplary/structured-pod.json index a5ca9895554..0cc9eafc6f0 100644 --- a/adapters/ix/ixtest/exemplary/structured-pod.json +++ b/adapters/ix/ixtest/exemplary/structured-pod.json @@ -124,7 +124,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-1","test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/supplemental/app-site-id-publisher.json b/adapters/ix/ixtest/supplemental/app-site-id-publisher.json index aec2c124ca9..a5837396f54 100644 --- a/adapters/ix/ixtest/supplemental/app-site-id-publisher.json +++ b/adapters/ix/ixtest/supplemental/app-site-id-publisher.json @@ -78,7 +78,8 @@ } } } - } + }, + "impIDs":["test-imp-id-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/supplemental/bad-fledge.json b/adapters/ix/ixtest/supplemental/bad-fledge.json index 97cc91e4ae6..42459148e0a 100644 --- a/adapters/ix/ixtest/supplemental/bad-fledge.json +++ b/adapters/ix/ixtest/supplemental/bad-fledge.json @@ -71,7 +71,8 @@ "id": "569749" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/supplemental/bad-imp-id.json b/adapters/ix/ixtest/supplemental/bad-imp-id.json index 28d40443461..8812625a98b 100644 --- a/adapters/ix/ixtest/supplemental/bad-imp-id.json +++ b/adapters/ix/ixtest/supplemental/bad-imp-id.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/supplemental/bad-request.json b/adapters/ix/ixtest/supplemental/bad-request.json index f520d7851f4..83df3285e74 100644 --- a/adapters/ix/ixtest/supplemental/bad-request.json +++ b/adapters/ix/ixtest/supplemental/bad-request.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/ix/ixtest/supplemental/bad-response-body.json b/adapters/ix/ixtest/supplemental/bad-response-body.json index 80c2860e3b6..eae3fbdb36b 100644 --- a/adapters/ix/ixtest/supplemental/bad-response-body.json +++ b/adapters/ix/ixtest/supplemental/bad-response-body.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/supplemental/dsa-request.json b/adapters/ix/ixtest/supplemental/dsa-request.json index a51f29278af..969cbbe46d3 100644 --- a/adapters/ix/ixtest/supplemental/dsa-request.json +++ b/adapters/ix/ixtest/supplemental/dsa-request.json @@ -103,7 +103,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/supplemental/fledge-no-bid.json b/adapters/ix/ixtest/supplemental/fledge-no-bid.json index 139dd579ae7..d28b7ee0537 100644 --- a/adapters/ix/ixtest/supplemental/fledge-no-bid.json +++ b/adapters/ix/ixtest/supplemental/fledge-no-bid.json @@ -71,7 +71,8 @@ "id": "569749" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/supplemental/multi-imp-requests-error.json b/adapters/ix/ixtest/supplemental/multi-imp-requests-error.json index 223e863284c..7b43ca7961c 100644 --- a/adapters/ix/ixtest/supplemental/multi-imp-requests-error.json +++ b/adapters/ix/ixtest/supplemental/multi-imp-requests-error.json @@ -117,7 +117,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-2","test-imp-id-3"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/supplemental/native-eventtrackers-empty.json b/adapters/ix/ixtest/supplemental/native-eventtrackers-empty.json index 37f77ff49bd..780184f475f 100644 --- a/adapters/ix/ixtest/supplemental/native-eventtrackers-empty.json +++ b/adapters/ix/ixtest/supplemental/native-eventtrackers-empty.json @@ -36,7 +36,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/supplemental/native-eventtrackers-missing.json b/adapters/ix/ixtest/supplemental/native-eventtrackers-missing.json index d87332665fa..7b43bcc2caa 100644 --- a/adapters/ix/ixtest/supplemental/native-eventtrackers-missing.json +++ b/adapters/ix/ixtest/supplemental/native-eventtrackers-missing.json @@ -36,7 +36,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/supplemental/native-missing.json b/adapters/ix/ixtest/supplemental/native-missing.json index ec2108ce5d1..cf4305602b9 100644 --- a/adapters/ix/ixtest/supplemental/native-missing.json +++ b/adapters/ix/ixtest/supplemental/native-missing.json @@ -36,7 +36,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ix/ixtest/supplemental/no-content.json b/adapters/ix/ixtest/supplemental/no-content.json index fcdf02cbecc..76b4dc3545d 100644 --- a/adapters/ix/ixtest/supplemental/no-content.json +++ b/adapters/ix/ixtest/supplemental/no-content.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/ix/ixtest/supplemental/not-found.json b/adapters/ix/ixtest/supplemental/not-found.json index 980bd942e77..a3773dc6883 100644 --- a/adapters/ix/ixtest/supplemental/not-found.json +++ b/adapters/ix/ixtest/supplemental/not-found.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/ix/ixtest/supplemental/sid.json b/adapters/ix/ixtest/supplemental/sid.json index 3d6862d1235..9b5aaf605ba 100644 --- a/adapters/ix/ixtest/supplemental/sid.json +++ b/adapters/ix/ixtest/supplemental/sid.json @@ -124,7 +124,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-1","test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/jixie/jixie.go b/adapters/jixie/jixie.go index 401fd31cf44..7079e403880 100644 --- a/adapters/jixie/jixie.go +++ b/adapters/jixie/jixie.go @@ -58,6 +58,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: a.endpoint, Body: data, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errs } diff --git a/adapters/jixie/jixietest/exemplary/banner-and-video-site.json b/adapters/jixie/jixietest/exemplary/banner-and-video-site.json index fa671526220..f3d607033d3 100644 --- a/adapters/jixie/jixietest/exemplary/banner-and-video-site.json +++ b/adapters/jixie/jixietest/exemplary/banner-and-video-site.json @@ -156,7 +156,8 @@ "ua": "Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36", "ip": "111.222.333.444" } - } + }, + "impIDs":["some_test_ad_id_1","some_test_ad_id_2","some_test_ad_id_3"] }, "mockResponse": { "status": 200, diff --git a/adapters/jixie/jixietest/supplemental/add-accountid.json b/adapters/jixie/jixietest/supplemental/add-accountid.json index d7fe7d864a6..c390e1bcd23 100644 --- a/adapters/jixie/jixietest/supplemental/add-accountid.json +++ b/adapters/jixie/jixietest/supplemental/add-accountid.json @@ -162,7 +162,8 @@ "ua": "Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36", "ip": "111.222.333.444" } - } + }, + "impIDs":["some_test_ad_id_1","some_test_ad_id_2","some_test_ad_id_3"] }, "mockResponse": { "status": 200, diff --git a/adapters/jixie/jixietest/supplemental/add-extraprop.json b/adapters/jixie/jixietest/supplemental/add-extraprop.json index 85c55a3620e..1d55cef26d6 100644 --- a/adapters/jixie/jixietest/supplemental/add-extraprop.json +++ b/adapters/jixie/jixietest/supplemental/add-extraprop.json @@ -159,7 +159,8 @@ "ua": "Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36", "ip": "111.222.333.444" } - } + }, + "impIDs":["some_test_ad_id_1","some_test_ad_id_2","some_test_ad_id_3"] }, "mockResponse": { "status": 200, diff --git a/adapters/jixie/jixietest/supplemental/add-userid.json b/adapters/jixie/jixietest/supplemental/add-userid.json index 3ed30da4676..eab8023ef5b 100644 --- a/adapters/jixie/jixietest/supplemental/add-userid.json +++ b/adapters/jixie/jixietest/supplemental/add-userid.json @@ -164,7 +164,8 @@ "ua": "Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36", "ip": "111.222.333.444" } - } + }, + "impIDs":["some_test_ad_id_1","some_test_ad_id_2","some_test_ad_id_3"] }, "mockResponse": { "status": 200, diff --git a/adapters/kargo/kargo.go b/adapters/kargo/kargo.go index df31e1b64fd..e6a06dea179 100644 --- a/adapters/kargo/kargo.go +++ b/adapters/kargo/kargo.go @@ -39,6 +39,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: a.URI, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/kargo/kargotest/exemplary/banner.json b/adapters/kargo/kargotest/exemplary/banner.json index db14ee8b792..446ebeca4ca 100644 --- a/adapters/kargo/kargotest/exemplary/banner.json +++ b/adapters/kargo/kargotest/exemplary/banner.json @@ -148,7 +148,8 @@ "tmax": 200, "ext": { } - } + }, + "impIDs":["8b1bdcca"] }, "mockResponse": { "status": 200, diff --git a/adapters/kargo/kargotest/exemplary/native.json b/adapters/kargo/kargotest/exemplary/native.json index d0f03d6104f..b94a4f34054 100644 --- a/adapters/kargo/kargotest/exemplary/native.json +++ b/adapters/kargo/kargotest/exemplary/native.json @@ -159,7 +159,8 @@ "tmax": 200, "ext": { } - } + }, + "impIDs":["8b1bdcca"] }, "mockResponse": { "status": 200, diff --git a/adapters/kargo/kargotest/exemplary/video.json b/adapters/kargo/kargotest/exemplary/video.json index 92a2124976f..6352c824427 100644 --- a/adapters/kargo/kargotest/exemplary/video.json +++ b/adapters/kargo/kargotest/exemplary/video.json @@ -163,7 +163,8 @@ "tmax": 200, "ext": { } - } + }, + "impIDs":["8b1bdcca"] }, "mockResponse": { "status": 200, diff --git a/adapters/kargo/kargotest/supplemental/status-bad-request.json b/adapters/kargo/kargotest/supplemental/status-bad-request.json index 3cb98431def..ef548f35406 100644 --- a/adapters/kargo/kargotest/supplemental/status-bad-request.json +++ b/adapters/kargo/kargotest/supplemental/status-bad-request.json @@ -3,6 +3,9 @@ "id": "5f4d1e01", "at": 1, "imp": [ + { + "id":"test-imp-id" + } ], "tmax": 200 }, @@ -14,9 +17,13 @@ "id": "5f4d1e01", "at": 1, "imp": [ + { + "id":"test-imp-id" + } ], "tmax": 200 - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/kargo/kargotest/supplemental/status-no-content.json b/adapters/kargo/kargotest/supplemental/status-no-content.json index 8c6e0544589..731c6c26aac 100644 --- a/adapters/kargo/kargotest/supplemental/status-no-content.json +++ b/adapters/kargo/kargotest/supplemental/status-no-content.json @@ -118,7 +118,8 @@ }, "tmax": 200, "ext": {} - } + }, + "impIDs":["8b1bdcca"] }, "mockResponse": { "status": 204, diff --git a/adapters/kayzen/kayzen.go b/adapters/kayzen/kayzen.go index 2b98def0ec2..f3b8153f97f 100644 --- a/adapters/kayzen/kayzen.go +++ b/adapters/kayzen/kayzen.go @@ -70,6 +70,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Body: requestJSON, Uri: url, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, nil } diff --git a/adapters/kayzen/kayzentest/exemplary/banner-app.json b/adapters/kayzen/kayzentest/exemplary/banner-app.json index 157b79165cc..1ff1d1f4d5c 100644 --- a/adapters/kayzen/kayzentest/exemplary/banner-app.json +++ b/adapters/kayzen/kayzentest/exemplary/banner-app.json @@ -84,7 +84,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/kayzen/kayzentest/exemplary/banner-web.json b/adapters/kayzen/kayzentest/exemplary/banner-web.json index 0d25d4fd981..4d545ba4795 100644 --- a/adapters/kayzen/kayzentest/exemplary/banner-web.json +++ b/adapters/kayzen/kayzentest/exemplary/banner-web.json @@ -72,7 +72,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/kayzen/kayzentest/exemplary/native-app.json b/adapters/kayzen/kayzentest/exemplary/native-app.json index ef43dab798c..ee6ceaef256 100644 --- a/adapters/kayzen/kayzentest/exemplary/native-app.json +++ b/adapters/kayzen/kayzentest/exemplary/native-app.json @@ -84,7 +84,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/kayzen/kayzentest/exemplary/native-web.json b/adapters/kayzen/kayzentest/exemplary/native-web.json index 34050f989ad..7f4fd3da307 100644 --- a/adapters/kayzen/kayzentest/exemplary/native-web.json +++ b/adapters/kayzen/kayzentest/exemplary/native-web.json @@ -72,7 +72,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/kayzen/kayzentest/exemplary/video-app.json b/adapters/kayzen/kayzentest/exemplary/video-app.json index f8744b638f2..df19bbc9491 100644 --- a/adapters/kayzen/kayzentest/exemplary/video-app.json +++ b/adapters/kayzen/kayzentest/exemplary/video-app.json @@ -94,7 +94,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/kayzen/kayzentest/exemplary/video-web.json b/adapters/kayzen/kayzentest/exemplary/video-web.json index 7a507ca3cd9..3ebc094f6e9 100644 --- a/adapters/kayzen/kayzentest/exemplary/video-web.json +++ b/adapters/kayzen/kayzentest/exemplary/video-web.json @@ -82,7 +82,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/kayzen/kayzentest/supplemental/invalid-response.json b/adapters/kayzen/kayzentest/supplemental/invalid-response.json index 4963ed677f9..831433b2754 100644 --- a/adapters/kayzen/kayzentest/supplemental/invalid-response.json +++ b/adapters/kayzen/kayzentest/supplemental/invalid-response.json @@ -85,7 +85,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/kayzen/kayzentest/supplemental/status-code-bad-request.json b/adapters/kayzen/kayzentest/supplemental/status-code-bad-request.json index 8b9e4d06fbf..e4f98976d90 100644 --- a/adapters/kayzen/kayzentest/supplemental/status-code-bad-request.json +++ b/adapters/kayzen/kayzentest/supplemental/status-code-bad-request.json @@ -75,7 +75,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/kayzen/kayzentest/supplemental/status-code-no-content.json b/adapters/kayzen/kayzentest/supplemental/status-code-no-content.json index 69e64c37d52..46276a4ee76 100644 --- a/adapters/kayzen/kayzentest/supplemental/status-code-no-content.json +++ b/adapters/kayzen/kayzentest/supplemental/status-code-no-content.json @@ -61,7 +61,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/kayzen/kayzentest/supplemental/status-code-other-error.json b/adapters/kayzen/kayzentest/supplemental/status-code-other-error.json index b487b91dfa2..d16db267dee 100644 --- a/adapters/kayzen/kayzentest/supplemental/status-code-other-error.json +++ b/adapters/kayzen/kayzentest/supplemental/status-code-other-error.json @@ -61,7 +61,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 306 diff --git a/adapters/kidoz/kidoz.go b/adapters/kidoz/kidoz.go index 2eb5de1e319..b0406b29e00 100644 --- a/adapters/kidoz/kidoz.go +++ b/adapters/kidoz/kidoz.go @@ -91,6 +91,7 @@ func (a *KidozAdapter) MakeRequests(request *openrtb2.BidRequest, _ *adapters.Ex Uri: a.endpoint, Body: body, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }) } diff --git a/adapters/kidoz/kidoztest/exemplary/simple-banner.json b/adapters/kidoz/kidoztest/exemplary/simple-banner.json index bd4c058cdb6..2f4195bdb3a 100644 --- a/adapters/kidoz/kidoztest/exemplary/simple-banner.json +++ b/adapters/kidoz/kidoztest/exemplary/simple-banner.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/kidoz/kidoztest/exemplary/simple-video.json b/adapters/kidoz/kidoztest/exemplary/simple-video.json index 7ffb5406625..c7be5545420 100644 --- a/adapters/kidoz/kidoztest/exemplary/simple-video.json +++ b/adapters/kidoz/kidoztest/exemplary/simple-video.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/kidoz/kidoztest/supplemental/bad-bid.json b/adapters/kidoz/kidoztest/supplemental/bad-bid.json index 32b8ec2cf06..a4891b48be5 100644 --- a/adapters/kidoz/kidoztest/supplemental/bad-bid.json +++ b/adapters/kidoz/kidoztest/supplemental/bad-bid.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-impression-id-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/kidoz/kidoztest/supplemental/status-204.json b/adapters/kidoz/kidoztest/supplemental/status-204.json index add65e7d666..bc9ded7aec7 100644 --- a/adapters/kidoz/kidoztest/supplemental/status-204.json +++ b/adapters/kidoz/kidoztest/supplemental/status-204.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { "status": 204, diff --git a/adapters/kidoz/kidoztest/supplemental/status-400.json b/adapters/kidoz/kidoztest/supplemental/status-400.json index ca42aefdca0..9ef2cef22c3 100644 --- a/adapters/kidoz/kidoztest/supplemental/status-400.json +++ b/adapters/kidoz/kidoztest/supplemental/status-400.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { "status": 400, diff --git a/adapters/kidoz/kidoztest/supplemental/status-403.json b/adapters/kidoz/kidoztest/supplemental/status-403.json index 3b6d268ecfe..d45ebe27a2f 100644 --- a/adapters/kidoz/kidoztest/supplemental/status-403.json +++ b/adapters/kidoz/kidoztest/supplemental/status-403.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { "status": 403, diff --git a/adapters/kidoz/kidoztest/supplemental/status-408.json b/adapters/kidoz/kidoztest/supplemental/status-408.json index 8230967f3a8..8c8bd11c9b8 100644 --- a/adapters/kidoz/kidoztest/supplemental/status-408.json +++ b/adapters/kidoz/kidoztest/supplemental/status-408.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { "status": 408, diff --git a/adapters/kidoz/kidoztest/supplemental/status-500.json b/adapters/kidoz/kidoztest/supplemental/status-500.json index f734e6913a7..6f284ea0f0d 100644 --- a/adapters/kidoz/kidoztest/supplemental/status-500.json +++ b/adapters/kidoz/kidoztest/supplemental/status-500.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { "status": 500, diff --git a/adapters/kidoz/kidoztest/supplemental/status-502.json b/adapters/kidoz/kidoztest/supplemental/status-502.json index b99f52a2e42..66117f53171 100644 --- a/adapters/kidoz/kidoztest/supplemental/status-502.json +++ b/adapters/kidoz/kidoztest/supplemental/status-502.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { "status": 502, diff --git a/adapters/kidoz/kidoztest/supplemental/status-503.json b/adapters/kidoz/kidoztest/supplemental/status-503.json index f823372915c..3f001faee7a 100644 --- a/adapters/kidoz/kidoztest/supplemental/status-503.json +++ b/adapters/kidoz/kidoztest/supplemental/status-503.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { "status": 503, diff --git a/adapters/kidoz/kidoztest/supplemental/status-504.json b/adapters/kidoz/kidoztest/supplemental/status-504.json index b996611eb97..428f7190c1a 100644 --- a/adapters/kidoz/kidoztest/supplemental/status-504.json +++ b/adapters/kidoz/kidoztest/supplemental/status-504.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-impression-id-1"] }, "mockResponse": { "status": 504, diff --git a/adapters/kiviads/kiviads.go b/adapters/kiviads/kiviads.go index 1c55f929bb3..a102234e860 100644 --- a/adapters/kiviads/kiviads.go +++ b/adapters/kiviads/kiviads.go @@ -94,6 +94,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, err } diff --git a/adapters/kiviads/kiviadstest/exemplary/endpointId.json b/adapters/kiviads/kiviadstest/exemplary/endpointId.json index 85e668963fc..da215566b58 100644 --- a/adapters/kiviads/kiviadstest/exemplary/endpointId.json +++ b/adapters/kiviads/kiviadstest/exemplary/endpointId.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/kiviads/kiviadstest/exemplary/simple-banner.json b/adapters/kiviads/kiviadstest/exemplary/simple-banner.json index b80f0c5fbef..0cfcdbb25bc 100644 --- a/adapters/kiviads/kiviadstest/exemplary/simple-banner.json +++ b/adapters/kiviads/kiviadstest/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/kiviads/kiviadstest/exemplary/simple-native.json b/adapters/kiviads/kiviadstest/exemplary/simple-native.json index 043bfeeb38f..e4ec2ad5bed 100644 --- a/adapters/kiviads/kiviadstest/exemplary/simple-native.json +++ b/adapters/kiviads/kiviadstest/exemplary/simple-native.json @@ -55,7 +55,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/kiviads/kiviadstest/exemplary/simple-video.json b/adapters/kiviads/kiviadstest/exemplary/simple-video.json index c14df358567..2e3d848d502 100644 --- a/adapters/kiviads/kiviadstest/exemplary/simple-video.json +++ b/adapters/kiviads/kiviadstest/exemplary/simple-video.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/kiviads/kiviadstest/exemplary/simple-web-banner.json b/adapters/kiviads/kiviadstest/exemplary/simple-web-banner.json index 7396dd990b2..97d5d97ae97 100644 --- a/adapters/kiviads/kiviadstest/exemplary/simple-web-banner.json +++ b/adapters/kiviads/kiviadstest/exemplary/simple-web-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "Ubuntu" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/kiviads/kiviadstest/supplemental/bad_media_type.json b/adapters/kiviads/kiviadstest/supplemental/bad_media_type.json index 9a204eab0b8..ec5117a587b 100644 --- a/adapters/kiviads/kiviadstest/supplemental/bad_media_type.json +++ b/adapters/kiviads/kiviadstest/supplemental/bad_media_type.json @@ -44,7 +44,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/kiviads/kiviadstest/supplemental/bad_response.json b/adapters/kiviads/kiviadstest/supplemental/bad_response.json index e9671824875..d1dbf00134e 100644 --- a/adapters/kiviads/kiviadstest/supplemental/bad_response.json +++ b/adapters/kiviads/kiviadstest/supplemental/bad_response.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/kiviads/kiviadstest/supplemental/status-204.json b/adapters/kiviads/kiviadstest/supplemental/status-204.json index 71229f88245..d1b4a743102 100644 --- a/adapters/kiviads/kiviadstest/supplemental/status-204.json +++ b/adapters/kiviads/kiviadstest/supplemental/status-204.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/kiviads/kiviadstest/supplemental/status-not-200.json b/adapters/kiviads/kiviadstest/supplemental/status-not-200.json index 16d2db48685..ccaba0f59c1 100644 --- a/adapters/kiviads/kiviadstest/supplemental/status-not-200.json +++ b/adapters/kiviads/kiviadstest/supplemental/status-not-200.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/krushmedia/krushmedia.go b/adapters/krushmedia/krushmedia.go index e7d72f58b3e..aa87033052f 100644 --- a/adapters/krushmedia/krushmedia.go +++ b/adapters/krushmedia/krushmedia.go @@ -104,6 +104,7 @@ func (a *KrushmediaAdapter) MakeRequests( Body: reqJSON, Uri: url, Headers: *getHeaders(&request), + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, nil } diff --git a/adapters/krushmedia/krushmediatest/exemplary/banner-app.json b/adapters/krushmedia/krushmediatest/exemplary/banner-app.json index 75defaa0712..43039c0ef4e 100644 --- a/adapters/krushmedia/krushmediatest/exemplary/banner-app.json +++ b/adapters/krushmedia/krushmediatest/exemplary/banner-app.json @@ -98,7 +98,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/krushmedia/krushmediatest/exemplary/banner-web.json b/adapters/krushmedia/krushmediatest/exemplary/banner-web.json index a39bf209f42..111e2dfc10a 100644 --- a/adapters/krushmedia/krushmediatest/exemplary/banner-web.json +++ b/adapters/krushmedia/krushmediatest/exemplary/banner-web.json @@ -87,7 +87,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/krushmedia/krushmediatest/exemplary/native-app.json b/adapters/krushmedia/krushmediatest/exemplary/native-app.json index bd27d2dc69e..00199fa3d87 100644 --- a/adapters/krushmedia/krushmediatest/exemplary/native-app.json +++ b/adapters/krushmedia/krushmediatest/exemplary/native-app.json @@ -99,7 +99,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/krushmedia/krushmediatest/exemplary/native-web.json b/adapters/krushmedia/krushmediatest/exemplary/native-web.json index d467fe337f9..18aa1a957df 100644 --- a/adapters/krushmedia/krushmediatest/exemplary/native-web.json +++ b/adapters/krushmedia/krushmediatest/exemplary/native-web.json @@ -88,7 +88,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/krushmedia/krushmediatest/exemplary/video-app.json b/adapters/krushmedia/krushmediatest/exemplary/video-app.json index 4901df91d23..f1de012646c 100644 --- a/adapters/krushmedia/krushmediatest/exemplary/video-app.json +++ b/adapters/krushmedia/krushmediatest/exemplary/video-app.json @@ -109,7 +109,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/krushmedia/krushmediatest/exemplary/video-web.json b/adapters/krushmedia/krushmediatest/exemplary/video-web.json index 1e2d8069407..ddb5defe21e 100644 --- a/adapters/krushmedia/krushmediatest/exemplary/video-web.json +++ b/adapters/krushmedia/krushmediatest/exemplary/video-web.json @@ -96,7 +96,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/krushmedia/krushmediatest/supplemental/invalid-response.json b/adapters/krushmedia/krushmediatest/supplemental/invalid-response.json index b60e5317243..6a0d5c850fe 100644 --- a/adapters/krushmedia/krushmediatest/supplemental/invalid-response.json +++ b/adapters/krushmedia/krushmediatest/supplemental/invalid-response.json @@ -100,7 +100,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/krushmedia/krushmediatest/supplemental/status-code-bad-request.json b/adapters/krushmedia/krushmediatest/supplemental/status-code-bad-request.json index d8a091b036b..b93b7a93f6e 100644 --- a/adapters/krushmedia/krushmediatest/supplemental/status-code-bad-request.json +++ b/adapters/krushmedia/krushmediatest/supplemental/status-code-bad-request.json @@ -75,7 +75,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/krushmedia/krushmediatest/supplemental/status-code-no-content.json b/adapters/krushmedia/krushmediatest/supplemental/status-code-no-content.json index 7539f84a3b1..f02cc928568 100644 --- a/adapters/krushmedia/krushmediatest/supplemental/status-code-no-content.json +++ b/adapters/krushmedia/krushmediatest/supplemental/status-code-no-content.json @@ -62,7 +62,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/krushmedia/krushmediatest/supplemental/status-code-other-error.json b/adapters/krushmedia/krushmediatest/supplemental/status-code-other-error.json index b7a24f35e1c..cfc8016d34c 100644 --- a/adapters/krushmedia/krushmediatest/supplemental/status-code-other-error.json +++ b/adapters/krushmedia/krushmediatest/supplemental/status-code-other-error.json @@ -62,7 +62,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 306 diff --git a/adapters/krushmedia/krushmediatest/supplemental/status-code-service-unavailable.json b/adapters/krushmedia/krushmediatest/supplemental/status-code-service-unavailable.json index 99a813b27b1..1d5b824a95a 100644 --- a/adapters/krushmedia/krushmediatest/supplemental/status-code-service-unavailable.json +++ b/adapters/krushmedia/krushmediatest/supplemental/status-code-service-unavailable.json @@ -62,7 +62,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/lemmadigital/lemmadigital.go b/adapters/lemmadigital/lemmadigital.go index ec052a1369b..7ff32ba4098 100644 --- a/adapters/lemmadigital/lemmadigital.go +++ b/adapters/lemmadigital/lemmadigital.go @@ -65,6 +65,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: endpoint, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/lemmadigital/lemmadigitaltest/exemplary/banner.json b/adapters/lemmadigital/lemmadigitaltest/exemplary/banner.json index a478380e394..69bdb266b96 100644 --- a/adapters/lemmadigital/lemmadigitaltest/exemplary/banner.json +++ b/adapters/lemmadigital/lemmadigitaltest/exemplary/banner.json @@ -62,7 +62,8 @@ "id": "1" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/lemmadigital/lemmadigitaltest/exemplary/multi-imp.json b/adapters/lemmadigital/lemmadigitaltest/exemplary/multi-imp.json index e051b54ff95..d71beda8d6d 100644 --- a/adapters/lemmadigital/lemmadigitaltest/exemplary/multi-imp.json +++ b/adapters/lemmadigital/lemmadigitaltest/exemplary/multi-imp.json @@ -96,7 +96,8 @@ "id": "1" } } - } + }, + "impIDs":["test-imp-id","test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/lemmadigital/lemmadigitaltest/exemplary/video.json b/adapters/lemmadigital/lemmadigitaltest/exemplary/video.json index 63bab75b674..b6d0e33e25b 100644 --- a/adapters/lemmadigital/lemmadigitaltest/exemplary/video.json +++ b/adapters/lemmadigital/lemmadigitaltest/exemplary/video.json @@ -48,7 +48,8 @@ "id": "1" } } - } + }, + "impIDs":["test-imp-id-video"] }, "mockResponse": { "status": 200, diff --git a/adapters/lemmadigital/lemmadigitaltest/supplemental/empty-seatbid-array.json b/adapters/lemmadigital/lemmadigitaltest/supplemental/empty-seatbid-array.json index c88e0fa7861..e24c937fbd7 100644 --- a/adapters/lemmadigital/lemmadigitaltest/supplemental/empty-seatbid-array.json +++ b/adapters/lemmadigital/lemmadigitaltest/supplemental/empty-seatbid-array.json @@ -83,7 +83,8 @@ } }], "tmax": 1000 - } + }, + "impIDs":["test-imp-id-video"] }, "mockResponse": { "status": 200, diff --git a/adapters/lemmadigital/lemmadigitaltest/supplemental/invalid-response.json b/adapters/lemmadigital/lemmadigitaltest/supplemental/invalid-response.json index 036d35fb345..dcf23479bbf 100644 --- a/adapters/lemmadigital/lemmadigitaltest/supplemental/invalid-response.json +++ b/adapters/lemmadigital/lemmadigitaltest/supplemental/invalid-response.json @@ -48,7 +48,8 @@ "id": "1" } } - } + }, + "impIDs":["test-imp-id-video"] }, "mockResponse": { "status": 200, diff --git a/adapters/lemmadigital/lemmadigitaltest/supplemental/status-code-bad-request.json b/adapters/lemmadigital/lemmadigitaltest/supplemental/status-code-bad-request.json index 37ebea4b7be..bee034cebfa 100644 --- a/adapters/lemmadigital/lemmadigitaltest/supplemental/status-code-bad-request.json +++ b/adapters/lemmadigital/lemmadigitaltest/supplemental/status-code-bad-request.json @@ -48,7 +48,8 @@ "id": "1" } } - } + }, + "impIDs":["test-imp-id-video"] }, "mockResponse": { "status": 400 diff --git a/adapters/lemmadigital/lemmadigitaltest/supplemental/status-code-no-content.json b/adapters/lemmadigital/lemmadigitaltest/supplemental/status-code-no-content.json index 7c4813df43a..d7d62c091fa 100644 --- a/adapters/lemmadigital/lemmadigitaltest/supplemental/status-code-no-content.json +++ b/adapters/lemmadigital/lemmadigitaltest/supplemental/status-code-no-content.json @@ -48,7 +48,8 @@ "id": "1" } } - } + }, + "impIDs":["test-imp-id-video"] }, "mockResponse": { "status": 204 diff --git a/adapters/lemmadigital/lemmadigitaltest/supplemental/status-code-other-error.json b/adapters/lemmadigital/lemmadigitaltest/supplemental/status-code-other-error.json index 047dc4efd83..65dea99a36c 100644 --- a/adapters/lemmadigital/lemmadigitaltest/supplemental/status-code-other-error.json +++ b/adapters/lemmadigital/lemmadigitaltest/supplemental/status-code-other-error.json @@ -48,7 +48,8 @@ "id": "1" } } - } + }, + "impIDs":["test-imp-id-video"] }, "mockResponse": { "status": 503 diff --git a/adapters/liftoff/liftoff.go b/adapters/liftoff/liftoff.go index 1a8ee5c6bd2..d1c39d54081 100644 --- a/adapters/liftoff/liftoff.go +++ b/adapters/liftoff/liftoff.go @@ -107,6 +107,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte "Accept": []string{"application/json"}, "X-OpenRTB-Version": []string{"2.5"}, }, + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), } requests = append(requests, requestData) diff --git a/adapters/liftoff/liftofftest/exemplary/app_video_instl.json b/adapters/liftoff/liftofftest/exemplary/app_video_instl.json index d13b2cd76ae..4f714c72880 100644 --- a/adapters/liftoff/liftofftest/exemplary/app_video_instl.json +++ b/adapters/liftoff/liftofftest/exemplary/app_video_instl.json @@ -101,7 +101,8 @@ "debug": true } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/liftoff/liftofftest/exemplary/app_video_rewarded.json b/adapters/liftoff/liftofftest/exemplary/app_video_rewarded.json index 1cb9fdf7915..5dcc3460254 100644 --- a/adapters/liftoff/liftofftest/exemplary/app_video_rewarded.json +++ b/adapters/liftoff/liftofftest/exemplary/app_video_rewarded.json @@ -94,7 +94,8 @@ "user": { "buyeruid": "123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/liftoff/liftofftest/exemplary/site_video_instl.json b/adapters/liftoff/liftofftest/exemplary/site_video_instl.json index ecb599cd785..0392fda94a3 100644 --- a/adapters/liftoff/liftofftest/exemplary/site_video_instl.json +++ b/adapters/liftoff/liftofftest/exemplary/site_video_instl.json @@ -100,7 +100,8 @@ "debug": true } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/liftoff/liftofftest/exemplary/site_video_rewarded.json b/adapters/liftoff/liftofftest/exemplary/site_video_rewarded.json index 80754920b6e..73f3aea4676 100644 --- a/adapters/liftoff/liftofftest/exemplary/site_video_rewarded.json +++ b/adapters/liftoff/liftofftest/exemplary/site_video_rewarded.json @@ -93,7 +93,8 @@ "user": { "buyeruid": "123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/liftoff/liftofftest/supplemental/appid_placementid_check.json b/adapters/liftoff/liftofftest/supplemental/appid_placementid_check.json index 1cb9fdf7915..5dcc3460254 100644 --- a/adapters/liftoff/liftofftest/supplemental/appid_placementid_check.json +++ b/adapters/liftoff/liftofftest/supplemental/appid_placementid_check.json @@ -94,7 +94,8 @@ "user": { "buyeruid": "123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/liftoff/liftofftest/supplemental/liftoff_ext_check.json b/adapters/liftoff/liftofftest/supplemental/liftoff_ext_check.json index c8541d9d52d..9a9cdebfd59 100644 --- a/adapters/liftoff/liftofftest/supplemental/liftoff_ext_check.json +++ b/adapters/liftoff/liftofftest/supplemental/liftoff_ext_check.json @@ -89,7 +89,8 @@ "user": { "buyeruid": "123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/liftoff/liftofftest/supplemental/missing_appid_or_placementid.json b/adapters/liftoff/liftofftest/supplemental/missing_appid_or_placementid.json index 6095d9c5168..e22fe62da35 100644 --- a/adapters/liftoff/liftofftest/supplemental/missing_appid_or_placementid.json +++ b/adapters/liftoff/liftofftest/supplemental/missing_appid_or_placementid.json @@ -91,7 +91,8 @@ "user": { "buyeruid": "123" } - } + }, + "impIDs":["test-imp-id"] } } ], diff --git a/adapters/liftoff/liftofftest/supplemental/response_code_204.json b/adapters/liftoff/liftofftest/supplemental/response_code_204.json index 4abefffc5c9..a39770abe1f 100644 --- a/adapters/liftoff/liftofftest/supplemental/response_code_204.json +++ b/adapters/liftoff/liftofftest/supplemental/response_code_204.json @@ -89,7 +89,8 @@ "user": { "buyeruid": "123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/liftoff/liftofftest/supplemental/response_code_400.json b/adapters/liftoff/liftofftest/supplemental/response_code_400.json index de5b0db421e..1a619447dd4 100644 --- a/adapters/liftoff/liftofftest/supplemental/response_code_400.json +++ b/adapters/liftoff/liftofftest/supplemental/response_code_400.json @@ -89,7 +89,8 @@ "user": { "buyeruid": "123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/liftoff/liftofftest/supplemental/response_code_non_200.json b/adapters/liftoff/liftofftest/supplemental/response_code_non_200.json index 17e1730ac2c..1c79a057329 100644 --- a/adapters/liftoff/liftofftest/supplemental/response_code_non_200.json +++ b/adapters/liftoff/liftofftest/supplemental/response_code_non_200.json @@ -89,7 +89,8 @@ "user": { "buyeruid": "123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 403, diff --git a/adapters/limelightDigital/LimelightDigitaltest/exemplary/audio.json b/adapters/limelightDigital/LimelightDigitaltest/exemplary/audio.json index e07b3bfdcdf..e0bf8e25887 100644 --- a/adapters/limelightDigital/LimelightDigitaltest/exemplary/audio.json +++ b/adapters/limelightDigital/LimelightDigitaltest/exemplary/audio.json @@ -30,7 +30,8 @@ } } ] - } + }, + "impIDs":["test-audio-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/limelightDigital/LimelightDigitaltest/exemplary/banner.json b/adapters/limelightDigital/LimelightDigitaltest/exemplary/banner.json index cbc72a099ea..26433b6f61d 100644 --- a/adapters/limelightDigital/LimelightDigitaltest/exemplary/banner.json +++ b/adapters/limelightDigital/LimelightDigitaltest/exemplary/banner.json @@ -40,7 +40,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/limelightDigital/LimelightDigitaltest/exemplary/multibid.json b/adapters/limelightDigital/LimelightDigitaltest/exemplary/multibid.json index cecd5910f1b..453552e8b00 100644 --- a/adapters/limelightDigital/LimelightDigitaltest/exemplary/multibid.json +++ b/adapters/limelightDigital/LimelightDigitaltest/exemplary/multibid.json @@ -54,7 +54,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 200, @@ -96,7 +97,8 @@ } } ] - } + }, + "impIDs":["test-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/limelightDigital/LimelightDigitaltest/exemplary/native.json b/adapters/limelightDigital/LimelightDigitaltest/exemplary/native.json index 3b2051f62c2..8e00e9f41e8 100644 --- a/adapters/limelightDigital/LimelightDigitaltest/exemplary/native.json +++ b/adapters/limelightDigital/LimelightDigitaltest/exemplary/native.json @@ -30,7 +30,8 @@ } } ] - } + }, + "impIDs":["test-native-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/limelightDigital/LimelightDigitaltest/exemplary/video.json b/adapters/limelightDigital/LimelightDigitaltest/exemplary/video.json index 395529d4ba9..1ebe73d7cd9 100644 --- a/adapters/limelightDigital/LimelightDigitaltest/exemplary/video.json +++ b/adapters/limelightDigital/LimelightDigitaltest/exemplary/video.json @@ -34,7 +34,8 @@ } } ] - } + }, + "impIDs":["test-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/limelightDigital/LimelightDigitaltest/supplemental/204.json b/adapters/limelightDigital/LimelightDigitaltest/supplemental/204.json index e9decc9328d..90b5ba95b98 100644 --- a/adapters/limelightDigital/LimelightDigitaltest/supplemental/204.json +++ b/adapters/limelightDigital/LimelightDigitaltest/supplemental/204.json @@ -40,7 +40,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/limelightDigital/LimelightDigitaltest/supplemental/503.json b/adapters/limelightDigital/LimelightDigitaltest/supplemental/503.json index 2ae76c5e394..df2fef4977d 100644 --- a/adapters/limelightDigital/LimelightDigitaltest/supplemental/503.json +++ b/adapters/limelightDigital/LimelightDigitaltest/supplemental/503.json @@ -40,7 +40,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/limelightDigital/LimelightDigitaltest/supplemental/additional_fields.json b/adapters/limelightDigital/LimelightDigitaltest/supplemental/additional_fields.json index 9aa50e88856..6fc5258016a 100644 --- a/adapters/limelightDigital/LimelightDigitaltest/supplemental/additional_fields.json +++ b/adapters/limelightDigital/LimelightDigitaltest/supplemental/additional_fields.json @@ -42,7 +42,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/limelightDigital/LimelightDigitaltest/supplemental/currency_converter.json b/adapters/limelightDigital/LimelightDigitaltest/supplemental/currency_converter.json index 0e65ee27a45..45dedcb5560 100644 --- a/adapters/limelightDigital/LimelightDigitaltest/supplemental/currency_converter.json +++ b/adapters/limelightDigital/LimelightDigitaltest/supplemental/currency_converter.json @@ -56,7 +56,8 @@ "bidfloorcur": "USD" } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/limelightDigital/LimelightDigitaltest/supplemental/empty_object_response.json b/adapters/limelightDigital/LimelightDigitaltest/supplemental/empty_object_response.json index 2703b9a8fae..24b9dbe3137 100644 --- a/adapters/limelightDigital/LimelightDigitaltest/supplemental/empty_object_response.json +++ b/adapters/limelightDigital/LimelightDigitaltest/supplemental/empty_object_response.json @@ -40,7 +40,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/limelightDigital/LimelightDigitaltest/supplemental/empty_reponse.json b/adapters/limelightDigital/LimelightDigitaltest/supplemental/empty_reponse.json index 607fa6240a5..107cbdd17ff 100644 --- a/adapters/limelightDigital/LimelightDigitaltest/supplemental/empty_reponse.json +++ b/adapters/limelightDigital/LimelightDigitaltest/supplemental/empty_reponse.json @@ -40,7 +40,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 200 diff --git a/adapters/limelightDigital/LimelightDigitaltest/supplemental/publisher_id_string.json b/adapters/limelightDigital/LimelightDigitaltest/supplemental/publisher_id_string.json index da7716c59c7..85ca4292b1c 100644 --- a/adapters/limelightDigital/LimelightDigitaltest/supplemental/publisher_id_string.json +++ b/adapters/limelightDigital/LimelightDigitaltest/supplemental/publisher_id_string.json @@ -40,7 +40,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/limelightDigital/LimelightDigitaltest/supplemental/unknown_bid_impid.json b/adapters/limelightDigital/LimelightDigitaltest/supplemental/unknown_bid_impid.json index 371983bd8d9..1237d4be6cb 100644 --- a/adapters/limelightDigital/LimelightDigitaltest/supplemental/unknown_bid_impid.json +++ b/adapters/limelightDigital/LimelightDigitaltest/supplemental/unknown_bid_impid.json @@ -40,7 +40,8 @@ } } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/limelightDigital/LimelightDigitaltest/supplemental/unknown_imp_media_type.json b/adapters/limelightDigital/LimelightDigitaltest/supplemental/unknown_imp_media_type.json index dcc3f355340..09b5f9f685d 100644 --- a/adapters/limelightDigital/LimelightDigitaltest/supplemental/unknown_imp_media_type.json +++ b/adapters/limelightDigital/LimelightDigitaltest/supplemental/unknown_imp_media_type.json @@ -24,7 +24,8 @@ "id": "test-banner-id" } ] - } + }, + "impIDs":["test-banner-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/limelightDigital/limelightDigital.go b/adapters/limelightDigital/limelightDigital.go index 54ef8dc6fba..b4c327e8475 100644 --- a/adapters/limelightDigital/limelightDigital.go +++ b/adapters/limelightDigital/limelightDigital.go @@ -83,6 +83,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: url, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), } requests = append(requests, requestData) } diff --git a/adapters/lm_kiviads/lmkiviads.go b/adapters/lm_kiviads/lmkiviads.go index a4f292435bc..e5f9723c34d 100644 --- a/adapters/lm_kiviads/lmkiviads.go +++ b/adapters/lm_kiviads/lmkiviads.go @@ -91,6 +91,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Body: requestJSON, Uri: endpoint, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), } requests = append(requests, request) diff --git a/adapters/lm_kiviads/lmkiviadstest/exemplary/banner.json b/adapters/lm_kiviads/lmkiviadstest/exemplary/banner.json index 68bbd815c2b..89bdb6edbe6 100644 --- a/adapters/lm_kiviads/lmkiviadstest/exemplary/banner.json +++ b/adapters/lm_kiviads/lmkiviadstest/exemplary/banner.json @@ -103,7 +103,8 @@ "id": "pubid" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, @@ -183,7 +184,8 @@ "id": "pubid" } } - } + }, + "impIDs":["2"] }, "mockResponse": { "status": 200, diff --git a/adapters/lm_kiviads/lmkiviadstest/exemplary/native.json b/adapters/lm_kiviads/lmkiviadstest/exemplary/native.json index efd8a80f488..c337b072280 100644 --- a/adapters/lm_kiviads/lmkiviadstest/exemplary/native.json +++ b/adapters/lm_kiviads/lmkiviadstest/exemplary/native.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/lm_kiviads/lmkiviadstest/exemplary/video.json b/adapters/lm_kiviads/lmkiviadstest/exemplary/video.json index 1f694d510f1..daf72fdff27 100644 --- a/adapters/lm_kiviads/lmkiviadstest/exemplary/video.json +++ b/adapters/lm_kiviads/lmkiviadstest/exemplary/video.json @@ -128,7 +128,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/lm_kiviads/lmkiviadstest/supplemental/bad-response.json b/adapters/lm_kiviads/lmkiviadstest/supplemental/bad-response.json index 7380a97983b..87f917e58ab 100644 --- a/adapters/lm_kiviads/lmkiviadstest/supplemental/bad-response.json +++ b/adapters/lm_kiviads/lmkiviadstest/supplemental/bad-response.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/lm_kiviads/lmkiviadstest/supplemental/empty-mediatype.json b/adapters/lm_kiviads/lmkiviadstest/supplemental/empty-mediatype.json index 40c8e78d47b..1c3212cd5c5 100644 --- a/adapters/lm_kiviads/lmkiviadstest/supplemental/empty-mediatype.json +++ b/adapters/lm_kiviads/lmkiviadstest/supplemental/empty-mediatype.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/lm_kiviads/lmkiviadstest/supplemental/empty-seatbid-0-bid.json b/adapters/lm_kiviads/lmkiviadstest/supplemental/empty-seatbid-0-bid.json index 15e9a1df59a..ff78d8399cc 100644 --- a/adapters/lm_kiviads/lmkiviadstest/supplemental/empty-seatbid-0-bid.json +++ b/adapters/lm_kiviads/lmkiviadstest/supplemental/empty-seatbid-0-bid.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/lm_kiviads/lmkiviadstest/supplemental/empty-seatbid.json b/adapters/lm_kiviads/lmkiviadstest/supplemental/empty-seatbid.json index 6d6daebc8b7..76f5c0785d3 100644 --- a/adapters/lm_kiviads/lmkiviadstest/supplemental/empty-seatbid.json +++ b/adapters/lm_kiviads/lmkiviadstest/supplemental/empty-seatbid.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/lm_kiviads/lmkiviadstest/supplemental/invalid-mediatype.json b/adapters/lm_kiviads/lmkiviadstest/supplemental/invalid-mediatype.json index bdf41988541..7bea3ee8841 100644 --- a/adapters/lm_kiviads/lmkiviadstest/supplemental/invalid-mediatype.json +++ b/adapters/lm_kiviads/lmkiviadstest/supplemental/invalid-mediatype.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/lm_kiviads/lmkiviadstest/supplemental/status-204.json b/adapters/lm_kiviads/lmkiviadstest/supplemental/status-204.json index c040fb79535..3eb879965d7 100644 --- a/adapters/lm_kiviads/lmkiviadstest/supplemental/status-204.json +++ b/adapters/lm_kiviads/lmkiviadstest/supplemental/status-204.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 204, diff --git a/adapters/lm_kiviads/lmkiviadstest/supplemental/status-400.json b/adapters/lm_kiviads/lmkiviadstest/supplemental/status-400.json index 256f1134ccd..cffb142cb8f 100644 --- a/adapters/lm_kiviads/lmkiviadstest/supplemental/status-400.json +++ b/adapters/lm_kiviads/lmkiviadstest/supplemental/status-400.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 400, diff --git a/adapters/lm_kiviads/lmkiviadstest/supplemental/status-503.json b/adapters/lm_kiviads/lmkiviadstest/supplemental/status-503.json index e0ca7f65d79..9a952b853b1 100644 --- a/adapters/lm_kiviads/lmkiviadstest/supplemental/status-503.json +++ b/adapters/lm_kiviads/lmkiviadstest/supplemental/status-503.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 503 diff --git a/adapters/lm_kiviads/lmkiviadstest/supplemental/unexpected-status.json b/adapters/lm_kiviads/lmkiviadstest/supplemental/unexpected-status.json index d176e64105e..73969312ff0 100644 --- a/adapters/lm_kiviads/lmkiviadstest/supplemental/unexpected-status.json +++ b/adapters/lm_kiviads/lmkiviadstest/supplemental/unexpected-status.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 403, diff --git a/adapters/lockerdome/lockerdome.go b/adapters/lockerdome/lockerdome.go index 512b84177b0..3e483fad646 100644 --- a/adapters/lockerdome/lockerdome.go +++ b/adapters/lockerdome/lockerdome.go @@ -100,6 +100,7 @@ func (adapter *LockerDomeAdapter) MakeRequests(openRTBRequest *openrtb2.BidReque Uri: adapter.endpoint, Body: openRTBRequestJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), } requestsToBidder = append(requestsToBidder, requestToBidder) diff --git a/adapters/lockerdome/lockerdometest/exemplary/simple-banner-multiple.json b/adapters/lockerdome/lockerdometest/exemplary/simple-banner-multiple.json index e58369d1695..b499be563c4 100644 --- a/adapters/lockerdome/lockerdometest/exemplary/simple-banner-multiple.json +++ b/adapters/lockerdome/lockerdometest/exemplary/simple-banner-multiple.json @@ -77,7 +77,8 @@ } } ] - } + }, + "impIDs":["test-imp-id","test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/lockerdome/lockerdometest/exemplary/simple-banner.json b/adapters/lockerdome/lockerdometest/exemplary/simple-banner.json index 19256ef9a78..4e9280daeab 100644 --- a/adapters/lockerdome/lockerdometest/exemplary/simple-banner.json +++ b/adapters/lockerdome/lockerdometest/exemplary/simple-banner.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/lockerdome/lockerdometest/supplemental/bad_response.json b/adapters/lockerdome/lockerdometest/supplemental/bad_response.json index d119a47da80..c3b0045e275 100644 --- a/adapters/lockerdome/lockerdometest/supplemental/bad_response.json +++ b/adapters/lockerdome/lockerdometest/supplemental/bad_response.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/lockerdome/lockerdometest/supplemental/empty_seatbid.json b/adapters/lockerdome/lockerdometest/supplemental/empty_seatbid.json index 36f9c1143c3..70430ca0420 100644 --- a/adapters/lockerdome/lockerdometest/supplemental/empty_seatbid.json +++ b/adapters/lockerdome/lockerdometest/supplemental/empty_seatbid.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/lockerdome/lockerdometest/supplemental/status_204.json b/adapters/lockerdome/lockerdometest/supplemental/status_204.json index de37c0da04a..e926c7f64da 100644 --- a/adapters/lockerdome/lockerdometest/supplemental/status_204.json +++ b/adapters/lockerdome/lockerdometest/supplemental/status_204.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/lockerdome/lockerdometest/supplemental/status_400.json b/adapters/lockerdome/lockerdometest/supplemental/status_400.json index 4ceca471851..82b6a1801b9 100644 --- a/adapters/lockerdome/lockerdometest/supplemental/status_400.json +++ b/adapters/lockerdome/lockerdometest/supplemental/status_400.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/lockerdome/lockerdometest/supplemental/status_418.json b/adapters/lockerdome/lockerdometest/supplemental/status_418.json index 4ce9c41f4d0..8ab9cd3a76a 100644 --- a/adapters/lockerdome/lockerdometest/supplemental/status_418.json +++ b/adapters/lockerdome/lockerdometest/supplemental/status_418.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 418, diff --git a/adapters/logan/logan.go b/adapters/logan/logan.go index 5f572c401aa..73e602f5632 100644 --- a/adapters/logan/logan.go +++ b/adapters/logan/logan.go @@ -86,6 +86,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, nil } diff --git a/adapters/logan/logantest/exemplary/simple-banner.json b/adapters/logan/logantest/exemplary/simple-banner.json index 5b7f0feb70a..9f90314cc73 100644 --- a/adapters/logan/logantest/exemplary/simple-banner.json +++ b/adapters/logan/logantest/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/logan/logantest/exemplary/simple-native.json b/adapters/logan/logantest/exemplary/simple-native.json index 2c814f2e3e3..10579402c86 100644 --- a/adapters/logan/logantest/exemplary/simple-native.json +++ b/adapters/logan/logantest/exemplary/simple-native.json @@ -55,7 +55,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/logan/logantest/exemplary/simple-video.json b/adapters/logan/logantest/exemplary/simple-video.json index 6d2b4b54915..76e482bfd7e 100644 --- a/adapters/logan/logantest/exemplary/simple-video.json +++ b/adapters/logan/logantest/exemplary/simple-video.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/logan/logantest/exemplary/simple-web-banner.json b/adapters/logan/logantest/exemplary/simple-web-banner.json index af45a0af523..cbf18439f55 100644 --- a/adapters/logan/logantest/exemplary/simple-web-banner.json +++ b/adapters/logan/logantest/exemplary/simple-web-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "Ubuntu" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/logan/logantest/supplemental/bad_media_type.json b/adapters/logan/logantest/supplemental/bad_media_type.json index de038a20ea1..7e020a20221 100644 --- a/adapters/logan/logantest/supplemental/bad_media_type.json +++ b/adapters/logan/logantest/supplemental/bad_media_type.json @@ -44,7 +44,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/logan/logantest/supplemental/bad_response.json b/adapters/logan/logantest/supplemental/bad_response.json index d09947c6a6d..d71deaddfb8 100644 --- a/adapters/logan/logantest/supplemental/bad_response.json +++ b/adapters/logan/logantest/supplemental/bad_response.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/logan/logantest/supplemental/status-204.json b/adapters/logan/logantest/supplemental/status-204.json index 6f5c7a5e975..f3984d7b101 100644 --- a/adapters/logan/logantest/supplemental/status-204.json +++ b/adapters/logan/logantest/supplemental/status-204.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/logan/logantest/supplemental/status-not-200.json b/adapters/logan/logantest/supplemental/status-not-200.json index 57f210da026..d083efa5055 100644 --- a/adapters/logan/logantest/supplemental/status-not-200.json +++ b/adapters/logan/logantest/supplemental/status-not-200.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/logicad/logicad.go b/adapters/logicad/logicad.go index a4fd0af8a11..5ce3d0ac7e1 100644 --- a/adapters/logicad/logicad.go +++ b/adapters/logicad/logicad.go @@ -102,7 +102,8 @@ func (adapter *LogicadAdapter) buildAdapterRequest(prebidBidRequest *openrtb2.Bi Method: "POST", Uri: adapter.endpoint, Body: reqJSON, - Headers: headers}, nil + Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(imps)}, nil } func createBidRequest(prebidBidRequest *openrtb2.BidRequest, params *openrtb_ext.ExtImpLogicad, imps []openrtb2.Imp) *openrtb2.BidRequest { diff --git a/adapters/logicad/logicadtest/exemplary/banner.json b/adapters/logicad/logicadtest/exemplary/banner.json index f782cc2b9f8..49036bcc7ed 100644 --- a/adapters/logicad/logicadtest/exemplary/banner.json +++ b/adapters/logicad/logicadtest/exemplary/banner.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["testimpid"] }, "mockResponse": { "status": 200, diff --git a/adapters/logicad/logicadtest/supplemental/multiImpSameTid.json b/adapters/logicad/logicadtest/supplemental/multiImpSameTid.json index 848733cdf35..6e89afc740c 100644 --- a/adapters/logicad/logicadtest/supplemental/multiImpSameTid.json +++ b/adapters/logicad/logicadtest/supplemental/multiImpSameTid.json @@ -68,7 +68,8 @@ } } ] - } + }, + "impIDs":["testimpid","testimpid"] }, "mockResponse": { "status": 200, diff --git a/adapters/logicad/logicadtest/supplemental/responseCode.json b/adapters/logicad/logicadtest/supplemental/responseCode.json index 471993ad8f2..aa0cca6d71a 100644 --- a/adapters/logicad/logicadtest/supplemental/responseCode.json +++ b/adapters/logicad/logicadtest/supplemental/responseCode.json @@ -54,7 +54,8 @@ "site": { "id": "test" } - } + }, + "impIDs":["testimpid"] }, "mockResponse": { "body": { diff --git a/adapters/logicad/logicadtest/supplemental/responseNoBid.json b/adapters/logicad/logicadtest/supplemental/responseNoBid.json index 6ddab2ab6bd..4fabdc4d63a 100644 --- a/adapters/logicad/logicadtest/supplemental/responseNoBid.json +++ b/adapters/logicad/logicadtest/supplemental/responseNoBid.json @@ -54,7 +54,8 @@ "site": { "id": "test" } - } + }, + "impIDs":["testimpid"] }, "mockResponse": { "status": 204, diff --git a/adapters/logicad/logicadtest/supplemental/responsebid.json b/adapters/logicad/logicadtest/supplemental/responsebid.json index 59d1c2ac21e..0ba2130bc35 100644 --- a/adapters/logicad/logicadtest/supplemental/responsebid.json +++ b/adapters/logicad/logicadtest/supplemental/responsebid.json @@ -54,7 +54,8 @@ "site": { "id": "test" } - } + }, + "impIDs":["testimpid"] }, "mockResponse": { "status": 200, diff --git a/adapters/logicad/logicadtest/supplemental/site.json b/adapters/logicad/logicadtest/supplemental/site.json index c747413f91c..b0d9f462040 100644 --- a/adapters/logicad/logicadtest/supplemental/site.json +++ b/adapters/logicad/logicadtest/supplemental/site.json @@ -54,7 +54,8 @@ "site": { "id": "test" } - } + }, + "impIDs":["testimpid"] }, "mockResponse": { "status": 200, diff --git a/adapters/lunamedia/lunamedia.go b/adapters/lunamedia/lunamedia.go index 1da30525615..bc663d31fdb 100644 --- a/adapters/lunamedia/lunamedia.go +++ b/adapters/lunamedia/lunamedia.go @@ -151,7 +151,8 @@ func (adapter *LunaMediaAdapter) buildAdapterRequest(prebidBidRequest *openrtb2. Method: "POST", Uri: url, Body: reqJSON, - Headers: headers}, nil + Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(imps)}, nil } func createBidRequest(prebidBidRequest *openrtb2.BidRequest, params *openrtb_ext.ExtImpLunaMedia, imps []openrtb2.Imp) *openrtb2.BidRequest { diff --git a/adapters/lunamedia/lunamediatest/exemplary/banner.json b/adapters/lunamedia/lunamediatest/exemplary/banner.json index fa92565b814..b6f327a16f8 100644 --- a/adapters/lunamedia/lunamediatest/exemplary/banner.json +++ b/adapters/lunamedia/lunamediatest/exemplary/banner.json @@ -50,7 +50,8 @@ } }] - } + }, + "impIDs":["testimpid"] }, "mockResponse": { "status": 200, diff --git a/adapters/lunamedia/lunamediatest/exemplary/video.json b/adapters/lunamedia/lunamediatest/exemplary/video.json index 834963ff41d..9958b0b4ce2 100644 --- a/adapters/lunamedia/lunamediatest/exemplary/video.json +++ b/adapters/lunamedia/lunamediatest/exemplary/video.json @@ -38,7 +38,8 @@ "h": 480 } }] - } + }, + "impIDs":["testimpid"] }, "mockResponse": { "status": 200, diff --git a/adapters/lunamedia/lunamediatest/supplemental/compat.json b/adapters/lunamedia/lunamediatest/supplemental/compat.json index 7fc713e0021..416958c51da 100644 --- a/adapters/lunamedia/lunamediatest/supplemental/compat.json +++ b/adapters/lunamedia/lunamediatest/supplemental/compat.json @@ -35,7 +35,8 @@ "tagid": "dummyplacement" }] - } + }, + "impIDs":["testimpid"] }, "mockResponse": { "status": 200, diff --git a/adapters/lunamedia/lunamediatest/supplemental/responseCode.json b/adapters/lunamedia/lunamediatest/supplemental/responseCode.json index 075d121aa1f..7d9beb2f6f4 100644 --- a/adapters/lunamedia/lunamediatest/supplemental/responseCode.json +++ b/adapters/lunamedia/lunamediatest/supplemental/responseCode.json @@ -59,7 +59,8 @@ "site": { "id": "test" } - } + }, + "impIDs":["testimpid"] }, "mockResponse": { "body": { diff --git a/adapters/lunamedia/lunamediatest/supplemental/responsebid.json b/adapters/lunamedia/lunamediatest/supplemental/responsebid.json index f8c5b67a626..a799cdf3844 100644 --- a/adapters/lunamedia/lunamediatest/supplemental/responsebid.json +++ b/adapters/lunamedia/lunamediatest/supplemental/responsebid.json @@ -59,7 +59,8 @@ "site": { "id": "test" } - } + }, + "impIDs":["testimpid"] }, "mockResponse": { "status":200, diff --git a/adapters/lunamedia/lunamediatest/supplemental/site.json b/adapters/lunamedia/lunamediatest/supplemental/site.json index b2610cec06b..8ef861c4578 100644 --- a/adapters/lunamedia/lunamediatest/supplemental/site.json +++ b/adapters/lunamedia/lunamediatest/supplemental/site.json @@ -59,7 +59,8 @@ "site": { "id": "test" } - } + }, + "impIDs":["testimpid"] }, "mockResponse": { "status": 200, diff --git a/adapters/mabidder/mabidder.go b/adapters/mabidder/mabidder.go index 9bb6dedf259..8e636e2281c 100644 --- a/adapters/mabidder/mabidder.go +++ b/adapters/mabidder/mabidder.go @@ -55,6 +55,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: a.endpoint, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/mabidder/mabiddertest/exemplary/simple-app-banner.json b/adapters/mabidder/mabiddertest/exemplary/simple-app-banner.json index 4d3cbdfd278..22aa10b3d69 100644 --- a/adapters/mabidder/mabiddertest/exemplary/simple-app-banner.json +++ b/adapters/mabidder/mabiddertest/exemplary/simple-app-banner.json @@ -56,7 +56,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mabidder/mabiddertest/supplemental/bad-request-example.json b/adapters/mabidder/mabiddertest/supplemental/bad-request-example.json index 8ab37e13079..c2a2b6357be 100644 --- a/adapters/mabidder/mabiddertest/supplemental/bad-request-example.json +++ b/adapters/mabidder/mabiddertest/supplemental/bad-request-example.json @@ -56,7 +56,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/mabidder/mabiddertest/supplemental/bad-response-malformed.json b/adapters/mabidder/mabiddertest/supplemental/bad-response-malformed.json index f62ed2a7a61..fb59513192d 100644 --- a/adapters/mabidder/mabiddertest/supplemental/bad-response-malformed.json +++ b/adapters/mabidder/mabiddertest/supplemental/bad-response-malformed.json @@ -56,7 +56,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200 diff --git a/adapters/mabidder/mabiddertest/supplemental/bad-response-status-500.json b/adapters/mabidder/mabiddertest/supplemental/bad-response-status-500.json index 8ee59384071..f3244061448 100644 --- a/adapters/mabidder/mabiddertest/supplemental/bad-response-status-500.json +++ b/adapters/mabidder/mabiddertest/supplemental/bad-response-status-500.json @@ -56,7 +56,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/mabidder/mabiddertest/supplemental/no-content-response.json b/adapters/mabidder/mabiddertest/supplemental/no-content-response.json index 640e78dcec8..cf0c806e42f 100644 --- a/adapters/mabidder/mabiddertest/supplemental/no-content-response.json +++ b/adapters/mabidder/mabiddertest/supplemental/no-content-response.json @@ -56,7 +56,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/madvertise/madvertise.go b/adapters/madvertise/madvertise.go index 6b75fcf3195..3c1ffa4ae55 100644 --- a/adapters/madvertise/madvertise.go +++ b/adapters/madvertise/madvertise.go @@ -85,6 +85,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Uri: url, Body: requestJSON, Headers: getHeaders(request), + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/madvertise/madvertisetest/exemplary/simple-banner.json b/adapters/madvertise/madvertisetest/exemplary/simple-banner.json index 0c277a06b62..bc481c50f00 100644 --- a/adapters/madvertise/madvertisetest/exemplary/simple-banner.json +++ b/adapters/madvertise/madvertisetest/exemplary/simple-banner.json @@ -142,7 +142,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/madvertise/madvertisetest/exemplary/simple-video.json b/adapters/madvertise/madvertisetest/exemplary/simple-video.json index 5fb7e800e8f..26ca049bf9d 100644 --- a/adapters/madvertise/madvertisetest/exemplary/simple-video.json +++ b/adapters/madvertise/madvertisetest/exemplary/simple-video.json @@ -194,7 +194,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/madvertise/madvertisetest/supplemental/display-site-test.json b/adapters/madvertise/madvertisetest/supplemental/display-site-test.json index e111a5d9d71..bacc78a4aee 100644 --- a/adapters/madvertise/madvertisetest/supplemental/display-site-test.json +++ b/adapters/madvertise/madvertisetest/supplemental/display-site-test.json @@ -142,7 +142,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/madvertise/madvertisetest/supplemental/response-204.json b/adapters/madvertise/madvertisetest/supplemental/response-204.json index f0162291d12..c5007c78b1a 100644 --- a/adapters/madvertise/madvertisetest/supplemental/response-204.json +++ b/adapters/madvertise/madvertisetest/supplemental/response-204.json @@ -178,7 +178,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/madvertise/madvertisetest/supplemental/response-400.json b/adapters/madvertise/madvertisetest/supplemental/response-400.json index a5af414d7a0..0ecc31a5bf4 100644 --- a/adapters/madvertise/madvertisetest/supplemental/response-400.json +++ b/adapters/madvertise/madvertisetest/supplemental/response-400.json @@ -178,7 +178,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/madvertise/madvertisetest/supplemental/response-500.json b/adapters/madvertise/madvertisetest/supplemental/response-500.json index 8a4b0da4323..fa8bf411f9b 100644 --- a/adapters/madvertise/madvertisetest/supplemental/response-500.json +++ b/adapters/madvertise/madvertisetest/supplemental/response-500.json @@ -178,7 +178,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500 diff --git a/adapters/marsmedia/marsmedia.go b/adapters/marsmedia/marsmedia.go index 7ff9fbbbb94..f47ba557d88 100644 --- a/adapters/marsmedia/marsmedia.go +++ b/adapters/marsmedia/marsmedia.go @@ -103,6 +103,7 @@ func (a *MarsmediaAdapter) MakeRequests(requestIn *openrtb2.BidRequest, reqInfo Uri: uri, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, []error{} } diff --git a/adapters/marsmedia/marsmediatest/exemplary/simple-banner-int-param.json b/adapters/marsmedia/marsmediatest/exemplary/simple-banner-int-param.json index 4804a873160..82d72d87747 100644 --- a/adapters/marsmedia/marsmediatest/exemplary/simple-banner-int-param.json +++ b/adapters/marsmedia/marsmediatest/exemplary/simple-banner-int-param.json @@ -49,7 +49,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/marsmedia/marsmediatest/exemplary/simple-banner.json b/adapters/marsmedia/marsmediatest/exemplary/simple-banner.json index f13f4aadfa2..6cc14254d64 100644 --- a/adapters/marsmedia/marsmediatest/exemplary/simple-banner.json +++ b/adapters/marsmedia/marsmediatest/exemplary/simple-banner.json @@ -49,7 +49,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/marsmedia/marsmediatest/exemplary/simple-video.json b/adapters/marsmedia/marsmediatest/exemplary/simple-video.json index 8582a97a1d7..56f81604ccd 100644 --- a/adapters/marsmedia/marsmediatest/exemplary/simple-video.json +++ b/adapters/marsmedia/marsmediatest/exemplary/simple-video.json @@ -42,7 +42,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/marsmedia/marsmediatest/exemplary/valid-extension.json b/adapters/marsmedia/marsmediatest/exemplary/valid-extension.json index ddd310a6156..cbe2cd9c03b 100644 --- a/adapters/marsmedia/marsmediatest/exemplary/valid-extension.json +++ b/adapters/marsmedia/marsmediatest/exemplary/valid-extension.json @@ -42,7 +42,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/medianet/medianet.go b/adapters/medianet/medianet.go index 2750bd559a6..f10ca986b9e 100644 --- a/adapters/medianet/medianet.go +++ b/adapters/medianet/medianet.go @@ -34,6 +34,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: a.endpoint, Body: reqJson, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errs } diff --git a/adapters/medianet/medianettest/exemplary/multi-format.json b/adapters/medianet/medianettest/exemplary/multi-format.json index 72b5ddf7540..8ccb5a8ea14 100644 --- a/adapters/medianet/medianettest/exemplary/multi-format.json +++ b/adapters/medianet/medianettest/exemplary/multi-format.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { diff --git a/adapters/medianet/medianettest/exemplary/multi-imps.json b/adapters/medianet/medianettest/exemplary/multi-imps.json index 84a378d2cd2..3aca4c1d50f 100644 --- a/adapters/medianet/medianettest/exemplary/multi-imps.json +++ b/adapters/medianet/medianettest/exemplary/multi-imps.json @@ -81,7 +81,8 @@ } } ] - } + }, + "impIDs":["1","2"] }, "mockResponse": { diff --git a/adapters/medianet/medianettest/exemplary/no-bid.json b/adapters/medianet/medianettest/exemplary/no-bid.json index 00c11eeccd2..766935d3c8a 100644 --- a/adapters/medianet/medianettest/exemplary/no-bid.json +++ b/adapters/medianet/medianettest/exemplary/no-bid.json @@ -47,7 +47,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 204, diff --git a/adapters/medianet/medianettest/exemplary/optional-params.json b/adapters/medianet/medianettest/exemplary/optional-params.json index b560cac9c80..da017c449bc 100644 --- a/adapters/medianet/medianettest/exemplary/optional-params.json +++ b/adapters/medianet/medianettest/exemplary/optional-params.json @@ -49,7 +49,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 204, diff --git a/adapters/medianet/medianettest/exemplary/simple-banner.json b/adapters/medianet/medianettest/exemplary/simple-banner.json index 1548a959a2c..cff32e27b8b 100644 --- a/adapters/medianet/medianettest/exemplary/simple-banner.json +++ b/adapters/medianet/medianettest/exemplary/simple-banner.json @@ -47,7 +47,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { diff --git a/adapters/medianet/medianettest/exemplary/simple-video.json b/adapters/medianet/medianettest/exemplary/simple-video.json index ef60969809b..ffd0a0ac3b2 100644 --- a/adapters/medianet/medianettest/exemplary/simple-video.json +++ b/adapters/medianet/medianettest/exemplary/simple-video.json @@ -52,7 +52,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/medianet/medianettest/supplemental/invalid-req-400-status-code-bad-request.json b/adapters/medianet/medianettest/supplemental/invalid-req-400-status-code-bad-request.json index 670e8ed3308..bd064e5f289 100644 --- a/adapters/medianet/medianettest/supplemental/invalid-req-400-status-code-bad-request.json +++ b/adapters/medianet/medianettest/supplemental/invalid-req-400-status-code-bad-request.json @@ -81,7 +81,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/medianet/medianettest/supplemental/valid-req-200-bid-response-from-mnet.json b/adapters/medianet/medianettest/supplemental/valid-req-200-bid-response-from-mnet.json index 7925ab3f345..99ac6cb8807 100644 --- a/adapters/medianet/medianettest/supplemental/valid-req-200-bid-response-from-mnet.json +++ b/adapters/medianet/medianettest/supplemental/valid-req-200-bid-response-from-mnet.json @@ -81,7 +81,8 @@ "regs": { "gdpr": 0 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/medianet/medianettest/supplemental/valid-req-204-response-from-mnet.json b/adapters/medianet/medianettest/supplemental/valid-req-204-response-from-mnet.json index 334d61a069e..ca1f557195a 100755 --- a/adapters/medianet/medianettest/supplemental/valid-req-204-response-from-mnet.json +++ b/adapters/medianet/medianettest/supplemental/valid-req-204-response-from-mnet.json @@ -54,7 +54,8 @@ "id": "imp-id" } ] - } + }, + "impIDs":["imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/mgid/mgid.go b/adapters/mgid/mgid.go index a6e9606f378..93398905da1 100644 --- a/adapters/mgid/mgid.go +++ b/adapters/mgid/mgid.go @@ -61,6 +61,7 @@ func (a *MgidAdapter) makeRequest(request *openrtb2.BidRequest) (*adapters.Reque Uri: a.endpoint + path, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, errs } diff --git a/adapters/mgid/mgidtest/exemplary/noplacementid.json b/adapters/mgid/mgidtest/exemplary/noplacementid.json index cb5d2c27004..48dfe5e4628 100644 --- a/adapters/mgid/mgidtest/exemplary/noplacementid.json +++ b/adapters/mgid/mgidtest/exemplary/noplacementid.json @@ -85,7 +85,8 @@ "dnt": 0, "language": "en" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mgid/mgidtest/exemplary/simple-banner.json b/adapters/mgid/mgidtest/exemplary/simple-banner.json index 52995925c71..3bc4389ad56 100644 --- a/adapters/mgid/mgidtest/exemplary/simple-banner.json +++ b/adapters/mgid/mgidtest/exemplary/simple-banner.json @@ -87,7 +87,8 @@ "dnt": 0, "language": "en" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mgid/mgidtest/exemplary/simple-banner_no_device.json b/adapters/mgid/mgidtest/exemplary/simple-banner_no_device.json index 1d9e6f429de..7a76a4386f8 100644 --- a/adapters/mgid/mgidtest/exemplary/simple-banner_no_device.json +++ b/adapters/mgid/mgidtest/exemplary/simple-banner_no_device.json @@ -81,7 +81,8 @@ "user": { "buyeruid": "test_reader_id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mgid/mgidtest/exemplary/simple-banner_no_device_no_site.json b/adapters/mgid/mgidtest/exemplary/simple-banner_no_device_no_site.json index 79f842fd7e7..9849424b494 100644 --- a/adapters/mgid/mgidtest/exemplary/simple-banner_no_device_no_site.json +++ b/adapters/mgid/mgidtest/exemplary/simple-banner_no_device_no_site.json @@ -73,7 +73,8 @@ "user": { "buyeruid": "test_reader_id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mgid/mgidtest/exemplary/simple-banner_with_crtype.json b/adapters/mgid/mgidtest/exemplary/simple-banner_with_crtype.json index 853da1eadfd..586176fb6c2 100644 --- a/adapters/mgid/mgidtest/exemplary/simple-banner_with_crtype.json +++ b/adapters/mgid/mgidtest/exemplary/simple-banner_with_crtype.json @@ -87,7 +87,8 @@ "dnt": 0, "language": "en" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mgid/mgidtest/supplemental/status_204.json b/adapters/mgid/mgidtest/supplemental/status_204.json index 2ad9f03cae7..9ed2a384a80 100644 --- a/adapters/mgid/mgidtest/supplemental/status_204.json +++ b/adapters/mgid/mgidtest/supplemental/status_204.json @@ -55,7 +55,8 @@ "domain": "fake-site-domain" }, "tmax": 200 - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/mgid/mgidtest/supplemental/status_not200.json b/adapters/mgid/mgidtest/supplemental/status_not200.json index 1f77df0ad7b..f5855d1e256 100644 --- a/adapters/mgid/mgidtest/supplemental/status_not200.json +++ b/adapters/mgid/mgidtest/supplemental/status_not200.json @@ -55,7 +55,8 @@ "domain": "fake-site-domain" }, "tmax": 200 - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/mgid/mgidtest/supplemental/video.json b/adapters/mgid/mgidtest/supplemental/video.json index 662ce6484e3..e40f304afbb 100644 --- a/adapters/mgid/mgidtest/supplemental/video.json +++ b/adapters/mgid/mgidtest/supplemental/video.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/mgidX/mgidX.go b/adapters/mgidX/mgidX.go index 8f67be409ed..6e6a3427fca 100644 --- a/adapters/mgidX/mgidX.go +++ b/adapters/mgidX/mgidX.go @@ -101,6 +101,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, nil } diff --git a/adapters/mgidX/mgidXtest/exemplary/endpointId.json b/adapters/mgidX/mgidXtest/exemplary/endpointId.json index 2c3b74bc33e..892dd0f8abf 100644 --- a/adapters/mgidX/mgidXtest/exemplary/endpointId.json +++ b/adapters/mgidX/mgidXtest/exemplary/endpointId.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mgidX/mgidXtest/exemplary/simple-banner.json b/adapters/mgidX/mgidXtest/exemplary/simple-banner.json index 69c65439a99..ddbe6dc3cd1 100644 --- a/adapters/mgidX/mgidXtest/exemplary/simple-banner.json +++ b/adapters/mgidX/mgidXtest/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mgidX/mgidXtest/exemplary/simple-native.json b/adapters/mgidX/mgidXtest/exemplary/simple-native.json index 74b2e31f993..6a4099e0282 100644 --- a/adapters/mgidX/mgidXtest/exemplary/simple-native.json +++ b/adapters/mgidX/mgidXtest/exemplary/simple-native.json @@ -55,7 +55,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mgidX/mgidXtest/exemplary/simple-video.json b/adapters/mgidX/mgidXtest/exemplary/simple-video.json index 29159388712..212551d0f55 100644 --- a/adapters/mgidX/mgidXtest/exemplary/simple-video.json +++ b/adapters/mgidX/mgidXtest/exemplary/simple-video.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mgidX/mgidXtest/exemplary/simple-web-banner.json b/adapters/mgidX/mgidXtest/exemplary/simple-web-banner.json index 6460b410211..cfc31053f50 100644 --- a/adapters/mgidX/mgidXtest/exemplary/simple-web-banner.json +++ b/adapters/mgidX/mgidXtest/exemplary/simple-web-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "Ubuntu" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mgidX/mgidXtest/supplemental/bad_media_type.json b/adapters/mgidX/mgidXtest/supplemental/bad_media_type.json index 22d09ce2f9f..0d4518d082c 100644 --- a/adapters/mgidX/mgidXtest/supplemental/bad_media_type.json +++ b/adapters/mgidX/mgidXtest/supplemental/bad_media_type.json @@ -44,7 +44,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mgidX/mgidXtest/supplemental/bad_response.json b/adapters/mgidX/mgidXtest/supplemental/bad_response.json index 8c1cc3750db..c732ba92c67 100644 --- a/adapters/mgidX/mgidXtest/supplemental/bad_response.json +++ b/adapters/mgidX/mgidXtest/supplemental/bad_response.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mgidX/mgidXtest/supplemental/status-204.json b/adapters/mgidX/mgidXtest/supplemental/status-204.json index 3e536c25a60..b2c822cb446 100644 --- a/adapters/mgidX/mgidXtest/supplemental/status-204.json +++ b/adapters/mgidX/mgidXtest/supplemental/status-204.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/mgidX/mgidXtest/supplemental/status-not-200.json b/adapters/mgidX/mgidXtest/supplemental/status-not-200.json index 4bb3c8d5b53..a6879edd82d 100644 --- a/adapters/mgidX/mgidXtest/supplemental/status-not-200.json +++ b/adapters/mgidX/mgidXtest/supplemental/status-not-200.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/minutemedia/minutemedia.go b/adapters/minutemedia/minutemedia.go index 70c81504442..cb5581e5cde 100644 --- a/adapters/minutemedia/minutemedia.go +++ b/adapters/minutemedia/minutemedia.go @@ -47,6 +47,7 @@ func (a *adapter) MakeRequests(openRTBRequest *openrtb2.BidRequest, _ *adapters. Uri: a.endpointURL + "?publisher_id=" + url.QueryEscape(org), Body: openRTBRequestJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), }), nil } diff --git a/adapters/minutemedia/minutemediatest/exemplary/banner-and-video-app.json b/adapters/minutemedia/minutemediatest/exemplary/banner-and-video-app.json index f1051001a77..269ff8442b4 100644 --- a/adapters/minutemedia/minutemediatest/exemplary/banner-and-video-app.json +++ b/adapters/minutemedia/minutemediatest/exemplary/banner-and-video-app.json @@ -190,7 +190,8 @@ "connectiontype": 3, "devicetype": 1 } - } + }, + "impIDs":["test-imp-id", "test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/minutemedia/minutemediatest/exemplary/banner-and-video-gdpr.json b/adapters/minutemedia/minutemediatest/exemplary/banner-and-video-gdpr.json index 6816955dde1..05f742b2a0d 100644 --- a/adapters/minutemedia/minutemediatest/exemplary/banner-and-video-gdpr.json +++ b/adapters/minutemedia/minutemediatest/exemplary/banner-and-video-gdpr.json @@ -154,7 +154,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["test-imp-id", "test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/minutemedia/minutemediatest/exemplary/banner-and-video-site.json b/adapters/minutemedia/minutemediatest/exemplary/banner-and-video-site.json index 9beae53c7e0..a784bc03d37 100644 --- a/adapters/minutemedia/minutemediatest/exemplary/banner-and-video-site.json +++ b/adapters/minutemedia/minutemediatest/exemplary/banner-and-video-site.json @@ -172,7 +172,8 @@ "ua": "Fake Test User Agent/6.0", "ip": "123.145.167.10" } - } + }, + "impIDs":["test-imp-id", "test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/minutemedia/minutemediatest/exemplary/banner-and-video.json b/adapters/minutemedia/minutemediatest/exemplary/banner-and-video.json index 51dad5de83b..6238fec4563 100644 --- a/adapters/minutemedia/minutemediatest/exemplary/banner-and-video.json +++ b/adapters/minutemedia/minutemediatest/exemplary/banner-and-video.json @@ -132,7 +132,8 @@ } } ] - } + }, + "impIDs":["test-imp-id", "test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/minutemedia/minutemediatest/exemplary/simple-banner.json b/adapters/minutemedia/minutemediatest/exemplary/simple-banner.json index 51a62bea108..ad87efeeb81 100644 --- a/adapters/minutemedia/minutemediatest/exemplary/simple-banner.json +++ b/adapters/minutemedia/minutemediatest/exemplary/simple-banner.json @@ -56,7 +56,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/minutemedia/minutemediatest/exemplary/simple-video.json b/adapters/minutemedia/minutemediatest/exemplary/simple-video.json index e188baf5382..fa5a7987210 100644 --- a/adapters/minutemedia/minutemediatest/exemplary/simple-video.json +++ b/adapters/minutemedia/minutemediatest/exemplary/simple-video.json @@ -88,7 +88,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/minutemedia/minutemediatest/supplemental/bad-request.json b/adapters/minutemedia/minutemediatest/supplemental/bad-request.json index ccb32559691..e269566e470 100644 --- a/adapters/minutemedia/minutemediatest/supplemental/bad-request.json +++ b/adapters/minutemedia/minutemediatest/supplemental/bad-request.json @@ -88,7 +88,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/minutemedia/minutemediatest/supplemental/missing-mtype.json b/adapters/minutemedia/minutemediatest/supplemental/missing-mtype.json index ba1c2017b60..747972af74f 100644 --- a/adapters/minutemedia/minutemediatest/supplemental/missing-mtype.json +++ b/adapters/minutemedia/minutemediatest/supplemental/missing-mtype.json @@ -88,7 +88,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mobfoxpb/mobfoxpb.go b/adapters/mobfoxpb/mobfoxpb.go index a6e002befce..3b24aa88dab 100644 --- a/adapters/mobfoxpb/mobfoxpb.go +++ b/adapters/mobfoxpb/mobfoxpb.go @@ -93,6 +93,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest, requestURI string) ( Uri: requestURI, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, nil } diff --git a/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-banner-direct-route.json b/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-banner-direct-route.json index fb6bd260f74..e74c7a822ec 100644 --- a/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-banner-direct-route.json +++ b/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-banner-direct-route.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-banner-rtb-route.json b/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-banner-rtb-route.json index 7b38008536d..baeb6325097 100644 --- a/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-banner-rtb-route.json +++ b/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-banner-rtb-route.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-video-direct-route.json b/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-video-direct-route.json index a949fdb1527..d5422b46abf 100644 --- a/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-video-direct-route.json +++ b/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-video-direct-route.json @@ -66,7 +66,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-video-rtb-route.json b/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-video-rtb-route.json index a33f0e62fc7..5df7eedaced 100644 --- a/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-video-rtb-route.json +++ b/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-video-rtb-route.json @@ -66,7 +66,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-web-banner-direct-route.json b/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-web-banner-direct-route.json index d8727226723..3b8b1fbb214 100644 --- a/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-web-banner-direct-route.json +++ b/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-web-banner-direct-route.json @@ -66,7 +66,8 @@ "device": { "ip": "123.123.123.123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-web-banner-rtb-route.json b/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-web-banner-rtb-route.json index adbb7173848..98d0e843f9b 100644 --- a/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-web-banner-rtb-route.json +++ b/adapters/mobfoxpb/mobfoxpbtest/exemplary/simple-web-banner-rtb-route.json @@ -66,7 +66,8 @@ "device": { "ip": "123.123.123.123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mobfoxpb/mobfoxpbtest/supplemental/bad_response.json b/adapters/mobfoxpb/mobfoxpbtest/supplemental/bad_response.json index d61cb8837c4..e4f246e7e0d 100644 --- a/adapters/mobfoxpb/mobfoxpbtest/supplemental/bad_response.json +++ b/adapters/mobfoxpb/mobfoxpbtest/supplemental/bad_response.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mobfoxpb/mobfoxpbtest/supplemental/bad_status_code.json b/adapters/mobfoxpb/mobfoxpbtest/supplemental/bad_status_code.json index 60ee36e48e3..0d6bf89438e 100644 --- a/adapters/mobfoxpb/mobfoxpbtest/supplemental/bad_status_code.json +++ b/adapters/mobfoxpb/mobfoxpbtest/supplemental/bad_status_code.json @@ -62,7 +62,8 @@ "bundle": "com.wls.testwlsapplication" }, "device": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/mobfoxpb/mobfoxpbtest/supplemental/missmatch_bid_id.json b/adapters/mobfoxpb/mobfoxpbtest/supplemental/missmatch_bid_id.json index 391462e8b41..f1b0c5ce649 100644 --- a/adapters/mobfoxpb/mobfoxpbtest/supplemental/missmatch_bid_id.json +++ b/adapters/mobfoxpb/mobfoxpbtest/supplemental/missmatch_bid_id.json @@ -66,7 +66,8 @@ "device": { "ip": "123.123.123.123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/mobfoxpb/mobfoxpbtest/supplemental/status-204.json b/adapters/mobfoxpb/mobfoxpbtest/supplemental/status-204.json index e69b248d2a1..5b04156862b 100644 --- a/adapters/mobfoxpb/mobfoxpbtest/supplemental/status-204.json +++ b/adapters/mobfoxpb/mobfoxpbtest/supplemental/status-204.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "expectedBidResponses": [], "mockResponse": { diff --git a/adapters/mobfoxpb/mobfoxpbtest/supplemental/status-404.json b/adapters/mobfoxpb/mobfoxpbtest/supplemental/status-404.json index 987b9daf980..8e3ca3226fa 100644 --- a/adapters/mobfoxpb/mobfoxpbtest/supplemental/status-404.json +++ b/adapters/mobfoxpb/mobfoxpbtest/supplemental/status-404.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/mobilefuse/mobilefuse.go b/adapters/mobilefuse/mobilefuse.go index 30f24b3d3c3..6d0ab2ec3f5 100644 --- a/adapters/mobilefuse/mobilefuse.go +++ b/adapters/mobilefuse/mobilefuse.go @@ -131,6 +131,7 @@ func (adapter *MobileFuseAdapter) makeRequest(bidRequest *openrtb2.BidRequest) ( Uri: endpoint, Body: body, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(mobileFuseBidRequest.Imp), }, errs } diff --git a/adapters/mobilefuse/mobilefusetest/exemplary/multi-format.json b/adapters/mobilefuse/mobilefusetest/exemplary/multi-format.json index 259572d14b1..312a46277f2 100644 --- a/adapters/mobilefuse/mobilefusetest/exemplary/multi-format.json +++ b/adapters/mobilefuse/mobilefusetest/exemplary/multi-format.json @@ -64,7 +64,8 @@ "tagid": "123456" } ] - } + }, + "impIDs":["1"] }, "mockResponse": { diff --git a/adapters/mobilefuse/mobilefusetest/exemplary/multi-imps-multi-format.json b/adapters/mobilefuse/mobilefusetest/exemplary/multi-imps-multi-format.json index c31cb1ced55..d58eba6561c 100644 --- a/adapters/mobilefuse/mobilefusetest/exemplary/multi-imps-multi-format.json +++ b/adapters/mobilefuse/mobilefusetest/exemplary/multi-imps-multi-format.json @@ -100,7 +100,8 @@ "tagid": "234567" } ] - } + }, + "impIDs":["1","2"] }, "mockResponse": { "status": 200, diff --git a/adapters/mobilefuse/mobilefusetest/exemplary/multi-imps.json b/adapters/mobilefuse/mobilefusetest/exemplary/multi-imps.json index 15ba4f96d6b..671c7ec1b36 100644 --- a/adapters/mobilefuse/mobilefusetest/exemplary/multi-imps.json +++ b/adapters/mobilefuse/mobilefusetest/exemplary/multi-imps.json @@ -71,7 +71,8 @@ "tagid": "234567" } ] - } + }, + "impIDs":["1","2"] }, "mockResponse": { diff --git a/adapters/mobilefuse/mobilefusetest/exemplary/no-bid.json b/adapters/mobilefuse/mobilefusetest/exemplary/no-bid.json index 6310b56cebd..7ba4b900cba 100644 --- a/adapters/mobilefuse/mobilefusetest/exemplary/no-bid.json +++ b/adapters/mobilefuse/mobilefusetest/exemplary/no-bid.json @@ -42,7 +42,8 @@ "tagid": "999999" } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 204, diff --git a/adapters/mobilefuse/mobilefusetest/exemplary/optional-params.json b/adapters/mobilefuse/mobilefusetest/exemplary/optional-params.json index 3c51643a0fd..7d5d73e2d0f 100644 --- a/adapters/mobilefuse/mobilefusetest/exemplary/optional-params.json +++ b/adapters/mobilefuse/mobilefusetest/exemplary/optional-params.json @@ -43,7 +43,8 @@ "tagid": "999999" } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 204, diff --git a/adapters/mobilefuse/mobilefusetest/exemplary/simple-banner.json b/adapters/mobilefuse/mobilefusetest/exemplary/simple-banner.json index b70c2801755..3fbf9dd8503 100644 --- a/adapters/mobilefuse/mobilefusetest/exemplary/simple-banner.json +++ b/adapters/mobilefuse/mobilefusetest/exemplary/simple-banner.json @@ -42,7 +42,8 @@ "tagid": "123456" } ] - } + }, + "impIDs":["1"] }, "mockResponse": { diff --git a/adapters/mobilefuse/mobilefusetest/exemplary/simple-native.json b/adapters/mobilefuse/mobilefusetest/exemplary/simple-native.json index a23a1a39973..5b226045c56 100644 --- a/adapters/mobilefuse/mobilefusetest/exemplary/simple-native.json +++ b/adapters/mobilefuse/mobilefusetest/exemplary/simple-native.json @@ -33,7 +33,8 @@ "tagid": "123456" } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/mobilefuse/mobilefusetest/exemplary/simple-video.json b/adapters/mobilefuse/mobilefusetest/exemplary/simple-video.json index b290652ae8f..bfc3bcc935c 100644 --- a/adapters/mobilefuse/mobilefusetest/exemplary/simple-video.json +++ b/adapters/mobilefuse/mobilefusetest/exemplary/simple-video.json @@ -47,7 +47,8 @@ "tagid": "200000" } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/mobilefuse/mobilefusetest/exemplary/skadn.json b/adapters/mobilefuse/mobilefusetest/exemplary/skadn.json index e8fd66b1111..0fa29b71aee 100644 --- a/adapters/mobilefuse/mobilefusetest/exemplary/skadn.json +++ b/adapters/mobilefuse/mobilefusetest/exemplary/skadn.json @@ -66,7 +66,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 204, diff --git a/adapters/mobilefuse/mobilefusetest/supplemental/bad-status-code.json b/adapters/mobilefuse/mobilefusetest/supplemental/bad-status-code.json index c2e9a61cbb4..3de2506bffa 100644 --- a/adapters/mobilefuse/mobilefusetest/supplemental/bad-status-code.json +++ b/adapters/mobilefuse/mobilefusetest/supplemental/bad-status-code.json @@ -49,7 +49,8 @@ "tagid": "999999" } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 400, diff --git a/adapters/mobilefuse/mobilefusetest/supplemental/server-error-response.json b/adapters/mobilefuse/mobilefusetest/supplemental/server-error-response.json index 59c179d7048..b8b8eb3f047 100644 --- a/adapters/mobilefuse/mobilefusetest/supplemental/server-error-response.json +++ b/adapters/mobilefuse/mobilefusetest/supplemental/server-error-response.json @@ -49,7 +49,8 @@ "tagid": "999999" } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 500, diff --git a/adapters/motorik/motorik.go b/adapters/motorik/motorik.go index 652d28badc6..73cfccde107 100644 --- a/adapters/motorik/motorik.go +++ b/adapters/motorik/motorik.go @@ -76,6 +76,7 @@ func (a *adapter) MakeRequests(openRTBRequest *openrtb2.BidRequest, reqInfo *ada Body: reqJSON, Uri: url, Headers: getHeaders(openRTBRequest), + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), }}, nil } diff --git a/adapters/motorik/motoriktest/exemplary/banner-app.json b/adapters/motorik/motoriktest/exemplary/banner-app.json index 18d8efc7dbb..729a94f7f3f 100644 --- a/adapters/motorik/motoriktest/exemplary/banner-app.json +++ b/adapters/motorik/motoriktest/exemplary/banner-app.json @@ -95,7 +95,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/motorik/motoriktest/exemplary/banner-web.json b/adapters/motorik/motoriktest/exemplary/banner-web.json index 024b553a9dd..e72e4d05937 100644 --- a/adapters/motorik/motoriktest/exemplary/banner-web.json +++ b/adapters/motorik/motoriktest/exemplary/banner-web.json @@ -111,7 +111,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id1","some-impression-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/motorik/motoriktest/exemplary/native-app.json b/adapters/motorik/motoriktest/exemplary/native-app.json index 2f917f02da1..29bf51a386b 100644 --- a/adapters/motorik/motoriktest/exemplary/native-app.json +++ b/adapters/motorik/motoriktest/exemplary/native-app.json @@ -95,7 +95,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/motorik/motoriktest/exemplary/native-web.json b/adapters/motorik/motoriktest/exemplary/native-web.json index 7ffc0bb24ee..556029e2bd5 100644 --- a/adapters/motorik/motoriktest/exemplary/native-web.json +++ b/adapters/motorik/motoriktest/exemplary/native-web.json @@ -83,7 +83,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/motorik/motoriktest/exemplary/video-app.json b/adapters/motorik/motoriktest/exemplary/video-app.json index caee18cdf03..5d54edb309d 100644 --- a/adapters/motorik/motoriktest/exemplary/video-app.json +++ b/adapters/motorik/motoriktest/exemplary/video-app.json @@ -105,7 +105,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/motorik/motoriktest/exemplary/video-web.json b/adapters/motorik/motoriktest/exemplary/video-web.json index 0c3afebce99..6a57ad034e0 100644 --- a/adapters/motorik/motoriktest/exemplary/video-web.json +++ b/adapters/motorik/motoriktest/exemplary/video-web.json @@ -93,7 +93,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/motorik/motoriktest/supplemental/bad_media_type.json b/adapters/motorik/motoriktest/supplemental/bad_media_type.json index 103b9cf85af..0056b4e5c72 100644 --- a/adapters/motorik/motoriktest/supplemental/bad_media_type.json +++ b/adapters/motorik/motoriktest/supplemental/bad_media_type.json @@ -95,7 +95,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/motorik/motoriktest/supplemental/empty-seatbid-array.json b/adapters/motorik/motoriktest/supplemental/empty-seatbid-array.json index 9447d661041..9f0f58a36c9 100644 --- a/adapters/motorik/motoriktest/supplemental/empty-seatbid-array.json +++ b/adapters/motorik/motoriktest/supplemental/empty-seatbid-array.json @@ -105,7 +105,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/motorik/motoriktest/supplemental/invalid-response.json b/adapters/motorik/motoriktest/supplemental/invalid-response.json index c497f9df90a..ff64175f63f 100644 --- a/adapters/motorik/motoriktest/supplemental/invalid-response.json +++ b/adapters/motorik/motoriktest/supplemental/invalid-response.json @@ -96,7 +96,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/motorik/motoriktest/supplemental/status-code-bad-request.json b/adapters/motorik/motoriktest/supplemental/status-code-bad-request.json index 293c74b839a..de9bb94716f 100644 --- a/adapters/motorik/motoriktest/supplemental/status-code-bad-request.json +++ b/adapters/motorik/motoriktest/supplemental/status-code-bad-request.json @@ -77,7 +77,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/motorik/motoriktest/supplemental/status-code-no-content.json b/adapters/motorik/motoriktest/supplemental/status-code-no-content.json index 095b869e3d7..d59715a1229 100644 --- a/adapters/motorik/motoriktest/supplemental/status-code-no-content.json +++ b/adapters/motorik/motoriktest/supplemental/status-code-no-content.json @@ -58,7 +58,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/motorik/motoriktest/supplemental/status-code-other-error.json b/adapters/motorik/motoriktest/supplemental/status-code-other-error.json index 95e607bed04..0f8cffa77fe 100644 --- a/adapters/motorik/motoriktest/supplemental/status-code-other-error.json +++ b/adapters/motorik/motoriktest/supplemental/status-code-other-error.json @@ -63,7 +63,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 306 diff --git a/adapters/motorik/motoriktest/supplemental/status-code-service-unavailable.json b/adapters/motorik/motoriktest/supplemental/status-code-service-unavailable.json index aa03e6f1c27..8b3aef27991 100644 --- a/adapters/motorik/motoriktest/supplemental/status-code-service-unavailable.json +++ b/adapters/motorik/motoriktest/supplemental/status-code-service-unavailable.json @@ -63,7 +63,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/nextmillennium/nextmillennium.go b/adapters/nextmillennium/nextmillennium.go index 608b0b5b240..38d1c72549e 100644 --- a/adapters/nextmillennium/nextmillennium.go +++ b/adapters/nextmillennium/nextmillennium.go @@ -106,7 +106,8 @@ func (adapter *adapter) buildAdapterRequest(prebidBidRequest *openrtb2.BidReques Method: "POST", Uri: adapter.endpoint, Body: reqJSON, - Headers: headers}, nil + Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(newBidRequest.Imp)}, nil } func createBidRequest(prebidBidRequest *openrtb2.BidRequest, params *openrtb_ext.ImpExtNextMillennium, flags []string, serverParams config.Server) *openrtb2.BidRequest { diff --git a/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-empty-group-id.json b/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-empty-group-id.json index 4db813f56df..9b54c58a0bf 100644 --- a/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-empty-group-id.json +++ b/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-empty-group-id.json @@ -70,7 +70,8 @@ "id": "123654" } ] - } + }, + "impIDs":["123654"] }, "mockResponse": { "status": 200, diff --git a/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-with-group-id.json b/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-with-group-id.json index ef46dba6ccd..d8f6915bf28 100644 --- a/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-with-group-id.json +++ b/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-with-group-id.json @@ -93,7 +93,8 @@ "domain": "example.com" } } - } + }, + "impIDs":["123654"] }, "mockResponse": { "status": 200, diff --git a/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-with-group-id_app.json b/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-with-group-id_app.json index 5b23888ee5a..2f0d9789b0c 100644 --- a/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-with-group-id_app.json +++ b/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-with-group-id_app.json @@ -79,7 +79,8 @@ "id": "123654" } ] - } + }, + "impIDs":["123654"] }, "mockResponse": { "status": 200, diff --git a/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-with-only-width.json b/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-with-only-width.json index f18aae21b9b..35cb9bb7581 100644 --- a/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-with-only-width.json +++ b/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-with-only-width.json @@ -57,7 +57,8 @@ "id": "123654" } ] - } + }, + "impIDs":["123654"] }, "mockResponse": { "status": 200, diff --git a/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-with-wh.json b/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-with-wh.json index 29d3ce8d942..6206b4a2828 100644 --- a/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-with-wh.json +++ b/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-with-wh.json @@ -59,7 +59,8 @@ "id": "123654" } ] - } + }, + "impIDs":["123654"] }, "mockResponse": { "status": 200, diff --git a/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-wo-domain.json b/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-wo-domain.json index 8ff3f454153..ddefb32fa90 100644 --- a/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-wo-domain.json +++ b/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-wo-domain.json @@ -73,7 +73,8 @@ "id": "123654" } ] - } + }, + "impIDs":["123654"] }, "mockResponse": { "status": 200, diff --git a/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-wo-size.json b/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-wo-size.json index de6a8cde1da..337876ad0e5 100644 --- a/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-wo-size.json +++ b/adapters/nextmillennium/nextmillenniumtest/exemplary/banner-wo-size.json @@ -69,7 +69,8 @@ "id": "123654" } ] - } + }, + "impIDs":["123654"] }, "mockResponse": { "status": 200, diff --git a/adapters/nextmillennium/nextmillenniumtest/exemplary/banner.json b/adapters/nextmillennium/nextmillenniumtest/exemplary/banner.json index d992a5af4bb..2f60bb95916 100644 --- a/adapters/nextmillennium/nextmillenniumtest/exemplary/banner.json +++ b/adapters/nextmillennium/nextmillenniumtest/exemplary/banner.json @@ -73,7 +73,8 @@ "id": "123654" } ] - } + }, + "impIDs":["123654"] }, "mockResponse": { "status": 200, diff --git a/adapters/nextmillennium/nextmillenniumtest/exemplary/empty-banner-obj.json b/adapters/nextmillennium/nextmillenniumtest/exemplary/empty-banner-obj.json index 70755fe6979..cadef9cdb5c 100644 --- a/adapters/nextmillennium/nextmillenniumtest/exemplary/empty-banner-obj.json +++ b/adapters/nextmillennium/nextmillenniumtest/exemplary/empty-banner-obj.json @@ -47,7 +47,8 @@ "id": "123654" } ] - } + }, + "impIDs":["123654"] }, "mockResponse": { "status": 200, diff --git a/adapters/nextmillennium/nextmillenniumtest/exemplary/video.json b/adapters/nextmillennium/nextmillenniumtest/exemplary/video.json index 442f8ea9c99..ff96522166a 100644 --- a/adapters/nextmillennium/nextmillenniumtest/exemplary/video.json +++ b/adapters/nextmillennium/nextmillenniumtest/exemplary/video.json @@ -65,7 +65,8 @@ "id": "123654" } ] - } + }, + "impIDs": ["123654"] }, "mockResponse": { "status": 200, diff --git a/adapters/nextmillennium/nextmillenniumtest/supplemental/empty-seatbid.json b/adapters/nextmillennium/nextmillenniumtest/supplemental/empty-seatbid.json index bc976492404..e75d787e28a 100644 --- a/adapters/nextmillennium/nextmillenniumtest/supplemental/empty-seatbid.json +++ b/adapters/nextmillennium/nextmillenniumtest/supplemental/empty-seatbid.json @@ -72,7 +72,8 @@ "id": "testimpid" } ] - } + }, + "impIDs":["testimpid"] }, "mockResponse": { "status": 200, diff --git a/adapters/nextmillennium/nextmillenniumtest/supplemental/error-response.json b/adapters/nextmillennium/nextmillenniumtest/supplemental/error-response.json index f846fd709ba..b2d69c3ebc7 100644 --- a/adapters/nextmillennium/nextmillenniumtest/supplemental/error-response.json +++ b/adapters/nextmillennium/nextmillenniumtest/supplemental/error-response.json @@ -64,7 +64,8 @@ "id": "test-imp-id" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500 diff --git a/adapters/nextmillennium/nextmillenniumtest/supplemental/no-content.json b/adapters/nextmillennium/nextmillenniumtest/supplemental/no-content.json index 3df21fd591f..d7ad3f64fcd 100644 --- a/adapters/nextmillennium/nextmillenniumtest/supplemental/no-content.json +++ b/adapters/nextmillennium/nextmillenniumtest/supplemental/no-content.json @@ -64,7 +64,8 @@ "id": "test-imp-id" } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/nobid/nobid.go b/adapters/nobid/nobid.go index 8188def9681..455ba7500b0 100644 --- a/adapters/nobid/nobid.go +++ b/adapters/nobid/nobid.go @@ -48,6 +48,7 @@ func (a *NoBidAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapt Uri: a.endpoint, Body: data, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, []error{} } diff --git a/adapters/nobid/nobidtest/exemplary/banner.json b/adapters/nobid/nobidtest/exemplary/banner.json index 914eaf248c6..d3004ae3d5b 100644 --- a/adapters/nobid/nobidtest/exemplary/banner.json +++ b/adapters/nobid/nobidtest/exemplary/banner.json @@ -35,7 +35,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/nobid/nobidtest/supplemental/bad-mediatype.json b/adapters/nobid/nobidtest/supplemental/bad-mediatype.json index 6b07d597db7..19a461f4691 100644 --- a/adapters/nobid/nobidtest/supplemental/bad-mediatype.json +++ b/adapters/nobid/nobidtest/supplemental/bad-mediatype.json @@ -32,7 +32,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] } } ], diff --git a/adapters/nobid/nobidtest/supplemental/bad-request.json b/adapters/nobid/nobidtest/supplemental/bad-request.json index 00d0f40465f..8f1d07a145e 100644 --- a/adapters/nobid/nobidtest/supplemental/bad-request.json +++ b/adapters/nobid/nobidtest/supplemental/bad-request.json @@ -34,7 +34,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/nobid/nobidtest/supplemental/bad-response.json b/adapters/nobid/nobidtest/supplemental/bad-response.json index 617f92734d0..fb48addca22 100644 --- a/adapters/nobid/nobidtest/supplemental/bad-response.json +++ b/adapters/nobid/nobidtest/supplemental/bad-response.json @@ -35,7 +35,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/nobid/nobidtest/supplemental/no-content.json b/adapters/nobid/nobidtest/supplemental/no-content.json index a81ca5bdc89..8e02f0cb435 100644 --- a/adapters/nobid/nobidtest/supplemental/no-content.json +++ b/adapters/nobid/nobidtest/supplemental/no-content.json @@ -34,7 +34,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/nobid/nobidtest/supplemental/notok-response.json b/adapters/nobid/nobidtest/supplemental/notok-response.json index ea9d380da99..e5e68fd2415 100644 --- a/adapters/nobid/nobidtest/supplemental/notok-response.json +++ b/adapters/nobid/nobidtest/supplemental/notok-response.json @@ -34,7 +34,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500 diff --git a/adapters/oms/oms.go b/adapters/oms/oms.go index c4121a90614..c2e7c394cb5 100644 --- a/adapters/oms/oms.go +++ b/adapters/oms/oms.go @@ -34,6 +34,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: a.endpoint, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/oms/omstest/exemplary/simple-banner-cookie-uid.json b/adapters/oms/omstest/exemplary/simple-banner-cookie-uid.json index 576173b548c..c5f207dd46f 100755 --- a/adapters/oms/omstest/exemplary/simple-banner-cookie-uid.json +++ b/adapters/oms/omstest/exemplary/simple-banner-cookie-uid.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/oms/omstest/exemplary/simple-banner-multiple-bids.json b/adapters/oms/omstest/exemplary/simple-banner-multiple-bids.json index 6b292b27a53..7100809d198 100644 --- a/adapters/oms/omstest/exemplary/simple-banner-multiple-bids.json +++ b/adapters/oms/omstest/exemplary/simple-banner-multiple-bids.json @@ -123,7 +123,8 @@ } } ] - } + }, + "impIDs":["test-imp-id","test-imp-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/oms/omstest/exemplary/simple-banner-uid.json b/adapters/oms/omstest/exemplary/simple-banner-uid.json index 077c5562448..678997d3e6c 100755 --- a/adapters/oms/omstest/exemplary/simple-banner-uid.json +++ b/adapters/oms/omstest/exemplary/simple-banner-uid.json @@ -91,7 +91,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/oms/omstest/exemplary/simple-multi-type-banner.json b/adapters/oms/omstest/exemplary/simple-multi-type-banner.json index 7e96dbfcc7e..5e0a0c9e5d2 100644 --- a/adapters/oms/omstest/exemplary/simple-multi-type-banner.json +++ b/adapters/oms/omstest/exemplary/simple-multi-type-banner.json @@ -103,7 +103,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/oms/omstest/supplemental/204-response-from-target.json b/adapters/oms/omstest/supplemental/204-response-from-target.json index 63a0829d9f3..f6a6edd034b 100755 --- a/adapters/oms/omstest/supplemental/204-response-from-target.json +++ b/adapters/oms/omstest/supplemental/204-response-from-target.json @@ -73,7 +73,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/oms/omstest/supplemental/400-response-from-target.json b/adapters/oms/omstest/supplemental/400-response-from-target.json index 831788f229d..0151f98f208 100755 --- a/adapters/oms/omstest/supplemental/400-response-from-target.json +++ b/adapters/oms/omstest/supplemental/400-response-from-target.json @@ -73,7 +73,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/oms/omstest/supplemental/500-response-from-target.json b/adapters/oms/omstest/supplemental/500-response-from-target.json index 9e4e48e2f2b..8893e436f5f 100755 --- a/adapters/oms/omstest/supplemental/500-response-from-target.json +++ b/adapters/oms/omstest/supplemental/500-response-from-target.json @@ -73,7 +73,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500 diff --git a/adapters/oms/omstest/supplemental/simple-banner-with-ipv6.json b/adapters/oms/omstest/supplemental/simple-banner-with-ipv6.json index f473ecd6f21..093ffeed648 100755 --- a/adapters/oms/omstest/supplemental/simple-banner-with-ipv6.json +++ b/adapters/oms/omstest/supplemental/simple-banner-with-ipv6.json @@ -83,7 +83,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/onetag/onetag.go b/adapters/onetag/onetag.go index 7745d1a18ae..938414c2759 100644 --- a/adapters/onetag/onetag.go +++ b/adapters/onetag/onetag.go @@ -68,6 +68,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: url, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/onetag/onetagtest/exemplary/no-bid.json b/adapters/onetag/onetagtest/exemplary/no-bid.json index 012834ca8a4..091d329a4ce 100644 --- a/adapters/onetag/onetagtest/exemplary/no-bid.json +++ b/adapters/onetag/onetagtest/exemplary/no-bid.json @@ -66,7 +66,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/onetag/onetagtest/exemplary/simple-banner.json b/adapters/onetag/onetagtest/exemplary/simple-banner.json index 7489a27dbff..2484523652e 100644 --- a/adapters/onetag/onetagtest/exemplary/simple-banner.json +++ b/adapters/onetag/onetagtest/exemplary/simple-banner.json @@ -113,7 +113,8 @@ "cur": [ "USD" ] - } + }, + "impIDs":["121-dt1","121-dt2"] }, "mockResponse": { "status": 200, diff --git a/adapters/onetag/onetagtest/exemplary/simple-native.json b/adapters/onetag/onetagtest/exemplary/simple-native.json index 08fef34f7a7..c7a499d82cd 100644 --- a/adapters/onetag/onetagtest/exemplary/simple-native.json +++ b/adapters/onetag/onetagtest/exemplary/simple-native.json @@ -70,7 +70,8 @@ "buyeruid": "0000-000-000-0000" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/onetag/onetagtest/exemplary/simple-video.json b/adapters/onetag/onetagtest/exemplary/simple-video.json index ea656a98fc8..73b830aa264 100644 --- a/adapters/onetag/onetagtest/exemplary/simple-video.json +++ b/adapters/onetag/onetagtest/exemplary/simple-video.json @@ -66,7 +66,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/onetag/onetagtest/supplemental/internal-server-error.json b/adapters/onetag/onetagtest/supplemental/internal-server-error.json index 4fc069598c7..fd7a2385b55 100644 --- a/adapters/onetag/onetagtest/supplemental/internal-server-error.json +++ b/adapters/onetag/onetagtest/supplemental/internal-server-error.json @@ -66,7 +66,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/onetag/onetagtest/supplemental/wrong-impression-id.json b/adapters/onetag/onetagtest/supplemental/wrong-impression-id.json index bfdfcc5f3e3..a8da8949b10 100644 --- a/adapters/onetag/onetagtest/supplemental/wrong-impression-id.json +++ b/adapters/onetag/onetagtest/supplemental/wrong-impression-id.json @@ -82,7 +82,8 @@ "cur": [ "USD" ] - } + }, + "impIDs":["121-dt1"] }, "mockResponse": { "status": 200, diff --git a/adapters/openweb/openweb.go b/adapters/openweb/openweb.go index 16a5ff91689..b74e97dfc3f 100644 --- a/adapters/openweb/openweb.go +++ b/adapters/openweb/openweb.go @@ -77,6 +77,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: a.endpoint + fmt.Sprintf("?aid=%d", sourceId), Body: body, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(reqCopy.Imp), }) } diff --git a/adapters/openweb/openwebtest/exemplary/multiple-imps-same-aid.json b/adapters/openweb/openwebtest/exemplary/multiple-imps-same-aid.json index 2abc32695bc..2fd7c195b3e 100644 --- a/adapters/openweb/openwebtest/exemplary/multiple-imps-same-aid.json +++ b/adapters/openweb/openwebtest/exemplary/multiple-imps-same-aid.json @@ -104,7 +104,8 @@ } } ] - } + }, + "impIDs":["test-imp-id","test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/openweb/openwebtest/exemplary/simple-banner.json b/adapters/openweb/openwebtest/exemplary/simple-banner.json index dc4c42ac65c..b742fa50eb9 100644 --- a/adapters/openweb/openwebtest/exemplary/simple-banner.json +++ b/adapters/openweb/openwebtest/exemplary/simple-banner.json @@ -76,7 +76,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, @@ -124,7 +125,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/openweb/openwebtest/exemplary/simple-video.json b/adapters/openweb/openwebtest/exemplary/simple-video.json index 795938a9ad8..e8052e7ebf2 100644 --- a/adapters/openweb/openwebtest/exemplary/simple-video.json +++ b/adapters/openweb/openwebtest/exemplary/simple-video.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/openweb/openwebtest/supplemental/status-204.json b/adapters/openweb/openwebtest/supplemental/status-204.json index 8c0274adda6..637c2113fc5 100644 --- a/adapters/openweb/openwebtest/supplemental/status-204.json +++ b/adapters/openweb/openwebtest/supplemental/status-204.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/openweb/openwebtest/supplemental/status-400.json b/adapters/openweb/openwebtest/supplemental/status-400.json index 1b8ea455483..20500de2b4a 100644 --- a/adapters/openweb/openwebtest/supplemental/status-400.json +++ b/adapters/openweb/openwebtest/supplemental/status-400.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/openweb/openwebtest/supplemental/status-500.json b/adapters/openweb/openwebtest/supplemental/status-500.json index 1dac7250114..48cfab3b7fa 100644 --- a/adapters/openweb/openwebtest/supplemental/status-500.json +++ b/adapters/openweb/openwebtest/supplemental/status-500.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/openweb/openwebtest/supplemental/wrong-impression-mapping.json b/adapters/openweb/openwebtest/supplemental/wrong-impression-mapping.json index d733df3ac3e..f83ec46da6f 100644 --- a/adapters/openweb/openwebtest/supplemental/wrong-impression-mapping.json +++ b/adapters/openweb/openwebtest/supplemental/wrong-impression-mapping.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/openx/openx.go b/adapters/openx/openx.go index c29be0baa81..e59dab534a4 100644 --- a/adapters/openx/openx.go +++ b/adapters/openx/openx.go @@ -110,6 +110,7 @@ func (a *OpenxAdapter) makeRequest(request *openrtb2.BidRequest) (*adapters.Requ Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, errs } diff --git a/adapters/openx/openxtest/exemplary/fledge-no-bids.json b/adapters/openx/openxtest/exemplary/fledge-no-bids.json index 5c09b9ae600..03fafac38ab 100644 --- a/adapters/openx/openxtest/exemplary/fledge-no-bids.json +++ b/adapters/openx/openxtest/exemplary/fledge-no-bids.json @@ -40,7 +40,8 @@ "bc": "hb_pbs_1.0.0", "delDomain": "se-demo-d.openx.net" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/openx/openxtest/exemplary/fledge.json b/adapters/openx/openxtest/exemplary/fledge.json index 9c8074b339a..256408eb850 100644 --- a/adapters/openx/openxtest/exemplary/fledge.json +++ b/adapters/openx/openxtest/exemplary/fledge.json @@ -40,7 +40,8 @@ "bc": "hb_pbs_1.0.0", "delDomain": "se-demo-d.openx.net" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/openx/openxtest/exemplary/imp-ext-passthrough.json b/adapters/openx/openxtest/exemplary/imp-ext-passthrough.json index 976bc90224b..cd14290922d 100644 --- a/adapters/openx/openxtest/exemplary/imp-ext-passthrough.json +++ b/adapters/openx/openxtest/exemplary/imp-ext-passthrough.json @@ -61,7 +61,8 @@ "bc": "hb_pbs_1.0.0", "delDomain": "se-demo-d.openx.net" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/openx/openxtest/exemplary/optional-params.json b/adapters/openx/openxtest/exemplary/optional-params.json index 93dbafc5bfb..ff8c9f56549 100644 --- a/adapters/openx/openxtest/exemplary/optional-params.json +++ b/adapters/openx/openxtest/exemplary/optional-params.json @@ -67,7 +67,8 @@ "delDomain": "se-demo-d.openx.net", "platform": "PLATFORM" } - } + }, + "impIDs":["test-imp-id","test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/openx/openxtest/exemplary/simple-banner.json b/adapters/openx/openxtest/exemplary/simple-banner.json index 25ac0a09a45..35b02878f38 100644 --- a/adapters/openx/openxtest/exemplary/simple-banner.json +++ b/adapters/openx/openxtest/exemplary/simple-banner.json @@ -36,7 +36,8 @@ "bc": "hb_pbs_1.0.0", "delDomain": "se-demo-d.openx.net" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/openx/openxtest/exemplary/simple-video.json b/adapters/openx/openxtest/exemplary/simple-video.json index 518d7df1f34..4b7d7798b96 100644 --- a/adapters/openx/openxtest/exemplary/simple-video.json +++ b/adapters/openx/openxtest/exemplary/simple-video.json @@ -42,7 +42,8 @@ "bc": "hb_pbs_1.0.0", "delDomain": "se-demo-d.openx.net" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/openx/openxtest/exemplary/video-rewarded.json b/adapters/openx/openxtest/exemplary/video-rewarded.json index b16a92f23ac..f2eee34b465 100644 --- a/adapters/openx/openxtest/exemplary/video-rewarded.json +++ b/adapters/openx/openxtest/exemplary/video-rewarded.json @@ -53,7 +53,8 @@ "bc": "hb_pbs_1.0.0", "delDomain": "se-demo-d.openx.net" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/openx/openxtest/supplemental/multi-imp.json b/adapters/openx/openxtest/supplemental/multi-imp.json index 494a93e5820..c6b770e3a85 100644 --- a/adapters/openx/openxtest/supplemental/multi-imp.json +++ b/adapters/openx/openxtest/supplemental/multi-imp.json @@ -84,7 +84,8 @@ "bc": "hb_pbs_1.0.0", "delDomain": "se-demo-d.openx.net" } - } + }, + "impIDs":["banner-imp-1","banner-imp-2","multi-type-imp"] }, "mockResponse": { "status": 200, @@ -131,7 +132,8 @@ "bc": "hb_pbs_1.0.0", "delDomain": "se-demo-d.openx.net" } - } + }, + "impIDs":["video-imp-1"] }, "mockResponse": { "status": 200, @@ -168,7 +170,8 @@ "bc": "hb_pbs_1.0.0", "delDomain": "se-demo-d.openx.net" } - } + }, + "impIDs":["video-imp-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/operaads/operaads.go b/adapters/operaads/operaads.go index 222d148ed93..21aecd63226 100644 --- a/adapters/operaads/operaads.go +++ b/adapters/operaads/operaads.go @@ -136,6 +136,7 @@ func flatImp(requestCopy openrtb2.BidRequest, impCopy openrtb2.Imp, headers http Uri: endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), }, nil } diff --git a/adapters/operaads/operaadstest/exemplary/multiformat.json b/adapters/operaads/operaadstest/exemplary/multiformat.json index 6f631f67006..6d8072c7a3c 100644 --- a/adapters/operaads/operaadstest/exemplary/multiformat.json +++ b/adapters/operaads/operaadstest/exemplary/multiformat.json @@ -75,7 +75,8 @@ "buyeruid": "8299345306627569435" }, "tmax": 500 - } + }, + "impIDs":["some-imp-id:opa:native"] }, "mockResponse": { "status": 200, @@ -152,7 +153,8 @@ "buyeruid": "8299345306627569435" }, "tmax": 500 - } + }, + "impIDs":["some-imp-id:opa:banner"] }, "mockResponse": { "status": 200, diff --git a/adapters/operaads/operaadstest/exemplary/native.json b/adapters/operaads/operaadstest/exemplary/native.json index 4b3da8d7ea6..a21f6d174ac 100644 --- a/adapters/operaads/operaadstest/exemplary/native.json +++ b/adapters/operaads/operaadstest/exemplary/native.json @@ -67,7 +67,8 @@ "buyeruid":"8299345306627569435" }, "tmax":500 - } + }, + "impIDs":["some-imp-id:opa:native"] }, "mockResponse":{ "status":200, diff --git a/adapters/operaads/operaadstest/exemplary/simple-banner.json b/adapters/operaads/operaadstest/exemplary/simple-banner.json index 8a7c12695a7..009b8ccea65 100644 --- a/adapters/operaads/operaadstest/exemplary/simple-banner.json +++ b/adapters/operaads/operaadstest/exemplary/simple-banner.json @@ -99,7 +99,8 @@ "source": { "tid": "283746293874293" } - } + }, + "impIDs":["test-imp-id:opa:banner"] }, "mockResponse": { "status": 200, diff --git a/adapters/operaads/operaadstest/exemplary/video.json b/adapters/operaads/operaadstest/exemplary/video.json index 74f7665bfa3..ab3c0360537 100644 --- a/adapters/operaads/operaadstest/exemplary/video.json +++ b/adapters/operaads/operaadstest/exemplary/video.json @@ -115,7 +115,8 @@ "id": "1234" } } - } + }, + "impIDs":["test-video-imp:opa:video"] }, "mockResponse": { "status": 200, diff --git a/adapters/operaads/operaadstest/supplemental/badrequest.json b/adapters/operaads/operaadstest/supplemental/badrequest.json index 9e5af929c32..46ef98fe5b5 100644 --- a/adapters/operaads/operaadstest/supplemental/badrequest.json +++ b/adapters/operaads/operaadstest/supplemental/badrequest.json @@ -67,7 +67,8 @@ "buyeruid":"8299345306627569435" }, "tmax":500 - } + }, + "impIDs":["some-imp-id:opa:native"] }, "mockResponse":{ "status":400, diff --git a/adapters/operaads/operaadstest/supplemental/miss-native.json b/adapters/operaads/operaadstest/supplemental/miss-native.json index 5acde96be77..db108b41cf6 100644 --- a/adapters/operaads/operaadstest/supplemental/miss-native.json +++ b/adapters/operaads/operaadstest/supplemental/miss-native.json @@ -67,7 +67,8 @@ "buyeruid":"8299345306627569435" }, "tmax":500 - } + }, + "impIDs":["some-imp-id:opa:native"] }, "mockResponse":{ "status":200, diff --git a/adapters/operaads/operaadstest/supplemental/nocontent.json b/adapters/operaads/operaadstest/supplemental/nocontent.json index 219a2c6912d..9bf8cc5eb79 100644 --- a/adapters/operaads/operaadstest/supplemental/nocontent.json +++ b/adapters/operaads/operaadstest/supplemental/nocontent.json @@ -67,7 +67,8 @@ "buyeruid": "8299345306627569435" }, "tmax": 500 - } + }, + "impIDs":["some-imp-id:opa:native"] }, "mockResponse": { "status": 204, diff --git a/adapters/operaads/operaadstest/supplemental/unexcept-statuscode.json b/adapters/operaads/operaadstest/supplemental/unexcept-statuscode.json index 3d64f9cbf2c..3d7c9b75cd4 100644 --- a/adapters/operaads/operaadstest/supplemental/unexcept-statuscode.json +++ b/adapters/operaads/operaadstest/supplemental/unexcept-statuscode.json @@ -67,7 +67,8 @@ "buyeruid":"8299345306627569435" }, "tmax":500 - } + }, + "impIDs":["some-imp-id:opa:native"] }, "mockResponse":{ "status":205, diff --git a/adapters/orbidder/orbidder.go b/adapters/orbidder/orbidder.go index 41d5c37002b..0e8edaeb0bb 100644 --- a/adapters/orbidder/orbidder.go +++ b/adapters/orbidder/orbidder.go @@ -42,6 +42,7 @@ func (rcv *OrbidderAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo * Uri: rcv.endpoint, Body: requestBodyJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errs } diff --git a/adapters/orbidder/orbiddertest/exemplary/multibid-multi-format-with-mtype.json b/adapters/orbidder/orbiddertest/exemplary/multibid-multi-format-with-mtype.json index 011acb2c7e2..8cb7e7dde00 100644 --- a/adapters/orbidder/orbiddertest/exemplary/multibid-multi-format-with-mtype.json +++ b/adapters/orbidder/orbiddertest/exemplary/multibid-multi-format-with-mtype.json @@ -112,7 +112,8 @@ } } ] - } + }, + "impIDs":["multi-format-test-imp-id-1","multi-format-test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/orbidder/orbiddertest/exemplary/simple-app-banner.json b/adapters/orbidder/orbiddertest/exemplary/simple-app-banner.json index 80b3c794c5a..838376e0860 100644 --- a/adapters/orbidder/orbiddertest/exemplary/simple-app-banner.json +++ b/adapters/orbidder/orbiddertest/exemplary/simple-app-banner.json @@ -61,7 +61,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/orbidder/orbiddertest/exemplary/simple-web-banner.json b/adapters/orbidder/orbiddertest/exemplary/simple-web-banner.json index 9e1181a590b..2ff56e2d0b4 100644 --- a/adapters/orbidder/orbiddertest/exemplary/simple-web-banner.json +++ b/adapters/orbidder/orbiddertest/exemplary/simple-web-banner.json @@ -61,7 +61,8 @@ } } ] - } + }, + "impIDs":["web-test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/orbidder/orbiddertest/exemplary/simple-web-native.json b/adapters/orbidder/orbiddertest/exemplary/simple-web-native.json index f4b8ec2c7db..df25e2cf66e 100644 --- a/adapters/orbidder/orbiddertest/exemplary/simple-web-native.json +++ b/adapters/orbidder/orbiddertest/exemplary/simple-web-native.json @@ -53,7 +53,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/orbidder/orbiddertest/supplemental/dsp-bad-request-example.json b/adapters/orbidder/orbiddertest/supplemental/dsp-bad-request-example.json index dc199d24ead..6a027ae8f7b 100644 --- a/adapters/orbidder/orbiddertest/supplemental/dsp-bad-request-example.json +++ b/adapters/orbidder/orbiddertest/supplemental/dsp-bad-request-example.json @@ -61,7 +61,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/orbidder/orbiddertest/supplemental/dsp-bad-response-example.json b/adapters/orbidder/orbiddertest/supplemental/dsp-bad-response-example.json index 61e70d315f7..a880a16f7a7 100644 --- a/adapters/orbidder/orbiddertest/supplemental/dsp-bad-response-example.json +++ b/adapters/orbidder/orbiddertest/supplemental/dsp-bad-response-example.json @@ -61,7 +61,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 300, diff --git a/adapters/orbidder/orbiddertest/supplemental/dsp-internal-server-error-example.json b/adapters/orbidder/orbiddertest/supplemental/dsp-internal-server-error-example.json index 66a766a9261..e3d2316bc85 100644 --- a/adapters/orbidder/orbiddertest/supplemental/dsp-internal-server-error-example.json +++ b/adapters/orbidder/orbiddertest/supplemental/dsp-internal-server-error-example.json @@ -61,7 +61,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/orbidder/orbiddertest/supplemental/dsp-invalid-accountid-example.json b/adapters/orbidder/orbiddertest/supplemental/dsp-invalid-accountid-example.json index 7944db44bce..fd18875c334 100644 --- a/adapters/orbidder/orbiddertest/supplemental/dsp-invalid-accountid-example.json +++ b/adapters/orbidder/orbiddertest/supplemental/dsp-invalid-accountid-example.json @@ -61,7 +61,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 403, diff --git a/adapters/orbidder/orbiddertest/supplemental/no-content-response.json b/adapters/orbidder/orbiddertest/supplemental/no-content-response.json index 0a1e5f0fc4d..21297aec501 100644 --- a/adapters/orbidder/orbiddertest/supplemental/no-content-response.json +++ b/adapters/orbidder/orbiddertest/supplemental/no-content-response.json @@ -61,7 +61,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/orbidder/orbiddertest/supplemental/valid-and-invalid-imps.json b/adapters/orbidder/orbiddertest/supplemental/valid-and-invalid-imps.json index 5b4a523f261..f12e26e18e2 100644 --- a/adapters/orbidder/orbiddertest/supplemental/valid-and-invalid-imps.json +++ b/adapters/orbidder/orbiddertest/supplemental/valid-and-invalid-imps.json @@ -67,7 +67,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/outbrain/outbrain.go b/adapters/outbrain/outbrain.go index 5768abab650..9e588d8640c 100644 --- a/adapters/outbrain/outbrain.go +++ b/adapters/outbrain/outbrain.go @@ -81,6 +81,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: a.endpoint, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(reqCopy.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/outbrain/outbraintest/exemplary/banner.json b/adapters/outbrain/outbraintest/exemplary/banner.json index 16d52cf1c0f..babd393e1c2 100644 --- a/adapters/outbrain/outbraintest/exemplary/banner.json +++ b/adapters/outbrain/outbraintest/exemplary/banner.json @@ -67,7 +67,8 @@ "h": 500, "w": 1000 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/outbrain/outbraintest/exemplary/native.json b/adapters/outbrain/outbraintest/exemplary/native.json index bf1eb7f53ff..a12541d3bd2 100644 --- a/adapters/outbrain/outbraintest/exemplary/native.json +++ b/adapters/outbrain/outbraintest/exemplary/native.json @@ -59,7 +59,8 @@ "h": 500, "w": 1000 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/outbrain/outbraintest/exemplary/video.json b/adapters/outbrain/outbraintest/exemplary/video.json index 550f56a69a8..5db7a2c27db 100644 --- a/adapters/outbrain/outbraintest/exemplary/video.json +++ b/adapters/outbrain/outbraintest/exemplary/video.json @@ -71,7 +71,8 @@ "h": 500, "w": 1000 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/outbrain/outbraintest/supplemental/app_request.json b/adapters/outbrain/outbraintest/supplemental/app_request.json index c8e7c4cf69f..03b87fad69c 100644 --- a/adapters/outbrain/outbraintest/supplemental/app_request.json +++ b/adapters/outbrain/outbraintest/supplemental/app_request.json @@ -78,7 +78,8 @@ "h": 735, "w": 392 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/outbrain/outbraintest/supplemental/eids.json b/adapters/outbrain/outbraintest/supplemental/eids.json index cb917fe75c9..bf6ae13d29f 100644 --- a/adapters/outbrain/outbraintest/supplemental/eids.json +++ b/adapters/outbrain/outbraintest/supplemental/eids.json @@ -89,7 +89,8 @@ }] } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/outbrain/outbraintest/supplemental/general_params.json b/adapters/outbrain/outbraintest/supplemental/general_params.json index b2a547c8b4e..56c68857050 100644 --- a/adapters/outbrain/outbraintest/supplemental/general_params.json +++ b/adapters/outbrain/outbraintest/supplemental/general_params.json @@ -73,7 +73,8 @@ "h": 500, "w": 1000 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/outbrain/outbraintest/supplemental/optional_params.json b/adapters/outbrain/outbraintest/supplemental/optional_params.json index d75875e0e70..9634fd2659e 100644 --- a/adapters/outbrain/outbraintest/supplemental/optional_params.json +++ b/adapters/outbrain/outbraintest/supplemental/optional_params.json @@ -85,7 +85,8 @@ "h": 500, "w": 1000 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/outbrain/outbraintest/supplemental/status_204.json b/adapters/outbrain/outbraintest/supplemental/status_204.json index 9f668736953..fecf0785b07 100644 --- a/adapters/outbrain/outbraintest/supplemental/status_204.json +++ b/adapters/outbrain/outbraintest/supplemental/status_204.json @@ -49,7 +49,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/outbrain/outbraintest/supplemental/status_400.json b/adapters/outbrain/outbraintest/supplemental/status_400.json index 441162070d8..28c3f384816 100644 --- a/adapters/outbrain/outbraintest/supplemental/status_400.json +++ b/adapters/outbrain/outbraintest/supplemental/status_400.json @@ -49,7 +49,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/outbrain/outbraintest/supplemental/status_418.json b/adapters/outbrain/outbraintest/supplemental/status_418.json index 08e26804806..0bf94aa038b 100644 --- a/adapters/outbrain/outbraintest/supplemental/status_418.json +++ b/adapters/outbrain/outbraintest/supplemental/status_418.json @@ -49,7 +49,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 418, diff --git a/adapters/ownadx/ownadx.go b/adapters/ownadx/ownadx.go index 5678808b99b..54973bd0bb8 100644 --- a/adapters/ownadx/ownadx.go +++ b/adapters/ownadx/ownadx.go @@ -45,7 +45,8 @@ func (adapter *adapter) getRequestData(bidRequest *openrtb2.BidRequest, impExt * Method: "POST", Uri: url, Body: reqJSON, - Headers: headers}, nil + Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(pbidRequest.Imp)}, nil } func createBidRequest(rtbBidRequest *openrtb2.BidRequest, imps []openrtb2.Imp) *openrtb2.BidRequest { diff --git a/adapters/ownadx/ownadxtest/exemplary/banner.json b/adapters/ownadx/ownadxtest/exemplary/banner.json index f77321c53b1..a13710de2fc 100644 --- a/adapters/ownadx/ownadxtest/exemplary/banner.json +++ b/adapters/ownadx/ownadxtest/exemplary/banner.json @@ -90,7 +90,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ownadx/ownadxtest/exemplary/video.json b/adapters/ownadx/ownadxtest/exemplary/video.json index 7cac425c7e3..10e11e2cfc5 100644 --- a/adapters/ownadx/ownadxtest/exemplary/video.json +++ b/adapters/ownadx/ownadxtest/exemplary/video.json @@ -130,7 +130,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ownadx/ownadxtest/supplemental/bad-server-response.json b/adapters/ownadx/ownadxtest/supplemental/bad-server-response.json index 61b6da04fa8..246d73333dc 100644 --- a/adapters/ownadx/ownadxtest/supplemental/bad-server-response.json +++ b/adapters/ownadx/ownadxtest/supplemental/bad-server-response.json @@ -90,7 +90,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200 diff --git a/adapters/ownadx/ownadxtest/supplemental/bid-empty-.json b/adapters/ownadx/ownadxtest/supplemental/bid-empty-.json index 8d40e878925..a73a96514ee 100644 --- a/adapters/ownadx/ownadxtest/supplemental/bid-empty-.json +++ b/adapters/ownadx/ownadxtest/supplemental/bid-empty-.json @@ -90,7 +90,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ownadx/ownadxtest/supplemental/bidext-type.json b/adapters/ownadx/ownadxtest/supplemental/bidext-type.json index b1d634287d7..2aa4b6bf002 100644 --- a/adapters/ownadx/ownadxtest/supplemental/bidext-type.json +++ b/adapters/ownadx/ownadxtest/supplemental/bidext-type.json @@ -90,7 +90,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ownadx/ownadxtest/supplemental/http-status-204.json b/adapters/ownadx/ownadxtest/supplemental/http-status-204.json index 4b7f8663f02..6c089a2f388 100644 --- a/adapters/ownadx/ownadxtest/supplemental/http-status-204.json +++ b/adapters/ownadx/ownadxtest/supplemental/http-status-204.json @@ -40,7 +40,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/ownadx/ownadxtest/supplemental/http-status-400.json b/adapters/ownadx/ownadxtest/supplemental/http-status-400.json index 035bc323e38..fe6458b2a47 100644 --- a/adapters/ownadx/ownadxtest/supplemental/http-status-400.json +++ b/adapters/ownadx/ownadxtest/supplemental/http-status-400.json @@ -40,7 +40,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/ownadx/ownadxtest/supplemental/seatbid-empty-.json b/adapters/ownadx/ownadxtest/supplemental/seatbid-empty-.json index f49ece3ea2f..ad19f5f7f57 100644 --- a/adapters/ownadx/ownadxtest/supplemental/seatbid-empty-.json +++ b/adapters/ownadx/ownadxtest/supplemental/seatbid-empty-.json @@ -90,7 +90,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/ownadx/ownadxtest/supplemental/unexpected-status.json b/adapters/ownadx/ownadxtest/supplemental/unexpected-status.json index f501a11064e..bf637eab857 100644 --- a/adapters/ownadx/ownadxtest/supplemental/unexpected-status.json +++ b/adapters/ownadx/ownadxtest/supplemental/unexpected-status.json @@ -90,7 +90,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 403 diff --git a/adapters/pangle/pangle.go b/adapters/pangle/pangle.go index 1bdffb9ba4b..b46e2c669b7 100644 --- a/adapters/pangle/pangle.go +++ b/adapters/pangle/pangle.go @@ -131,6 +131,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte "TOKEN": []string{bidderImpExt.Token}, "Content-Type": []string{"application/json"}, }, + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), } requests = append(requests, requestData) } diff --git a/adapters/pangle/pangletest/exemplary/app_banner.json b/adapters/pangle/pangletest/exemplary/app_banner.json index 95694eb3552..190de257c4c 100644 --- a/adapters/pangle/pangletest/exemplary/app_banner.json +++ b/adapters/pangle/pangletest/exemplary/app_banner.json @@ -67,7 +67,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pangle/pangletest/exemplary/app_banner_instl.json b/adapters/pangle/pangletest/exemplary/app_banner_instl.json index 1f11229c01f..572445f4dff 100644 --- a/adapters/pangle/pangletest/exemplary/app_banner_instl.json +++ b/adapters/pangle/pangletest/exemplary/app_banner_instl.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pangle/pangletest/exemplary/app_native.json b/adapters/pangle/pangletest/exemplary/app_native.json index 44d3f98d0b4..b9b4dab756b 100644 --- a/adapters/pangle/pangletest/exemplary/app_native.json +++ b/adapters/pangle/pangletest/exemplary/app_native.json @@ -57,7 +57,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pangle/pangletest/exemplary/app_video_instl.json b/adapters/pangle/pangletest/exemplary/app_video_instl.json index 778baca5996..0d8c5894288 100644 --- a/adapters/pangle/pangletest/exemplary/app_video_instl.json +++ b/adapters/pangle/pangletest/exemplary/app_video_instl.json @@ -81,7 +81,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pangle/pangletest/exemplary/app_video_rewarded.json b/adapters/pangle/pangletest/exemplary/app_video_rewarded.json index 0a484ae06d1..c8f7b73269e 100644 --- a/adapters/pangle/pangletest/exemplary/app_video_rewarded.json +++ b/adapters/pangle/pangletest/exemplary/app_video_rewarded.json @@ -84,7 +84,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pangle/pangletest/supplemental/appid_placementid_check.json b/adapters/pangle/pangletest/supplemental/appid_placementid_check.json index 9f021496412..0e297cd7c68 100644 --- a/adapters/pangle/pangletest/supplemental/appid_placementid_check.json +++ b/adapters/pangle/pangletest/supplemental/appid_placementid_check.json @@ -92,7 +92,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pangle/pangletest/supplemental/pangle_ext_check.json b/adapters/pangle/pangletest/supplemental/pangle_ext_check.json index 4983acfd25d..f5202e0b623 100644 --- a/adapters/pangle/pangletest/supplemental/pangle_ext_check.json +++ b/adapters/pangle/pangletest/supplemental/pangle_ext_check.json @@ -67,7 +67,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pangle/pangletest/supplemental/response_code_204.json b/adapters/pangle/pangletest/supplemental/response_code_204.json index a1e940a027e..8d582f8b8c4 100644 --- a/adapters/pangle/pangletest/supplemental/response_code_204.json +++ b/adapters/pangle/pangletest/supplemental/response_code_204.json @@ -67,7 +67,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/pangle/pangletest/supplemental/response_code_400.json b/adapters/pangle/pangletest/supplemental/response_code_400.json index 841dba8d009..d6b0dbfcdc4 100644 --- a/adapters/pangle/pangletest/supplemental/response_code_400.json +++ b/adapters/pangle/pangletest/supplemental/response_code_400.json @@ -67,7 +67,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/pangle/pangletest/supplemental/response_code_non_200.json b/adapters/pangle/pangletest/supplemental/response_code_non_200.json index b87e0f51c9e..6fe89693c7a 100644 --- a/adapters/pangle/pangletest/supplemental/response_code_non_200.json +++ b/adapters/pangle/pangletest/supplemental/response_code_non_200.json @@ -67,7 +67,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 403, diff --git a/adapters/pangle/pangletest/supplemental/unrecognized_adtype.json b/adapters/pangle/pangletest/supplemental/unrecognized_adtype.json index 748716862e3..b11a11cacd4 100644 --- a/adapters/pangle/pangletest/supplemental/unrecognized_adtype.json +++ b/adapters/pangle/pangletest/supplemental/unrecognized_adtype.json @@ -67,7 +67,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pgamssp/pgamssp.go b/adapters/pgamssp/pgamssp.go index 742d2c37dfb..2f8360fb2e8 100644 --- a/adapters/pgamssp/pgamssp.go +++ b/adapters/pgamssp/pgamssp.go @@ -93,6 +93,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, err } diff --git a/adapters/pgamssp/pgamssptest/exemplary/endpointId.json b/adapters/pgamssp/pgamssptest/exemplary/endpointId.json index 72805db16ba..2d49735b4de 100644 --- a/adapters/pgamssp/pgamssptest/exemplary/endpointId.json +++ b/adapters/pgamssp/pgamssptest/exemplary/endpointId.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pgamssp/pgamssptest/exemplary/simple-banner.json b/adapters/pgamssp/pgamssptest/exemplary/simple-banner.json index 3850c4492c2..c245a75accb 100644 --- a/adapters/pgamssp/pgamssptest/exemplary/simple-banner.json +++ b/adapters/pgamssp/pgamssptest/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pgamssp/pgamssptest/exemplary/simple-native.json b/adapters/pgamssp/pgamssptest/exemplary/simple-native.json index 8796adacd8e..fb646f87f85 100644 --- a/adapters/pgamssp/pgamssptest/exemplary/simple-native.json +++ b/adapters/pgamssp/pgamssptest/exemplary/simple-native.json @@ -55,7 +55,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pgamssp/pgamssptest/exemplary/simple-video.json b/adapters/pgamssp/pgamssptest/exemplary/simple-video.json index a39d0111694..1c12f24f2ea 100644 --- a/adapters/pgamssp/pgamssptest/exemplary/simple-video.json +++ b/adapters/pgamssp/pgamssptest/exemplary/simple-video.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pgamssp/pgamssptest/exemplary/simple-web-banner.json b/adapters/pgamssp/pgamssptest/exemplary/simple-web-banner.json index fca8ce176ea..b905ce15d3a 100644 --- a/adapters/pgamssp/pgamssptest/exemplary/simple-web-banner.json +++ b/adapters/pgamssp/pgamssptest/exemplary/simple-web-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "Ubuntu" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pgamssp/pgamssptest/supplemental/bad_media_type.json b/adapters/pgamssp/pgamssptest/supplemental/bad_media_type.json index 6f016367b33..ddbc5c93a9d 100644 --- a/adapters/pgamssp/pgamssptest/supplemental/bad_media_type.json +++ b/adapters/pgamssp/pgamssptest/supplemental/bad_media_type.json @@ -44,7 +44,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pgamssp/pgamssptest/supplemental/bad_response.json b/adapters/pgamssp/pgamssptest/supplemental/bad_response.json index 8c9f6f523fe..53446fb8ab9 100644 --- a/adapters/pgamssp/pgamssptest/supplemental/bad_response.json +++ b/adapters/pgamssp/pgamssptest/supplemental/bad_response.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pgamssp/pgamssptest/supplemental/status-204.json b/adapters/pgamssp/pgamssptest/supplemental/status-204.json index 3869591eb40..175814c02e6 100644 --- a/adapters/pgamssp/pgamssptest/supplemental/status-204.json +++ b/adapters/pgamssp/pgamssptest/supplemental/status-204.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/pgamssp/pgamssptest/supplemental/status-not-200.json b/adapters/pgamssp/pgamssptest/supplemental/status-not-200.json index 0c9b3eec08b..a9b184df609 100644 --- a/adapters/pgamssp/pgamssptest/supplemental/status-not-200.json +++ b/adapters/pgamssp/pgamssptest/supplemental/status-not-200.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/pubmatic/pubmatic.go b/adapters/pubmatic/pubmatic.go index 9876041ec4e..da6092d8e2a 100644 --- a/adapters/pubmatic/pubmatic.go +++ b/adapters/pubmatic/pubmatic.go @@ -179,6 +179,7 @@ func (a *PubmaticAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *ad Uri: a.URI, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errs } diff --git a/adapters/pubmatic/pubmatictest/exemplary/banner.json b/adapters/pubmatic/pubmatictest/exemplary/banner.json index 74150f5aa83..2e129128bae 100644 --- a/adapters/pubmatic/pubmatictest/exemplary/banner.json +++ b/adapters/pubmatic/pubmatictest/exemplary/banner.json @@ -96,7 +96,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubmatic/pubmatictest/exemplary/fledge.json b/adapters/pubmatic/pubmatictest/exemplary/fledge.json index 793f0984624..94d0f000c31 100644 --- a/adapters/pubmatic/pubmatictest/exemplary/fledge.json +++ b/adapters/pubmatic/pubmatictest/exemplary/fledge.json @@ -48,7 +48,8 @@ } ], "ext": {"prebid":{}} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubmatic/pubmatictest/exemplary/native.json b/adapters/pubmatic/pubmatictest/exemplary/native.json index 8d44d194d8d..075a581d5cb 100644 --- a/adapters/pubmatic/pubmatictest/exemplary/native.json +++ b/adapters/pubmatic/pubmatictest/exemplary/native.json @@ -59,7 +59,8 @@ }, "prebid": {} } - } + }, + "impIDs":["test-native-imp"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubmatic/pubmatictest/exemplary/video.json b/adapters/pubmatic/pubmatictest/exemplary/video.json index 9b1c03b91dd..be24d849cca 100644 --- a/adapters/pubmatic/pubmatictest/exemplary/video.json +++ b/adapters/pubmatic/pubmatictest/exemplary/video.json @@ -107,7 +107,8 @@ } } } - } + }, + "impIDs":["test-video-imp"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubmatic/pubmatictest/supplemental/app.json b/adapters/pubmatic/pubmatictest/supplemental/app.json index 3a2f7a1fb7a..abe79bbe31d 100644 --- a/adapters/pubmatic/pubmatictest/supplemental/app.json +++ b/adapters/pubmatic/pubmatictest/supplemental/app.json @@ -84,7 +84,8 @@ }, "prebid": {} } - } + }, + "impIDs":["app-imp"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubmatic/pubmatictest/supplemental/dctrAndPmZoneID.json b/adapters/pubmatic/pubmatictest/supplemental/dctrAndPmZoneID.json index 725714ca2a1..f16c864e07f 100644 --- a/adapters/pubmatic/pubmatictest/supplemental/dctrAndPmZoneID.json +++ b/adapters/pubmatic/pubmatictest/supplemental/dctrAndPmZoneID.json @@ -95,7 +95,8 @@ }, "prebid": {} } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubmatic/pubmatictest/supplemental/extra-bid.json b/adapters/pubmatic/pubmatictest/supplemental/extra-bid.json index e10994706ff..0f1e02bf3b1 100644 --- a/adapters/pubmatic/pubmatictest/supplemental/extra-bid.json +++ b/adapters/pubmatic/pubmatictest/supplemental/extra-bid.json @@ -121,7 +121,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubmatic/pubmatictest/supplemental/gptSlotNameInImpExt.json b/adapters/pubmatic/pubmatictest/supplemental/gptSlotNameInImpExt.json index f4891d90458..f25e9bd998a 100644 --- a/adapters/pubmatic/pubmatictest/supplemental/gptSlotNameInImpExt.json +++ b/adapters/pubmatic/pubmatictest/supplemental/gptSlotNameInImpExt.json @@ -100,7 +100,8 @@ }, "prebid": {} } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubmatic/pubmatictest/supplemental/gptSlotNameInImpExtPbAdslot.json b/adapters/pubmatic/pubmatictest/supplemental/gptSlotNameInImpExtPbAdslot.json index 90df5a58fc7..0acc7554ae5 100644 --- a/adapters/pubmatic/pubmatictest/supplemental/gptSlotNameInImpExtPbAdslot.json +++ b/adapters/pubmatic/pubmatictest/supplemental/gptSlotNameInImpExtPbAdslot.json @@ -96,7 +96,8 @@ }, "prebid": {} } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubmatic/pubmatictest/supplemental/impExtData.json b/adapters/pubmatic/pubmatictest/supplemental/impExtData.json index de346fc6c54..17bb47fe612 100644 --- a/adapters/pubmatic/pubmatictest/supplemental/impExtData.json +++ b/adapters/pubmatic/pubmatictest/supplemental/impExtData.json @@ -88,7 +88,8 @@ "version": 1 } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubmatic/pubmatictest/supplemental/multiplemedia.json b/adapters/pubmatic/pubmatictest/supplemental/multiplemedia.json index fb10e01d8bb..1fcbc2d73dd 100644 --- a/adapters/pubmatic/pubmatictest/supplemental/multiplemedia.json +++ b/adapters/pubmatic/pubmatictest/supplemental/multiplemedia.json @@ -57,7 +57,8 @@ "ext" : { "prebid": {} } - } + }, + "impIDs":["multiple-media-imp"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubmatic/pubmatictest/supplemental/native_invalid_adm.json b/adapters/pubmatic/pubmatictest/supplemental/native_invalid_adm.json index 2c9af58e323..d5fb862167a 100644 --- a/adapters/pubmatic/pubmatictest/supplemental/native_invalid_adm.json +++ b/adapters/pubmatic/pubmatictest/supplemental/native_invalid_adm.json @@ -59,7 +59,8 @@ "version": 1 } } - } + }, + "impIDs":["test-native-imp"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubmatic/pubmatictest/supplemental/nilReqExt.json b/adapters/pubmatic/pubmatictest/supplemental/nilReqExt.json index 55fe3b284c0..91cca7490af 100644 --- a/adapters/pubmatic/pubmatictest/supplemental/nilReqExt.json +++ b/adapters/pubmatic/pubmatictest/supplemental/nilReqExt.json @@ -93,7 +93,8 @@ }, "prebid": {} } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubmatic/pubmatictest/supplemental/noAdSlot.json b/adapters/pubmatic/pubmatictest/supplemental/noAdSlot.json index 9e15b5646a5..cd0eb9c2963 100644 --- a/adapters/pubmatic/pubmatictest/supplemental/noAdSlot.json +++ b/adapters/pubmatic/pubmatictest/supplemental/noAdSlot.json @@ -75,7 +75,8 @@ }, "prebid": {} } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubmatic/pubmatictest/supplemental/pmZoneIDInKeywords.json b/adapters/pubmatic/pubmatictest/supplemental/pmZoneIDInKeywords.json index 660ec82dfb3..55d8088246e 100644 --- a/adapters/pubmatic/pubmatictest/supplemental/pmZoneIDInKeywords.json +++ b/adapters/pubmatic/pubmatictest/supplemental/pmZoneIDInKeywords.json @@ -94,7 +94,8 @@ }, "prebid": {} } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubmatic/pubmatictest/supplemental/reqBidderParams.json b/adapters/pubmatic/pubmatictest/supplemental/reqBidderParams.json index 2b80c6ae1de..3ec9442eba2 100644 --- a/adapters/pubmatic/pubmatictest/supplemental/reqBidderParams.json +++ b/adapters/pubmatic/pubmatictest/supplemental/reqBidderParams.json @@ -109,7 +109,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubmatic/pubmatictest/supplemental/trimPublisherID.json b/adapters/pubmatic/pubmatictest/supplemental/trimPublisherID.json index 9abc0b98fe4..06757c8cc55 100644 --- a/adapters/pubmatic/pubmatictest/supplemental/trimPublisherID.json +++ b/adapters/pubmatic/pubmatictest/supplemental/trimPublisherID.json @@ -92,7 +92,8 @@ }, "prebid": {} } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubnative/pubnative.go b/adapters/pubnative/pubnative.go index bc01cd04cd5..89d8f9e9e77 100644 --- a/adapters/pubnative/pubnative.go +++ b/adapters/pubnative/pubnative.go @@ -71,6 +71,7 @@ func (a *PubnativeAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *a Uri: fmt.Sprintf("%s?%s", a.URI, queryString), Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), } requestData = append(requestData, reqData) diff --git a/adapters/pubnative/pubnativetest/exemplary/native.json b/adapters/pubnative/pubnativetest/exemplary/native.json index 3438f9938fa..159c98e9d99 100644 --- a/adapters/pubnative/pubnativetest/exemplary/native.json +++ b/adapters/pubnative/pubnativetest/exemplary/native.json @@ -64,7 +64,8 @@ "buyeruid": "8299345306627569435" }, "tmax": 500 - } + }, + "impIDs":["some-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubnative/pubnativetest/exemplary/simple-banner.json b/adapters/pubnative/pubnativetest/exemplary/simple-banner.json index 5297cd3284d..9884382c259 100644 --- a/adapters/pubnative/pubnativetest/exemplary/simple-banner.json +++ b/adapters/pubnative/pubnativetest/exemplary/simple-banner.json @@ -118,7 +118,8 @@ "ext": { "prebid": {} } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pubnative/pubnativetest/exemplary/video.json b/adapters/pubnative/pubnativetest/exemplary/video.json index 214dd30054b..99bfcaf2c57 100644 --- a/adapters/pubnative/pubnativetest/exemplary/video.json +++ b/adapters/pubnative/pubnativetest/exemplary/video.json @@ -112,7 +112,8 @@ "id": "1234" } } - } + }, + "impIDs":["test-video-imp"] }, "mockResponse": { "status": 200, diff --git a/adapters/pulsepoint/pulsepoint.go b/adapters/pulsepoint/pulsepoint.go index faf1c41ddb4..0d1c58f0d1f 100644 --- a/adapters/pulsepoint/pulsepoint.go +++ b/adapters/pulsepoint/pulsepoint.go @@ -99,6 +99,7 @@ func (a *PulsePointAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo * Uri: a.URI, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errs } diff --git a/adapters/pulsepoint/pulsepointtest/exemplary/banner-app.json b/adapters/pulsepoint/pulsepointtest/exemplary/banner-app.json index e99ca648572..aeb6df71e87 100644 --- a/adapters/pulsepoint/pulsepointtest/exemplary/banner-app.json +++ b/adapters/pulsepoint/pulsepointtest/exemplary/banner-app.json @@ -56,7 +56,8 @@ } } }] - } + }, + "impIDs":["banner-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/pulsepoint/pulsepointtest/exemplary/banner.json b/adapters/pulsepoint/pulsepointtest/exemplary/banner.json index d4cf797d219..be720563b4b 100644 --- a/adapters/pulsepoint/pulsepointtest/exemplary/banner.json +++ b/adapters/pulsepoint/pulsepointtest/exemplary/banner.json @@ -56,7 +56,8 @@ } } }] - } + }, + "impIDs":["banner-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/pulsepoint/pulsepointtest/exemplary/empty-pub-node-app.json b/adapters/pulsepoint/pulsepointtest/exemplary/empty-pub-node-app.json index 6e16f997661..63bb654637d 100644 --- a/adapters/pulsepoint/pulsepointtest/exemplary/empty-pub-node-app.json +++ b/adapters/pulsepoint/pulsepointtest/exemplary/empty-pub-node-app.json @@ -51,7 +51,8 @@ } } }] - } + }, + "impIDs":["banner-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/pulsepoint/pulsepointtest/exemplary/empty-pub-node-site.json b/adapters/pulsepoint/pulsepointtest/exemplary/empty-pub-node-site.json index 6d658a2423a..c92d02be746 100644 --- a/adapters/pulsepoint/pulsepointtest/exemplary/empty-pub-node-site.json +++ b/adapters/pulsepoint/pulsepointtest/exemplary/empty-pub-node-site.json @@ -51,7 +51,8 @@ } } }] - } + }, + "impIDs":["banner-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/pulsepoint/pulsepointtest/exemplary/multi-imps.json b/adapters/pulsepoint/pulsepointtest/exemplary/multi-imps.json index 1a10355344c..d2f0cfd4ef4 100644 --- a/adapters/pulsepoint/pulsepointtest/exemplary/multi-imps.json +++ b/adapters/pulsepoint/pulsepointtest/exemplary/multi-imps.json @@ -85,7 +85,8 @@ } } }] - } + }, + "impIDs":["banner-1","video-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/pulsepoint/pulsepointtest/exemplary/native.json b/adapters/pulsepoint/pulsepointtest/exemplary/native.json index 72c8532d783..62b8f35d68c 100644 --- a/adapters/pulsepoint/pulsepointtest/exemplary/native.json +++ b/adapters/pulsepoint/pulsepointtest/exemplary/native.json @@ -56,7 +56,8 @@ } } }] - } + }, + "impIDs":["native-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/pulsepoint/pulsepointtest/exemplary/video.json b/adapters/pulsepoint/pulsepointtest/exemplary/video.json index 980f49f2d14..868b3655264 100644 --- a/adapters/pulsepoint/pulsepointtest/exemplary/video.json +++ b/adapters/pulsepoint/pulsepointtest/exemplary/video.json @@ -60,7 +60,8 @@ } } }] - } + }, + "impIDs":["video-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/pulsepoint/pulsepointtest/supplemental/bad-bid-data.json b/adapters/pulsepoint/pulsepointtest/supplemental/bad-bid-data.json index 8d34bab0578..182bddc7137 100644 --- a/adapters/pulsepoint/pulsepointtest/supplemental/bad-bid-data.json +++ b/adapters/pulsepoint/pulsepointtest/supplemental/bad-bid-data.json @@ -56,7 +56,8 @@ } } }] - } + }, + "impIDs":["banner-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/pulsepoint/pulsepointtest/supplemental/bad-input.json b/adapters/pulsepoint/pulsepointtest/supplemental/bad-input.json index 3fe1422bb00..f35698c4231 100644 --- a/adapters/pulsepoint/pulsepointtest/supplemental/bad-input.json +++ b/adapters/pulsepoint/pulsepointtest/supplemental/bad-input.json @@ -56,7 +56,8 @@ } } }] - } + }, + "impIDs":["banner-1"] }, "mockResponse": { "status": 400 diff --git a/adapters/pulsepoint/pulsepointtest/supplemental/error.json b/adapters/pulsepoint/pulsepointtest/supplemental/error.json index c469e3bc2f9..2f1d2a13a6f 100644 --- a/adapters/pulsepoint/pulsepointtest/supplemental/error.json +++ b/adapters/pulsepoint/pulsepointtest/supplemental/error.json @@ -56,7 +56,8 @@ } } }] - } + }, + "impIDs":["banner-1"] }, "mockResponse": { "status": 503 diff --git a/adapters/pulsepoint/pulsepointtest/supplemental/impid-mismatch.json b/adapters/pulsepoint/pulsepointtest/supplemental/impid-mismatch.json index 30b57e1ef60..57e50016917 100644 --- a/adapters/pulsepoint/pulsepointtest/supplemental/impid-mismatch.json +++ b/adapters/pulsepoint/pulsepointtest/supplemental/impid-mismatch.json @@ -56,7 +56,8 @@ } } }] - } + }, + "impIDs":["banner-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/pulsepoint/pulsepointtest/supplemental/passback.json b/adapters/pulsepoint/pulsepointtest/supplemental/passback.json index 434f5a7a141..6d5396a165f 100644 --- a/adapters/pulsepoint/pulsepointtest/supplemental/passback.json +++ b/adapters/pulsepoint/pulsepointtest/supplemental/passback.json @@ -56,7 +56,8 @@ } } }] - } + }, + "impIDs":["banner-1"] }, "mockResponse": { "status": 204, diff --git a/adapters/pwbid/pwbid.go b/adapters/pwbid/pwbid.go index a5ed6c1ebed..19b182562c6 100644 --- a/adapters/pwbid/pwbid.go +++ b/adapters/pwbid/pwbid.go @@ -33,6 +33,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: a.endpoint, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/pwbid/pwbidtest/exemplary/banner.json b/adapters/pwbid/pwbidtest/exemplary/banner.json index 4cf93e1ab76..0e3a783aff7 100644 --- a/adapters/pwbid/pwbidtest/exemplary/banner.json +++ b/adapters/pwbid/pwbidtest/exemplary/banner.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-banner"] }, "mockResponse": { "status": 200, diff --git a/adapters/pwbid/pwbidtest/exemplary/native.json b/adapters/pwbid/pwbidtest/exemplary/native.json index ff57752c5ea..1c87f72bbf8 100644 --- a/adapters/pwbid/pwbidtest/exemplary/native.json +++ b/adapters/pwbid/pwbidtest/exemplary/native.json @@ -34,7 +34,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-native"] }, "mockResponse": { "status": 200, diff --git a/adapters/pwbid/pwbidtest/exemplary/optional-params.json b/adapters/pwbid/pwbidtest/exemplary/optional-params.json index 5ababb24bdc..36048216744 100644 --- a/adapters/pwbid/pwbidtest/exemplary/optional-params.json +++ b/adapters/pwbid/pwbidtest/exemplary/optional-params.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["test-imp-id-banner"] }, "mockResponse": { "status": 200, diff --git a/adapters/pwbid/pwbidtest/exemplary/video.json b/adapters/pwbid/pwbidtest/exemplary/video.json index 6257de632d4..8bd1abc4e02 100644 --- a/adapters/pwbid/pwbidtest/exemplary/video.json +++ b/adapters/pwbid/pwbidtest/exemplary/video.json @@ -38,7 +38,8 @@ } } ] - } + }, + "impIDs":["test-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/pwbid/pwbidtest/supplemental/response-200-without-body.json b/adapters/pwbid/pwbidtest/supplemental/response-200-without-body.json index 0d469893e0c..6b4effd139e 100644 --- a/adapters/pwbid/pwbidtest/supplemental/response-200-without-body.json +++ b/adapters/pwbid/pwbidtest/supplemental/response-200-without-body.json @@ -35,7 +35,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200 diff --git a/adapters/pwbid/pwbidtest/supplemental/response-204.json b/adapters/pwbid/pwbidtest/supplemental/response-204.json index 4fc8961e0bb..a27cc1b26a4 100644 --- a/adapters/pwbid/pwbidtest/supplemental/response-204.json +++ b/adapters/pwbid/pwbidtest/supplemental/response-204.json @@ -35,7 +35,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/pwbid/pwbidtest/supplemental/response-400.json b/adapters/pwbid/pwbidtest/supplemental/response-400.json index a1517883243..348544428f1 100644 --- a/adapters/pwbid/pwbidtest/supplemental/response-400.json +++ b/adapters/pwbid/pwbidtest/supplemental/response-400.json @@ -35,7 +35,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/pwbid/pwbidtest/supplemental/response-500.json b/adapters/pwbid/pwbidtest/supplemental/response-500.json index c2b5649418b..89823afae3c 100644 --- a/adapters/pwbid/pwbidtest/supplemental/response-500.json +++ b/adapters/pwbid/pwbidtest/supplemental/response-500.json @@ -35,7 +35,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500 diff --git a/adapters/relevantdigital/relevantdigital.go b/adapters/relevantdigital/relevantdigital.go index be16b49dac4..134bdf5e4d5 100644 --- a/adapters/relevantdigital/relevantdigital.go +++ b/adapters/relevantdigital/relevantdigital.go @@ -198,6 +198,7 @@ func (a *adapter) buildAdapterRequest(prebidBidRequest *openrtb2.BidRequest, par Uri: url, Body: reqJSON, Headers: getHeaders(prebidBidRequest), + ImpIDs: openrtb_ext.GetImpIDs(prebidBidRequest.Imp), }, nil } diff --git a/adapters/relevantdigital/relevantdigitaltest/exemplary/simple-audio.json b/adapters/relevantdigital/relevantdigitaltest/exemplary/simple-audio.json index 2a7e6189154..61a95168cfe 100644 --- a/adapters/relevantdigital/relevantdigitaltest/exemplary/simple-audio.json +++ b/adapters/relevantdigital/relevantdigitaltest/exemplary/simple-audio.json @@ -55,7 +55,8 @@ } }, "tmax": 750 - } + }, + "impIDs":["test-audio-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/relevantdigital/relevantdigitaltest/exemplary/simple-banner.json b/adapters/relevantdigital/relevantdigitaltest/exemplary/simple-banner.json index ea30dfe3177..7cbffc0a2a8 100644 --- a/adapters/relevantdigital/relevantdigitaltest/exemplary/simple-banner.json +++ b/adapters/relevantdigital/relevantdigitaltest/exemplary/simple-banner.json @@ -107,7 +107,8 @@ } }, "tmax": 750 - } + }, + "impIDs":["div-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/relevantdigital/relevantdigitaltest/exemplary/simple-native.json b/adapters/relevantdigital/relevantdigitaltest/exemplary/simple-native.json index a42a8f3b1b4..1713afee67b 100644 --- a/adapters/relevantdigital/relevantdigitaltest/exemplary/simple-native.json +++ b/adapters/relevantdigital/relevantdigitaltest/exemplary/simple-native.json @@ -51,7 +51,8 @@ } }, "tmax": 750 - } + }, + "impIDs":["test-native-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/relevantdigital/relevantdigitaltest/exemplary/simple-video.json b/adapters/relevantdigital/relevantdigitaltest/exemplary/simple-video.json index 6cc8d25468a..9c20d39c415 100644 --- a/adapters/relevantdigital/relevantdigitaltest/exemplary/simple-video.json +++ b/adapters/relevantdigital/relevantdigitaltest/exemplary/simple-video.json @@ -93,7 +93,8 @@ } }, "tmax": 750 - } + }, + "impIDs":["div-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/relevantdigital/relevantdigitaltest/supplemental/invalidBidMType.json b/adapters/relevantdigital/relevantdigitaltest/supplemental/invalidBidMType.json index 17473625e89..49eb35d0495 100644 --- a/adapters/relevantdigital/relevantdigitaltest/supplemental/invalidBidMType.json +++ b/adapters/relevantdigital/relevantdigitaltest/supplemental/invalidBidMType.json @@ -61,7 +61,8 @@ } }, "tmax": 750 - } + }, + "impIDs":["div-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/relevantdigital/relevantdigitaltest/supplemental/invalidBidMTypeParsesExt.json b/adapters/relevantdigital/relevantdigitaltest/supplemental/invalidBidMTypeParsesExt.json index e7492a4dd3c..48b6ea64dcf 100644 --- a/adapters/relevantdigital/relevantdigitaltest/supplemental/invalidBidMTypeParsesExt.json +++ b/adapters/relevantdigital/relevantdigitaltest/supplemental/invalidBidMTypeParsesExt.json @@ -87,7 +87,8 @@ } }, "tmax": 750 - } + }, + "impIDs":["div-1","div-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/relevantdigital/relevantdigitaltest/supplemental/invalidBidType.json b/adapters/relevantdigital/relevantdigitaltest/supplemental/invalidBidType.json index 86c405c87c6..3c71e5e8bae 100644 --- a/adapters/relevantdigital/relevantdigitaltest/supplemental/invalidBidType.json +++ b/adapters/relevantdigital/relevantdigitaltest/supplemental/invalidBidType.json @@ -61,7 +61,8 @@ } }, "tmax": 750 - } + }, + "impIDs":["div-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/revcontent/revcontent.go b/adapters/revcontent/revcontent.go index 456e4cef7f2..e2a74c9311c 100644 --- a/adapters/revcontent/revcontent.go +++ b/adapters/revcontent/revcontent.go @@ -43,6 +43,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: a.endpoint, Body: reqBody, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{req}, nil } diff --git a/adapters/revcontent/revcontenttest/exemplary/no-bid.json b/adapters/revcontent/revcontenttest/exemplary/no-bid.json index b71c3a93e05..c268cbb0295 100644 --- a/adapters/revcontent/revcontenttest/exemplary/no-bid.json +++ b/adapters/revcontent/revcontenttest/exemplary/no-bid.json @@ -31,7 +31,8 @@ "site": { "domain": "test.com" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/revcontent/revcontenttest/exemplary/simple-banner.json b/adapters/revcontent/revcontenttest/exemplary/simple-banner.json index a63f9ac843c..d284f2e2bca 100644 --- a/adapters/revcontent/revcontenttest/exemplary/simple-banner.json +++ b/adapters/revcontent/revcontenttest/exemplary/simple-banner.json @@ -41,7 +41,8 @@ "id": "example" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/revcontent/revcontenttest/exemplary/simple-native.json b/adapters/revcontent/revcontenttest/exemplary/simple-native.json index 8cd20913d76..515265b4075 100644 --- a/adapters/revcontent/revcontenttest/exemplary/simple-native.json +++ b/adapters/revcontent/revcontenttest/exemplary/simple-native.json @@ -32,7 +32,8 @@ "site": { "domain": "test.com" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/revcontent/revcontenttest/supplemental/bad_response.json b/adapters/revcontent/revcontenttest/supplemental/bad_response.json index 751aed92c27..cf9450c533d 100644 --- a/adapters/revcontent/revcontenttest/supplemental/bad_response.json +++ b/adapters/revcontent/revcontenttest/supplemental/bad_response.json @@ -31,7 +31,8 @@ "site": { "domain": "test.com" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/revcontent/revcontenttest/supplemental/status_400.json b/adapters/revcontent/revcontenttest/supplemental/status_400.json index 5ded1415cff..c7615dcd035 100644 --- a/adapters/revcontent/revcontenttest/supplemental/status_400.json +++ b/adapters/revcontent/revcontenttest/supplemental/status_400.json @@ -31,7 +31,8 @@ "site": { "domain": "test.com" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/revcontent/revcontenttest/supplemental/status_500.json b/adapters/revcontent/revcontenttest/supplemental/status_500.json index 3732abbd8a2..4c54530809a 100644 --- a/adapters/revcontent/revcontenttest/supplemental/status_500.json +++ b/adapters/revcontent/revcontenttest/supplemental/status_500.json @@ -31,7 +31,8 @@ "site": { "domain": "test.com" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/richaudience/richaudience.go b/adapters/richaudience/richaudience.go index dc2dd23bdaf..7955e3577c8 100644 --- a/adapters/richaudience/richaudience.go +++ b/adapters/richaudience/richaudience.go @@ -129,6 +129,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Uri: a.endpoint, Body: req, Headers: raiHeaders, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }) } diff --git a/adapters/richaudience/richaudiencetest/exemplary/single-banner-app.json b/adapters/richaudience/richaudiencetest/exemplary/single-banner-app.json index 672d8ab0045..a39101bd6e6 100644 --- a/adapters/richaudience/richaudiencetest/exemplary/single-banner-app.json +++ b/adapters/richaudience/richaudiencetest/exemplary/single-banner-app.json @@ -112,7 +112,8 @@ } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/richaudience/richaudiencetest/exemplary/single-banner-defaultCurrency.json b/adapters/richaudience/richaudiencetest/exemplary/single-banner-defaultCurrency.json index 0ddec0a4af5..6a276309185 100644 --- a/adapters/richaudience/richaudiencetest/exemplary/single-banner-defaultCurrency.json +++ b/adapters/richaudience/richaudiencetest/exemplary/single-banner-defaultCurrency.json @@ -92,7 +92,8 @@ "buyeruid": "189f4055-78a3-46eb-b7fd-0915a1a43bd2a", "ext": {} } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/richaudience/richaudiencetest/exemplary/single-banner-deviceConfig.json b/adapters/richaudience/richaudiencetest/exemplary/single-banner-deviceConfig.json index 5ccc8f141af..c024fed6ff9 100644 --- a/adapters/richaudience/richaudiencetest/exemplary/single-banner-deviceConfig.json +++ b/adapters/richaudience/richaudiencetest/exemplary/single-banner-deviceConfig.json @@ -88,7 +88,8 @@ } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/richaudience/richaudiencetest/exemplary/single-banner-extUser.json b/adapters/richaudience/richaudiencetest/exemplary/single-banner-extUser.json index b6227d37873..742d353fa71 100644 --- a/adapters/richaudience/richaudiencetest/exemplary/single-banner-extUser.json +++ b/adapters/richaudience/richaudiencetest/exemplary/single-banner-extUser.json @@ -126,7 +126,8 @@ ] } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/richaudience/richaudiencetest/exemplary/single-banner-floorPrice.json b/adapters/richaudience/richaudiencetest/exemplary/single-banner-floorPrice.json index 9fec4d46b17..8c5f8c07592 100644 --- a/adapters/richaudience/richaudiencetest/exemplary/single-banner-floorPrice.json +++ b/adapters/richaudience/richaudiencetest/exemplary/single-banner-floorPrice.json @@ -87,7 +87,8 @@ } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/richaudience/richaudiencetest/exemplary/single-banner-iPv6.json b/adapters/richaudience/richaudiencetest/exemplary/single-banner-iPv6.json index b40e9f65c89..c16e639f009 100644 --- a/adapters/richaudience/richaudiencetest/exemplary/single-banner-iPv6.json +++ b/adapters/richaudience/richaudiencetest/exemplary/single-banner-iPv6.json @@ -94,7 +94,8 @@ "buyeruid": "189f4055-78a3-46eb-b7fd-0915a1a43bd2a", "ext": {} } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/richaudience/richaudiencetest/exemplary/single-banner-nil-device.json b/adapters/richaudience/richaudiencetest/exemplary/single-banner-nil-device.json index f5e3899130a..63f50c2d3e1 100644 --- a/adapters/richaudience/richaudiencetest/exemplary/single-banner-nil-device.json +++ b/adapters/richaudience/richaudiencetest/exemplary/single-banner-nil-device.json @@ -115,7 +115,8 @@ "ext": { } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/richaudience/richaudiencetest/exemplary/single-banner-nosecure.json b/adapters/richaudience/richaudiencetest/exemplary/single-banner-nosecure.json index 78886f38189..bc0c7f5e519 100644 --- a/adapters/richaudience/richaudiencetest/exemplary/single-banner-nosecure.json +++ b/adapters/richaudience/richaudiencetest/exemplary/single-banner-nosecure.json @@ -85,7 +85,8 @@ } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/richaudience/richaudiencetest/exemplary/single-banner-setCurrency.json b/adapters/richaudience/richaudiencetest/exemplary/single-banner-setCurrency.json index 5490197dd0f..17746300f71 100644 --- a/adapters/richaudience/richaudiencetest/exemplary/single-banner-setCurrency.json +++ b/adapters/richaudience/richaudiencetest/exemplary/single-banner-setCurrency.json @@ -86,7 +86,8 @@ } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/richaudience/richaudiencetest/exemplary/single-banner-sitePage.json b/adapters/richaudience/richaudiencetest/exemplary/single-banner-sitePage.json index e6a00cbf0e8..249113cf03b 100644 --- a/adapters/richaudience/richaudiencetest/exemplary/single-banner-sitePage.json +++ b/adapters/richaudience/richaudiencetest/exemplary/single-banner-sitePage.json @@ -85,7 +85,8 @@ } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/richaudience/richaudiencetest/exemplary/single-banner.json b/adapters/richaudience/richaudiencetest/exemplary/single-banner.json index e6a00cbf0e8..249113cf03b 100644 --- a/adapters/richaudience/richaudiencetest/exemplary/single-banner.json +++ b/adapters/richaudience/richaudiencetest/exemplary/single-banner.json @@ -85,7 +85,8 @@ } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/richaudience/richaudiencetest/exemplary/single-video.json b/adapters/richaudience/richaudiencetest/exemplary/single-video.json index 0219906f35f..fc158b43d01 100644 --- a/adapters/richaudience/richaudiencetest/exemplary/single-video.json +++ b/adapters/richaudience/richaudiencetest/exemplary/single-video.json @@ -85,7 +85,8 @@ } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 200, diff --git a/adapters/richaudience/richaudiencetest/supplemental/bidTypeNotAssigned.json b/adapters/richaudience/richaudiencetest/supplemental/bidTypeNotAssigned.json index fe17ba42e0c..3e9723febab 100644 --- a/adapters/richaudience/richaudiencetest/supplemental/bidTypeNotAssigned.json +++ b/adapters/richaudience/richaudiencetest/supplemental/bidTypeNotAssigned.json @@ -86,7 +86,8 @@ } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/richaudience/richaudiencetest/supplemental/responseBlank.json b/adapters/richaudience/richaudiencetest/supplemental/responseBlank.json index 2ac53f172b5..89ee6a422d4 100644 --- a/adapters/richaudience/richaudiencetest/supplemental/responseBlank.json +++ b/adapters/richaudience/richaudiencetest/supplemental/responseBlank.json @@ -79,7 +79,8 @@ } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 204, diff --git a/adapters/richaudience/richaudiencetest/supplemental/statusCode400.json b/adapters/richaudience/richaudiencetest/supplemental/statusCode400.json index e8f2b58b5f7..39e331a20bb 100644 --- a/adapters/richaudience/richaudiencetest/supplemental/statusCode400.json +++ b/adapters/richaudience/richaudiencetest/supplemental/statusCode400.json @@ -79,7 +79,8 @@ } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 400 diff --git a/adapters/richaudience/richaudiencetest/supplemental/statusCodeError.json b/adapters/richaudience/richaudiencetest/supplemental/statusCodeError.json index 25d162abf7e..3b11abfe30d 100644 --- a/adapters/richaudience/richaudiencetest/supplemental/statusCodeError.json +++ b/adapters/richaudience/richaudiencetest/supplemental/statusCodeError.json @@ -79,7 +79,8 @@ } } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 502 diff --git a/adapters/richaudience/richaudiencetest/supplemental/unexpectedStatusCode.json b/adapters/richaudience/richaudiencetest/supplemental/unexpectedStatusCode.json index 959b31cb6a2..82a241bbeac 100644 --- a/adapters/richaudience/richaudiencetest/supplemental/unexpectedStatusCode.json +++ b/adapters/richaudience/richaudiencetest/supplemental/unexpectedStatusCode.json @@ -80,7 +80,8 @@ "buyeruid": "189f4055-78a3-46eb-b7fd-0915a1a43bd2a", "ext": {} } - } + }, + "impIDs":["div-gpt-ad-1460505748561-0"] }, "mockResponse": { "status": 800 diff --git a/adapters/rise/rise.go b/adapters/rise/rise.go index 025fb713bfa..3742f768ee4 100644 --- a/adapters/rise/rise.go +++ b/adapters/rise/rise.go @@ -47,6 +47,7 @@ func (a *adapter) MakeRequests(openRTBRequest *openrtb2.BidRequest, _ *adapters. Uri: a.endpointURL + "?publisher_id=" + org, Body: openRTBRequestJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), }), nil } diff --git a/adapters/rise/risetest/exemplary/banner-and-video-app.json b/adapters/rise/risetest/exemplary/banner-and-video-app.json index fa267977f72..4113fded846 100644 --- a/adapters/rise/risetest/exemplary/banner-and-video-app.json +++ b/adapters/rise/risetest/exemplary/banner-and-video-app.json @@ -154,7 +154,8 @@ "connectiontype": 3, "ifa": "AA000DFE74168477C70D291f574D344790E0BB11" } - } + }, + "impIDs":["test-imp-id","test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rise/risetest/exemplary/banner-and-video-gdpr.json b/adapters/rise/risetest/exemplary/banner-and-video-gdpr.json index 980b62446b5..c7f25b8e81e 100644 --- a/adapters/rise/risetest/exemplary/banner-and-video-gdpr.json +++ b/adapters/rise/risetest/exemplary/banner-and-video-gdpr.json @@ -124,7 +124,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["test-imp-id","test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rise/risetest/exemplary/banner-and-video-site.json b/adapters/rise/risetest/exemplary/banner-and-video-site.json index fda9efdbdfc..8a170d0376d 100644 --- a/adapters/rise/risetest/exemplary/banner-and-video-site.json +++ b/adapters/rise/risetest/exemplary/banner-and-video-site.json @@ -134,7 +134,8 @@ "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.13 (KHTML, like Gecko) Version / 5.1 .7 Safari / 534.57 .2", "ip": "123.145.167.10" } - } + }, + "impIDs":["test-imp-id","test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rise/risetest/exemplary/banner-and-video.json b/adapters/rise/risetest/exemplary/banner-and-video.json index d0d6a9bcc44..5b4a685570b 100644 --- a/adapters/rise/risetest/exemplary/banner-and-video.json +++ b/adapters/rise/risetest/exemplary/banner-and-video.json @@ -130,7 +130,8 @@ } } ] - } + }, + "impIDs":["test-imp-id","test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rise/risetest/exemplary/simple-banner-both-ids.json b/adapters/rise/risetest/exemplary/simple-banner-both-ids.json index 99f9e1f211f..31e18da7f0a 100644 --- a/adapters/rise/risetest/exemplary/simple-banner-both-ids.json +++ b/adapters/rise/risetest/exemplary/simple-banner-both-ids.json @@ -58,7 +58,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rise/risetest/exemplary/simple-banner.json b/adapters/rise/risetest/exemplary/simple-banner.json index 1fba0f398cb..161afae7c1b 100644 --- a/adapters/rise/risetest/exemplary/simple-banner.json +++ b/adapters/rise/risetest/exemplary/simple-banner.json @@ -56,7 +56,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rise/risetest/exemplary/simple-video.json b/adapters/rise/risetest/exemplary/simple-video.json index 0854c06c59f..ee2b6946764 100644 --- a/adapters/rise/risetest/exemplary/simple-video.json +++ b/adapters/rise/risetest/exemplary/simple-video.json @@ -62,7 +62,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rise/risetest/supplemental/bad-request.json b/adapters/rise/risetest/supplemental/bad-request.json index b5bedc090d9..969208edb2a 100644 --- a/adapters/rise/risetest/supplemental/bad-request.json +++ b/adapters/rise/risetest/supplemental/bad-request.json @@ -62,7 +62,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/rise/risetest/supplemental/missing-mtype.json b/adapters/rise/risetest/supplemental/missing-mtype.json index 79fe4b38406..70e9ea1ccda 100644 --- a/adapters/rise/risetest/supplemental/missing-mtype.json +++ b/adapters/rise/risetest/supplemental/missing-mtype.json @@ -62,7 +62,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/roulax/roulax.go b/adapters/roulax/roulax.go index ea9e1e73cf2..959aa57eca9 100644 --- a/adapters/roulax/roulax.go +++ b/adapters/roulax/roulax.go @@ -3,13 +3,14 @@ package roulax import ( "encoding/json" "fmt" + "net/http" + "text/template" + "github.com/prebid/openrtb/v20/openrtb2" "github.com/prebid/prebid-server/v2/adapters" "github.com/prebid/prebid-server/v2/config" "github.com/prebid/prebid-server/v2/macros" "github.com/prebid/prebid-server/v2/openrtb_ext" - "net/http" - "text/template" ) type adapter struct { @@ -66,6 +67,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: url, Body: reqJson, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errs } diff --git a/adapters/roulax/roulaxtest/exemplary/simple-banner.json b/adapters/roulax/roulaxtest/exemplary/simple-banner.json index 1f63e607fbf..2cd7c130972 100644 --- a/adapters/roulax/roulaxtest/exemplary/simple-banner.json +++ b/adapters/roulax/roulaxtest/exemplary/simple-banner.json @@ -56,7 +56,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/roulax/roulaxtest/exemplary/simple-native.json b/adapters/roulax/roulaxtest/exemplary/simple-native.json index 4c0170c37ae..e4e3092f0ca 100644 --- a/adapters/roulax/roulaxtest/exemplary/simple-native.json +++ b/adapters/roulax/roulaxtest/exemplary/simple-native.json @@ -38,7 +38,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/roulax/roulaxtest/exemplary/simple-video.json b/adapters/roulax/roulaxtest/exemplary/simple-video.json index 8b3e30dfb21..69e2edc200f 100644 --- a/adapters/roulax/roulaxtest/exemplary/simple-video.json +++ b/adapters/roulax/roulaxtest/exemplary/simple-video.json @@ -62,7 +62,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/roulax/roulaxtest/supplemental/no-bid-response.json b/adapters/roulax/roulaxtest/supplemental/no-bid-response.json index 7d9ff2e6ebb..2d38a265f15 100644 --- a/adapters/roulax/roulaxtest/supplemental/no-bid-response.json +++ b/adapters/roulax/roulaxtest/supplemental/no-bid-response.json @@ -62,7 +62,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhouse.go b/adapters/rtbhouse/rtbhouse.go index 2065163c660..bd0d892b996 100644 --- a/adapters/rtbhouse/rtbhouse.go +++ b/adapters/rtbhouse/rtbhouse.go @@ -97,6 +97,7 @@ func (adapter *RTBHouseAdapter) MakeRequests( Uri: adapter.endpoint, Body: openRTBRequestJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(reqCopy.Imp), } requestsToBidder = append(requestsToBidder, requestToBidder) diff --git a/adapters/rtbhouse/rtbhousetest/exemplary/app_banner.json b/adapters/rtbhouse/rtbhousetest/exemplary/app_banner.json index 733d4b73592..ba14e50d88d 100644 --- a/adapters/rtbhouse/rtbhousetest/exemplary/app_banner.json +++ b/adapters/rtbhouse/rtbhousetest/exemplary/app_banner.json @@ -51,7 +51,8 @@ "bidder": {} } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhousetest/exemplary/app_native.json b/adapters/rtbhouse/rtbhousetest/exemplary/app_native.json index 705e89d8955..bdd5e573504 100644 --- a/adapters/rtbhouse/rtbhousetest/exemplary/app_native.json +++ b/adapters/rtbhouse/rtbhousetest/exemplary/app_native.json @@ -56,7 +56,8 @@ "dnt": 0 }, "ext": {} - } + }, + "impIDs":["test-native-imp"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhousetest/exemplary/bidfloor-as-bidder-param-without-cur.json b/adapters/rtbhouse/rtbhousetest/exemplary/bidfloor-as-bidder-param-without-cur.json index 79aa038c3ca..9b0f8d3e38b 100644 --- a/adapters/rtbhouse/rtbhousetest/exemplary/bidfloor-as-bidder-param-without-cur.json +++ b/adapters/rtbhouse/rtbhousetest/exemplary/bidfloor-as-bidder-param-without-cur.json @@ -75,7 +75,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhousetest/exemplary/bidfloor-as-bidder-param.json b/adapters/rtbhouse/rtbhousetest/exemplary/bidfloor-as-bidder-param.json index 99b3a87ebfa..c6a82faa574 100644 --- a/adapters/rtbhouse/rtbhousetest/exemplary/bidfloor-as-bidder-param.json +++ b/adapters/rtbhouse/rtbhousetest/exemplary/bidfloor-as-bidder-param.json @@ -78,7 +78,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhousetest/exemplary/bidfloor-as-impbidfloor-with-cur.json b/adapters/rtbhouse/rtbhousetest/exemplary/bidfloor-as-impbidfloor-with-cur.json index 85e8a1c28cf..b0b34a25afe 100644 --- a/adapters/rtbhouse/rtbhousetest/exemplary/bidfloor-as-impbidfloor-with-cur.json +++ b/adapters/rtbhouse/rtbhousetest/exemplary/bidfloor-as-impbidfloor-with-cur.json @@ -75,7 +75,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhousetest/exemplary/bidfloor-as-impbidfloor-without-cur.json b/adapters/rtbhouse/rtbhousetest/exemplary/bidfloor-as-impbidfloor-without-cur.json index 1417965741e..a6dbcec864a 100644 --- a/adapters/rtbhouse/rtbhousetest/exemplary/bidfloor-as-impbidfloor-without-cur.json +++ b/adapters/rtbhouse/rtbhousetest/exemplary/bidfloor-as-impbidfloor-without-cur.json @@ -73,7 +73,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhousetest/exemplary/native-with-deprecated-native-prop.json b/adapters/rtbhouse/rtbhousetest/exemplary/native-with-deprecated-native-prop.json index e79b21a1207..a4aa158053b 100644 --- a/adapters/rtbhouse/rtbhousetest/exemplary/native-with-deprecated-native-prop.json +++ b/adapters/rtbhouse/rtbhousetest/exemplary/native-with-deprecated-native-prop.json @@ -44,7 +44,8 @@ "page": "https://good.site/url" }, "ext": {} - } + }, + "impIDs":["test-native-imp"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhousetest/exemplary/native-with-proper-native-response.json b/adapters/rtbhouse/rtbhousetest/exemplary/native-with-proper-native-response.json index 9f5962fd3a1..232a102ce74 100644 --- a/adapters/rtbhouse/rtbhousetest/exemplary/native-with-proper-native-response.json +++ b/adapters/rtbhouse/rtbhousetest/exemplary/native-with-proper-native-response.json @@ -44,7 +44,8 @@ "page": "https://good.site/url" }, "ext": {} - } + }, + "impIDs":["test-native-imp"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhousetest/exemplary/simple-banner.json b/adapters/rtbhouse/rtbhousetest/exemplary/simple-banner.json index 468e73f2aca..0cad5a6b96f 100644 --- a/adapters/rtbhouse/rtbhousetest/exemplary/simple-banner.json +++ b/adapters/rtbhouse/rtbhousetest/exemplary/simple-banner.json @@ -39,7 +39,8 @@ "bidder": {} } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhousetest/exemplary/two-bidfloors-given-param-and-impbidfloor.json b/adapters/rtbhouse/rtbhousetest/exemplary/two-bidfloors-given-param-and-impbidfloor.json index fc706d97004..7b9ebf9685e 100644 --- a/adapters/rtbhouse/rtbhousetest/exemplary/two-bidfloors-given-param-and-impbidfloor.json +++ b/adapters/rtbhouse/rtbhousetest/exemplary/two-bidfloors-given-param-and-impbidfloor.json @@ -77,7 +77,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhousetest/supplemental/bad_response.json b/adapters/rtbhouse/rtbhousetest/supplemental/bad_response.json index e0861fb027d..6eb776e48aa 100644 --- a/adapters/rtbhouse/rtbhousetest/supplemental/bad_response.json +++ b/adapters/rtbhouse/rtbhousetest/supplemental/bad_response.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhousetest/supplemental/banner-native-req-faulty-mtype-in-native.json b/adapters/rtbhouse/rtbhousetest/supplemental/banner-native-req-faulty-mtype-in-native.json index 6e6f415acbc..4f643d18427 100644 --- a/adapters/rtbhouse/rtbhousetest/supplemental/banner-native-req-faulty-mtype-in-native.json +++ b/adapters/rtbhouse/rtbhousetest/supplemental/banner-native-req-faulty-mtype-in-native.json @@ -68,7 +68,8 @@ "page": "https://good.site/url" }, "ext": {} - } + }, + "impIDs":["test-native-imp","test-banner-imp"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhousetest/supplemental/native-with-faulty-adm-native-prop.json b/adapters/rtbhouse/rtbhousetest/supplemental/native-with-faulty-adm-native-prop.json index 5e1aa0ef4b7..bfdf568d3c4 100644 --- a/adapters/rtbhouse/rtbhousetest/supplemental/native-with-faulty-adm-native-prop.json +++ b/adapters/rtbhouse/rtbhousetest/supplemental/native-with-faulty-adm-native-prop.json @@ -44,7 +44,8 @@ "page": "https://good.site/url" }, "ext": {} - } + }, + "impIDs":["test-native-imp"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhousetest/supplemental/native-with-faulty-adm-response.json b/adapters/rtbhouse/rtbhousetest/supplemental/native-with-faulty-adm-response.json index 41cc909f304..4e95d2e23cd 100644 --- a/adapters/rtbhouse/rtbhousetest/supplemental/native-with-faulty-adm-response.json +++ b/adapters/rtbhouse/rtbhousetest/supplemental/native-with-faulty-adm-response.json @@ -44,7 +44,8 @@ "page": "https://good.site/url" }, "ext": {} - } + }, + "impIDs":["test-native-imp"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhousetest/supplemental/simple-banner-bad-mtype.json b/adapters/rtbhouse/rtbhousetest/supplemental/simple-banner-bad-mtype.json index fc52cc30601..3b92e5d8fda 100644 --- a/adapters/rtbhouse/rtbhousetest/supplemental/simple-banner-bad-mtype.json +++ b/adapters/rtbhouse/rtbhousetest/supplemental/simple-banner-bad-mtype.json @@ -49,7 +49,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhousetest/supplemental/simple-banner-no-mtype.json b/adapters/rtbhouse/rtbhousetest/supplemental/simple-banner-no-mtype.json index 8bb9e8a1f89..58bdab87eb9 100644 --- a/adapters/rtbhouse/rtbhousetest/supplemental/simple-banner-no-mtype.json +++ b/adapters/rtbhouse/rtbhousetest/supplemental/simple-banner-no-mtype.json @@ -49,7 +49,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rtbhouse/rtbhousetest/supplemental/status_204.json b/adapters/rtbhouse/rtbhousetest/supplemental/status_204.json index bb7754ec1fc..03a69c2617f 100644 --- a/adapters/rtbhouse/rtbhousetest/supplemental/status_204.json +++ b/adapters/rtbhouse/rtbhousetest/supplemental/status_204.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/rtbhouse/rtbhousetest/supplemental/status_400.json b/adapters/rtbhouse/rtbhousetest/supplemental/status_400.json index 0b5279326d2..25f87786364 100644 --- a/adapters/rtbhouse/rtbhousetest/supplemental/status_400.json +++ b/adapters/rtbhouse/rtbhousetest/supplemental/status_400.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/rtbhouse/rtbhousetest/supplemental/status_418.json b/adapters/rtbhouse/rtbhousetest/supplemental/status_418.json index 6ff3860ee65..27073b0e0c6 100644 --- a/adapters/rtbhouse/rtbhousetest/supplemental/status_418.json +++ b/adapters/rtbhouse/rtbhousetest/supplemental/status_418.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 418, diff --git a/adapters/rubicon/rubicon.go b/adapters/rubicon/rubicon.go index 6cffa1b2abf..cb968fbe37e 100644 --- a/adapters/rubicon/rubicon.go +++ b/adapters/rubicon/rubicon.go @@ -556,6 +556,7 @@ func (a *RubiconAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *ada Uri: a.URI, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(rubiconRequest.Imp), } reqData.SetBasicAuth(a.XAPIUsername, a.XAPIPassword) requestData = append(requestData, reqData) diff --git a/adapters/rubicon/rubicontest/exemplary/25-26-transition-period.json b/adapters/rubicon/rubicontest/exemplary/25-26-transition-period.json index 581a0eb5308..d64f2361521 100644 --- a/adapters/rubicon/rubicontest/exemplary/25-26-transition-period.json +++ b/adapters/rubicon/rubicontest/exemplary/25-26-transition-period.json @@ -388,7 +388,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rubicon/rubicontest/exemplary/app-imp-fpd.json b/adapters/rubicon/rubicontest/exemplary/app-imp-fpd.json index 279daec96c9..914cfce03de 100644 --- a/adapters/rubicon/rubicontest/exemplary/app-imp-fpd.json +++ b/adapters/rubicon/rubicontest/exemplary/app-imp-fpd.json @@ -361,7 +361,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rubicon/rubicontest/exemplary/bidonmultiformat.json b/adapters/rubicon/rubicontest/exemplary/bidonmultiformat.json index 71043771d1d..33757cd889d 100644 --- a/adapters/rubicon/rubicontest/exemplary/bidonmultiformat.json +++ b/adapters/rubicon/rubicontest/exemplary/bidonmultiformat.json @@ -117,7 +117,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, @@ -223,7 +224,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rubicon/rubicontest/exemplary/flexible-schema.json b/adapters/rubicon/rubicontest/exemplary/flexible-schema.json index 5af9224a1ea..0434f6bab83 100644 --- a/adapters/rubicon/rubicontest/exemplary/flexible-schema.json +++ b/adapters/rubicon/rubicontest/exemplary/flexible-schema.json @@ -361,7 +361,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rubicon/rubicontest/exemplary/hardcode-secure.json b/adapters/rubicon/rubicontest/exemplary/hardcode-secure.json index dc3b9f64d2b..c349b86da91 100644 --- a/adapters/rubicon/rubicontest/exemplary/hardcode-secure.json +++ b/adapters/rubicon/rubicontest/exemplary/hardcode-secure.json @@ -334,7 +334,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rubicon/rubicontest/exemplary/non-bidonmultiformat.json b/adapters/rubicon/rubicontest/exemplary/non-bidonmultiformat.json index 73fc01a51e2..1e1485861fd 100644 --- a/adapters/rubicon/rubicontest/exemplary/non-bidonmultiformat.json +++ b/adapters/rubicon/rubicontest/exemplary/non-bidonmultiformat.json @@ -116,7 +116,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rubicon/rubicontest/exemplary/simple-banner.json b/adapters/rubicon/rubicontest/exemplary/simple-banner.json index 83073f0cb71..d2da4ce8a8d 100644 --- a/adapters/rubicon/rubicontest/exemplary/simple-banner.json +++ b/adapters/rubicon/rubicontest/exemplary/simple-banner.json @@ -347,7 +347,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rubicon/rubicontest/exemplary/simple-native.json b/adapters/rubicon/rubicontest/exemplary/simple-native.json index 976d05c1d5d..f5e43ff9211 100644 --- a/adapters/rubicon/rubicontest/exemplary/simple-native.json +++ b/adapters/rubicon/rubicontest/exemplary/simple-native.json @@ -318,7 +318,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rubicon/rubicontest/exemplary/simple-video.json b/adapters/rubicon/rubicontest/exemplary/simple-video.json index 3546af36dbd..5552dd71816 100644 --- a/adapters/rubicon/rubicontest/exemplary/simple-video.json +++ b/adapters/rubicon/rubicontest/exemplary/simple-video.json @@ -333,7 +333,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rubicon/rubicontest/exemplary/site-imp-fpd.json b/adapters/rubicon/rubicontest/exemplary/site-imp-fpd.json index ff9b6384905..87c20e227b1 100644 --- a/adapters/rubicon/rubicontest/exemplary/site-imp-fpd.json +++ b/adapters/rubicon/rubicontest/exemplary/site-imp-fpd.json @@ -484,7 +484,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rubicon/rubicontest/exemplary/user-fpd.json b/adapters/rubicon/rubicontest/exemplary/user-fpd.json index 0c4e1a95592..42ab0f0babe 100644 --- a/adapters/rubicon/rubicontest/exemplary/user-fpd.json +++ b/adapters/rubicon/rubicontest/exemplary/user-fpd.json @@ -286,7 +286,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rubicon/rubicontest/supplemental/no-site-content-data.json b/adapters/rubicon/rubicontest/supplemental/no-site-content-data.json index e10806cdc14..b2f463a95dc 100644 --- a/adapters/rubicon/rubicontest/supplemental/no-site-content-data.json +++ b/adapters/rubicon/rubicontest/supplemental/no-site-content-data.json @@ -245,7 +245,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/rubicon/rubicontest/supplemental/no-site-content.json b/adapters/rubicon/rubicontest/supplemental/no-site-content.json index a86127b5822..5744b2c9e47 100644 --- a/adapters/rubicon/rubicontest/supplemental/no-site-content.json +++ b/adapters/rubicon/rubicontest/supplemental/no-site-content.json @@ -241,7 +241,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sa_lunamedia/salunamedia.go b/adapters/sa_lunamedia/salunamedia.go index 8d7edc5244b..89d5d9f691a 100644 --- a/adapters/sa_lunamedia/salunamedia.go +++ b/adapters/sa_lunamedia/salunamedia.go @@ -50,6 +50,7 @@ func (a *adapter) MakeRequests( Body: reqJSON, Uri: a.endpoint, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), }}, nil } diff --git a/adapters/sa_lunamedia/salunamediatest/exemplary/banner.json b/adapters/sa_lunamedia/salunamediatest/exemplary/banner.json index 2ce4ad81106..1f669727fd7 100644 --- a/adapters/sa_lunamedia/salunamediatest/exemplary/banner.json +++ b/adapters/sa_lunamedia/salunamediatest/exemplary/banner.json @@ -79,7 +79,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sa_lunamedia/salunamediatest/exemplary/native.json b/adapters/sa_lunamedia/salunamediatest/exemplary/native.json index 74d8940f0a1..c2b7b979721 100644 --- a/adapters/sa_lunamedia/salunamediatest/exemplary/native.json +++ b/adapters/sa_lunamedia/salunamediatest/exemplary/native.json @@ -78,7 +78,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sa_lunamedia/salunamediatest/exemplary/video.json b/adapters/sa_lunamedia/salunamediatest/exemplary/video.json index 9a042d726d9..0bb1897b552 100644 --- a/adapters/sa_lunamedia/salunamediatest/exemplary/video.json +++ b/adapters/sa_lunamedia/salunamediatest/exemplary/video.json @@ -110,7 +110,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sa_lunamedia/salunamediatest/supplemental/bad-response.json b/adapters/sa_lunamedia/salunamediatest/supplemental/bad-response.json index 6373207d481..72262b5d533 100644 --- a/adapters/sa_lunamedia/salunamediatest/supplemental/bad-response.json +++ b/adapters/sa_lunamedia/salunamediatest/supplemental/bad-response.json @@ -79,7 +79,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sa_lunamedia/salunamediatest/supplemental/empty-seatbid.json b/adapters/sa_lunamedia/salunamediatest/supplemental/empty-seatbid.json index 8942b3be65a..93729ef2b01 100644 --- a/adapters/sa_lunamedia/salunamediatest/supplemental/empty-seatbid.json +++ b/adapters/sa_lunamedia/salunamediatest/supplemental/empty-seatbid.json @@ -78,7 +78,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sa_lunamedia/salunamediatest/supplemental/status-204.json b/adapters/sa_lunamedia/salunamediatest/supplemental/status-204.json index 042b96bde65..54732c82e1a 100644 --- a/adapters/sa_lunamedia/salunamediatest/supplemental/status-204.json +++ b/adapters/sa_lunamedia/salunamediatest/supplemental/status-204.json @@ -79,7 +79,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 204, diff --git a/adapters/sa_lunamedia/salunamediatest/supplemental/status-400.json b/adapters/sa_lunamedia/salunamediatest/supplemental/status-400.json index 1ecdc46e5fa..8b23c30f903 100644 --- a/adapters/sa_lunamedia/salunamediatest/supplemental/status-400.json +++ b/adapters/sa_lunamedia/salunamediatest/supplemental/status-400.json @@ -79,7 +79,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 400, diff --git a/adapters/sa_lunamedia/salunamediatest/supplemental/status-503.json b/adapters/sa_lunamedia/salunamediatest/supplemental/status-503.json index 2590418a75f..490856cb807 100644 --- a/adapters/sa_lunamedia/salunamediatest/supplemental/status-503.json +++ b/adapters/sa_lunamedia/salunamediatest/supplemental/status-503.json @@ -79,7 +79,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 503 diff --git a/adapters/sa_lunamedia/salunamediatest/supplemental/unexpected-status.json b/adapters/sa_lunamedia/salunamediatest/supplemental/unexpected-status.json index a54737cafdb..7d11c000c8d 100644 --- a/adapters/sa_lunamedia/salunamediatest/supplemental/unexpected-status.json +++ b/adapters/sa_lunamedia/salunamediatest/supplemental/unexpected-status.json @@ -79,7 +79,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 403, diff --git a/adapters/screencore/screencore.go b/adapters/screencore/screencore.go index be951c23c38..6011b9bbd80 100644 --- a/adapters/screencore/screencore.go +++ b/adapters/screencore/screencore.go @@ -82,6 +82,7 @@ func (a *adapter) MakeRequests(openRTBRequest *openrtb2.BidRequest, reqInfo *ada Body: reqJSON, Uri: url, Headers: getHeaders(openRTBRequest), + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), }}, nil } diff --git a/adapters/screencore/screencoretest/exemplary/banner-app.json b/adapters/screencore/screencoretest/exemplary/banner-app.json index 0b75398d767..2c807376f71 100644 --- a/adapters/screencore/screencoretest/exemplary/banner-app.json +++ b/adapters/screencore/screencoretest/exemplary/banner-app.json @@ -95,7 +95,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/screencore/screencoretest/exemplary/banner-web.json b/adapters/screencore/screencoretest/exemplary/banner-web.json index a9eed6bfb53..7e9b12546bd 100644 --- a/adapters/screencore/screencoretest/exemplary/banner-web.json +++ b/adapters/screencore/screencoretest/exemplary/banner-web.json @@ -111,7 +111,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id1","some-impression-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/screencore/screencoretest/exemplary/native-app.json b/adapters/screencore/screencoretest/exemplary/native-app.json index eece64eea2d..eb85dcbfec6 100644 --- a/adapters/screencore/screencoretest/exemplary/native-app.json +++ b/adapters/screencore/screencoretest/exemplary/native-app.json @@ -95,7 +95,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/screencore/screencoretest/exemplary/native-web.json b/adapters/screencore/screencoretest/exemplary/native-web.json index 5878519f33f..a597611c238 100644 --- a/adapters/screencore/screencoretest/exemplary/native-web.json +++ b/adapters/screencore/screencoretest/exemplary/native-web.json @@ -83,7 +83,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/screencore/screencoretest/exemplary/video-app.json b/adapters/screencore/screencoretest/exemplary/video-app.json index 7368af33a98..7a29e5b53d7 100644 --- a/adapters/screencore/screencoretest/exemplary/video-app.json +++ b/adapters/screencore/screencoretest/exemplary/video-app.json @@ -105,7 +105,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/screencore/screencoretest/exemplary/video-web.json b/adapters/screencore/screencoretest/exemplary/video-web.json index a56ddb78bea..47de396e8c6 100644 --- a/adapters/screencore/screencoretest/exemplary/video-web.json +++ b/adapters/screencore/screencoretest/exemplary/video-web.json @@ -93,7 +93,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/screencore/screencoretest/supplemental/bad_media_type.json b/adapters/screencore/screencoretest/supplemental/bad_media_type.json index ed7200c54a6..b8a3994730b 100644 --- a/adapters/screencore/screencoretest/supplemental/bad_media_type.json +++ b/adapters/screencore/screencoretest/supplemental/bad_media_type.json @@ -95,7 +95,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/screencore/screencoretest/supplemental/empty-seatbid-array.json b/adapters/screencore/screencoretest/supplemental/empty-seatbid-array.json index 0ed6159a54a..04058fc9174 100644 --- a/adapters/screencore/screencoretest/supplemental/empty-seatbid-array.json +++ b/adapters/screencore/screencoretest/supplemental/empty-seatbid-array.json @@ -105,7 +105,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/screencore/screencoretest/supplemental/invalid-response.json b/adapters/screencore/screencoretest/supplemental/invalid-response.json index b2417d9d8d6..79ca5b96dcf 100644 --- a/adapters/screencore/screencoretest/supplemental/invalid-response.json +++ b/adapters/screencore/screencoretest/supplemental/invalid-response.json @@ -95,7 +95,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/screencore/screencoretest/supplemental/status-code-bad-request.json b/adapters/screencore/screencoretest/supplemental/status-code-bad-request.json index 68deeef92de..cb2ac212e85 100644 --- a/adapters/screencore/screencoretest/supplemental/status-code-bad-request.json +++ b/adapters/screencore/screencoretest/supplemental/status-code-bad-request.json @@ -76,7 +76,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/screencore/screencoretest/supplemental/status-code-no-content.json b/adapters/screencore/screencoretest/supplemental/status-code-no-content.json index 1b6fa699a1b..b0315e5703c 100644 --- a/adapters/screencore/screencoretest/supplemental/status-code-no-content.json +++ b/adapters/screencore/screencoretest/supplemental/status-code-no-content.json @@ -64,7 +64,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/screencore/screencoretest/supplemental/status-code-other-error.json b/adapters/screencore/screencoretest/supplemental/status-code-other-error.json index 994b33f2b80..d35c8b0fa84 100644 --- a/adapters/screencore/screencoretest/supplemental/status-code-other-error.json +++ b/adapters/screencore/screencoretest/supplemental/status-code-other-error.json @@ -64,7 +64,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 306 diff --git a/adapters/screencore/screencoretest/supplemental/status-code-service-unavailable.json b/adapters/screencore/screencoretest/supplemental/status-code-service-unavailable.json index b885df20c58..f6eb482fa9e 100644 --- a/adapters/screencore/screencoretest/supplemental/status-code-service-unavailable.json +++ b/adapters/screencore/screencoretest/supplemental/status-code-service-unavailable.json @@ -64,7 +64,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/seedingAlliance/seedingAlliance.go b/adapters/seedingAlliance/seedingAlliance.go index af48133d7c2..1d6e9a8fb12 100644 --- a/adapters/seedingAlliance/seedingAlliance.go +++ b/adapters/seedingAlliance/seedingAlliance.go @@ -60,6 +60,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, extraRequestInfo *a Method: http.MethodPost, Uri: url, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/seedingAlliance/seedingAlliancetest/exemplary/banner.json b/adapters/seedingAlliance/seedingAlliancetest/exemplary/banner.json index b59abb0c7b4..e65fd17fff2 100644 --- a/adapters/seedingAlliance/seedingAlliancetest/exemplary/banner.json +++ b/adapters/seedingAlliance/seedingAlliancetest/exemplary/banner.json @@ -68,7 +68,8 @@ "name": "foo" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/seedingAlliance/seedingAlliancetest/exemplary/banner_with_account.json b/adapters/seedingAlliance/seedingAlliancetest/exemplary/banner_with_account.json index fc3678ea34b..062cc08a5a5 100644 --- a/adapters/seedingAlliance/seedingAlliancetest/exemplary/banner_with_account.json +++ b/adapters/seedingAlliance/seedingAlliancetest/exemplary/banner_with_account.json @@ -70,7 +70,10 @@ "name": "foo" } } - } + }, + "impIDs": [ + "test-imp-id" + ] }, "mockResponse": { "status": 200, diff --git a/adapters/seedingAlliance/seedingAlliancetest/exemplary/banner_with_account_and_seat.json b/adapters/seedingAlliance/seedingAlliancetest/exemplary/banner_with_account_and_seat.json index 3f010e6075d..59dc3543b24 100644 --- a/adapters/seedingAlliance/seedingAlliancetest/exemplary/banner_with_account_and_seat.json +++ b/adapters/seedingAlliance/seedingAlliancetest/exemplary/banner_with_account_and_seat.json @@ -72,7 +72,10 @@ "name": "foo" } } - } + }, + "impIDs": [ + "test-imp-id" + ] }, "mockResponse": { "status": 200, diff --git a/adapters/seedingAlliance/seedingAlliancetest/exemplary/banner_with_seat.json b/adapters/seedingAlliance/seedingAlliancetest/exemplary/banner_with_seat.json index 2dc39865525..32358857696 100644 --- a/adapters/seedingAlliance/seedingAlliancetest/exemplary/banner_with_seat.json +++ b/adapters/seedingAlliance/seedingAlliancetest/exemplary/banner_with_seat.json @@ -70,7 +70,8 @@ "name": "foo" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/seedingAlliance/seedingAlliancetest/exemplary/native.json b/adapters/seedingAlliance/seedingAlliancetest/exemplary/native.json index ffddaa43da6..519c66a729e 100644 --- a/adapters/seedingAlliance/seedingAlliancetest/exemplary/native.json +++ b/adapters/seedingAlliance/seedingAlliancetest/exemplary/native.json @@ -53,7 +53,8 @@ "name": "foo" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/seedingAlliance/seedingAlliancetest/supplemental/status_bad_request.json b/adapters/seedingAlliance/seedingAlliancetest/supplemental/status_bad_request.json index 7d1d9527f45..b1f6c3201e6 100644 --- a/adapters/seedingAlliance/seedingAlliancetest/supplemental/status_bad_request.json +++ b/adapters/seedingAlliance/seedingAlliancetest/supplemental/status_bad_request.json @@ -56,7 +56,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/seedingAlliance/seedingAlliancetest/supplemental/status_no_content.json b/adapters/seedingAlliance/seedingAlliancetest/supplemental/status_no_content.json index 465870c712b..a4967869bb9 100644 --- a/adapters/seedingAlliance/seedingAlliancetest/supplemental/status_no_content.json +++ b/adapters/seedingAlliance/seedingAlliancetest/supplemental/status_no_content.json @@ -56,7 +56,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/seedingAlliance/seedingAlliancetest/supplemental/status_not_ok.json b/adapters/seedingAlliance/seedingAlliancetest/supplemental/status_not_ok.json index 57e7221a872..6992feb0466 100644 --- a/adapters/seedingAlliance/seedingAlliancetest/supplemental/status_not_ok.json +++ b/adapters/seedingAlliance/seedingAlliancetest/supplemental/status_not_ok.json @@ -56,7 +56,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404 diff --git a/adapters/sharethrough/sharethrough.go b/adapters/sharethrough/sharethrough.go index db20126928f..fd303c6feff 100644 --- a/adapters/sharethrough/sharethrough.go +++ b/adapters/sharethrough/sharethrough.go @@ -103,6 +103,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: a.endpoint, Body: requestJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), } requests = append(requests, requestData) } diff --git a/adapters/sharethrough/sharethroughtest/exemplary/app-banner.json b/adapters/sharethrough/sharethroughtest/exemplary/app-banner.json index 29f1b1d1eb1..c66d0981582 100644 --- a/adapters/sharethrough/sharethroughtest/exemplary/app-banner.json +++ b/adapters/sharethrough/sharethroughtest/exemplary/app-banner.json @@ -79,7 +79,8 @@ "str": "10.0" } } - } + }, + "impIDs":["banner-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sharethrough/sharethroughtest/exemplary/app-native.json b/adapters/sharethrough/sharethroughtest/exemplary/app-native.json index ff283d9ceb0..b5e3991690d 100644 --- a/adapters/sharethrough/sharethroughtest/exemplary/app-native.json +++ b/adapters/sharethrough/sharethroughtest/exemplary/app-native.json @@ -47,7 +47,8 @@ "str": "10.0" } } - } + }, + "impIDs":["native-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sharethrough/sharethroughtest/exemplary/app-video.json b/adapters/sharethrough/sharethroughtest/exemplary/app-video.json index e8e3d97e152..ec75dfdf342 100644 --- a/adapters/sharethrough/sharethroughtest/exemplary/app-video.json +++ b/adapters/sharethrough/sharethroughtest/exemplary/app-video.json @@ -87,7 +87,8 @@ }, "badv": ["ford.com"], "bcat": ["IAB-1", "IAB-2"] - } + }, + "impIDs":["video-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sharethrough/sharethroughtest/exemplary/web-banner.json b/adapters/sharethrough/sharethroughtest/exemplary/web-banner.json index cbc5630aa4e..86c4d6d6d07 100644 --- a/adapters/sharethrough/sharethroughtest/exemplary/web-banner.json +++ b/adapters/sharethrough/sharethroughtest/exemplary/web-banner.json @@ -80,7 +80,8 @@ "str": "10.0" } } - } + }, + "impIDs":["baner-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sharethrough/sharethroughtest/exemplary/web-video.json b/adapters/sharethrough/sharethroughtest/exemplary/web-video.json index 892d140df3a..639ebc8b47f 100644 --- a/adapters/sharethrough/sharethroughtest/exemplary/web-video.json +++ b/adapters/sharethrough/sharethroughtest/exemplary/web-video.json @@ -88,7 +88,8 @@ }, "badv": ["ford.com"], "bcat": ["IAB-1", "IAB-2"] - } + }, + "impIDs":["video-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sharethrough/sharethroughtest/supplemental/error-bad-request.json b/adapters/sharethrough/sharethroughtest/supplemental/error-bad-request.json index 76d8178069c..1b6fe5f6a2f 100644 --- a/adapters/sharethrough/sharethroughtest/supplemental/error-bad-request.json +++ b/adapters/sharethrough/sharethroughtest/supplemental/error-bad-request.json @@ -83,7 +83,8 @@ "str": "10.0" } } - } + }, + "impIDs":["banner-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/sharethrough/sharethroughtest/supplemental/error-internal-server.json b/adapters/sharethrough/sharethroughtest/supplemental/error-internal-server.json index 5562c466c10..288e9fe626c 100644 --- a/adapters/sharethrough/sharethroughtest/supplemental/error-internal-server.json +++ b/adapters/sharethrough/sharethroughtest/supplemental/error-internal-server.json @@ -83,7 +83,8 @@ "str": "10.0" } } - } + }, + "impIDs":["banner-imp-id"] }, "mockResponse": { "status": 500 diff --git a/adapters/sharethrough/sharethroughtest/supplemental/multi-imp.json b/adapters/sharethrough/sharethroughtest/supplemental/multi-imp.json index 6007c63c497..1a0fe70971a 100644 --- a/adapters/sharethrough/sharethroughtest/supplemental/multi-imp.json +++ b/adapters/sharethrough/sharethroughtest/supplemental/multi-imp.json @@ -95,7 +95,8 @@ "str": "10.0" } } - } + }, + "impIDs":["banner-imp-id-1"] }, "mockResponse": { "status": 200, @@ -171,7 +172,8 @@ "str": "10.0" } } - } + }, + "impIDs":["banner-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/sharethrough/sharethroughtest/supplemental/multiformat-impression.json b/adapters/sharethrough/sharethroughtest/supplemental/multiformat-impression.json index fcebf79acc8..580f89d68ec 100644 --- a/adapters/sharethrough/sharethroughtest/supplemental/multiformat-impression.json +++ b/adapters/sharethrough/sharethroughtest/supplemental/multiformat-impression.json @@ -104,7 +104,8 @@ "str": "10.0" } } - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, @@ -184,7 +185,8 @@ "str": "10.0" } } - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, @@ -260,7 +262,8 @@ "str": "10.0" } } - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sharethrough/sharethroughtest/supplemental/no-fill.json b/adapters/sharethrough/sharethroughtest/supplemental/no-fill.json index 3b8dd9973b2..605b3ffd5cf 100644 --- a/adapters/sharethrough/sharethroughtest/supplemental/no-fill.json +++ b/adapters/sharethrough/sharethroughtest/supplemental/no-fill.json @@ -83,7 +83,8 @@ "str": "10.0" } } - } + }, + "impIDs":["banner-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/sharethrough/sharethroughtest/supplemental/schain.json b/adapters/sharethrough/sharethroughtest/supplemental/schain.json index 55a329d31fd..28b5565b2a6 100644 --- a/adapters/sharethrough/sharethroughtest/supplemental/schain.json +++ b/adapters/sharethrough/sharethroughtest/supplemental/schain.json @@ -114,7 +114,8 @@ }, "badv": ["ford.com"], "bcat": ["IAB-1", "IAB-2"] - } + }, + "impIDs":["video-imp-schain-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/silvermob/silvermob.go b/adapters/silvermob/silvermob.go index 144c54ecb7b..636f126147a 100644 --- a/adapters/silvermob/silvermob.go +++ b/adapters/silvermob/silvermob.go @@ -100,6 +100,7 @@ func (a *SilverMobAdapter) MakeRequests( Body: reqJSON, Uri: url, Headers: *GetHeaders(&requestCopy), + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), } requestData = append(requestData, reqData) diff --git a/adapters/silvermob/silvermobtest/exemplary/banner-app.json b/adapters/silvermob/silvermobtest/exemplary/banner-app.json index 7a2a4fef26e..6e309d976e1 100644 --- a/adapters/silvermob/silvermobtest/exemplary/banner-app.json +++ b/adapters/silvermob/silvermobtest/exemplary/banner-app.json @@ -101,7 +101,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/silvermob/silvermobtest/exemplary/banner-multi-app.json b/adapters/silvermob/silvermobtest/exemplary/banner-multi-app.json index 531704c5c29..3c02dcb7900 100644 --- a/adapters/silvermob/silvermobtest/exemplary/banner-multi-app.json +++ b/adapters/silvermob/silvermobtest/exemplary/banner-multi-app.json @@ -115,7 +115,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, @@ -211,7 +212,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["another-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/silvermob/silvermobtest/exemplary/native-app.json b/adapters/silvermob/silvermobtest/exemplary/native-app.json index c1cb8cf3d49..69b5e9b4a44 100644 --- a/adapters/silvermob/silvermobtest/exemplary/native-app.json +++ b/adapters/silvermob/silvermobtest/exemplary/native-app.json @@ -101,7 +101,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/silvermob/silvermobtest/exemplary/video-app.json b/adapters/silvermob/silvermobtest/exemplary/video-app.json index a311c85b29e..afa54f84b4e 100644 --- a/adapters/silvermob/silvermobtest/exemplary/video-app.json +++ b/adapters/silvermob/silvermobtest/exemplary/video-app.json @@ -111,7 +111,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/silvermob/silvermobtest/supplemental/empty-seatbid-array.json b/adapters/silvermob/silvermobtest/supplemental/empty-seatbid-array.json index be95abeaa2f..0e21a9f6a76 100644 --- a/adapters/silvermob/silvermobtest/supplemental/empty-seatbid-array.json +++ b/adapters/silvermob/silvermobtest/supplemental/empty-seatbid-array.json @@ -111,7 +111,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/silvermob/silvermobtest/supplemental/invalid-response.json b/adapters/silvermob/silvermobtest/supplemental/invalid-response.json index 4970678bef9..f78979db334 100644 --- a/adapters/silvermob/silvermobtest/supplemental/invalid-response.json +++ b/adapters/silvermob/silvermobtest/supplemental/invalid-response.json @@ -102,7 +102,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/silvermob/silvermobtest/supplemental/status-code-bad-request.json b/adapters/silvermob/silvermobtest/supplemental/status-code-bad-request.json index e93f249030d..44b9e6c0fea 100644 --- a/adapters/silvermob/silvermobtest/supplemental/status-code-bad-request.json +++ b/adapters/silvermob/silvermobtest/supplemental/status-code-bad-request.json @@ -83,7 +83,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/silvermob/silvermobtest/supplemental/status-code-no-content.json b/adapters/silvermob/silvermobtest/supplemental/status-code-no-content.json index a29710bfa85..537636eb3dd 100644 --- a/adapters/silvermob/silvermobtest/supplemental/status-code-no-content.json +++ b/adapters/silvermob/silvermobtest/supplemental/status-code-no-content.json @@ -71,7 +71,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/silvermob/silvermobtest/supplemental/status-code-other-error.json b/adapters/silvermob/silvermobtest/supplemental/status-code-other-error.json index a32af01e55f..c17d4b585c8 100644 --- a/adapters/silvermob/silvermobtest/supplemental/status-code-other-error.json +++ b/adapters/silvermob/silvermobtest/supplemental/status-code-other-error.json @@ -71,7 +71,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 306 diff --git a/adapters/silvermob/silvermobtest/supplemental/status-code-service-unavailable.json b/adapters/silvermob/silvermobtest/supplemental/status-code-service-unavailable.json index 5772a86ee8a..9a72d2cb347 100644 --- a/adapters/silvermob/silvermobtest/supplemental/status-code-service-unavailable.json +++ b/adapters/silvermob/silvermobtest/supplemental/status-code-service-unavailable.json @@ -71,7 +71,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/silverpush/silverpush.go b/adapters/silverpush/silverpush.go index 1b1b327721b..2ed554a2594 100644 --- a/adapters/silverpush/silverpush.go +++ b/adapters/silverpush/silverpush.go @@ -71,6 +71,7 @@ func (a *adapter) makeRequest(req *openrtb2.BidRequest) (*adapters.RequestData, Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(req.Imp), }, nil } diff --git a/adapters/silverpush/silverpushtest/exemplary/banner-bidfloor-zero.json b/adapters/silverpush/silverpushtest/exemplary/banner-bidfloor-zero.json index a4d73374a42..d392740b19a 100644 --- a/adapters/silverpush/silverpushtest/exemplary/banner-bidfloor-zero.json +++ b/adapters/silverpush/silverpushtest/exemplary/banner-bidfloor-zero.json @@ -165,7 +165,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/silverpush/silverpushtest/exemplary/banner-device-ctv-.json b/adapters/silverpush/silverpushtest/exemplary/banner-device-ctv-.json index 037b844c519..edd0ecd4c3f 100644 --- a/adapters/silverpush/silverpushtest/exemplary/banner-device-ctv-.json +++ b/adapters/silverpush/silverpushtest/exemplary/banner-device-ctv-.json @@ -167,7 +167,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/silverpush/silverpushtest/exemplary/banner-device-site.json b/adapters/silverpush/silverpushtest/exemplary/banner-device-site.json index f12af4b3738..c43008a2933 100644 --- a/adapters/silverpush/silverpushtest/exemplary/banner-device-site.json +++ b/adapters/silverpush/silverpushtest/exemplary/banner-device-site.json @@ -167,7 +167,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/silverpush/silverpushtest/exemplary/banner-eids.json b/adapters/silverpush/silverpushtest/exemplary/banner-eids.json index 62273801292..c08a9e96f74 100644 --- a/adapters/silverpush/silverpushtest/exemplary/banner-eids.json +++ b/adapters/silverpush/silverpushtest/exemplary/banner-eids.json @@ -195,7 +195,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/silverpush/silverpushtest/exemplary/banner-iOS-ua.json b/adapters/silverpush/silverpushtest/exemplary/banner-iOS-ua.json index 4a8868ce7fa..ea48ee6e764 100644 --- a/adapters/silverpush/silverpushtest/exemplary/banner-iOS-ua.json +++ b/adapters/silverpush/silverpushtest/exemplary/banner-iOS-ua.json @@ -167,7 +167,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/silverpush/silverpushtest/exemplary/banner-windows-ua.json b/adapters/silverpush/silverpushtest/exemplary/banner-windows-ua.json index 7e6eb647c27..7b2ed18f3ef 100644 --- a/adapters/silverpush/silverpushtest/exemplary/banner-windows-ua.json +++ b/adapters/silverpush/silverpushtest/exemplary/banner-windows-ua.json @@ -167,7 +167,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/silverpush/silverpushtest/exemplary/banner-without-site-publisher.json b/adapters/silverpush/silverpushtest/exemplary/banner-without-site-publisher.json index 042dd9c5021..d9173fc32a5 100644 --- a/adapters/silverpush/silverpushtest/exemplary/banner-without-site-publisher.json +++ b/adapters/silverpush/silverpushtest/exemplary/banner-without-site-publisher.json @@ -154,7 +154,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/silverpush/silverpushtest/exemplary/banner-without-w-h.json b/adapters/silverpush/silverpushtest/exemplary/banner-without-w-h.json index a3764658c03..32df97eeaa9 100644 --- a/adapters/silverpush/silverpushtest/exemplary/banner-without-w-h.json +++ b/adapters/silverpush/silverpushtest/exemplary/banner-without-w-h.json @@ -189,7 +189,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/silverpush/silverpushtest/exemplary/banner.json b/adapters/silverpush/silverpushtest/exemplary/banner.json index 8476f805716..bccf4a2c6f1 100644 --- a/adapters/silverpush/silverpushtest/exemplary/banner.json +++ b/adapters/silverpush/silverpushtest/exemplary/banner.json @@ -167,7 +167,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/silverpush/silverpushtest/exemplary/banner_without_publisher.json b/adapters/silverpush/silverpushtest/exemplary/banner_without_publisher.json index 2fd4188f4a5..733256646da 100644 --- a/adapters/silverpush/silverpushtest/exemplary/banner_without_publisher.json +++ b/adapters/silverpush/silverpushtest/exemplary/banner_without_publisher.json @@ -152,7 +152,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/silverpush/silverpushtest/exemplary/video-bidfloor-zero.json b/adapters/silverpush/silverpushtest/exemplary/video-bidfloor-zero.json index d9650cd0e8a..397ae6bc3f0 100644 --- a/adapters/silverpush/silverpushtest/exemplary/video-bidfloor-zero.json +++ b/adapters/silverpush/silverpushtest/exemplary/video-bidfloor-zero.json @@ -155,7 +155,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/silverpush/silverpushtest/exemplary/video.json b/adapters/silverpush/silverpushtest/exemplary/video.json index 2f0dccef05a..a749606246c 100644 --- a/adapters/silverpush/silverpushtest/exemplary/video.json +++ b/adapters/silverpush/silverpushtest/exemplary/video.json @@ -158,7 +158,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/silverpush/silverpushtest/exemplary/video_min_max_duration.json b/adapters/silverpush/silverpushtest/exemplary/video_min_max_duration.json index d0ac6889362..0c00b7941d3 100644 --- a/adapters/silverpush/silverpushtest/exemplary/video_min_max_duration.json +++ b/adapters/silverpush/silverpushtest/exemplary/video_min_max_duration.json @@ -158,7 +158,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/silverpush/silverpushtest/supplemental/bad-eids-value.json b/adapters/silverpush/silverpushtest/supplemental/bad-eids-value.json index f91b0fc7cce..dee8105866c 100644 --- a/adapters/silverpush/silverpushtest/supplemental/bad-eids-value.json +++ b/adapters/silverpush/silverpushtest/supplemental/bad-eids-value.json @@ -189,7 +189,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/silverpush/silverpushtest/supplemental/bad-response-unmarshal.json b/adapters/silverpush/silverpushtest/supplemental/bad-response-unmarshal.json index c48c48f1bf0..d6cad0fc5f7 100644 --- a/adapters/silverpush/silverpushtest/supplemental/bad-response-unmarshal.json +++ b/adapters/silverpush/silverpushtest/supplemental/bad-response-unmarshal.json @@ -167,7 +167,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/silverpush/silverpushtest/supplemental/status-204-resp.json b/adapters/silverpush/silverpushtest/supplemental/status-204-resp.json index fa95a6af1c7..e94652dfa10 100644 --- a/adapters/silverpush/silverpushtest/supplemental/status-204-resp.json +++ b/adapters/silverpush/silverpushtest/supplemental/status-204-resp.json @@ -167,7 +167,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 204, diff --git a/adapters/silverpush/silverpushtest/supplemental/status-400-resp.json b/adapters/silverpush/silverpushtest/supplemental/status-400-resp.json index 1a3c57f6eb4..0a28090dec3 100644 --- a/adapters/silverpush/silverpushtest/supplemental/status-400-resp.json +++ b/adapters/silverpush/silverpushtest/supplemental/status-400-resp.json @@ -167,7 +167,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 400, diff --git a/adapters/silverpush/silverpushtest/supplemental/status-500-resp.json b/adapters/silverpush/silverpushtest/supplemental/status-500-resp.json index 86dff666431..b9181f5baa7 100644 --- a/adapters/silverpush/silverpushtest/supplemental/status-500-resp.json +++ b/adapters/silverpush/silverpushtest/supplemental/status-500-resp.json @@ -167,7 +167,8 @@ "bc": "sp_pb_ortb_1.0.0", "publisherId": "publisher123" } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 500, diff --git a/adapters/smaato/smaato.go b/adapters/smaato/smaato.go index 09d973c7992..a8f2eae3665 100644 --- a/adapters/smaato/smaato.go +++ b/adapters/smaato/smaato.go @@ -257,6 +257,7 @@ func (adapter *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.Req Uri: adapter.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, nil } diff --git a/adapters/smaato/smaatotest/exemplary/multiple-impressions-skadn.json b/adapters/smaato/smaatotest/exemplary/multiple-impressions-skadn.json index cbc1f1e3440..8776ee21b60 100644 --- a/adapters/smaato/smaatotest/exemplary/multiple-impressions-skadn.json +++ b/adapters/smaato/smaatotest/exemplary/multiple-impressions-skadn.json @@ -205,7 +205,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, @@ -350,7 +351,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["postbid_iframe"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/exemplary/multiple-impressions.json b/adapters/smaato/smaatotest/exemplary/multiple-impressions.json index 485636748aa..a5cabde9ac6 100644 --- a/adapters/smaato/smaatotest/exemplary/multiple-impressions.json +++ b/adapters/smaato/smaatotest/exemplary/multiple-impressions.json @@ -164,7 +164,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, @@ -270,7 +271,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["postbid_iframe"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/exemplary/multiple-media-types-skadn.json b/adapters/smaato/smaatotest/exemplary/multiple-media-types-skadn.json index 5fc29f28df1..8f0956ba414 100644 --- a/adapters/smaato/smaatotest/exemplary/multiple-media-types-skadn.json +++ b/adapters/smaato/smaatotest/exemplary/multiple-media-types-skadn.json @@ -182,7 +182,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, @@ -327,7 +328,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/exemplary/multiple-media-types.json b/adapters/smaato/smaatotest/exemplary/multiple-media-types.json index bbca7d2eb61..b849f2d61df 100644 --- a/adapters/smaato/smaatotest/exemplary/multiple-media-types.json +++ b/adapters/smaato/smaatotest/exemplary/multiple-media-types.json @@ -154,7 +154,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, @@ -260,7 +261,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/exemplary/native.json b/adapters/smaato/smaatotest/exemplary/native.json index 00dfe9ec4af..a73d0ebf99a 100644 --- a/adapters/smaato/smaatotest/exemplary/native.json +++ b/adapters/smaato/smaatotest/exemplary/native.json @@ -104,7 +104,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["postbid_iframe"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/exemplary/simple-banner-app.json b/adapters/smaato/smaatotest/exemplary/simple-banner-app.json index 22f9c9b94d4..539974e5bab 100644 --- a/adapters/smaato/smaatotest/exemplary/simple-banner-app.json +++ b/adapters/smaato/smaatotest/exemplary/simple-banner-app.json @@ -162,7 +162,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/exemplary/simple-banner-richMedia-app.json b/adapters/smaato/smaatotest/exemplary/simple-banner-richMedia-app.json index 3b054d43829..698f305524e 100644 --- a/adapters/smaato/smaatotest/exemplary/simple-banner-richMedia-app.json +++ b/adapters/smaato/smaatotest/exemplary/simple-banner-richMedia-app.json @@ -166,7 +166,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/exemplary/simple-banner-richMedia.json b/adapters/smaato/smaatotest/exemplary/simple-banner-richMedia.json index 268fd0d43d8..c52aab4161f 100644 --- a/adapters/smaato/smaatotest/exemplary/simple-banner-richMedia.json +++ b/adapters/smaato/smaatotest/exemplary/simple-banner-richMedia.json @@ -131,7 +131,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/exemplary/simple-banner-skadn.json b/adapters/smaato/smaatotest/exemplary/simple-banner-skadn.json index 33a7ef8e0a5..bbd50245886 100644 --- a/adapters/smaato/smaatotest/exemplary/simple-banner-skadn.json +++ b/adapters/smaato/smaatotest/exemplary/simple-banner-skadn.json @@ -171,7 +171,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/exemplary/simple-banner.json b/adapters/smaato/smaatotest/exemplary/simple-banner.json index 0596c47346f..68219ca2c79 100644 --- a/adapters/smaato/smaatotest/exemplary/simple-banner.json +++ b/adapters/smaato/smaatotest/exemplary/simple-banner.json @@ -135,7 +135,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/exemplary/video-app.json b/adapters/smaato/smaatotest/exemplary/video-app.json index 79bd41ef5c4..4ada3a36157 100644 --- a/adapters/smaato/smaatotest/exemplary/video-app.json +++ b/adapters/smaato/smaatotest/exemplary/video-app.json @@ -167,7 +167,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["postbid_iframe"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/exemplary/video.json b/adapters/smaato/smaatotest/exemplary/video.json index 42d56e60ac2..2f441302df1 100644 --- a/adapters/smaato/smaatotest/exemplary/video.json +++ b/adapters/smaato/smaatotest/exemplary/video.json @@ -146,7 +146,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["postbid_iframe"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/supplemental/adtype-header-response.json b/adapters/smaato/smaatotest/supplemental/adtype-header-response.json index bebbc161e83..bb96e64e7ca 100644 --- a/adapters/smaato/smaatotest/supplemental/adtype-header-response.json +++ b/adapters/smaato/smaatotest/supplemental/adtype-header-response.json @@ -127,7 +127,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/supplemental/bad-adm-response.json b/adapters/smaato/smaatotest/supplemental/bad-adm-response.json index e45e8753a0b..a9c00c2733c 100644 --- a/adapters/smaato/smaatotest/supplemental/bad-adm-response.json +++ b/adapters/smaato/smaatotest/supplemental/bad-adm-response.json @@ -127,7 +127,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/supplemental/bad-adtype-header-response.json b/adapters/smaato/smaatotest/supplemental/bad-adtype-header-response.json index 053f0d3f603..8aa04a2c8ff 100644 --- a/adapters/smaato/smaatotest/supplemental/bad-adtype-header-response.json +++ b/adapters/smaato/smaatotest/supplemental/bad-adtype-header-response.json @@ -127,7 +127,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/supplemental/bad-expires-header-response.json b/adapters/smaato/smaatotest/supplemental/bad-expires-header-response.json index a990b92b732..355b10eda6d 100644 --- a/adapters/smaato/smaatotest/supplemental/bad-expires-header-response.json +++ b/adapters/smaato/smaatotest/supplemental/bad-expires-header-response.json @@ -127,7 +127,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/supplemental/bad-status-code-response.json b/adapters/smaato/smaatotest/supplemental/bad-status-code-response.json index 84b8fe9844b..bb812f648de 100644 --- a/adapters/smaato/smaatotest/supplemental/bad-status-code-response.json +++ b/adapters/smaato/smaatotest/supplemental/bad-status-code-response.json @@ -127,7 +127,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 400 diff --git a/adapters/smaato/smaatotest/supplemental/banner-w-and-h.json b/adapters/smaato/smaatotest/supplemental/banner-w-and-h.json index ca1a029a140..3c84cb804d0 100644 --- a/adapters/smaato/smaatotest/supplemental/banner-w-and-h.json +++ b/adapters/smaato/smaatotest/supplemental/banner-w-and-h.json @@ -109,7 +109,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/supplemental/expires-header-response.json b/adapters/smaato/smaatotest/supplemental/expires-header-response.json index 86e1b101347..eb1ba9fee32 100644 --- a/adapters/smaato/smaatotest/supplemental/expires-header-response.json +++ b/adapters/smaato/smaatotest/supplemental/expires-header-response.json @@ -127,7 +127,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/supplemental/no-bid-response.json b/adapters/smaato/smaatotest/supplemental/no-bid-response.json index 76ad48a4c88..7d62d8831e5 100644 --- a/adapters/smaato/smaatotest/supplemental/no-bid-response.json +++ b/adapters/smaato/smaatotest/supplemental/no-bid-response.json @@ -127,7 +127,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 204 diff --git a/adapters/smaato/smaatotest/supplemental/no-consent-info-request.json b/adapters/smaato/smaatotest/supplemental/no-consent-info-request.json index 09b3a1fb1ca..54be06113ea 100644 --- a/adapters/smaato/smaatotest/supplemental/no-consent-info-request.json +++ b/adapters/smaato/smaatotest/supplemental/no-consent-info-request.json @@ -74,7 +74,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/supplemental/outdated-expires-header-response.json b/adapters/smaato/smaatotest/supplemental/outdated-expires-header-response.json index 2c983fe2119..2a7378f4767 100644 --- a/adapters/smaato/smaatotest/supplemental/outdated-expires-header-response.json +++ b/adapters/smaato/smaatotest/supplemental/outdated-expires-header-response.json @@ -127,7 +127,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1C86242D-9535-47D6-9576-7B1FE87F282C"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/video/multiple-adpods-skadn.json b/adapters/smaato/smaatotest/video/multiple-adpods-skadn.json index fe9e9d4deae..9b94e59dc7a 100644 --- a/adapters/smaato/smaatotest/video/multiple-adpods-skadn.json +++ b/adapters/smaato/smaatotest/video/multiple-adpods-skadn.json @@ -303,7 +303,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1_1","1_2"] }, "mockResponse": { "status": 200, @@ -514,7 +515,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["2_1","2_2"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/video/multiple-adpods.json b/adapters/smaato/smaatotest/video/multiple-adpods.json index 03641b866bf..db497a49a62 100644 --- a/adapters/smaato/smaatotest/video/multiple-adpods.json +++ b/adapters/smaato/smaatotest/video/multiple-adpods.json @@ -236,7 +236,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1_1","1_2"] }, "mockResponse": { "status": 200, @@ -388,7 +389,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["2_1","2_2"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/video/single-adpod-skadn.json b/adapters/smaato/smaatotest/video/single-adpod-skadn.json index 2f0f5129963..12e4b82640a 100644 --- a/adapters/smaato/smaatotest/video/single-adpod-skadn.json +++ b/adapters/smaato/smaatotest/video/single-adpod-skadn.json @@ -223,7 +223,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1_1","1_2"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/video/single-adpod.json b/adapters/smaato/smaatotest/video/single-adpod.json index 3029782db5a..f14cbde4a50 100644 --- a/adapters/smaato/smaatotest/video/single-adpod.json +++ b/adapters/smaato/smaatotest/video/single-adpod.json @@ -182,7 +182,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1_1","1_2"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/videosupplemental/bad-adm-response.json b/adapters/smaato/smaatotest/videosupplemental/bad-adm-response.json index 00d715082b5..a7b8b2bc26d 100644 --- a/adapters/smaato/smaatotest/videosupplemental/bad-adm-response.json +++ b/adapters/smaato/smaatotest/videosupplemental/bad-adm-response.json @@ -178,7 +178,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1_1","1_2"] }, "mockResponse": { "status": 200, diff --git a/adapters/smaato/smaatotest/videosupplemental/bad-bid-ext-response.json b/adapters/smaato/smaatotest/videosupplemental/bad-bid-ext-response.json index f3707dead17..f6a4154917c 100644 --- a/adapters/smaato/smaatotest/videosupplemental/bad-bid-ext-response.json +++ b/adapters/smaato/smaatotest/videosupplemental/bad-bid-ext-response.json @@ -178,7 +178,8 @@ "ext": { "client": "prebid_server_0.6" } - } + }, + "impIDs":["1_1","1_2"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartadserver/smartadserver.go b/adapters/smartadserver/smartadserver.go index a190f8c298b..f28c0f618f7 100644 --- a/adapters/smartadserver/smartadserver.go +++ b/adapters/smartadserver/smartadserver.go @@ -112,6 +112,7 @@ func (a *SmartAdserverAdapter) MakeRequests(request *openrtb2.BidRequest, reqInf Uri: url, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(smartRequest.Imp), }) } return adapterRequests, errs diff --git a/adapters/smartadserver/smartadservertest/exemplary/multi-banner.json b/adapters/smartadserver/smartadservertest/exemplary/multi-banner.json index b7cf27c37e2..c50e0fa21d4 100644 --- a/adapters/smartadserver/smartadservertest/exemplary/multi-banner.json +++ b/adapters/smartadserver/smartadservertest/exemplary/multi-banner.json @@ -60,7 +60,8 @@ "id": "73" } } - } + }, + "impIDs":["test-imp-id-1"] }, "mockResponse": { "status": 200, @@ -110,7 +111,8 @@ "id": "73" } } - } + }, + "impIDs":["test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartadserver/smartadservertest/exemplary/native-app.json b/adapters/smartadserver/smartadservertest/exemplary/native-app.json index 1ef88da0ddc..5f03a61d6d0 100644 --- a/adapters/smartadserver/smartadservertest/exemplary/native-app.json +++ b/adapters/smartadserver/smartadservertest/exemplary/native-app.json @@ -201,7 +201,8 @@ "id": "73" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartadserver/smartadservertest/exemplary/native-web.json b/adapters/smartadserver/smartadservertest/exemplary/native-web.json index a5fcb172011..4c164c74a81 100644 --- a/adapters/smartadserver/smartadservertest/exemplary/native-web.json +++ b/adapters/smartadserver/smartadservertest/exemplary/native-web.json @@ -194,7 +194,8 @@ } } ] - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartadserver/smartadservertest/exemplary/simple-banner.json b/adapters/smartadserver/smartadservertest/exemplary/simple-banner.json index e8faab141cd..c47fee48888 100644 --- a/adapters/smartadserver/smartadservertest/exemplary/simple-banner.json +++ b/adapters/smartadserver/smartadservertest/exemplary/simple-banner.json @@ -46,7 +46,8 @@ "id": "73" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartadserver/smartadservertest/exemplary/simple-video.json b/adapters/smartadserver/smartadservertest/exemplary/simple-video.json index 86f9361a807..62fd92aa130 100644 --- a/adapters/smartadserver/smartadservertest/exemplary/simple-video.json +++ b/adapters/smartadserver/smartadservertest/exemplary/simple-video.json @@ -52,7 +52,8 @@ "id": "73" } } - } + }, + "impIDs":["test-imp-id-video"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartadserver/smartadservertest/supplemental/request-site-recreated.json b/adapters/smartadserver/smartadservertest/supplemental/request-site-recreated.json index 4a402674abf..5bb369d8b94 100644 --- a/adapters/smartadserver/smartadservertest/supplemental/request-site-recreated.json +++ b/adapters/smartadserver/smartadservertest/supplemental/request-site-recreated.json @@ -51,7 +51,8 @@ "id": "73" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartadserver/smartadservertest/supplemental/response-200-without-body.json b/adapters/smartadserver/smartadservertest/supplemental/response-200-without-body.json index 3e27569491c..87196e8c1ad 100644 --- a/adapters/smartadserver/smartadservertest/supplemental/response-200-without-body.json +++ b/adapters/smartadserver/smartadservertest/supplemental/response-200-without-body.json @@ -46,7 +46,8 @@ "id": "73" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200 diff --git a/adapters/smartadserver/smartadservertest/supplemental/response-204.json b/adapters/smartadserver/smartadservertest/supplemental/response-204.json index f05e79daeac..6a93f4fbeb2 100644 --- a/adapters/smartadserver/smartadservertest/supplemental/response-204.json +++ b/adapters/smartadserver/smartadservertest/supplemental/response-204.json @@ -46,7 +46,8 @@ "id": "73" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/smartadserver/smartadservertest/supplemental/response-400.json b/adapters/smartadserver/smartadservertest/supplemental/response-400.json index b7d5a95475d..cf597fe1120 100644 --- a/adapters/smartadserver/smartadservertest/supplemental/response-400.json +++ b/adapters/smartadserver/smartadservertest/supplemental/response-400.json @@ -46,7 +46,8 @@ "id": "73" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/smartadserver/smartadservertest/supplemental/response-500.json b/adapters/smartadserver/smartadservertest/supplemental/response-500.json index 727e8f0843b..f46f7c30c4d 100644 --- a/adapters/smartadserver/smartadservertest/supplemental/response-500.json +++ b/adapters/smartadserver/smartadservertest/supplemental/response-500.json @@ -46,7 +46,8 @@ "id": "73" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500 diff --git a/adapters/smarthub/smarthub.go b/adapters/smarthub/smarthub.go index 35cf1f0ce55..c170ba5dbd1 100644 --- a/adapters/smarthub/smarthub.go +++ b/adapters/smarthub/smarthub.go @@ -99,6 +99,7 @@ func (a *adapter) MakeRequests( Body: reqJSON, Uri: url, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), }}, nil } diff --git a/adapters/smarthub/smarthubtest/exemplary/banner.json b/adapters/smarthub/smarthubtest/exemplary/banner.json index a8b231b0ec5..3f9512045fc 100644 --- a/adapters/smarthub/smarthubtest/exemplary/banner.json +++ b/adapters/smarthub/smarthubtest/exemplary/banner.json @@ -90,7 +90,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smarthub/smarthubtest/exemplary/native.json b/adapters/smarthub/smarthubtest/exemplary/native.json index 60c9472ab78..49091cc7f07 100644 --- a/adapters/smarthub/smarthubtest/exemplary/native.json +++ b/adapters/smarthub/smarthubtest/exemplary/native.json @@ -90,7 +90,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smarthub/smarthubtest/exemplary/video.json b/adapters/smarthub/smarthubtest/exemplary/video.json index f64e4fe1fd4..8fb8f8b6f0e 100644 --- a/adapters/smarthub/smarthubtest/exemplary/video.json +++ b/adapters/smarthub/smarthubtest/exemplary/video.json @@ -130,7 +130,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smarthub/smarthubtest/supplemental/bad-response.json b/adapters/smarthub/smarthubtest/supplemental/bad-response.json index 423d144b979..93f972965a0 100644 --- a/adapters/smarthub/smarthubtest/supplemental/bad-response.json +++ b/adapters/smarthub/smarthubtest/supplemental/bad-response.json @@ -90,7 +90,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smarthub/smarthubtest/supplemental/empty-seatbid-0-bid.json b/adapters/smarthub/smarthubtest/supplemental/empty-seatbid-0-bid.json index d40787a707f..0f527c39c2f 100644 --- a/adapters/smarthub/smarthubtest/supplemental/empty-seatbid-0-bid.json +++ b/adapters/smarthub/smarthubtest/supplemental/empty-seatbid-0-bid.json @@ -90,7 +90,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smarthub/smarthubtest/supplemental/empty-seatbid.json b/adapters/smarthub/smarthubtest/supplemental/empty-seatbid.json index 1789e71f785..6c92c3f6848 100644 --- a/adapters/smarthub/smarthubtest/supplemental/empty-seatbid.json +++ b/adapters/smarthub/smarthubtest/supplemental/empty-seatbid.json @@ -90,7 +90,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smarthub/smarthubtest/supplemental/status-204.json b/adapters/smarthub/smarthubtest/supplemental/status-204.json index a72264d0207..31efa86733c 100644 --- a/adapters/smarthub/smarthubtest/supplemental/status-204.json +++ b/adapters/smarthub/smarthubtest/supplemental/status-204.json @@ -90,7 +90,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 204, diff --git a/adapters/smarthub/smarthubtest/supplemental/status-400.json b/adapters/smarthub/smarthubtest/supplemental/status-400.json index 7af75b06c5e..d0d8aacf08d 100644 --- a/adapters/smarthub/smarthubtest/supplemental/status-400.json +++ b/adapters/smarthub/smarthubtest/supplemental/status-400.json @@ -90,7 +90,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 400, diff --git a/adapters/smarthub/smarthubtest/supplemental/status-503.json b/adapters/smarthub/smarthubtest/supplemental/status-503.json index d2cc83dd54f..f09eb93c955 100644 --- a/adapters/smarthub/smarthubtest/supplemental/status-503.json +++ b/adapters/smarthub/smarthubtest/supplemental/status-503.json @@ -90,7 +90,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 503 diff --git a/adapters/smarthub/smarthubtest/supplemental/unexpected-status.json b/adapters/smarthub/smarthubtest/supplemental/unexpected-status.json index b2f1c76e143..4f2f35e229b 100644 --- a/adapters/smarthub/smarthubtest/supplemental/unexpected-status.json +++ b/adapters/smarthub/smarthubtest/supplemental/unexpected-status.json @@ -90,7 +90,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 403, diff --git a/adapters/smarthub/smarthubtest/supplemental/wrong-bidtype.json b/adapters/smarthub/smarthubtest/supplemental/wrong-bidtype.json index 7c65602c195..81a7166644b 100644 --- a/adapters/smarthub/smarthubtest/supplemental/wrong-bidtype.json +++ b/adapters/smarthub/smarthubtest/supplemental/wrong-bidtype.json @@ -90,7 +90,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartrtb/smartrtb.go b/adapters/smartrtb/smartrtb.go index 4cb1db8c7e0..4e15c5abf34 100644 --- a/adapters/smartrtb/smartrtb.go +++ b/adapters/smartrtb/smartrtb.go @@ -140,6 +140,7 @@ func (s *SmartRTBAdapter) MakeRequests(brq *openrtb2.BidRequest, reqInfo *adapte Uri: url, Body: rq, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(brq.Imp), }}, errs } diff --git a/adapters/smartrtb/smartrtbtest/exemplary/banner.json b/adapters/smartrtb/smartrtbtest/exemplary/banner.json index 436f6298a16..65916420c07 100644 --- a/adapters/smartrtb/smartrtbtest/exemplary/banner.json +++ b/adapters/smartrtb/smartrtbtest/exemplary/banner.json @@ -59,7 +59,8 @@ "ext": { "pub_id": "test" } - } + }, + "impIDs":["imp123"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartrtb/smartrtbtest/exemplary/video.json b/adapters/smartrtb/smartrtbtest/exemplary/video.json index 436f6298a16..65916420c07 100644 --- a/adapters/smartrtb/smartrtbtest/exemplary/video.json +++ b/adapters/smartrtb/smartrtbtest/exemplary/video.json @@ -59,7 +59,8 @@ "ext": { "pub_id": "test" } - } + }, + "impIDs":["imp123"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartrtb/smartrtbtest/supplemental/bad-request.json b/adapters/smartrtb/smartrtbtest/supplemental/bad-request.json index cf03832ddff..c39d60bc05e 100644 --- a/adapters/smartrtb/smartrtbtest/supplemental/bad-request.json +++ b/adapters/smartrtb/smartrtbtest/supplemental/bad-request.json @@ -53,7 +53,8 @@ "ext": { "pub_id": "test" } - } + }, + "impIDs":["imp123"] }, "mockResponse": { "status": 400 diff --git a/adapters/smartrtb/smartrtbtest/supplemental/invalid-bid-ext.json b/adapters/smartrtb/smartrtbtest/supplemental/invalid-bid-ext.json index 49527e1ecd4..137cf6bbfb4 100644 --- a/adapters/smartrtb/smartrtbtest/supplemental/invalid-bid-ext.json +++ b/adapters/smartrtb/smartrtbtest/supplemental/invalid-bid-ext.json @@ -59,7 +59,8 @@ "ext": { "pub_id": "test" } - } + }, + "impIDs":["imp123"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartrtb/smartrtbtest/supplemental/invalid-bid-format.json b/adapters/smartrtb/smartrtbtest/supplemental/invalid-bid-format.json index 2f6bc07edb8..68ba9c138cf 100644 --- a/adapters/smartrtb/smartrtbtest/supplemental/invalid-bid-format.json +++ b/adapters/smartrtb/smartrtbtest/supplemental/invalid-bid-format.json @@ -59,7 +59,8 @@ "ext": { "pub_id": "test" } - } + }, + "impIDs":["imp123"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartrtb/smartrtbtest/supplemental/invalid-bid-json.json b/adapters/smartrtb/smartrtbtest/supplemental/invalid-bid-json.json index 3d9f92df4a7..a8065446443 100644 --- a/adapters/smartrtb/smartrtbtest/supplemental/invalid-bid-json.json +++ b/adapters/smartrtb/smartrtbtest/supplemental/invalid-bid-json.json @@ -59,7 +59,8 @@ "ext": { "pub_id": "test" } - } + }, + "impIDs":["imp123"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartrtb/smartrtbtest/supplemental/nobid.json b/adapters/smartrtb/smartrtbtest/supplemental/nobid.json index 83b7252b87b..54dedd0b52f 100644 --- a/adapters/smartrtb/smartrtbtest/supplemental/nobid.json +++ b/adapters/smartrtb/smartrtbtest/supplemental/nobid.json @@ -59,7 +59,8 @@ "ext": { "pub_id": "test" } - } + }, + "impIDs":["imp123"] }, "mockResponse": { "status": 204 diff --git a/adapters/smartrtb/smartrtbtest/supplemental/non-http-ok.json b/adapters/smartrtb/smartrtbtest/supplemental/non-http-ok.json index 3acafadc62f..55b48fe76b4 100644 --- a/adapters/smartrtb/smartrtbtest/supplemental/non-http-ok.json +++ b/adapters/smartrtb/smartrtbtest/supplemental/non-http-ok.json @@ -59,7 +59,8 @@ "ext": { "pub_id": "test" } - } + }, + "impIDs":["imp123"] }, "mockResponse": { "status": 500 diff --git a/adapters/smartx/smartx.go b/adapters/smartx/smartx.go index 181f2802afd..9254ec0d95c 100644 --- a/adapters/smartx/smartx.go +++ b/adapters/smartx/smartx.go @@ -49,6 +49,7 @@ func (a *adapter) MakeRequests(openRTBRequest *openrtb2.BidRequest, requestInfo Uri: a.endpointURL, Body: openRTBRequestJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), }), nil } diff --git a/adapters/smartx/smartxtest/exemplary/01-video.json b/adapters/smartx/smartxtest/exemplary/01-video.json index c4d3f9c5b31..ba83f48f763 100644 --- a/adapters/smartx/smartxtest/exemplary/01-video.json +++ b/adapters/smartx/smartxtest/exemplary/01-video.json @@ -28,7 +28,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse":{ "status":200, diff --git a/adapters/smartx/smartxtest/exemplary/02-consent.json b/adapters/smartx/smartxtest/exemplary/02-consent.json index bc0e5604f4e..95335953ba0 100644 --- a/adapters/smartx/smartxtest/exemplary/02-consent.json +++ b/adapters/smartx/smartxtest/exemplary/02-consent.json @@ -58,7 +58,8 @@ "consent": "COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartx/smartxtest/exemplary/03-device.json b/adapters/smartx/smartxtest/exemplary/03-device.json index f45cc76c99a..f6c5f2cec63 100644 --- a/adapters/smartx/smartxtest/exemplary/03-device.json +++ b/adapters/smartx/smartxtest/exemplary/03-device.json @@ -70,7 +70,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartx/smartxtest/supplemental/02-internal-server-error.json b/adapters/smartx/smartxtest/supplemental/02-internal-server-error.json index d44ef7f77e1..345da1da1ac 100644 --- a/adapters/smartx/smartxtest/supplemental/02-internal-server-error.json +++ b/adapters/smartx/smartxtest/supplemental/02-internal-server-error.json @@ -28,7 +28,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/smartx/smartxtest/supplemental/03-missing-bidder-in-response.json b/adapters/smartx/smartxtest/supplemental/03-missing-bidder-in-response.json index 71875f12809..520940c1c8e 100644 --- a/adapters/smartx/smartxtest/supplemental/03-missing-bidder-in-response.json +++ b/adapters/smartx/smartxtest/supplemental/03-missing-bidder-in-response.json @@ -28,7 +28,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "body": { diff --git a/adapters/smartyads/smartyads.go b/adapters/smartyads/smartyads.go index 8dd32854345..d00a808d025 100644 --- a/adapters/smartyads/smartyads.go +++ b/adapters/smartyads/smartyads.go @@ -103,6 +103,7 @@ func (a *SmartyAdsAdapter) MakeRequests( Body: reqJSON, Uri: url, Headers: *GetHeaders(openRTBRequest), + ImpIDs: openrtb_ext.GetImpIDs(openRTBRequest.Imp), }}, nil } diff --git a/adapters/smartyads/smartyadstest/exemplary/banner-app.json b/adapters/smartyads/smartyadstest/exemplary/banner-app.json index 56052236310..3ea8f22c4af 100644 --- a/adapters/smartyads/smartyadstest/exemplary/banner-app.json +++ b/adapters/smartyads/smartyadstest/exemplary/banner-app.json @@ -102,7 +102,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartyads/smartyadstest/exemplary/banner-web.json b/adapters/smartyads/smartyadstest/exemplary/banner-web.json index 5dc73b12a0a..edc04f7b5e6 100644 --- a/adapters/smartyads/smartyadstest/exemplary/banner-web.json +++ b/adapters/smartyads/smartyadstest/exemplary/banner-web.json @@ -90,7 +90,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartyads/smartyadstest/exemplary/native-app.json b/adapters/smartyads/smartyadstest/exemplary/native-app.json index c14beb550ee..44858332260 100644 --- a/adapters/smartyads/smartyadstest/exemplary/native-app.json +++ b/adapters/smartyads/smartyadstest/exemplary/native-app.json @@ -102,7 +102,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartyads/smartyadstest/exemplary/native-web.json b/adapters/smartyads/smartyadstest/exemplary/native-web.json index 48b2b6cef87..78593ff1edd 100644 --- a/adapters/smartyads/smartyadstest/exemplary/native-web.json +++ b/adapters/smartyads/smartyadstest/exemplary/native-web.json @@ -90,7 +90,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartyads/smartyadstest/exemplary/video-app.json b/adapters/smartyads/smartyadstest/exemplary/video-app.json index f7c0aeffa90..00182ea4420 100644 --- a/adapters/smartyads/smartyadstest/exemplary/video-app.json +++ b/adapters/smartyads/smartyadstest/exemplary/video-app.json @@ -112,7 +112,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartyads/smartyadstest/exemplary/video-web.json b/adapters/smartyads/smartyadstest/exemplary/video-web.json index b91102823fa..072b531d37c 100644 --- a/adapters/smartyads/smartyadstest/exemplary/video-web.json +++ b/adapters/smartyads/smartyadstest/exemplary/video-web.json @@ -100,7 +100,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartyads/smartyadstest/supplemental/empty-seatbid-array.json b/adapters/smartyads/smartyadstest/supplemental/empty-seatbid-array.json index cccb2be0442..65e473efd6e 100644 --- a/adapters/smartyads/smartyadstest/supplemental/empty-seatbid-array.json +++ b/adapters/smartyads/smartyadstest/supplemental/empty-seatbid-array.json @@ -112,7 +112,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartyads/smartyadstest/supplemental/invalid-response.json b/adapters/smartyads/smartyadstest/supplemental/invalid-response.json index cdbb2dbde5e..4faa9d7aa07 100644 --- a/adapters/smartyads/smartyadstest/supplemental/invalid-response.json +++ b/adapters/smartyads/smartyadstest/supplemental/invalid-response.json @@ -103,7 +103,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smartyads/smartyadstest/supplemental/status-code-bad-request.json b/adapters/smartyads/smartyadstest/supplemental/status-code-bad-request.json index 4efc6c579e6..fb5bcee21aa 100644 --- a/adapters/smartyads/smartyadstest/supplemental/status-code-bad-request.json +++ b/adapters/smartyads/smartyadstest/supplemental/status-code-bad-request.json @@ -78,7 +78,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/smartyads/smartyadstest/supplemental/status-code-no-content.json b/adapters/smartyads/smartyadstest/supplemental/status-code-no-content.json index 3a0109d5872..aaf6f552212 100644 --- a/adapters/smartyads/smartyadstest/supplemental/status-code-no-content.json +++ b/adapters/smartyads/smartyadstest/supplemental/status-code-no-content.json @@ -64,7 +64,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/smartyads/smartyadstest/supplemental/status-code-other-error.json b/adapters/smartyads/smartyadstest/supplemental/status-code-other-error.json index 7e73ab87473..346af9f89d7 100644 --- a/adapters/smartyads/smartyadstest/supplemental/status-code-other-error.json +++ b/adapters/smartyads/smartyadstest/supplemental/status-code-other-error.json @@ -64,7 +64,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 306 diff --git a/adapters/smartyads/smartyadstest/supplemental/status-code-service-unavailable.json b/adapters/smartyads/smartyadstest/supplemental/status-code-service-unavailable.json index ed941b824bf..bfd8b8ffa94 100644 --- a/adapters/smartyads/smartyadstest/supplemental/status-code-service-unavailable.json +++ b/adapters/smartyads/smartyadstest/supplemental/status-code-service-unavailable.json @@ -64,7 +64,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/smilewanted/smilewanted.go b/adapters/smilewanted/smilewanted.go index 37a4128ba75..b17b3825540 100644 --- a/adapters/smilewanted/smilewanted.go +++ b/adapters/smilewanted/smilewanted.go @@ -38,6 +38,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: a.URI, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, []error{} } diff --git a/adapters/smilewanted/smilewantedtest/exemplary/simple-banner.json b/adapters/smilewanted/smilewantedtest/exemplary/simple-banner.json index 0c68d74c588..dccf94a8eb2 100644 --- a/adapters/smilewanted/smilewantedtest/exemplary/simple-banner.json +++ b/adapters/smilewanted/smilewantedtest/exemplary/simple-banner.json @@ -47,7 +47,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smilewanted/smilewantedtest/exemplary/simple-video.json b/adapters/smilewanted/smilewantedtest/exemplary/simple-video.json index b3ff9ba9edd..a0880bbe510 100644 --- a/adapters/smilewanted/smilewantedtest/exemplary/simple-video.json +++ b/adapters/smilewanted/smilewantedtest/exemplary/simple-video.json @@ -42,7 +42,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smilewanted/smilewantedtest/supplemental/bad-server-response.json b/adapters/smilewanted/smilewantedtest/supplemental/bad-server-response.json index 461ad9327a9..63826e325fa 100644 --- a/adapters/smilewanted/smilewantedtest/supplemental/bad-server-response.json +++ b/adapters/smilewanted/smilewantedtest/supplemental/bad-server-response.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smilewanted/smilewantedtest/supplemental/status-code-204.json b/adapters/smilewanted/smilewantedtest/supplemental/status-code-204.json index 0d8a432e26d..adc7c67006b 100644 --- a/adapters/smilewanted/smilewantedtest/supplemental/status-code-204.json +++ b/adapters/smilewanted/smilewantedtest/supplemental/status-code-204.json @@ -47,7 +47,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/smilewanted/smilewantedtest/supplemental/status-code-400.json b/adapters/smilewanted/smilewantedtest/supplemental/status-code-400.json index bdf2caa3c01..78c6824009e 100644 --- a/adapters/smilewanted/smilewantedtest/supplemental/status-code-400.json +++ b/adapters/smilewanted/smilewantedtest/supplemental/status-code-400.json @@ -47,7 +47,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/smilewanted/smilewantedtest/supplemental/unexpected-status-code.json b/adapters/smilewanted/smilewantedtest/supplemental/unexpected-status-code.json index 49a11e3ead3..e422ca196d3 100644 --- a/adapters/smilewanted/smilewantedtest/supplemental/unexpected-status-code.json +++ b/adapters/smilewanted/smilewantedtest/supplemental/unexpected-status-code.json @@ -47,7 +47,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500 diff --git a/adapters/smrtconnect/smrtconnect.go b/adapters/smrtconnect/smrtconnect.go index dc7bf2545bd..bd68e267eaf 100644 --- a/adapters/smrtconnect/smrtconnect.go +++ b/adapters/smrtconnect/smrtconnect.go @@ -55,6 +55,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: url, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), } requests = append(requests, requestData) } diff --git a/adapters/smrtconnect/smrtconnecttest/exemplary/audio-app.json b/adapters/smrtconnect/smrtconnecttest/exemplary/audio-app.json index 7f7c23d9eba..0717218e377 100644 --- a/adapters/smrtconnect/smrtconnecttest/exemplary/audio-app.json +++ b/adapters/smrtconnect/smrtconnecttest/exemplary/audio-app.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smrtconnect/smrtconnecttest/exemplary/audio-web.json b/adapters/smrtconnect/smrtconnecttest/exemplary/audio-web.json index f30494a499d..0279134d637 100644 --- a/adapters/smrtconnect/smrtconnecttest/exemplary/audio-web.json +++ b/adapters/smrtconnect/smrtconnecttest/exemplary/audio-web.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smrtconnect/smrtconnecttest/exemplary/banner-app.json b/adapters/smrtconnect/smrtconnecttest/exemplary/banner-app.json index 4111eb732ee..519ac2aea0b 100644 --- a/adapters/smrtconnect/smrtconnecttest/exemplary/banner-app.json +++ b/adapters/smrtconnect/smrtconnecttest/exemplary/banner-app.json @@ -77,7 +77,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smrtconnect/smrtconnecttest/exemplary/banner-multiple-bids.json b/adapters/smrtconnect/smrtconnecttest/exemplary/banner-multiple-bids.json index 18391277a72..8318b37e648 100644 --- a/adapters/smrtconnect/smrtconnecttest/exemplary/banner-multiple-bids.json +++ b/adapters/smrtconnect/smrtconnecttest/exemplary/banner-multiple-bids.json @@ -78,7 +78,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, @@ -145,7 +146,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/smrtconnect/smrtconnecttest/exemplary/banner-web.json b/adapters/smrtconnect/smrtconnecttest/exemplary/banner-web.json index 69743fd6383..0c42d31e7ee 100644 --- a/adapters/smrtconnect/smrtconnecttest/exemplary/banner-web.json +++ b/adapters/smrtconnect/smrtconnecttest/exemplary/banner-web.json @@ -65,7 +65,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smrtconnect/smrtconnecttest/exemplary/native-app.json b/adapters/smrtconnect/smrtconnecttest/exemplary/native-app.json index 63188c0cb51..9234ecfd0b4 100644 --- a/adapters/smrtconnect/smrtconnecttest/exemplary/native-app.json +++ b/adapters/smrtconnect/smrtconnecttest/exemplary/native-app.json @@ -77,7 +77,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smrtconnect/smrtconnecttest/exemplary/native-web.json b/adapters/smrtconnect/smrtconnecttest/exemplary/native-web.json index dd44926e360..6ab6452a51a 100644 --- a/adapters/smrtconnect/smrtconnecttest/exemplary/native-web.json +++ b/adapters/smrtconnect/smrtconnecttest/exemplary/native-web.json @@ -66,7 +66,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smrtconnect/smrtconnecttest/exemplary/video-app.json b/adapters/smrtconnect/smrtconnecttest/exemplary/video-app.json index 88d3066619c..a08a51e3ded 100644 --- a/adapters/smrtconnect/smrtconnecttest/exemplary/video-app.json +++ b/adapters/smrtconnect/smrtconnecttest/exemplary/video-app.json @@ -87,7 +87,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smrtconnect/smrtconnecttest/exemplary/video-web.json b/adapters/smrtconnect/smrtconnecttest/exemplary/video-web.json index cab53723aaf..e1c83f14dd5 100644 --- a/adapters/smrtconnect/smrtconnecttest/exemplary/video-web.json +++ b/adapters/smrtconnect/smrtconnecttest/exemplary/video-web.json @@ -75,7 +75,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smrtconnect/smrtconnecttest/supplemental/empty-seatbid-array.json b/adapters/smrtconnect/smrtconnecttest/supplemental/empty-seatbid-array.json index 719bc762169..7732c7f0617 100644 --- a/adapters/smrtconnect/smrtconnecttest/supplemental/empty-seatbid-array.json +++ b/adapters/smrtconnect/smrtconnecttest/supplemental/empty-seatbid-array.json @@ -87,7 +87,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smrtconnect/smrtconnecttest/supplemental/invalid-response.json b/adapters/smrtconnect/smrtconnecttest/supplemental/invalid-response.json index 6ae0e5e4b34..89f4fac2a74 100644 --- a/adapters/smrtconnect/smrtconnecttest/supplemental/invalid-response.json +++ b/adapters/smrtconnect/smrtconnecttest/supplemental/invalid-response.json @@ -78,7 +78,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/smrtconnect/smrtconnecttest/supplemental/status-code-bad-request.json b/adapters/smrtconnect/smrtconnecttest/supplemental/status-code-bad-request.json index daaa957c6c5..566ca9ae0a5 100644 --- a/adapters/smrtconnect/smrtconnecttest/supplemental/status-code-bad-request.json +++ b/adapters/smrtconnect/smrtconnecttest/supplemental/status-code-bad-request.json @@ -76,7 +76,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/smrtconnect/smrtconnecttest/supplemental/status-code-no-content.json b/adapters/smrtconnect/smrtconnecttest/supplemental/status-code-no-content.json index 734899fb328..4ac35c64e93 100644 --- a/adapters/smrtconnect/smrtconnecttest/supplemental/status-code-no-content.json +++ b/adapters/smrtconnect/smrtconnecttest/supplemental/status-code-no-content.json @@ -57,7 +57,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/smrtconnect/smrtconnecttest/supplemental/status-code-other-error.json b/adapters/smrtconnect/smrtconnecttest/supplemental/status-code-other-error.json index 3f3ecf015be..a52d5c88348 100644 --- a/adapters/smrtconnect/smrtconnecttest/supplemental/status-code-other-error.json +++ b/adapters/smrtconnect/smrtconnecttest/supplemental/status-code-other-error.json @@ -62,7 +62,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 306 diff --git a/adapters/smrtconnect/smrtconnecttest/supplemental/status-code-service-unavailable.json b/adapters/smrtconnect/smrtconnecttest/supplemental/status-code-service-unavailable.json index 2e0212f13a8..e87608bbdac 100644 --- a/adapters/smrtconnect/smrtconnecttest/supplemental/status-code-service-unavailable.json +++ b/adapters/smrtconnect/smrtconnecttest/supplemental/status-code-service-unavailable.json @@ -62,7 +62,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/sonobi/sonobi.go b/adapters/sonobi/sonobi.go index 385149f1517..65ea0d33e7c 100644 --- a/adapters/sonobi/sonobi.go +++ b/adapters/sonobi/sonobi.go @@ -84,6 +84,7 @@ func (a *SonobiAdapter) makeRequest(request *openrtb2.BidRequest) (*adapters.Req Uri: a.URI, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, errs } diff --git a/adapters/sonobi/sonobitest/exemplary/banner.json b/adapters/sonobi/sonobitest/exemplary/banner.json index 06a7a6724a7..d60ddb44a8b 100644 --- a/adapters/sonobi/sonobitest/exemplary/banner.json +++ b/adapters/sonobi/sonobitest/exemplary/banner.json @@ -83,7 +83,8 @@ }, "test": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sonobi/sonobitest/exemplary/no-bid.json b/adapters/sonobi/sonobitest/exemplary/no-bid.json index e931dbdcd9e..ef31c9f2ba4 100644 --- a/adapters/sonobi/sonobitest/exemplary/no-bid.json +++ b/adapters/sonobi/sonobitest/exemplary/no-bid.json @@ -83,7 +83,8 @@ }, "test": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrn.go b/adapters/sovrn/sovrn.go index af60497f93e..83ab136c963 100644 --- a/adapters/sovrn/sovrn.go +++ b/adapters/sovrn/sovrn.go @@ -126,6 +126,7 @@ func (s *SovrnAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapt Uri: s.URI, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errs } diff --git a/adapters/sovrn/sovrntest/exemplary/multi-banner.json b/adapters/sovrn/sovrntest/exemplary/multi-banner.json index 495941039a1..b6978a082a0 100644 --- a/adapters/sovrn/sovrntest/exemplary/multi-banner.json +++ b/adapters/sovrn/sovrntest/exemplary/multi-banner.json @@ -129,7 +129,8 @@ "dnt": 0, "language": "en" } - } + }, + "impIDs":["test-imp-id1","test-imp-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/exemplary/no-bid.json b/adapters/sovrn/sovrntest/exemplary/no-bid.json index bad14cf1b05..9edacbbaa05 100644 --- a/adapters/sovrn/sovrntest/exemplary/no-bid.json +++ b/adapters/sovrn/sovrntest/exemplary/no-bid.json @@ -103,7 +103,8 @@ "dnt": 0, "language": "en" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/exemplary/simple-banner.json b/adapters/sovrn/sovrntest/exemplary/simple-banner.json index cd088ba12e4..e8d6a9832d7 100644 --- a/adapters/sovrn/sovrntest/exemplary/simple-banner.json +++ b/adapters/sovrn/sovrntest/exemplary/simple-banner.json @@ -88,7 +88,8 @@ "dnt": 0, "language": "en" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/supplemental/adunitcode.json b/adapters/sovrn/sovrntest/supplemental/adunitcode.json index 4719752058d..a4b64e4394d 100644 --- a/adapters/sovrn/sovrntest/supplemental/adunitcode.json +++ b/adapters/sovrn/sovrntest/supplemental/adunitcode.json @@ -77,7 +77,8 @@ "buyeruid": "test_reader_id" }, "device": { } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/supplemental/blank-device.json b/adapters/sovrn/sovrntest/supplemental/blank-device.json index 0aa3ad74e62..5cda47dfa06 100644 --- a/adapters/sovrn/sovrntest/supplemental/blank-device.json +++ b/adapters/sovrn/sovrntest/supplemental/blank-device.json @@ -74,7 +74,8 @@ "buyeruid": "test_reader_id" }, "device": { } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/supplemental/both-custom-default-bidfloor.json b/adapters/sovrn/sovrntest/supplemental/both-custom-default-bidfloor.json index 4b997b68266..0621450b112 100644 --- a/adapters/sovrn/sovrntest/supplemental/both-custom-default-bidfloor.json +++ b/adapters/sovrn/sovrntest/supplemental/both-custom-default-bidfloor.json @@ -78,7 +78,8 @@ "buyeruid": "test_reader_id" }, "device": { } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/supplemental/camel-case-tagId.json b/adapters/sovrn/sovrntest/supplemental/camel-case-tagId.json index 40029b12c53..d195dddc528 100644 --- a/adapters/sovrn/sovrntest/supplemental/camel-case-tagId.json +++ b/adapters/sovrn/sovrntest/supplemental/camel-case-tagId.json @@ -88,7 +88,8 @@ "dnt": 0, "language": "en" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/supplemental/fpd.json b/adapters/sovrn/sovrntest/supplemental/fpd.json index e4368c13c2b..c9b56703f81 100644 --- a/adapters/sovrn/sovrntest/supplemental/fpd.json +++ b/adapters/sovrn/sovrntest/supplemental/fpd.json @@ -119,7 +119,8 @@ "dnt": 0, "language": "en" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/supplemental/gdpr.json b/adapters/sovrn/sovrntest/supplemental/gdpr.json index a699ff1ae9c..242db2627bb 100644 --- a/adapters/sovrn/sovrntest/supplemental/gdpr.json +++ b/adapters/sovrn/sovrntest/supplemental/gdpr.json @@ -104,7 +104,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/supplemental/invalid-adunitcode.json b/adapters/sovrn/sovrntest/supplemental/invalid-adunitcode.json index fdb14371336..444bba21523 100644 --- a/adapters/sovrn/sovrntest/supplemental/invalid-adunitcode.json +++ b/adapters/sovrn/sovrntest/supplemental/invalid-adunitcode.json @@ -75,7 +75,8 @@ "buyeruid": "test_reader_id" }, "device": { } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/supplemental/invalid-imp-id.json b/adapters/sovrn/sovrntest/supplemental/invalid-imp-id.json index e3b2c17c8c3..4cfe70d08e4 100644 --- a/adapters/sovrn/sovrntest/supplemental/invalid-imp-id.json +++ b/adapters/sovrn/sovrntest/supplemental/invalid-imp-id.json @@ -88,7 +88,8 @@ "dnt": 0, "language": "en" } - } + }, + "impIDs":["test-imp-id1"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/supplemental/no-bidfloor.json b/adapters/sovrn/sovrntest/supplemental/no-bidfloor.json index 0aa3ad74e62..5cda47dfa06 100644 --- a/adapters/sovrn/sovrntest/supplemental/no-bidfloor.json +++ b/adapters/sovrn/sovrntest/supplemental/no-bidfloor.json @@ -74,7 +74,8 @@ "buyeruid": "test_reader_id" }, "device": { } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/supplemental/no-user.json b/adapters/sovrn/sovrntest/supplemental/no-user.json index f9ba82bfd21..f03eb6b3604 100644 --- a/adapters/sovrn/sovrntest/supplemental/no-user.json +++ b/adapters/sovrn/sovrntest/supplemental/no-user.json @@ -81,7 +81,8 @@ "ip": "123.123.123.123", "language": "en" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/supplemental/only-custom-bidfloor.json b/adapters/sovrn/sovrntest/supplemental/only-custom-bidfloor.json index 20c00a48bd2..cf3edbfe34a 100644 --- a/adapters/sovrn/sovrntest/supplemental/only-custom-bidfloor.json +++ b/adapters/sovrn/sovrntest/supplemental/only-custom-bidfloor.json @@ -77,7 +77,8 @@ "buyeruid": "test_reader_id" }, "device": { } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/supplemental/only-default-bidfloor.json b/adapters/sovrn/sovrntest/supplemental/only-default-bidfloor.json index cb74e5643b6..87470ee06bc 100644 --- a/adapters/sovrn/sovrntest/supplemental/only-default-bidfloor.json +++ b/adapters/sovrn/sovrntest/supplemental/only-default-bidfloor.json @@ -76,7 +76,8 @@ "buyeruid": "test_reader_id" }, "device": { } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/supplemental/with-both-custom-default-bidfloor.json b/adapters/sovrn/sovrntest/supplemental/with-both-custom-default-bidfloor.json index 4b997b68266..0621450b112 100644 --- a/adapters/sovrn/sovrntest/supplemental/with-both-custom-default-bidfloor.json +++ b/adapters/sovrn/sovrntest/supplemental/with-both-custom-default-bidfloor.json @@ -78,7 +78,8 @@ "buyeruid": "test_reader_id" }, "device": { } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/supplemental/with-only-custom-bidfloor.json b/adapters/sovrn/sovrntest/supplemental/with-only-custom-bidfloor.json index b4ab404e9be..0b986e7de7d 100644 --- a/adapters/sovrn/sovrntest/supplemental/with-only-custom-bidfloor.json +++ b/adapters/sovrn/sovrntest/supplemental/with-only-custom-bidfloor.json @@ -77,7 +77,8 @@ "buyeruid": "test_reader_id" }, "device": { } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/supplemental/with-only-default-bidfloor.json b/adapters/sovrn/sovrntest/supplemental/with-only-default-bidfloor.json index cb74e5643b6..87470ee06bc 100644 --- a/adapters/sovrn/sovrntest/supplemental/with-only-default-bidfloor.json +++ b/adapters/sovrn/sovrntest/supplemental/with-only-default-bidfloor.json @@ -76,7 +76,8 @@ "buyeruid": "test_reader_id" }, "device": { } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/video/full-video.json b/adapters/sovrn/sovrntest/video/full-video.json index 18f277ea97f..13e1d3dadd7 100644 --- a/adapters/sovrn/sovrntest/video/full-video.json +++ b/adapters/sovrn/sovrntest/video/full-video.json @@ -146,7 +146,8 @@ "dnt": 0, "language": "en" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/video/multi-banner-video.json b/adapters/sovrn/sovrntest/video/multi-banner-video.json index abfa1ab37bc..0462ad15944 100644 --- a/adapters/sovrn/sovrntest/video/multi-banner-video.json +++ b/adapters/sovrn/sovrntest/video/multi-banner-video.json @@ -136,7 +136,8 @@ "dnt": 0, "language": "en" } - } + }, + "impIDs":["test-imp-id1","test-imp-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/video/multi-video.json b/adapters/sovrn/sovrntest/video/multi-video.json index 5fdcadcc37f..b1db51859ca 100644 --- a/adapters/sovrn/sovrntest/video/multi-video.json +++ b/adapters/sovrn/sovrntest/video/multi-video.json @@ -155,7 +155,8 @@ "dnt": 0, "language": "en" } - } + }, + "impIDs":["test-imp-id1","test-imp-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/video/no-bid.json b/adapters/sovrn/sovrntest/video/no-bid.json index 7c9bc4c7eff..0cdb299263c 100644 --- a/adapters/sovrn/sovrntest/video/no-bid.json +++ b/adapters/sovrn/sovrntest/video/no-bid.json @@ -109,7 +109,8 @@ "dnt": 0, "language": "en" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrn/sovrntest/video/simple-video.json b/adapters/sovrn/sovrntest/video/simple-video.json index fae6778a015..08343909319 100644 --- a/adapters/sovrn/sovrntest/video/simple-video.json +++ b/adapters/sovrn/sovrntest/video/simple-video.json @@ -107,7 +107,8 @@ "dnt": 0, "language": "en" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrnXsp/sovrnXsp.go b/adapters/sovrnXsp/sovrnXsp.go index 8fe24ea1244..4b3841638ab 100644 --- a/adapters/sovrnXsp/sovrnXsp.go +++ b/adapters/sovrnXsp/sovrnXsp.go @@ -98,6 +98,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Uri: a.Endpoint, Body: requestJson, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errors } diff --git a/adapters/sovrnXsp/sovrnXsptest/exemplary/banner.json b/adapters/sovrnXsp/sovrnXsptest/exemplary/banner.json index 08f36adb91b..96ad9e6d8f5 100644 --- a/adapters/sovrnXsp/sovrnXsptest/exemplary/banner.json +++ b/adapters/sovrnXsp/sovrnXsptest/exemplary/banner.json @@ -66,7 +66,8 @@ } } }] - } + }, + "impIDs":["imp123"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrnXsp/sovrnXsptest/exemplary/native.json b/adapters/sovrnXsp/sovrnXsptest/exemplary/native.json index f82297e3bb2..ed0a98709be 100644 --- a/adapters/sovrnXsp/sovrnXsptest/exemplary/native.json +++ b/adapters/sovrnXsp/sovrnXsptest/exemplary/native.json @@ -56,7 +56,8 @@ } } }] - } + }, + "impIDs":["imp123"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrnXsp/sovrnXsptest/exemplary/video.json b/adapters/sovrnXsp/sovrnXsptest/exemplary/video.json index 5ba8259f063..b47f47b8779 100644 --- a/adapters/sovrnXsp/sovrnXsptest/exemplary/video.json +++ b/adapters/sovrnXsp/sovrnXsptest/exemplary/video.json @@ -68,7 +68,8 @@ } } }] - } + }, + "impIDs":["imp123"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrnXsp/sovrnXsptest/supplemental/response-empty-seat.json b/adapters/sovrnXsp/sovrnXsptest/supplemental/response-empty-seat.json index 0de8fa072f8..7aa9983bfc3 100644 --- a/adapters/sovrnXsp/sovrnXsptest/supplemental/response-empty-seat.json +++ b/adapters/sovrnXsp/sovrnXsptest/supplemental/response-empty-seat.json @@ -66,7 +66,8 @@ } } }] - } + }, + "impIDs":["imp123"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrnXsp/sovrnXsptest/supplemental/response-http-error.json b/adapters/sovrnXsp/sovrnXsptest/supplemental/response-http-error.json index 10f647186fd..285f3418795 100644 --- a/adapters/sovrnXsp/sovrnXsptest/supplemental/response-http-error.json +++ b/adapters/sovrnXsp/sovrnXsptest/supplemental/response-http-error.json @@ -66,7 +66,8 @@ } } }] - } + }, + "impIDs":["imp123"] }, "mockResponse": { "status": 500, diff --git a/adapters/sovrnXsp/sovrnXsptest/supplemental/response-invalid-crtype.json b/adapters/sovrnXsp/sovrnXsptest/supplemental/response-invalid-crtype.json index 73bc7d87a53..d48c2b6cba6 100644 --- a/adapters/sovrnXsp/sovrnXsptest/supplemental/response-invalid-crtype.json +++ b/adapters/sovrnXsp/sovrnXsptest/supplemental/response-invalid-crtype.json @@ -66,7 +66,8 @@ } } }] - } + }, + "impIDs":["imp123"] }, "mockResponse": { "status": 200, diff --git a/adapters/sovrnXsp/sovrnXsptest/supplemental/response-nobid.json b/adapters/sovrnXsp/sovrnXsptest/supplemental/response-nobid.json index bb0e04a50fc..072fea60115 100644 --- a/adapters/sovrnXsp/sovrnXsptest/supplemental/response-nobid.json +++ b/adapters/sovrnXsp/sovrnXsptest/supplemental/response-nobid.json @@ -66,7 +66,8 @@ } } }] - } + }, + "impIDs":["imp123"] }, "mockResponse": { "status": 204, diff --git a/adapters/sspBC/sspbc.go b/adapters/sspBC/sspbc.go index e312b288bad..59dffbdfbea 100644 --- a/adapters/sspBC/sspbc.go +++ b/adapters/sspBC/sspbc.go @@ -128,6 +128,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: http.MethodPost, Uri: requestURL.String(), Body: requestJSON, + ImpIDs: getImpIDs(formattedRequest.Imp), } return []*adapters.RequestData{requestData}, nil @@ -396,3 +397,12 @@ func formatSspBcRequest(request *openrtb2.BidRequest) (*openrtb2.BidRequest, err return request, nil } + +// getImpIDs uses imp.TagID instead of imp.ID as formattedRequest stores imp.ID in imp.TagID +func getImpIDs(imps []openrtb2.Imp) []string { + impIDs := make([]string, len(imps)) + for i := range imps { + impIDs[i] = imps[i].TagID + } + return impIDs +} diff --git a/adapters/sspBC/sspbctest/exemplary/banner-fromtemplate.json b/adapters/sspBC/sspbctest/exemplary/banner-fromtemplate.json index 4d54443f2a9..a8af9496124 100644 --- a/adapters/sspBC/sspbctest/exemplary/banner-fromtemplate.json +++ b/adapters/sspBC/sspbctest/exemplary/banner-fromtemplate.json @@ -82,7 +82,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot"] }, "mockResponse": { "status": 200, diff --git a/adapters/sspBC/sspbctest/exemplary/banner-preformatted-multiple-imps.json b/adapters/sspBC/sspbctest/exemplary/banner-preformatted-multiple-imps.json index ab958148abc..15856d4ae4a 100644 --- a/adapters/sspBC/sspbctest/exemplary/banner-preformatted-multiple-imps.json +++ b/adapters/sspBC/sspbctest/exemplary/banner-preformatted-multiple-imps.json @@ -119,7 +119,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot1","slot2"] }, "mockResponse": { "status": 200, diff --git a/adapters/sspBC/sspbctest/exemplary/banner-preformatted-onecode.json b/adapters/sspBC/sspbctest/exemplary/banner-preformatted-onecode.json index aaf9a7b4968..c700d9e584e 100644 --- a/adapters/sspBC/sspbctest/exemplary/banner-preformatted-onecode.json +++ b/adapters/sspBC/sspbctest/exemplary/banner-preformatted-onecode.json @@ -76,7 +76,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot"] }, "mockResponse": { "status": 200, diff --git a/adapters/sspBC/sspbctest/exemplary/banner-preformatted.json b/adapters/sspBC/sspbctest/exemplary/banner-preformatted.json index d5c3125e443..1a9b22e7801 100644 --- a/adapters/sspBC/sspbctest/exemplary/banner-preformatted.json +++ b/adapters/sspBC/sspbctest/exemplary/banner-preformatted.json @@ -82,7 +82,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot"] }, "mockResponse": { "status": 200, diff --git a/adapters/sspBC/sspbctest/supplemental/bad_response.json b/adapters/sspBC/sspbctest/supplemental/bad_response.json index 4e67b182730..7859596d2f6 100644 --- a/adapters/sspBC/sspbctest/supplemental/bad_response.json +++ b/adapters/sspBC/sspbctest/supplemental/bad_response.json @@ -82,7 +82,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot"] }, "mockResponse": { "status": 200, diff --git a/adapters/sspBC/sspbctest/supplemental/bad_response_with_incorrect_impid.json b/adapters/sspBC/sspbctest/supplemental/bad_response_with_incorrect_impid.json index bc5ffa205c2..26c9e42cf6c 100644 --- a/adapters/sspBC/sspbctest/supplemental/bad_response_with_incorrect_impid.json +++ b/adapters/sspBC/sspbctest/supplemental/bad_response_with_incorrect_impid.json @@ -82,7 +82,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot"] }, "mockResponse": { "status": 200, diff --git a/adapters/sspBC/sspbctest/supplemental/bad_response_without_adm.json b/adapters/sspBC/sspbctest/supplemental/bad_response_without_adm.json index f83584999ab..f975b66d2cf 100644 --- a/adapters/sspBC/sspbctest/supplemental/bad_response_without_adm.json +++ b/adapters/sspBC/sspbctest/supplemental/bad_response_without_adm.json @@ -82,7 +82,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot"] }, "mockResponse": { "status": 200, diff --git a/adapters/sspBC/sspbctest/supplemental/request_with_diffrent_siteid.json b/adapters/sspBC/sspbctest/supplemental/request_with_diffrent_siteid.json index 26a5043bbef..92a77fa8405 100644 --- a/adapters/sspBC/sspbctest/supplemental/request_with_diffrent_siteid.json +++ b/adapters/sspBC/sspbctest/supplemental/request_with_diffrent_siteid.json @@ -83,7 +83,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot"] }, "mockResponse": { "status": 200, diff --git a/adapters/sspBC/sspbctest/supplemental/request_with_incorrect_imp_bidder_ext.json b/adapters/sspBC/sspbctest/supplemental/request_with_incorrect_imp_bidder_ext.json index f9017c197ac..8e089cfefda 100644 --- a/adapters/sspBC/sspbctest/supplemental/request_with_incorrect_imp_bidder_ext.json +++ b/adapters/sspBC/sspbctest/supplemental/request_with_incorrect_imp_bidder_ext.json @@ -78,7 +78,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot"] }, "mockResponse": { "status": 200, diff --git a/adapters/sspBC/sspbctest/supplemental/request_with_incorrect_imp_ext.json b/adapters/sspBC/sspbctest/supplemental/request_with_incorrect_imp_ext.json index c26dfa35b6c..3ab3f998ba9 100644 --- a/adapters/sspBC/sspbctest/supplemental/request_with_incorrect_imp_ext.json +++ b/adapters/sspBC/sspbctest/supplemental/request_with_incorrect_imp_ext.json @@ -76,7 +76,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot"] }, "mockResponse": { "status": 200, diff --git a/adapters/sspBC/sspbctest/supplemental/request_with_standard_and_onecode_imp.json b/adapters/sspBC/sspbctest/supplemental/request_with_standard_and_onecode_imp.json index a304aabe768..7c864f8c9a5 100644 --- a/adapters/sspBC/sspbctest/supplemental/request_with_standard_and_onecode_imp.json +++ b/adapters/sspBC/sspbctest/supplemental/request_with_standard_and_onecode_imp.json @@ -113,7 +113,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot-standard","slot-onecode"] }, "mockResponse": { "status": 200, diff --git a/adapters/sspBC/sspbctest/supplemental/request_with_test.json b/adapters/sspBC/sspbctest/supplemental/request_with_test.json index a30b77e70c9..70f740b4b6c 100644 --- a/adapters/sspBC/sspbctest/supplemental/request_with_test.json +++ b/adapters/sspBC/sspbctest/supplemental/request_with_test.json @@ -85,7 +85,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot"] }, "mockResponse": { "status": 200, diff --git a/adapters/sspBC/sspbctest/supplemental/request_without_banner_format.json b/adapters/sspBC/sspbctest/supplemental/request_without_banner_format.json index 39322ae4b06..7572f88cacd 100644 --- a/adapters/sspBC/sspbctest/supplemental/request_without_banner_format.json +++ b/adapters/sspBC/sspbctest/supplemental/request_without_banner_format.json @@ -71,7 +71,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot"] }, "mockResponse": { "status": 200, diff --git a/adapters/sspBC/sspbctest/supplemental/request_without_ext_id.json b/adapters/sspBC/sspbctest/supplemental/request_without_ext_id.json index d6d92952a95..f7692a91b0e 100644 --- a/adapters/sspBC/sspbctest/supplemental/request_without_ext_id.json +++ b/adapters/sspBC/sspbctest/supplemental/request_without_ext_id.json @@ -80,7 +80,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot"] }, "mockResponse": { "status": 200, diff --git a/adapters/sspBC/sspbctest/supplemental/request_without_ext_site_id.json b/adapters/sspBC/sspbctest/supplemental/request_without_ext_site_id.json index 6d5858345df..eb04d2f7c72 100644 --- a/adapters/sspBC/sspbctest/supplemental/request_without_ext_site_id.json +++ b/adapters/sspBC/sspbctest/supplemental/request_without_ext_site_id.json @@ -81,7 +81,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot"] }, "mockResponse": { "status": 200, diff --git a/adapters/sspBC/sspbctest/supplemental/status_204.json b/adapters/sspBC/sspbctest/supplemental/status_204.json index 931f59978bc..f26421a6356 100644 --- a/adapters/sspBC/sspbctest/supplemental/status_204.json +++ b/adapters/sspBC/sspbctest/supplemental/status_204.json @@ -83,7 +83,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot"] }, "mockResponse": { "status": 204, diff --git a/adapters/sspBC/sspbctest/supplemental/status_400.json b/adapters/sspBC/sspbctest/supplemental/status_400.json index 75a763b3a8e..adf79df5d22 100644 --- a/adapters/sspBC/sspbctest/supplemental/status_400.json +++ b/adapters/sspBC/sspbctest/supplemental/status_400.json @@ -83,7 +83,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["slot"] }, "mockResponse": { "status": 400, diff --git a/adapters/stroeerCore/stroeercore.go b/adapters/stroeerCore/stroeercore.go index f2ef4923d7b..4975c32e3b3 100644 --- a/adapters/stroeerCore/stroeercore.go +++ b/adapters/stroeerCore/stroeercore.go @@ -140,6 +140,7 @@ func (a *adapter) MakeRequests(bidRequest *openrtb2.BidRequest, extraRequestInfo Uri: a.URL, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(bidRequest.Imp), }}, errors } diff --git a/adapters/stroeerCore/stroeercoretest/exemplary/dsa.json b/adapters/stroeerCore/stroeercoretest/exemplary/dsa.json index 70baef5fc4b..97355da9053 100644 --- a/adapters/stroeerCore/stroeercoretest/exemplary/dsa.json +++ b/adapters/stroeerCore/stroeercoretest/exemplary/dsa.json @@ -127,7 +127,8 @@ } } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, diff --git a/adapters/stroeerCore/stroeercoretest/exemplary/mobile-banner-single.json b/adapters/stroeerCore/stroeercoretest/exemplary/mobile-banner-single.json index b91cc72fbde..3cff0a2842f 100644 --- a/adapters/stroeerCore/stroeercoretest/exemplary/mobile-banner-single.json +++ b/adapters/stroeerCore/stroeercoretest/exemplary/mobile-banner-single.json @@ -147,7 +147,8 @@ "user": { "buyeruid": "test-buyer-user-id" } - } + }, + "impIDs":["3"] }, "mockResponse": { "status": 200, diff --git a/adapters/stroeerCore/stroeercoretest/exemplary/site-banner-multi.json b/adapters/stroeerCore/stroeercoretest/exemplary/site-banner-multi.json index 03d6f10214e..ad6e4d5f373 100644 --- a/adapters/stroeerCore/stroeercoretest/exemplary/site-banner-multi.json +++ b/adapters/stroeerCore/stroeercoretest/exemplary/site-banner-multi.json @@ -124,7 +124,8 @@ "user": { "buyeruid": "test-buyer-user-id" } - } + }, + "impIDs":["3","9"] }, "mockResponse": { "status": 200, diff --git a/adapters/stroeerCore/stroeercoretest/exemplary/site-banner-single.json b/adapters/stroeerCore/stroeercoretest/exemplary/site-banner-single.json index 7dd860a72ba..1cc339732ff 100644 --- a/adapters/stroeerCore/stroeercoretest/exemplary/site-banner-single.json +++ b/adapters/stroeerCore/stroeercoretest/exemplary/site-banner-single.json @@ -91,7 +91,8 @@ "user": { "buyeruid": "test-buyer-user-id" } - } + }, + "impIDs":["3"] }, "mockResponse": { "status": 200, diff --git a/adapters/stroeerCore/stroeercoretest/exemplary/site-multi-format-single.json b/adapters/stroeerCore/stroeercoretest/exemplary/site-multi-format-single.json index 57a6e39bc6e..b87aead0c61 100644 --- a/adapters/stroeerCore/stroeercoretest/exemplary/site-multi-format-single.json +++ b/adapters/stroeerCore/stroeercoretest/exemplary/site-multi-format-single.json @@ -101,7 +101,8 @@ "user": { "buyeruid": "test-buyer-user-id" } - } + }, + "impIDs":["3"] }, "mockResponse": { "status": 200, diff --git a/adapters/stroeerCore/stroeercoretest/exemplary/site-multi-types.json b/adapters/stroeerCore/stroeercoretest/exemplary/site-multi-types.json index 27cd32ba1d0..71bcec598c1 100644 --- a/adapters/stroeerCore/stroeercoretest/exemplary/site-multi-types.json +++ b/adapters/stroeerCore/stroeercoretest/exemplary/site-multi-types.json @@ -118,7 +118,8 @@ "user": { "buyeruid": "test-buyer-user-id" } - } + }, + "impIDs":["3","9"] }, "mockResponse": { "status": 200, diff --git a/adapters/stroeerCore/stroeercoretest/exemplary/site-video-single.json b/adapters/stroeerCore/stroeercoretest/exemplary/site-video-single.json index 65b2da804ea..b78fbcbe444 100644 --- a/adapters/stroeerCore/stroeercoretest/exemplary/site-video-single.json +++ b/adapters/stroeerCore/stroeercoretest/exemplary/site-video-single.json @@ -77,7 +77,8 @@ "user": { "buyeruid": "test-buyer-user-id" } - } + }, + "impIDs":["3"] }, "mockResponse": { "status": 200, diff --git a/adapters/stroeerCore/stroeercoretest/supplemental/bad-server-response.json b/adapters/stroeerCore/stroeercoretest/supplemental/bad-server-response.json index 48275916b2e..b499d8c9f91 100644 --- a/adapters/stroeerCore/stroeercoretest/supplemental/bad-server-response.json +++ b/adapters/stroeerCore/stroeercoretest/supplemental/bad-server-response.json @@ -43,7 +43,8 @@ "user": { "buyeruid": "test-buyer-user-id" } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 500 diff --git a/adapters/stroeerCore/stroeercoretest/supplemental/unknown-bid-media-type.json b/adapters/stroeerCore/stroeercoretest/supplemental/unknown-bid-media-type.json index 0cb74cd47a6..868b6782c86 100644 --- a/adapters/stroeerCore/stroeercoretest/supplemental/unknown-bid-media-type.json +++ b/adapters/stroeerCore/stroeercoretest/supplemental/unknown-bid-media-type.json @@ -121,7 +121,8 @@ "user": { "buyeruid": "test-buyer-user-id" } - } + }, + "impIDs":["banner-1","banner-2","banner-3"] }, "mockResponse": { "status": 200, diff --git a/adapters/taboola/taboola.go b/adapters/taboola/taboola.go index 85a129eb341..9d950bef2cb 100644 --- a/adapters/taboola/taboola.go +++ b/adapters/taboola/taboola.go @@ -140,6 +140,7 @@ func (a *adapter) buildRequest(request *openrtb2.BidRequest) (*adapters.RequestD Method: "POST", Uri: url, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return requestData, nil diff --git a/adapters/taboola/taboolatest/exemplary/banner.json b/adapters/taboola/taboolatest/exemplary/banner.json index e550c66e5b4..2656e06116a 100644 --- a/adapters/taboola/taboolatest/exemplary/banner.json +++ b/adapters/taboola/taboolatest/exemplary/banner.json @@ -90,7 +90,8 @@ "h": 300, "w": 300 } - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/taboola/taboolatest/exemplary/bannerResolveMacro.json b/adapters/taboola/taboolatest/exemplary/bannerResolveMacro.json index 830af06d202..b673096c0b5 100644 --- a/adapters/taboola/taboolatest/exemplary/bannerResolveMacro.json +++ b/adapters/taboola/taboolatest/exemplary/bannerResolveMacro.json @@ -90,7 +90,8 @@ "h": 300, "w": 300 } - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/taboola/taboolatest/exemplary/multiFormatImpressionsRequest.json b/adapters/taboola/taboolatest/exemplary/multiFormatImpressionsRequest.json index 9d603b8aa66..53cb7672cd7 100644 --- a/adapters/taboola/taboolatest/exemplary/multiFormatImpressionsRequest.json +++ b/adapters/taboola/taboolatest/exemplary/multiFormatImpressionsRequest.json @@ -114,7 +114,8 @@ "h": 300, "w": 300 } - } + }, + "impIDs":["native-impression-id"] }, "mockResponse": { "status": 200, @@ -222,7 +223,8 @@ "h": 300, "w": 300 } - } + }, + "impIDs":["banner-impression-id","banner-impression-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/taboola/taboolatest/exemplary/native.json b/adapters/taboola/taboolatest/exemplary/native.json index 88863fdfd64..6a892d3fb59 100644 --- a/adapters/taboola/taboolatest/exemplary/native.json +++ b/adapters/taboola/taboolatest/exemplary/native.json @@ -64,7 +64,8 @@ "h": 300, "w": 300 } - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/taboola/taboolatest/exemplary/nativeResolveMacro.json b/adapters/taboola/taboolatest/exemplary/nativeResolveMacro.json index 03f05db544c..e30f123cc16 100644 --- a/adapters/taboola/taboolatest/exemplary/nativeResolveMacro.json +++ b/adapters/taboola/taboolatest/exemplary/nativeResolveMacro.json @@ -64,7 +64,8 @@ "h": 300, "w": 300 } - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/taboola/taboolatest/exemplary/withPageType.json b/adapters/taboola/taboolatest/exemplary/withPageType.json index 0f0d6435d7e..b3ea5f6357c 100644 --- a/adapters/taboola/taboolatest/exemplary/withPageType.json +++ b/adapters/taboola/taboolatest/exemplary/withPageType.json @@ -93,7 +93,8 @@ "ext": { "pageType": "homepage" } - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/taboola/taboolatest/exemplary/withPosition.json b/adapters/taboola/taboolatest/exemplary/withPosition.json index ea1fdbdd36d..d4d77d39af5 100644 --- a/adapters/taboola/taboolatest/exemplary/withPosition.json +++ b/adapters/taboola/taboolatest/exemplary/withPosition.json @@ -91,7 +91,8 @@ "h": 300, "w": 300 } - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/taboola/taboolatest/supplemental/bidParamsOverrideRequestFields.json b/adapters/taboola/taboolatest/supplemental/bidParamsOverrideRequestFields.json index c4a4279e08f..4138e6d0304 100644 --- a/adapters/taboola/taboolatest/supplemental/bidParamsOverrideRequestFields.json +++ b/adapters/taboola/taboolatest/supplemental/bidParamsOverrideRequestFields.json @@ -92,7 +92,8 @@ "h": 300, "w": 300 } - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/taboola/taboolatest/supplemental/bidderServerError.json b/adapters/taboola/taboolatest/supplemental/bidderServerError.json index 949ceb9338a..829dd466ed8 100644 --- a/adapters/taboola/taboolatest/supplemental/bidderServerError.json +++ b/adapters/taboola/taboolatest/supplemental/bidderServerError.json @@ -88,7 +88,8 @@ "h": 300, "w": 300 } - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/taboola/taboolatest/supplemental/emptyReponseFromBidder.json b/adapters/taboola/taboolatest/supplemental/emptyReponseFromBidder.json index b7d2f2bea44..4533bbf9d81 100644 --- a/adapters/taboola/taboolatest/supplemental/emptyReponseFromBidder.json +++ b/adapters/taboola/taboolatest/supplemental/emptyReponseFromBidder.json @@ -88,7 +88,8 @@ "h": 300, "w": 300 } - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/taboola/taboolatest/supplemental/emptySiteInRequest.json b/adapters/taboola/taboolatest/supplemental/emptySiteInRequest.json index 6e01c457aea..3245290f756 100644 --- a/adapters/taboola/taboolatest/supplemental/emptySiteInRequest.json +++ b/adapters/taboola/taboolatest/supplemental/emptySiteInRequest.json @@ -86,7 +86,8 @@ "h": 300, "w": 300 } - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/taboola/taboolatest/supplemental/incorrectResponseImpMapping.json b/adapters/taboola/taboolatest/supplemental/incorrectResponseImpMapping.json index 3cc915cec6f..c70fd287766 100644 --- a/adapters/taboola/taboolatest/supplemental/incorrectResponseImpMapping.json +++ b/adapters/taboola/taboolatest/supplemental/incorrectResponseImpMapping.json @@ -88,7 +88,8 @@ "h": 300, "w": 300 } - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/taboola/taboolatest/supplemental/multiImpressionsRequest.json b/adapters/taboola/taboolatest/supplemental/multiImpressionsRequest.json index 24998b4b948..7b428c45b11 100644 --- a/adapters/taboola/taboolatest/supplemental/multiImpressionsRequest.json +++ b/adapters/taboola/taboolatest/supplemental/multiImpressionsRequest.json @@ -107,7 +107,8 @@ "h": 300, "w": 300 } - } + }, + "impIDs":["impression-id-1","impression-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/taboola/taboolatest/supplemental/optionalParamsProvided.json b/adapters/taboola/taboolatest/supplemental/optionalParamsProvided.json index cdf39eeefd4..86b9d9800b8 100644 --- a/adapters/taboola/taboolatest/supplemental/optionalParamsProvided.json +++ b/adapters/taboola/taboolatest/supplemental/optionalParamsProvided.json @@ -99,7 +99,8 @@ }, "bcat": ["excluded-category"], "badv": ["excluded-advertiser"] - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/taboola/taboolatest/supplemental/unexpectedStatusCode.json b/adapters/taboola/taboolatest/supplemental/unexpectedStatusCode.json index d8069578447..551b9a37247 100644 --- a/adapters/taboola/taboolatest/supplemental/unexpectedStatusCode.json +++ b/adapters/taboola/taboolatest/supplemental/unexpectedStatusCode.json @@ -88,7 +88,8 @@ "h": 300, "w": 300 } - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 302, diff --git a/adapters/tappx/tappx.go b/adapters/tappx/tappx.go index a0343ccd78d..6da9497b36b 100644 --- a/adapters/tappx/tappx.go +++ b/adapters/tappx/tappx.go @@ -113,6 +113,7 @@ func (a *TappxAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapt Uri: url, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, []error{} } diff --git a/adapters/tappx/tappxtest/exemplary/single-banner-impression-extra.json b/adapters/tappx/tappxtest/exemplary/single-banner-impression-extra.json index ef8e5e394a9..fc03a4daa25 100644 --- a/adapters/tappx/tappxtest/exemplary/single-banner-impression-extra.json +++ b/adapters/tappx/tappxtest/exemplary/single-banner-impression-extra.json @@ -75,7 +75,8 @@ "bcrid": ["4","5","6"] } } - } + }, + "impIDs":["adunit-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/tappx/tappxtest/exemplary/single-banner-impression-future-feature.json b/adapters/tappx/tappxtest/exemplary/single-banner-impression-future-feature.json index 5af06ad55a8..478e4ace29a 100644 --- a/adapters/tappx/tappxtest/exemplary/single-banner-impression-future-feature.json +++ b/adapters/tappx/tappxtest/exemplary/single-banner-impression-future-feature.json @@ -66,7 +66,8 @@ "tappxkey": "pub-12345-android-9876" } } - } + }, + "impIDs":["adunit-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/tappx/tappxtest/exemplary/single-banner-impression.json b/adapters/tappx/tappxtest/exemplary/single-banner-impression.json index dbd342b3c1e..7028b7a4f41 100644 --- a/adapters/tappx/tappxtest/exemplary/single-banner-impression.json +++ b/adapters/tappx/tappxtest/exemplary/single-banner-impression.json @@ -66,7 +66,8 @@ "tappxkey": "pub-12345-android-9876" } } - } + }, + "impIDs":["adunit-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/tappx/tappxtest/exemplary/single-banner-site.json b/adapters/tappx/tappxtest/exemplary/single-banner-site.json index dde889dd5bc..ea9057f108b 100644 --- a/adapters/tappx/tappxtest/exemplary/single-banner-site.json +++ b/adapters/tappx/tappxtest/exemplary/single-banner-site.json @@ -74,7 +74,8 @@ "tappxkey": "pub-12345-site-9876" } } - } + }, + "impIDs":["adunit-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/tappx/tappxtest/exemplary/single-video-impression.json b/adapters/tappx/tappxtest/exemplary/single-video-impression.json index a9507df56a7..a63bc17ee78 100644 --- a/adapters/tappx/tappxtest/exemplary/single-video-impression.json +++ b/adapters/tappx/tappxtest/exemplary/single-video-impression.json @@ -71,7 +71,8 @@ "tappxkey": "pub-12345-android-9876" } } - } + }, + "impIDs":["video-adunit-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/tappx/tappxtest/exemplary/single-video-site.json b/adapters/tappx/tappxtest/exemplary/single-video-site.json index 5e2ba58b03e..60a8fdd9a9b 100644 --- a/adapters/tappx/tappxtest/exemplary/single-video-site.json +++ b/adapters/tappx/tappxtest/exemplary/single-video-site.json @@ -79,7 +79,8 @@ "tappxkey": "pub-12345-site-9876" } } - } + }, + "impIDs":["video-adunit-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/tappx/tappxtest/supplemental/204status.json b/adapters/tappx/tappxtest/supplemental/204status.json index 8e3bb4b5ed7..a6b2a49b68a 100644 --- a/adapters/tappx/tappxtest/supplemental/204status.json +++ b/adapters/tappx/tappxtest/supplemental/204status.json @@ -60,7 +60,8 @@ "tappxkey": "pub-12345-android-9876" } } - } + }, + "impIDs":["adunit-1"] }, "mockResponse": { "status": 204, diff --git a/adapters/tappx/tappxtest/supplemental/bidfloor.json b/adapters/tappx/tappxtest/supplemental/bidfloor.json index 7c2c53063fd..44a1712d3c0 100644 --- a/adapters/tappx/tappxtest/supplemental/bidfloor.json +++ b/adapters/tappx/tappxtest/supplemental/bidfloor.json @@ -69,7 +69,8 @@ "tappxkey": "pub-12345-android-9876" } } - } + }, + "impIDs":["adunit-1"] }, "mockResponse": { "status": 200, diff --git a/adapters/tappx/tappxtest/supplemental/http-err-status.json b/adapters/tappx/tappxtest/supplemental/http-err-status.json index 22d0afe3180..e8b1a2e532e 100644 --- a/adapters/tappx/tappxtest/supplemental/http-err-status.json +++ b/adapters/tappx/tappxtest/supplemental/http-err-status.json @@ -60,7 +60,8 @@ "tappxkey": "pub-12345-android-9876" } } - } + }, + "impIDs":["adunit-1"] }, "mockResponse": { "status": 400 diff --git a/adapters/tappx/tappxtest/supplemental/http-err-status2.json b/adapters/tappx/tappxtest/supplemental/http-err-status2.json index 011f80a5ff8..3d68fdaf7ff 100644 --- a/adapters/tappx/tappxtest/supplemental/http-err-status2.json +++ b/adapters/tappx/tappxtest/supplemental/http-err-status2.json @@ -60,7 +60,8 @@ "tappxkey": "pub-12345-android-9876" } } - } + }, + "impIDs":["adunit-1"] }, "mockResponse": { "status": 500 diff --git a/adapters/teads/teads.go b/adapters/teads/teads.go index 9eaaad4fd2d..fbea4fcd96f 100644 --- a/adapters/teads/teads.go +++ b/adapters/teads/teads.go @@ -59,6 +59,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: endpointURL, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, []error{} } diff --git a/adapters/teads/teadstest/exemplary/simple-banner-with-format.json b/adapters/teads/teadstest/exemplary/simple-banner-with-format.json index ffaf849bfd8..418e264c19b 100644 --- a/adapters/teads/teadstest/exemplary/simple-banner-with-format.json +++ b/adapters/teads/teadstest/exemplary/simple-banner-with-format.json @@ -79,7 +79,8 @@ } } } - } + }, + "impIDs":["b6321d41-3840-4cb3-baad-b6fc5b0c8553"] }, "mockResponse": { "status": 200, diff --git a/adapters/teads/teadstest/exemplary/simple-banner.json b/adapters/teads/teadstest/exemplary/simple-banner.json index 43a28614f9c..cb88466d3a0 100644 --- a/adapters/teads/teadstest/exemplary/simple-banner.json +++ b/adapters/teads/teadstest/exemplary/simple-banner.json @@ -69,7 +69,8 @@ } } } - } + }, + "impIDs":["b6321d41-3840-4cb3-baad-b6fc5b0c8553"] }, "mockResponse": { "status": 200, diff --git a/adapters/teads/teadstest/exemplary/simple-video.json b/adapters/teads/teadstest/exemplary/simple-video.json index de273aba904..e08f90daa8c 100644 --- a/adapters/teads/teadstest/exemplary/simple-video.json +++ b/adapters/teads/teadstest/exemplary/simple-video.json @@ -95,7 +95,8 @@ } } } - } + }, + "impIDs":["b6321d41-3840-4cb3-baad-b6fc5b0c8553"] }, "mockResponse": { "status": 200, diff --git a/adapters/teads/teadstest/supplemental/bid-id-does-not-match.json b/adapters/teads/teadstest/supplemental/bid-id-does-not-match.json index b2e5c9e7aba..abfaacd979b 100644 --- a/adapters/teads/teadstest/supplemental/bid-id-does-not-match.json +++ b/adapters/teads/teadstest/supplemental/bid-id-does-not-match.json @@ -95,7 +95,8 @@ } } } - } + }, + "impIDs":["b6321d41-3840-4cb3-baad-b6fc5b0c8553"] }, "mockResponse": { "status": 200, diff --git a/adapters/teads/teadstest/supplemental/currency-empty-string.json b/adapters/teads/teadstest/supplemental/currency-empty-string.json index 9168f265cae..724fa23dea8 100644 --- a/adapters/teads/teadstest/supplemental/currency-empty-string.json +++ b/adapters/teads/teadstest/supplemental/currency-empty-string.json @@ -95,7 +95,8 @@ } } } - } + }, + "impIDs":["b6321d41-3840-4cb3-baad-b6fc5b0c8553"] }, "mockResponse": { "status": 200, diff --git a/adapters/teads/teadstest/supplemental/no-impression-response.json b/adapters/teads/teadstest/supplemental/no-impression-response.json index de273aba904..e08f90daa8c 100644 --- a/adapters/teads/teadstest/supplemental/no-impression-response.json +++ b/adapters/teads/teadstest/supplemental/no-impression-response.json @@ -95,7 +95,8 @@ } } } - } + }, + "impIDs":["b6321d41-3840-4cb3-baad-b6fc5b0c8553"] }, "mockResponse": { "status": 200, diff --git a/adapters/teads/teadstest/supplemental/renderer-name-empty.json b/adapters/teads/teadstest/supplemental/renderer-name-empty.json index 9d35cf2fe71..00744f792d9 100644 --- a/adapters/teads/teadstest/supplemental/renderer-name-empty.json +++ b/adapters/teads/teadstest/supplemental/renderer-name-empty.json @@ -87,7 +87,8 @@ } } } - } + }, + "impIDs":["b6321d41-3840-4cb3-baad-b6fc5b0c8553"] }, "mockResponse": { "status": 200, diff --git a/adapters/teads/teadstest/supplemental/renderer-version-empty.json b/adapters/teads/teadstest/supplemental/renderer-version-empty.json index cb1a47d6fbe..7960ea569ed 100644 --- a/adapters/teads/teadstest/supplemental/renderer-version-empty.json +++ b/adapters/teads/teadstest/supplemental/renderer-version-empty.json @@ -87,7 +87,8 @@ } } } - } + }, + "impIDs":["b6321d41-3840-4cb3-baad-b6fc5b0c8553"] }, "mockResponse": { "status": 200, diff --git a/adapters/teads/teadstest/supplemental/status-400.json b/adapters/teads/teadstest/supplemental/status-400.json index 98b1875402c..32953be4f85 100644 --- a/adapters/teads/teadstest/supplemental/status-400.json +++ b/adapters/teads/teadstest/supplemental/status-400.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/teads/teadstest/supplemental/status-500.json b/adapters/teads/teadstest/supplemental/status-500.json index 4db6eed0ec8..c07facc1c43 100644 --- a/adapters/teads/teadstest/supplemental/status-500.json +++ b/adapters/teads/teadstest/supplemental/status-500.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/telaria/telaria.go b/adapters/telaria/telaria.go index ba2d10ae50a..e98730d7ad2 100644 --- a/adapters/telaria/telaria.go +++ b/adapters/telaria/telaria.go @@ -228,6 +228,7 @@ func (a *TelariaAdapter) MakeRequests(requestIn *openrtb2.BidRequest, reqInfo *a Uri: a.FetchEndpoint(), Body: reqJSON, Headers: *GetHeaders(&request), + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, nil } diff --git a/adapters/telaria/telariatest/exemplary/multiple-video-web.json b/adapters/telaria/telariatest/exemplary/multiple-video-web.json index e28d0cfa8d3..dd60aafdbf1 100644 --- a/adapters/telaria/telariatest/exemplary/multiple-video-web.json +++ b/adapters/telaria/telariatest/exemplary/multiple-video-web.json @@ -141,7 +141,8 @@ "custom": "1234" } } - } + }, + "impIDs":["0_0"] }, "mockResponse": { "status": 200, diff --git a/adapters/telaria/telariatest/exemplary/multiple-vidoe-app.json b/adapters/telaria/telariatest/exemplary/multiple-vidoe-app.json index 49bdb6b2b21..d1cf513846b 100644 --- a/adapters/telaria/telariatest/exemplary/multiple-vidoe-app.json +++ b/adapters/telaria/telariatest/exemplary/multiple-vidoe-app.json @@ -153,7 +153,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["0_0"] }, "mockResponse": { "status": 200, diff --git a/adapters/telaria/telariatest/exemplary/video-app.json b/adapters/telaria/telariatest/exemplary/video-app.json index 4041b01d806..75e424ae7d0 100644 --- a/adapters/telaria/telariatest/exemplary/video-app.json +++ b/adapters/telaria/telariatest/exemplary/video-app.json @@ -123,7 +123,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/telaria/telariatest/exemplary/video-web.json b/adapters/telaria/telariatest/exemplary/video-web.json index 1ce1d3ad669..d7df8f11148 100644 --- a/adapters/telaria/telariatest/exemplary/video-web.json +++ b/adapters/telaria/telariatest/exemplary/video-web.json @@ -111,7 +111,8 @@ "custom": "1234" } } - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/telaria/telariatest/supplemental/invalid-response.json b/adapters/telaria/telariatest/supplemental/invalid-response.json index 3f614a0724c..90ca9809939 100644 --- a/adapters/telaria/telariatest/supplemental/invalid-response.json +++ b/adapters/telaria/telariatest/supplemental/invalid-response.json @@ -88,7 +88,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/telaria/telariatest/supplemental/status-code-bad-request.json b/adapters/telaria/telariatest/supplemental/status-code-bad-request.json index 0b5d8a85982..0faec2b22ec 100644 --- a/adapters/telaria/telariatest/supplemental/status-code-bad-request.json +++ b/adapters/telaria/telariatest/supplemental/status-code-bad-request.json @@ -64,7 +64,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/telaria/telariatest/supplemental/status-code-no-content.json b/adapters/telaria/telariatest/supplemental/status-code-no-content.json index ffb183f4121..40d49c7554b 100644 --- a/adapters/telaria/telariatest/supplemental/status-code-no-content.json +++ b/adapters/telaria/telariatest/supplemental/status-code-no-content.json @@ -67,7 +67,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/telaria/telariatest/supplemental/status-code-other-error.json b/adapters/telaria/telariatest/supplemental/status-code-other-error.json index 15e4b7f87d8..f93683ffd1c 100644 --- a/adapters/telaria/telariatest/supplemental/status-code-other-error.json +++ b/adapters/telaria/telariatest/supplemental/status-code-other-error.json @@ -67,7 +67,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 306 diff --git a/adapters/telaria/telariatest/supplemental/status-code-service-unavailable.json b/adapters/telaria/telariatest/supplemental/status-code-service-unavailable.json index b92d4ea8ba1..335b88f0d4c 100644 --- a/adapters/telaria/telariatest/supplemental/status-code-service-unavailable.json +++ b/adapters/telaria/telariatest/supplemental/status-code-service-unavailable.json @@ -67,7 +67,8 @@ "buyeruid": "awesome-user" }, "tmax": 1000 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/theadx/theadx.go b/adapters/theadx/theadx.go index 5b3f019a724..48af365f105 100644 --- a/adapters/theadx/theadx.go +++ b/adapters/theadx/theadx.go @@ -84,6 +84,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Uri: a.endpoint, Body: requestJSON, Headers: getHeaders(request), + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, errors diff --git a/adapters/theadx/theadxtest/exemplary/dynamic-tag.json b/adapters/theadx/theadxtest/exemplary/dynamic-tag.json index 738a426d60c..8dc586b6a15 100644 --- a/adapters/theadx/theadxtest/exemplary/dynamic-tag.json +++ b/adapters/theadx/theadxtest/exemplary/dynamic-tag.json @@ -89,7 +89,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id", "test-imp-id2"] }, "mockResponse": { "status": 204 diff --git a/adapters/theadx/theadxtest/exemplary/multi-format.json b/adapters/theadx/theadxtest/exemplary/multi-format.json index 8f188547d05..0190f92c642 100644 --- a/adapters/theadx/theadxtest/exemplary/multi-format.json +++ b/adapters/theadx/theadxtest/exemplary/multi-format.json @@ -87,7 +87,8 @@ }, "tagid": "123" }] - } + }, + "impIDs":["test-imp-id-1", "test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/theadx/theadxtest/exemplary/multi-native.json b/adapters/theadx/theadxtest/exemplary/multi-native.json index d025b0ea742..d58fea7ae5b 100644 --- a/adapters/theadx/theadxtest/exemplary/multi-native.json +++ b/adapters/theadx/theadxtest/exemplary/multi-native.json @@ -55,7 +55,8 @@ }, "tagid": "124" }] - } + }, + "impIDs":["test-imp-id-1", "test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/theadx/theadxtest/exemplary/single-banner.json b/adapters/theadx/theadxtest/exemplary/single-banner.json index 32a4357dd6a..6600e3b3b25 100644 --- a/adapters/theadx/theadxtest/exemplary/single-banner.json +++ b/adapters/theadx/theadxtest/exemplary/single-banner.json @@ -56,7 +56,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/theadx/theadxtest/exemplary/single-native.json b/adapters/theadx/theadxtest/exemplary/single-native.json index 09e97dcfccd..b20407bd28b 100644 --- a/adapters/theadx/theadxtest/exemplary/single-native.json +++ b/adapters/theadx/theadxtest/exemplary/single-native.json @@ -52,7 +52,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/theadx/theadxtest/exemplary/single-video.json b/adapters/theadx/theadxtest/exemplary/single-video.json index 9d3b5f77382..d6b11ae39f1 100644 --- a/adapters/theadx/theadxtest/exemplary/single-video.json +++ b/adapters/theadx/theadxtest/exemplary/single-video.json @@ -56,7 +56,8 @@ "w": 1920, "h": 800 } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/theadx/theadxtest/supplemental/bad-request.json b/adapters/theadx/theadxtest/supplemental/bad-request.json index 52aefa57c3f..241c538063a 100644 --- a/adapters/theadx/theadxtest/supplemental/bad-request.json +++ b/adapters/theadx/theadxtest/supplemental/bad-request.json @@ -31,7 +31,8 @@ }, "tagid": "12345" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/theadx/theadxtest/supplemental/empty-response.json b/adapters/theadx/theadxtest/supplemental/empty-response.json index 43546563dcd..eed3f72c72d 100644 --- a/adapters/theadx/theadxtest/supplemental/empty-response.json +++ b/adapters/theadx/theadxtest/supplemental/empty-response.json @@ -31,7 +31,8 @@ }, "tagid": "123" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/theadx/theadxtest/supplemental/nobid-response.json b/adapters/theadx/theadxtest/supplemental/nobid-response.json index 14e15de4cd1..ccefe2c9061 100644 --- a/adapters/theadx/theadxtest/supplemental/nobid-response.json +++ b/adapters/theadx/theadxtest/supplemental/nobid-response.json @@ -31,7 +31,8 @@ }, "tagid": "123" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/theadx/theadxtest/supplemental/server-error.json b/adapters/theadx/theadxtest/supplemental/server-error.json index 5130aba4e91..b5c6eb87193 100644 --- a/adapters/theadx/theadxtest/supplemental/server-error.json +++ b/adapters/theadx/theadxtest/supplemental/server-error.json @@ -31,7 +31,8 @@ }, "tagid": "123" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/theadx/theadxtest/supplemental/unparsable-response.json b/adapters/theadx/theadxtest/supplemental/unparsable-response.json index 2affa437fea..db9c246e15a 100644 --- a/adapters/theadx/theadxtest/supplemental/unparsable-response.json +++ b/adapters/theadx/theadxtest/supplemental/unparsable-response.json @@ -31,7 +31,8 @@ }, "tagid": "123" }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/tpmn/tpmn.go b/adapters/tpmn/tpmn.go index 68f4dc50a5d..77357866a6a 100644 --- a/adapters/tpmn/tpmn.go +++ b/adapters/tpmn/tpmn.go @@ -41,6 +41,7 @@ func (rcv *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters Uri: rcv.uri, Body: requestBodyJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errs } diff --git a/adapters/tpmn/tpmntest/exemplary/simple-banner.json b/adapters/tpmn/tpmntest/exemplary/simple-banner.json index 197d03b174e..a6618a9297b 100644 --- a/adapters/tpmn/tpmntest/exemplary/simple-banner.json +++ b/adapters/tpmn/tpmntest/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/tpmn/tpmntest/exemplary/simple-native.json b/adapters/tpmn/tpmntest/exemplary/simple-native.json index 1880c74ac7e..1e62ab47183 100644 --- a/adapters/tpmn/tpmntest/exemplary/simple-native.json +++ b/adapters/tpmn/tpmntest/exemplary/simple-native.json @@ -55,7 +55,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/tpmn/tpmntest/exemplary/simple-site-banner.json b/adapters/tpmn/tpmntest/exemplary/simple-site-banner.json index 8f7c5d59301..ddd031324d4 100644 --- a/adapters/tpmn/tpmntest/exemplary/simple-site-banner.json +++ b/adapters/tpmn/tpmntest/exemplary/simple-site-banner.json @@ -67,7 +67,8 @@ "device": { "ip": "123.123.123.123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/tpmn/tpmntest/exemplary/simple-site-native.json b/adapters/tpmn/tpmntest/exemplary/simple-site-native.json index 20e6c23e966..1cb63244241 100644 --- a/adapters/tpmn/tpmntest/exemplary/simple-site-native.json +++ b/adapters/tpmn/tpmntest/exemplary/simple-site-native.json @@ -58,7 +58,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/tpmn/tpmntest/exemplary/simple-site-video.json b/adapters/tpmn/tpmntest/exemplary/simple-site-video.json index 7b2375cd07a..77be3f7eb94 100644 --- a/adapters/tpmn/tpmntest/exemplary/simple-site-video.json +++ b/adapters/tpmn/tpmntest/exemplary/simple-site-video.json @@ -76,7 +76,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/tpmn/tpmntest/exemplary/simple-video.json b/adapters/tpmn/tpmntest/exemplary/simple-video.json index 505b6167069..50080a42434 100644 --- a/adapters/tpmn/tpmntest/exemplary/simple-video.json +++ b/adapters/tpmn/tpmntest/exemplary/simple-video.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/tpmn/tpmntest/supplemental/bad-imp-ext.json b/adapters/tpmn/tpmntest/supplemental/bad-imp-ext.json index 3bbb23f95a4..aaf0a5f5a2f 100644 --- a/adapters/tpmn/tpmntest/supplemental/bad-imp-ext.json +++ b/adapters/tpmn/tpmntest/supplemental/bad-imp-ext.json @@ -65,7 +65,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/tpmn/tpmntest/supplemental/bad_response.json b/adapters/tpmn/tpmntest/supplemental/bad_response.json index 12c3a72d49f..21ebfb968c7 100644 --- a/adapters/tpmn/tpmntest/supplemental/bad_response.json +++ b/adapters/tpmn/tpmntest/supplemental/bad_response.json @@ -70,7 +70,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/tpmn/tpmntest/supplemental/no-imp-ext.json b/adapters/tpmn/tpmntest/supplemental/no-imp-ext.json index 8bcbb93d004..a22f0a16d12 100644 --- a/adapters/tpmn/tpmntest/supplemental/no-imp-ext.json +++ b/adapters/tpmn/tpmntest/supplemental/no-imp-ext.json @@ -63,7 +63,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/tpmn/tpmntest/supplemental/status-204.json b/adapters/tpmn/tpmntest/supplemental/status-204.json index fdcd3f7fd55..6925c56a6f7 100644 --- a/adapters/tpmn/tpmntest/supplemental/status-204.json +++ b/adapters/tpmn/tpmntest/supplemental/status-204.json @@ -69,7 +69,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/tpmn/tpmntest/supplemental/status-404.json b/adapters/tpmn/tpmntest/supplemental/status-404.json index 74ced15217c..59e2265b7c5 100644 --- a/adapters/tpmn/tpmntest/supplemental/status-404.json +++ b/adapters/tpmn/tpmntest/supplemental/status-404.json @@ -69,7 +69,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/trafficgate/trafficgate.go b/adapters/trafficgate/trafficgate.go index b7ae0356a95..262c265cae5 100644 --- a/adapters/trafficgate/trafficgate.go +++ b/adapters/trafficgate/trafficgate.go @@ -61,7 +61,8 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Method: "POST", Uri: url, Body: reqJson, - Headers: headers} + Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp)} requests = append(requests, &request) } diff --git a/adapters/trafficgate/trafficgatetest/exemplary/multiple-imps.json b/adapters/trafficgate/trafficgatetest/exemplary/multiple-imps.json index 14f77f62911..d054d88ad3e 100644 --- a/adapters/trafficgate/trafficgatetest/exemplary/multiple-imps.json +++ b/adapters/trafficgate/trafficgatetest/exemplary/multiple-imps.json @@ -89,7 +89,8 @@ } } ] - } + }, + "impIDs":["test-imp-id","test-imp-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/trafficgate/trafficgatetest/exemplary/simple-audio.json b/adapters/trafficgate/trafficgatetest/exemplary/simple-audio.json index 4cbe9f63c50..12409c26fa9 100644 --- a/adapters/trafficgate/trafficgatetest/exemplary/simple-audio.json +++ b/adapters/trafficgate/trafficgatetest/exemplary/simple-audio.json @@ -53,7 +53,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/trafficgate/trafficgatetest/exemplary/simple-banner.json b/adapters/trafficgate/trafficgatetest/exemplary/simple-banner.json index 7f3c7abfafe..e65f889543e 100644 --- a/adapters/trafficgate/trafficgatetest/exemplary/simple-banner.json +++ b/adapters/trafficgate/trafficgatetest/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/trafficgate/trafficgatetest/exemplary/simple-native.json b/adapters/trafficgate/trafficgatetest/exemplary/simple-native.json index c2482c860ba..f289fff5020 100644 --- a/adapters/trafficgate/trafficgatetest/exemplary/simple-native.json +++ b/adapters/trafficgate/trafficgatetest/exemplary/simple-native.json @@ -55,7 +55,8 @@ "ip": "123.123.123.123", "ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/trafficgate/trafficgatetest/exemplary/simple-video.json b/adapters/trafficgate/trafficgatetest/exemplary/simple-video.json index 61a6d6ef314..c0448229c88 100644 --- a/adapters/trafficgate/trafficgatetest/exemplary/simple-video.json +++ b/adapters/trafficgate/trafficgatetest/exemplary/simple-video.json @@ -59,7 +59,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/trafficgate/trafficgatetest/exemplary/simple-web-banner.json b/adapters/trafficgate/trafficgatetest/exemplary/simple-web-banner.json index f46fde30183..38085564feb 100644 --- a/adapters/trafficgate/trafficgatetest/exemplary/simple-web-banner.json +++ b/adapters/trafficgate/trafficgatetest/exemplary/simple-web-banner.json @@ -68,7 +68,8 @@ "device": { "ip": "123.123.123.123" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/trafficgate/trafficgatetest/supplemental/bad_bidtype_response.json b/adapters/trafficgate/trafficgatetest/supplemental/bad_bidtype_response.json index 177a7cf261c..706825fb491 100644 --- a/adapters/trafficgate/trafficgatetest/supplemental/bad_bidtype_response.json +++ b/adapters/trafficgate/trafficgatetest/supplemental/bad_bidtype_response.json @@ -70,7 +70,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/trafficgate/trafficgatetest/supplemental/bad_ext_response.json b/adapters/trafficgate/trafficgatetest/supplemental/bad_ext_response.json index caea968d195..fb792e5f4e3 100644 --- a/adapters/trafficgate/trafficgatetest/supplemental/bad_ext_response.json +++ b/adapters/trafficgate/trafficgatetest/supplemental/bad_ext_response.json @@ -70,7 +70,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/trafficgate/trafficgatetest/supplemental/bad_response.json b/adapters/trafficgate/trafficgatetest/supplemental/bad_response.json index 60c9a43eed1..e4177fd79ea 100644 --- a/adapters/trafficgate/trafficgatetest/supplemental/bad_response.json +++ b/adapters/trafficgate/trafficgatetest/supplemental/bad_response.json @@ -70,7 +70,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/trafficgate/trafficgatetest/supplemental/bad_status_code.json b/adapters/trafficgate/trafficgatetest/supplemental/bad_status_code.json index 41207652f25..dcd0359eaf5 100644 --- a/adapters/trafficgate/trafficgatetest/supplemental/bad_status_code.json +++ b/adapters/trafficgate/trafficgatetest/supplemental/bad_status_code.json @@ -64,7 +64,8 @@ "bundle": "com.wls.testwlsapplication" }, "device": {} - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/trafficgate/trafficgatetest/supplemental/status-204.json b/adapters/trafficgate/trafficgatetest/supplemental/status-204.json index 79235df21d3..4b682056324 100644 --- a/adapters/trafficgate/trafficgatetest/supplemental/status-204.json +++ b/adapters/trafficgate/trafficgatetest/supplemental/status-204.json @@ -70,7 +70,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "expectedBidResponses": [], "mockResponse": { diff --git a/adapters/trafficgate/trafficgatetest/supplemental/status-404.json b/adapters/trafficgate/trafficgatetest/supplemental/status-404.json index 90bbd7647ba..bebbed36f25 100644 --- a/adapters/trafficgate/trafficgatetest/supplemental/status-404.json +++ b/adapters/trafficgate/trafficgatetest/supplemental/status-404.json @@ -70,7 +70,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/triplelift/triplelift.go b/adapters/triplelift/triplelift.go index 080fe326362..773048fc32e 100644 --- a/adapters/triplelift/triplelift.go +++ b/adapters/triplelift/triplelift.go @@ -90,7 +90,8 @@ func (a *TripleliftAdapter) MakeRequests(request *openrtb2.BidRequest, extra *ad Method: "POST", Uri: ad, Body: reqJSON, - Headers: headers}) + Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(tlRequest.Imp)}) return reqs, errs } diff --git a/adapters/triplelift/triplelifttest/exemplary/optional-params.json b/adapters/triplelift/triplelifttest/exemplary/optional-params.json index e83fd7a375e..33da6cb2968 100644 --- a/adapters/triplelift/triplelifttest/exemplary/optional-params.json +++ b/adapters/triplelift/triplelifttest/exemplary/optional-params.json @@ -56,7 +56,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/triplelift/triplelifttest/exemplary/simple-banner.json b/adapters/triplelift/triplelifttest/exemplary/simple-banner.json index 156e07e37eb..36fb2b66c98 100644 --- a/adapters/triplelift/triplelifttest/exemplary/simple-banner.json +++ b/adapters/triplelift/triplelifttest/exemplary/simple-banner.json @@ -53,7 +53,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/triplelift/triplelifttest/exemplary/simple-video.json b/adapters/triplelift/triplelifttest/exemplary/simple-video.json index 846c62b4d37..8d63b9acf3f 100644 --- a/adapters/triplelift/triplelifttest/exemplary/simple-video.json +++ b/adapters/triplelift/triplelifttest/exemplary/simple-video.json @@ -66,7 +66,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/triplelift/triplelifttest/supplemental/badresponseext.json b/adapters/triplelift/triplelifttest/supplemental/badresponseext.json index 6c09448fc4a..881ead4da6f 100644 --- a/adapters/triplelift/triplelifttest/supplemental/badresponseext.json +++ b/adapters/triplelift/triplelifttest/supplemental/badresponseext.json @@ -53,7 +53,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/triplelift/triplelifttest/supplemental/badstatuscode.json b/adapters/triplelift/triplelifttest/supplemental/badstatuscode.json index f24eb7998ed..a4c9ee00147 100644 --- a/adapters/triplelift/triplelifttest/supplemental/badstatuscode.json +++ b/adapters/triplelift/triplelifttest/supplemental/badstatuscode.json @@ -53,7 +53,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/triplelift/triplelifttest/supplemental/notgoodstatuscode.json b/adapters/triplelift/triplelifttest/supplemental/notgoodstatuscode.json index bdcc0e3a666..f15871f5145 100644 --- a/adapters/triplelift/triplelifttest/supplemental/notgoodstatuscode.json +++ b/adapters/triplelift/triplelifttest/supplemental/notgoodstatuscode.json @@ -53,7 +53,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 302, diff --git a/adapters/triplelift/triplelifttest/supplemental/video-format-11.json b/adapters/triplelift/triplelifttest/supplemental/video-format-11.json index f7a88ec5adc..372cc51ea08 100644 --- a/adapters/triplelift/triplelifttest/supplemental/video-format-11.json +++ b/adapters/triplelift/triplelifttest/supplemental/video-format-11.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/triplelift/triplelifttest/supplemental/video-format-12.json b/adapters/triplelift/triplelifttest/supplemental/video-format-12.json index 7d5987afc10..f2b55a04013 100644 --- a/adapters/triplelift/triplelifttest/supplemental/video-format-12.json +++ b/adapters/triplelift/triplelifttest/supplemental/video-format-12.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/triplelift/triplelifttest/supplemental/video-format-17.json b/adapters/triplelift/triplelifttest/supplemental/video-format-17.json index 1fb44507e6c..26dcc943af8 100644 --- a/adapters/triplelift/triplelifttest/supplemental/video-format-17.json +++ b/adapters/triplelift/triplelifttest/supplemental/video-format-17.json @@ -48,7 +48,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/triplelift_native/triplelift_native.go b/adapters/triplelift_native/triplelift_native.go index 64934ca0869..c3556cfa8bb 100644 --- a/adapters/triplelift_native/triplelift_native.go +++ b/adapters/triplelift_native/triplelift_native.go @@ -120,7 +120,8 @@ func (a *TripleliftNativeAdapter) MakeRequests(request *openrtb2.BidRequest, ext Method: "POST", Uri: ad, Body: reqJSON, - Headers: headers}) + Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(tlRequest.Imp)}) return reqs, errs } diff --git a/adapters/triplelift_native/triplelift_nativetest/exemplary/optional-params.json b/adapters/triplelift_native/triplelift_nativetest/exemplary/optional-params.json index e4c90650b20..f04f3eef557 100644 --- a/adapters/triplelift_native/triplelift_nativetest/exemplary/optional-params.json +++ b/adapters/triplelift_native/triplelift_nativetest/exemplary/optional-params.json @@ -45,7 +45,8 @@ "name": "foo" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/triplelift_native/triplelift_nativetest/supplemental/badresponseext.json b/adapters/triplelift_native/triplelift_nativetest/supplemental/badresponseext.json index c9bb90f8a02..86884d37eaa 100644 --- a/adapters/triplelift_native/triplelift_nativetest/supplemental/badresponseext.json +++ b/adapters/triplelift_native/triplelift_nativetest/supplemental/badresponseext.json @@ -37,7 +37,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/triplelift_native/triplelift_nativetest/supplemental/badstatuscode.json b/adapters/triplelift_native/triplelift_nativetest/supplemental/badstatuscode.json index 175ec038162..7b4cf0cdf19 100644 --- a/adapters/triplelift_native/triplelift_nativetest/supplemental/badstatuscode.json +++ b/adapters/triplelift_native/triplelift_nativetest/supplemental/badstatuscode.json @@ -37,7 +37,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/triplelift_native/triplelift_nativetest/supplemental/notgoodstatuscode.json b/adapters/triplelift_native/triplelift_nativetest/supplemental/notgoodstatuscode.json index ce40d36f0ff..46588f2e068 100644 --- a/adapters/triplelift_native/triplelift_nativetest/supplemental/notgoodstatuscode.json +++ b/adapters/triplelift_native/triplelift_nativetest/supplemental/notgoodstatuscode.json @@ -37,7 +37,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 302, diff --git a/adapters/ucfunnel/ucfunnel.go b/adapters/ucfunnel/ucfunnel.go index 5ff65599b30..3ea68e685b3 100644 --- a/adapters/ucfunnel/ucfunnel.go +++ b/adapters/ucfunnel/ucfunnel.go @@ -98,6 +98,7 @@ func (a *UcfunnelAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *ad Uri: uri, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errs } diff --git a/adapters/ucfunnel/ucfunnel_test.go b/adapters/ucfunnel/ucfunnel_test.go index cc81f4715e6..6e93c5e10ef 100644 --- a/adapters/ucfunnel/ucfunnel_test.go +++ b/adapters/ucfunnel/ucfunnel_test.go @@ -9,6 +9,7 @@ import ( "github.com/prebid/prebid-server/v2/adapters" "github.com/prebid/prebid-server/v2/config" "github.com/prebid/prebid-server/v2/openrtb_ext" + "github.com/stretchr/testify/assert" ) func TestMakeRequests(t *testing.T) { @@ -54,23 +55,43 @@ func TestMakeRequests(t *testing.T) { } var testCases = []struct { - in []openrtb2.BidRequest - out1 [](int) - out2 [](bool) + giveRequest openrtb2.BidRequest + wantErr bool + wantRequest bool + wantImpIDs []string }{ { - in: []openrtb2.BidRequest{internalRequest01, internalRequest02, internalRequest03}, - out1: [](int){1, 1, 0}, - out2: [](bool){false, false, true}, + giveRequest: internalRequest01, + wantErr: true, + wantRequest: false, + wantImpIDs: []string{}, + }, + { + giveRequest: internalRequest02, + wantErr: true, + wantRequest: false, + wantImpIDs: []string{imp.ID, imp2.ID, imp3.ID, imp4.ID, imp5.ID}, + }, + { + giveRequest: internalRequest03, + wantErr: false, + wantRequest: true, + wantImpIDs: []string{imp.ID, imp2.ID, imp3.ID, imp4.ID, imp5.ID}, }, } - for idx := range testCases { - for i := range testCases[idx].in { - RequestData, err := bidder.MakeRequests(&testCases[idx].in[i], nil) - if ((RequestData == nil) == testCases[idx].out2[i]) && (len(err) == testCases[idx].out1[i]) { - t.Errorf("actual = %v expected = %v", len(err), testCases[idx].out1[i]) - } + for _, tc := range testCases { + RequestData, err := bidder.MakeRequests(&tc.giveRequest, nil) + if tc.wantErr { + assert.Len(t, err, 1) + } else { + assert.Len(t, err, 0) + } + if tc.wantRequest { + assert.Len(t, RequestData, 1) + assert.ElementsMatch(t, tc.wantImpIDs, RequestData[0].ImpIDs) + } else { + assert.Len(t, RequestData, 0) } } } diff --git a/adapters/undertone/undertone.go b/adapters/undertone/undertone.go index fa960aac976..f3b48e33eab 100644 --- a/adapters/undertone/undertone.go +++ b/adapters/undertone/undertone.go @@ -62,6 +62,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: a.endpoint, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(reqCopy.Imp), } return []*adapters.RequestData{requestData}, errs diff --git a/adapters/undertone/undertonetest/exemplary/multi-imp-app-request.json b/adapters/undertone/undertonetest/exemplary/multi-imp-app-request.json index 71ad2ae199d..45d4fcf2238 100644 --- a/adapters/undertone/undertonetest/exemplary/multi-imp-app-request.json +++ b/adapters/undertone/undertonetest/exemplary/multi-imp-app-request.json @@ -135,7 +135,8 @@ "id": 4, "version": "1.0.0" } - } + }, + "impIDs":["test-imp-banner-id","test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/undertone/undertonetest/exemplary/multi-imp-site-request.json b/adapters/undertone/undertonetest/exemplary/multi-imp-site-request.json index 9e59ffbca63..d72ef0d850b 100644 --- a/adapters/undertone/undertonetest/exemplary/multi-imp-site-request.json +++ b/adapters/undertone/undertonetest/exemplary/multi-imp-site-request.json @@ -135,7 +135,8 @@ "id": 4, "version": "1.0.0" } - } + }, + "impIDs":["test-imp-banner-id","test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/undertone/undertonetest/supplemental/badrequest.json b/adapters/undertone/undertonetest/supplemental/badrequest.json index 1d432fe01c0..7e11f8b2122 100644 --- a/adapters/undertone/undertonetest/supplemental/badrequest.json +++ b/adapters/undertone/undertonetest/supplemental/badrequest.json @@ -131,7 +131,8 @@ "id": 4, "version": "1.0.0" } - } + }, + "impIDs":["test-imp-banner-id","test-imp-video-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/undertone/undertonetest/supplemental/internalerror.json b/adapters/undertone/undertonetest/supplemental/internalerror.json index c4a58ef14d5..be66986e8e8 100644 --- a/adapters/undertone/undertonetest/supplemental/internalerror.json +++ b/adapters/undertone/undertonetest/supplemental/internalerror.json @@ -131,7 +131,8 @@ "id": 4, "version": "1.0.0" } - } + }, + "impIDs":["test-imp-banner-id","test-imp-video-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/undertone/undertonetest/supplemental/nocontent.json b/adapters/undertone/undertonetest/supplemental/nocontent.json index 4999f16bb88..f68a5879d89 100644 --- a/adapters/undertone/undertonetest/supplemental/nocontent.json +++ b/adapters/undertone/undertonetest/supplemental/nocontent.json @@ -131,7 +131,8 @@ "id": 4, "version": "1.0.0" } - } + }, + "impIDs":["test-imp-banner-id","test-imp-video-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/unicorn/unicorn.go b/adapters/unicorn/unicorn.go index fb9a6069319..21864d3d492 100644 --- a/adapters/unicorn/unicorn.go +++ b/adapters/unicorn/unicorn.go @@ -98,6 +98,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Uri: a.endpoint, Body: requestJSON, Headers: getHeaders(request), + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/unicorn/unicorntest/exemplary/banner-app-no-app-publisher.json b/adapters/unicorn/unicorntest/exemplary/banner-app-no-app-publisher.json index 3ddb63d0cc2..dde1c2930f3 100644 --- a/adapters/unicorn/unicorntest/exemplary/banner-app-no-app-publisher.json +++ b/adapters/unicorn/unicorntest/exemplary/banner-app-no-app-publisher.json @@ -153,7 +153,8 @@ "user": { "gender": "O" } - } + }, + "impIDs":["29D2F33E-F865-40DA-9320-16EF77935254"] }, "mockResponse": { "url": "https://ds.uncn.jp", diff --git a/adapters/unicorn/unicorntest/exemplary/banner-app-no-mediaid.json b/adapters/unicorn/unicorntest/exemplary/banner-app-no-mediaid.json index 8e526449fc4..bc6a2f51506 100644 --- a/adapters/unicorn/unicorntest/exemplary/banner-app-no-mediaid.json +++ b/adapters/unicorn/unicorntest/exemplary/banner-app-no-mediaid.json @@ -153,7 +153,8 @@ "user": { "gender": "O" } - } + }, + "impIDs":["29D2F33E-F865-40DA-9320-16EF77935254"] }, "mockResponse": { "url": "https://ds.uncn.jp", diff --git a/adapters/unicorn/unicorntest/exemplary/banner-app-no-publisherid.json b/adapters/unicorn/unicorntest/exemplary/banner-app-no-publisherid.json index 924c2e4026b..308c3511dbf 100644 --- a/adapters/unicorn/unicorntest/exemplary/banner-app-no-publisherid.json +++ b/adapters/unicorn/unicorntest/exemplary/banner-app-no-publisherid.json @@ -154,7 +154,8 @@ "user": { "gender": "O" } - } + }, + "impIDs":["29D2F33E-F865-40DA-9320-16EF77935254"] }, "mockResponse": { "url": "https://ds.uncn.jp", diff --git a/adapters/unicorn/unicorntest/exemplary/banner-app-no-source.json b/adapters/unicorn/unicorntest/exemplary/banner-app-no-source.json index 938c9aa1f13..4b876c94518 100644 --- a/adapters/unicorn/unicorntest/exemplary/banner-app-no-source.json +++ b/adapters/unicorn/unicorntest/exemplary/banner-app-no-source.json @@ -152,7 +152,8 @@ "user": { "gender": "O" } - } + }, + "impIDs":["29D2F33E-F865-40DA-9320-16EF77935254"] }, "mockResponse": { "url": "https://ds.uncn.jp", diff --git a/adapters/unicorn/unicorntest/exemplary/banner-app-with-ip.json b/adapters/unicorn/unicorntest/exemplary/banner-app-with-ip.json index 74539fce60d..85d57cc57ec 100644 --- a/adapters/unicorn/unicorntest/exemplary/banner-app-with-ip.json +++ b/adapters/unicorn/unicorntest/exemplary/banner-app-with-ip.json @@ -160,7 +160,8 @@ "user": { "gender": "O" } - } + }, + "impIDs":["29D2F33E-F865-40DA-9320-16EF77935254"] }, "mockResponse": { "url": "https://ds.uncn.jp", diff --git a/adapters/unicorn/unicorntest/exemplary/banner-app-with-ipv6.json b/adapters/unicorn/unicorntest/exemplary/banner-app-with-ipv6.json index 8c3292447b7..d38c67d615e 100644 --- a/adapters/unicorn/unicorntest/exemplary/banner-app-with-ipv6.json +++ b/adapters/unicorn/unicorntest/exemplary/banner-app-with-ipv6.json @@ -160,7 +160,8 @@ "user": { "gender": "O" } - } + }, + "impIDs":["29D2F33E-F865-40DA-9320-16EF77935254"] }, "mockResponse": { "url": "https://ds.uncn.jp", diff --git a/adapters/unicorn/unicorntest/exemplary/banner-app-without-ext.json b/adapters/unicorn/unicorntest/exemplary/banner-app-without-ext.json index bc8ec8a6d6e..44fb55971b4 100644 --- a/adapters/unicorn/unicorntest/exemplary/banner-app-without-ext.json +++ b/adapters/unicorn/unicorntest/exemplary/banner-app-without-ext.json @@ -138,7 +138,8 @@ "user": { "gender": "O" } - } + }, + "impIDs":["29D2F33E-F865-40DA-9320-16EF77935254"] }, "mockResponse": { "url": "https://ds.uncn.jp", diff --git a/adapters/unicorn/unicorntest/exemplary/banner-app-without-placementid.json b/adapters/unicorn/unicorntest/exemplary/banner-app-without-placementid.json index 795afe20084..568369b72d4 100644 --- a/adapters/unicorn/unicorntest/exemplary/banner-app-without-placementid.json +++ b/adapters/unicorn/unicorntest/exemplary/banner-app-without-placementid.json @@ -155,7 +155,8 @@ "user": { "gender": "O" } - } + }, + "impIDs":["29D2F33E-F865-40DA-9320-16EF77935254"] }, "mockResponse": { "url": "https://ds.uncn.jp", diff --git a/adapters/unicorn/unicorntest/exemplary/banner-app.json b/adapters/unicorn/unicorntest/exemplary/banner-app.json index ca604895aa3..06d3c54143b 100644 --- a/adapters/unicorn/unicorntest/exemplary/banner-app.json +++ b/adapters/unicorn/unicorntest/exemplary/banner-app.json @@ -156,7 +156,8 @@ "user": { "gender": "O" } - } + }, + "impIDs":["29D2F33E-F865-40DA-9320-16EF77935254"] }, "mockResponse": { "url": "https://ds.uncn.jp", diff --git a/adapters/unicorn/unicorntest/exemplary/banner-app_with_fpd.json b/adapters/unicorn/unicorntest/exemplary/banner-app_with_fpd.json index 668e566490d..7108a1a9894 100644 --- a/adapters/unicorn/unicorntest/exemplary/banner-app_with_fpd.json +++ b/adapters/unicorn/unicorntest/exemplary/banner-app_with_fpd.json @@ -168,7 +168,8 @@ "user": { "gender": "O" } - } + }, + "impIDs":["29D2F33E-F865-40DA-9320-16EF77935254"] }, "mockResponse": { "url": "https://ds.uncn.jp", diff --git a/adapters/unicorn/unicorntest/exemplary/banner-app_with_no_fpd.json b/adapters/unicorn/unicorntest/exemplary/banner-app_with_no_fpd.json index c86c8f4fc98..7df2b8746d2 100644 --- a/adapters/unicorn/unicorntest/exemplary/banner-app_with_no_fpd.json +++ b/adapters/unicorn/unicorntest/exemplary/banner-app_with_no_fpd.json @@ -162,7 +162,8 @@ "user": { "gender": "O" } - } + }, + "impIDs":["29D2F33E-F865-40DA-9320-16EF77935254"] }, "mockResponse": { "url": "https://ds.uncn.jp", diff --git a/adapters/unicorn/unicorntest/supplemental/204.json b/adapters/unicorn/unicorntest/supplemental/204.json index 1c168a9defc..ece41ee7af0 100644 --- a/adapters/unicorn/unicorntest/supplemental/204.json +++ b/adapters/unicorn/unicorntest/supplemental/204.json @@ -156,7 +156,8 @@ "user": { "gender": "O" } - } + }, + "impIDs":["29D2F33E-F865-40DA-9320-16EF77935254"] }, "mockResponse": { "status": 204, diff --git a/adapters/unicorn/unicorntest/supplemental/400.json b/adapters/unicorn/unicorntest/supplemental/400.json index f41a117f15c..47d716a6e02 100644 --- a/adapters/unicorn/unicorntest/supplemental/400.json +++ b/adapters/unicorn/unicorntest/supplemental/400.json @@ -156,7 +156,8 @@ "user": { "gender": "O" } - } + }, + "impIDs":["29D2F33E-F865-40DA-9320-16EF77935254"] }, "mockResponse": { "status": 400, diff --git a/adapters/unicorn/unicorntest/supplemental/500.json b/adapters/unicorn/unicorntest/supplemental/500.json index 31b977e4256..1deb7c73091 100644 --- a/adapters/unicorn/unicorntest/supplemental/500.json +++ b/adapters/unicorn/unicorntest/supplemental/500.json @@ -156,7 +156,8 @@ "user": { "gender": "O" } - } + }, + "impIDs":["29D2F33E-F865-40DA-9320-16EF77935254"] }, "mockResponse": { "status": 500, diff --git a/adapters/unruly/unruly.go b/adapters/unruly/unruly.go index 6a9c55cc561..d8a9b04e025 100644 --- a/adapters/unruly/unruly.go +++ b/adapters/unruly/unruly.go @@ -43,6 +43,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: a.endPoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errs } } diff --git a/adapters/unruly/unrulytest/exemplary/banner-and-video-app.json b/adapters/unruly/unrulytest/exemplary/banner-and-video-app.json index 65fc74a7142..4267e08bb7c 100644 --- a/adapters/unruly/unrulytest/exemplary/banner-and-video-app.json +++ b/adapters/unruly/unrulytest/exemplary/banner-and-video-app.json @@ -150,7 +150,8 @@ "connectiontype": 3, "ifa": "AA000DFE74168477C70D291f574D344790E0BB11" } - } + }, + "impIDs":["test-imp-id","test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/unruly/unrulytest/exemplary/banner-and-video-gdpr.json b/adapters/unruly/unrulytest/exemplary/banner-and-video-gdpr.json index 8870fc30e5c..6b8b305e155 100644 --- a/adapters/unruly/unrulytest/exemplary/banner-and-video-gdpr.json +++ b/adapters/unruly/unrulytest/exemplary/banner-and-video-gdpr.json @@ -120,7 +120,8 @@ "gdpr": 1 } } - } + }, + "impIDs":["test-imp-id","test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/unruly/unrulytest/exemplary/banner-and-video-site.json b/adapters/unruly/unrulytest/exemplary/banner-and-video-site.json index bb697ff2294..f786fc6a502 100644 --- a/adapters/unruly/unrulytest/exemplary/banner-and-video-site.json +++ b/adapters/unruly/unrulytest/exemplary/banner-and-video-site.json @@ -130,7 +130,8 @@ "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.13 (KHTML, like Gecko) Version / 5.1 .7 Safari / 534.57 .2", "ip": "123.145.167.10" } - } + }, + "impIDs":["test-imp-id","test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/unruly/unrulytest/exemplary/banner-and-video.json b/adapters/unruly/unrulytest/exemplary/banner-and-video.json index 6fa7df52398..72108a16b91 100644 --- a/adapters/unruly/unrulytest/exemplary/banner-and-video.json +++ b/adapters/unruly/unrulytest/exemplary/banner-and-video.json @@ -128,7 +128,8 @@ } } ] - } + }, + "impIDs":["test-imp-id","test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/unruly/unrulytest/exemplary/simple-banner.json b/adapters/unruly/unrulytest/exemplary/simple-banner.json index 49d970f6bae..e483fe4a158 100644 --- a/adapters/unruly/unrulytest/exemplary/simple-banner.json +++ b/adapters/unruly/unrulytest/exemplary/simple-banner.json @@ -53,7 +53,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/unruly/unrulytest/exemplary/simple-video.json b/adapters/unruly/unrulytest/exemplary/simple-video.json index 1f536fe25bb..469ca8fa294 100644 --- a/adapters/unruly/unrulytest/exemplary/simple-video.json +++ b/adapters/unruly/unrulytest/exemplary/simple-video.json @@ -59,7 +59,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/unruly/unrulytest/supplemental/no-matching-impid.json b/adapters/unruly/unrulytest/supplemental/no-matching-impid.json index efabbe64cfe..6be41b833c2 100644 --- a/adapters/unruly/unrulytest/supplemental/no-matching-impid.json +++ b/adapters/unruly/unrulytest/supplemental/no-matching-impid.json @@ -60,7 +60,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/unruly/unrulytest/supplemental/status-code-204.json b/adapters/unruly/unrulytest/supplemental/status-code-204.json index 70dc8646adf..ba48fc955a6 100644 --- a/adapters/unruly/unrulytest/supplemental/status-code-204.json +++ b/adapters/unruly/unrulytest/supplemental/status-code-204.json @@ -60,7 +60,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/unruly/unrulytest/supplemental/status-code-400.json b/adapters/unruly/unrulytest/supplemental/status-code-400.json index a811d242eb9..9a0fd693c7d 100644 --- a/adapters/unruly/unrulytest/supplemental/status-code-400.json +++ b/adapters/unruly/unrulytest/supplemental/status-code-400.json @@ -73,7 +73,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/unruly/unrulytest/supplemental/status-code-401.json b/adapters/unruly/unrulytest/supplemental/status-code-401.json index 759f2b5baf8..52fe38d2155 100644 --- a/adapters/unruly/unrulytest/supplemental/status-code-401.json +++ b/adapters/unruly/unrulytest/supplemental/status-code-401.json @@ -60,7 +60,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 401 diff --git a/adapters/videobyte/videobyte.go b/adapters/videobyte/videobyte.go index 7a4bebc3a41..d9e2d4e4be2 100644 --- a/adapters/videobyte/videobyte.go +++ b/adapters/videobyte/videobyte.go @@ -49,6 +49,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: a.endpoint + "?" + getParams(impExt).Encode(), Body: body, Headers: getHeaders(request), + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }) } diff --git a/adapters/videobyte/videobytetest/exemplary/banner.json b/adapters/videobyte/videobytetest/exemplary/banner.json index ecf733cca56..b0ea5923f4b 100644 --- a/adapters/videobyte/videobytetest/exemplary/banner.json +++ b/adapters/videobyte/videobytetest/exemplary/banner.json @@ -91,7 +91,8 @@ "page": "http://example.com/page-1", "ref": "http://referer.com/page-2" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/videobyte/videobytetest/exemplary/empty-placement-network.json b/adapters/videobyte/videobytetest/exemplary/empty-placement-network.json index ddda5aa2a4c..3b67784ee08 100644 --- a/adapters/videobyte/videobytetest/exemplary/empty-placement-network.json +++ b/adapters/videobyte/videobytetest/exemplary/empty-placement-network.json @@ -95,7 +95,8 @@ "page": "http://example.com/page-1", "ref": "http://referer.com/page-2" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/videobyte/videobytetest/exemplary/empty-site-domain-ref.json b/adapters/videobyte/videobytetest/exemplary/empty-site-domain-ref.json index e10a4aa52f4..18c6f14f425 100644 --- a/adapters/videobyte/videobytetest/exemplary/empty-site-domain-ref.json +++ b/adapters/videobyte/videobytetest/exemplary/empty-site-domain-ref.json @@ -89,7 +89,8 @@ "site": { "page": "http://example.com/page-1" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/videobyte/videobytetest/exemplary/multi-format.json b/adapters/videobyte/videobytetest/exemplary/multi-format.json index cf62ad79dff..c4cebda6b88 100644 --- a/adapters/videobyte/videobytetest/exemplary/multi-format.json +++ b/adapters/videobyte/videobytetest/exemplary/multi-format.json @@ -107,7 +107,8 @@ "page": "http://example.com/page-1", "ref": "http://referer.com/page-2" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/videobyte/videobytetest/exemplary/multi-imp.json b/adapters/videobyte/videobytetest/exemplary/multi-imp.json index 547a86da6a2..dd525c4a4c6 100644 --- a/adapters/videobyte/videobytetest/exemplary/multi-imp.json +++ b/adapters/videobyte/videobytetest/exemplary/multi-imp.json @@ -117,7 +117,8 @@ "page": "http://example.com/page-1", "ref": "http://referer.com/page-2" } - } + }, + "impIDs":["test-imp-id-1"] }, "mockResponse": { "status": 200, @@ -204,7 +205,8 @@ "page": "http://example.com/page-1", "ref": "http://referer.com/page-2" } - } + }, + "impIDs":["test-imp-id-2"] }, "mockResponse": { "status": 200, diff --git a/adapters/videobyte/videobytetest/exemplary/video.json b/adapters/videobyte/videobytetest/exemplary/video.json index 7cb07808020..41dd0486afc 100644 --- a/adapters/videobyte/videobytetest/exemplary/video.json +++ b/adapters/videobyte/videobytetest/exemplary/video.json @@ -99,7 +99,8 @@ "page": "http://example.com/page-1", "ref": "http://referer.com/page-2" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/videobyte/videobytetest/supplemental/invalid-response.json b/adapters/videobyte/videobytetest/supplemental/invalid-response.json index 35bce9a732e..43a4c9f7cbf 100644 --- a/adapters/videobyte/videobytetest/supplemental/invalid-response.json +++ b/adapters/videobyte/videobytetest/supplemental/invalid-response.json @@ -99,7 +99,8 @@ "page": "http://example.com/page-1", "ref": "http://referer.com/page-2" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/videobyte/videobytetest/supplemental/status-code-bad-request.json b/adapters/videobyte/videobytetest/supplemental/status-code-bad-request.json index 09ad1bbb2fc..48eeac4f3ea 100644 --- a/adapters/videobyte/videobytetest/supplemental/status-code-bad-request.json +++ b/adapters/videobyte/videobytetest/supplemental/status-code-bad-request.json @@ -99,7 +99,8 @@ "page": "http://example.com/page-1", "ref": "http://referer.com/page-2" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/videobyte/videobytetest/supplemental/status-code-no-content.json b/adapters/videobyte/videobytetest/supplemental/status-code-no-content.json index eaa61c74877..f199fce87b9 100644 --- a/adapters/videobyte/videobytetest/supplemental/status-code-no-content.json +++ b/adapters/videobyte/videobytetest/supplemental/status-code-no-content.json @@ -99,7 +99,8 @@ "page": "http://example.com/page-1", "ref": "http://referer.com/page-2" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/videobyte/videobytetest/supplemental/status-code-other-error.json b/adapters/videobyte/videobytetest/supplemental/status-code-other-error.json index d8a1c1f4034..60218b1af8c 100644 --- a/adapters/videobyte/videobytetest/supplemental/status-code-other-error.json +++ b/adapters/videobyte/videobytetest/supplemental/status-code-other-error.json @@ -99,7 +99,8 @@ "page": "http://example.com/page-1", "ref": "http://referer.com/page-2" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 505 diff --git a/adapters/videoheroes/videoheroes.go b/adapters/videoheroes/videoheroes.go index 8999d4d0736..89bbb9c8162 100755 --- a/adapters/videoheroes/videoheroes.go +++ b/adapters/videoheroes/videoheroes.go @@ -61,6 +61,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Body: reqJSON, Uri: url, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, nil } diff --git a/adapters/videoheroes/videoheroestest/exemplary/banner-app.json b/adapters/videoheroes/videoheroestest/exemplary/banner-app.json index 17d3add92f4..f31b620b8a0 100644 --- a/adapters/videoheroes/videoheroestest/exemplary/banner-app.json +++ b/adapters/videoheroes/videoheroestest/exemplary/banner-app.json @@ -81,7 +81,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/videoheroes/videoheroestest/exemplary/banner-web.json b/adapters/videoheroes/videoheroestest/exemplary/banner-web.json index f838716340c..04f569ec267 100644 --- a/adapters/videoheroes/videoheroestest/exemplary/banner-web.json +++ b/adapters/videoheroes/videoheroestest/exemplary/banner-web.json @@ -79,7 +79,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/videoheroes/videoheroestest/exemplary/native-app.json b/adapters/videoheroes/videoheroestest/exemplary/native-app.json index cce8010940f..4eaf3d30695 100644 --- a/adapters/videoheroes/videoheroestest/exemplary/native-app.json +++ b/adapters/videoheroes/videoheroestest/exemplary/native-app.json @@ -81,7 +81,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { diff --git a/adapters/videoheroes/videoheroestest/exemplary/native-web.json b/adapters/videoheroes/videoheroestest/exemplary/native-web.json index 381bac5ce82..186056527af 100644 --- a/adapters/videoheroes/videoheroestest/exemplary/native-web.json +++ b/adapters/videoheroes/videoheroestest/exemplary/native-web.json @@ -79,7 +79,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { diff --git a/adapters/videoheroes/videoheroestest/exemplary/video-app.json b/adapters/videoheroes/videoheroestest/exemplary/video-app.json index 96dd555d585..8d8c9d61d7f 100644 --- a/adapters/videoheroes/videoheroestest/exemplary/video-app.json +++ b/adapters/videoheroes/videoheroestest/exemplary/video-app.json @@ -91,7 +91,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/videoheroes/videoheroestest/exemplary/video-web.json b/adapters/videoheroes/videoheroestest/exemplary/video-web.json index 243349a96b5..edd81595c32 100644 --- a/adapters/videoheroes/videoheroestest/exemplary/video-web.json +++ b/adapters/videoheroes/videoheroestest/exemplary/video-web.json @@ -89,7 +89,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/videoheroes/videoheroestest/supplemental/empty-seatbid-array.json b/adapters/videoheroes/videoheroestest/supplemental/empty-seatbid-array.json index 3743daeaa3f..87bca881ba5 100644 --- a/adapters/videoheroes/videoheroestest/supplemental/empty-seatbid-array.json +++ b/adapters/videoheroes/videoheroestest/supplemental/empty-seatbid-array.json @@ -89,7 +89,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/videoheroes/videoheroestest/supplemental/invalid-response.json b/adapters/videoheroes/videoheroestest/supplemental/invalid-response.json index ad9a32c0bbe..0aa7c11ead3 100644 --- a/adapters/videoheroes/videoheroestest/supplemental/invalid-response.json +++ b/adapters/videoheroes/videoheroestest/supplemental/invalid-response.json @@ -82,7 +82,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/videoheroes/videoheroestest/supplemental/status-code-bad-request.json b/adapters/videoheroes/videoheroestest/supplemental/status-code-bad-request.json index 432540e399c..0168e7f6724 100644 --- a/adapters/videoheroes/videoheroestest/supplemental/status-code-bad-request.json +++ b/adapters/videoheroes/videoheroestest/supplemental/status-code-bad-request.json @@ -92,7 +92,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/videoheroes/videoheroestest/supplemental/status-code-no-content.json b/adapters/videoheroes/videoheroestest/supplemental/status-code-no-content.json index bec17d52e8c..ec0016c2ed4 100644 --- a/adapters/videoheroes/videoheroestest/supplemental/status-code-no-content.json +++ b/adapters/videoheroes/videoheroestest/supplemental/status-code-no-content.json @@ -92,7 +92,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/videoheroes/videoheroestest/supplemental/status-code-other-error.json b/adapters/videoheroes/videoheroestest/supplemental/status-code-other-error.json index cb37a4d93f8..66eaadf9873 100644 --- a/adapters/videoheroes/videoheroestest/supplemental/status-code-other-error.json +++ b/adapters/videoheroes/videoheroestest/supplemental/status-code-other-error.json @@ -92,7 +92,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 306 diff --git a/adapters/videoheroes/videoheroestest/supplemental/status-code-service-unavailable.json b/adapters/videoheroes/videoheroestest/supplemental/status-code-service-unavailable.json index 38d14f4faaa..380809a25b1 100644 --- a/adapters/videoheroes/videoheroestest/supplemental/status-code-service-unavailable.json +++ b/adapters/videoheroes/videoheroestest/supplemental/status-code-service-unavailable.json @@ -91,7 +91,8 @@ "id": "some-user" }, "tmax": 1000 - } + }, + "impIDs":["impression-id"] }, "mockResponse": { "status": 503 diff --git a/adapters/vidoomy/vidoomy.go b/adapters/vidoomy/vidoomy.go index f96d577d719..d5538019a3e 100644 --- a/adapters/vidoomy/vidoomy.go +++ b/adapters/vidoomy/vidoomy.go @@ -47,6 +47,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: a.endpoint, Body: reqJSON, Headers: header, + ImpIDs: openrtb_ext.GetImpIDs(reqCopy.Imp), }) } diff --git a/adapters/vidoomy/vidoomytest/exemplary/multi-impression-video-banner.json b/adapters/vidoomy/vidoomytest/exemplary/multi-impression-video-banner.json index 723248ddebb..a84e7553300 100644 --- a/adapters/vidoomy/vidoomytest/exemplary/multi-impression-video-banner.json +++ b/adapters/vidoomy/vidoomytest/exemplary/multi-impression-video-banner.json @@ -84,7 +84,8 @@ "site": { "id": "test-site-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, @@ -155,7 +156,8 @@ "site": { "id": "test-site-id" } - } + }, + "impIDs":["test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/vidoomy/vidoomytest/exemplary/simple-app-banner.json b/adapters/vidoomy/vidoomytest/exemplary/simple-app-banner.json index 145524ea4d7..162a0337c78 100644 --- a/adapters/vidoomy/vidoomytest/exemplary/simple-app-banner.json +++ b/adapters/vidoomy/vidoomytest/exemplary/simple-app-banner.json @@ -68,7 +68,8 @@ "app": { "id": "test-app-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/vidoomy/vidoomytest/exemplary/simple-banner.json b/adapters/vidoomy/vidoomytest/exemplary/simple-banner.json index 36d278568dd..dbce8f808a9 100644 --- a/adapters/vidoomy/vidoomytest/exemplary/simple-banner.json +++ b/adapters/vidoomy/vidoomytest/exemplary/simple-banner.json @@ -68,7 +68,8 @@ "site": { "id": "test-site-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/vidoomy/vidoomytest/exemplary/simple-site-video.json b/adapters/vidoomy/vidoomytest/exemplary/simple-site-video.json index d2d6e028dc2..f029a2d363e 100644 --- a/adapters/vidoomy/vidoomytest/exemplary/simple-site-video.json +++ b/adapters/vidoomy/vidoomytest/exemplary/simple-site-video.json @@ -68,7 +68,8 @@ "id": "123" } } - } + }, + "impIDs":["test-imp-video-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/vidoomy/vidoomytest/supplemental/server-error.json b/adapters/vidoomy/vidoomytest/supplemental/server-error.json index ebeedb148f2..6db4981617a 100644 --- a/adapters/vidoomy/vidoomytest/supplemental/server-error.json +++ b/adapters/vidoomy/vidoomytest/supplemental/server-error.json @@ -51,7 +51,8 @@ "site": { "id": "site-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/vidoomy/vidoomytest/supplemental/server-response-wrong-impid.json b/adapters/vidoomy/vidoomytest/supplemental/server-response-wrong-impid.json index dad8f7cc866..8255a777496 100644 --- a/adapters/vidoomy/vidoomytest/supplemental/server-response-wrong-impid.json +++ b/adapters/vidoomy/vidoomytest/supplemental/server-response-wrong-impid.json @@ -68,7 +68,8 @@ "site": { "id": "site-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/vidoomy/vidoomytest/supplemental/simple-banner-no-response.json b/adapters/vidoomy/vidoomytest/supplemental/simple-banner-no-response.json index b765252fb7a..44a2bd103e3 100644 --- a/adapters/vidoomy/vidoomytest/supplemental/simple-banner-no-response.json +++ b/adapters/vidoomy/vidoomytest/supplemental/simple-banner-no-response.json @@ -70,7 +70,8 @@ "site": { "id": "test-site-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/visiblemeasures/visiblemeasures.go b/adapters/visiblemeasures/visiblemeasures.go index 4973d33d377..4a461d2d8f7 100644 --- a/adapters/visiblemeasures/visiblemeasures.go +++ b/adapters/visiblemeasures/visiblemeasures.go @@ -94,6 +94,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, nil } diff --git a/adapters/visiblemeasures/visiblemeasurestest/exemplary/endpointId.json b/adapters/visiblemeasures/visiblemeasurestest/exemplary/endpointId.json index cb77ecdaf31..c2ff58c26fa 100644 --- a/adapters/visiblemeasures/visiblemeasurestest/exemplary/endpointId.json +++ b/adapters/visiblemeasures/visiblemeasurestest/exemplary/endpointId.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/visiblemeasures/visiblemeasurestest/exemplary/simple-banner.json b/adapters/visiblemeasures/visiblemeasurestest/exemplary/simple-banner.json index 234d0619f6f..4c31d8409c9 100644 --- a/adapters/visiblemeasures/visiblemeasurestest/exemplary/simple-banner.json +++ b/adapters/visiblemeasures/visiblemeasurestest/exemplary/simple-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/visiblemeasures/visiblemeasurestest/exemplary/simple-native.json b/adapters/visiblemeasures/visiblemeasurestest/exemplary/simple-native.json index b54ef078c69..9d951f673a6 100644 --- a/adapters/visiblemeasures/visiblemeasurestest/exemplary/simple-native.json +++ b/adapters/visiblemeasures/visiblemeasurestest/exemplary/simple-native.json @@ -55,7 +55,8 @@ "ip": "123.123.123.123", "ua": "iPad" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/visiblemeasures/visiblemeasurestest/exemplary/simple-video.json b/adapters/visiblemeasures/visiblemeasurestest/exemplary/simple-video.json index 93b592a8049..98f3883174c 100644 --- a/adapters/visiblemeasures/visiblemeasurestest/exemplary/simple-video.json +++ b/adapters/visiblemeasures/visiblemeasurestest/exemplary/simple-video.json @@ -69,7 +69,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/visiblemeasures/visiblemeasurestest/exemplary/simple-web-banner.json b/adapters/visiblemeasures/visiblemeasurestest/exemplary/simple-web-banner.json index e9a30b09c0f..8d86d74e104 100644 --- a/adapters/visiblemeasures/visiblemeasurestest/exemplary/simple-web-banner.json +++ b/adapters/visiblemeasures/visiblemeasurestest/exemplary/simple-web-banner.json @@ -71,7 +71,8 @@ "ip": "123.123.123.123", "ua": "Ubuntu" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/visiblemeasures/visiblemeasurestest/supplemental/bad_media_type.json b/adapters/visiblemeasures/visiblemeasurestest/supplemental/bad_media_type.json index af38ab7c690..367f6d04112 100644 --- a/adapters/visiblemeasures/visiblemeasurestest/supplemental/bad_media_type.json +++ b/adapters/visiblemeasures/visiblemeasurestest/supplemental/bad_media_type.json @@ -44,7 +44,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/visiblemeasures/visiblemeasurestest/supplemental/bad_response.json b/adapters/visiblemeasures/visiblemeasurestest/supplemental/bad_response.json index 8c1cc3750db..c732ba92c67 100644 --- a/adapters/visiblemeasures/visiblemeasurestest/supplemental/bad_response.json +++ b/adapters/visiblemeasures/visiblemeasurestest/supplemental/bad_response.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/visiblemeasures/visiblemeasurestest/supplemental/status-204.json b/adapters/visiblemeasures/visiblemeasurestest/supplemental/status-204.json index 3e536c25a60..b2c822cb446 100644 --- a/adapters/visiblemeasures/visiblemeasurestest/supplemental/status-204.json +++ b/adapters/visiblemeasures/visiblemeasurestest/supplemental/status-204.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/visiblemeasures/visiblemeasurestest/supplemental/status-not-200.json b/adapters/visiblemeasures/visiblemeasurestest/supplemental/status-not-200.json index b60ca2ccb33..30f92ef4180 100644 --- a/adapters/visiblemeasures/visiblemeasurestest/supplemental/status-not-200.json +++ b/adapters/visiblemeasures/visiblemeasurestest/supplemental/status-not-200.json @@ -68,7 +68,8 @@ "ip": "123.123.123.123", "ifa": "sdjfksdf-dfsds-dsdg-dsgg" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 404, diff --git a/adapters/visx/visx.go b/adapters/visx/visx.go index aa1707cfff2..2cd3dfc5370 100644 --- a/adapters/visx/visx.go +++ b/adapters/visx/visx.go @@ -84,6 +84,7 @@ func (a *VisxAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapte Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), }}, errors } diff --git a/adapters/visx/visxtest/exemplary/headers_ipv4.json b/adapters/visx/visxtest/exemplary/headers_ipv4.json index 4a4da7b5673..206ba6bce9e 100644 --- a/adapters/visx/visxtest/exemplary/headers_ipv4.json +++ b/adapters/visx/visxtest/exemplary/headers_ipv4.json @@ -125,7 +125,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/visx/visxtest/exemplary/headers_ipv6.json b/adapters/visx/visxtest/exemplary/headers_ipv6.json index a3774c5e771..577d2321711 100644 --- a/adapters/visx/visxtest/exemplary/headers_ipv6.json +++ b/adapters/visx/visxtest/exemplary/headers_ipv6.json @@ -125,7 +125,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/visx/visxtest/exemplary/multitype-banner-response.json b/adapters/visx/visxtest/exemplary/multitype-banner-response.json index 0ef214dd372..2ea4030dbcc 100644 --- a/adapters/visx/visxtest/exemplary/multitype-banner-response.json +++ b/adapters/visx/visxtest/exemplary/multitype-banner-response.json @@ -133,7 +133,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/visx/visxtest/exemplary/multitype-video-response.json b/adapters/visx/visxtest/exemplary/multitype-video-response.json index 17877315fcf..9beab780bd3 100644 --- a/adapters/visx/visxtest/exemplary/multitype-video-response.json +++ b/adapters/visx/visxtest/exemplary/multitype-video-response.json @@ -133,7 +133,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/visx/visxtest/exemplary/simple-banner.json b/adapters/visx/visxtest/exemplary/simple-banner.json index 0f34e6f0325..6971f4e5f47 100644 --- a/adapters/visx/visxtest/exemplary/simple-banner.json +++ b/adapters/visx/visxtest/exemplary/simple-banner.json @@ -121,7 +121,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/visx/visxtest/exemplary/simple-video.json b/adapters/visx/visxtest/exemplary/simple-video.json index b39dad74a08..21a66f464a7 100644 --- a/adapters/visx/visxtest/exemplary/simple-video.json +++ b/adapters/visx/visxtest/exemplary/simple-video.json @@ -121,7 +121,8 @@ } } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/visx/visxtest/exemplary/with_currency.json b/adapters/visx/visxtest/exemplary/with_currency.json index ce7c92838fa..35698ed86b5 100644 --- a/adapters/visx/visxtest/exemplary/with_currency.json +++ b/adapters/visx/visxtest/exemplary/with_currency.json @@ -44,7 +44,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/visx/visxtest/supplemental/bad_response.json b/adapters/visx/visxtest/supplemental/bad_response.json index 09376f942d2..e905068b7ea 100644 --- a/adapters/visx/visxtest/supplemental/bad_response.json +++ b/adapters/visx/visxtest/supplemental/bad_response.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/visx/visxtest/supplemental/status_204.json b/adapters/visx/visxtest/supplemental/status_204.json index 7e0899d986b..b2d0b241c34 100644 --- a/adapters/visx/visxtest/supplemental/status_204.json +++ b/adapters/visx/visxtest/supplemental/status_204.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/visx/visxtest/supplemental/status_400.json b/adapters/visx/visxtest/supplemental/status_400.json index 82903ca938d..53325fe671e 100644 --- a/adapters/visx/visxtest/supplemental/status_400.json +++ b/adapters/visx/visxtest/supplemental/status_400.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/visx/visxtest/supplemental/status_418.json b/adapters/visx/visxtest/supplemental/status_418.json index 86ecf8b04a8..013697113db 100644 --- a/adapters/visx/visxtest/supplemental/status_418.json +++ b/adapters/visx/visxtest/supplemental/status_418.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 418, diff --git a/adapters/visx/visxtest/supplemental/wrong_imp_type.json b/adapters/visx/visxtest/supplemental/wrong_imp_type.json index 659a0204f6e..dd3ce10f141 100644 --- a/adapters/visx/visxtest/supplemental/wrong_imp_type.json +++ b/adapters/visx/visxtest/supplemental/wrong_imp_type.json @@ -38,7 +38,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/visx/visxtest/supplemental/wrong_impid.json b/adapters/visx/visxtest/supplemental/wrong_impid.json index ac18ac0719f..6052ac26254 100644 --- a/adapters/visx/visxtest/supplemental/wrong_impid.json +++ b/adapters/visx/visxtest/supplemental/wrong_impid.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/vox/vox.go b/adapters/vox/vox.go index 73e60b31191..1a04d1fbf72 100644 --- a/adapters/vox/vox.go +++ b/adapters/vox/vox.go @@ -31,6 +31,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Method: "POST", Uri: a.endpoint, Body: requestJSON, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/vox/voxtest/exemplary/banner.json b/adapters/vox/voxtest/exemplary/banner.json index 898fcea4826..b9d990cbef3 100644 --- a/adapters/vox/voxtest/exemplary/banner.json +++ b/adapters/vox/voxtest/exemplary/banner.json @@ -42,7 +42,8 @@ } ], "cur": [ "USD" ] - } + }, + "impIDs":["8a7510f9-0ca1-44c4-a8c6-1ce639b5eef9"] }, "mockResponse": { "status": 200, diff --git a/adapters/vox/voxtest/exemplary/video.json b/adapters/vox/voxtest/exemplary/video.json index 37464da1aec..f0d553f2c84 100644 --- a/adapters/vox/voxtest/exemplary/video.json +++ b/adapters/vox/voxtest/exemplary/video.json @@ -49,7 +49,8 @@ } } }] - } + }, + "impIDs":["d190d6f3-5264-4df5-91b2-8a9c72cbeb6a"] }, "mockResponse": { diff --git a/adapters/vox/voxtest/supplemental/response_204_to_nocontent.json b/adapters/vox/voxtest/supplemental/response_204_to_nocontent.json index 0a49b85d612..62a31b5691b 100644 --- a/adapters/vox/voxtest/supplemental/response_204_to_nocontent.json +++ b/adapters/vox/voxtest/supplemental/response_204_to_nocontent.json @@ -31,7 +31,8 @@ } } }] - } + }, + "impIDs":["Impression id #1"] }, "mockResponse": { diff --git a/adapters/vox/voxtest/supplemental/response_500_to_error.json b/adapters/vox/voxtest/supplemental/response_500_to_error.json index f245ef45c99..53bfadaedea 100644 --- a/adapters/vox/voxtest/supplemental/response_500_to_error.json +++ b/adapters/vox/voxtest/supplemental/response_500_to_error.json @@ -37,7 +37,8 @@ } } }] - } + }, + "impIDs":["Impression id #4"] }, "mockResponse": { diff --git a/adapters/vrtcal/vrtcal.go b/adapters/vrtcal/vrtcal.go index f97d555f363..0f6f27eb23b 100644 --- a/adapters/vrtcal/vrtcal.go +++ b/adapters/vrtcal/vrtcal.go @@ -34,6 +34,7 @@ func (a *VrtcalAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adap Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } adapterRequests = append(adapterRequests, &reqData) diff --git a/adapters/vrtcal/vrtcaltest/exemplary/simple-banner.json b/adapters/vrtcal/vrtcaltest/exemplary/simple-banner.json index 27682f7ee21..0f403c1557d 100644 --- a/adapters/vrtcal/vrtcaltest/exemplary/simple-banner.json +++ b/adapters/vrtcal/vrtcaltest/exemplary/simple-banner.json @@ -51,7 +51,8 @@ "app": { "id": "fake-app-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/vrtcal/vrtcaltest/exemplary/simple-native.json b/adapters/vrtcal/vrtcaltest/exemplary/simple-native.json index 3c63914c3a6..848631a780b 100644 --- a/adapters/vrtcal/vrtcaltest/exemplary/simple-native.json +++ b/adapters/vrtcal/vrtcaltest/exemplary/simple-native.json @@ -43,7 +43,8 @@ "app": { "id": "fake-app-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/vrtcal/vrtcaltest/exemplary/simple-video.json b/adapters/vrtcal/vrtcaltest/exemplary/simple-video.json index 2baaf1aa4ba..b2a94d5de51 100644 --- a/adapters/vrtcal/vrtcaltest/exemplary/simple-video.json +++ b/adapters/vrtcal/vrtcaltest/exemplary/simple-video.json @@ -47,7 +47,8 @@ "app": { "id": "fake-app-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/vrtcal/vrtcaltest/exemplary/web-simple-banner.json b/adapters/vrtcal/vrtcaltest/exemplary/web-simple-banner.json index eb7d2310d63..704b0afa5e3 100644 --- a/adapters/vrtcal/vrtcaltest/exemplary/web-simple-banner.json +++ b/adapters/vrtcal/vrtcaltest/exemplary/web-simple-banner.json @@ -53,7 +53,8 @@ "id": "fake-site-id", "page": "http://www.vrtcal.com" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/vrtcal/vrtcaltest/exemplary/web-simple-native.json b/adapters/vrtcal/vrtcaltest/exemplary/web-simple-native.json index 6b416ab0726..4790d0c6730 100644 --- a/adapters/vrtcal/vrtcaltest/exemplary/web-simple-native.json +++ b/adapters/vrtcal/vrtcaltest/exemplary/web-simple-native.json @@ -44,7 +44,8 @@ "id": "fake-site-id", "page": "http://www.vrtcal.com" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/vrtcal/vrtcaltest/exemplary/web-simple-video.json b/adapters/vrtcal/vrtcaltest/exemplary/web-simple-video.json index 96ffd7099d1..48ed6d7bbad 100644 --- a/adapters/vrtcal/vrtcaltest/exemplary/web-simple-video.json +++ b/adapters/vrtcal/vrtcaltest/exemplary/web-simple-video.json @@ -49,7 +49,8 @@ "id": "fake-site-id", "page": "http://www.vrtcal.com" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/vrtcal/vrtcaltest/supplemental/unsupported_return_type.json b/adapters/vrtcal/vrtcaltest/supplemental/unsupported_return_type.json index e2fc18f373e..2f6e0fed01e 100644 --- a/adapters/vrtcal/vrtcaltest/supplemental/unsupported_return_type.json +++ b/adapters/vrtcal/vrtcaltest/supplemental/unsupported_return_type.json @@ -51,7 +51,8 @@ "app": { "id": "fake-app-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/xeworks/xeworks.go b/adapters/xeworks/xeworks.go index ab1d68ca543..458087ece23 100644 --- a/adapters/xeworks/xeworks.go +++ b/adapters/xeworks/xeworks.go @@ -91,6 +91,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Body: requestJSON, Uri: endpoint, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(requestCopy.Imp), } requests = append(requests, request) diff --git a/adapters/xeworks/xeworkstest/exemplary/banner.json b/adapters/xeworks/xeworkstest/exemplary/banner.json index 657c36c6d58..9341244a104 100644 --- a/adapters/xeworks/xeworkstest/exemplary/banner.json +++ b/adapters/xeworks/xeworkstest/exemplary/banner.json @@ -103,7 +103,8 @@ "id": "pubid" } } - } + }, + "impIDs":["1"] }, "mockResponse": { "status": 200, @@ -183,7 +184,8 @@ "id": "pubid" } } - } + }, + "impIDs":["2"] }, "mockResponse": { "status": 200, diff --git a/adapters/xeworks/xeworkstest/exemplary/native.json b/adapters/xeworks/xeworkstest/exemplary/native.json index 9c8eb6a1dbc..137f0d2befb 100644 --- a/adapters/xeworks/xeworkstest/exemplary/native.json +++ b/adapters/xeworks/xeworkstest/exemplary/native.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/xeworks/xeworkstest/exemplary/video.json b/adapters/xeworks/xeworkstest/exemplary/video.json index 5f509baad32..730104a22b7 100644 --- a/adapters/xeworks/xeworkstest/exemplary/video.json +++ b/adapters/xeworks/xeworkstest/exemplary/video.json @@ -128,7 +128,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/xeworks/xeworkstest/supplemental/bad-response.json b/adapters/xeworks/xeworkstest/supplemental/bad-response.json index 4f8b9bd2d79..e91040e9799 100644 --- a/adapters/xeworks/xeworkstest/supplemental/bad-response.json +++ b/adapters/xeworks/xeworkstest/supplemental/bad-response.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/xeworks/xeworkstest/supplemental/empty-mediatype.json b/adapters/xeworks/xeworkstest/supplemental/empty-mediatype.json index c2d62d09c11..cd5dab395cb 100644 --- a/adapters/xeworks/xeworkstest/supplemental/empty-mediatype.json +++ b/adapters/xeworks/xeworkstest/supplemental/empty-mediatype.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/xeworks/xeworkstest/supplemental/empty-seatbid-0-bid.json b/adapters/xeworks/xeworkstest/supplemental/empty-seatbid-0-bid.json index 98bcbbeb8df..e37da8ccdde 100644 --- a/adapters/xeworks/xeworkstest/supplemental/empty-seatbid-0-bid.json +++ b/adapters/xeworks/xeworkstest/supplemental/empty-seatbid-0-bid.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/xeworks/xeworkstest/supplemental/empty-seatbid.json b/adapters/xeworks/xeworkstest/supplemental/empty-seatbid.json index d522e8ce292..eb1737517b0 100644 --- a/adapters/xeworks/xeworkstest/supplemental/empty-seatbid.json +++ b/adapters/xeworks/xeworkstest/supplemental/empty-seatbid.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/xeworks/xeworkstest/supplemental/invalid-mediatype.json b/adapters/xeworks/xeworkstest/supplemental/invalid-mediatype.json index 39e0cd236e0..aa61af551a0 100644 --- a/adapters/xeworks/xeworkstest/supplemental/invalid-mediatype.json +++ b/adapters/xeworks/xeworkstest/supplemental/invalid-mediatype.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 200, diff --git a/adapters/xeworks/xeworkstest/supplemental/status-204.json b/adapters/xeworks/xeworkstest/supplemental/status-204.json index 72dbf94dfc3..9252b90fd5e 100644 --- a/adapters/xeworks/xeworkstest/supplemental/status-204.json +++ b/adapters/xeworks/xeworkstest/supplemental/status-204.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 204, diff --git a/adapters/xeworks/xeworkstest/supplemental/status-400.json b/adapters/xeworks/xeworkstest/supplemental/status-400.json index 220746084e6..614a9897e18 100644 --- a/adapters/xeworks/xeworkstest/supplemental/status-400.json +++ b/adapters/xeworks/xeworkstest/supplemental/status-400.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 400, diff --git a/adapters/xeworks/xeworkstest/supplemental/status-503.json b/adapters/xeworks/xeworkstest/supplemental/status-503.json index 00b24dc97b0..dcffcacde5d 100644 --- a/adapters/xeworks/xeworkstest/supplemental/status-503.json +++ b/adapters/xeworks/xeworkstest/supplemental/status-503.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 503 diff --git a/adapters/xeworks/xeworkstest/supplemental/unexpected-status.json b/adapters/xeworks/xeworkstest/supplemental/unexpected-status.json index fd1b4f9d3f0..553d4bdfa68 100644 --- a/adapters/xeworks/xeworkstest/supplemental/unexpected-status.json +++ b/adapters/xeworks/xeworkstest/supplemental/unexpected-status.json @@ -88,7 +88,8 @@ "id": "pubid" } } - } + }, + "impIDs":["id"] }, "mockResponse": { "status": 403, diff --git a/adapters/yahooAds/yahooAds.go b/adapters/yahooAds/yahooAds.go index e99cf2e9f74..4d1ebdbbf52 100644 --- a/adapters/yahooAds/yahooAds.go +++ b/adapters/yahooAds/yahooAds.go @@ -81,6 +81,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Uri: a.URI, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(reqCopy.Imp), }) } diff --git a/adapters/yahooAds/yahooAdstest/exemplary/simple-app-banner.json b/adapters/yahooAds/yahooAdstest/exemplary/simple-app-banner.json index 7ad41161915..6b61861d9b7 100644 --- a/adapters/yahooAds/yahooAdstest/exemplary/simple-app-banner.json +++ b/adapters/yahooAds/yahooAdstest/exemplary/simple-app-banner.json @@ -69,7 +69,8 @@ "app": { "id": "dcn1" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yahooAds/yahooAdstest/exemplary/simple-banner.json b/adapters/yahooAds/yahooAdstest/exemplary/simple-banner.json index 7036664d4ad..3d0b4a37b0d 100644 --- a/adapters/yahooAds/yahooAdstest/exemplary/simple-banner.json +++ b/adapters/yahooAds/yahooAdstest/exemplary/simple-banner.json @@ -69,7 +69,8 @@ "site": { "id": "dcn1" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yahooAds/yahooAdstest/exemplary/simple-video.json b/adapters/yahooAds/yahooAdstest/exemplary/simple-video.json index ebf7af93d53..9f9d188d001 100644 --- a/adapters/yahooAds/yahooAdstest/exemplary/simple-video.json +++ b/adapters/yahooAds/yahooAdstest/exemplary/simple-video.json @@ -84,7 +84,8 @@ "id": "1" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yahooAds/yahooAdstest/supplemental/non-supported-requests-bids-ignored.json b/adapters/yahooAds/yahooAdstest/supplemental/non-supported-requests-bids-ignored.json index c0d77fa496b..5e0820761d6 100644 --- a/adapters/yahooAds/yahooAdstest/supplemental/non-supported-requests-bids-ignored.json +++ b/adapters/yahooAds/yahooAdstest/supplemental/non-supported-requests-bids-ignored.json @@ -66,7 +66,8 @@ "site": { "id": "dcn1" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yahooAds/yahooAdstest/supplemental/server-error.json b/adapters/yahooAds/yahooAdstest/supplemental/server-error.json index e933d9e589e..15da2afe3b0 100644 --- a/adapters/yahooAds/yahooAdstest/supplemental/server-error.json +++ b/adapters/yahooAds/yahooAdstest/supplemental/server-error.json @@ -54,7 +54,8 @@ "site": { "id": "dcn1" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/yahooAds/yahooAdstest/supplemental/server-response-wrong-impid.json b/adapters/yahooAds/yahooAdstest/supplemental/server-response-wrong-impid.json index f40819497a8..a831dba64b2 100644 --- a/adapters/yahooAds/yahooAdstest/supplemental/server-response-wrong-impid.json +++ b/adapters/yahooAds/yahooAdstest/supplemental/server-response-wrong-impid.json @@ -68,7 +68,8 @@ "site": { "id": "dcn1" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yahooAds/yahooAdstest/supplemental/simple-banner-gpp-overwrite.json b/adapters/yahooAds/yahooAdstest/supplemental/simple-banner-gpp-overwrite.json index 94c895b996d..950796692a4 100644 --- a/adapters/yahooAds/yahooAdstest/supplemental/simple-banner-gpp-overwrite.json +++ b/adapters/yahooAds/yahooAdstest/supplemental/simple-banner-gpp-overwrite.json @@ -84,7 +84,8 @@ "param1": "val1" } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yahooAds/yahooAdstest/supplemental/simple-banner-gpp.json b/adapters/yahooAds/yahooAdstest/supplemental/simple-banner-gpp.json index 3d5aff6c531..73012144fb2 100644 --- a/adapters/yahooAds/yahooAdstest/supplemental/simple-banner-gpp.json +++ b/adapters/yahooAds/yahooAdstest/supplemental/simple-banner-gpp.json @@ -79,7 +79,8 @@ "gpp_sid": [6] } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yahooAds/yahooAdstest/supplemental/simple-banner-ignore-width-when-height-missing.json b/adapters/yahooAds/yahooAdstest/supplemental/simple-banner-ignore-width-when-height-missing.json index 1206005970c..513e37f9f14 100644 --- a/adapters/yahooAds/yahooAdstest/supplemental/simple-banner-ignore-width-when-height-missing.json +++ b/adapters/yahooAds/yahooAdstest/supplemental/simple-banner-ignore-width-when-height-missing.json @@ -70,7 +70,8 @@ "site": { "id": "dcn1" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yandex/yandex.go b/adapters/yandex/yandex.go index 6d5dae82224..7d40dc85a7a 100644 --- a/adapters/yandex/yandex.go +++ b/adapters/yandex/yandex.go @@ -88,6 +88,7 @@ func (a *adapter) MakeRequests(requestData *openrtb2.BidRequest, requestInfo *ad Uri: resolvedUrl, Body: requestBody, Headers: getHeaders(&splittedRequestData), + ImpIDs: openrtb_ext.GetImpIDs(splittedRequestData.Imp), }) } diff --git a/adapters/yandex/yandextest/exemplary/native.json b/adapters/yandex/yandextest/exemplary/native.json index f9b3888593b..880e4ca7b01 100644 --- a/adapters/yandex/yandextest/exemplary/native.json +++ b/adapters/yandex/yandextest/exemplary/native.json @@ -85,7 +85,8 @@ "language": "EN" }, "tmax": 500 - } + }, + "impIDs":["imp_id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yandex/yandextest/exemplary/simple-banner.json b/adapters/yandex/yandextest/exemplary/simple-banner.json index 477e4ef5848..aaa30ae901c 100644 --- a/adapters/yandex/yandextest/exemplary/simple-banner.json +++ b/adapters/yandex/yandextest/exemplary/simple-banner.json @@ -85,7 +85,8 @@ "language": "EN" }, "tmax": 500 - } + }, + "impIDs":["imp_id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yandex/yandextest/supplemental/multiple-imps-some-malformed.json b/adapters/yandex/yandextest/supplemental/multiple-imps-some-malformed.json index 299f4013392..daffeb3addd 100644 --- a/adapters/yandex/yandextest/supplemental/multiple-imps-some-malformed.json +++ b/adapters/yandex/yandextest/supplemental/multiple-imps-some-malformed.json @@ -91,7 +91,8 @@ "ip": "127.0.0.1" }, "tmax": 500 - } + }, + "impIDs":["imp_id1"] }, "mockResponse": { "status": 200, diff --git a/adapters/yandex/yandextest/supplemental/multiple-imps.json b/adapters/yandex/yandextest/supplemental/multiple-imps.json index b83f51ebc3c..34d105fd527 100644 --- a/adapters/yandex/yandextest/supplemental/multiple-imps.json +++ b/adapters/yandex/yandextest/supplemental/multiple-imps.json @@ -94,7 +94,8 @@ "ip": "127.0.0.1" }, "tmax": 500 - } + }, + "impIDs":["imp_id1"] }, "mockResponse": { "status": 200, @@ -171,7 +172,8 @@ "ip": "127.0.0.1" }, "tmax": 500 - } + }, + "impIDs":["imp_id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/yandex/yandextest/supplemental/simple-banner-empty-response.json b/adapters/yandex/yandextest/supplemental/simple-banner-empty-response.json index ffc067ebe7a..77aec133069 100644 --- a/adapters/yandex/yandextest/supplemental/simple-banner-empty-response.json +++ b/adapters/yandex/yandextest/supplemental/simple-banner-empty-response.json @@ -82,7 +82,8 @@ "ip": "127.0.0.1" }, "tmax": 500 - } + }, + "impIDs":["imp_id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yandex/yandextest/supplemental/simple-banner-empty-seatbid.json b/adapters/yandex/yandextest/supplemental/simple-banner-empty-seatbid.json index eafb27a41ca..b3e5e352141 100644 --- a/adapters/yandex/yandextest/supplemental/simple-banner-empty-seatbid.json +++ b/adapters/yandex/yandextest/supplemental/simple-banner-empty-seatbid.json @@ -82,7 +82,8 @@ "ip": "127.0.0.1" }, "tmax": 500 - } + }, + "impIDs":["imp_id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yandex/yandextest/supplemental/simple-banner-sizes.json b/adapters/yandex/yandextest/supplemental/simple-banner-sizes.json index 23a142887db..66006513a4b 100644 --- a/adapters/yandex/yandextest/supplemental/simple-banner-sizes.json +++ b/adapters/yandex/yandextest/supplemental/simple-banner-sizes.json @@ -162,7 +162,8 @@ "ip": "127.0.0.1" }, "tmax": 500 - } + }, + "impIDs":["no_size_but_valid_formats"] }, "mockResponse": { "status": 200, diff --git a/adapters/yandex/yandextest/supplemental/simple-banner-status-400.json b/adapters/yandex/yandextest/supplemental/simple-banner-status-400.json index 78d2813bb4f..ed45e68653c 100644 --- a/adapters/yandex/yandextest/supplemental/simple-banner-status-400.json +++ b/adapters/yandex/yandextest/supplemental/simple-banner-status-400.json @@ -82,7 +82,8 @@ "ip": "127.0.0.1" }, "tmax": 500 - } + }, + "impIDs":["imp_id"] }, "mockResponse": { "status": 400, diff --git a/adapters/yandex/yandextest/supplemental/simple-banner-unknown-imp.json b/adapters/yandex/yandextest/supplemental/simple-banner-unknown-imp.json index 5c94be30605..991870a7025 100644 --- a/adapters/yandex/yandextest/supplemental/simple-banner-unknown-imp.json +++ b/adapters/yandex/yandextest/supplemental/simple-banner-unknown-imp.json @@ -82,7 +82,8 @@ "ip": "127.0.0.1" }, "tmax": 500 - } + }, + "impIDs":["imp_id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yandex/yandextest/supplemental/simple-banner-unparsable-body.json b/adapters/yandex/yandextest/supplemental/simple-banner-unparsable-body.json index 0adfdb40acf..75c06a5f8de 100644 --- a/adapters/yandex/yandextest/supplemental/simple-banner-unparsable-body.json +++ b/adapters/yandex/yandextest/supplemental/simple-banner-unparsable-body.json @@ -82,7 +82,8 @@ "ip": "127.0.0.1" }, "tmax": 500 - } + }, + "impIDs":["imp_id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yeahmobi/yeahmobi.go b/adapters/yeahmobi/yeahmobi.go index 1c14d997684..6d351d85ebc 100644 --- a/adapters/yeahmobi/yeahmobi.go +++ b/adapters/yeahmobi/yeahmobi.go @@ -70,6 +70,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: endPoint, Body: reqBody, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, errs } diff --git a/adapters/yeahmobi/yeahmobitest/exemplary/no-bid.json b/adapters/yeahmobi/yeahmobitest/exemplary/no-bid.json index 723cc40e664..86cc9ebe00d 100644 --- a/adapters/yeahmobi/yeahmobitest/exemplary/no-bid.json +++ b/adapters/yeahmobi/yeahmobitest/exemplary/no-bid.json @@ -37,7 +37,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/yeahmobi/yeahmobitest/exemplary/simple-banner.json b/adapters/yeahmobi/yeahmobitest/exemplary/simple-banner.json index 7499a7874e7..540214bb608 100644 --- a/adapters/yeahmobi/yeahmobitest/exemplary/simple-banner.json +++ b/adapters/yeahmobi/yeahmobitest/exemplary/simple-banner.json @@ -37,7 +37,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yeahmobi/yeahmobitest/exemplary/simple-native-1.1.json b/adapters/yeahmobi/yeahmobitest/exemplary/simple-native-1.1.json index 7e93eb68246..9224b7cb0dc 100644 --- a/adapters/yeahmobi/yeahmobitest/exemplary/simple-native-1.1.json +++ b/adapters/yeahmobi/yeahmobitest/exemplary/simple-native-1.1.json @@ -38,7 +38,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yeahmobi/yeahmobitest/exemplary/simple-native.json b/adapters/yeahmobi/yeahmobitest/exemplary/simple-native.json index 894e835bc07..406dbff268e 100644 --- a/adapters/yeahmobi/yeahmobitest/exemplary/simple-native.json +++ b/adapters/yeahmobi/yeahmobitest/exemplary/simple-native.json @@ -38,7 +38,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yeahmobi/yeahmobitest/exemplary/simple-video.json b/adapters/yeahmobi/yeahmobitest/exemplary/simple-video.json index b040d31b5f6..cda8ebe460f 100644 --- a/adapters/yeahmobi/yeahmobitest/exemplary/simple-video.json +++ b/adapters/yeahmobi/yeahmobitest/exemplary/simple-video.json @@ -45,7 +45,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yeahmobi/yeahmobitest/supplemental/bad_response.json b/adapters/yeahmobi/yeahmobitest/supplemental/bad_response.json index 0d77e5af93a..2fc375532de 100644 --- a/adapters/yeahmobi/yeahmobitest/supplemental/bad_response.json +++ b/adapters/yeahmobi/yeahmobitest/supplemental/bad_response.json @@ -37,7 +37,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yeahmobi/yeahmobitest/supplemental/status_400.json b/adapters/yeahmobi/yeahmobitest/supplemental/status_400.json index 74bb869218c..e337f6f21e8 100644 --- a/adapters/yeahmobi/yeahmobitest/supplemental/status_400.json +++ b/adapters/yeahmobi/yeahmobitest/supplemental/status_400.json @@ -37,7 +37,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/yeahmobi/yeahmobitest/supplemental/status_500.json b/adapters/yeahmobi/yeahmobitest/supplemental/status_500.json index 2d3264de897..434b11e1aad 100644 --- a/adapters/yeahmobi/yeahmobitest/supplemental/status_500.json +++ b/adapters/yeahmobi/yeahmobitest/supplemental/status_500.json @@ -37,7 +37,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/adapters/yieldlab/yieldlab.go b/adapters/yieldlab/yieldlab.go index ed7c283ead9..72041659192 100644 --- a/adapters/yieldlab/yieldlab.go +++ b/adapters/yieldlab/yieldlab.go @@ -261,6 +261,7 @@ func (a *YieldlabAdapter) MakeRequests(request *openrtb2.BidRequest, _ *adapters Method: "GET", Uri: bidURL, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, nil } diff --git a/adapters/yieldlab/yieldlabtest/exemplary/banner.json b/adapters/yieldlab/yieldlabtest/exemplary/banner.json index fea8b3da6ee..96fdc1410a6 100644 --- a/adapters/yieldlab/yieldlabtest/exemplary/banner.json +++ b/adapters/yieldlab/yieldlabtest/exemplary/banner.json @@ -73,7 +73,8 @@ "169.254.13.37" ] }, - "uri": "https://ad.yieldlab.net/testing/12345?content=json&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&sizes=12345%3A728x90%7C800x300&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads" + "uri": "https://ad.yieldlab.net/testing/12345?content=json&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&sizes=12345%3A728x90%7C800x300&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldlab/yieldlabtest/exemplary/dsa.json b/adapters/yieldlab/yieldlabtest/exemplary/dsa.json index 0c815835797..283f2ff813b 100644 --- a/adapters/yieldlab/yieldlabtest/exemplary/dsa.json +++ b/adapters/yieldlab/yieldlabtest/exemplary/dsa.json @@ -97,7 +97,8 @@ "169.254.13.37" ] }, - "uri": "https://ad.yieldlab.net/testing/12345?consent=BOlOrv1OlOr2EAAABADECg-AAAApp7v______9______9uz_Ov_v_f__33e8__9v_l_7_-___u_-3zd4u_1vf99yfm1-7etr3tp_87ues2_Xur__79__3z3_9phP78k89r7337Ew-v02&content=json&dsadatatopub=2&dsapubrender=0&dsarequired=3&dsatransparency=platform1domain.com~1~~SSP2domain.com~1_2&gdpr=1&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&sizes=12345%3A728x90&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads" + "uri": "https://ad.yieldlab.net/testing/12345?consent=BOlOrv1OlOr2EAAABADECg-AAAApp7v______9______9uz_Ov_v_f__33e8__9v_l_7_-___u_-3zd4u_1vf99yfm1-7etr3tp_87ues2_Xur__79__3z3_9phP78k89r7337Ew-v02&content=json&dsadatatopub=2&dsapubrender=0&dsarequired=3&dsatransparency=platform1domain.com~1~~SSP2domain.com~1_2&gdpr=1&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&sizes=12345%3A728x90&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads", + "impIDs": ["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldlab/yieldlabtest/exemplary/gdpr.json b/adapters/yieldlab/yieldlabtest/exemplary/gdpr.json index 14e708289aa..31f3ca39bab 100644 --- a/adapters/yieldlab/yieldlabtest/exemplary/gdpr.json +++ b/adapters/yieldlab/yieldlabtest/exemplary/gdpr.json @@ -77,7 +77,8 @@ "169.254.13.37" ] }, - "uri": "https://ad.yieldlab.net/testing/12345?consent=BOlOrv1OlOr2EAAABADECg-AAAApp7v______9______9uz_Ov_v_f__33e8__9v_l_7_-___u_-3zd4u_1vf99yfm1-7etr3tp_87ues2_Xur__79__3z3_9phP78k89r7337Ew-v02&content=json&gdpr=1&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&sizes=12345%3A728x90&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads" + "uri": "https://ad.yieldlab.net/testing/12345?consent=BOlOrv1OlOr2EAAABADECg-AAAApp7v______9______9uz_Ov_v_f__33e8__9v_l_7_-___u_-3zd4u_1vf99yfm1-7etr3tp_87ues2_Xur__79__3z3_9phP78k89r7337Ew-v02&content=json&gdpr=1&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&sizes=12345%3A728x90&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldlab/yieldlabtest/exemplary/mixed_types.json b/adapters/yieldlab/yieldlabtest/exemplary/mixed_types.json index 00f2185262f..44fa57851c6 100644 --- a/adapters/yieldlab/yieldlabtest/exemplary/mixed_types.json +++ b/adapters/yieldlab/yieldlabtest/exemplary/mixed_types.json @@ -98,7 +98,8 @@ "169.254.13.37" ] }, - "uri": "https://ad.yieldlab.net/testing/12345?content=json&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads" + "uri": "https://ad.yieldlab.net/testing/12345?content=json&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldlab/yieldlabtest/exemplary/multiple_impressions.json b/adapters/yieldlab/yieldlabtest/exemplary/multiple_impressions.json index ead4be0de5a..1518e888fab 100644 --- a/adapters/yieldlab/yieldlabtest/exemplary/multiple_impressions.json +++ b/adapters/yieldlab/yieldlabtest/exemplary/multiple_impressions.json @@ -91,7 +91,8 @@ "169.254.13.37" ] }, - "uri": "https://ad.yieldlab.net/testing/12345,67890?content=json&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&sizes=12345%3A728x90%2C67890%3A300x250&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads" + "uri": "https://ad.yieldlab.net/testing/12345,67890?content=json&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&sizes=12345%3A728x90%2C67890%3A300x250&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads", + "impIDs":["test-imp-id","test-imp-id2"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldlab/yieldlabtest/exemplary/schain.json b/adapters/yieldlab/yieldlabtest/exemplary/schain.json index e3e7230d4d3..878a9fa4e17 100644 --- a/adapters/yieldlab/yieldlabtest/exemplary/schain.json +++ b/adapters/yieldlab/yieldlabtest/exemplary/schain.json @@ -93,7 +93,8 @@ "169.254.13.37" ] }, - "uri": "https://ad.yieldlab.net/testing/12345?content=json&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&schain=1.0%2C1%21exchange1.com%2C1234%2521abcd%2C1%2Cbid%2Brequest%2526%25251%2Cpublisher%2Cpublisher.com%2C%257B%2522freeFormData%2522%253A1%252C%2522nested%2522%253A%257B%2522isTrue%2522%253Atrue%257D%257D&sizes=12345%3A728x90&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads" + "uri": "https://ad.yieldlab.net/testing/12345?content=json&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&schain=1.0%2C1%21exchange1.com%2C1234%2521abcd%2C1%2Cbid%2Brequest%2526%25251%2Cpublisher%2Cpublisher.com%2C%257B%2522freeFormData%2522%253A1%252C%2522nested%2522%253A%257B%2522isTrue%2522%253Atrue%257D%257D&sizes=12345%3A728x90&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldlab/yieldlabtest/exemplary/schain_multiple_nodes.json b/adapters/yieldlab/yieldlabtest/exemplary/schain_multiple_nodes.json index d976898f29f..af81b32a620 100644 --- a/adapters/yieldlab/yieldlabtest/exemplary/schain_multiple_nodes.json +++ b/adapters/yieldlab/yieldlabtest/exemplary/schain_multiple_nodes.json @@ -91,7 +91,8 @@ "169.254.13.37" ] }, - "uri": "https://ad.yieldlab.net/testing/12345?content=json&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&schain=1.0%2C1%21exchange1.com%2C1234%2C1%2C%2C%2C%2C%2522text%2522%21exchange2.com%2Cabcd%2C1%2C%2C%2C%2C1&sizes=12345%3A728x90&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads" + "uri": "https://ad.yieldlab.net/testing/12345?content=json&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&schain=1.0%2C1%21exchange1.com%2C1234%2C1%2C%2C%2C%2C%2522text%2522%21exchange2.com%2Cabcd%2C1%2C%2C%2C%2C1&sizes=12345%3A728x90&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldlab/yieldlabtest/exemplary/video.json b/adapters/yieldlab/yieldlabtest/exemplary/video.json index 3d545a419bb..b9d10123f78 100644 --- a/adapters/yieldlab/yieldlabtest/exemplary/video.json +++ b/adapters/yieldlab/yieldlabtest/exemplary/video.json @@ -86,7 +86,8 @@ "169.254.13.37" ] }, - "uri": "https://ad.yieldlab.net/testing/12345?content=json&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads" + "uri": "https://ad.yieldlab.net/testing/12345?content=json&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldlab/yieldlabtest/exemplary/video_app.json b/adapters/yieldlab/yieldlabtest/exemplary/video_app.json index d9980e221a3..8dbc5f97f64 100644 --- a/adapters/yieldlab/yieldlabtest/exemplary/video_app.json +++ b/adapters/yieldlab/yieldlabtest/exemplary/video_app.json @@ -86,7 +86,8 @@ "169.254.13.37" ] }, - "uri": "https://ad.yieldlab.net/testing/12345?content=json&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pubappname=Awesome+App&pubbundlename=com.app.awesome&pvid=true&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads" + "uri": "https://ad.yieldlab.net/testing/12345?content=json&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pubappname=Awesome+App&pubbundlename=com.app.awesome&pvid=true&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads", + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldlab/yieldlabtest/supplemental/dsa_empty.json b/adapters/yieldlab/yieldlabtest/supplemental/dsa_empty.json index 594e5bb4d0b..8be11178121 100644 --- a/adapters/yieldlab/yieldlabtest/supplemental/dsa_empty.json +++ b/adapters/yieldlab/yieldlabtest/supplemental/dsa_empty.json @@ -79,7 +79,8 @@ "169.254.13.37" ] }, - "uri": "https://ad.yieldlab.net/testing/12345?consent=BOlOrv1OlOr2EAAABADECg-AAAApp7v______9______9uz_Ov_v_f__33e8__9v_l_7_-___u_-3zd4u_1vf99yfm1-7etr3tp_87ues2_Xur__79__3z3_9phP78k89r7337Ew-v02&content=json&gdpr=1&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&sizes=12345%3A728x90&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads" + "uri": "https://ad.yieldlab.net/testing/12345?consent=BOlOrv1OlOr2EAAABADECg-AAAApp7v______9______9uz_Ov_v_f__33e8__9v_l_7_-___u_-3zd4u_1vf99yfm1-7etr3tp_87ues2_Xur__79__3z3_9phP78k89r7337Ew-v02&content=json&gdpr=1&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&sizes=12345%3A728x90&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads", + "impIDs": ["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldlab/yieldlabtest/supplemental/dsa_empty_transparency.json b/adapters/yieldlab/yieldlabtest/supplemental/dsa_empty_transparency.json index c966a7166a5..a240105fb90 100644 --- a/adapters/yieldlab/yieldlabtest/supplemental/dsa_empty_transparency.json +++ b/adapters/yieldlab/yieldlabtest/supplemental/dsa_empty_transparency.json @@ -83,7 +83,8 @@ "169.254.13.37" ] }, - "uri": "https://ad.yieldlab.net/testing/12345?consent=BOlOrv1OlOr2EAAABADECg-AAAApp7v______9______9uz_Ov_v_f__33e8__9v_l_7_-___u_-3zd4u_1vf99yfm1-7etr3tp_87ues2_Xur__79__3z3_9phP78k89r7337Ew-v02&content=json&gdpr=1&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&sizes=12345%3A728x90&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads" + "uri": "https://ad.yieldlab.net/testing/12345?consent=BOlOrv1OlOr2EAAABADECg-AAAApp7v______9______9uz_Ov_v_f__33e8__9v_l_7_-___u_-3zd4u_1vf99yfm1-7etr3tp_87ues2_Xur__79__3z3_9phP78k89r7337Ew-v02&content=json&gdpr=1&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&sizes=12345%3A728x90&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads", + "impIDs": ["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldmo/yieldmo.go b/adapters/yieldmo/yieldmo.go index 1d2ad308a2c..f01527cc08c 100644 --- a/adapters/yieldmo/yieldmo.go +++ b/adapters/yieldmo/yieldmo.go @@ -69,6 +69,7 @@ func (a *YieldmoAdapter) makeRequest(request *openrtb2.BidRequest) (*adapters.Re Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, errs } diff --git a/adapters/yieldmo/yieldmotest/exemplary/app-banner.json b/adapters/yieldmo/yieldmotest/exemplary/app-banner.json index 92609cae16a..7ff5f0de8d1 100644 --- a/adapters/yieldmo/yieldmotest/exemplary/app-banner.json +++ b/adapters/yieldmo/yieldmotest/exemplary/app-banner.json @@ -48,7 +48,8 @@ "app": { "id": "fake-app-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldmo/yieldmotest/exemplary/app_video.json b/adapters/yieldmo/yieldmotest/exemplary/app_video.json index 6f94a30b0d8..040906e7719 100644 --- a/adapters/yieldmo/yieldmotest/exemplary/app_video.json +++ b/adapters/yieldmo/yieldmotest/exemplary/app_video.json @@ -46,7 +46,8 @@ "app": { "id": "fake-app-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldmo/yieldmotest/exemplary/simple-banner.json b/adapters/yieldmo/yieldmotest/exemplary/simple-banner.json index 40943900980..9a5028db04a 100644 --- a/adapters/yieldmo/yieldmotest/exemplary/simple-banner.json +++ b/adapters/yieldmo/yieldmotest/exemplary/simple-banner.json @@ -66,7 +66,8 @@ "gpp_sid": [6] } } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldmo/yieldmotest/exemplary/simple_video.json b/adapters/yieldmo/yieldmotest/exemplary/simple_video.json index ec65bc98b6c..010b35a1471 100644 --- a/adapters/yieldmo/yieldmotest/exemplary/simple_video.json +++ b/adapters/yieldmo/yieldmotest/exemplary/simple_video.json @@ -46,7 +46,8 @@ "site": { "id": "fake-site-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldmo/yieldmotest/exemplary/with_gpid.json b/adapters/yieldmo/yieldmotest/exemplary/with_gpid.json index d155f5db67f..12785c7fdb8 100644 --- a/adapters/yieldmo/yieldmotest/exemplary/with_gpid.json +++ b/adapters/yieldmo/yieldmotest/exemplary/with_gpid.json @@ -56,7 +56,8 @@ "site": { "id": "fake-site-id" } - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldone/yieldone.go b/adapters/yieldone/yieldone.go index 1431396413d..8cd7dbd6021 100644 --- a/adapters/yieldone/yieldone.go +++ b/adapters/yieldone/yieldone.go @@ -45,6 +45,7 @@ func (a *YieldoneAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *ad Uri: a.endpoint, Body: reqJSON, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }}, errors } diff --git a/adapters/yieldone/yieldonetest/exemplary/simple-banner.json b/adapters/yieldone/yieldonetest/exemplary/simple-banner.json index f84476f1e86..c5d3566ba2f 100644 --- a/adapters/yieldone/yieldonetest/exemplary/simple-banner.json +++ b/adapters/yieldone/yieldonetest/exemplary/simple-banner.json @@ -44,7 +44,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldone/yieldonetest/exemplary/simple-video.json b/adapters/yieldone/yieldonetest/exemplary/simple-video.json index dc313abede7..d6607df739a 100644 --- a/adapters/yieldone/yieldonetest/exemplary/simple-video.json +++ b/adapters/yieldone/yieldonetest/exemplary/simple-video.json @@ -42,7 +42,8 @@ } } }] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldone/yieldonetest/supplemental/bad_response.json b/adapters/yieldone/yieldonetest/supplemental/bad_response.json index 3112d1f7ba0..ac4bfd7da23 100644 --- a/adapters/yieldone/yieldonetest/supplemental/bad_response.json +++ b/adapters/yieldone/yieldonetest/supplemental/bad_response.json @@ -47,7 +47,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/yieldone/yieldonetest/supplemental/status_204.json b/adapters/yieldone/yieldonetest/supplemental/status_204.json index b1c9304a35a..f83cd058f26 100644 --- a/adapters/yieldone/yieldonetest/supplemental/status_204.json +++ b/adapters/yieldone/yieldonetest/supplemental/status_204.json @@ -47,7 +47,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/yieldone/yieldonetest/supplemental/status_400.json b/adapters/yieldone/yieldonetest/supplemental/status_400.json index 1cb172bb371..b4c60f5b8a0 100644 --- a/adapters/yieldone/yieldonetest/supplemental/status_400.json +++ b/adapters/yieldone/yieldonetest/supplemental/status_400.json @@ -47,7 +47,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/yieldone/yieldonetest/supplemental/status_418.json b/adapters/yieldone/yieldonetest/supplemental/status_418.json index 30cc16adde5..480b9d65dbc 100644 --- a/adapters/yieldone/yieldonetest/supplemental/status_418.json +++ b/adapters/yieldone/yieldonetest/supplemental/status_418.json @@ -47,7 +47,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 418, diff --git a/adapters/zeroclickfraud/zeroclickfraud.go b/adapters/zeroclickfraud/zeroclickfraud.go index 6f416d96785..0b5c74771ba 100644 --- a/adapters/zeroclickfraud/zeroclickfraud.go +++ b/adapters/zeroclickfraud/zeroclickfraud.go @@ -57,7 +57,9 @@ func (a *ZeroClickFraudAdapter) MakeRequests(request *openrtb2.BidRequest, reqIn Method: "POST", Uri: url, Body: reqJson, - Headers: headers} + Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), + } requests = append(requests, &request) } diff --git a/adapters/zeroclickfraud/zeroclickfraudtest/exemplary/multi-request.json b/adapters/zeroclickfraud/zeroclickfraudtest/exemplary/multi-request.json index 70bfb9645c8..d8c99121e94 100644 --- a/adapters/zeroclickfraud/zeroclickfraudtest/exemplary/multi-request.json +++ b/adapters/zeroclickfraud/zeroclickfraudtest/exemplary/multi-request.json @@ -106,7 +106,8 @@ }, "at": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id","some-impression-id2"] }, "mockResponse": { diff --git a/adapters/zeroclickfraud/zeroclickfraudtest/exemplary/native.json b/adapters/zeroclickfraud/zeroclickfraudtest/exemplary/native.json index dcf9064f29d..2494cd2582e 100644 --- a/adapters/zeroclickfraud/zeroclickfraudtest/exemplary/native.json +++ b/adapters/zeroclickfraud/zeroclickfraudtest/exemplary/native.json @@ -73,7 +73,8 @@ }, "at": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { diff --git a/adapters/zeroclickfraud/zeroclickfraudtest/exemplary/simple-banner.json b/adapters/zeroclickfraud/zeroclickfraudtest/exemplary/simple-banner.json index 1d5ee3b3a52..a35cf8ec38f 100644 --- a/adapters/zeroclickfraud/zeroclickfraudtest/exemplary/simple-banner.json +++ b/adapters/zeroclickfraud/zeroclickfraudtest/exemplary/simple-banner.json @@ -79,7 +79,8 @@ }, "at": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { diff --git a/adapters/zeroclickfraud/zeroclickfraudtest/exemplary/simple-video.json b/adapters/zeroclickfraud/zeroclickfraudtest/exemplary/simple-video.json index 949e74602dd..147b353cbb2 100644 --- a/adapters/zeroclickfraud/zeroclickfraudtest/exemplary/simple-video.json +++ b/adapters/zeroclickfraud/zeroclickfraudtest/exemplary/simple-video.json @@ -74,7 +74,8 @@ }, "at": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { diff --git a/adapters/zeroclickfraud/zeroclickfraudtest/supplemental/bad-response-body.json b/adapters/zeroclickfraud/zeroclickfraudtest/supplemental/bad-response-body.json index 87ad168467d..8dc9ffd6469 100644 --- a/adapters/zeroclickfraud/zeroclickfraudtest/supplemental/bad-response-body.json +++ b/adapters/zeroclickfraud/zeroclickfraudtest/supplemental/bad-response-body.json @@ -71,7 +71,8 @@ }, "at": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { diff --git a/adapters/zeroclickfraud/zeroclickfraudtest/supplemental/bad-server-response.json b/adapters/zeroclickfraud/zeroclickfraudtest/supplemental/bad-server-response.json index fdea4f109a7..5420e91d56c 100644 --- a/adapters/zeroclickfraud/zeroclickfraudtest/supplemental/bad-server-response.json +++ b/adapters/zeroclickfraud/zeroclickfraudtest/supplemental/bad-server-response.json @@ -71,7 +71,8 @@ }, "at": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { diff --git a/adapters/zeroclickfraud/zeroclickfraudtest/supplemental/no-content-response.json b/adapters/zeroclickfraud/zeroclickfraudtest/supplemental/no-content-response.json index 3a36d6e04b2..eb78a456c3f 100644 --- a/adapters/zeroclickfraud/zeroclickfraudtest/supplemental/no-content-response.json +++ b/adapters/zeroclickfraud/zeroclickfraudtest/supplemental/no-content-response.json @@ -71,7 +71,8 @@ }, "at": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { diff --git a/adapters/zeta_global_ssp/zeta_global_ssp-test/exemplary/banner.json b/adapters/zeta_global_ssp/zeta_global_ssp-test/exemplary/banner.json index 8e04138937c..3b0918e6858 100644 --- a/adapters/zeta_global_ssp/zeta_global_ssp-test/exemplary/banner.json +++ b/adapters/zeta_global_ssp/zeta_global_ssp-test/exemplary/banner.json @@ -78,7 +78,8 @@ }, "test": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/zeta_global_ssp/zeta_global_ssp-test/exemplary/no-bid.json b/adapters/zeta_global_ssp/zeta_global_ssp-test/exemplary/no-bid.json index 3e1ee805552..ebb85839138 100644 --- a/adapters/zeta_global_ssp/zeta_global_ssp-test/exemplary/no-bid.json +++ b/adapters/zeta_global_ssp/zeta_global_ssp-test/exemplary/no-bid.json @@ -78,7 +78,8 @@ }, "test": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 204 diff --git a/adapters/zeta_global_ssp/zeta_global_ssp-test/exemplary/video.json b/adapters/zeta_global_ssp/zeta_global_ssp-test/exemplary/video.json index bc1e496cb27..2677ea5f1ca 100644 --- a/adapters/zeta_global_ssp/zeta_global_ssp-test/exemplary/video.json +++ b/adapters/zeta_global_ssp/zeta_global_ssp-test/exemplary/video.json @@ -74,7 +74,8 @@ "h": 900 }, "test": 1 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/zeta_global_ssp/zeta_global_ssp-test/supplemental/bad-request.json b/adapters/zeta_global_ssp/zeta_global_ssp-test/supplemental/bad-request.json index bf2af3bf25b..88215a085a3 100644 --- a/adapters/zeta_global_ssp/zeta_global_ssp-test/supplemental/bad-request.json +++ b/adapters/zeta_global_ssp/zeta_global_ssp-test/supplemental/bad-request.json @@ -78,7 +78,8 @@ }, "test": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 400 diff --git a/adapters/zeta_global_ssp/zeta_global_ssp-test/supplemental/invalid-bid-type.json b/adapters/zeta_global_ssp/zeta_global_ssp-test/supplemental/invalid-bid-type.json index 0aba5f2ca36..5ed9230e949 100644 --- a/adapters/zeta_global_ssp/zeta_global_ssp-test/supplemental/invalid-bid-type.json +++ b/adapters/zeta_global_ssp/zeta_global_ssp-test/supplemental/invalid-bid-type.json @@ -78,7 +78,8 @@ }, "test": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/zeta_global_ssp/zeta_global_ssp-test/supplemental/no-bid-type.json.json b/adapters/zeta_global_ssp/zeta_global_ssp-test/supplemental/no-bid-type.json.json index 1f5a92c4fdf..f0065941df0 100644 --- a/adapters/zeta_global_ssp/zeta_global_ssp-test/supplemental/no-bid-type.json.json +++ b/adapters/zeta_global_ssp/zeta_global_ssp-test/supplemental/no-bid-type.json.json @@ -78,7 +78,8 @@ }, "test": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/zeta_global_ssp/zeta_global_ssp-test/supplemental/server-error.json b/adapters/zeta_global_ssp/zeta_global_ssp-test/supplemental/server-error.json index 27e71c31255..0ec1555ffb7 100644 --- a/adapters/zeta_global_ssp/zeta_global_ssp-test/supplemental/server-error.json +++ b/adapters/zeta_global_ssp/zeta_global_ssp-test/supplemental/server-error.json @@ -78,7 +78,8 @@ }, "test": 1, "tmax": 500 - } + }, + "impIDs":["some-impression-id"] }, "mockResponse": { "status": 500 diff --git a/adapters/zeta_global_ssp/zeta_global_ssp.go b/adapters/zeta_global_ssp/zeta_global_ssp.go index 59af0d4d75a..cf78b91ac8a 100644 --- a/adapters/zeta_global_ssp/zeta_global_ssp.go +++ b/adapters/zeta_global_ssp/zeta_global_ssp.go @@ -38,6 +38,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte Uri: a.endpoint, Body: requestJson, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), } return []*adapters.RequestData{requestData}, nil diff --git a/adapters/zmaticoo/zmaticoo.go b/adapters/zmaticoo/zmaticoo.go index 8460f232fad..61860df5b22 100644 --- a/adapters/zmaticoo/zmaticoo.go +++ b/adapters/zmaticoo/zmaticoo.go @@ -52,6 +52,7 @@ func (a *adapter) makeRequest(request *openrtb2.BidRequest) (*adapters.RequestDa Uri: a.endpoint, Body: reqBody, Headers: headers, + ImpIDs: openrtb_ext.GetImpIDs(request.Imp), }, errs } diff --git a/adapters/zmaticoo/zmaticootest/exemplary/no-bid.json b/adapters/zmaticoo/zmaticootest/exemplary/no-bid.json index d0e5d17ed9a..5f5712412f5 100644 --- a/adapters/zmaticoo/zmaticootest/exemplary/no-bid.json +++ b/adapters/zmaticoo/zmaticootest/exemplary/no-bid.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 204, diff --git a/adapters/zmaticoo/zmaticootest/exemplary/simple-banner.json b/adapters/zmaticoo/zmaticootest/exemplary/simple-banner.json index 22d104ed0cd..c9755d903e6 100644 --- a/adapters/zmaticoo/zmaticootest/exemplary/simple-banner.json +++ b/adapters/zmaticoo/zmaticootest/exemplary/simple-banner.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/zmaticoo/zmaticootest/exemplary/simple-native-1.1.json b/adapters/zmaticoo/zmaticootest/exemplary/simple-native-1.1.json index 307e3d873be..7f6ad6fce11 100644 --- a/adapters/zmaticoo/zmaticootest/exemplary/simple-native-1.1.json +++ b/adapters/zmaticoo/zmaticootest/exemplary/simple-native-1.1.json @@ -38,7 +38,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/zmaticoo/zmaticootest/exemplary/simple-native.json b/adapters/zmaticoo/zmaticootest/exemplary/simple-native.json index 6cff9b86148..baf66759c83 100644 --- a/adapters/zmaticoo/zmaticootest/exemplary/simple-native.json +++ b/adapters/zmaticoo/zmaticootest/exemplary/simple-native.json @@ -38,7 +38,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/zmaticoo/zmaticootest/exemplary/simple-video.json b/adapters/zmaticoo/zmaticootest/exemplary/simple-video.json index 5ff93efa332..718eaa76477 100644 --- a/adapters/zmaticoo/zmaticootest/exemplary/simple-video.json +++ b/adapters/zmaticoo/zmaticootest/exemplary/simple-video.json @@ -44,7 +44,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/zmaticoo/zmaticootest/supplemental/bad_response.json b/adapters/zmaticoo/zmaticootest/supplemental/bad_response.json index 9827081e41a..e129e3ce4a7 100644 --- a/adapters/zmaticoo/zmaticootest/supplemental/bad_response.json +++ b/adapters/zmaticoo/zmaticootest/supplemental/bad_response.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 200, diff --git a/adapters/zmaticoo/zmaticootest/supplemental/status_400.json b/adapters/zmaticoo/zmaticootest/supplemental/status_400.json index a03b5e36e0a..fdfbd759735 100644 --- a/adapters/zmaticoo/zmaticootest/supplemental/status_400.json +++ b/adapters/zmaticoo/zmaticootest/supplemental/status_400.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 400, diff --git a/adapters/zmaticoo/zmaticootest/supplemental/status_500.json b/adapters/zmaticoo/zmaticootest/supplemental/status_500.json index 732b2cb6e1e..4cbe06d1eda 100644 --- a/adapters/zmaticoo/zmaticootest/supplemental/status_500.json +++ b/adapters/zmaticoo/zmaticootest/supplemental/status_500.json @@ -46,7 +46,8 @@ } } ] - } + }, + "impIDs":["test-imp-id"] }, "mockResponse": { "status": 500, diff --git a/go.mod b/go.mod index 783c0044b2e..808b7355119 100644 --- a/go.mod +++ b/go.mod @@ -47,6 +47,7 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/fsnotify/fsnotify v1.5.4 // indirect github.com/golang/protobuf v1.5.3 // indirect + github.com/google/go-cmp v0.6.0 // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d // indirect github.com/magiconair/properties v1.8.6 // indirect diff --git a/go.sum b/go.sum index 28805a382d6..c8f1e8461a3 100644 --- a/go.sum +++ b/go.sum @@ -214,6 +214,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= diff --git a/openrtb_ext/imp.go b/openrtb_ext/imp.go index d0c07ef4e77..e5779ed3471 100644 --- a/openrtb_ext/imp.go +++ b/openrtb_ext/imp.go @@ -2,6 +2,8 @@ package openrtb_ext import ( "encoding/json" + + "github.com/prebid/openrtb/v20/openrtb2" ) // AuctionEnvironmentType is a Google Privacy Sandbox flag indicating where the auction may take place @@ -84,3 +86,12 @@ type ExtStoredBidResponse struct { type Options struct { EchoVideoAttrs bool `json:"echovideoattrs"` } + +// GetImpIDs returns slice of all impression Ids from impList +func GetImpIDs(imps []openrtb2.Imp) []string { + impIDs := make([]string, len(imps)) + for i := range imps { + impIDs[i] = imps[i].ID + } + return impIDs +}