Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ricealexanderb committed Jan 9, 2024
1 parent 06cc548 commit 4caeb79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Note the first digit of every adapter version corresponds to the major version o
Adapters are compatible with any Chartboost Mediation SDK version within that major version.

### 4.2.4.0.0.1
- Call to fetch bidding token now includes placement format.
- This version of the adapter has been certified with BidMachine 2.4.0.0.

### 4.2.4.0.0.0
Expand Down
4 changes: 2 additions & 2 deletions Source/BidMachineAdapter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ final class BidMachineAdapter: PartnerAdapter {
case .rewarded:
placementFormat = .rewarded
default:
// Not using the `.adaptiveBanner` or `.rewardedInterstitial cases directly to maintain
// Not using the `.adaptiveBanner` or `.rewardedInterstitial` cases directly to maintain
// backward compatibility with Chartboost Mediation 4.0
if request.format.rawValue == "adaptive_banner" {
placementFormat = .banner
Expand All @@ -97,7 +97,7 @@ final class BidMachineAdapter: PartnerAdapter {
}

BidMachineSdk.shared.token(with: placementFormat) { [self] token in
guard let token = token else {
guard let token else {
let error = error(.prebidFailureInvalidArgument, description: "No bidding token provided by BidMachine SDK")
log(.fetchBidderInfoFailed(request, error: error))
completion(nil)
Expand Down

0 comments on commit 4caeb79

Please sign in to comment.