The Trade Desk export destination
-
Ask in #help_product for TTD destination to be added to the Meiro Business Explorer
-
Create in Meiro Integrations workspace for TTD destination
-
In Setup > Destinations, select the workspace from Meiro Integrations to be used by the destination.
-
Setup mandatory and exported attributes to be an attribute holding the list of all TTD User IDs of the customer entity.
-
Setup a parameter for the destination, audience_id as user input, required.
-
Create CDP connector in Meiro Integration workspace, fill in destination ID from Meiro Business Explorer and credentials.
-
Using Python code unnest a list of TDD User IDs into a csv with 1 column “tdid”.
import json, csv, sys with open('in/tables/export.csv', 'r') as inf, open('out/tables/tdid.csv','w') as outf: reader = csv.DictReader(inf) writer = csv.DictWriter(outf, fieldnames=['tdid']) writer.writeheader() for r in reader: attrs = json.loads(r['mx_ttd_id']) for a in attrs: writer.writerow({ 'tdid': a})
-
Set up The Trade Desk loader (https://github.com/meiroio-components/ttd_loader ) to use the {{audience_id}} as name, fill in advertiser ID, secret and TTL.
-
Done 🙂