Hey @creztoe
Thats an astute observation, and to address your specific questions:
- Ideally no, these entities should reflect their actual state. Deleting a Line Item effectively makes the child Promoted Tweets un-servable however the
deleted flag does not reflect this.
- Agreed with you around the confusion
- The validation error is due to the fact that once the Line Item is deleted, any associated Promoted Tweets are un-servable and inaccessible.
To summarize, we understand that this is a pain point, and we’ve escalated this to the relevant teams internally. In the meantime, I would suggest doing bottom-up deletes, i.e., if trying to delete a Line Item, first delete all associated Promoted Tweets. Similarly for Campaigns, the flow should be Promoted Tweet -> Line Items -> Campaigns.
Appreciate your patience on the issue while we try to get a permanent fix in place.
Thanks!