Is it possible to be able to make changes to a website through AdWords Scripts?

22 views
Skip to first unread message

DG

unread,
Aug 8, 2014, 7:20:42 AM8/8/14
to adwords...@googlegroups.com
Someone I work with has claimed another agency has a script that can change a number on a client's website. Is this actually possible to do? And if so, how would it work?

Neil Goldman

unread,
Aug 8, 2014, 9:38:45 AM8/8/14
to adwords...@googlegroups.com
It's possible to make changes to a website with API calls to that website, if the website has an API available, but it's not the best way to handle website updates. It may be more efficient to do that outside of AdWords Scripts, such as as on the server, using the AdWords API. Are you sure they're not talking about changing numbers in ads through ad parameters? These is popular to do with scripts. But changing data on an external website; unless it's simple work, and it does not have to be updated too reliably, and no more than once an hour, I'd recommend a different approach.

Cheers,
Neil Goldman

DG

unread,
Aug 8, 2014, 9:45:16 AM8/8/14
to adwords...@googlegroups.com
That's what I was thinking, I thought linking a JS file to the HTML would be the best way. I'm aware of the Ad Parameter changes as I use this for a few clients to update prices and for countdowns. I never thought to use AdWords scripts for anything outside of AdWords unless I'm fetching data that affects campaigns.

Thank you for your answer.

Anash Oommen

unread,
Aug 8, 2014, 10:06:27 AM8/8/14
to adwords...@googlegroups.com
Hi DG,

Pretty much what Neil suggested - the website needs to expose an endpoint, and you can hit it from the script using UrlFetch. It needn't be a full-blown API, you could for instance write the data to a Drive file, then pass the Drive file url to the website endpoint so that the website can load and parse that file to make the desired changes.

Cheers,
Anash P. Oommen,
AdWords Scripts Team.
Reply all
Reply to author
Forward
0 new messages