Command line program to convert a Shopify Customer Export file into Facebook Custom Audience List format.
This command line program makes it easy to convert Shopify Customer Lists into Facebook Custom Audiences. In this way, you can create campaigns in Facebook Ads Manager which are targeted to your existing Shopify customers. Alternatively, you can use your Shopify customer list as the basis for a Lookalike Audience.
The program expects to read a Shopify Customer List from stdin
. It outputs a Facebook Custom Audiences file to stdout
. Example usage is,
python shop_to_face.py < examples\fictitious_shopify_export.csv > examples\fictitious_facebook_import.csv
In Shopify, begin by selecting the Customers option in the Shopify menu,
Next, select the customers that you want to include in the list. In order to meet data protection laws, you should only include customers who have agreed to Accept Marketing.
Finally, export the customer list,
This project uses the International Dialing Code data provided by https://github.com/siliconchild/International-Dialing-Codes
All example data files in this project contain fictitious data.
In order to comply with the data protection laws in your country, you should only include customers who have explicitly agreed to data-driven marketing. See Facebook’s GDPR microsite for more information.