Skip to content

Comments

Insticator: Support 2.6 OpenRTB fields and add app traffic endpoint#4668

Open
shubhamc-ins wants to merge 2 commits intoprebid:masterfrom
Insticator:enhance-insticator-for-2.6-support
Open

Insticator: Support 2.6 OpenRTB fields and add app traffic endpoint#4668
shubhamc-ins wants to merge 2 commits intoprebid:masterfrom
Insticator:enhance-insticator-for-2.6-support

Conversation

@shubhamc-ins
Copy link
Contributor

  • Updated JSON test cases for Insticator adapter to improve formatting and structure.
  • Added missing fields and corrected existing ones in the supplemental test files.
  • Enhanced error handling in test cases for better clarity on expected outcomes.
  • Updated bidder info YAML to include new endpoint and compression settings.
  • Adjusted bidder parameters schema for clarity and consistency.

- Updated JSON test cases for Insticator adapter to improve formatting and structure.
- Added missing fields and corrected existing ones in the supplemental test files.
- Enhanced error handling in test cases for better clarity on expected outcomes.
- Updated bidder info YAML to include new endpoint and compression settings.
- Adjusted bidder parameters schema for clarity and consistency.
@github-actions
Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 22bc6a2

insticator

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:62:	Builder			80.0%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:75:	parseExtraInfo		33.3%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:89:	buildEndpointURL	81.8%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:111:	getMediaTypeForBid	100.0%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:122:	MakeRequests		96.9%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:179:	makeRequest		94.1%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:218:	MakeBids		100.0%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:254:	getBidMeta		100.0%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:272:	getBidVideo		100.0%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:288:	makeImps		86.7%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:332:	makeReqExt		100.0%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:354:	resolveBidFloor		100.0%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:363:	validateVideoParams	100.0%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:374:	populatePublisherId	100.0%
total:										(statements)		92.8%

@bsardo bsardo added the adapter label Jan 28, 2026
@bsardo bsardo changed the title Insticator: Enhance Insticator Adapter for 2.6 rtb fields and add a new endpoint for app traffic Insticator: Support 2.6 OpenRTB fields and add app traffic endpoint Jan 28, 2026
@@ -1,7 +1,11 @@
endpoint: "https://ex.ingage.tech/v1/prebidserver"
extra_info: '{"app_endpoint":"https://aex.ingage.tech/v1/prebidserver"}'

Choose a reason for hiding this comment

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

