Skip to content

Commit

Permalink
Facebook Only Supports App Impressions (prebid#1396)
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxNode authored and sachin-pubmatic committed Aug 2, 2021
1 parent 4ce313b commit 7573c7c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions adapters/audienceNetwork/facebook.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,15 +472,11 @@ func (fa *FacebookAdapter) MakeTimeoutNotification(req *adapters.RequestData) (*
return &adapters.RequestData{}, []error{err}
}

// The publisher ID is either in the app object or the site object, depending on the supply of the request so we need
// to check both
// The publisher ID is expected in the app object
pubID, err = jsonparser.GetString(req.Body, "app", "publisher", "id")
if err != nil {
pubID, err = jsonparser.GetString(req.Body, "site", "publisher", "id")
if err != nil {
return &adapters.RequestData{}, []error{
errors.New("path [app|site].publisher.id not found in the request"),
}
return &adapters.RequestData{}, []error{
errors.New("path app.publisher.id not found in the request"),
}
}

Expand Down

0 comments on commit 7573c7c

Please sign in to comment.