CreateSpendCap

Create a spend cap of an ad account.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Identifier of the platform who requests management api. It is passed as a path parameter.

string
required

AdAccount id.

Body Params
string

Title of spend cap. Required.

schedule
object

Campaign's interval with start and end timestamps in RFC3339 format.
The Campaign will conceptually run during [schedule_start, schedule_end] inclusively.
It is highly recommended that schedule.start is set to UTC corresponding to the beginning of the day (00:00:00), and schedule.end is set to UTC corresponding to the end of the day (23:59:59) both in the ad account's timezone.
If you want to set no end date, make sure your platform supports no end date setting and just leave schedule_end blank.

budget
object

Budget is the SpendCap-specific budget shape. Intentionally
separate from common.Budget (used by campaigns) so the Period
enum can carry MONTHLY without leaking the value to campaign
surfaces.

string

A reference comment for transaction. Optional.

string
enum
Defaults to UNKNOWN_PURPOSE

Purpose discriminates between SpendCaps representing the
advertiser's own funds (ADVERTISER_FUNDS, the default and
historical behavior) and platform-issued credits (CREDITS).
ADVERTISER_FUNDS on the public API maps to FUNDS on the
internal storage proto.

Allowed:
string
enum
Defaults to UNKNOWN_CAMPAIGN_ASSIGNMENT_SCOPE

CampaignAssignmentScope selects whether this SpendCap applies
only to explicitly assigned campaigns or to every campaign in
the owning ad account. Mirrors the AlloyDB enum
{platform}.spend_cap_campaign_assignment_scope_enum.

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json