Skip to content

Commit

Permalink
The conversant adapter apparently doesnt support apps. This makes it …
Browse files Browse the repository at this point in the history
…explicit. (#623)
  • Loading branch information
dbemiller authored Jul 16, 2018
1 parent 395107a commit 1300cbb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 8 additions & 0 deletions adapters/conversant/conversant.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ func (a *ConversantAdapter) Call(ctx context.Context, req *pbs.PBSRequest, bidde
return nil, err
}

// Without this, the code crashes with a nil-pointer dereference below, on
// cnvrReq.Site.ID = params.SiteID
if cnvrReq.Site == nil {
return nil, &adapters.BadInputError{
Message: "Conversant doesn't support App requests",
}
}

// Create a map of impression objects for both request creation
// and response parsing.

Expand Down
3 changes: 0 additions & 3 deletions static/bidder-info/conversant.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
maintainer:
email: "[email protected]"
capabilities:
app:
mediaTypes:
- banner
site:
mediaTypes:
- banner
Expand Down

0 comments on commit 1300cbb

Please sign in to comment.