API Script Caching and Call Batching for Large Campaign Data
Find Innovative SolutionsGenerate 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
Engineering 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
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.
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.
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
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.
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.
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
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.
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.
Data Source
AI summary
Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for managing application program interface calls.


