adcp 2.19.0__py3-none-any.whl → 3.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- adcp/ADCP_VERSION +1 -1
- adcp/__init__.py +6 -14
- adcp/__main__.py +94 -51
- adcp/adagents.py +91 -19
- adcp/client.py +865 -0
- adcp/protocols/a2a.py +84 -0
- adcp/protocols/base.py +101 -0
- adcp/protocols/mcp.py +84 -0
- adcp/server/__init__.py +49 -0
- adcp/server/base.py +368 -0
- adcp/server/content_standards.py +561 -0
- adcp/server/governance.py +491 -0
- adcp/server/mcp_tools.py +471 -0
- adcp/server/proposal.py +334 -0
- adcp/server/sponsored_intelligence.py +444 -0
- adcp/types/__init__.py +111 -23
- adcp/types/_ergonomic.py +35 -14
- adcp/types/_generated.py +346 -52
- adcp/types/aliases.py +13 -20
- adcp/types/base.py +1 -1
- adcp/types/generated_poc/adagents.py +196 -189
- adcp/types/generated_poc/content_standards/__init__.py +3 -0
- adcp/types/generated_poc/content_standards/artifact.py +208 -0
- adcp/types/generated_poc/content_standards/artifact_webhook_payload.py +64 -0
- adcp/types/generated_poc/content_standards/calibrate_content_request.py +17 -0
- adcp/types/generated_poc/content_standards/calibrate_content_response.py +74 -0
- adcp/types/generated_poc/content_standards/content_standards.py +66 -0
- adcp/types/generated_poc/content_standards/create_content_standards_request.py +97 -0
- adcp/types/generated_poc/content_standards/create_content_standards_response.py +52 -0
- adcp/types/generated_poc/content_standards/get_content_standards_request.py +21 -0
- adcp/types/generated_poc/content_standards/get_content_standards_response.py +43 -0
- adcp/types/generated_poc/content_standards/get_media_buy_artifacts_request.py +64 -0
- adcp/types/generated_poc/content_standards/get_media_buy_artifacts_response.py +117 -0
- adcp/types/generated_poc/content_standards/list_content_standards_request.py +31 -0
- adcp/types/generated_poc/content_standards/list_content_standards_response.py +48 -0
- adcp/types/generated_poc/content_standards/update_content_standards_request.py +101 -0
- adcp/types/generated_poc/content_standards/update_content_standards_response.py +34 -0
- adcp/types/generated_poc/content_standards/validate_content_delivery_request.py +59 -0
- adcp/types/generated_poc/content_standards/validate_content_delivery_response.py +85 -0
- adcp/types/generated_poc/core/activation_key.py +9 -9
- adcp/types/generated_poc/core/assets/audio_asset.py +6 -6
- adcp/types/generated_poc/core/assets/css_asset.py +3 -3
- adcp/types/generated_poc/core/assets/daast_asset.py +19 -19
- adcp/types/generated_poc/core/assets/html_asset.py +3 -3
- adcp/types/generated_poc/core/assets/image_asset.py +7 -7
- adcp/types/generated_poc/core/assets/javascript_asset.py +4 -4
- adcp/types/generated_poc/core/assets/text_asset.py +3 -3
- adcp/types/generated_poc/core/assets/url_asset.py +4 -4
- adcp/types/generated_poc/core/assets/vast_asset.py +19 -19
- adcp/types/generated_poc/core/assets/video_asset.py +8 -8
- adcp/types/generated_poc/core/assets/webhook_asset.py +10 -10
- adcp/types/generated_poc/core/async_response_data.py +3 -3
- adcp/types/generated_poc/core/brand_manifest.py +122 -59
- adcp/types/generated_poc/core/brand_manifest_ref.py +10 -10
- adcp/types/generated_poc/core/context.py +2 -2
- adcp/types/generated_poc/core/creative_asset.py +20 -19
- adcp/types/generated_poc/core/creative_assignment.py +4 -4
- adcp/types/generated_poc/core/creative_filters.py +18 -28
- adcp/types/generated_poc/core/creative_manifest.py +3 -3
- adcp/types/generated_poc/core/creative_policy.py +5 -5
- adcp/types/generated_poc/core/delivery_metrics.py +33 -33
- adcp/types/generated_poc/core/deployment.py +21 -21
- adcp/types/generated_poc/core/destination.py +12 -12
- adcp/types/generated_poc/core/error.py +7 -7
- adcp/types/generated_poc/core/ext.py +2 -2
- adcp/types/generated_poc/core/format.py +66 -66
- adcp/types/generated_poc/core/format_id.py +6 -6
- adcp/types/generated_poc/core/frequency_cap.py +3 -3
- adcp/types/generated_poc/core/identifier.py +3 -3
- adcp/types/generated_poc/core/mcp_webhook_payload.py +11 -11
- adcp/types/generated_poc/core/measurement.py +9 -9
- adcp/types/generated_poc/core/media_buy.py +8 -8
- adcp/types/generated_poc/core/media_buy_features.py +29 -0
- adcp/types/generated_poc/core/offering.py +80 -0
- adcp/types/generated_poc/core/package.py +9 -9
- adcp/types/generated_poc/core/performance_feedback.py +19 -19
- adcp/types/generated_poc/core/placement.py +5 -5
- adcp/types/generated_poc/core/pricing_option.py +9 -15
- adcp/types/generated_poc/core/product.py +21 -21
- adcp/types/generated_poc/core/product_allocation.py +48 -0
- adcp/types/generated_poc/core/product_filters.py +89 -24
- adcp/types/generated_poc/core/promoted_offerings.py +29 -38
- adcp/types/generated_poc/core/promoted_products.py +3 -3
- adcp/types/generated_poc/core/property.py +10 -10
- adcp/types/generated_poc/core/property_id.py +5 -5
- adcp/types/generated_poc/core/property_list_ref.py +5 -5
- adcp/types/generated_poc/core/property_tag.py +5 -5
- adcp/types/generated_poc/core/proposal.py +64 -0
- adcp/types/generated_poc/core/protocol_envelope.py +9 -9
- adcp/types/generated_poc/core/publisher_property_selector.py +14 -14
- adcp/types/generated_poc/core/push_notification_config.py +6 -6
- adcp/types/generated_poc/core/reporting_capabilities.py +9 -9
- adcp/types/generated_poc/core/reporting_webhook.py +70 -0
- adcp/types/generated_poc/core/response.py +5 -5
- adcp/types/generated_poc/core/signal_filters.py +6 -6
- adcp/types/generated_poc/core/start_timing.py +4 -4
- adcp/types/generated_poc/core/sub_asset.py +15 -15
- adcp/types/generated_poc/core/targeting.py +59 -18
- adcp/types/generated_poc/creative/list_creative_formats_request.py +21 -21
- adcp/types/generated_poc/creative/list_creative_formats_response.py +6 -6
- adcp/types/generated_poc/creative/preview_creative_request.py +25 -25
- adcp/types/generated_poc/creative/preview_creative_response.py +29 -29
- adcp/types/generated_poc/creative/preview_render.py +26 -26
- adcp/types/generated_poc/enums/adcp_domain.py +5 -5
- adcp/types/generated_poc/enums/asset_content_type.py +14 -14
- adcp/types/generated_poc/enums/auth_scheme.py +3 -3
- adcp/types/generated_poc/enums/available_metric.py +10 -10
- adcp/types/generated_poc/enums/channels.py +21 -11
- adcp/types/generated_poc/enums/co_branding_requirement.py +4 -4
- adcp/types/generated_poc/enums/creative_action.py +6 -6
- adcp/types/generated_poc/enums/creative_agent_capability.py +5 -5
- adcp/types/generated_poc/enums/creative_sort_field.py +7 -7
- adcp/types/generated_poc/enums/creative_status.py +6 -5
- adcp/types/generated_poc/enums/daast_tracking_event.py +12 -12
- adcp/types/generated_poc/enums/daast_version.py +3 -3
- adcp/types/generated_poc/enums/delivery_type.py +3 -3
- adcp/types/generated_poc/enums/dimension_unit.py +5 -5
- adcp/types/generated_poc/enums/feed_format.py +4 -4
- adcp/types/generated_poc/enums/feedback_source.py +5 -5
- adcp/types/generated_poc/enums/format_category.py +8 -8
- adcp/types/generated_poc/enums/format_id_parameter.py +3 -3
- adcp/types/generated_poc/enums/frequency_cap_scope.py +4 -4
- adcp/types/generated_poc/enums/geo_level.py +14 -0
- adcp/types/generated_poc/enums/history_entry_type.py +3 -3
- adcp/types/generated_poc/enums/http_method.py +3 -3
- adcp/types/generated_poc/enums/identifier_types.py +20 -20
- adcp/types/generated_poc/enums/javascript_module_type.py +4 -4
- adcp/types/generated_poc/enums/landing_page_requirement.py +4 -4
- adcp/types/generated_poc/enums/markdown_flavor.py +3 -3
- adcp/types/generated_poc/enums/media_buy_status.py +5 -5
- adcp/types/generated_poc/enums/metric_type.py +9 -9
- adcp/types/generated_poc/enums/metro_system.py +15 -0
- adcp/types/generated_poc/enums/notification_type.py +5 -5
- adcp/types/generated_poc/enums/pacing.py +4 -4
- adcp/types/generated_poc/enums/postal_system.py +19 -0
- adcp/types/generated_poc/enums/preview_output_format.py +3 -3
- adcp/types/generated_poc/enums/pricing_model.py +8 -8
- adcp/types/generated_poc/enums/property_type.py +9 -8
- adcp/types/generated_poc/enums/publisher_identifier_types.py +6 -6
- adcp/types/generated_poc/enums/reporting_frequency.py +4 -4
- adcp/types/generated_poc/enums/signal_catalog_type.py +4 -4
- adcp/types/generated_poc/enums/sort_direction.py +3 -3
- adcp/types/generated_poc/enums/task_status.py +10 -10
- adcp/types/generated_poc/enums/task_type.py +12 -12
- adcp/types/generated_poc/enums/update_frequency.py +5 -5
- adcp/types/generated_poc/enums/url_asset_type.py +4 -4
- adcp/types/generated_poc/enums/validation_mode.py +3 -3
- adcp/types/generated_poc/enums/vast_tracking_event.py +17 -17
- adcp/types/generated_poc/enums/vast_version.py +6 -6
- adcp/types/generated_poc/enums/webhook_response_type.py +5 -5
- adcp/types/generated_poc/enums/webhook_security_method.py +4 -4
- adcp/types/generated_poc/extensions/extension_meta.py +20 -12
- adcp/types/generated_poc/media_buy/build_creative_request.py +5 -5
- adcp/types/generated_poc/media_buy/build_creative_response.py +7 -7
- adcp/types/generated_poc/media_buy/create_media_buy_async_response_input_required.py +6 -6
- adcp/types/generated_poc/media_buy/create_media_buy_async_response_submitted.py +2 -2
- adcp/types/generated_poc/media_buy/create_media_buy_async_response_working.py +6 -6
- adcp/types/generated_poc/media_buy/create_media_buy_request.py +65 -37
- adcp/types/generated_poc/media_buy/create_media_buy_response.py +8 -8
- adcp/types/generated_poc/media_buy/get_media_buy_delivery_request.py +9 -9
- adcp/types/generated_poc/media_buy/get_media_buy_delivery_response.py +52 -52
- adcp/types/generated_poc/media_buy/get_products_async_response_input_required.py +7 -7
- adcp/types/generated_poc/media_buy/get_products_async_response_submitted.py +3 -3
- adcp/types/generated_poc/media_buy/get_products_async_response_working.py +5 -5
- adcp/types/generated_poc/media_buy/get_products_request.py +14 -5
- adcp/types/generated_poc/media_buy/get_products_response.py +12 -6
- adcp/types/generated_poc/media_buy/list_authorized_properties_request.py +4 -4
- adcp/types/generated_poc/media_buy/list_authorized_properties_response.py +9 -9
- adcp/types/generated_poc/media_buy/list_creative_formats_request.py +10 -10
- adcp/types/generated_poc/media_buy/list_creative_formats_response.py +6 -6
- adcp/types/generated_poc/media_buy/list_creatives_request.py +24 -24
- adcp/types/generated_poc/media_buy/list_creatives_response.py +54 -57
- adcp/types/generated_poc/media_buy/package_request.py +12 -12
- adcp/types/generated_poc/media_buy/package_update.py +119 -0
- adcp/types/generated_poc/media_buy/provide_performance_feedback_request.py +20 -20
- adcp/types/generated_poc/media_buy/provide_performance_feedback_response.py +7 -7
- adcp/types/generated_poc/media_buy/sync_creatives_async_response_input_required.py +6 -6
- adcp/types/generated_poc/media_buy/sync_creatives_async_response_submitted.py +2 -2
- adcp/types/generated_poc/media_buy/sync_creatives_async_response_working.py +8 -8
- adcp/types/generated_poc/media_buy/sync_creatives_request.py +8 -8
- adcp/types/generated_poc/media_buy/sync_creatives_response.py +16 -16
- adcp/types/generated_poc/media_buy/update_media_buy_async_response_input_required.py +5 -5
- adcp/types/generated_poc/media_buy/update_media_buy_async_response_submitted.py +2 -2
- adcp/types/generated_poc/media_buy/update_media_buy_async_response_working.py +6 -6
- adcp/types/generated_poc/media_buy/update_media_buy_request.py +28 -124
- adcp/types/generated_poc/media_buy/update_media_buy_response.py +8 -8
- adcp/types/generated_poc/pricing_options/cpc_option.py +40 -15
- adcp/types/generated_poc/pricing_options/cpcv_option.py +41 -16
- adcp/types/generated_poc/pricing_options/cpm_option.py +62 -0
- adcp/types/generated_poc/pricing_options/cpp_option.py +46 -23
- adcp/types/generated_poc/pricing_options/cpv_option.py +45 -26
- adcp/types/generated_poc/pricing_options/flat_rate_option.py +53 -47
- adcp/types/generated_poc/pricing_options/vcpm_option.py +70 -0
- adcp/types/generated_poc/property/base_property_source.py +16 -16
- adcp/types/generated_poc/property/create_property_list_request.py +5 -5
- adcp/types/generated_poc/property/create_property_list_response.py +4 -4
- adcp/types/generated_poc/property/delete_property_list_request.py +3 -3
- adcp/types/generated_poc/property/delete_property_list_response.py +4 -4
- adcp/types/generated_poc/property/feature_requirement.py +8 -8
- adcp/types/generated_poc/property/get_property_list_request.py +6 -6
- adcp/types/generated_poc/property/get_property_list_response.py +12 -12
- adcp/types/generated_poc/property/list_property_lists_request.py +6 -6
- adcp/types/generated_poc/property/list_property_lists_response.py +9 -9
- adcp/types/generated_poc/property/property_error.py +11 -11
- adcp/types/generated_poc/property/property_feature.py +5 -5
- adcp/types/generated_poc/property/property_feature_definition.py +19 -19
- adcp/types/generated_poc/property/property_list.py +12 -12
- adcp/types/generated_poc/property/property_list_changed_webhook.py +12 -12
- adcp/types/generated_poc/property/property_list_filters.py +9 -9
- adcp/types/generated_poc/property/update_property_list_request.py +9 -9
- adcp/types/generated_poc/property/update_property_list_response.py +3 -3
- adcp/types/generated_poc/protocol/__init__.py +3 -0
- adcp/types/generated_poc/protocol/get_adcp_capabilities_request.py +34 -0
- adcp/types/generated_poc/protocol/get_adcp_capabilities_response.py +353 -0
- adcp/types/generated_poc/protocols/adcp_extension.py +14 -17
- adcp/types/generated_poc/signals/activate_signal_request.py +4 -4
- adcp/types/generated_poc/signals/activate_signal_response.py +7 -7
- adcp/types/generated_poc/signals/get_signals_request.py +9 -9
- adcp/types/generated_poc/signals/get_signals_response.py +16 -16
- adcp/types/generated_poc/sponsored_intelligence/__init__.py +3 -0
- adcp/types/generated_poc/sponsored_intelligence/si_capabilities.py +102 -0
- adcp/types/generated_poc/sponsored_intelligence/si_get_offering_request.py +34 -0
- adcp/types/generated_poc/sponsored_intelligence/si_get_offering_response.py +100 -0
- adcp/types/generated_poc/sponsored_intelligence/si_identity.py +78 -0
- adcp/types/generated_poc/sponsored_intelligence/si_initiate_session_request.py +46 -0
- adcp/types/generated_poc/sponsored_intelligence/si_initiate_session_response.py +44 -0
- adcp/types/generated_poc/sponsored_intelligence/si_send_message_request.py +58 -0
- adcp/types/generated_poc/sponsored_intelligence/si_send_message_response.py +101 -0
- adcp/types/generated_poc/sponsored_intelligence/si_terminate_session_request.py +60 -0
- adcp/types/generated_poc/sponsored_intelligence/si_terminate_session_response.py +54 -0
- adcp/types/generated_poc/sponsored_intelligence/si_ui_element.py +30 -0
- adcp/utils/format_assets.py +5 -5
- adcp/utils/preview_cache.py +2 -2
- {adcp-2.19.0.dist-info → adcp-3.0.0.dist-info}/METADATA +1 -1
- adcp-3.0.0.dist-info/RECORD +264 -0
- {adcp-2.19.0.dist-info → adcp-3.0.0.dist-info}/WHEEL +1 -1
- adcp/types/generated_poc/enums/standard_format_ids.py +0 -45
- adcp/types/generated_poc/pricing_options/cpm_auction_option.py +0 -58
- adcp/types/generated_poc/pricing_options/cpm_fixed_option.py +0 -43
- adcp/types/generated_poc/pricing_options/vcpm_auction_option.py +0 -61
- adcp/types/generated_poc/pricing_options/vcpm_fixed_option.py +0 -47
- adcp/types/generated_poc/property/list_property_features_request.py +0 -25
- adcp/types/generated_poc/property/list_property_features_response.py +0 -24
- adcp-2.19.0.dist-info/RECORD +0 -220
- {adcp-2.19.0.dist-info → adcp-3.0.0.dist-info}/entry_points.txt +0 -0
- {adcp-2.19.0.dist-info → adcp-3.0.0.dist-info}/licenses/LICENSE +0 -0
- {adcp-2.19.0.dist-info → adcp-3.0.0.dist-info}/top_level.txt +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: core/brand_manifest.json
|
|
3
|
-
# timestamp: 2026-01-
|
|
3
|
+
# timestamp: 2026-01-25T21:17:54+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
7
7
|
from enum import Enum
|
|
8
|
-
from typing import Annotated, Any
|
|
8
|
+
from typing import Annotated, Any, Literal
|
|
9
9
|
|
|
10
10
|
from adcp.types.base import AdCPBaseModel
|
|
11
11
|
from pydantic import AnyUrl, AwareDatetime, ConfigDict, EmailStr, Field
|
|
@@ -15,61 +15,73 @@ from ..enums import asset_content_type
|
|
|
15
15
|
|
|
16
16
|
class Asset(AdCPBaseModel):
|
|
17
17
|
model_config = ConfigDict(
|
|
18
|
-
extra=
|
|
18
|
+
extra='allow',
|
|
19
19
|
)
|
|
20
|
-
asset_id: Annotated[str, Field(description=
|
|
20
|
+
asset_id: Annotated[str, Field(description='Unique identifier for this asset')]
|
|
21
21
|
asset_type: Annotated[
|
|
22
22
|
asset_content_type.AssetContentType,
|
|
23
23
|
Field(
|
|
24
|
-
description=
|
|
24
|
+
description='Type of asset. Note: Brand manifests typically contain basic media assets (image, video, audio, text). Code assets (html, javascript, css) and ad markup (vast, daast) are usually not part of brand asset libraries.'
|
|
25
25
|
),
|
|
26
26
|
]
|
|
27
|
-
description: Annotated[str | None, Field(description=
|
|
27
|
+
description: Annotated[str | None, Field(description='Asset description or usage notes')] = None
|
|
28
28
|
duration_seconds: Annotated[
|
|
29
|
-
float | None, Field(description=
|
|
29
|
+
float | None, Field(description='Video/audio duration in seconds')
|
|
30
30
|
] = None
|
|
31
|
-
file_size_bytes: Annotated[int | None, Field(description=
|
|
31
|
+
file_size_bytes: Annotated[int | None, Field(description='File size in bytes')] = None
|
|
32
32
|
format: Annotated[str | None, Field(description="File format (e.g., 'jpg', 'mp4', 'mp3')")] = (
|
|
33
33
|
None
|
|
34
34
|
)
|
|
35
|
-
height: Annotated[int | None, Field(description=
|
|
35
|
+
height: Annotated[int | None, Field(description='Image/video height in pixels')] = None
|
|
36
36
|
metadata: Annotated[
|
|
37
|
-
dict[str, Any] | None, Field(description=
|
|
37
|
+
dict[str, Any] | None, Field(description='Additional asset-specific metadata')
|
|
38
38
|
] = None
|
|
39
|
-
name: Annotated[str | None, Field(description=
|
|
39
|
+
name: Annotated[str | None, Field(description='Human-readable asset name')] = None
|
|
40
40
|
tags: Annotated[
|
|
41
41
|
list[str] | None,
|
|
42
42
|
Field(
|
|
43
43
|
description="Tags for asset discovery (e.g., 'holiday', 'lifestyle', 'product_shot')"
|
|
44
44
|
),
|
|
45
45
|
] = None
|
|
46
|
-
url: Annotated[AnyUrl, Field(description=
|
|
47
|
-
width: Annotated[int | None, Field(description=
|
|
46
|
+
url: Annotated[AnyUrl, Field(description='URL to CDN-hosted asset file')]
|
|
47
|
+
width: Annotated[int | None, Field(description='Image/video width in pixels')] = None
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class Avatar(AdCPBaseModel):
|
|
51
|
+
avatar_id: Annotated[str | None, Field(description='Provider-specific avatar identifier')] = (
|
|
52
|
+
None
|
|
53
|
+
)
|
|
54
|
+
provider: Annotated[
|
|
55
|
+
str | None, Field(description="Avatar provider (e.g., 'd-id', 'heygen', 'synthesia')")
|
|
56
|
+
] = None
|
|
57
|
+
settings: Annotated[
|
|
58
|
+
dict[str, Any] | None, Field(description='Provider-specific avatar settings')
|
|
59
|
+
] = None
|
|
48
60
|
|
|
49
61
|
|
|
50
62
|
class Colors(AdCPBaseModel):
|
|
51
63
|
accent: Annotated[
|
|
52
|
-
str | None, Field(description=
|
|
64
|
+
str | None, Field(description='Accent color (hex format)', pattern='^#[0-9A-Fa-f]{6}$')
|
|
53
65
|
] = None
|
|
54
66
|
background: Annotated[
|
|
55
|
-
str | None, Field(description=
|
|
67
|
+
str | None, Field(description='Background color (hex format)', pattern='^#[0-9A-Fa-f]{6}$')
|
|
56
68
|
] = None
|
|
57
69
|
primary: Annotated[
|
|
58
70
|
str | None,
|
|
59
|
-
Field(description=
|
|
71
|
+
Field(description='Primary brand color (hex format)', pattern='^#[0-9A-Fa-f]{6}$'),
|
|
60
72
|
] = None
|
|
61
73
|
secondary: Annotated[
|
|
62
74
|
str | None,
|
|
63
|
-
Field(description=
|
|
75
|
+
Field(description='Secondary brand color (hex format)', pattern='^#[0-9A-Fa-f]{6}$'),
|
|
64
76
|
] = None
|
|
65
77
|
text: Annotated[
|
|
66
|
-
str | None, Field(description=
|
|
78
|
+
str | None, Field(description='Text color (hex format)', pattern='^#[0-9A-Fa-f]{6}$')
|
|
67
79
|
] = None
|
|
68
80
|
|
|
69
81
|
|
|
70
82
|
class Contact(AdCPBaseModel):
|
|
71
|
-
email: Annotated[EmailStr | None, Field(description=
|
|
72
|
-
phone: Annotated[str | None, Field(description=
|
|
83
|
+
email: Annotated[EmailStr | None, Field(description='Contact email')] = None
|
|
84
|
+
phone: Annotated[str | None, Field(description='Contact phone number')] = None
|
|
73
85
|
|
|
74
86
|
|
|
75
87
|
class Disclaimer(AdCPBaseModel):
|
|
@@ -79,92 +91,133 @@ class Disclaimer(AdCPBaseModel):
|
|
|
79
91
|
description="When this disclaimer applies (e.g., 'financial_products', 'health_claims', 'all')"
|
|
80
92
|
),
|
|
81
93
|
] = None
|
|
82
|
-
required: Annotated[bool | None, Field(description=
|
|
94
|
+
required: Annotated[bool | None, Field(description='Whether this disclaimer must appear')] = (
|
|
83
95
|
True
|
|
84
96
|
)
|
|
85
|
-
text: Annotated[str, Field(description=
|
|
97
|
+
text: Annotated[str, Field(description='Disclaimer text')]
|
|
86
98
|
|
|
87
99
|
|
|
88
100
|
class Fonts(AdCPBaseModel):
|
|
89
101
|
font_urls: Annotated[
|
|
90
|
-
list[AnyUrl] | None, Field(description=
|
|
102
|
+
list[AnyUrl] | None, Field(description='URLs to web font files if using custom fonts')
|
|
91
103
|
] = None
|
|
92
|
-
primary: Annotated[str | None, Field(description=
|
|
93
|
-
secondary: Annotated[str | None, Field(description=
|
|
104
|
+
primary: Annotated[str | None, Field(description='Primary font family name')] = None
|
|
105
|
+
secondary: Annotated[str | None, Field(description='Secondary font family name')] = None
|
|
94
106
|
|
|
95
107
|
|
|
96
108
|
class Logo(AdCPBaseModel):
|
|
97
|
-
height: Annotated[int | None, Field(description=
|
|
109
|
+
height: Annotated[int | None, Field(description='Logo height in pixels')] = None
|
|
98
110
|
tags: Annotated[
|
|
99
111
|
list[str] | None,
|
|
100
112
|
Field(
|
|
101
113
|
description="Semantic tags describing the logo variant (e.g., 'dark', 'light', 'square', 'horizontal', 'icon')"
|
|
102
114
|
),
|
|
103
115
|
] = None
|
|
104
|
-
url: Annotated[AnyUrl, Field(description=
|
|
105
|
-
width: Annotated[int | None, Field(description=
|
|
116
|
+
url: Annotated[AnyUrl, Field(description='URL to the logo asset')]
|
|
117
|
+
width: Annotated[int | None, Field(description='Logo width in pixels')] = None
|
|
106
118
|
|
|
107
119
|
|
|
108
120
|
class Metadata(AdCPBaseModel):
|
|
109
121
|
created_date: Annotated[
|
|
110
|
-
AwareDatetime | None, Field(description=
|
|
122
|
+
AwareDatetime | None, Field(description='When this brand manifest was created')
|
|
111
123
|
] = None
|
|
112
124
|
updated_date: Annotated[
|
|
113
|
-
AwareDatetime | None, Field(description=
|
|
125
|
+
AwareDatetime | None, Field(description='When this brand manifest was last updated')
|
|
126
|
+
] = None
|
|
127
|
+
version: Annotated[str | None, Field(description='Brand card version number')] = None
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
class AgenticCheckout(AdCPBaseModel):
|
|
131
|
+
endpoint: Annotated[
|
|
132
|
+
AnyUrl,
|
|
133
|
+
Field(
|
|
134
|
+
description='Base URL for checkout session API (e.g., https://merchant.com/api/checkout_sessions)'
|
|
135
|
+
),
|
|
136
|
+
]
|
|
137
|
+
spec: Annotated[
|
|
138
|
+
Literal['openai_agentic_checkout_v1'],
|
|
139
|
+
Field(description='Checkout API specification implemented by the endpoint'),
|
|
140
|
+
]
|
|
141
|
+
supported_payment_providers: Annotated[
|
|
142
|
+
list[str] | None, Field(description='Payment providers supported by this checkout endpoint')
|
|
114
143
|
] = None
|
|
115
|
-
version: Annotated[str | None, Field(description="Brand card version number")] = None
|
|
116
144
|
|
|
117
145
|
|
|
118
146
|
class FeedFormat(Enum):
|
|
119
|
-
google_merchant_center =
|
|
120
|
-
facebook_catalog =
|
|
121
|
-
|
|
147
|
+
google_merchant_center = 'google_merchant_center'
|
|
148
|
+
facebook_catalog = 'facebook_catalog'
|
|
149
|
+
openai_product_feed = 'openai_product_feed'
|
|
150
|
+
custom = 'custom'
|
|
122
151
|
|
|
123
152
|
|
|
124
153
|
class UpdateFrequency(Enum):
|
|
125
|
-
realtime =
|
|
126
|
-
hourly =
|
|
127
|
-
daily =
|
|
128
|
-
weekly =
|
|
154
|
+
realtime = 'realtime'
|
|
155
|
+
hourly = 'hourly'
|
|
156
|
+
daily = 'daily'
|
|
157
|
+
weekly = 'weekly'
|
|
129
158
|
|
|
130
159
|
|
|
131
160
|
class ProductCatalog(AdCPBaseModel):
|
|
132
161
|
model_config = ConfigDict(
|
|
133
|
-
extra=
|
|
162
|
+
extra='allow',
|
|
134
163
|
)
|
|
164
|
+
agentic_checkout: Annotated[
|
|
165
|
+
AgenticCheckout | None,
|
|
166
|
+
Field(
|
|
167
|
+
description='Agentic checkout endpoint configuration. Enables AI agents to complete purchases on behalf of users through a structured checkout API.'
|
|
168
|
+
),
|
|
169
|
+
] = None
|
|
135
170
|
categories: Annotated[
|
|
136
171
|
list[str] | None,
|
|
137
|
-
Field(description=
|
|
172
|
+
Field(description='Product categories available in the catalog (for filtering)'),
|
|
138
173
|
] = None
|
|
139
|
-
feed_format: Annotated[
|
|
140
|
-
FeedFormat
|
|
141
|
-
|
|
142
|
-
|
|
174
|
+
feed_format: Annotated[
|
|
175
|
+
FeedFormat | None,
|
|
176
|
+
Field(
|
|
177
|
+
description="Format of the product feed. Use 'openai_product_feed' for feeds conforming to the OpenAI Commerce Product Feed specification."
|
|
178
|
+
),
|
|
179
|
+
] = FeedFormat.google_merchant_center
|
|
180
|
+
feed_url: Annotated[AnyUrl, Field(description='URL to product catalog feed')]
|
|
143
181
|
last_updated: Annotated[
|
|
144
|
-
AwareDatetime | None, Field(description=
|
|
182
|
+
AwareDatetime | None, Field(description='When the product catalog was last updated')
|
|
145
183
|
] = None
|
|
146
184
|
update_frequency: Annotated[
|
|
147
|
-
UpdateFrequency | None, Field(description=
|
|
185
|
+
UpdateFrequency | None, Field(description='How frequently the product catalog is updated')
|
|
186
|
+
] = None
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
class Voice(AdCPBaseModel):
|
|
190
|
+
provider: Annotated[
|
|
191
|
+
str | None, Field(description="TTS provider (e.g., 'elevenlabs', 'openai', 'amazon_polly')")
|
|
148
192
|
] = None
|
|
193
|
+
settings: Annotated[
|
|
194
|
+
dict[str, Any] | None,
|
|
195
|
+
Field(description='Provider-specific voice settings (speed, pitch, etc.)'),
|
|
196
|
+
] = None
|
|
197
|
+
voice_id: Annotated[str | None, Field(description='Provider-specific voice identifier')] = None
|
|
149
198
|
|
|
150
199
|
|
|
151
200
|
class BrandManifest(AdCPBaseModel):
|
|
152
201
|
model_config = ConfigDict(
|
|
153
|
-
extra=
|
|
202
|
+
extra='allow',
|
|
154
203
|
)
|
|
155
204
|
assets: Annotated[
|
|
156
205
|
list[Asset] | None,
|
|
157
206
|
Field(
|
|
158
|
-
description=
|
|
207
|
+
description='Brand asset library with explicit assets and tags. Assets are referenced inline with URLs pointing to CDN-hosted files.'
|
|
159
208
|
),
|
|
160
209
|
] = None
|
|
161
|
-
|
|
162
|
-
|
|
210
|
+
avatar: Annotated[
|
|
211
|
+
Avatar | None,
|
|
212
|
+
Field(description='Brand avatar configuration for visual conversational experiences'),
|
|
213
|
+
] = None
|
|
214
|
+
colors: Annotated[Colors | None, Field(description='Brand color palette')] = None
|
|
215
|
+
contact: Annotated[Contact | None, Field(description='Brand contact information')] = None
|
|
163
216
|
disclaimers: Annotated[
|
|
164
217
|
list[Disclaimer] | None,
|
|
165
|
-
Field(description=
|
|
218
|
+
Field(description='Legal disclaimers or required text that must appear in creatives'),
|
|
166
219
|
] = None
|
|
167
|
-
fonts: Annotated[Fonts | None, Field(description=
|
|
220
|
+
fonts: Annotated[Fonts | None, Field(description='Brand typography guidelines')] = None
|
|
168
221
|
industry: Annotated[
|
|
169
222
|
str | None,
|
|
170
223
|
Field(
|
|
@@ -173,19 +226,25 @@ class BrandManifest(AdCPBaseModel):
|
|
|
173
226
|
] = None
|
|
174
227
|
logos: Annotated[
|
|
175
228
|
list[Logo] | None,
|
|
176
|
-
Field(description=
|
|
229
|
+
Field(description='Brand logo assets with semantic tags for different use cases'),
|
|
230
|
+
] = None
|
|
231
|
+
metadata: Annotated[Metadata | None, Field(description='Additional brand metadata')] = None
|
|
232
|
+
name: Annotated[str, Field(description='Brand or business name')]
|
|
233
|
+
privacy_policy_url: Annotated[
|
|
234
|
+
AnyUrl | None,
|
|
235
|
+
Field(
|
|
236
|
+
description="URL to the brand's privacy policy. Used for consumer consent flows when personal data may be shared with the advertiser. AI platforms can use this to present explicit privacy choices to users before data handoff."
|
|
237
|
+
),
|
|
177
238
|
] = None
|
|
178
|
-
metadata: Annotated[Metadata | None, Field(description="Additional brand metadata")] = None
|
|
179
|
-
name: Annotated[str, Field(description="Brand or business name")]
|
|
180
239
|
product_catalog: Annotated[
|
|
181
240
|
ProductCatalog | None,
|
|
182
241
|
Field(
|
|
183
|
-
description=
|
|
242
|
+
description='Product catalog information for e-commerce advertisers. Enables SKU-level creative generation and product selection.'
|
|
184
243
|
),
|
|
185
244
|
] = None
|
|
186
|
-
tagline: Annotated[str | None, Field(description=
|
|
245
|
+
tagline: Annotated[str | None, Field(description='Brand tagline or slogan')] = None
|
|
187
246
|
target_audience: Annotated[
|
|
188
|
-
str | None, Field(description=
|
|
247
|
+
str | None, Field(description='Primary target audience description')
|
|
189
248
|
] = None
|
|
190
249
|
tone: Annotated[
|
|
191
250
|
str | None,
|
|
@@ -196,6 +255,10 @@ class BrandManifest(AdCPBaseModel):
|
|
|
196
255
|
url: Annotated[
|
|
197
256
|
AnyUrl | None,
|
|
198
257
|
Field(
|
|
199
|
-
description=
|
|
258
|
+
description='Primary brand URL for context and asset discovery. Creative agents can infer brand information from this URL.'
|
|
200
259
|
),
|
|
201
260
|
] = None
|
|
261
|
+
voice: Annotated[
|
|
262
|
+
Voice | None,
|
|
263
|
+
Field(description='Brand voice configuration for audio/conversational experiences'),
|
|
264
|
+
] = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: core/brand_manifest_ref.json
|
|
3
|
-
# timestamp:
|
|
3
|
+
# timestamp: 2026-01-25T21:17:54+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
@@ -15,21 +15,21 @@ class BrandManifestReference(RootModel[brand_manifest.BrandManifest | AnyUrl]):
|
|
|
15
15
|
root: Annotated[
|
|
16
16
|
brand_manifest.BrandManifest | AnyUrl,
|
|
17
17
|
Field(
|
|
18
|
-
description=
|
|
18
|
+
description='Brand manifest provided either as an inline object or a URL string pointing to a hosted manifest',
|
|
19
19
|
examples=[
|
|
20
20
|
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
'data': {
|
|
22
|
+
'colors': {'primary': '#FF6B35'},
|
|
23
|
+
'name': 'ACME Corporation',
|
|
24
|
+
'url': 'https://acmecorp.com',
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
'description': 'Inline brand manifest',
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
'data': 'https://cdn.acmecorp.com/brand-manifest.json',
|
|
30
|
+
'description': 'URL string reference to hosted manifest',
|
|
31
31
|
},
|
|
32
32
|
],
|
|
33
|
-
title=
|
|
33
|
+
title='Brand Manifest Reference',
|
|
34
34
|
),
|
|
35
35
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: core/context.json
|
|
3
|
-
# timestamp: 2026-01-
|
|
3
|
+
# timestamp: 2026-01-25T21:17:54+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
@@ -10,5 +10,5 @@ from pydantic import ConfigDict
|
|
|
10
10
|
|
|
11
11
|
class ContextObject(AdCPBaseModel):
|
|
12
12
|
model_config = ConfigDict(
|
|
13
|
-
extra=
|
|
13
|
+
extra='allow',
|
|
14
14
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: core/creative_asset.json
|
|
3
|
-
# timestamp: 2026-01-
|
|
3
|
+
# timestamp: 2026-01-25T21:17:54+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
@@ -9,6 +9,7 @@ from typing import Annotated
|
|
|
9
9
|
from adcp.types.base import AdCPBaseModel
|
|
10
10
|
from pydantic import ConfigDict, Field
|
|
11
11
|
|
|
12
|
+
from ..enums import creative_status
|
|
12
13
|
from . import format_id as format_id_1
|
|
13
14
|
from . import promoted_offerings
|
|
14
15
|
from .assets import (
|
|
@@ -27,28 +28,22 @@ from .assets import (
|
|
|
27
28
|
|
|
28
29
|
class Input(AdCPBaseModel):
|
|
29
30
|
model_config = ConfigDict(
|
|
30
|
-
extra=
|
|
31
|
+
extra='allow',
|
|
31
32
|
)
|
|
32
33
|
context_description: Annotated[
|
|
33
34
|
str | None,
|
|
34
|
-
Field(description=
|
|
35
|
+
Field(description='Natural language description of the context for AI-generated content'),
|
|
35
36
|
] = None
|
|
36
37
|
macros: Annotated[
|
|
37
|
-
dict[str, str] | None, Field(description=
|
|
38
|
+
dict[str, str] | None, Field(description='Macro values to apply for this preview')
|
|
38
39
|
] = None
|
|
39
|
-
name: Annotated[str, Field(description=
|
|
40
|
+
name: Annotated[str, Field(description='Human-readable name for this preview variant')]
|
|
40
41
|
|
|
41
42
|
|
|
42
43
|
class CreativeAsset(AdCPBaseModel):
|
|
43
44
|
model_config = ConfigDict(
|
|
44
|
-
extra=
|
|
45
|
+
extra='allow',
|
|
45
46
|
)
|
|
46
|
-
approved: Annotated[
|
|
47
|
-
bool | None,
|
|
48
|
-
Field(
|
|
49
|
-
description="For generative creatives: set to true to approve and finalize, false to request regeneration with updated assets/message. Omit for non-generative creatives."
|
|
50
|
-
),
|
|
51
|
-
] = None
|
|
52
47
|
assets: Annotated[
|
|
53
48
|
dict[
|
|
54
49
|
str,
|
|
@@ -64,22 +59,22 @@ class CreativeAsset(AdCPBaseModel):
|
|
|
64
59
|
| promoted_offerings.PromotedOfferings
|
|
65
60
|
| url_asset.UrlAsset,
|
|
66
61
|
],
|
|
67
|
-
Field(description=
|
|
62
|
+
Field(description='Assets required by the format, keyed by asset_role'),
|
|
68
63
|
]
|
|
69
|
-
creative_id: Annotated[str, Field(description=
|
|
64
|
+
creative_id: Annotated[str, Field(description='Unique identifier for the creative')]
|
|
70
65
|
format_id: Annotated[
|
|
71
66
|
format_id_1.FormatId,
|
|
72
67
|
Field(
|
|
73
|
-
description=
|
|
68
|
+
description='Format identifier specifying which format this creative conforms to. Can be: (1) concrete format_id referencing a format with fixed dimensions, (2) template format_id referencing a template format, or (3) parameterized format_id with dimensions/duration parameters for template formats.'
|
|
74
69
|
),
|
|
75
70
|
]
|
|
76
71
|
inputs: Annotated[
|
|
77
72
|
list[Input] | None,
|
|
78
73
|
Field(
|
|
79
|
-
description=
|
|
74
|
+
description='Preview contexts for generative formats - defines what scenarios to generate previews for'
|
|
80
75
|
),
|
|
81
76
|
] = None
|
|
82
|
-
name: Annotated[str, Field(description=
|
|
77
|
+
name: Annotated[str, Field(description='Human-readable creative name')]
|
|
83
78
|
placement_ids: Annotated[
|
|
84
79
|
list[str] | None,
|
|
85
80
|
Field(
|
|
@@ -87,13 +82,19 @@ class CreativeAsset(AdCPBaseModel):
|
|
|
87
82
|
min_length=1,
|
|
88
83
|
),
|
|
89
84
|
] = None
|
|
85
|
+
status: Annotated[
|
|
86
|
+
creative_status.CreativeStatus | None,
|
|
87
|
+
Field(
|
|
88
|
+
description="For generative creatives: set to 'approved' to finalize, 'rejected' to request regeneration with updated assets/message. Omit for non-generative creatives (system will set based on processing state)."
|
|
89
|
+
),
|
|
90
|
+
] = None
|
|
90
91
|
tags: Annotated[
|
|
91
|
-
list[str] | None, Field(description=
|
|
92
|
+
list[str] | None, Field(description='User-defined tags for organization and searchability')
|
|
92
93
|
] = None
|
|
93
94
|
weight: Annotated[
|
|
94
95
|
float | None,
|
|
95
96
|
Field(
|
|
96
|
-
description=
|
|
97
|
+
description='Optional delivery weight for creative rotation when uploading via create_media_buy or update_media_buy (0-100). If omitted, platform determines rotation. Only used during upload to media buy - not stored in creative library.',
|
|
97
98
|
ge=0.0,
|
|
98
99
|
le=100.0,
|
|
99
100
|
),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: core/creative_assignment.json
|
|
3
|
-
# timestamp: 2026-01-
|
|
3
|
+
# timestamp: 2026-01-25T21:17:54+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
@@ -12,9 +12,9 @@ from pydantic import ConfigDict, Field
|
|
|
12
12
|
|
|
13
13
|
class CreativeAssignment(AdCPBaseModel):
|
|
14
14
|
model_config = ConfigDict(
|
|
15
|
-
extra=
|
|
15
|
+
extra='allow',
|
|
16
16
|
)
|
|
17
|
-
creative_id: Annotated[str, Field(description=
|
|
17
|
+
creative_id: Annotated[str, Field(description='Unique identifier for the creative')]
|
|
18
18
|
placement_ids: Annotated[
|
|
19
19
|
list[str] | None,
|
|
20
20
|
Field(
|
|
@@ -23,5 +23,5 @@ class CreativeAssignment(AdCPBaseModel):
|
|
|
23
23
|
),
|
|
24
24
|
] = None
|
|
25
25
|
weight: Annotated[
|
|
26
|
-
float | None, Field(description=
|
|
26
|
+
float | None, Field(description='Delivery weight for this creative', ge=0.0, le=100.0)
|
|
27
27
|
] = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: core/creative_filters.json
|
|
3
|
-
# timestamp: 2026-01-
|
|
3
|
+
# timestamp: 2026-01-25T21:17:54+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
@@ -14,73 +14,63 @@ from ..enums import creative_status
|
|
|
14
14
|
|
|
15
15
|
class CreativeFilters(AdCPBaseModel):
|
|
16
16
|
model_config = ConfigDict(
|
|
17
|
-
extra=
|
|
17
|
+
extra='allow',
|
|
18
18
|
)
|
|
19
|
-
assigned_to_package: Annotated[
|
|
20
|
-
str | None, Field(description="Filter creatives assigned to this specific package")
|
|
21
|
-
] = None
|
|
22
19
|
assigned_to_packages: Annotated[
|
|
23
|
-
list[str] | None, Field(description=
|
|
20
|
+
list[str] | None, Field(description='Filter creatives assigned to any of these packages')
|
|
24
21
|
] = None
|
|
25
22
|
buyer_refs: Annotated[
|
|
26
23
|
list[str] | None,
|
|
27
24
|
Field(
|
|
28
|
-
description=
|
|
25
|
+
description='Filter creatives assigned to media buys with any of these buyer references'
|
|
29
26
|
),
|
|
30
27
|
] = None
|
|
31
28
|
created_after: Annotated[
|
|
32
29
|
AwareDatetime | None,
|
|
33
|
-
Field(description=
|
|
30
|
+
Field(description='Filter creatives created after this date (ISO 8601)'),
|
|
34
31
|
] = None
|
|
35
32
|
created_before: Annotated[
|
|
36
33
|
AwareDatetime | None,
|
|
37
|
-
Field(description=
|
|
34
|
+
Field(description='Filter creatives created before this date (ISO 8601)'),
|
|
38
35
|
] = None
|
|
39
36
|
creative_ids: Annotated[
|
|
40
|
-
list[str] | None, Field(description=
|
|
41
|
-
] = None
|
|
42
|
-
format: Annotated[
|
|
43
|
-
str | None,
|
|
44
|
-
Field(description="Filter by creative format type (e.g., video, audio, display)"),
|
|
37
|
+
list[str] | None, Field(description='Filter by specific creative IDs', max_length=100)
|
|
45
38
|
] = None
|
|
46
39
|
formats: Annotated[
|
|
47
|
-
list[str] | None,
|
|
40
|
+
list[str] | None,
|
|
41
|
+
Field(description='Filter by creative format types (e.g., video, audio, display)'),
|
|
48
42
|
] = None
|
|
49
43
|
has_performance_data: Annotated[
|
|
50
|
-
bool | None, Field(description=
|
|
44
|
+
bool | None, Field(description='Filter creatives that have performance data when true')
|
|
51
45
|
] = None
|
|
52
46
|
media_buy_ids: Annotated[
|
|
53
|
-
list[str] | None, Field(description=
|
|
47
|
+
list[str] | None, Field(description='Filter creatives assigned to any of these media buys')
|
|
54
48
|
] = None
|
|
55
49
|
name_contains: Annotated[
|
|
56
50
|
str | None,
|
|
57
|
-
Field(description=
|
|
58
|
-
] = None
|
|
59
|
-
status: Annotated[
|
|
60
|
-
creative_status.CreativeStatus | None,
|
|
61
|
-
Field(description="Filter by creative approval status"),
|
|
51
|
+
Field(description='Filter by creative names containing this text (case-insensitive)'),
|
|
62
52
|
] = None
|
|
63
53
|
statuses: Annotated[
|
|
64
54
|
list[creative_status.CreativeStatus] | None,
|
|
65
|
-
Field(description=
|
|
55
|
+
Field(description='Filter by creative approval statuses'),
|
|
66
56
|
] = None
|
|
67
57
|
tags: Annotated[
|
|
68
|
-
list[str] | None, Field(description=
|
|
58
|
+
list[str] | None, Field(description='Filter by creative tags (all tags must match)')
|
|
69
59
|
] = None
|
|
70
60
|
tags_any: Annotated[
|
|
71
|
-
list[str] | None, Field(description=
|
|
61
|
+
list[str] | None, Field(description='Filter by creative tags (any tag must match)')
|
|
72
62
|
] = None
|
|
73
63
|
unassigned: Annotated[
|
|
74
64
|
bool | None,
|
|
75
65
|
Field(
|
|
76
|
-
description=
|
|
66
|
+
description='Filter for unassigned creatives when true, assigned creatives when false'
|
|
77
67
|
),
|
|
78
68
|
] = None
|
|
79
69
|
updated_after: Annotated[
|
|
80
70
|
AwareDatetime | None,
|
|
81
|
-
Field(description=
|
|
71
|
+
Field(description='Filter creatives last updated after this date (ISO 8601)'),
|
|
82
72
|
] = None
|
|
83
73
|
updated_before: Annotated[
|
|
84
74
|
AwareDatetime | None,
|
|
85
|
-
Field(description=
|
|
75
|
+
Field(description='Filter creatives last updated before this date (ISO 8601)'),
|
|
86
76
|
] = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: core/creative_manifest.json
|
|
3
|
-
# timestamp: 2026-01-
|
|
3
|
+
# timestamp: 2026-01-25T21:17:54+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
@@ -29,7 +29,7 @@ from .assets import (
|
|
|
29
29
|
|
|
30
30
|
class CreativeManifest(AdCPBaseModel):
|
|
31
31
|
model_config = ConfigDict(
|
|
32
|
-
extra=
|
|
32
|
+
extra='allow',
|
|
33
33
|
)
|
|
34
34
|
assets: Annotated[
|
|
35
35
|
dict[
|
|
@@ -61,6 +61,6 @@ class CreativeManifest(AdCPBaseModel):
|
|
|
61
61
|
promoted_offering: Annotated[
|
|
62
62
|
str | None,
|
|
63
63
|
Field(
|
|
64
|
-
description=
|
|
64
|
+
description='Product name or offering being advertised. Maps to promoted_offerings in create_media_buy request to associate creative with the product being promoted.'
|
|
65
65
|
),
|
|
66
66
|
] = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: core/creative_policy.json
|
|
3
|
-
# timestamp: 2026-01-
|
|
3
|
+
# timestamp: 2026-01-25T21:17:54+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
@@ -14,15 +14,15 @@ from ..enums import co_branding_requirement, landing_page_requirement
|
|
|
14
14
|
|
|
15
15
|
class CreativePolicy(AdCPBaseModel):
|
|
16
16
|
model_config = ConfigDict(
|
|
17
|
-
extra=
|
|
17
|
+
extra='allow',
|
|
18
18
|
)
|
|
19
19
|
co_branding: Annotated[
|
|
20
|
-
co_branding_requirement.CoBrandingRequirement, Field(description=
|
|
20
|
+
co_branding_requirement.CoBrandingRequirement, Field(description='Co-branding requirement')
|
|
21
21
|
]
|
|
22
22
|
landing_page: Annotated[
|
|
23
23
|
landing_page_requirement.LandingPageRequirement,
|
|
24
|
-
Field(description=
|
|
24
|
+
Field(description='Landing page requirements'),
|
|
25
25
|
]
|
|
26
26
|
templates_available: Annotated[
|
|
27
|
-
bool, Field(description=
|
|
27
|
+
bool, Field(description='Whether creative templates are provided')
|
|
28
28
|
]
|