Skip to content

Commit

Permalink
check_async_job_status() uses a param called job_ids, not job_id (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
toddwschneider authored and kambayashia committed Feb 20, 2017
1 parent f70ef42 commit b1f2e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/twitter-ads/resources/analytics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ def create_async_job(account, ids, metric_groups, opts = {})

def check_async_job_status(account, opts = {})
# set default values
job_id = opts.fetch(:job_id, nil)
job_ids = opts.fetch(:job_ids, nil)
params = {}
params[:job_id] = job_id if job_id
params[:job_ids] = Array.wrap(job_ids).join(',') if job_ids

resource = self::RESOURCE_ASYNC_STATS % { account_id: account.id }
request = Request.new(account.client, :get, resource, params: params)
Expand Down

0 comments on commit b1f2e97

Please sign in to comment.