Why do it: This procedure allows you to define the creative content (text, image, and Call To Action) that will be shown to users, associating it with an existing Ad Set that manages the budget and targeting.
Procedure
1. Select the Ad Destination
- Select the existing Ad Set to which you want your new Ad to be associated. The Ad Set determines which users and with what budget the Ad will be shown.
2. Define the Creative Content
- Enter the main message that will accompany the Ad. (Ref:
$postData['message']). - Specify the Page ID from which the Ad should appear. (Ref:
$postData['page']). - If you are promoting an existing post, enter the post ID. (Ref:
$postData['id']).
3. Add Attachment (Image/Video)
- If the Ad is new content (and not a promotion of an existing post), upload the image or video you want to use. The system will upload the file as
AdImageand associate it with the creative content.
4. Configure the Call To Action (CTA)
- If you want to include a Call To Action button (e.g., "Learn More"), you must specify:
- The destination Link (URL) where the user will be redirected. (Ref:
$cta['value']['link']). - The Call To Action Type (e.g.,
AdCreativeCallToActionTypeValues).
5. Finalize Creation
- The system will automatically assign a name to the Ad in the format:
(Framework360) Automatic ad of [date/time]. (Ref:AdFields::NAME). - The Ad will be created and set to Active status (
Ad::STATUS_ACTIVE). - Click on the button to Create the Ad (or equivalent save action).







