twitterdev/twitter-python-ads-sdk

View on GitHub
tests/fixtures/analytics_sync_stats.json

Summary

Maintainability
Test Coverage
{
    "data_type": "stats",
    "time_series_length": 1,
    "data": [
      {
        "id": "aaaa",
        "id_data": [
          {
            "segment": null,
            "metrics": {
              "impressions": [
                1
              ],
              "tweets_send": null,
              "qualified_impressions": null,
              "follows": null,
              "app_clicks": null,
              "retweets": null,
              "likes": [
                1
              ],
              "engagements": [
                1
              ],
              "clicks": [
                1
              ],
              "card_engagements": null,
              "poll_card_vote": null,
              "replies": null,
              "url_clicks": null,
              "carousel_swipes": null
            }
          }
        ]
      },
      {
        "id": "bbbb",
        "id_data": [
          {
            "segment": null,
            "metrics": {
              "impressions": [
                2
              ],
              "tweets_send": null,
              "qualified_impressions": null,
              "follows": null,
              "app_clicks": null,
              "retweets": null,
              "likes": [
                2
              ],
              "engagements": [
                2
              ],
              "clicks": [
                2
              ],
              "card_engagements": null,
              "poll_card_vote": null,
              "replies": null,
              "url_clicks": null,
              "carousel_swipes": null
            }
          }
        ]
      }
    ],
    "request": {
      "params": {
        "start_time": "2019-01-01T00:00:00Z",
        "segmentation_type": null,
        "entity_ids": [
          "aaaa",
          "bbbb"
        ],
        "end_time": "2019-01-02T00:00:00Z",
        "country": null,
        "placement": "ALL_ON_TWITTER",
        "granularity": "TOTAL",
        "entity": "CAMPAIGN",
        "platform": null,
        "metric_groups": [
          "ENGAGEMENT"
        ]
      }
    }
  }