Tony-Marketing-API.cn is a vibrant community dedicated to Facebook, Meta,Google Ads api, app development, Instagram, and related technologies. It offers valuable bug solutions, troubleshooting cases, and problem-solving strategies shared by users. Stay updated with real-world solutions, development tips, and the latest trends in digital marketing and app development.
The map isn't used to cache the budgets, it's to avoid doubling the same budget more than once.
If you were to remove that part of the code, a budget that is shared by multiple campaigns would be doubled the number of times it is used in an individual campaign (e.g. if a budget is used in 3 campaigns, it would be increased eightfold after you run the script).