Hi Shailesh,
Thank you for reaching out to our team.
My apologies as there is currently no readily available Script for your use case.
You should be able to use the
AdsApp.CampaignSelector and use the Cost field in the
withCondition method to retrieve the latest spend and use the value to compare and see if it has reached a percentage of your campaign's budget value. In addition, the campaign's budget can also be retrieved via the
getBudget method.
As for the third party sample that you provided, our team would unfortunately be unable to comment further as this is already outside of our scope.
Best regards,
Peter
Google Ads Scripts Team

ref:_00D1U1174p._5001UZXSLM:ref