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

LemmaDigital: change endpoint #3862

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

lm-ved
Copy link
Contributor

@lm-ved lm-ved commented Aug 16, 2024

Related PR: #3750
One of them should be merged.

  • update bid adapter

📋 Checklist

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, 08e770e

lemmadigital

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/lemmadigital/lemmadigital.go:23:	Builder			80.0%
github.com/prebid/prebid-server/v2/adapters/lemmadigital/lemmadigital.go:35:	MakeRequests		87.5%
github.com/prebid/prebid-server/v2/adapters/lemmadigital/lemmadigital.go:74:	MakeBids		100.0%
github.com/prebid/prebid-server/v2/adapters/lemmadigital/lemmadigital.go:110:	buildEndpointURL	100.0%
total:										(statements)		92.7%

@lm-ved lm-ved mentioned this pull request Aug 16, 2024
2 tasks
iframe:
url: "https://sync.lemmadigital.com/js/usersync.html?redirect={{.RedirectURL}}"
userMacro: "${UUID}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot 2024-08-19 at 3 28 45 PM

Usersync url is not working.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

@imedvedko Requesting you to please fix this usersync URL.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looking into this

Copy link
Contributor

Choose a reason for hiding this comment

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

@imedvedko Requesting you to please fix this usersync URL.

It's not me 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gargcreation1992 , please check now, we've made an update to the url.

Copy link
Contributor

Choose a reason for hiding this comment

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

UID is still not being set. Getting the following redirect URL -

https://ib.adnxs.com/prebid/setuid?bidder=lemmadigital&gdpr=&gdpr_consent=&gpp=&gpp_sid=&f=b&uid=${UUID}&

Copy link
Contributor Author

@lm-ved lm-ved Aug 27, 2024

Choose a reason for hiding this comment

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

@gargcreation1992, can you share which URL you used to check this?

It worked for me:
image

URL used:

https://sync.lemmadigital.com/setuid?publisher=850&redirect=https%3A%2F%2Fib.adnxs.com%2Fprebid%2Fsetuid%3Fbidder%3Dlemmadigital%26gdpr%3D%26gdpr_consent%3D%26gpp%3D%26gpp_sid%3D%26f%3Db%26uid%3D%24%7BUUID%7D

Note: The recent commit: b00e873 prior to this comment: #3862 (comment) had changed the URL.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gargcreation1992 , did you get a chance to check this comment: #3862 (comment)?
Share the details please if there is additional feedback.

Copy link
Collaborator

Choose a reason for hiding this comment

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

user sync verified using https://sync.lemmadigital.com/setuid?publisher=850&redirect=http%3A%2F%2Flocalhost%3A8000%2Fsetuid%3Fbidder%3Dlemmadigital%26gdpr%3D%26gdpr_consent%3D%26gpp%3D%26gpp_sid%3D%26f%3Db%26uid%3D%24%7BUUID%7D

Screenshot 2024-09-13 at 3 22 41 PM

cookie after sync completes:

echo "eyJ0ZW1wVUlEcyI6eyJsZW1tYWRpZ2l0YWwiOnsidWlkIjoiNDUxODEwOWMtNzIwMC0xMWVmLWFjNWUtZDA4ZTc5ZjZjZjdlIiwiZXhwaXJlcyI6IjIwMjQtMDktMjdUMTU6MjA6NDAuNDkzNDYxLTA0OjAwIn19fQ" | base64 -D
{"tempUIDs":{"lemmadigital":{"uid":"4518109c-7200-11ef-ac5e-d08e79f6cf7e","expires":"2024-09-27T15:20:40.493461-04:00"}}

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

lemmadigital

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/lemmadigital/lemmadigital.go:23:	Builder			80.0%
github.com/prebid/prebid-server/v2/adapters/lemmadigital/lemmadigital.go:35:	MakeRequests		87.5%
github.com/prebid/prebid-server/v2/adapters/lemmadigital/lemmadigital.go:74:	MakeBids		100.0%
github.com/prebid/prebid-server/v2/adapters/lemmadigital/lemmadigital.go:110:	buildEndpointURL	100.0%
total:										(statements)		92.7%

@@ -10,7 +10,7 @@ import (

func TestJsonSamples(t *testing.T) {
bidder, buildErr := Builder(openrtb_ext.BidderLemmadigital, config.Adapter{
Endpoint: "https://sg.ads.lemmatechnologies.com/lemma/servad?pid={{.PublisherID}}&aid={{.AdUnit}}"}, config.Server{ExternalUrl: "http://hosturl.com", GvlID: 1, DataCenter: "2"})
Endpoint: "https://pbid.lemmamedia.com/lemma/servad?src=prebid&pid={{.PublisherID}}&aid={{.AdUnit}}"}, config.Server{ExternalUrl: "http://hosturl.com", GvlID: 1, DataCenter: "2"})
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suggest using a fake url for your tests so that you don't have to make all of these changes to the test files if you need to change your endpoint.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bsardo , updated the tests with a fake url to avoid future test url changes.

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, 637b084

lemmadigital

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/lemmadigital/lemmadigital.go:23:	Builder			80.0%
github.com/prebid/prebid-server/v2/adapters/lemmadigital/lemmadigital.go:35:	MakeRequests		87.5%
github.com/prebid/prebid-server/v2/adapters/lemmadigital/lemmadigital.go:74:	MakeBids		100.0%
github.com/prebid/prebid-server/v2/adapters/lemmadigital/lemmadigital.go:110:	buildEndpointURL	100.0%
total:										(statements)		92.7%

@lm-ved lm-ved requested a review from bsardo September 10, 2024 05:26
iframe:
url: "https://sync.lemmadigital.com/js/usersync.html?redirect={{.RedirectURL}}"
userMacro: "${UUID}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

user sync verified using https://sync.lemmadigital.com/setuid?publisher=850&redirect=http%3A%2F%2Flocalhost%3A8000%2Fsetuid%3Fbidder%3Dlemmadigital%26gdpr%3D%26gdpr_consent%3D%26gpp%3D%26gpp_sid%3D%26f%3Db%26uid%3D%24%7BUUID%7D

Screenshot 2024-09-13 at 3 22 41 PM

cookie after sync completes:

echo "eyJ0ZW1wVUlEcyI6eyJsZW1tYWRpZ2l0YWwiOnsidWlkIjoiNDUxODEwOWMtNzIwMC0xMWVmLWFjNWUtZDA4ZTc5ZjZjZjdlIiwiZXhwaXJlcyI6IjIwMjQtMDktMjdUMTU6MjA6NDAuNDkzNDYxLTA0OjAwIn19fQ" | base64 -D
{"tempUIDs":{"lemmadigital":{"uid":"4518109c-7200-11ef-ac5e-d08e79f6cf7e","expires":"2024-09-27T15:20:40.493461-04:00"}}

@bsardo bsardo assigned bsardo and unassigned przemkaczmarek Sep 13, 2024
@gargcreation1992 gargcreation1992 merged commit 640b97c into prebid:master Sep 16, 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