Update a Campaign
PUT/v1/campaigns/:campaignId
Update a Campaign
Request
Path Parameters
The Campaign identifier to update.
- application/json
Body
The request received from the client.
Array [
]
The Campaign identifier to update.
The name of the Campaign
bidAmount
object
required
Represents an amount of money with its currency type.
The whole units of the amount.
For example if currencyCode
is "USD"
, then 1 unit is one US dollar.
Number of nano (10^-9) units of the amount.
The value must be between -999,999,999 and +999,999,999 inclusive.
If units
is positive, nanos
must be positive or zero.
If units
is zero, nanos
can be positive, zero, or negative.
If units
is negative, nanos
must be negative or zero.
For example $-1.75 is represented as units
=-1 and nanos
=-750,000,000.
query
object
required
A query containing conditions that all need to match against a Data Instance.
conditions
object[]
required
The query conditions.
The name of the property on the Data Instance as defined in the Data Specification.
(Optional) If a given Data Instance is missing a value for the property that this condition targets, should this condition be considered a match. This value can only be specified for properties that are not required on the Data Specification.
onWin
object
Preferences for being notified.
The email address to which to send notifications.
The phone number to which to send notifications.
Whether to notify by email to the given email address.
Whether to notify by text message to the given phone number.
onLose
object
Preferences for being notified.
The email address to which to send notifications.
The phone number to which to send notifications.
Whether to notify by email to the given email address.
Whether to notify by text message to the given phone number.
(Optional) Whether to use global bid preferences for this Campaign. This overrides any local bid preferences
bidPreferences
object
Preferences for when to bid and limits on bidding.
Whether bids should be placed on Mondays.
Whether bids should be placed on Tuesdays.
Whether bids should be placed on Wednesdays.
Whether bids should be placed on Thursdays.
Whether bids should be placed on Fridays.
Whether bids should be placed on Saturdays.
Whether bids should be placed on Sundays.
bidTimeFrom
object
Represents a time of day. The date and time zone are not significant
Hours of day in 24 hour format. Must be from 0 to 23
Minutes of hour of day. Must be from 0 to 59.
Seconds of minutes of the time. Must be from 0 to 59
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
bidTimeTo
object
Represents a time of day. The date and time zone are not significant
Hours of day in 24 hour format. Must be from 0 to 23
Minutes of hour of day. Must be from 0 to 59.
Seconds of minutes of the time. Must be from 0 to 59
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
(Optional) A limit for the number of bids that can be placed daily.
dailySpendLimit
object
Represents an amount of money with its currency type.
The whole units of the amount.
For example if currencyCode
is "USD"
, then 1 unit is one US dollar.
Number of nano (10^-9) units of the amount.
The value must be between -999,999,999 and +999,999,999 inclusive.
If units
is positive, nanos
must be positive or zero.
If units
is zero, nanos
can be positive, zero, or negative.
If units
is negative, nanos
must be negative or zero.
For example $-1.75 is represented as units
=-1 and nanos
=-750,000,000.
Metadata that can be returned when this Campaign has the winning bid for a Data Instance