【问题标题】:Core Analytics API 3 max-results and start-index SyntaxError: keyword can't be an expressionCore Analytics API 3 max-results and start-index SyntaxError: keyword can't be an expression
【发布时间】:2021-04-04 19:24:36
【问题描述】:

我正在尝试复制this example from the TryMe

但我想包括 max-results 和 start-index

property_links = analytics.management().webpropertyUserLinks().list(
      accountId='123456',
      webPropertyId='UA-123456-1',
      start-index = 2,
      max-results = 10000
  ).execute()

但它不起作用。我收到错误 SyntaxError: keyword can't be an expression

如何在查询中使用 start-index 和 max-result? 谢谢!

【问题讨论】:

    标签: python google-analytics-api


    【解决方案1】:

    我不知道是对是错,但检查了谷歌API。我发现您的请求与实际的 google 尝试我的示例之间存在一些差异。请尝试以下语法。让我们看看它是否有效。

    gapi.client.analytics.management.webpropertyUserLinks.list({
        "accountId": "157374703",
        "webPropertyId": "UA-84036103-1",
        "max-results": 10000,
        "start-index": 2
    })
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-13
      • 1970-01-01
      • 2021-12-15
      • 2017-04-07
      相关资源
      最近更新 更多