{"__v":0,"_id":"57dc27d02cfd450e00643508","category":{"__v":0,"_id":"57dc1bbd3ed3450e00dc9ea7","project":"55de06fa57f7b20d0097636b","version":"55de06fa57f7b20d0097636e","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-09-16T16:20:13.682Z","from_sync":false,"order":7,"slug":"partner-attributes-api","title":"Data Marketplace API"},"parentDoc":null,"project":"55de06fa57f7b20d0097636b","user":"55de06e19db51a0d0064947d","version":{"__v":13,"_id":"55de06fa57f7b20d0097636e","project":"55de06fa57f7b20d0097636b","createdAt":"2015-08-26T18:35:38.642Z","releaseDate":"2015-08-26T18:35:38.642Z","categories":["55de06fb57f7b20d0097636f","55f1962e3936d52d00fb3c8f","55f1970339e3e8190068b2b8","55f1970d229b772300779a1f","55f1971cfd98c42300acc605","55f1d5c7fd98c42300acc69f","563cbfe4260dde0d00c5e9d4","5644cf437f1fff210078e690","57dc1bbd3ed3450e00dc9ea7","58a600a2243dd30f00fd8773","58ed1bdc068f780f00f64602","58f13b3a4f0ee50f00e24e81","58f173f792f9020f009cad16"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-16T17:11:44.625Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"The File Format for Attribute import is a simple CSV file format.\n\nLines in files may be terminated with either LF or CRLF.\n\nHeaders should be included on first line. \n\nYou may optionally GZIP-compress the file.  If file is gzipped, filename should end in .gz.\n\nEach line in the file will contain an advertising identifier, the type of the advertising identifier, the country the advertising identifier is sourced from, an operation code (ADD or DELETE), and a list of one or more Attributes to include the advertising identifier within.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Position\",\n    \"h-1\": \"Header\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"1\",\n    \"0-1\": \"id\",\n    \"0-2\": \"IDFA for iOS device\\nAAID for Android device\",\n    \"1-0\": \"2\",\n    \"3-0\": \"4\",\n    \"4-0\": \"5\",\n    \"1-1\": \"id_type\",\n    \"1-2\": \"1 - for IDFA\\n3 - for AAID\",\n    \"3-1\": \"operation\",\n    \"3-2\": \"0 - for ADD\\n1 - for DELETE\\n\\nAll deletes for the file will be applied before adds.\\n\\nYou may specify a delete and an add for the same ID in a file.\\n\\nMultiple adds for the same id in a file are applied in an undefined order.\",\n    \"4-1\": \"attribute_ids\",\n    \"4-2\": \"<attribute_id>=<value>|<attribute_id>=<value>|<attribute_id>=<value>\\n\\nPipe separated list of attribute_ids and values.  Attribute_ids and values should be separated by an = sign.  All attribute_ids must have some value assigned.\\n\\n13=abc|15=def|17=ghi\\n\\nor\\n \\n13|15|17\\n\\nor\\n\\n13=bac|15|17=ghi\",\n    \"2-0\": \"3\",\n    \"2-1\": \"country\",\n    \"2-2\": \"2 character iso country code i.e. US, or AU, or CA.\"\n  },\n  \"cols\": 3,\n  \"rows\": 5\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"id,id_type,country,operation,attribute_ids\\nxxxxxxxx-eff3-4bc4-8e7d-6ea47a3ed70f,3,US,0,1|2\\nyyyyyyyy-2024-4821-880d-9a8a5b307ebf,3,US,0,1|2\\nzzzzzzzz-1aea-4edf-bf54-c2ab2258ef52,1,US,0,1|3\\nwwwwwwww-bfd7-49c9-a43b-54c6b6e968e6,1,US,0,1|3\\n\\n\",\n      \"language\": \"text\",\n      \"name\": \"Sample of data file format\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"file-formats","type":"basic","title":"File Format"}
The File Format for Attribute import is a simple CSV file format. Lines in files may be terminated with either LF or CRLF. Headers should be included on first line. You may optionally GZIP-compress the file. If file is gzipped, filename should end in .gz. Each line in the file will contain an advertising identifier, the type of the advertising identifier, the country the advertising identifier is sourced from, an operation code (ADD or DELETE), and a list of one or more Attributes to include the advertising identifier within. [block:parameters] { "data": { "h-0": "Position", "h-1": "Header", "h-2": "Description", "0-0": "1", "0-1": "id", "0-2": "IDFA for iOS device\nAAID for Android device", "1-0": "2", "3-0": "4", "4-0": "5", "1-1": "id_type", "1-2": "1 - for IDFA\n3 - for AAID", "3-1": "operation", "3-2": "0 - for ADD\n1 - for DELETE\n\nAll deletes for the file will be applied before adds.\n\nYou may specify a delete and an add for the same ID in a file.\n\nMultiple adds for the same id in a file are applied in an undefined order.", "4-1": "attribute_ids", "4-2": "<attribute_id>=<value>|<attribute_id>=<value>|<attribute_id>=<value>\n\nPipe separated list of attribute_ids and values. Attribute_ids and values should be separated by an = sign. All attribute_ids must have some value assigned.\n\n13=abc|15=def|17=ghi\n\nor\n \n13|15|17\n\nor\n\n13=bac|15|17=ghi", "2-0": "3", "2-1": "country", "2-2": "2 character iso country code i.e. US, or AU, or CA." }, "cols": 3, "rows": 5 } [/block] [block:code] { "codes": [ { "code": "id,id_type,country,operation,attribute_ids\nxxxxxxxx-eff3-4bc4-8e7d-6ea47a3ed70f,3,US,0,1|2\nyyyyyyyy-2024-4821-880d-9a8a5b307ebf,3,US,0,1|2\nzzzzzzzz-1aea-4edf-bf54-c2ab2258ef52,1,US,0,1|3\nwwwwwwww-bfd7-49c9-a43b-54c6b6e968e6,1,US,0,1|3\n\n", "language": "text", "name": "Sample of data file format" } ] } [/block]