- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- BillingSetupOperation
- MutateBillingSetupResult
- Try it!
Creates a billing setup, or cancels an existing billing setup.
List of thrown errors: AuthenticationError AuthorizationError BillingSetupError DateError FieldError HeaderError InternalError MutateError QuotaError RequestError
HTTP request
POST https://googleads.googleapis.com/v19/customers/{customerId}/billingSetups:mutate
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
customerId |
Required. Id of the customer to apply the billing setup mutate operation to. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"operation": {
object ( |
Fields | |
---|---|
operation |
Required. The operation to perform. |
Response body
Response message for a billing setup operation.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"result": {
object ( |
Fields | |
---|---|
result |
A result that identifies the resource affected by the mutate request. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/adwords
For more information, see the OAuth 2.0 Overview.
BillingSetupOperation
A single operation on a billing setup, which describes the cancellation of an existing billing setup.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field operation . Only one of these operations can be set. "Update" operations are not supported. operation can be only one of the following: |
|
create |
Creates a billing setup. No resource name is expected for the new billing setup. |
remove |
Resource name of the billing setup to remove. A setup cannot be removed unless it is in a pending state or its scheduled start time is in the future. The resource name looks like |
MutateBillingSetupResult
Result for a single billing setup mutate.
JSON representation |
---|
{ "resourceName": string } |
Fields | |
---|---|
resourceName |
Returned for successful operations. |