example test

CitrusAd only supports TSV format for order data. The table below describes the names of columns in a TSV file and their descriptions. For order data, the columns retailers must provide in a TSV file includes “orderId”, “quantity”, “product_code”, “price_with_discounts”, “ad_id”, and “order_date”.

🚧

When syncing via TSV, order_id must be provided in sequential order, ensuring that if multiple products are purchased, they are attributed to the same orderId at the same time.

If order_id’s are fragmented, subsequent products in the order will not be attributed.

Column names and descriptions for customer data in TSV files

Column nameRequired/optionalData typeDescription
order_idRequiredTextThis is the identifier of the order in the retailer's system.

This MUST be ordered by orderId.
customer_idOptionalTextThis is the identifier of the customer of the order.
quantityRequiredNumberThis is the quantity of the product in the order.

This MUST be a number.
product_codeRequiredTextThis is the code to identify the product in the order.
regular_unit_priceOptionalNumberThis is regular unit price of the product in the order.

If provided, it MUST be a number.
price_with_discountsRequiredNumberThis is the total price of the products with discounts. It MUST be a number, e.g. if an order item contains 3 items with a price of 2.00, the value will be 6.
ad_idOptionalTextThis is the ad id for the order item. If an explicit association between a single order item and a single ad id can be provided, this field is used.
ad_idsOptionalTextThis is an order level field that gathers all ad ids that should be associated with this order. If an explicit association between order items and ad ids can't be provided, this field is used to provide the association at order level.

In a TSV file, since each order item has its own row, the final set of ad_ids for the order would be calculated as the union of all order items ad_ids. This does not include explicit associations in the ad_id field.
order_dateRequiredTextThis is the date or the date and time of the order. This must be in the format of ISO-8601 standard and must be a precise, full timestamp, e.g. 2019-03-14T15:06:17+10:00
session_idOptionalTextThis is a generated id you control that identifies a user's session. CitrusAd can use this for purchase attribution.

An example of a TSV file for customers can be seen in the table below. Similar to product data and customer data, the raw data is a text file, but it is represented in a table so we can read it easily.

order_idcustomer_idquantityproduct_coderegular_unit_priceprice_with_discountsad_idad_idssessionIdorder_date
134332157211DM_357480469469banner_Z2YcoG5Pqe1uTCsz3Lk5WE3sBmExNjI4NjAxNDA2019-03-15
684535342344415323447.95191.8display_4fy5MPixTU-cKAWimSlHsLkfrUZCV1NfNzM1NTM=2019-03-15T17:06:17+00:06
684535842341BWS_7355366display_IDI0Ks_vmSyeLUmDaa1UCCGJ_chCV1NfNzM1NTM=2018-03-15T17:06:17+00:06
684535942343BWS_74549618display_IDI054g4_vmSyeLUmDaa1UCCGJ_chCV1NfNzM1NTM, display_IDI0Ks_vmSyeLUmDaa1UCCfyn34ox8zn29rc3d44z8cn, banner_Z2YcoG5Pqe1uTCsz3Lkcxy342omcx4832mx4433x,
banner_33r3Csz3Lk5WE3sBmExNjI4x3yzcj38ccdh43ycxui3
2018-03-15T17:06:17+00:06
684536042812BWS_76542112223dn3923-323d2019-03-15T17:06:17+00:06

📘

If you're unsure about the terms outlined in this section, please visit the reference page.