# US 11,120,194 B2 · Automatically determining a size for a content item for a web page

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,120,194 B2
- Document ID: US11120194B2
- Status: Granted
- Kind: B2
- Application number: 16/586,271
- Filed: 2019-09-27
- Published: 2020-01-16
- Granted: 2021-09-14
- Earliest claimed: 2013-09-30
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Graeme John Rimmer; Lewis Jay Hemens
- Web page: https://patentgrep.com/patent/US11120194B2

## CPC

- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for automatically determining a content item size may be based on a size of a viewport and a width of a parent element. A script may be configured to determine a size of a viewport, determine a width of a parent element of a resource, and determine a content item size based, at least in part, on the size of the view port and the width of the parent element. A dimension of the determined content item size may be used by a content item selection system to determine a set of content items. A content item selection system may select a content item from the determined set of content items and serve data to effect display of the selected content item in the parent element with the resource.

## Claims

### Claim 1

A method for providing content items, the method comprising:
receiving, by one or more processors from a client device, a request for content for presentation in a resource on the client device, the request comprising a device identifier associated with the client device;
determining, using the one or more processors based on the request, a set of content items based on a dimension of a content item size associated with at least one of a viewport of an application of the client device within which the resource is displayed, a resource dimension of the resource, or a parent dimension of a parent element of the resource, each content item of the set of content items having a size that corresponds to the content item size;
selecting, using the one or more processors and from the determined set of content items that are determined based on the dimension of the content item size, a first content item to be displayed on the client device; and
serving, using the one or more processors and to the client device, data to effect display of the first content item in the parent element with the resource.

### Claim 2 (depends on 1)

The method of claim 1, wherein the content item size is selected from a set of predetermined standard sizes.

### Claim 3 (depends on 1)

The method of claim 1, wherein the data causes the client device to rank each predetermined standard size of a set of predetermined standard sizes, wherein the ranking is based on an area of each predetermined standard size and a ratio match value.

### Claim 4 (depends on 3)

The method of claim 3, wherein the ratio match value is based on the width of the parent element and a width of the viewport.

### Claim 5 (depends on 4)

The method of claim 4, wherein the ratio match value is based on a ratio of a first dimension of each predetermined standard size to the width of the parent element.

### Claim 6 (depends on 5)

The method of claim 5, wherein the ratio match value is further based on a ratio of a second dimension of each predetermined standard size to the width of the viewport less the width of the parent element.

### Claim 7 (depends on 3)

The method of claim 3, wherein a predetermined standard size of the set of predetermined standard sizes is not ranked responsive to an area of the predetermined standard size exceeding a predetermined percentage of an area of the viewport.

### Claim 8 (depends on 1)

The method of claim 1, wherein the data causes the client device to determine a second content item size based on a second size of the viewport and a second width of the parent element.

### Claim 9 (depends on 8)

The method of claim 8 further comprising:
receiving, at the one or more processors, a dimension of the determined second content item size; and
serving, using the one or more processors, second data to the client device to effect display of the first content item with the resource based on the dimension of the determined second content item size.

### Claim 10 (depends on 8)

The method of claim 8, wherein the data causes the client device to resize the first content item based on the determined second content item size.

### Claim 11 (depends on 1)

The method of claim 1, wherein the data causes the client device to query a document object model (DOM) of the resource to determine at least one of a width of the parent element or a height of the parent element.

### Claim 12 (depends on 8)

The method of claim 8, wherein the data causes the client device to resize the first content item based on a resizing of the resource.

### Claim 13

A system for providing content items comprising:
one or more processors; and
one or more storage devices storing instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
receiving, from a client device, a request for a content item for presentation in a resource on the client device, the request comprising a device identifier associated with the client device;
determining, based on the request, a set of content items based on a dimension of a content item size associated with at least one of a viewport size of a viewport of an application of the client device within which the resource is displayed, a resource dimension of the resource, or a parent dimension of a parent element of the resource, each content item of the set of content items having a size that corresponds to the content item size;
selecting, from the determined set of content items that are determined based on the dimension of the content item size, a first content item to be displayed on the client device; and
serving, to the client device, data to effect display of the first content item in the parent element with the resource.

### Claim 14 (depends on 13)

The system of claim 13, wherein the data causes the client device to rank each predetermined standard size of a set of predetermined standard sizes, wherein the ranking is based on an area of each predetermined standard size, an estimated revenue value of each predetermined standard size, and a ratio match value.

### Claim 15 (depends on 14)

The system of claim 14, wherein the ratio match value is based on a ratio of a first dimension of each predetermined standard size to the width of the parent element and a ratio of a second dimension of each predetermined standard size to the width of the viewport less the width of the parent element.

### Claim 16 (depends on 13)

The system of claim 13, wherein a predetermined standard size of the set of predetermined standard sizes is not ranked if an area of the predetermined standard size exceeds a predetermined percentage of an area of the viewport.

### Claim 17 (depends on 13)

The system of claim 13, wherein the data causes the client device to determine a second content item size based on a second size of the viewport and a second width of the parent element.

### Claim 18 (depends on 17)

The system of claim 17, wherein the one or more storage devices store instructions that cause the one or more processing modules to perform operations further comprising:
receiving a dimension of the determined second content item size; and
serving second data to the client device to effect display of the first content item with the resource based on the dimension of the determined second content item size.

### Claim 19 (depends on 13)

The system of claim 13, wherein the data causes the client device to query a document object model (DOM) of the resource to determine at least one of a width of the parent element or a height of the parent element.

### Claim 20

A non-transitory computer-readable storage device storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising:
receiving, from a client device, a request for a content item for presentation in a resource on the client device, the request comprising a device identifier associated with the client device;
determining, based on the request, a set of content items based on a dimension of a content item size associated with at least one of a viewport size of a viewport of an application of the client device within which the resource is displayed, a resource dimension of the resource, or a parent dimension of a parent element of the resource, each content item of the set of content items having a size that corresponds to the content item size;
selecting, from the determined set of content items that are determined based on the dimension of the content item size, a first content item to be displayed on the client device; and
serving, to the client device, data to effect display of the first content item in the parent element with the resource.
