GPT-5 finding
Ad-set state update still attempted when parent campaign is unknown (warning says state not updated)
mediumbughigh
- scripts/postprocess-admanage-create.sh:186-189
- scripts/postprocess-admanage-create.sh:191-196
When state_parent is empty, the script warns that it will not update state, but then executes a jq update using an empty parent, likely a no-op. This is inconsistent and brittle; future jq changes or data shapes could cause errors instead of no-op.
Recommendation
Short-circuit when state_parent is empty: skip the jq update block (and optionally write a separate results file note). E.g., add `if [ -z "$state_parent" ]; then continue; fi` before the state update.