【问题标题】:Access Adwords through GAS通过 GAS 访问 Adwords
【发布时间】:2017-04-05 14:40:05
【问题描述】:

我想通过脚本管理我的 Adwords 广告系列。我有一些 Adwords 脚本正在运行,这一切都很好,但现在我需要访问一个库。不幸的是,这在 Adwords 脚本界面中是不可能的,因此我需要从“普通”脚本界面访问我的 Adwords MCC。

通过资源 - 高级谷歌服务,我没有遇到谷歌 Adwords API。关于如何做到这一点的任何想法?

谢谢!

【问题讨论】:

    标签: google-apps-script google-ads-api


    【解决方案1】:

    事实证明,这(尚)不受支持。

    来源:https://groups.google.com/forum/#!topic/adwords-scripts/G2GiGMp5Ols

    【讨论】:

      【解决方案2】:

      很遗憾,AdWords 在 Google 高级服务中不可用。但您可以尝试使用External APIs 进行交流。

      var url = 'https://gdata.youtube.com/feeds/api/videos?'
          + 'q=skateboarding+dog'
          + '&start-index=21'
          + '&max-results=10'
          + '&v=2';
      var response = UrlFetchApp.fetch(url);
      Logger.log(response);
      

      使用 OAuth 向服务发出请求

      代表用户操作的 API 通常需要授权,通常使用 OAuth protocol。 Apps 脚本不提供对该协议的内置支持,但您可以使用一些开源库来执行 OAuth 流程并将凭据与您的请求一起发送:

      希望这会有所帮助。

      【讨论】:

        猜你喜欢
        • 2014-09-07
        • 1970-01-01
        • 2017-10-23
        • 1970-01-01
        • 2019-09-19
        • 2013-10-09
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多