-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
625 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Generated by Django 5.0.8 on 2024-09-30 21:04 | ||
|
||
import adserver.analyzer.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("adserver_analyzer", "0007_add_advertiser_flights"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="analyzedadvertiserurl", | ||
name="keywords", | ||
field=models.JSONField( | ||
blank=True, | ||
null=True, | ||
validators=[adserver.analyzer.validators.KeywordsValidator()], | ||
verbose_name="Keywords for this URL", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="analyzedurl", | ||
name="keywords", | ||
field=models.JSONField( | ||
blank=True, | ||
null=True, | ||
validators=[adserver.analyzer.validators.KeywordsValidator()], | ||
verbose_name="Keywords for this URL", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
# Generated by Django 5.0.8 on 2024-09-30 21:04 | ||
|
||
import adserver.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("adserver", "0096_simple_history_upgrade"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="click", | ||
name="keywords", | ||
field=models.JSONField( | ||
blank=True, null=True, verbose_name="Keyword targeting for this view" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="flight", | ||
name="targeting_parameters", | ||
field=models.JSONField( | ||
blank=True, | ||
null=True, | ||
validators=[adserver.validators.TargetingParametersValidator()], | ||
verbose_name="Targeting parameters", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="flight", | ||
name="traffic_cap", | ||
field=models.JSONField( | ||
blank=True, | ||
default=None, | ||
null=True, | ||
validators=[adserver.validators.TrafficFillValidator()], | ||
verbose_name="Traffic cap", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="flight", | ||
name="traffic_fill", | ||
field=models.JSONField( | ||
blank=True, | ||
default=None, | ||
null=True, | ||
validators=[adserver.validators.TrafficFillValidator()], | ||
verbose_name="Traffic fill", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="historicalflight", | ||
name="targeting_parameters", | ||
field=models.JSONField( | ||
blank=True, | ||
null=True, | ||
validators=[adserver.validators.TargetingParametersValidator()], | ||
verbose_name="Targeting parameters", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="historicalflight", | ||
name="traffic_cap", | ||
field=models.JSONField( | ||
blank=True, | ||
default=None, | ||
null=True, | ||
validators=[adserver.validators.TrafficFillValidator()], | ||
verbose_name="Traffic cap", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="historicalflight", | ||
name="traffic_fill", | ||
field=models.JSONField( | ||
blank=True, | ||
default=None, | ||
null=True, | ||
validators=[adserver.validators.TrafficFillValidator()], | ||
verbose_name="Traffic fill", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="offer", | ||
name="keywords", | ||
field=models.JSONField( | ||
blank=True, null=True, verbose_name="Keyword targeting for this view" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="region", | ||
name="prices", | ||
field=models.JSONField( | ||
blank=True, | ||
help_text="Topic pricing matrix for this region", | ||
null=True, | ||
validators=[adserver.validators.TopicPricingValidator()], | ||
verbose_name="Topic prices", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="view", | ||
name="keywords", | ||
field=models.JSONField( | ||
blank=True, null=True, verbose_name="Keyword targeting for this view" | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Generated by Django 5.0.9 on 2024-10-18 18:03 | ||
|
||
import django.db.models.deletion | ||
import django_extensions.db.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('adserver', '0097_migrate_jsonfield'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='RotationImpression', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')), | ||
('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')), | ||
('date', models.DateField(db_index=True, verbose_name='Date')), | ||
('decisions', models.PositiveIntegerField(default=0, help_text="The number of times the Ad Decision API was called. The server might not respond with an ad if there isn't inventory.", verbose_name='Decisions')), | ||
('offers', models.PositiveIntegerField(default=0, help_text='The number of times an ad was proposed by the ad server. The client may not load the ad (a view) for a variety of reasons ', verbose_name='Offers')), | ||
('views', models.PositiveIntegerField(default=0, help_text='Number of times the ad was legitimately viewed', verbose_name='Views')), | ||
('clicks', models.PositiveIntegerField(default=0, help_text='Number of times the ad was legitimately clicked', verbose_name='Clicks')), | ||
('advertisement', models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='rotated_impressions', to='adserver.advertisement')), | ||
('publisher', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='rotated_impressions', to='adserver.publisher')), | ||
], | ||
options={ | ||
'ordering': ('-date',), | ||
'unique_together': {('publisher', 'advertisement', 'date')}, | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.