Skip to content

Enhance AdCP schemas with comprehensive targeting and format types - #40

Merged
bokelley merged 1 commit into
mainfrom
field-questions
Sep 1, 2025
Merged

bokelley merged 1 commit into
mainfrom
field-questions

Conversation

@bokelley

@bokelley bokelley commented Sep 1, 2025

Copy link
Copy Markdown
Contributor

Summary

  • Make po_number optional in CreateMediaBuyRequest for practical business needs
  • Expand format types to include 'native' and 'dooh' formats
  • Add comprehensive targeting dimensions for enhanced campaign control

Schema Changes

CreateMediaBuyRequest

  • ✅ po_number made optional - Aligns with business reality where PO numbers aren't always available at campaign creation

Format Types

  • ✅ Added 'native' and 'dooh' - Supports formats already documented and used in examples

Targeting Enhancements

  • ✅ Enhanced geo targeting: metro areas (DMA), postal codes, lat/long radius
  • ✅ Device/platform targeting: device types, operating systems, browsers
  • ✅ Proper validation: All new fields have appropriate enum constraints

Documentation Updates

  • Updated create_media_buy.md to reflect po_number as optional
  • Added comprehensive targeting overlay parameter documentation
  • Maintains full backwards compatibility

Test Results

✅ All schema validation tests pass
✅ All example validation tests pass
✅ TypeScript compilation successful

Impact

These changes align the JSON schemas with documented capabilities and practical implementation needs, providing advertisers with comprehensive targeting options while maintaining backwards compatibility.

🤖 Generated with Claude Code

Schema Updates:
- Make po_number optional in CreateMediaBuyRequest for practical business needs
- Expand format types to include 'native' and 'dooh' formats already used in docs
- Add comprehensive targeting dimensions:
  * Enhanced geo targeting: metro areas, postal codes, lat/long radius
  * Device/platform targeting: device types, OS, browsers
  * All with proper enum constraints and validation

Documentation Updates:
- Update create_media_buy.md to reflect po_number as optional
- Add new targeting overlay parameters with descriptions
- Maintain backwards compatibility

Aligns JSON schemas with documented capabilities and reference implementation.

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

Co-Authored-By: Claude <[email protected]>
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