Module adcp.types.generated_poc.placement
Classes
class Placement (**data: Any)-
Expand source code
class Placement(AdCPBaseModel): model_config = ConfigDict( extra='forbid', ) description: Annotated[ str | None, Field(description='Detailed description of where and how the placement appears') ] = None format_ids: Annotated[ list[format_id.FormatId] | None, Field( description="Format IDs supported by this specific placement (subset of product's formats)", min_length=1, ), ] = None name: Annotated[ str, Field( description="Human-readable name for the placement (e.g., 'Homepage Banner', 'Article Sidebar')" ), ] placement_id: Annotated[ str, Field(description='Unique identifier for the placement within the product') ]Base model for AdCP types with spec-compliant serialization.
AdCP JSON schemas use additionalProperties: false and do not allow null for optional fields. Therefore, optional fields must be omitted entirely when not present (not sent as null).
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- AdCPBaseModel
- pydantic.main.BaseModel
Class variables
var description : str | Nonevar format_ids : list[FormatId] | Nonevar model_configvar name : strvar placement_id : str
Inherited members