---
title: "PATCH /userprofiles/{+profileId}/sites"
method: PATCH
path: "/userprofiles/{+profileId}/sites"
tags: ["sites"]
---

# PATCH /userprofiles/{+profileId}/sites

`PATCH /userprofiles/{+profileId}/sites`

Updates an existing site. This method supports patch semantics.

## Path parameters

- `profileId` string, required

## Query parameters

- `id` string, required

## Request body

- Site — Contains properties of a site.
  - `siteContacts` SiteContact[] — Site contacts.
    - `lastName` string — Last name of this site contact.
    - `address` string — Address of this site contact.
    - `id` string, int64 — ID of this site contact. This is a read-only, auto-generated field.
    - `phone` string — Primary phone number of this site contact.
    - `firstName` string — First name of this site contact.
    - `title` string — Title or designation of this site contact.
    - `email` string — Email address of this site contact. This is a required field.
    - `contactType` 'SALES_PERSON' | 'TRAFFICKER' — Site contact type.
  - `videoSettings` SiteVideoSettings — Video Settings
    - `orientation` 'ANY' | 'LANDSCAPE' | 'PORTRAIT' — Orientation of a site template used for video. This will act as default for new placements created under this site.
    - `obaEnabled` boolean — Whether OBA icons are enabled for this placement.
    - `transcodeSettings` SiteTranscodeSetting — Transcode Settings
      - `enabledVideoFormats` integer[] — Allowlist of video formats to be served to this site template. Set this list to null or empty to serve all video formats.
      - `kind` string — Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteTranscodeSetting".
    - `obaSettings` ObaIcon — Online Behavioral Advertiser icon.
      - `yPosition` string — OBA icon y coordinate position. Accepted values are top or bottom.
      - `xPosition` string — OBA icon x coordinate position. Accepted values are left or right.
      - `size` Size — Represents the dimensions of ads, placements, creatives, or creative assets.
        - `kind` string — Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
        - `id` string, int64 — ID of this size. This is a read-only, auto-generated field.
        - `width` integer — Width of this size. Acceptable values are 0 to 32767, inclusive.
        - `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.
      - `resourceUrl` string — OBA icon resource URL. Campaign Manager only supports image and JavaScript icons. Learn more
      - `program` string — Identifies the industry initiative that the icon supports. For example, AdChoices.
      - `iconClickThroughUrl` string — URL to redirect to when an OBA icon is clicked.
      - `iconClickTrackingUrl` string — URL to track click when an OBA icon is clicked.
      - `iconViewTrackingUrl` string — URL to track view when an OBA icon is clicked.
    - `companionSettings` SiteCompanionSetting — Companion Settings
      - `enabledSizes` Size[] — Allowlist of companion sizes to be served via this site template. Set this list to null or empty to serve all companion sizes.
        - `kind` string — Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
        - `id` string, int64 — ID of this size. This is a read-only, auto-generated field.
        - `width` integer — Width of this size. Acceptable values are 0 to 32767, inclusive.
        - `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.
      - `companionsDisabled` boolean — Whether companions are disabled for this site template.
      - `imageOnly` boolean — Whether to serve only static images as companions.
      - `kind` string — Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteCompanionSetting".
    - `kind` string — Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteVideoSettings".
    - `publisherSpecificationId` string, int64 — Publisher specification ID used to identify site-associated publisher requirements and automatically populate transcode settings. If publisher specification ID is specified, it will take precedence over transcode settings. Possible values are: * `1`, Hulu * `2`, NBC * `3`, CBS * `4`, CBS Desktop * `5`, Discovery * `6`, VEVO HD * `7`, VEVO Vertical * `8`, Fox * `9`, CW Network * `10`, Disney * `11`, IGN * `12`, NFL.com * `13`, Turner Broadcasting * `14`, Tubi on Fox * `15`, Hearst Corporation * `16`, Twitch Desktop * `17`, ABC * `18`, Univision * `19`, MLB.com * `20`, MLB.com Mobile * `21`, MLB.com OTT * `22`, Polsat * `23`, TVN * `24`, Mediaset * `25`, Antena 3 * `26`, Mediamond * `27`, Sky Italia * `28`, Tubi on CBS * `29`, Spotify * `30`, Paramount * `31`, Max
    - `skippableSettings` SiteSkippableSetting — Skippable Settings
      - `progressOffset` VideoOffset — Video Offset
        - `offsetPercentage` integer — Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
        - `offsetSeconds` integer — Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
      - `skippable` boolean — Whether the user can skip creatives served to this site. This will act as default for new placements created under this site.
      - `kind` string — Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteSkippableSetting".
      - `skipOffset` VideoOffset — Video Offset
        - `offsetPercentage` integer — Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
        - `offsetSeconds` integer — Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
  - `name` string — Name of this site.This is a required field. Must be less than 128 characters long. If this site is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this site is a top-level site, and the name must be unique among top-level sites of the same account.
  - `accountId` string, int64 — Account ID of this site. This is a read-only field that can be left blank.
  - `approved` boolean — Whether this site is approved.
  - `idDimensionValue` DimensionValue — Represents a DimensionValue resource.
    - `id` string — The ID associated with the value if available.
    - `dimensionName` string — The name of the dimension.
    - `value` string — The value of the dimension.
    - `matchType` 'EXACT' | 'BEGINS_WITH' | 'CONTAINS' | 'WILDCARD_EXPRESSION' — Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
    - `kind` string — The kind of resource this is, in this case dfareporting#dimensionValue.
    - `etag` string — The eTag of this response for caching purposes.
  - `directorySiteIdDimensionValue` DimensionValue — Represents a DimensionValue resource.
    - `id` string — The ID associated with the value if available.
    - `dimensionName` string — The name of the dimension.
    - `value` string — The value of the dimension.
    - `matchType` 'EXACT' | 'BEGINS_WITH' | 'CONTAINS' | 'WILDCARD_EXPRESSION' — Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
    - `kind` string — The kind of resource this is, in this case dfareporting#dimensionValue.
    - `etag` string — The eTag of this response for caching purposes.
  - `id` string, int64 — ID of this site. This is a read-only, auto-generated field.
  - `keyName` string — Key name of this site. This is a read-only, auto-generated field.
  - `adServingPlatformId` string, int64 — Optional. Ad serving platform ID to identify the ad serving platform used by the site. Measurement partners can use this field to add ad-server specific macros. If set, this value acts as the default during placement creation. Possible values are: * `1`, Adelphic * `2`, Adform * `3`, Adobe * `4`, Amobee * `5`, Basis (Centro) * `6`, Beeswax * `7`, Amazon * `8`, DV360 (DBM) * `9`, Innovid * `10`, MediaMath * `11`, Roku OneView DSP * `12`, TabMo Hawk * `13`, The Trade Desk * `14`, Xandr Invest DSP * `15`, Yahoo DSP * `16`, Zeta Global * `17`, Scaleout * `18`, Bidtellect * `19`, Unicorn * `20`, Teads * `21`, Quantcast * `22`, Cognitiv * `23`, AdTheorent * `24`, DeepIntent * `25`, Pulsepoint
  - `siteSettings` SiteSettings — Site Settings
    - `vpaidAdapterChoiceTemplate` 'DEFAULT' | 'FLASH' | 'HTML5' | 'BOTH' — Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter). *Note:* Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
    - `disableNewCookie` boolean — Whether new cookies are disabled for this site.
    - `tagSetting` TagSetting — Tag Settings
      - `includeClickTracking` boolean — Whether click-tracking string should be included in the tags.
      - `includeClickThroughUrls` boolean — Whether static landing page URLs should be included in the tags. New placements will default to the value set on their site.
      - `additionalKeyValues` string — Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
      - `includeUnescapedlpurlMacro` boolean — Optional. Indicates that the unescapedlpurl macro should be included in the tag for the static landing page. New placements will default to the value set on their site.
      - `keywordOption` 'PLACEHOLDER_WITH_LIST_OF_KEYWORDS' | 'IGNORE' | 'GENERATE_SEPARATE_TAG_FOR_EACH_KEYWORD' — Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
    - `activeViewOptOut` boolean — Whether active view creatives are disabled for this site.
    - `adBlockingOptOut` boolean — Whether this site opts out of ad blocking. When true, ad blocking is disabled for all placements under the site, regardless of the individual placement settings. When false, the campaign and placement settings take effect.
    - `videoActiveViewOptOutTemplate` boolean — Whether Verification and ActiveView for in-stream video creatives are disabled by default for new placements created under this site. This value will be used to populate the placement.videoActiveViewOptOut field, when no value is specified for the new placement.
  - `directorySiteId` string, int64 — Directory site associated with this site. This is a required field that is read-only after insertion.
  - `kind` string — Identifies what kind of resource this is. Value: the fixed string "dfareporting#site".
  - `subaccountId` string, int64 — Subaccount ID of this site. This is a read-only field that can be left blank.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/dfareporting.md) · [All operations](https://skmtc.net/google/apis/dfareporting/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/dfareporting/revisions/8163d57aeb31/schema)
