Module adcp.types.generated_poc.cpm_auction_option
Classes
class CpmAuctionPricingOption (**data: Any)-
Expand source code
class CpmAuctionPricingOption(AdCPBaseModel): model_config = ConfigDict( extra='forbid', ) currency: Annotated[ str, Field( description='ISO 4217 currency code', examples=['USD', 'EUR', 'GBP', 'JPY'], pattern='^[A-Z]{3}$', ), ] is_fixed: Annotated[ Literal[False], Field(description='Whether this is a fixed rate (true) or auction-based (false)'), ] min_spend_per_package: Annotated[ float | None, Field( description='Minimum spend requirement per package using this pricing option, in the specified currency', ge=0.0, ), ] = None price_guidance: Annotated[ PriceGuidance, Field(description='Pricing guidance for auction-based CPM bidding') ] pricing_model: Annotated[Literal['cpm'], Field(description='Cost per 1,000 impressions')] pricing_option_id: Annotated[ str, Field( description="Unique identifier for this pricing option within the product (e.g., 'cpm_usd_auction')" ), ]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 currency : strvar is_fixed : Literal[False]var min_spend_per_package : float | Nonevar model_configvar price_guidance : PriceGuidancevar pricing_model : Literal['cpm']var pricing_option_id : str
Inherited members
class PriceGuidance (**data: Any)-
Expand source code
class PriceGuidance(AdCPBaseModel): floor: Annotated[ float, Field( description='Minimum bid price - publisher will reject bids under this value', ge=0.0 ), ] p25: Annotated[float | None, Field(description='25th percentile winning price', ge=0.0)] = None p50: Annotated[float | None, Field(description='Median winning price', ge=0.0)] = None p75: Annotated[float | None, Field(description='75th percentile winning price', ge=0.0)] = None p90: Annotated[float | None, Field(description='90th percentile winning price', ge=0.0)] = NoneBase 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 floor : floatvar model_configvar p25 : float | Nonevar p50 : float | Nonevar p75 : float | Nonevar p90 : float | None
Inherited members