AI-generated Key Takeaways
-
The Placement resource defines how ad units are grouped together.
-
Key attributes of a Placement include its name, ID, targeted ad units, display name, description, placement code, status, and update time.
-
Placement Status indicates whether stats are collected and if the placement is user-visible.
-
Several methods are available for managing Placements, including batch operations for activating, archiving, creating, deactivating, and updating, as well as methods for creating, getting, listing, and patching individual Placements.
Resource: Placement
The Placement
resource.
| JSON representation |
|---|
{
"name"
:
string
,
"placementId"
:
string
,
"targetedAdUnits"
:
[
string
]
,
"displayName"
:
string
,
"description"
:
string
,
"placementCode"
:
string
,
"status"
:
enum (
|
| Fields | |
|---|---|
name
|
Identifier. The resource name of the |
placementId
|
Output only. |
targetedAdUnits[]
|
Optional. The resource names of AdUnits that constitute the Placement. Format: "networks/{networkCode}/adUnits/{adUnit}" |
displayName
|
Required. The display name of the placement. This attribute has a maximum length of 255 characters. |
description
|
Optional. A description of the Placement. This attribute has a maximum length of 65,535 characters. |
placementCode
|
Output only. A string used to uniquely identify the Placement for purposes of serving the ad. This attribute is assigned by Google. |
status
|
Output only. The status of the Placement. |
updateTime
|
Output only. The instant this Placement was last modified. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
PlacementStatus
Status of the placement.
| Enums | |
|---|---|
PLACEMENT_STATUS_UNSPECIFIED
|
Not specified value. |
ACTIVE
|
Stats are collected, user-visible. |
INACTIVE
|
No stats collected, not user-visible. |
ARCHIVED
|
No stats collected, user-visible. |
Methods |
|
|---|---|
|
Activates a list of Placement
objects. |
|
Archives a list of Placement
objects. |
|
API to batch create Placement
objects. |
|
Deactivates a list of Placement
objects. |
|
API to batch update Placement
objects. |
|
API to create an Placement
object. |
|
API to retrieve a Placement
object. |
|
API to retrieve a list of Placement
objects. |
|
API to update an Placement
object. |

