First of all, You can't do it with Javascript. I don't know much of requirement and if you really want this solution in Javascript, then you need to use adwords scripts. Otherwise it won't happen since there are no services from Google to update your campaign using Javascript.
I can do this using Adwords scripts and PHP.
Please find who I am.
Me, Having 6 years of experience in web development using PHP and it’s related technologies like CMS(Wordpress) and frameworks(CodeIgniter,Laravel) and now I'm Out for the freelancing of my skills. Started with a Bachelor degree in Computer science about 6 years ago and now I'm standing here with some confidence and skills to enter to the freelancing.
I have enough development experience in the field of API development. I have worked with various requirements like getting data from adwords account as well as send data to adwords accounts. Using the PHP client library I have developed few standalone applications in order to reduce the jobs of the client who under takes few adwords accounts.
Admin Panel - Adsbudget : [login to view URL]
Adsbudget client panel : [login to view URL]
Adwords Dashboard - creating ads : [login to view URL]
Highchart in adwords graph : [login to view URL]
CSV Import and processing : [login to view URL]
how graph shows : [login to view URL]
Reports and Graph : [login to view URL]
subinpvasu (SUBIN P VASU) · GitHub : [login to view URL]
LinkedIn Profile : [login to view URL]
Bid amount not considered here.