Column | Type | Default | Extra | Comment |
![]() |
int(11) | auto_increment | ||
![]() |
int(11) | |||
![]() |
char(64) | The invoice number which will show up on the printed invoice. It is built like this: AdvertiserID-CampaignID-YYYYMMDD, where YYYYMMDD is the date the payment is due. | ||
FromDate | date | The beginning of the invoiced period. | ||
ToDate | date | The end of the invoiced period. | ||
InvoiceDate | date | The date the invoice is generated. | ||
DueDate | date | The date the invoice is due to be paid. This is calculated by adding the NetDue preference value to the InvoiceDate. | ||
ImpressionsDelivered | int(11) | Total number of impressions delivered during the invoice period. | ||
ClicksDelivered | int(11) | Total number of clickthroughs delivered during the invoice period. | ||
CPM | float(10,2) | The actual CPM used during the invoice period. | ||
CPC | float(10,2) | The actual CPC used during the invoice period. | ||
Fixed | float(10,2) | The fixed charge for the campaign. | ||
AgencyCommission | float(10,2) | The agency commission rate used during this invoice period. | ||
CPMCharge | float(10,2) | The actual CPM charges: CPM * ImpressionsDelivered. | ||
CPCCharge | float(10,2) | The actual CPC charges: CPC * ClicksDelivered. | ||
FixedCharge | float(10,2) | The fixed charge associated with this invoice period. | ||
AgencyCommissionCharge | float(10,2) | The actual agency commission: (FixedCharge + CPMCharge + CPCCharge) * AgencyCommission | ||
PurchaseOrder | char(64) | The PO number (inherited from the Campaign) | ||
Sent | enum('Y', 'N') | N | Once an invoice has been marked as sent, this is set to "Y". | |
Paid | enum('Y', 'N') | N | Once an invoice has been marked as paid, this is set to "Y". |