【问题标题】:Automate Store Sales Direct Conversions import to Google Ads using API使用 API 自动将商店销售直接转化导入 Google Ads
【发布时间】:2020-06-15 20:24:21
【问题描述】:

我目前每个月都使用 UI 将转化(实体店销售直接转化)导入 Google Ads。 我正在创建数据以 CSV 格式导入 Google Ads,然后使用 UI 上传。 当前方法:Google Ads > 转化 > 上传

我需要使用 Google Ads API 及其 Python 模块自动执行此过程。 我怎样才能完成这项工作? 完成这项工作需要哪些步骤?

【问题讨论】:

    标签: python-3.x google-ads-api


    【解决方案1】:

    您可以使用 Google Adwords API OfflineDataUploadService (v201809)。 https://developers.google.com/adwords/api/docs/reference/v201809/OfflineDataUploadService

    在此之前,您需要配置 Adwords 客户端并设置身份验证。

    您需要以下详细信息来进行设置。

    • 客户 ID
    • 客户端密码
    • 刷新令牌
    • 开发者令牌
    • user_agent
    • client_customer_id

    https://developers.google.com/adwords/api/docs/guides/authentication

    https://developers.google.com/google-ads/api/docs/first-call/dev-token

    您需要创建 googleads.yaml 配置文件并存储凭据以设置身份验证。 https://github.com/googleads/googleads-python-lib/blob/master/googleads.yaml

    参考以下代码创建 API 调用

    https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201809/remarketing/upload_offline_data.py

    注意:此服务仅在白名单的基础上可用。

    【讨论】:

      猜你喜欢
      • 2021-08-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-20
      • 1970-01-01
      • 2019-12-03
      • 2012-11-16
      相关资源
      最近更新 更多