API Script Caching and Call Batching for Large Campaign Data

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing advertising management systems face inefficiencies due to the large number of API calls required for script execution, which can lead to failures and resource bottlenecks, especially when managing complex advertising campaigns with thousands of bids and targeting criteria.

Innovation Solution

Implementing a system that caches API responses locally and batches API calls based on cardinality limits for efficient data management, allowing for automated script execution and reduced API call failures.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If the script execution engine requests data for thousands of bids and targeting criteria through multiple API calls, then the system can access comprehensive campaign data, but the number of API calls increases causing failures and resource bottlenecks

Engineering Contradiction:
Improvedata elements requestedVSAvoidAPI call success rate
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The patent segments the large set of campaign data into manageable batches based on cardinality limits. Instead of requesting all data at once through multiple separate API calls, the system organizes requests into batches that respect maximum cardinality constraints, reducing the likelihood of API failures while maintaining comprehensive data access.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements preliminary actions by caching API responses locally before they are needed for script execution. The system pre-loads and stores campaign data in a local cache structure, so when script execution requires data, it can retrieve it from the cache rather than making new API calls, thereby reducing the number of calls and improving reliability.

Inventive Principle:
Principle #10Preliminary action

2Quantity of substance

If the system makes multiple API calls to retrieve and modify campaign data, then comprehensive data can be accessed, but processing time and resource consumption increase

Engineering Contradiction:
Improvedata elements accessedVSAvoidprocessing time
Core Design Contradiction:
Quantity of substanceVSLoss of time

Solution Approach 1:

The system performs preliminary data retrieval and caching actions before script execution begins. By pre-loading campaign data into local cache structures, the system eliminates the need for multiple sequential API calls during script execution, significantly reducing processing time while maintaining access to comprehensive data.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent creates a local copy of campaign data in cache structures that mirror the API response format. This copy allows the system to work with data locally without repeatedly querying the remote API, reducing processing time and resource consumption while maintaining full data accessibility.

Inventive Principle:
Principle #26Copying

3Quantity of substance

If the system processes large data sets through multiple API calls, then complete campaign information can be retrieved, but the complexity of data management increases

Engineering Contradiction:
Improvedata elements processedVSAvoiddata management complexity
Core Design Contradiction:
Quantity of substanceVSDevice complexity

Solution Approach 1:

The patent segments the data management task into organized batches that respect API cardinality limits. By structuring data retrieval and processing in segmented batches rather than handling all data at once, the system reduces management complexity while maintaining comprehensive data processing capabilities.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system creates local cache copies of campaign data that simplify management by eliminating the need to handle complex API response structures repeatedly. These local copies provide a simplified, consistent data representation that reduces the complexity of data management during script execution.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS12626272B2Application program interface script caching and batching
Publication Date: 2026.05.12 GOOGLE LLC
  • US12626272B2 patent drawing
  • US12626272B2 patent drawing
  • US12626272B2 patent drawing

AI summary

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for managing application program interface calls.