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.
Legal claims defining the scope of protection. Each claim is shown in both the original legal language and a plain English translation.
1. A method for selecting and serving a content item based on a determined content item size for a resource, the method comprising: receiving, from a client device, a request for a script responsive to a resource loading for display on the client; serving, using a processing module, the script to the client device in response to the request, the script configured to: determine a size of a viewport based on one or more retrieved values for a width and height of the resource, determine a width of a parent element of the resource based on a document object model of the resource, and determine a content item size based, at least in part, on the size of the viewport and the width of the parent element; receiving, at a processing module and from the client device, a dimension of the determined content item size; determining, using a processing module, a set of content items based, at least in part, on the received dimension of the determined content item size; selecting, using a processing module and from the determined set of content items, an appropriately sized content item to be displayed on the client device; and serving, using a processing module, data to effect display of the selected content item in the parent element with the resource.
A method for selecting and serving an ad involves these steps: When a webpage loads on a client device, the client requests a script. The server sends this script to the client. The script runs on the client to determine the size of the browser window (viewport) by looking at width and height values, and the width of the ad's container (parent element) by examining the webpage's code (DOM). Based on these sizes, the script calculates an appropriate ad size. The client sends this ad size back to the server. The server then chooses a set of ads that fit this size, selects the best ad from the set, and sends the ad data to the client for display in the specified container.
2. The method of claim 1 , wherein the determined content item size is selected from a set of predetermined standard sizes.
Building on the previous ad selection method, the calculated ad size is chosen from a predefined set of standard ad sizes (e.g., 300x250, 728x90). The script doesn't just pick any size; it selects from a list of approved dimensions.
3. The method of claim 1 , wherein the script is further configured to rank each predetermined standard size of a set of predetermined standard sizes, wherein the ranking is based, at least in part, on an area of each predetermined standard size, an estimated revenue value of each predetermined standard size, and a ratio match value.
Expanding on the previous method, the script on the client device ranks each of the predetermined standard ad sizes. The ranking considers the area of each standard size, an estimate of how much revenue each size could generate, and a ratio match value reflecting how well the ad size fits the available space. The script orders the available sizes from best to worst, based on these factors.
4. The method of claim 3 , wherein the ratio match value is based, at least in part, on the width of the parent element and a width of the viewport.
Refining the ad size ranking method from above, the "ratio match value" is calculated using the width of the ad's container (parent element) and the width of the browser window (viewport). The script uses these widths to determine how well each standard ad size will fit visually.
5. The method of claim 4 , wherein the ratio match value is based, at least in part, on a ratio of a first dimension of each predetermined standard size to the width of the parent element.
Further specifying the "ratio match value", the script calculates it based on the ratio of each standard ad size's width to the width of the ad's container (parent element). This helps determine how well the ad will fill the container horizontally.
6. The method of claim 5 , wherein the ratio match value is further based, at least in part, 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.
Continuing to refine the "ratio match value", the script also considers the ratio of each standard ad size's height to the difference between the browser window width and the ad container's width (viewport width minus parent element width). This accounts for the space available outside of the container to optimize fit.
7. The method of claim 3 , 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.
Within the ad size ranking process, a standard ad size is skipped if its area is too large relative to the browser window area. Specifically, if the ad's area exceeds a certain percentage of the viewport area, it's not considered for ranking to prevent oversized ads.
8. The method of claim 1 , wherein the script is further configured to determine a second content item size based, at least in part, on a second size of the viewport and a second width of the parent element.
In addition to determining an initial ad size, the script can also calculate a second ad size based on a second set of viewport and parent element dimensions. This allows for adapting to changes in screen size or layout after the initial page load, supporting responsive design.
9. The method of claim 8 further comprising: receiving, at a processing module, a dimension of the determined second content item size; and serving, using a processing module, second data to the client device to effect display of the selected content item with the resource based on the dimension of the determined second content item size.
Building upon the ability to determine a second ad size, after the second ad size is determined, the client sends this second size to the server, which then sends back new ad data to the client for display, based on this new size. This allows for dynamic ad resizing and replacement.
10. The method of claim 8 , wherein the script is further configured to resize the selected content item based on the determined second content item size.
Continuing from the ability to determine a second ad size, the script can also resize the currently displayed ad based on the determined second ad size. This handles ad resizing directly in the client browser without requiring a new ad request.
11. A system for serving content items comprising: one or more processing modules; and one or more storage devices storing instructions that, when executed by the one or more processing modules, cause the one or more processing modules to perform operations comprising: receiving, from a client device, a request for a script responsive to a resource loading for display on the client; serving the script to the client device in response to the request, the script configured to: determine a size of a viewport based on one or more retrieved values for a width and height of the resource, determine a width of a parent element of the resource based on a document object model of the resource, rank each predetermined standard size of a set of predetermined standard sizes based, at least in part, on the size of the viewport and the width of the parent element, and determine a content item size based on the ranking of each predetermined standard size of a set of predetermined standard sizes; receiving, from the client device, a dimension of the determined content item size; determining a set of content items based, at least in part, on the received dimension of the determined content item size selecting, from the determined set of content items, an appropriately sized content item; and serving data to effect display of the selected content item in the parent element with the resource.
An ad serving system includes processing modules and storage. When a webpage loads, the client requests a script from the server. The server sends the script, which runs on the client. This script calculates the browser window size (viewport) and the ad container's width. It then ranks a set of standard ad sizes based on these dimensions, ultimately determining an appropriate ad size. The client sends this size back to the server. The server chooses ads that fit, selects the best one, and serves it for display in the container. The ad size ranking is based on the viewport size and the parent element's width.
12. The system of claim 11 , wherein the ranking of each predetermined standard size is further based, at least in part, on an area of each predetermined standard size, an estimated revenue value of each predetermined standard size, and a ratio match value.
Refining the ad serving system, the ranking of standard ad sizes also considers the area of each ad size, its estimated revenue value, and a ratio match value. The system uses these factors to select the most profitable and well-fitting ad.
13. The system of claim 12 , wherein the ratio match value is based, at least in part, 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.
Expanding on the ad serving system, the "ratio match value" is based on the ratio of each ad size's dimensions to the width of the ad container and the difference between the browser window width and the container width. This ensures the chosen ad fits well within the available space.
14. The system of claim 11 , 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.
In the ad serving system, a standard ad size is excluded from ranking if its area exceeds a certain percentage of the browser window area, preventing oversized ads.
15. The system of claim 11 , wherein the script is further configured to determine a second content item size based, at least in part, on a second size of the viewport and a second width of the parent element.
In the ad serving system, the script can calculate a second ad size based on a second set of browser window and ad container dimensions, allowing for dynamic ad resizing in response to layout changes.
16. The system of claim 15 , 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 selected content item with the resource based on the dimension of the determined second content item size.
Continuing from the second ad size determination, the server receives the dimension of this second ad size, and serves updated ad data to the client, thus displaying the selected ad based on the new size.
17. A non-transitory computer-readable storage device storing instructions that, when executed by one or more processing modules, cause the one or more processing modules to perform operations comprising: receiving, from a client device, a request for a script responsive to a resource loading for display on the client serving the script to the client device in response to the request, the script configured to: determine a size of a viewport based on one or more retrieved values for a width and height of the resource, determine a width of a parent element of the resource based on a document object model of the resource, rank each predetermined standard size of a set of predetermined standard sizes based, at least in part, on an area of each predetermined standard size and a ratio match value, and determine a content item size based, at least in part, on the ranking of each predetermined standard size of a set of predetermined standard sizes; receiving, from the client device, a dimension of the determined content item size; determining a set of content items based, at least in part, on the received dimension of the determined content item size selecting, from the determined set of content items, an appropriately sized content item; and serving data to effect display of the selected content item in the parent element with the resource.
A non-transitory computer-readable storage device stores instructions for ad serving. When executed, these instructions cause a server to send a script to a client upon a webpage load request. The script determines the browser window size and ad container width, then ranks standard ad sizes based on their area and a ratio match value. From this ranking, it determines an appropriate ad size, which is sent to the server. The server selects ads based on this size and sends one for display.
18. The non-transitory computer-readable storage device of claim 17 , wherein the ranking of each predetermined standard size is further based on an estimated revenue value of each predetermined standard size.
Refining the storage device instructions, the ranking of standard ad sizes also considers the estimated revenue value of each ad size, optimizing for profitability.
19. The non-transitory computer-readable storage device of claim 18 , wherein the estimated revenue value of each predetermined standard size is specific to at least one of the resource or a publisher of the resource.
Further specifying the storage device instructions, the estimated revenue value for each ad size is specific to either the webpage itself or the publisher of that webpage, allowing for customized ad selection based on revenue potential.
20. The non-transitory computer-readable storage device of claim 17 , 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.
Within the storage device instructions, a standard ad size is not ranked if its area exceeds a predetermined percentage of the browser window's area, which prevents oversized ads from being selected.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
October 8, 2013
July 11, 2017
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.