I need an AdWords script that will send daily stats to my server.
The stats shall send yesterday's or a current date's list of all existing campaigns/adgroups/keywords (choosable) in my account with: the spent amount , impressions , clicks , date, label, budget, status, campaigntype, position and campaignname (or adgroupname or keyword) to a predefined URL (i will take it from there and save the data).
As described, it should be chosen what type of data is send (campaign, adgroup,keyword) and what date shall be used.
At the end I´d like to have a simple function where I can set the type (such as campaign / keyword and the date or yesterday)
Maybe someone has the core code around already, so it should not be a big thing.