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

Advangelists Prebid Server Bidder #952

Merged
merged 11 commits into from
Jul 24, 2019
Merged

Conversation

trchandraprakash
Copy link
Contributor

No description provided.

@mansinahar mansinahar self-assigned this Jul 8, 2019
@trchandraprakash
Copy link
Contributor Author

Hi @mansinahar, Let me know if any changes are needed and when we can make it available for download. Thanks

adapters/advangelists/advangelists.go Outdated Show resolved Hide resolved
adapters/advangelists/advangelists.go Outdated Show resolved Hide resolved
adapters/advangelists/advangelists.go Outdated Show resolved Hide resolved
config/config.go Outdated Show resolved Hide resolved
macros/macros.go Outdated
@@ -8,6 +8,7 @@ import (
// EndpointTemplateParams specifies params for an endpoint template
type EndpointTemplateParams struct {
Host string
Pubid string
Copy link
Contributor

Choose a reason for hiding this comment

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

How is Pubid going to be different from PublisherID here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pubid is string.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay. Is it just a string of numbers or it could be a string of characters or mix of characters and numbers too? Even if that's the case, it might still be easier to have just PublisherID and make that a string rather than have PubID and PublisherID both. We can easily change an integer publisher ID to a string in that case.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah actually I see from your example json that PubID could be a mix of characters and numbers. In that case as suggested above, could you please rather change PublisherID to type string itself and the integer PublisherID values used before can be converted into string as needed?

Copy link
Contributor

Choose a reason for hiding this comment

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

@trchandraprakash pinging to see if you have had a chance to make the above change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mansinahar I am OOO this week. Will update coming monday. Also if I change PublisherID macro to be a string, won't it impact other bidder adapters who are considering it as integer.

Copy link
Contributor

Choose a reason for hiding this comment

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

Well, yeah those values will have to be converted into string before setting them to PublisherID and this PR would have to do that work. From a quick look hopefully it shouldn't be a lot of changes though

openrtb_ext/imp_advangelists.go Outdated Show resolved Hide resolved
Chandra Prakash added 2 commits July 10, 2019 21:56
Some more changes related to placement.
@trchandraprakash
Copy link
Contributor Author

Hi Mansi, Can you please tell what causing checks fail. Same command works on my environment.
./validate.sh --nofmt --cov --race 10

@mansinahar
Copy link
Contributor

Hi @trchandraprakash! Looks like there are formatting issues. I'd suggest running go fmt on your branch and then updating the PR. Specifically the build is complaining about openrtb_ext/imp_advangelists.go. That should hopefully resolve the issue.

@trchandraprakash
Copy link
Contributor Author

Got it thanks. Let me know if it looks good.

@trchandraprakash
Copy link
Contributor Author

Hi, Please let me know if it is all good, I have to make it available asap. thanks.

adapters/advangelists/advangelists.go Outdated Show resolved Hide resolved
adapters/advangelists/advangelists.go Outdated Show resolved Hide resolved
Updated highlighted memory allocation issues
@trchandraprakash
Copy link
Contributor Author

Hi @guscarreon, I have made requested changes, can you please help in finalizing review, so that i can make it available to our clients asap.

@mansinahar
Copy link
Contributor

@trchandraprakash Thanks for addressing all the feedback. If you could please make the PubID change when you have a chance, we can definitely help merge and close this ASAP.

@trchandraprakash
Copy link
Contributor Author

Hi @mansinahar, was not sure if i should modify other bidder code, but i guess without that i cannot pass automated check. Have done some modifications here

  1. Updated macro PublisherID to be string.
  2. Updated my bidder "Advangelists" code to use PublisherID macro instead of PubID.
  3. Updated another bidder "adkernelAdn" to accept PublisherID as string.
    Let me know if this is good. Thanks.

@mansinahar
Copy link
Contributor

@trchandraprakash I think this PR should just convert the PublisherID in the "AdKernel" adapter right before the ResolveMacros function is called here: https://github.com/prebid/prebid-server/blob/master/adapters/adkernelAdn/adkernelAdn.go#L203. Something like:

pubIDStr := strconv.Itoa(params.PublisherID)
endpointParams := macros.EndpointTemplateParams{Host: reqHost, PublisherID: pubIDStr}
return macros.ResolveMacros(adapter.EndpointTemplate, endpointParams)

The reason being, the change that you've made is fine but is sort of a big change for their adapter and we would have to get their approval also before merging it in. That will just delay this more for you so we can rather do this simple workaround for now and they can submit another PR changing their adapter to accept a string PublisherID

@trchandraprakash
Copy link
Contributor Author

@mansinahar I see what you mean, i have made requested changes and reverted back others.

Copy link
Contributor

@mansinahar mansinahar left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @trchandraprakash

@trchandraprakash
Copy link
Contributor Author

@mansinahar when we can see it available on production for client. Also not sure why i still see status of this PR as changes requested.

@mansinahar
Copy link
Contributor

mansinahar commented Jul 24, 2019

@trchandraprakash I think those changes requested are from Gus's review earlier which I believe you have already addressed but Github probably doesn't have a way to know that so it's still showing that. We can merge and close once we get a second approval from @guscarreon too.

Copy link
Contributor

@guscarreon guscarreon left a comment

Choose a reason for hiding this comment

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

LGTM

@mansinahar mansinahar merged commit bbcd2d0 into prebid:master Jul 24, 2019
@trchandraprakash
Copy link
Contributor Author

Thanks @mansinahar @guscarreon for approval. Can you please suggest how or when adapter will be available on this page http://prebid.org/dev-docs/prebid-server-bidders.html.

@mansinahar
Copy link
Contributor

@trchandraprakash We are looking to cut a new release on our end tomorrow so it should be available in prod thereafter. We will keep you updated. As for it appearing on http://prebid.org/dev-docs/prebid-server-bidders.html, I think @bretg might be responsible for that or at least should be able to point to the person who is.

@trchandraprakash
Copy link
Contributor Author

@mansinahar thanks will wait for your update. @bretg can you please help on getting adapter on http://prebid.org/dev-docs/prebid-server-bidders.html.

@mansinahar
Copy link
Contributor

@trchandraprakash FYI: We cut a new tag - 0.76.0 yesterday but unfortunately were having some issues with the release and had to rollback. We're planning to roll it out again on Monday and will keep you posted.

@trchandraprakash
Copy link
Contributor Author

@mansinahar thanks for update.

@bretg
Copy link
Contributor

bretg commented Jul 28, 2019

For the record, the list of adapters on http://prebid.org/dev-docs/prebid-server-bidders.html is dynamically generated from adapters that are deployed to AppNexus' cluster of servers. So when that deploy succeeds, the adapter will be on the list.

@trchandraprakash
Copy link
Contributor Author

Thanks @bretg .
Hi @mansinahar, Any updates, can we expect adapter to be available today?

@mansinahar
Copy link
Contributor

@trchandraprakash The adapter is now available in production and on the list of adapters on http://prebid.org/dev-docs/prebid-server-bidders.html

@trchandraprakash
Copy link
Contributor Author

@mansinahar thanks a lot.

katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 1, 2020
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 2, 2020
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 4, 2020
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.

4 participants