Google Campaign Manager Placement Groups API
The PlacementGroups API from Google Campaign Manager — 2 operation(s) for placementgroups.
The PlacementGroups API from Google Campaign Manager — 2 operation(s) for placementgroups.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/google-campaign-manager:google-campaign-manager-placementgroups-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Campaign Manager 360 Placement Groups API
version: v5
description: Generated from Google's published Discovery document for Campaign Manager 360 API (dfareporting v5, revision 20261107). 5 operation(s).
contact:
name: Google
url: https://developers.google.com/
termsOfService: https://developers.google.com/terms
servers:
- url: https://dfareporting.googleapis.com
tags:
- name: PlacementGroups
paths:
/dfareporting/v5/userprofiles/{userprofilesId}/placementGroups/{placementGroupsId}:
get:
operationId: dfareporting.placementGroups.get
summary: Get placementGroups
description: Gets one placement group by ID.
parameters:
- name: userprofilesId
in: path
required: true
description: Resource name segment (userprofilesId).
schema:
type: string
- name: placementGroupsId
in: path
required: true
description: Resource name segment (placementGroupsId).
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/PlacementGroup'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/dfatrafficking
- apiKey: []
tags:
- PlacementGroups
/dfareporting/v5/userprofiles/{userprofilesId}/placementGroups:
patch:
operationId: dfareporting.placementGroups.patch
summary: Patch placementGroups
description: Updates an existing placement group. This method supports patch semantics.
parameters:
- name: userprofilesId
in: path
required: true
description: Resource name segment (userprofilesId).
schema:
type: string
- name: id
in: query
required: true
description: Required. Placement ID.
schema:
format: int64
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PlacementGroup'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/PlacementGroup'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/dfatrafficking
- apiKey: []
tags:
- PlacementGroups
get:
operationId: dfareporting.placementGroups.list
summary: List placementGroups
description: Retrieves a list of placement groups, possibly filtered. This method supports paging.
parameters:
- name: userprofilesId
in: path
required: true
description: Resource name segment (userprofilesId).
schema:
type: string
- name: activeStatus
in: query
required: false
description: Select only placements with these active statuses.
schema:
type: array
items:
enum:
- PLACEMENT_STATUS_UNKNOWN
- PLACEMENT_STATUS_ACTIVE
- PLACEMENT_STATUS_INACTIVE
- PLACEMENT_STATUS_ARCHIVED
- PLACEMENT_STATUS_PERMANENTLY_ARCHIVED
type: string
- name: advertiserIds
in: query
required: false
description: Select only placement groups that belong to these advertisers.
schema:
type: array
items:
format: int64
type: string
- name: campaignIds
in: query
required: false
description: Select only placement groups that belong to these campaigns.
schema:
type: array
items:
type: string
format: int64
- name: contentCategoryIds
in: query
required: false
description: Select only placement groups that are associated with these content categories.
schema:
type: array
items:
format: int64
type: string
- name: directorySiteIds
in: query
required: false
description: Select only placement groups that are associated with these directory sites.
schema:
type: array
items:
type: string
format: int64
- name: ids
in: query
required: false
description: Select only placement groups with these IDs.
schema:
type: array
items:
type: string
format: int64
- name: maxEndDate
in: query
required: false
description: Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as "yyyy-MM-dd".
schema:
type: string
- name: maxResults
in: query
required: false
description: Maximum number of results to return.
schema:
type: integer
default: '800'
format: int32
- name: maxStartDate
in: query
required: false
description: Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as "yyyy-MM-dd".
schema:
type: string
- name: minEndDate
in: query
required: false
description: Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as "yyyy-MM-dd".
schema:
type: string
- name: minStartDate
in: query
required: false
description: Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as "yyyy-MM-dd".
schema:
type: string
- name: pageToken
in: query
required: false
description: Value of the nextPageToken from the previous result page.
schema:
type: string
- name: placementGroupType
in: query
required: false
description: Select only placement groups belonging with this group type. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting.
schema:
enum:
- PLACEMENT_PACKAGE
- PLACEMENT_ROADBLOCK
type: string
- name: placementStrategyIds
in: query
required: false
description: Select only placement groups that are associated with these placement strategies.
schema:
type: array
items:
format: int64
type: string
- name: pricingTypes
in: query
required: false
description: Select only placement groups with these pricing types.
schema:
type: array
items:
enum:
- PRICING_TYPE_CPM
- PRICING_TYPE_CPC
- PRICING_TYPE_CPA
- PRICING_TYPE_FLAT_RATE_IMPRESSIONS
- PRICING_TYPE_FLAT_RATE_CLICKS
- PRICING_TYPE_CPM_ACTIVEVIEW
type: string
- name: searchString
in: query
required: false
description: Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For example, "placement*2015" will return placement groups with names like "placement group June 2015", "placement group May 2015", or simply "placements 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "placementgroup" will match placement groups with name "my placementgroup", "placementgroup 2015", or simply "placementgroup".
schema:
type: string
- name: siteIds
in: query
required: false
description: Select only placement groups that are associated with these sites.
schema:
type: array
items:
format: int64
type: string
- name: sortField
in: query
required: false
description: Field by which to sort the list.
schema:
type: string
default: ID
enum:
- ID
- NAME
- name: sortOrder
in: query
required: false
description: Order of sorted results.
schema:
enum:
- ASCENDING
- DESCENDING
type: string
default: ASCENDING
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/PlacementGroupsListResponse'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/dfatrafficking
- apiKey: []
tags:
- PlacementGroups
post:
operationId: dfareporting.placementGroups.insert
summary: Insert placementGroups
description: Inserts a new placement group.
parameters:
- name: userprofilesId
in: path
required: true
description: Resource name segment (userprofilesId).
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PlacementGroup'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/PlacementGroup'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/dfatrafficking
- apiKey: []
tags:
- PlacementGroups
put:
operationId: dfareporting.placementGroups.update
summary: Update placementGroups
description: Updates an existing placement group.
parameters:
- name: userprofilesId
in: path
required: true
description: Resource name segment (userprofilesId).
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PlacementGroup'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/PlacementGroup'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/dfatrafficking
- apiKey: []
tags:
- PlacementGroups
components:
schemas:
LastModifiedInfo:
description: Modification timestamp.
properties:
time:
type: string
description: Timestamp of the last change in milliseconds since epoch.
format: int64
type: object
PlacementGroup:
description: Contains properties of a package or roadblock.
type: object
properties:
comment:
type: string
description: Comments for this placement group.
name:
description: Name of this placement group. This is a required field and must be less than 256 characters long.
type: string
primaryPlacementIdDimensionValue:
$ref: '#/components/schemas/DimensionValue'
description: Dimension value for the ID of the primary placement. This is a read-only, auto-generated field.
advertiserId:
description: Advertiser ID of this placement group. This is a required field on insertion.
type: string
format: int64
accountId:
type: string
format: int64
description: Account ID of this placement group. This is a read-only field that can be left blank.
directorySiteIdDimensionValue:
$ref: '#/components/schemas/DimensionValue'
description: Dimension value for the ID of the directory site. This is a read-only, auto-generated field.
activeStatus:
description: Whether this placement group is active, inactive, archived or permanently archived.
enum:
- PLACEMENT_STATUS_UNKNOWN
- PLACEMENT_STATUS_ACTIVE
- PLACEMENT_STATUS_INACTIVE
- PLACEMENT_STATUS_ARCHIVED
- PLACEMENT_STATUS_PERMANENTLY_ARCHIVED
type: string
directorySiteId:
description: Directory site ID associated with this placement group. On insert, you must set either this field or the site_id field to specify the site associated with this placement group. This is a required field that is read-only after insertion.
type: string
format: int64
id:
description: ID of this placement group. This is a read-only, auto-generated field.
format: int64
type: string
siteId:
format: int64
description: Site ID associated with this placement group. On insert, you must set either this field or the directorySiteId field to specify the site associated with this placement group. This is a required field that is read-only after insertion.
type: string
externalId:
description: External ID for this placement.
type: string
placementStrategyId:
format: int64
description: ID of the placement strategy assigned to this placement group.
type: string
siteIdDimensionValue:
$ref: '#/components/schemas/DimensionValue'
description: Dimension value for the ID of the site. This is a read-only, auto-generated field.
campaignId:
format: int64
type: string
description: Campaign ID of this placement group. This field is required on insertion.
childPlacementIds:
type: array
description: IDs of placements which are assigned to this placement group. This is a read-only, auto-generated field.
items:
type: string
format: int64
placementGroupType:
description: Type of this placement group. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting. This field is required on insertion.
enum:
- PLACEMENT_PACKAGE
- PLACEMENT_ROADBLOCK
type: string
createInfo:
$ref: '#/components/schemas/LastModifiedInfo'
description: Information about the creation of this placement group. This is a read-only field.
subaccountId:
description: Subaccount ID of this placement group. This is a read-only field that can be left blank.
type: string
format: int64
kind:
type: string
description: 'Identifies what kind of resource this is. Value: the fixed string "dfareporting#placementGroup".'
primaryPlacementId:
format: int64
type: string
description: ID of the primary placement, used to calculate the media cost of a roadblock (placement group). Modifying this field will automatically modify the primary field on all affected roadblock child placements.
idDimensionValue:
$ref: '#/components/schemas/DimensionValue'
description: Dimension value for the ID of this placement group. This is a read-only, auto-generated field.
contentCategoryId:
type: string
format: int64
description: ID of the content category assigned to this placement group.
pricingSchedule:
$ref: '#/components/schemas/PricingSchedule'
description: Pricing schedule of this placement group. This field is required on insertion.
advertiserIdDimensionValue:
$ref: '#/components/schemas/DimensionValue'
description: Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
campaignIdDimensionValue:
$ref: '#/components/schemas/DimensionValue'
description: Dimension value for the ID of the campaign. This is a read-only, auto-generated field.
lastModifiedInfo:
$ref: '#/components/schemas/LastModifiedInfo'
description: Information about the most recent modification of this placement group. This is a read-only field.
PlacementGroupsListResponse:
type: object
description: Placement Group List Response
properties:
nextPageToken:
type: string
description: Pagination token to be used for the next list operation.
placementGroups:
items:
$ref: '#/components/schemas/PlacementGroup'
type: array
description: Placement group collection.
kind:
type: string
description: 'Identifies what kind of resource this is. Value: the fixed string "dfareporting#placementGroupsListResponse".'
PricingSchedule:
properties:
pricingPeriods:
items:
$ref: '#/components/schemas/PricingSchedulePricingPeriod'
type: array
description: Pricing periods for this placement.
capCostOption:
type: string
enum:
- CAP_COST_NONE
- CAP_COST_MONTHLY
- CAP_COST_CUMULATIVE
description: Placement cap cost option.
testingStartDate:
type: string
format: date
endDate:
type: string
format: date
floodlightActivityId:
description: Floodlight activity ID associated with this placement. This field should be set when placement pricing type is set to PRICING_TYPE_CPA.
type: string
format: int64
flighted:
description: Whether this placement is flighted. If true, pricing periods will be computed automatically.
type: boolean
startDate:
format: date
type: string
pricingType:
enum:
- PRICING_TYPE_CPM
- PRICING_TYPE_CPC
- PRICING_TYPE_CPA
- PRICING_TYPE_FLAT_RATE_IMPRESSIONS
- PRICING_TYPE_FLAT_RATE_CLICKS
- PRICING_TYPE_CPM_ACTIVEVIEW
description: Placement pricing type. This field is required on insertion.
type: string
description: Pricing Schedule
type: object
PricingSchedulePricingPeriod:
properties:
units:
description: Units of this pricing period. Acceptable values are 0 to 10000000000, inclusive.
type: string
format: int64
startDate:
type: string
format: date
rateOrCostNanos:
format: int64
description: Rate or cost of this pricing period in nanos (i.e., multiplied by 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive.
type: string
endDate:
format: date
type: string
pricingComment:
description: Comments for this pricing period.
type: string
description: Pricing Period
type: object
DimensionValue:
type: object
description: Represents a DimensionValue resource.
properties:
id:
type: string
description: The ID associated with the value if available.
value:
type: string
description: The value of the dimension.
dimensionName:
description: The name of the dimension.
type: string
matchType:
type: string
enum:
- EXACT
- BEGINS_WITH
- CONTAINS
- WILDCARD_EXPRESSION
description: 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.
etag:
type: string
description: The eTag of this response for caching purposes.
kind:
description: The kind of resource this is, in this case dfareporting#dimensionValue.
type: string
GoogleRpcError:
type: object
description: The error envelope every Google API returns.
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
status:
type: string
details:
type: array
items:
type: object
securitySchemes:
apiKey:
type: apiKey
in: query
name: key
description: API key; accepted by methods that do not need user data.
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://accounts.google.com/o/oauth2/auth
tokenUrl: https://oauth2.googleapis.com/token
scopes:
https://www.googleapis.com/auth/ddmconversions: Manage DoubleClick Digital Marketing conversions
https://www.googleapis.com/auth/dfatrafficking: View and manage your DoubleClick Campaign Manager's (DCM) display ad campaigns
https://www.googleapis.com/auth/dfareporting: View and manage DoubleClick for Advertisers reports
externalDocs:
url: https://developers.google.com/doubleclick-advertisers/
x-provenance:
method: harvested
publisher: Google
source: https://dfareporting.googleapis.com/$discovery/rest?version=v5
note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261107)