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

New Adapter: Bidmatic #3731

Merged
merged 14 commits into from
Oct 3, 2024
Merged

New Adapter: Bidmatic #3731

merged 14 commits into from
Oct 3, 2024

Conversation

dkornet-ad
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Jun 5, 2024

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 1ae1dc6

bidmatic

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:23:	MakeRequests		90.6%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:89:	MakeBids		95.8%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:142:	validateImpression	81.8%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:200:	Builder			100.0%
total:									(statements)		90.0%

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 35c34c2

bidmatic

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:23:	MakeRequests		90.6%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:89:	MakeBids		95.8%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:142:	validateImpression	81.8%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:200:	Builder			100.0%
total:									(statements)		90.0%

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, f79759d

bidmatic

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:23:	MakeRequests		90.6%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:89:	MakeBids		95.8%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:142:	validateImpression	81.8%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:200:	Builder			100.0%
total:									(statements)		90.0%

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 1225faf

bidmatic

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:23:	MakeRequests		90.6%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:89:	MakeBids		95.8%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:142:	validateImpression	81.8%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:200:	Builder			100.0%
total:									(statements)		90.0%

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 5dcf053

bidmatic

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:23:	MakeRequests		90.6%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:89:	MakeBids		95.8%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:142:	validateImpression	81.8%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:200:	Builder			100.0%
total:									(statements)		89.9%

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 4050dae

bidmatic

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:23:	MakeRequests		90.6%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:89:	MakeBids		95.8%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:142:	validateImpression	81.8%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:200:	Builder			100.0%
total:									(statements)		89.9%

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 5189113

bidmatic

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:23:	MakeRequests		90.6%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:89:	MakeBids		95.8%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:142:	validateImpression	81.8%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:200:	Builder			100.0%
total:									(statements)		89.9%

@@ -0,0 +1,18 @@
endpoint: "http://adapter.bidmatic.io/pbs/ortb"
Copy link
Contributor

Choose a reason for hiding this comment

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

curl -i --location --request POST 'http://adapter.bidmatic.io/pbs/ortb'
HTTP/1.1 400 Bad Request
Server: Bidmatic
Date: Fri, 28 Jun 2024 10:56:06 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 16
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Connection: Keep-Alive
Permissions-Policy: browsing-topics=()
X-Robots-Tag: noindex

endpoint is reachable

@@ -0,0 +1,18 @@
endpoint: "http://adapter.bidmatic.io/pbs/ortb"
maintainer:
email: "[email protected]"
Copy link
Contributor

Choose a reason for hiding this comment

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

Prebid team has sent email to verify above maintainers email. Requesting to responding back on email thread

Copy link
Contributor

Choose a reason for hiding this comment

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

received response from [email protected]

endpoint: "http://adapter.bidmatic.io/pbs/ortb"
maintainer:
email: "[email protected]"
gvlVendorID: 1134
Copy link
Contributor

Choose a reason for hiding this comment

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

verified gvl id

curl https://vendor-list.consensu.org/v3/vendor-list.json | jq '.vendors."1134"'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  614k  100  614k    0     0  5831k      0 --:--:-- --:--:-- --:--:-- 5853k
{
  "id": 1134,
  "name": "Bidmatic Inc",
  "purposes": [
    1,
    2,
    7
  ],
  "legIntPurposes": [],
  "flexiblePurposes": [],
  "specialPurposes": [
    1,
    2
  ],
  "features": [
    3
  ],
  "specialFeatures": [],
  "cookieMaxAgeSeconds": 8035200,
  "usesCookies": true,
  "cookieRefresh": true,
  "usesNonCookieAccess": true,
  "dataRetention": {
    "stdRetention": 90,
    "purposes": {},
    "specialPurposes": {
      "2": 0
    }
  },
  "urls": [
    {
      "langId": "en",
      "privacy": "https://bidmatic.io/privacy-policy/",
      "legIntClaim": "https://bidmatic.io/tos/"
    }
  ],
  "dataDeclaration": [
    1,
    2,
    3,
    4,
    6,
    7,
    8,
    11
  ],
  "deviceStorageDisclosureUrl": "https://bidmatic.io/.well-known/deviceStorage.json"
}

