Hi,
today I tried migrating all of our scripts to the new experience. With one of the scripts, I am running in some trouble. I run this piecie of code (which works fine in the 'old' script):
videoCampaign.getBudget().setAmount([new_budget]);
New budget is the variable that we want to set as new budgets. Examples are: 7.33320406 and 21.13443846. The old script would automatically round these numbers and set the budgets to 7.33 and 21.13. However, with the new experience I get the error message as attached. For some reason, the script does not recognise it as positive numbers. I cannot seem to solve this. How do I fix this?
Please let me know if you have any further questions