AI-generated Key Takeaways
-
The content provides details on how to insert conversions using an HTTP POST request to a specific API endpoint.
-
The request requires a
profileIdas a path parameter and a request body containing aConversionsBatchInsertRequestobject. -
The response body indicates the success or failure of the conversion insertions and provides the status for each.
-
Authorization requires the
https://www.googleapis.com/auth/ddmconversionsOAuth scope.
- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- ConversionsBatchInsertRequest
- Try it!
Inserts conversions.
HTTP request
POST https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/{profileId}/conversions/batchinsert
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
profileId |
User profile ID associated with this request. |
Request body
The request body contains an instance of ConversionsBatchInsertRequest.
Response body
Insert Conversions Response.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"hasFailures": boolean,
"status": [
{
object ( |
| Fields | |
|---|---|
hasFailures |
Indicates that some or all conversions failed to insert. |
status[] |
The insert status of each conversion. Statuses are returned in the same order that conversions are inserted. |
kind |
Identifies what kind of resource this is. Value: the fixed string
. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/ddmconversions
ConversionsBatchInsertRequest
Insert Conversions Request.
| JSON representation |
|---|
{ "kind": string, "conversions": [ { object ( |
| Fields | |
|---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string
. |
conversions[] |
The set of conversions to insert. |
encryptionInfo |
Describes how
or
is encrypted. This is a required field if
or
is used. |