The advertiser provides goals, assets (text, images, videos) and audience signals; the algorithm decides on placements and bids.
Powerful as it is, it requires reliable conversion tracking and safeguards: brand exclusion, a new-customer acquisition goal, regular analysis of the reports.