Adlyft
  1. Campaigns
Adlyft
  • Introduction
  • Getting Started
  • Auth Mangment
    • Get User Token
      POST
    • Refresh User Token
      GET
  • Workspace Mangment
    • Create Workspace
      POST
    • Get single workspace
      GET
    • Update Workspace
      PATCH
    • Delete Worksapace
      DELETE
    • Change Workspace Admin
      PATCH
  • Team Mangment
    • Create Team
    • Get Enterprise Team
    • Assign member
    • Get team members
    • Get Team By ID
    • Update Team Name
    • Delete Team
  • Connection
    • Create Connection
    • Get all tenant connections
    • Get connections by teamId
    • List of ad accounts and their connection statuses.
    • Delete connection
    • Disconnect
    • Get insights
  • Ads Account Mangment
    • Assign ad account
    • Revoke ad account
    • Change ad account
  • Meta
    • Campaigns
      • Get Campaigns
        GET
      • Update Campaign Status
        PATCH
      • Create Lead Campaign
        POST
      • Create Traffic Campaign
        POST
      • Create Sales Campaign
        POST
      • Create Awareness Campaign
        POST
      • Create Engagement Campaign
        POST
    • Lead Form
      • Get Page Lead forms
      • Create Page Lead form
    • Pixels
      • Get Pixels
      • Create Pixel
    • Audience
      • Get Saved Audience
      • Get Custom Audience
    • Import
      GET
    • Facebook pages
      GET
    • Targeting Search
      POST
    • Get Ads
      GET
    • Get AdSet
      GET
    • Get AdCreative
      GET
    • Get Insights
      GET
  1. Campaigns

Create Traffic Campaign

Developing
POST
{teamId}/meta/campaign/lead
This endpoint is used to create a campaign for leads ads. Lead generation ads are ad campaigns designed to collect contact information (like name, email, phone number) directly from users on Meta platforms without needing them to leave the app.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Query Params

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://staging.api.adlyft.otomatika.net/api/v1/cabbdc29-3fe5-43c7-b815-084ab7c9f6fe/meta/campaign/lead?adAccountId=act_1342045733694920' \
--header 'x-api-key: $2b$10$3gm2vjmU2FT2iHNlwu/Lg.Gwta4oya1evIS8uBXp5Zs/5Kelh0aCK' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "campaignName": "Traffic Campaign - Link Clicks",
    "status": "PAUSED",
    "budget": 100,
    "adSetName": "Traffic Ad Set - Link Clicks",
    "pageId": "173764419345388",
    "optimizationGoal": "LINK_CLICKS",
    "conversionLocation": "WEBSITE",
    "creatives": {
        "primaryText": "Check out our website!",
        "headline": "Best Products",
        "callToAction": "LEARN_MORE",
        "imageUrl": "https://images.pexels.com/photos/998641/pexels-photo-998641.jpeg?cs=srgb&dl=pexels-francesco-ungaro-998641.jpg&fm=jpg",
        "url": "https://example.com"
    }
}'
Response Response Example
{}
Modified at 2025-11-25 10:46:28
Previous
Create Lead Campaign
Next
Create Sales Campaign
Built with