We are developing a Shopify app and for its functionality I want to know where the Shopify store(client store) order is coming from. For example, if the order is placed from Google Ads how can I know its from Google Ads through API? Similarly for other Sales Channels like Facebook.
Most sales channels add the 'source_name' value in the order JSON key, but I'm not sure about Google/Facebook. I might be worth looking at some order data to understand if that holds true across the dataset you have to work with.