Method: subaccounts.insert

  • The "Insert Subaccount" method is used to create a new subaccount.

  • This method utilizes an HTTP POST request to a specified URL containing the user profile ID.

  • The request requires a request body containing a Subaccount instance.

  • A successful response will contain a newly created Subaccount instance in the response body.

  • Authorization with the https://www.googleapis.com/auth/dfatrafficking OAuth scope is required to perform this action.

Inserts a new subaccount.

HTTP request

POST https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/{profileId}/subaccounts

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
profileId

string (int64 format)

User profile ID associated with this request.

Request body

The request body contains an instance of Subaccount.

Response body

If successful, the response body contains a newly created instance of Subaccount.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/dfatrafficking