Amazon S3 Name and File Size Requirements for Inbound Data Files
Describes the required fields, syntax, naming conventions and file sizes you need to follow when sending data to Audience Manager. Set the names and sizes of your files according to these specifications when you send data to an Audience Manager / Amazon S3 directory.
The text styles ( monospaced text , italics , brackets [ ] ( ) , etc.) in this document indicate code elements and options. See Style Conventions for Code and Text Elements for more information.
File Name Syntax
S3 file names contain the following required and optional elements:
- S3 prefix: s3n://AWS_directory/partner_name/date=yyyy-mm-dd/
- File name elements: ftp_dpm_DPID[_DPID_TARGET_DATA_OWNER]_TIMESTAMP(.sync|.overwrite)[.SPLIT_NUMBER][.gz]
For other accepted file name formats, see Custom Partner Integrations .
Audience Manager only processes ASCII and UTF-8 encoded files.
The table defines the elements in an S3 file name.
The path to and name of your Amazon S3 bucket. Contact your Account Manager for your S3 directory name, path, and credentials.
A timestamp (based on UTC time) of when you send the files to your S3 bucket.
The Data Provider ID (DPID) is an identifier that tells Audience Manager if a data file contains your own user IDs or Android or iOS IDs. Accepts the following options:
Data Partner ID
This is a unique ID Audience Manager assigns to your company or organization. Use this assigned ID in a file name when sending in data that contains your own user IDs. For example, ...ftp_dpm_21_123456789.sync tells Audience Manager that a partner with ID 21 sent the file and it contains user IDs assigned by that partner.
Android IDs (GAID)
Use ID 20914 as the DPID in a data file name if the file contains Android IDs. When you use ID 20914 as the DPID, you still need to identify your company to Audience Manager . This means the file name must use the _DPID_TARGET_DATA_OWNER parameter to hold your company ID. For example, say you're passing in files with Android IDs and your Data Provider ID is 21. In this case, the file name would look like ...ftp_dpm_20914_21_123456789.sync . This tells Audience Manager the file contains Android IDs and is from a partner identified by ID 21.
iOS IDs (IDFA)
Use ID 20915 as the DPID in a data file name if the file contains iOS IDs. When you use ID 20915 as the DPID, you still need to identify your company to Audience Manager . This means the file name must use the _DPID_TARGET_DATA_OWNER parameter to hold your company ID. For example, say you're passing in files with Android IDs and your Data Provider ID is 21. In this case, the file name would look like ...ftp_dpm_20915_21_123456789.sync . This tells Audience Manager the file contains iOS IDs and is from a partner identified by ID 21.
Note: Do not mix ID types in your data files. For example, if your file name includes the Android identifier, don't put iOS IDs or your own IDs in the data file.
See Global Data Sources for more details.
See also the _DPID_TARGET_DATA_OWNER entry below.
A placeholder for an ID. For example, you could set it to your Audience Manager ID if you set the DPID to a data source ID or an Android or iOS ID. This lets Audience Manager link the file data back to your organization.
The company or organization name you use in Audience Manager .
A 10-digit, UTC UNIX timestamp in seconds. The timestamp helps make each file name unique.
Synchronization options that include:
[ SPLIT_NUMBER ]
An integer. Used when you split large files into multiple parts to improve processing times. The number indicates which part of the original file you're sending in.
For efficient file processing, split your data files as indicated:
See the first 2 file name examples below.
When sending files to Amazon S3, use gzip compression only. When compressed, these files get the .gz extension. Do not use .zip compression.
Compressed files must be 3 GB or smaller. If your files are larger, please talk to Customer Care. Although Audience Manager can handle large files, we may be able to help you reduce the size of your files and make data transfers more efficient. See File Compression for Inbound Data Transfer Files .
File Name Examples
The following examples show properly formatted file names. Your file names could look similar.
You can download the sample file if you want additional examples. This file has been saved with the .overwrite file extension. Open it with a simple text editor.
Accepted File Sizes
Consider the figures below for fastest/earliest processing of your files as well as for file size limitations when you send data to an Audience Manager / Amazon S3 directory.
|File Type||Optimal Size||Maximum Size|
The inbound data validation process will mark empty files as invalid and will not process them.