Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Adapter: IQX #3164

Merged
merged 7 commits into from
Oct 19, 2023
Merged

New Adapter: IQX #3164

merged 7 commits into from
Oct 19, 2023

Conversation

IQzoneIT
Copy link
Contributor

@IQzoneIT IQzoneIT commented Sep 29, 2023

continue
}

bidType, err := openrtb_ext.ParseBidType(bidExt.Prebid.Type)

Choose a reason for hiding this comment

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

Consider this as a suggestion. Prebid server expects the media type to be explicitly set in the adapter response. Therefore, recommends implementing a pattern where the adapter server sets the MType field in the response to accurately determine the media type for the impression.

Copy link
Contributor

Choose a reason for hiding this comment

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

@IQzoneIT requesting to address above comment

@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, 561edec

iqx

Refer here for heat map coverage report

github.com/prebid/prebid-server/adapters/iqx/iqx.go:29:		Builder				80.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:42:		buildEndpointFromRequest	100.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:65:		MakeRequests			89.5%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:102:	MakeBids			100.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:131:	prepareBidResponse		85.7%
total:								(statements)			91.4%

@IQzoneIT IQzoneIT changed the title iqx adapter init New Adapter: IQX Sep 29, 2023
@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, a427c32

iqx

Refer here for heat map coverage report

github.com/prebid/prebid-server/adapters/iqx/iqx.go:29:		Builder				80.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:42:		buildEndpointFromRequest	100.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:65:		MakeRequests			89.5%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:102:	MakeBids			100.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:131:	prepareBidResponse		85.7%
total:								(statements)			91.4%

},
"pid": {
"type": "string",
"description": "Uniq placement ID",
Copy link
Contributor

Choose a reason for hiding this comment

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

typo in Uniq. Should be Unique

@@ -0,0 +1,19 @@
endpoint: "http://rtb.iqzone.com/?pid={{.SourceId}}&host={{.Host}}&pbs=1"
Copy link
Contributor

Choose a reason for hiding this comment

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

any specific reason to add / before query params ?. Following should also work

endpoint: "http://rtb.iqzone.com?pid={{.SourceId}}&host={{.Host}}&pbs=1"

@github-actions
Copy link

github-actions bot commented Oct 3, 2023

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, d998080

iqx

Refer here for heat map coverage report

github.com/prebid/prebid-server/adapters/iqx/iqx.go:29:		Builder				80.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:42:		buildEndpointFromRequest	100.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:65:		MakeRequests			89.5%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:102:	MakeBids			100.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:131:	prepareBidResponse		85.7%
total:								(statements)			91.4%

@@ -291,6 +292,7 @@ func newAdapterBuilders() map[openrtb_ext.BidderName]adapters.Builder {
openrtb_ext.BidderInteractiveoffers: interactiveoffers.Builder,
openrtb_ext.BidderInvibes: invibes.Builder,
openrtb_ext.BidderIQZone: iqzone.Builder,
openrtb_ext.BidderIQX: iqx.Builder,
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick :- this should be moved above openrtb_ext.BidderIQZone: iqzone.Builder,

@@ -0,0 +1,19 @@
endpoint: "http://rtb.iqzone.com?pid={{.SourceId}}&host={{.Host}}&pbs=1"
maintainer:
email: "[email protected]"
Copy link
Contributor

Choose a reason for hiding this comment

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

@IQzoneIT We have sent an email to [email protected] to verify the maintainer email address as part of the onboarding process. Please revert back to that email with "Received" message to complete the verification.

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 Oct 3, 2023

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, d947591

iqx

Refer here for heat map coverage report

github.com/prebid/prebid-server/adapters/iqx/iqx.go:29:		Builder				80.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:42:		buildEndpointFromRequest	100.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:65:		MakeRequests			89.5%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:102:	MakeBids			100.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:131:	prepareBidResponse		85.7%
total:								(statements)			91.4%

@@ -0,0 +1,19 @@
endpoint: "http://rtb.iqzone.com?pid={{.SourceId}}&host={{.Host}}&pbs=1"
Copy link
Contributor

Choose a reason for hiding this comment

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

endpoint is reachable

Comment on lines 147 to 148
Message: fmt.Sprintf("Bid[%d].Ext.Prebid.Type expects one of the following values: 'banner', 'native', 'video', 'audio', got '%s'", bidId, bidExt.Prebid.Type),
})
Copy link
Contributor

Choose a reason for hiding this comment

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

As per static/bidder-info/iqx.yaml, audio is not supported by adapter. Should remove audio from error message

@github-actions
Copy link

github-actions bot commented Oct 9, 2023

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, 8da02ed

iqx

Refer here for heat map coverage report

github.com/prebid/prebid-server/adapters/iqx/iqx.go:29:		Builder				80.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:42:		buildEndpointFromRequest	100.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:65:		MakeRequests			89.5%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:102:	MakeBids			100.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:131:	prepareBidResponse		85.7%
total:								(statements)			91.4%

@IQzoneIT
Copy link
Contributor Author

IQzoneIT commented Oct 9, 2023

@onkarvhanumante done

@github-actions
Copy link

github-actions bot commented Oct 9, 2023

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, ccf5358

iqx

Refer here for heat map coverage report

github.com/prebid/prebid-server/adapters/iqx/iqx.go:29:		Builder				80.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:42:		buildEndpointFromRequest	100.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:65:		MakeRequests			89.5%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:102:	MakeBids			100.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:131:	prepareBidResponse		100.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:153:	getMediaTypeForBid		100.0%
total:								(statements)			94.9%

case openrtb2.MarkupNative:
return openrtb_ext.BidTypeNative, nil
default:
return "", fmt.Errorf("failed to parse bid mType for impression \"%s\"", bid.ImpID)
Copy link
Contributor

@onkarvhanumante onkarvhanumante Oct 9, 2023

Choose a reason for hiding this comment

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

if bid.ImpID is 2 then this will result in "failed to parse bid mType for impression \"2\". From this error message it is unclear whether 2 is mType value or index from imp array. How about refactoring error message to - failed to parse bid mtype for impression id \"2"\

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

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, 7ed229a

iqx

Refer here for heat map coverage report

github.com/prebid/prebid-server/adapters/iqx/iqx.go:29:		Builder				80.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:42:		buildEndpointFromRequest	100.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:65:		MakeRequests			89.5%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:102:	MakeBids			100.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:131:	prepareBidResponse		100.0%
github.com/prebid/prebid-server/adapters/iqx/iqx.go:153:	getMediaTypeForBid		100.0%
total:								(statements)			94.9%

@Sonali-More-Xandr Sonali-More-Xandr merged commit 8131a14 into prebid:master Oct 19, 2023
5 checks passed
svamiftah pushed a commit to sovrn/prebid-server that referenced this pull request Nov 21, 2023
Co-authored-by: Dmytro Shyrokov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants