def users(params)
      resource = RESOURCE_USERS % { account_id: account.id, id: id }
      headers = { 'Content-Type' => 'application/json' }
      response = TwitterAds::Request.new(account.client,
                                         :post,
                                         resource,
                                         headers: headers,
                                         body: params.to_json).perform
      success_count = response.body[:data][:success_count]
      total_count = response.body[:data][:total_count]

      [success_count, total_count]
    end
def users(params)
      resource = RESOURCE_USERS % { account_id: account.id, id: id }
      headers = { 'Content-Type' => 'application/json' }
      response = TwitterAds::Request.new(account.client,
                                         :post,
                                         resource,
                                         headers: headers,
                                         body: params.to_json).perform
      success_count = response.body[:data][:success_count]
      total_count = response.body[:data][:total_count]

      [success_count, total_count]
    end
This is a private API and requires whitelisting from Twitter.

 This endpoint will allow partners to add, update and remove users from a given
 tailored_audience_id.
 The endpoint will also accept multiple user identifier types per user as well.

 @example
   tailored_audience.users(
     account,
     [
       {
         "operation_type": "Update",
         "params": {
           "effective_at": "2018-05-15T00:00:00Z",
           "expires_at": "2019-01-01T07:00:00Z",
           "users": [
             {
               "twitter_id": [
                 "4798b8bbdcf6f2a52e527f46a3d7a7c9aefb541afda03af79c74809ecc6376f3"
               ]
             }
           ]
         }
       }
     ]
   )

 @since 4.0

 @return success_count, total_count