subaccounts

POST /userprofiles/{userprofilesId}/subaccounts

Inserts a new subaccount.

Request

  • Base URL
    https://dfareporting.googleapis.com/dfareporting/v5
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/dfatrafficking
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/dfatrafficking
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

userprofilesIdstring required

Request body

accountIdstring int64

ID of the account that contains this subaccount. This is a read-only field that can be left blank.

availablePermissionIdsstring[]

IDs of the available user role permissions for this subaccount.

idstring int64

ID of this subaccount. This is a read-only, auto-generated field.

kindstring

Identifies what kind of resource this is. Value: the fixed string "dfareporting#subaccount".

namestring

Name of this subaccount. This is a required field. Must be less than 128 characters long and be unique among subaccounts of the same account.

Response

Successful response

accountIdstring int64

ID of the account that contains this subaccount. This is a read-only field that can be left blank.

availablePermissionIdsstring[]

IDs of the available user role permissions for this subaccount.

idstring int64

ID of this subaccount. This is a read-only, auto-generated field.

kindstring

Identifies what kind of resource this is. Value: the fixed string "dfareporting#subaccount".

namestring

Name of this subaccount. This is a required field. Must be less than 128 characters long and be unique among subaccounts of the same account.

Changes

No recorded changes to this operation across all 5 revisions of this API.