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 ad (v2)
PUT https://services.leadconnectorhq.com/ad-publishing/facebook/ads-v2
Autorizacion
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.
Body
locationId
string
default:"loc_abc123"
required
Account identifier
name
string
default:"My Ad Creative"
Ad name
primaryText
string
default:"Check out our offer!"
Ad primary text
headline
string
default:"Great Deal"
Ad headline text
description
string
default:"Limited time offer"
Ad description text
imageUrl
string
default:"https://example.com/img.jpg"
Ad image URL
Ad media type Posibles valores: ‘SINGLE’, ‘CAROUSEL’
Media items (images or videos) attached to the ad creative
src
string
default:"https://example.com/image.jpg"
required
Media source URL
thumbnailUrl
string
default:"https://example.com/thumb.jpg"
Thumbnail URL (required when type is video)
Selected poster index (required when type is video)
type
string
default:"IMAGE"
required
Media content type Posibles valores: ‘image’, ‘video’
name
string
default:"ad_image.jpg"
Media file name
headline
string
default:"Great Offer"
Media headline
description
string
default:"Click to learn more"
Media description
link
string
default:"https://example.com"
Media destination link
Enable multi-advertiser ads
campaignId
string
default:"camp_123"
required
Parent campaign ID
adsetId
string
default:"adset_123"
required
Parent ad set ID
cta
string
default:"LEARN_MORE"
Call to action type
destinationLink
string
default:"https://example.com"
Destination link URL
Respuestas
422 - Unprocessable Entity
Ejemplo
curl -X PUT 'https://services.leadconnectorhq.com/ad-publishing/facebook/ads-v2' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Version: 2021-07-28' \
-H 'Content-Type: application/json' \
-d '{
"id": "ad_123",
"locationId": "loc_abc123",
"name": "My Ad Creative",
"primaryText": "Check out our offer!",
"headline": "Great Deal",
"description": "Limited time offer",
"imageUrl": "https://example.com/img.jpg",
"mediaType": "SINGLE",
"media": [
{
"src": "https://example.com/image.jpg",
"thumbnailUrl": "https://example.com/thumb.jpg",
"selectedPoster": 0,
"type": "IMAGE",
"name": "ad_image.jpg"
}
],
"multiAdvertiserAds": false,
"campaignId": "camp_123",
"adsetId": "adset_123",
"cta": "LEARN_MORE",
"conversationFormId": "conv_123",
"destinationLink": "https://example.com",
"destinationFormId": "form_123"
}'