# US 2020/0402115 A1 · Serving an Online Advertisement Asynchronously

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

- Number: US 2020/0402115 A1
- Document ID: US20200402115A1
- Status: Published application
- Kind: A1
- Application number: 16/911,040
- Filed: 2020-06-24
- Published: 2020-12-24
- Earliest claimed: 2019-06-24
- Assignees: Cloudflare, Inc.
- Applicants: Cloudflare, Inc.
- Inventors: Igor Postelnik
- Web page: https://patentgrep.com/patent/US20200402115A1

## CPC

- G06Q 30/0276: {Advertisement creation}
- G06Q 30/0277: {Online advertisement}
- H04L 67/01: Protocols
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/146: Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
- H04L 67/55: Push-based network services
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A server receives a request for a network resource from a client network application. The server retrieves the network resource and detects an online advertisement tag in it. The server determines that it has access to an identity cookie for the requesting client. The server modifies the network resource including causing the tag from being processed directly by the client and adds a reference to a client-side script that will inject the online advertisement into the modified network resource. The server transmits a request for the online advertisement to an advertisement supply source, transmits a push-promise to the requesting client for the client-side script, and transmits the modified network resource to the requesting client. The server receives, from the advertisement supply source, a response to the request for the online advertisement. The server transmits the client-side script to the requesting client without receiving a separate request for the client-side script.

## Claims

### Claim 1

A method in a server, comprising:
receiving, from a client network application, a request for a network resource;
retrieving the network resource;
detecting an online advertisement tag in the network resource;
determining that the server has access to an identity cookie for the requesting client network application;
modifying the network resource including:
causing the detected online advertisement tag from being processed directly by the client network application, and
adding a reference to a client-side script that is configured to, when executed by the client network application, inject an online advertisement into the modified network resource;
transmitting a request for the online advertisement to an advertisement supply source;
transmitting a push-promise to the requesting client network application for the client-side script;
transmitting the modified network resource to the requesting client network application;
receiving, from the advertisement supply source, a response to the request for the online advertisement; and
transmitting the client-side script to the requesting client network application without receiving a separate request for the client-side script from the requesting client network application.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving a second request for a second network resource originating from a second client network application;
retrieving the second network resource;
determining that the server does not have access to an identity cookie for the requesting second client network application; and
performing a cookie synchronization to provide the identity cookie for the requesting second client network application.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
wherein the received response to the request for the online advertisement includes a redirection to another server; and
transmitting a request to another server for the online advertisement in accordance with the redirection without transmitting the redirection to the requesting client network application.

### Claim 4 (depends on 1)

The method of claim 1, wherein causing the detected online advertisement tag from being processed directly by the client network application includes removing the detected online advertisement tag from the network resource.

### Claim 5 (depends on 1)

The method of claim 1, wherein the client-side script includes the online advertisement inline.

### Claim 6 (depends on 1)

The method of claim 1, wherein the client-side script includes a tag to the online advertisement.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
wherein the request for the network resource includes a user-agent string of the client network application; and
wherein transmitting the request for the online advertisement to the advertisement supply source includes:
information of the user-agent string of the client network application, and
the identity cookie for the requesting client network application.

### Claim 8

A method in a client device executing a client network application, comprising:
transmitting a request for a network resource, wherein the request includes one or more cookies;
receiving, from a server in response to the transmitted request, a push promise message for a client-side script;
receiving, from the server, a modified version of the network resource, wherein the modified version of the network resource includes a reference to the client-side script that is configured to, when executed by the client network application, inject an online advertisement into the modified version of the network resource;
receiving, from the server, the client-side script without the client network application transmitting a separate request for the client-side script; and
executing the client-side script including injecting an online advertisement into the modified version of the network resource.

### Claim 9 (depends on 8)

The method of claim 8, wherein at least one of the one or more cookies is an identity cookie of the requesting client network application for an ad supply source.

### Claim 10 (depends on 8)

The method of claim 8, wherein the client-side script includes the online advertisement inline.

