-
Notifications
You must be signed in to change notification settings - Fork 103
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
Auction settings id #1100
base: master
Are you sure you want to change the base?
Auction settings id #1100
Conversation
PrebidMobile/AdUnits/AdUnit.swift
Outdated
if let auctionSettingsId = Prebid.shared.auctionSettingsId, | ||
auctionSettingsId.isEmpty || auctionSettingsId.containsOnly(.whitespaces) { | ||
completion(BidInfo(resultCode: .prebidInvalidAuctionSettingsId)) | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary for the SDK to fail the entire fetchDemand
process when the optional parameter is invalid? I would suggest logging the error in this case and proceeding with the bid request with the prebidServerAccountId
if present.
@@ -67,8 +67,13 @@ - (void)buildBidRequest:(nonnull PBMORTBBidRequest *)bidRequest { | |||
BOOL const isHTML = ([adFormats containsObject:AdFormat.banner]); | |||
BOOL const isInterstitial = self.adConfiguration.adConfiguration.isInterstitialAd; | |||
|
|||
NSString *requestID = self.sdkConfiguration.auctionSettingsId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be great to have a test when both auctionSettingsId
and prebidServerAccountId
are present.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Issue #946