rails-pinterest 0.1.8 → 0.1.9

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: f19a1984705a1cc3b658b73a1a040205c7cbee861eab72d695485f3868958e74
4
- data.tar.gz: d5a621b081c006cc14c9b8c06bda35eb02e460f9237bcfcdf32d031c0de67e38
3
+ metadata.gz: de21c67b169331db4e159f70fcc91368f49ff5943efce3028648626ed4cec444
4
+ data.tar.gz: '092dce98edd2c07fed522b7f15f138fa1f5f2ae9112e03729b23ee175bd0d49e'
5
5
  SHA512:
6
- metadata.gz: f0edcff37880e66307c8642b66a403f05f3786925156717b324e619119fe35a630fb25c609b1b4e997bbed32008ed7cba739baf5562eb86a984669a8d48825e5
7
- data.tar.gz: 9f9ff349eda63a7293d14531d49c78256d5df55bcb687267eda29f37034068f69063389e5737d8361ccc863162b0308bab50fc90d0cafe7c497141f6e631ce52
6
+ metadata.gz: f7691dd8aab99b018044827af463299ff2f40cc410b7657a73bcbd33a2ba54134f8714b1e1333d0ba2438e4f8513aaeaccb5af410e1a84fffba43727b6694755
7
+ data.tar.gz: 7b06745a60caecb08fc762f8f6715acfc5b8525a13102d376ac3317fedc9903629ca5edbbc305e67297e6cd10e4c9277822dbfb5fe2245f2117bc3510a4dbb6a
data/CHANGELOG.md CHANGED
@@ -29,4 +29,7 @@
29
29
  - Update URL of keyword metrics
30
30
 
31
31
  ## [0.1.8] - 2024-02-24
32
- - Bump version for changes in ReadMe.
32
+ - Bump version for changes in ReadMe.
33
+
34
+ ## [0.1.9] - 2024-02-24
35
+ - Correct the parameters for keyword metrics, get_country_keyword_metrics
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails-pinterest (0.1.8)
4
+ rails-pinterest (0.1.9)
5
5
  faraday (>= 1)
6
6
  faraday-multipart (>= 1)
7
7
 
data/README.md CHANGED
@@ -245,7 +245,7 @@ To install this gem onto your local machine, run `bundle exec rake install`.
245
245
 
246
246
  ## Release
247
247
 
248
- Update the version number in `version.rb`, update `CHANGELOG.md`, run `bundle install` to update Gemfile.lock, run `gem build rails-pinterest.gemspec`, and then run `sudo bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org) by `gem push rails-pinterest-{number}.gem`.
248
+ Update the version number in `version.rb`, update `CHANGELOG.md`, run `bundle install` to update Gemfile.lock, delete previous `rails-pinterest-{number}.gem`, run `gem build rails-pinterest.gemspec`, and then run `sudo bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org) by `gem push rails-pinterest-{number}.gem`.
249
249
 
250
250
  ## Contributing
251
251
 
@@ -16,8 +16,8 @@ module Pinterest
16
16
  @client.patch(path: "/ad_accounts/#{ad_account_id}/keywords", parameters: parameters)
17
17
  end
18
18
 
19
- def get_country_keyword_metrics(ad_account_id:, parameters: {})
20
- @client.get(path: "/ad_accounts/#{ad_account_id}/keywords/metrics", parameters: parameters)
19
+ def get_country_keyword_metrics(ad_account_id:, country_code:, keywords:, parameters: {})
20
+ @client.get(path: "/ad_accounts/#{ad_account_id}/keywords/metrics?country_code=#{country_code}&keywords=#{keywords}", parameters: parameters)
21
21
  end
22
22
 
23
23
  # Region list: "US" "CA" "DE" "FR" "ES" "IT" "DE+AT+CH" "GB+IE" "IT+ES+PT+GR+MT" "PL+RO+HU+SK+CZ" "SE+DK+FI+NO" "NL+BE+LU" "AR" "BR" "CO" "MX" "MX+AR+CO+CL" "AU+NZ"
@@ -1,3 +1,3 @@
1
1
  module Pinterest
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-pinterest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Donald Lee