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

Offers now store if they are paid ad eligible #797

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

davidfischer
Copy link
Collaborator

Adds two new fields to the offer table:

  • paid_eligible - whether this offer could be a paid ad
  • is_proxy - whether the offer is to a proxy/vpn

These were combined so we have a single migration against the offers table.

Whether an offer could be paid requires the publisher to be approved for paid campaigns and that the request didn't exclude paid campaigns.

Note: This does not yet change the aggregations to only aggregate on paid eligible ads. There's a couple gotchas with that that I wanted to discuss before moving forward. Most of our KPIs use the RegionImpression or TopicImpression models. We can fairly trivially change those aggregations to require paid_eligible but that means that unpaid (pre-approval) impressions won't even show up at all. One option is to require paid_eligible if and only if the publisher is approved for paid campaigns.

Adds two new fields to the offer table:

- paid_eligible - whether this offer could be a paid ad
- is_proxy - whether the offer is to a proxy/vpn

These were combined so we have a single migration against the offers
table.

Whether an offer could be paid requires the publisher to be approved
for paid campaigns and that the request didn't exclude paid campaigns.
@davidfischer davidfischer requested a review from a team as a code owner October 16, 2023 22:08
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

This seems like a good approach. Hopefully the migration won't be too painful.. 🤞

@davidfischer davidfischer merged commit 7ac49be into main Oct 26, 2023
1 check passed
@davidfischer davidfischer deleted the davidfischer/paid-eligible branch October 26, 2023 20:57
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.

2 participants