To connect your accounts, you need to log into your Shopify account first. Then, install the Facebook & Instagram channels to your Sales Channel. Set up the Facebook Marketing section and give access to the Facebook Page, Facebook (Meta) Ad Account and Business Suite. Next, add the Meta Pixel to your admin on Shopify.
This way, you will finally connect your Shopify store with your ad account.