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

Auction settings id #1100

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

mdanylov-sigma
Copy link
Collaborator

Issue #946

if let auctionSettingsId = Prebid.shared.auctionSettingsId,
auctionSettingsId.isEmpty || auctionSettingsId.containsOnly(.whitespaces) {
completion(BidInfo(resultCode: .prebidInvalidAuctionSettingsId))
return
Copy link
Collaborator

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;
Copy link
Collaborator

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.

Copy link
Collaborator

@OlenaPostindustria OlenaPostindustria left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants