twitter-ads 7.0.0 → 7.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c416cfd2439eda9878a5394b0e7ac7b69eff1b096343992435048caf748652a2
4
- data.tar.gz: 49bb5a43466a1ad10a57491b68309391beb55d094e1ef924b6d0c5f1964aa840
3
+ metadata.gz: b42045b5ca461ee6f6a13ed129264351506089d23622ad2429a1a154e0b2b03f
4
+ data.tar.gz: 431d8797b1d1aa606c10672780708112053710b0e745e46e13bd602097c48ca9
5
5
  SHA512:
6
- metadata.gz: f81b4d99b38ad2c4b5df3fbe90d2af2c82d34a213ba443f7341adb8e00f38ab79055b1697d3f11fde669e88f47b573f64ebdd41fedc6db94df4321f104be072f
7
- data.tar.gz: e36024ac178f1e67f19a1f41448b539b314d50a679b82acd5fd1a5e0406d71d21cb7ac82acdf64760899bbbcc0378ed94cbe6bef534ee706cbd40f0e17d5c18a
6
+ metadata.gz: fb703d3ef21d673d313c7223474e5dabbdb0d64233b88550a1135773118273a71272a38b791c927139773de1b62e639f06075fd9a25a94668e9a7cefd9bd0f82
7
+ data.tar.gz: bcef25e9c1a7a4d3ac331bbf901dbaefbe00121a7f0ca6e66c484f0b93585d5d8e85d7d8e46d3bfe771cc5daa584735626300a3b56743e529e4de5031aff3a36
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (C) 2019 Twitter, Inc.
3
+ Copyright (C) 2020 Twitter, Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
-
@@ -17,6 +17,7 @@ module TwitterAds
17
17
  property :updated_at, type: :time, read_only: true
18
18
 
19
19
  property :advertiser_domain
20
+ property :android_app_store_identifier
20
21
  property :automatically_select_bid
21
22
  property :bid_amount_local_micro
22
23
  property :bid_unit
@@ -25,6 +26,7 @@ module TwitterAds
25
26
  property :charge_by
26
27
  property :end_time, type: :time
27
28
  property :entity_status
29
+ property :ios_app_store_identifier
28
30
  property :name
29
31
  property :objective
30
32
  property :optimization
@@ -107,11 +107,17 @@ module TwitterAds
107
107
  Response.new(response.code, response.each {}, response.body)
108
108
  end
109
109
 
110
+ def escape_params(input)
111
+ input.map do |key, value|
112
+ "#{CGI.escape key.to_s}=#{CGI.escape value.to_s}"
113
+ end.join('&')
114
+ end
115
+
110
116
  def http_request
111
117
  request_url = @resource
112
118
 
113
119
  if @options[:params] && !@options[:params].empty?
114
- request_url += "?#{URI.encode_www_form(@options[:params])}"
120
+ request_url += "?#{escape_params(@options[:params])}"
115
121
  end
116
122
 
117
123
  request = HTTP_METHOD[@method].new(request_url)
@@ -2,5 +2,5 @@
2
2
  # Copyright (C) 2019 Twitter, Inc.
3
3
 
4
4
  module TwitterAds
5
- VERSION = '7.0.0'
5
+ VERSION = '7.0.1'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-ads
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Babich
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2020-04-07 00:00:00.000000000 Z
15
+ date: 2020-09-25 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: multi_json
@@ -183,53 +183,53 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  - !ruby/object:Gem::Version
184
184
  version: 2.6.0
185
185
  requirements: []
186
- rubygems_version: 3.1.2
186
+ rubygems_version: 3.0.3
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: The officially supported Twitter Ads API SDK for Ruby.
190
190
  test_files:
191
- - spec/spec_helper.rb
192
- - spec/twitter-ads/retry_count_spec.rb
193
- - spec/twitter-ads/audiences/tailored_audience_spec.rb
191
+ - spec/support/helpers.rb
192
+ - spec/quality_spec.rb
193
+ - spec/shared/properties.rb
194
194
  - spec/twitter-ads/cursor_spec.rb
