Patent ID: 9691086
Date: 2017-06-27
CPC Classifications: G06F,G06Q

Claim:
1. A method comprising: providing, to a server computer, a request for a content item selected by the server computer, the request including one or more characteristics of a content item slot on a page being rendered by a client device that includes one or more processors and a display in which content is visually presented; receiving, at the client device and in response to the request, the selected content item, a script that facilitates client-side modification of display of the content item by the client device, and a default layout option that includes one or more parameter settings that are selected by the server computer for display of the selected content item on a plurality of different client devices having a plurality of different display settings; and at the client device, executing the script including: identifying, by the client device, one or more page parameters outside of the content item slot, wherein the one or more page parameters include one or more of a page font size, a page text foreground color, or a page background color; identifying, by the client device, a plurality of different layout options that affect display of the content item in the content item slot on the page, wherein identifying one or more of the plurality of different layout options is based at least in part on the one or more page parameters and includes selecting one or more content item parameters that affect a visible aspect of the content item with regard to the page; identifying, by the client device, the default layout option; rendering, at a location in an area of the page that is not presented in the display of the client device while another area of the page presents other content in the display, the content item according to each of the plurality of different layout options and the default layout option, wherein the rendered content item is not visible in the display of the client device; evaluating, by the client device, visual aspects of the content item as presented at the client device in each of the plurality of different layout options and the default layout option based on the rendering of the content item at the location in the area of the page that is not presented in the display of the client device and one or more criteria related to visibility of the content item with regard to the other area of the page that presents other content, wherein evaluating visual aspects of the content item in each of the plurality of different layout options includes, for each of the plurality of different layout options, determining a criteria score for each of the one or more criteria and determining a layout score for the layout option based on an aggregate criteria score for the one or more criteria; adjusting, by the client device, the default layout option, based on the evaluating; selecting, by the client device, a layout option from the plurality of different layout options and the adjusted default layout option based at least in part on the layout score for the layout option, wherein the adjusted default layout option is selected when each of the plurality of different layout options have not met one or more criteria related to visibility of the content item with regard to the page; and relocating and displaying, by the client device, a formatted version of the content item to the content item slot on the page that is presented in the display of the client device, wherein the formatted version of the content item is formatted in accordance with the layout option selected from the plurality of different layout options and the adjusted default layout option, wherein the relocating and displaying is performed after the rendering, evaluating, and selecting are performed by the client device.