Patent ID: 11954170
Assignee: META PLATFORMS, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A method comprising:
receiving, from a content provider, a target content item and a policy for the target content item specifying a prohibited classification of content that cannot be published adjacent to the target content item;
generating, for a viewing user of an online system, a content feed comprising a plurality of content items;
identifying a slot in the content feed, the slot between two adjacent content items of the plurality of content items in the content feed;
accessing a machine learning model trained to classify whether a content item is the prohibited classification, wherein the machine learning model is trained based on a set of training examples that comprise features about a plurality of other content items and labels for each of the other content items of whether the other content item is the prohibited classification;
applying the trained machine learning model to each of the adjacent content items to determine whether each of the adjacent content items is the prohibited classification;
determining whether to place the target content item in the slot based on whether either of the adjacent content items is the prohibited classification;
selectively placing the target content item in the slot or in another location of the content feed based on the determining; and
sending the content feed including the target content item for display to the viewing user.