Copy link

github-actions bot commented Jul 3, 2024

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, be3226c

bidmatic

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:23:	MakeRequests		90.6%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:87:	MakeBids		100.0%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:141:	validateImpression	88.9%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:187:	Builder			100.0%
total:									(statements)		93.5%

@onkarvhanumante
Copy link
Contributor

onkarvhanumante commented Jul 3, 2024

@dkornet-ad

Create doc PR in https://github.com/prebid/prebid.github.io repo and link doc PR in this PR's description.

Refer prebid/prebid.github.io#5395 as example

@dikorn
Copy link

dikorn commented Jul 12, 2024

@onkarvhanumante we already created dev doc in
https://github.com/prebid/prebid.github.io/blob/379c166b184f8a8f4dcb8500ec5bf37eb4a243c3/dev-docs/bidmatic.md

@GeneGenie
Copy link
Contributor

Seems like some traction was here =)

@przemkaczmarek can we make this bidder go live ?

Thank you

Comment on lines 104 to 129
for i := 0; i < len(sb.Bid); i++ {

bid := sb.Bid[i]

impOK = false
mediaType := openrtb_ext.BidTypeBanner
bid.MType = openrtb2.MarkupBanner
for _, imp := range bidReq.Imp {
if imp.ID == bid.ImpID {

impOK = true

if imp.Video != nil {
mediaType = openrtb_ext.BidTypeVideo
bid.MType = openrtb2.MarkupVideo
break
}
}
}

if !impOK {
errors = append(errors, &errortypes.BadServerResponse{
Message: fmt.Sprintf("ignoring bid id=%s, request doesn't contain any impression with id=%s", bid.ID, bid.ImpID),
})
continue
}
Copy link
Contributor

Choose a reason for hiding this comment

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

@dkornet-ad

Prebid server expects the media type to be explicitly set in the adapter response. Therefore, we strongly recommend implementing a pattern where the adapter server sets the MType field in the response to accurately determine the media type for the impression.

Copy link
Contributor

Choose a reason for hiding this comment

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

@dkornet-ad any feedback on above

Copy link
Collaborator

Choose a reason for hiding this comment

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

@dkornet-ad @GeneGenie any feedback on above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@onkarvhanumante
Copy link
Contributor

@dkornet-ad friendly ping to address comments

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 78a72f1

bidmatic

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:23:	MakeRequests		90.6%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:84:	MakeBids		96.4%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:141:	validateImpression	88.9%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:187:	Builder			100.0%
total:									(statements)		92.4%

@dkornet-ad
Copy link
Contributor Author

@onkarvhanumante fixed

@przemkaczmarek przemkaczmarek self-requested a review August 20, 2024 13:37
@dkornet-ad
Copy link
Contributor Author

@przemkaczmarek resolved

Copy link

github-actions bot commented Sep 4, 2024

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 0408952

bidmatic

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:23:	MakeRequests		90.6%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:84:	MakeBids		96.4%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:141:	validateImpression	88.9%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:187:	Builder			100.0%
total:									(statements)		92.4%

@GeneGenie
Copy link
Contributor

@przemkaczmarek kindly reminder to review =) thanks

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 4dc9de1

bidmatic

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:23:	MakeRequests		90.6%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:84:	MakeBids		81.1%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:155:	validateImpression	88.9%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:201:	Builder			100.0%
total:									(statements)		86.4%

@onkarvhanumante
Copy link
Contributor

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 8a619a2

bidmatic

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:23:	MakeRequests		90.6%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:84:	MakeBids		81.1%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:155:	validateImpression	85.0%
github.com/prebid/prebid-server/v2/adapters/bidmatic/bidmatic.go:204:	Builder			100.0%
total:									(statements)		85.6%

@onkarvhanumante onkarvhanumante merged commit f27bcef into prebid:master Oct 3, 2024
5 checks passed
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.

6 participants