195
- - spec/twitter-ads/account_spec.rb
196
- - spec/twitter-ads/client_spec.rb
197
- - spec/twitter-ads/targeting/audience_summary_spec.rb
198
195
  - spec/twitter-ads/rate_limit_spec.rb
199
- - spec/twitter-ads/placements_spec.rb
200
- - spec/twitter-ads/campaign/targeting_criteria_spec.rb
201
- - spec/twitter-ads/campaign/app_list_spec.rb
196
+ - spec/twitter-ads/audiences/tailored_audience_spec.rb
197
+ - spec/twitter-ads/targeting/audience_summary_spec.rb
202
198
  - spec/twitter-ads/campaign/line_item_spec.rb
199
+ - spec/twitter-ads/campaign/targeting_criteria_spec.rb
203
200
  - spec/twitter-ads/campaign/tweet_spec.rb
201
+ - spec/twitter-ads/campaign/app_list_spec.rb
202
+ - spec/twitter-ads/creative/promoted_tweet_spec.rb
204
203
  - spec/twitter-ads/creative/tweet_previews_spec.rb
205
204
  - spec/twitter-ads/creative/media_creative_spec.rb
206
- - spec/twitter-ads/creative/promoted_tweet_spec.rb
207
205
  - spec/twitter-ads/creative/promoted_account_spec.rb
206
+ - spec/twitter-ads/account_spec.rb
208
207
  - spec/twitter-ads/utils_spec.rb
209
- - spec/shared/properties.rb
210
- - spec/support/helpers.rb
211
- - spec/fixtures/audience_summary.json
212
- - spec/fixtures/line_items_load.json
213
- - spec/fixtures/promotable_users_all.json
214
- - spec/fixtures/reach_estimate.json
215
- - spec/fixtures/accounts_features.json
208
+ - spec/twitter-ads/client_spec.rb
209
+ - spec/twitter-ads/placements_spec.rb
210
+ - spec/twitter-ads/retry_count_spec.rb
211
+ - spec/spec_helper.rb
212
+ - spec/fixtures/promoted_tweets_all.json
213
+ - spec/fixtures/campaigns_load.json
214
+ - spec/fixtures/promoted_tweets_load.json
216
215
  - spec/fixtures/videos_all.json
216
+ - spec/fixtures/accounts_load.json
217
217
  - spec/fixtures/line_items_all.json
218
- - spec/fixtures/placements.json
219
- - spec/fixtures/promotable_users_load.json
220
- - spec/fixtures/tweet_previews.json
221
- - spec/fixtures/tailored_audiences_all.json
222
- - spec/fixtures/promoted_tweets_all.json
218
+ - spec/fixtures/accounts_features.json
219
+ - spec/fixtures/line_items_load.json
223
220
  - spec/fixtures/funding_instruments_load.json
221
+ - spec/fixtures/videos_load.json
222
+ - spec/fixtures/funding_instruments_all.json
223
+ - spec/fixtures/tweet_previews.json
224
224
  - spec/fixtures/tailored_audiences_load.json
225
+ - spec/fixtures/placements.json
226
+ - spec/fixtures/tailored_audiences_all.json
227
+ - spec/fixtures/reach_estimate.json
225
228
  - spec/fixtures/app_lists_load.json
226
- - spec/fixtures/promoted_tweets_load.json
227
- - spec/fixtures/funding_instruments_all.json
228
- - spec/fixtures/campaigns_load.json
229
+ - spec/fixtures/audience_summary.json
230
+ - spec/fixtures/campaigns_all.json
229
231
  - spec/fixtures/app_lists_all.json
230
- - spec/fixtures/accounts_load.json
232
+ - spec/fixtures/promotable_users_all.json
231
233
  - spec/fixtures/no_content.json
232
- - spec/fixtures/campaigns_all.json
233
234
  - spec/fixtures/accounts_all.json
234
- - spec/fixtures/videos_load.json
235
- - spec/quality_spec.rb
235
+ - spec/fixtures/promotable_users_load.json