Claude Code reads every image in a creatives folder, writes 3 headline variants for each and uploads them to one ad set as paused ads through the Marketing API (about 50 ads in a couple of minutes, per the author). You then switch on the ones you like in Ads Manager. To keep the pipeline from breaking every 60 days, it uses a Meta system user token set to never expire (employee role, with only the page, ad account, app and Instagram assets it needs) kept in a .env file, not a Graph API Explorer token.
Prompt
read every image in ./creatives, write 3 headline variants for each, upload them to ad set X as paused ads