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: Loopme #4023

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

New Adapter: Loopme #4023

wants to merge 5 commits into from

Conversation

ambalashov
Copy link

No description provided.

adapters/loopme/loopme.go Outdated Show resolved Hide resolved
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, 7d984d9

loopme

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/loopme/loopme.go:20:	MakeRequests	88.9%
github.com/prebid/prebid-server/v2/adapters/loopme/loopme.go:54:	MakeBids	100.0%
github.com/prebid/prebid-server/v2/adapters/loopme/loopme.go:92:	parseBidderExt	100.0%
github.com/prebid/prebid-server/v2/adapters/loopme/loopme.go:105:	getBidType	100.0%
github.com/prebid/prebid-server/v2/adapters/loopme/loopme.go:123:	Builder		75.0%
total:									(statements)	94.5%

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, a239d73

loopme

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/loopme/loopme.go:20:	MakeRequests	88.9%
github.com/prebid/prebid-server/v2/adapters/loopme/loopme.go:54:	MakeBids	100.0%
github.com/prebid/prebid-server/v2/adapters/loopme/loopme.go:92:	parseBidderExt	100.0%
github.com/prebid/prebid-server/v2/adapters/loopme/loopme.go:105:	getBidType	100.0%
github.com/prebid/prebid-server/v2/adapters/loopme/loopme.go:123:	Builder		75.0%
total:									(statements)	94.5%

@bsardo bsardo changed the title Loopme: add bidder adapter New Adapter: Loopme Nov 4, 2024
@bsardo
Copy link
Collaborator

bsardo commented Nov 4, 2024

Hi @ambalashov, we recently released PBS 3.0, more specifically v3.1.0, which updates Prebid Server package import references throughout the project from v2 to v3.
For example:

import (
    "github.com/prebid/prebid-server/v3/adapters"
)

As a result, please merge with master and then ensure all Prebid Server package import references in the files you’ve changed are v3 such that the test suite passes so we can resume reviewing. Thanks!

Copy link

github-actions bot commented Nov 8, 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, e74eb4e

loopme

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/loopme/loopme.go:20:	MakeRequests	88.9%
github.com/prebid/prebid-server/v3/adapters/loopme/loopme.go:54:	MakeBids	100.0%
github.com/prebid/prebid-server/v3/adapters/loopme/loopme.go:92:	parseBidderExt	100.0%
github.com/prebid/prebid-server/v3/adapters/loopme/loopme.go:105:	getBidType	100.0%
github.com/prebid/prebid-server/v3/adapters/loopme/loopme.go:123:	Builder		75.0%
total:									(statements)	94.5%

@bsardo bsardo self-assigned this Nov 12, 2024
@bsardo
Copy link
Collaborator

bsardo commented Nov 12, 2024

@PyjamaWarrior can you please review?

@@ -0,0 +1,20 @@
endpoint: http://prebid.loopmertb.com
Copy link
Contributor

Choose a reason for hiding this comment

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

Endpoint is reachable:
curl -i --location --request POST http://prebid.loopmertb.com
HTTP/1.1 204 No Content
date: Thu, 14 Nov 2024 08:44:47 GMT

- global
maintainer:
email: "[email protected]"
gvlVendorID: 109
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:
{
"id": 109,
"name": "LoopMe Limited",
"purposes": [
1,
2,
3,
4,
7,
9,
10
],
"legIntPurposes": [],
"flexiblePurposes": [],
"specialPurposes": [
1,
2,
3
],
"features": [
1,
2,
3
],
"specialFeatures": [
1,
2
],
"overflow": {
"httpGetLimit": 32
},
"cookieMaxAgeSeconds": 7776000,
"usesCookies": true,
"cookieRefresh": true,
"urls": [
{
"langId": "en",
"privacy": "https://legal.loopme.com/privacy-center#contract-hyartvn1o",
"legIntClaim": "https://legal.loopme.com/privacy-center#contract-hyartvn1o"
}
],
"usesNonCookieAccess": true,
"dataRetention": {
"stdRetention": 396,
"purposes": {},
"specialPurposes": {}
},
"dataDeclaration": [
1,
2,
3,
4,
6,
7,
8,
9,
10,
11
],
"deviceStorageDisclosureUrl": "https://co.loopme.com/deviceStorageDisclosure.json"
}

bid := &sb.Bid[i]
bidType, err := getBidType(bid)
if err != nil {
return nil, []error{err}

Choose a reason for hiding this comment

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

After the first error in the loop adapter returns one error and nil value. Maybe continuing and returning all errors at the end (like in MakeRequests) would probably be better so that any valid bids are processed? I would recommend this approach but it is ultimately up to you.

Copy link
Author

Choose a reason for hiding this comment

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

Make sense. Thanks.

@MaksymTeqBlaze
Copy link

MaksymTeqBlaze commented Nov 20, 2024

I have sent a verification email. Please respond

  • verified

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, 0ad799a

loopme

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/loopme/loopme.go:19:	MakeRequests	85.7%
github.com/prebid/prebid-server/v3/adapters/loopme/loopme.go:48:	MakeBids	100.0%
github.com/prebid/prebid-server/v3/adapters/loopme/loopme.go:97:	getBidType	100.0%
github.com/prebid/prebid-server/v3/adapters/loopme/loopme.go:115:	Builder		100.0%
total:									(statements)	95.9%

@Chandrahaas
Copy link

I have sent a verification email. Please respond

We sent a response on Nov 21, 9:59 AM . Thanks.

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.

5 participants