These ads work by leveraging the data collected by social media platforms. Advertisers can create campaigns that target users based on their demographics, interests, behaviors, and even past interactions with the brand. By using sophisticated algorithms, these platforms ensure that the ads are shown to the most relevant audiences, thereby increasing the chances of conversion.