---
title: "POST /userprofiles/{userprofilesId}/sizes"
method: POST
path: "/userprofiles/{userprofilesId}/sizes"
tags: ["sizes"]
---

# POST /userprofiles/{userprofilesId}/sizes

`POST /userprofiles/{userprofilesId}/sizes`

## Request

- Base URL: `https://dfareporting.googleapis.com/dfareporting/v5`
- URL: `https://dfareporting.googleapis.com/dfareporting/v5/userprofiles/{userprofilesId}/sizes`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/dfatrafficking`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/dfatrafficking`
- TypeScript: <https://skmtc.dev/google/apis/dfareporting/docs/userprofiles/:userprofilesId/sizes/post.ts> (a function with typed inputs; its response is checked against the schema)

Inserts a new size.

## Path parameters

- `userprofilesId` string, required

## Request body

- Size: Represents the dimensions of ads, placements, creatives, or creative assets.
  - `height` integer: Height of this size. Acceptable values are 0 to 32767, inclusive.
  - `iab` boolean: IAB standard size. This is a read-only, auto-generated field.
  - `id` string, int64: ID of this size. This is a read-only, auto-generated field.
  - `kind` string: Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
  - `width` integer: Width of this size. Acceptable values are 0 to 32767, inclusive.

## Response `200`

Successful response

- Size: Represents the dimensions of ads, placements, creatives, or creative assets.
  - `height` integer: Height of this size. Acceptable values are 0 to 32767, inclusive.
  - `iab` boolean: IAB standard size. This is a read-only, auto-generated field.
  - `id` string, int64: ID of this size. This is a read-only, auto-generated field.
  - `kind` string: Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
  - `width` integer: Width of this size. Acceptable values are 0 to 32767, inclusive.

---

[API](https://skmtc.dev/google/apis/dfareporting.md) - [All operations](https://skmtc.dev/google/apis/dfareporting/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/dfareporting/revisions/be73a9a450de?raw)
