rails-pinterest 0.1.7 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/pinterest/keywords.rb +2 -2
- data/lib/pinterest/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de21c67b169331db4e159f70fcc91368f49ff5943efce3028648626ed4cec444
|
4
|
+
data.tar.gz: '092dce98edd2c07fed522b7f15f138fa1f5f2ae9112e03729b23ee175bd0d49e'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7691dd8aab99b018044827af463299ff2f40cc410b7657a73bcbd33a2ba54134f8714b1e1333d0ba2438e4f8513aaeaccb5af410e1a84fffba43727b6694755
|
7
|
+
data.tar.gz: 7b06745a60caecb08fc762f8f6715acfc5b8525a13102d376ac3317fedc9903629ca5edbbc305e67297e6cd10e4c9277822dbfb5fe2245f2117bc3510a4dbb6a
|
data/CHANGELOG.md
CHANGED
@@ -26,4 +26,10 @@
|
|
26
26
|
- Update suggested related terms to use limit of 10 instead of 4.
|
27
27
|
|
28
28
|
## [0.1.7] - 2024-02-24
|
29
|
-
- Update URL of keyword metrics
|
29
|
+
- Update URL of keyword metrics
|
30
|
+
|
31
|
+
## [0.1.8] - 2024-02-24
|
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
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, and then run `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).
|
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
|
|
data/lib/pinterest/keywords.rb
CHANGED
@@ -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"
|
data/lib/pinterest/version.rb
CHANGED