domain works but it responds with 403 (same is true for https://ex.ingage.tech/v1/prebidserver)

curl -i --location --request POST https://aex.ingage.tech/v1/prebidserver
HTTP/2 403
date: Mon, 02 Feb 2026 14:55:10 GMT
content-type: application/json
content-length: 13
server: cloudflare
cf-ray: 9c7a872aa845e77f-WAW

{
"nbr" : 2
}

Choose a reason for hiding this comment

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

test request receives 403 error from the bidder, which is ok

{"id":"insticator-test-1","ext":{"debug":{"httpcalls":{"insticator":[{"uri":"https://ex.ingage.tech/v1/prebidserver?publisherId=test-publisher-id","requestbody":"{\"id\":\"insticator-test-1\",\"imp\":[{\"id\":\"imp-1\",\"banner\":{\"format\":[{\"w\":728,\"h\":90}]},\"secure\":1,\"ext\":{\"insticator\":{\"adUnitId\":\"fake-site-id\",\"publisherId\":\"test-publisher-id\"}}}],\"site\":{\"domain\":\"example.com\",\"page\":\"https://example.com/article-1\",\"publisher\":{\"id\":\"test-publisher-id\",\"domain\":\"example.com\"},\"ext\":{\"amp\":0}},\"device\":{\"ua\":\" Mozilla/5.0 (Linux; Android 13; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.6167.140 Mobile Safari/537.36\",\"ip\":\"192.0.2.1\"},\"test\":1,\"at\":1,\"source\":{\"tid\":\"cc92bdee-04fa-4369-95c1-c5d71cc737ba\"},\"ext\":{\"insticator\":{\"caller\":[{\"name\":\"Prebid-Server\",\"version\":\"n/a\"}]}}}","requestheaders":{"Accept":["application/json"],"Content-Encoding":["gzip"],"Content-Type":["application/json;charset=utf-8"],"Ip":["192.0.2.1"],"User-Agent":[" Mozilla/5.0 (Linux; Android 13; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.6167.140 Mobile Safari/537.36"],"X-Forwarded-For":["192.0.2.1"],"X-Prebid":["pbs-go/unknown"]},"responsebody":"","status":0}]},"resolvedrequest":{"id":"insticator-test-1","imp":[{"id":"imp-1","banner":{"format":[{"w":728,"h":90}]},"secure":1,"ext":{"prebid":{"bidder":{"insticator":{"adUnitId":"fake-site-id","publisherId":"test-publisher-id"}}},"tid":"cff946ad-8bff-473a-91af-1685f49942cb"}}],"site":{"domain":"example.com","page":"https://example.com/article-1","publisher":{"domain":"example.com"},"ext":{"amp":0}},"device":{"ua":" Mozilla/5.0 (Linux; Android 13; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.6167.140 Mobile Safari/537.36","ip":"192.0.2.1"},"test":1,"at":1,"source":{"tid":"cc92bdee-04fa-4369-95c1-c5d71cc737ba"},"ext":{"prebid":{"server":{"externalurl":"http://localhost:8000","gvlid":0,"datacenter":""}}}}},"errors":{"insticator":[{"code":4,"message":"Server responded with failure status: 403. Set request.test = 1 for debugging info."}]},"responsetimemillis":{"insticator":60},"prebid":{"auctiontimestamp":1770043887174}}}

}

// buildEndpointURL builds the endpoint URL with publisherId query parameter
func (a *adapter) buildEndpointURL(publisherId string, request *openrtb2.BidRequest) string {

Choose a reason for hiding this comment

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

confirmed, this function works
adapter sends request to Insticator PBS domain for inapp traffic

Image

Copy link

@danylo-kazymyrov-teqblaze danylo-kazymyrov-teqblaze left a comment

Choose a reason for hiding this comment

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

Verified, Insticator adapter works with added changes

  1. Request to base domain returns 403
  2. Request from in app traffic goes to new domain from adapter extra_info section

"httpCalls": [
{
"expectedRequest": {
"uri": "https://insticator.example.com/v1/pbs?publisherId=test-publisher-id",

Choose a reason for hiding this comment

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

@shubhamc-ins
Since PR introduces new logic to send requests from app traffic to aex.ingage.tech I think you should update insticator_test.go and add extra_info#app_endpoint config, so JSON tests will use different domain for app and web traffic

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@danylo-kazymyrov-teqblaze Thanks for reviewing, I have added the test cases for app endpoint.

Choose a reason for hiding this comment

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

@shubhamc-ins thank you! Nothing else from my side, approved

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@github-actions
Copy link

github-actions bot commented Feb 3, 2026

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, ba03b41

insticator

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:62:	Builder			80.0%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:75:	parseExtraInfo		66.7%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:89:	buildEndpointURL	90.9%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:111:	getMediaTypeForBid	100.0%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:122:	MakeRequests		96.9%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:179:	makeRequest		94.1%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:218:	MakeBids		100.0%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:254:	getBidMeta		100.0%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:272:	getBidVideo		100.0%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:288:	makeImps		86.7%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:332:	makeReqExt		100.0%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:354:	resolveBidFloor		100.0%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:363:	validateVideoParams	100.0%
github.com/prebid/prebid-server/v3/adapters/insticator/insticator.go:374:	populatePublisherId	100.0%
total:										(statements)		94.8%

@shubhamc-ins
Copy link
Contributor Author

shubhamc-ins commented Feb 11, 2026

@przemkaczmarek @bsardo Thanks for reviewing. Please let me know if there is anything else required to get this merged in this week's Release.

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants