fix: use delivery_goal_group instead of deprecated objective on draft campaigns - #46
Open
amurph491 wants to merge 1 commit into
Open
fix: use delivery_goal_group instead of deprecated objective on draft campaigns#46amurph491 wants to merge 1 commit into
amurph491 wants to merge 1 commit into
Conversation
… campaigns The `objective` field is deprecated in the OpenAPI spec (marked `deprecated: true` on both OptimizationPrefs and OptimizationPrefsDraftValues). Draft campaign payloads throughout the plugin were still setting `objective` instead of `delivery_goal_group`, causing issues for users when creating draft campaigns. Changes: - Draft campaign POST/PATCH payloads now use `delivery_goal_group` instead of `objective` - Added objective-to-delivery_goal_group mapping table in drafts skill - Fixed incorrect `delivery_goal_group` enum values (was AWARENESS|CONSIDERATION, now AWARENESS|WEBSITE_TRAFFIC|APP_PROMOTION|ENGAGEMENT_ON_SPOTIFY|LEAD_GEN) - Added DeliveryGoalGroup enum to enums reference - Marked `objective` as deprecated in endpoint, schema, and enum docs - Updated draft campaign examples and test scenarios - Direct campaign creation and estimate endpoints unchanged (API still requires `objective` there) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
myavalka
approved these changes
Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
delivery_goal_groupinstead of the deprecatedobjectivefield, which is markeddeprecated: truein the OpenAPI specdelivery_goal_groupenum values (AWARENESS,WEBSITE_TRAFFIC,APP_PROMOTION,ENGAGEMENT_ON_SPOTIFY,LEAD_GEN)delivery_goal_groupenum values in docs (wasAWARENESS | CONSIDERATION, now matches the actual OpenAPI spec values)objectiveas deprecated across endpoint, schema, and enum reference docsPOST /campaigns) and estimate endpoints unchanged — API still requiresobjectivethereTest plan
/spotify-ads-api:drafts buildand verify the POST payload usesdelivery_goal_group(notobjective)delivery_goal_group/spotify-ads-api:campaigns create) still usesobjective(unchanged)objective(unchanged)🤖 Generated with Claude Code