Apple has begun testing an AI-based advertising product similar to Google Performance Max.