Asynchronous Ad Serving via Edge Script Injection
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The existing process of serving online advertisements involves multiple network connections and redirects, which can lead to user experience degradation due to lag, especially when any of these connections are slow or fail.
Innovation Solution
An edge server intercepts the ad request, retrieves the advertisement, and pushes a client-side script to the client device, which injects the ad into the webpage, reducing the need for direct client requests and minimizing network connections.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the client network application directly requests advertisements through multiple ad servers with redirects, then the advertisement can be retrieved through the existing ad serving process, but the user experience is degraded due to connection lag and multiple network connections
Solution Approach 1:
The edge server performs preliminary actions by intercepting the ad request before it reaches the ad servers, retrieving the advertisement content in advance, and pushing it to the client device. This eliminates the need for the client to wait for multiple redirect connections to complete, thereby reducing connection lag while ensuring reliable advertisement delivery.
Solution Approach 2:
The edge server acts as an intermediary between the ad servers and the client device. It intercepts ad requests, retrieves advertisements from ad servers, and pushes them directly to clients, thereby mediating the communication to reduce the number of direct client connections and redirects needed, thus reducing connection lag.
2Reliability
If the client network application makes multiple direct requests to ad servers and CDN servers, then the advertisement can be retrieved through standard protocols, but network bandwidth is consumed by redundant connections and requests
Solution Approach 1:
The edge server merges multiple advertisement retrieval operations into a single push operation. Instead of the client making separate requests to multiple ad servers and CDN servers, the edge server consolidates the advertisement content and pushes it directly to the client in one operation, thereby reducing bandwidth consumption while ensuring reliable retrieval.
Solution Approach 2:
The edge server acts as an intermediary that consolidates multiple advertisement requests and responses. It retrieves advertisements from ad servers and CDN servers, combines the necessary content, and pushes it to the client in a single operation, thereby mediating the multiple connections into one efficient transfer and reducing overall bandwidth consumption.
3Adaptability or versatility
If the advertisement serving process uses multiple redirects between ad servers, then the advertisement can be selected and delivered through the ad exchange system, but the device complexity and number of connections increase
Solution Approach 1:
The edge server acts as an intermediary that handles the complexity of multiple redirects between ad servers. It intercepts the initial ad request, manages the interactions with ad servers and CDN servers, and delivers the final advertisement content to the client through a single push operation, thereby maintaining ad selection versatility while reducing connection complexity.
Solution Approach 2:
The edge server extracts the advertisement retrieval process from the client device. It takes out the complex multi-redirect sequence from the client's responsibility and handles it server-side, thereby reducing the number of connections the client device must manage while preserving the adaptability of ad selection through the ad exchange system.
Data Source
AI summary
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.


