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 full Google Ads campaign structure
PUT https://services.leadconnectorhq.com/ad-publishing/google/ads

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
Campaign identifier
name
string
default:"My Campaign"
required
Campaign name
locationId
string
default:"loc_abc123"
required
Account identifier
advertisingChannelType
string
required
Advertising channel Posibles valores: ‘SEARCH’, ‘DISCOVERY’, ‘DISPLAY’, ‘HOTEL’, ‘LOCAL’, ‘MULTI_CHANNEL’, ‘PERFORMANCE_MAX’, ‘DEMAND_GEN’
advertisingChannelSubType
string
Channel sub type Posibles valores: ‘DEMAND_GEN’
goalType
string
Goal type Posibles valores: ‘WEBSITE_TRAFFIC’, ‘LEAD’
budget
object
Campaign budget
audience
object
Campaign audience targeting
networkSettings
object
Network settings
biddingStrategy
object
Bidding strategy config
assets
object
Campaign assets
isEuPoliticalAds
boolean
default:"False"
EU political ads flag
adGroups
object[]
Campaign ad groups
campaignGoal
object
Campaign goal config
adSchedule
object[]
Ad schedule rules
publishingStatus
string
Publishing status Posibles valores: ‘DRAFT’, ‘SCHEDULED’, ‘PUBLISHED’, ‘PUBLISHING’, ‘FAILED’, ‘IN_REVIEW’, ‘PAUSED’, ‘ARCHIVED’, ‘WITH_ISSUES’, ‘REJECTED’
googleAdAccountId
string
Google Ad account identifier
unpublishedChanges
boolean
Whether the campaign has unpublished changes
maximumCpc
number
Maximum CPC bid in micros
googleCampaignId
string
Google Ads campaign resource ID
source
string
default:"WEBSITE"
Traffic source
advancedOptions
object
Advanced options

Respuestas

{}
{}
{}

Ejemplo

curl -X PUT 'https://services.leadconnectorhq.com/ad-publishing/google/ads' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "string",
  "name": "My Campaign",
  "locationId": "loc_abc123",
  "advertisingChannelType": "SEARCH",
  "advertisingChannelSubType": "DEMAND_GEN",
  "goalType": "WEBSITE_TRAFFIC",
  "isEuPoliticalAds": false,
  "adGroups": [
    {
      "id": "string",
      "adGroupId": "string",
      "name": "Ad Group 1",
      "adCampaignId": "string",
      "adContent": [
        {}
      ],
      "publishingStatus": "DRAFT",
      "adGroupError": "string",
      "googleAdGroupId": "string",
      "customChannels": true,
      "selectedChannels": [
        "GMAIL"
      ],
      "googleAudienceId": "string"
    }
  ],
  "adSchedule": [
    {
      "dayOfWeek": "FRIDAY",
      "from": "09:00",
      "to": "17:00"
    }
  ],
  "publishingStatus": "DRAFT",
  "googleAdAccountId": "string",
  "unpublishedChanges": true,
  "maximumCpc": 0,
  "googleCampaignId": "string",
  "source": "WEBSITE",
  "advancedOptions": {}
}'