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 Google Ads conversion action
PUT https://services.leadconnectorhq.com/ad-publishing/google/conversions

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

locationId
string
default:"loc_abc123"
required
Account identifier
conversionId
string
default:"conv_456"
Conversion identifier
name
string
default:"Purchase Conversion"
required
Conversion name
type
string
default:"WEBPAGE"
required
Conversion type Posibles valores: ‘UPLOAD_CLICKS’, ‘UPLOAD_CALLS’, ‘WEBPAGE’, ‘LEAD_FORM_SUBMIT’
category
string
default:"PURCHASE"
required
Conversion category
valueSettings
object
required
Value settings that control how monetary value is attributed to conversions
countingType
string
default:"ONE_PER_CLICK"
required
How conversions are counted per interaction Posibles valores: ‘ONE_PER_CLICK’, ‘MANY_PER_CLICK’
attributionModel
string
default:"GOOGLE_ADS_LAST_CLICK"
required
Attribution model used to credit conversions Posibles valores: ‘GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN’, ‘GOOGLE_ADS_LAST_CLICK’
clickThroughWindow
number
default:"30"
required
Click-through conversion window in days

Respuestas

{}
{}
{}

Ejemplo

curl -X PUT 'https://services.leadconnectorhq.com/ad-publishing/google/conversions' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
  "locationId": "loc_abc123",
  "conversionId": "conv_456",
  "name": "Purchase Conversion",
  "type": "WEBPAGE",
  "category": "PURCHASE",
  "valueSettings": {
    "defaultValue": "10.00",
    "defaultCurrencyCode": "USD",
    "alwaysUseDefaultValue": false
  },
  "countingType": "ONE_PER_CLICK",
  "attributionModel": "GOOGLE_ADS_LAST_CLICK",
  "clickThroughWindow": 30
}'