- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- CallConversion
- CallConversionResult
- Try it!
Processes the given call conversions.
List of thrown errors: AuthenticationError AuthorizationError HeaderError InternalError PartialFailureError QuotaError RequestError
HTTP request
POST https://googleads.googleapis.com/v16/customers/{customerId}:uploadCallConversions
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
customerId |
Required. The ID of the customer performing the upload. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"conversions": [
{
object ( |
Fields | |
---|---|
conversions[] |
Required. The conversions that are being uploaded. |
partialFailure |
Required. If true, successful operations will be carried out and invalid operations will return errors. If false, all operations will be carried out in one transaction if and only if they are all valid. This should always be set to true. See https://developers.google.com/google-ads/api/docs/best-practices/partial-failures for more information about partial failure. |
validateOnly |
If true, the request is validated but not executed. Only errors are returned, not results. |
Response body
Response message for ConversionUploadService.UploadCallConversions
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "partialFailureError": { object ( |
Fields | |
---|---|
partialFailureError |
Errors that pertain to conversion failures in the partial failure mode. Returned when all errors occur inside the conversions. If any errors occur outside the conversions (for example, auth errors), we return an RPC level error. See https://developers.google.com/google-ads/api/docs/best-practices/partial-failures for more information about partial failure. |
results[] |
Returned for successfully processed conversions. Proto will be empty for rows that received an error. Results are not returned when validateOnly is true. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/adwords
For more information, see the OAuth 2.0 Overview.
CallConversion
A call conversion.
JSON representation |
---|
{ "customVariables": [ { object ( |
Fields | |
---|---|
customVariables[] |
The custom variables associated with this conversion. |
consent |
The consent setting for the event. |
callerId |
The caller id from which this call was placed. Caller id is expected to be in E.164 format with preceding '+' sign, for example, "+16502531234". |
callStartDateTime |
The date time at which the call occurred. The timezone must be specified. The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00". |
conversionAction |
Resource name of the conversion action associated with this conversion. Note: Although this resource name consists of a customer id and a conversion action id, validation will ignore the customer id and use the conversion action id as the sole identifier of the conversion action. |
conversionDateTime |
The date time at which the conversion occurred. Must be after the call time. The timezone must be specified. The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00". |
conversionValue |
The value of the conversion for the advertiser. |
currencyCode |
Currency associated with the conversion value. This is the ISO 4217 3-character currency code. For example: USD, EUR. |
CallConversionResult
Identifying information for a successfully processed CallConversionUpload.
JSON representation |
---|
{ "callerId": string, "callStartDateTime": string, "conversionAction": string, "conversionDateTime": string } |
Fields | |
---|---|
callerId |
The caller id from which this call was placed. Caller id is expected to be in E.164 format with preceding '+' sign. |
callStartDateTime |
The date time at which the call occurred. The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00". |
conversionAction |
Resource name of the conversion action associated with this conversion. |
conversionDateTime |
The date time at which the conversion occurred. The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00". |