Google App脚本中的Adword脚本 [英] Adword Script in Google App Scripts

查看:78
本文介绍了Google App脚本中的Adword脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在Google App Script中找到对Adword API的支持,我可以从adword帐户编写adword脚本,但是目前我正在处理多个帐户(近25个),我要做的是进入单个帐户并复制我的帐户该帐户中的脚本和adword脚本最多只能有15个脚本的限制,一次只能由一个用户运行一个脚本,我想在一个地方创建所有帐户的数据库,这可以通过java和其他编程语言中的adword api来实现,但是我我非常熟悉Google App脚本,我想在App Script中使用Adword API,如何使用Google App Script的UrlFetch()类来使用adword api,这样,只需替换adword帐户的客户端ID,我就可以获取所有数据一个地方(我可以访问所有帐户,因此无需更改用户名和密码). 在此先感谢您的帮助和信息!

I am not able to find Adword API support in Google App Script,I can write adword script from adword account but currently i'm handling multiple account(almost 25) what i have to do is go inside individual account and copy my script in that account and adword script have limitation of maximum 15 script can be run by one user at a time, i want to create database of all account at one place that is possible through adword api in java and other programming languages,but i'm quite familiar with Google App script i want to use Adword API in App Script,how can i use UrlFetch() class of Google App Script to use adword api, so that just by replacing client Id of adword account i can get all data at one place(i have access to all account so no need to change username and password). Thanks in advance for any help and information!

推荐答案

如果我理解正确,则主要问题是您想从根本上创建一个代码库"?那么在帐户之间重用相同的代码位吗?

If I understand correctly, the main problem is that you want to to basicaly make a "code library?" So reuse the same bits of code between accounts?

一种选择是使用Eval函数,如本文技巧3所述: http://www.freeadwordsscripts.com/2013/10/use-gdrive-to-load-single-adwords.html

One option is to use the Eval function, as detailed in tip 3 of this article: http://www.ppchero.com/tricks-for-running-adwords-scripts-in-multiple-accounts/. A second example of using this same method is here: http://www.freeadwordsscripts.com/2013/10/use-gdrive-to-load-single-adwords.html

然后您将其上传到Google云端硬盘,或将其指向Google脚本的位置.

You would then upload this into Google Drive, or point this to the location of the Google Script.

PPC英雄文章中详述的另一种选择是使用Google表格将所需的变量从一个脚本传递到另一个脚本.基本上,SpreadsheetApp函数可在所有AdWords脚本中使用,因此您可以使用它来传递来自外部源的数据.

Another option, as detailed in the PPC Hero Article, is to use Google Sheets to pass the variables you need from one script to another. Basically, the SpreadsheetApp function works within all AdWords scripts, so you can use this to pass data along from external sources.

这篇关于Google App脚本中的Adword脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