Python Meta Dynamic Ads Script
Budget: $15 – $25 AUD
I need a clean, well-documented Python script that talks directly to Meta’s Marketing API and spins up Dynamic Creative adsets plus the actual Dynamic Ads themselves. The script should let me feed in multiple images, primary texts and call-to-action buttons, then automatically assemble the variations inside a Dynamic Creative ad set. It also has to push those ads live across Facebook, Instagram and Audience Network placements in one go.
This is to create DYNAMIC Ads (not normal ones) using API
Here’s the flow I have in mind:
1. Accept basic inputs (ad account ID, campaign ID, page ID, access token, arrays of images, texts and CTA labels).
2. Create or reuse a Dynamic Creative-enabled ad set with all placements selected.
3. Generate the ad creative object containing the images, text and CTA components as dynamic elements.
4. Publish the resulting Dynamic Ads to the ad set.
5. Return IDs and a concise log for quick troubleshooting.
Use standard endpoints from the latest Graph API release, include robust error handling and readable helper functions, and keep external libraries to well-supported staples such as requests or Facebook-Business-SDK only.
Deliverables:
• One runnable .py file
• A brief README outlining required API permissions and how to run the script with example input
• A sample JSON or YAML config for quickly testing the workflow
If everything runs smoothly in my test account, the job is done.
This is to create DYNAMIC Ads (not normal ones) using API
Here’s the flow I have in mind:
1. Accept basic inputs (ad account ID, campaign ID, page ID, access token, arrays of images, texts and CTA labels).
2. Create or reuse a Dynamic Creative-enabled ad set with all placements selected.
3. Generate the ad creative object containing the images, text and CTA components as dynamic elements.
4. Publish the resulting Dynamic Ads to the ad set.
5. Return IDs and a concise log for quick troubleshooting.
Use standard endpoints from the latest Graph API release, include robust error handling and readable helper functions, and keep external libraries to well-supported staples such as requests or Facebook-Business-SDK only.
Deliverables:
• One runnable .py file
• A brief README outlining required API permissions and how to run the script with example input
• A sample JSON or YAML config for quickly testing the workflow
If everything runs smoothly in my test account, the job is done.
Related categories:
PHP
JavaScript
Python
Facebook Marketing
Software Architecture
JSON
Facebook API
API Development