Skip to content

Commit

Permalink
Merge pull request #3 from kambayashia/hotfix/update-line-item
Browse files Browse the repository at this point in the history
  • Loading branch information
kambayashia authored Sep 23, 2016
2 parents dbe65b8 + 15cd8f3 commit 84f043e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/twitter-ads/campaign/line_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,16 @@ def targeting_criteria(id = nil, opts = {})
id ? TargetingCriteria.load(account, id, opts) : TargetingCriteria.all(account, @id, opts)
end

def to_params
params = super

# If automatically_set_bid is set, bid_type must not be set.
params.delete(:bid_type) if params[:automatically_select_bid]

# advertiser_user_id is currently beta-only and causes an error when sent.
params.delete(:advertiser_user_id)

params
end
end
end

0 comments on commit 84f043e

Please sign in to comment.