{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-campaign-manager/json-schema/google-campaign-manager-placement-groups-list-response-schema.json",
  "title": "PlacementGroupsListResponse",
  "description": "Placement Group List Response",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-campaign-manager-placement-groups-api-openapi.yml#/components/schemas/PlacementGroupsListResponse",
  "type": "object",
  "properties": {
    "nextPageToken": {
      "type": "string",
      "description": "Pagination token to be used for the next list operation."
    },
    "placementGroups": {
      "items": {
        "$ref": "#/$defs/PlacementGroup"
      },
      "type": "array",
      "description": "Placement group collection."
    },
    "kind": {
      "type": "string",
      "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#placementGroupsListResponse\"."
    }
  },
  "$defs": {
    "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"
        }
      }
    },
    "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": "#/$defs/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": "#/$defs/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": "#/$defs/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": "#/$defs/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": "#/$defs/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": "#/$defs/PricingSchedule",
          "description": "Pricing schedule of this placement group. This field is required on insertion."
        },
        "advertiserIdDimensionValue": {
          "$ref": "#/$defs/DimensionValue",
          "description": "Dimension value for the ID of the advertiser. This is a read-only, auto-generated field."
        },
        "campaignIdDimensionValue": {
          "$ref": "#/$defs/DimensionValue",
          "description": "Dimension value for the ID of the campaign. This is a read-only, auto-generated field."
        },
        "lastModifiedInfo": {
          "$ref": "#/$defs/LastModifiedInfo",
          "description": "Information about the most recent modification of this placement group. This is a read-only field."
        }
      }
    },
    "PricingSchedule": {
      "properties": {
        "pricingPeriods": {
          "items": {
            "$ref": "#/$defs/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"
    }
  }
}