Count ads matched by rule
count_ad_rule_matchesGet Ad Rule Match Count
When to use: 규칙을 저장하기 전에 그 조건이 실제로 몇 건의 광고행을 잡는지, 그리고 그 광고행을 지금 어느 규칙이 가져가고 있는지(충돌) 확인할 때. 조건이 남의 광고를 가로채는지 사전 검사하는 용도.
When NOT to use: 이미 저장된 규칙별 적용 건수는 get_ad_mapping_counts 를 쓴다. 이 tool 은 저장되지 않은 조건을 평가하는 용도다.
Limitations: 🔴 priority 경합은 반영하지 않는다 — '이 조건이 잡는 행'과 '그 행의 현재 주인'을 보여줄 뿐, 새 규칙을 특정 우선순위에 넣었을 때 실제로 무엇을 빼앗아오는지는 시뮬레이션하지 않는다. 조건 중 하나라도 값이 비었거나 지원되지 않는 연산자면 그 OR-그룹 전체가 matched_count=null 로 무효 처리된다(일부만 빼고 계산하지 않는다 — 그게 곧 과대매칭 사고이기 때문). LIKE 는 부분 문자열 매칭이라 짧은 번호 조건은 다른 제품을 삼킬 수 있다. data_management:read 권한 필요.
Examples:
Q: 이 조건으로 광고 규칙을 만들면 광고가 몇 건 잡히고, 지금은 어떤 규칙이 그 광고를 가져가고 있어? params: {'body': {'mapping_rule_fe': {'advancedFilters': {'subFilters': [{'conditions': [{'column': 'ad_channel_name', 'operator': 'IN', 'values': ['GOOGLE_ADS']}, {'column': 'adset_name', 'operator': 'LIKE', 'values': ['여름세일']}]}]}}}}
Output shape: object: OR-그룹별 매칭건수·현재 소유 규칙 분포 + 중복제거 총계
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "count_ad_rule_matches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project-id | No | ||
| mapping_rule | No | ||
| mapping_rule_fe | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||