Skip to content

Add asset and customer_asset removal to remove_entity - #3

Merged
kLOsk merged 1 commit into
kLOsk:mainfrom
wozniakm:add-asset-customer-asset-removal
Mar 23, 2026
Merged

Add asset and customer_asset removal to remove_entity#3
kLOsk merged 1 commit into
kLOsk:mainfrom
wozniakm:add-asset-customer-asset-removal

Conversation

@wozniakm

@wozniakm wozniakm commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Extend remove_entity to support two new entity types: asset (standalone assets via AssetService) and customer_asset (customer-level asset links via CustomerAssetService)
  • Update ID normalization to handle customer_asset composite IDs (assetId~fieldType)
  • Update docstrings and orchestration rules in both .claude/rules/ and .cursor/rules/

Test plan

  • uv run pytest — all 14 existing tests pass
  • Manual: remove_entity(entity_type="asset", entity_id="INVALID") → returns preview
  • Manual: remove_entity(entity_type="customer_asset", entity_id="123~SITELINK") → returns preview
  • Manual: remove_entity(entity_type="bogus", ...) → validation error listing all 8 types

🤖 Generated with Claude Code

Extend remove_entity to support standalone assets (via AssetService)
and customer-level asset links (via CustomerAssetService), bringing
the total supported entity types from 6 to 8.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kLOsk
kLOsk merged commit 3453617 into kLOsk:main Mar 23, 2026
kLOsk added a commit that referenced this pull request Mar 23, 2026
…CPC-cap support

Rebased on main after merging PRs #2, #3, #6. Removed duplicate
draft_ad_group (kept PR #6's version with preflight checks). Adds:
- update_ad_group, draft_callouts, draft_structured_snippets, draft_image_assets
- Campaign expansion settings (search_partners, display_network, max_cpc)
- Structured error handling for developer token and OAuth issues
- Shared _apply_campaign_assets helper replacing duplicated sitelink logic

All 77 tests pass.
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.

2 participants