Skip to main content
POST
/
api
/
v1
/
google-ads
/
ad-schedule
Create Ad Schedule
curl --request POST \
  --url http://localhost:8000/api/v1/google-ads/ad-schedule \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "campaign_id": 123,
  "entries": [
    {
      "day_of_week": "MONDAY",
      "start_hour": 11,
      "end_hour": 12,
      "start_minute": 0,
      "end_minute": 0
    }
  ]
}
'
{
  "success": true,
  "successful_count": 0,
  "failed_count": 0,
  "errors": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

customer_id
integer
required
token_id
integer | null

Optional specific Token ID

Body

application/json

Request to add ad schedule entries to a campaign.

campaign_id
integer
required

Campaign to add schedule to

entries
AdScheduleEntryInput · object[]
required

Schedule entries to add

Minimum array length: 1

Response

Successful Response

Result of a campaign criteria mutation.

success
boolean
required
successful_count
integer
default:0
failed_count
integer
default:0
errors
Errors · object[] | null