Skip to content

AN-441822 Fix paid media examples to conform to schema definitions#2116

Merged
waykar-prashant merged 7 commits intoadobe:masterfrom
ejsuncy:AN-441822/paid-media-fix-examples-to-match-schemas
Mar 30, 2026
Merged

AN-441822 Fix paid media examples to conform to schema definitions#2116
waykar-prashant merged 7 commits intoadobe:masterfrom
ejsuncy:AN-441822/paid-media-fix-examples-to-match-schemas

Conversation

@ejsuncy
Copy link
Copy Markdown
Contributor

@ejsuncy ejsuncy commented Mar 24, 2026

Summary

Fixes #2115

  • Rewrites 27 paid media example files to use only fields, types, and enum values that exist in their corresponding schema definitions
  • Fieldgroup examples (9 files): Removes xdm:additionalDetails from fieldgroups that don't define it, flattens wrapper objects in conversion/extended metrics, fixes namespace prefix in experience-details, corrects lead form fields in asset-details
  • Schema-level examples (18 files): Rewrites ad/adgroup/asset/campaign/experience lookup and summary-metrics examples with correct field names and structures per their schemas

All examples validated against schemas with zero discrepancies. npm test passes (2366 passing).

🤖 Generated with Claude Code

…obe#2115

Rewrite 27 paid media example files to use only fields, types, and
enum values that exist in their corresponding schema definitions.

Fieldgroup examples (9 files):
- Remove xdm:additionalDetails from 6 fieldgroups that don't define it
- Flatten wrapper objects in conversion-metrics and extended-metrics
- Fix xdm:description namespace prefix in experience-details carousel
- Fix lead form fields in asset-details to match schema

Schema-level examples (18 files):
- Rewrite ad/adgroup/asset/campaign/experience lookup examples with
  correct field names and structures per their fieldgroup schemas
- Fix summary-metrics: rename coreMetrics to metrics, flatten
  dimensional breakdowns, correct quality metrics field names

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ejsuncy ejsuncy marked this pull request as ready for review March 25, 2026 15:47
@ejsuncy
Copy link
Copy Markdown
Contributor Author

ejsuncy commented Mar 27, 2026

@waykar-prashant anything else to do for this PR?

Copy link
Copy Markdown
Collaborator

@waykar-prashant waykar-prashant left a comment

Choose a reason for hiding this comment

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

These are all examples. LGTM

waykar-prashant and others added 5 commits March 30, 2026 11:46
… cases around challenges and rewards. Also fix tier upgradeDate to be of type date-time. (adobe#2122)
Change lowest_cost_without_cap to lowest_cost in Meta campaign
example to match the bidStrategy enum added in PR adobe#2112.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@waykar-prashant waykar-prashant left a comment

Choose a reason for hiding this comment

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

LGTM

@waykar-prashant waykar-prashant merged commit 306477c into adobe:master Mar 30, 2026
3 checks passed
@ejsuncy ejsuncy deleted the AN-441822/paid-media-fix-examples-to-match-schemas branch March 31, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Paid media example files do not conform to their schema definitions

4 participants