Ads API Analytics: Can't get value of url_clicks

ads
api

#1

I am trying to get values of Tweet’s url_clicks using ads API, but value of url_clicks always return null.

API Endpoint: https://ads-api.twitter.com/2/stats/accounts/18ce53w71ha?entity=ORGANIC_TWEET&entity_ids=892951457959378944&start_time=2017-08-03&end_time=2017-08-05&placement=ALL_ON_TWITTER&metric_groups=ENGAGEMENT&granularity=TOTAL

Result of request: “url_clicks” : null

{
  "data_type" : "stats",
  "data" : [
    {
      "id" : "892951457959378944",
      "id_data" : [
        {
          "segment" : null,
          "metrics" : {
            "follows" : null,
            "app_clicks" : [
              6
            ],
            "retweets" : [
              1
            ],
            "likes" : [
              1
            ],
            "tweets_send" : null,
            "engagements" : [
              11
            ],
            "poll_card_vote" : null,
            "replies" : null,
            "url_clicks" : null,
            "qualified_impressions" : null,
            "clicks" : [
              10
            ],
            "card_engagements" : null,
            "carousel_swipes" : null,
            "impressions" : [
              165
            ]
          }
        }
      ]
    }
  ],
  "time_series_length" : 1,
  "request" : {
    "params" : {
      "end_time" : "2017-08-04T15:00:00Z",
      "entity" : "ORGANIC_TWEET",
      "country" : null,
      "granularity" : "TOTAL",
      "placement" : "ALL_ON_TWITTER",
      "start_time" : "2017-08-02T15:00:00Z",
      "platform" : null,
      "metric_groups" : [
        "ENGAGEMENT"
      ],
      "segmentation_type" : null,
      "entity_ids" : [
        892951457959378944
      ]
    }
  }
}


Tweet Url: https://twitter.com/comnico/status/892951457959378944
And in the Ads Analytics, this tweet has link clicks = 6

Other tweets have similar result.

Please help me check it.
Thank you very much!


Url_clicks always null?
#2

Thank for you for the information, we are looking into and will get back to you soon.


#3

@comnico - Closing the loop here, the value app_clicks encompasses url or link clicks. In your case, since users clicked a link in the tweet, that will increase the counter for app clicks. The value url_clicks in the stats response corresponds to a prior beta product. I have made note of this and will discuss internally to either deprecate parameter or have the backend datasource updated to reflect param name (url_clicks). Thanks for flagging.


#4