Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt

Use this file to discover all available pages before exploring further.

Create or update a Facebook campaign
PUT https://services.leadconnectorhq.com/ad-publishing/facebook/campaigns

Autorizacion

Authorization
string
required
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.

Body

id
string
default:"camp_123"
Campaign identifier
locationId
string
default:"loc_abc123"
required
Account identifier
name
string
default:"Summer Campaign"
Campaign name
objective
string
default:"LEAD_GENERATION"
Campaign objective Posibles valores: ‘OUTCOME_LEADS’, ‘OUTCOME_TRAFFIC’, ‘OUTCOME_ENGAGEMENT’, ‘OUTCOME_SALES’
specialAdCategories
string
Special ad categories Posibles valores: ‘EMPLOYMENT’, ‘CREDIT’, ‘FINANCIAL_PRODUCTS_SERVICES’, ‘HOUSING’, ‘ISSUES_ELECTIONS_POLITICS’, ‘ONLINE_GAMBLING_AND_GAMING’, ‘NONE’
source
string
default:"facebook"
Campaign data source

Respuestas

{}
{}
{}

Ejemplo

curl -X PUT 'https://services.leadconnectorhq.com/ad-publishing/facebook/campaigns' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "camp_123",
  "locationId": "loc_abc123",
  "name": "Summer Campaign",
  "objective": "LEAD_GENERATION",
  "specialAdCategories": "EMPLOYMENT",
  "source": "facebook"
}'