Expand PackageDelivery to cover composed delivery-metrics schema

Open
#148 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
go
Domain
api

Research direction

Read the PackageDelivery definition and the get_media_buy_delivery.by_package[] schema composition, especially core/delivery-metrics.json. Extend or align the Go type with the legal composed fields while keeping spend required, then add drift coverage for the composed row. The payload does not name the relevant source or test files, so locate those definitions in the repository first.

Written by the indexing model from the issue text.

Description

claude-triaged

Problem

PackageDelivery now emits the correct flat package-level wire shape, but the typed Go struct covers only a small subset of the schema.

get_media_buy_delivery.by_package[] composes core/delivery-metrics.json plus package-specific fields. Legal fields include more than impressions, spend, and clicks; examples called out by expert review include ctr, views, conversions, pacing_index, paused, measurement_window, by_creative, and other breakdown fields.

The current SDK cannot express most legal package-level delivery payloads without falling back to untyped extension patterns.

Desired outcome

  • Generate or hand-align PackageDelivery with the full composed schema.
  • Preserve spend as schema-required at package level.
  • Add drift coverage for the allOf-composed package delivery row.

Related

  • Generator replacement/evaluation: #145
Dominant language
Go
Stars
4
Forks
2
Avg merge
1d 1h
Merged PRs (30d)
26

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from adcontextprotocol/adcp-go

All issues in adcontextprotocol/adcp-go

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.