### Claim 11 (depends on 8)

The method of claim 8, further comprising:
wherein the client-side script includes a tag to the online advertisement; and
wherein executing the client-side script further includes:
transmitting a request for the online advertisement according to the tag, and
receiving the online advertisement responsive to the request.

### Claim 12

A non-transitory machine-readable storage medium that provides instructions that, when executed by a processor of a server, is capable of causing the processor to perform operations comprising:
receiving, from a client network application, a request for a network resource;
retrieving the network resource;
detecting an online advertisement tag in the network resource;
determining that the server has access to an identity cookie for the requesting client network application;
modifying the network resource including:
causing the detected online advertisement tag from being processed directly by the client network application, and
adding a reference to a client-side script that is configured to, when executed by the client network application, inject an online advertisement into the modified network resource;
transmitting a request for the online advertisement to an advertisement supply source;
transmitting a push-promise to the requesting client network application for the client-side script;
transmitting the modified network resource to the requesting client network application;
receiving, from the advertisement supply source, a response to the request for the online advertisement; and
transmitting the client-side script to the requesting client network application without receiving a separate request for the client-side script from the requesting client network application.

### Claim 13 (depends on 12)

The non-transitory machine-readable storage medium of claim 12, wherein the operations further comprise:
receiving a second request for a second network resource originating from a second client network application;
retrieving the second network resource;
determining that the server does not have access to an identity cookie for the requesting second client network application; and
performing a cookie synchronization to provide the identity cookie for the requesting second client network application.

### Claim 14 (depends on 12)

The non-transitory machine-readable storage medium of claim 12, wherein the operations further comprise:
wherein the received response to the request for the online advertisement includes a redirection to another server; and
transmitting a request to another server for the online advertisement in accordance with the redirection without transmitting the redirection to the requesting client network application.

### Claim 15 (depends on 12)

The non-transitory machine-readable storage medium of claim 12, causing the detected online advertisement tag from being processed directly by the client network application includes removing the detected online advertisement tag from the network resource.

### Claim 16 (depends on 12)

The non-transitory machine-readable storage medium of claim 12, wherein the client-side script includes the online advertisement inline.

### Claim 17 (depends on 12)

The non-transitory machine-readable storage medium of claim 12, wherein the client-side script includes a tag to the online advertisement.

### Claim 18 (depends on 12)

The non-transitory machine-readable storage medium of claim 12, wherein the operations further comprise, further comprising:
wherein the request for the network resource includes a user-agent string of the client network application; and
wherein transmitting the request for the online advertisement to the advertisement supply source includes:
information of the user-agent string of the client network application, and
the identity cookie for the requesting client network application.

### Claim 19

A non-transitory machine-readable storage medium that provides instructions that, when executed by a processor of a client device executing a client network application, is capable of causing the processor to perform operations comprising:
transmitting a request for a network resource, wherein the request includes one or more cookies;
receiving, from a server in response to the transmitted request, a push promise message for a client-side script;
receiving, from the server, a modified version of the network resource, wherein the modified version of the network resource includes a reference to the client-side script that is configured to, when executed by the client network application, inject an online advertisement into the modified version of the network resource;
receiving, from the server, the client-side script without the client network application transmitting a separate request for the client-side script; and
executing the client-side script including injecting an online advertisement into the modified version of the network resource.

### Claim 20 (depends on 19)

The non-transitory machine-readable storage medium of claim 19, wherein at least one of the one or more cookies is an identity cookie of the requesting client network application for an ad supply source.

### Claim 21 (depends on 19)

The non-transitory machine-readable storage medium of claim 19, wherein the client-side script includes the online advertisement inline.

### Claim 22 (depends on 19)

The non-transitory machine-readable storage medium of claim 19, wherein the operations further comprise:
wherein the client-side script includes a tag to the online advertisement; and
wherein executing the client-side script further includes:
transmitting a request for the online advertisement according to the tag, and
receiving the online advertisement responsive to the request.
