Remove ad product matches
delete_ad_relationDelete Ad Relation
When to use: 잘못 맺힌 광고 소재↔상품 연결을 끊을 때(미매칭 상태로 되돌린다).
When NOT to use: 연결 대상을 다른 상품으로 바꾸는 것뿐이라면 삭제 후 재생성하지 말고 update_ad_relation 으로 덮어쓴다(재계산 트리거를 아낀다).
Limitations: body 는 DeleteAdRelationReq(= 소재 식별 필드) 리스트다 — mapped_product 는 넣지 않는다. 식별 필드 전체가 일치해야 지워지므로 search_ad_relations 결과를 그대로 복사해 넘긴다. 1건 이상 실제로 지워지면 매칭 재계산이 백그라운드로 자동 트리거된다(force_refresh=True) — 즉 삭제 하나가 파생 테이블 재계산까지 유발한다. data_management:write 권한 필요. ad_relation 스코프 감사 이벤트로 기록된다.
Examples:
Q: 이 광고 소재에 연결된 상품을 연결 해제해줘 params: {'body': [{'ad_channel_name': 'GOOGLE', 'ad_account_id': 'acc-1', 'ad_account_name': '메인 광고계정', 'campaign_id': 'c-1', 'campaign_name': '여름세일', 'adset_id': 'as-1', 'adset_name': '관심사타겟', 'ad_id': 'ad-1', 'ad_name': '여름세일_배너A', 'landing_url': 'https://shop.example.com/p/1001'}]}
Output shape: no content (성공 시 body 없음)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"body": "<body>"
},
"name": "delete_ad_relation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| project-id | No | ||
| auth_method | No | jwt |