facebook_ads 0.6.6 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -9
- data/facebook_ads.gemspec +2 -2
- data/lib/facebook_ads/ad_set.rb +4 -1
- data/spec/fixtures/cassettes/FacebookAds_AdAccount/_ad_sets/lists_ad_sets.yml +1 -1
- data/spec/fixtures/cassettes/FacebookAds_AdCampaign/_create_ad_set/creates_valid_ad_set.yml +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc922fa9a2ed2685feedc190f87fd6a31f214075
|
|
4
|
+
data.tar.gz: 0daae86e9c4fcb4f5bcb6a69d11491369cbeb37b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 014b409b2d02bcb91bfffdfe7a8fcf342c139a77355fd95e89ca451f867d3b72bd2a5a61e5e0d7c2b5534aaf4cf485e09d6c6db898fe9d6c6732246fcef31901
|
|
7
|
+
data.tar.gz: 4c5e95e8573ab3ea52fa4bbbbfab7a7d72a8d25e926b01409edd7bb18dbac2917dd2138851c7b8346b729323e13c18672fb953a3b3d60ebc6e2ee21cd974f587
|
data/CHANGELOG.md
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
|
+
## 0.6.7 (2019-03-07)
|
|
2
|
+
- Added the following fields to `AdSet`: `attribution_spec`, `start_time` and `end_time`. (#36, @cte)
|
|
3
|
+
|
|
1
4
|
## 0.6.6 (2018-11-29)
|
|
2
|
-
- Added ability to pass date range when fetching `ad_set_activities`.
|
|
5
|
+
- Added ability to pass date range when fetching `ad_set_activities`. (#34, @amosharrafa)
|
|
3
6
|
|
|
4
7
|
## 0.6.5 (2018-11-26)
|
|
5
|
-
- Expose `ad_set_activities` for `ad_sets`.
|
|
8
|
+
- Expose `ad_set_activities` for `ad_sets`. (#31, @amosharrafa)
|
|
6
9
|
|
|
7
10
|
## 0.6.4 (2018-10-03)
|
|
8
|
-
- Expose `budget_remaining`, `daily_budget`, `lifetime_budget` for
|
|
11
|
+
- Expose `budget_remaining`, `daily_budget`, `lifetime_budget` for the `AdCampaign` object. You now have the option to set the budget ad the campaign level instead of the ad set level.
|
|
9
12
|
|
|
10
13
|
## 0.6.3 (2018-05-17)
|
|
11
|
-
- Replaced deprecated `is_autobid` with new `bid_strategy` field
|
|
14
|
+
- Replaced deprecated `is_autobid` with new `bid_strategy` field.
|
|
12
15
|
|
|
13
16
|
## 0.6.2 (2018-05-08)
|
|
14
|
-
- Set Product Catalog path to `/owned_product_catalogs` for API v2.11 compatibility
|
|
17
|
+
- Set Product Catalog path to `/owned_product_catalogs` for API v2.11 compatibility.
|
|
15
18
|
|
|
16
19
|
## 0.4 (2017-07-25)
|
|
17
|
-
- Added ability to pass `bid_amount` parameter when creating ad sets
|
|
18
|
-
- Ad Set `is_autobid` parameter now defaults to `nil` rather than `true
|
|
20
|
+
- Added ability to pass `bid_amount` parameter when creating ad sets.
|
|
21
|
+
- Ad Set `is_autobid` parameter now defaults to `nil` rather than `true`.
|
|
19
22
|
|
|
20
23
|
## 0.3 (2017-07-24)
|
|
21
|
-
- Added ability to pass `app_link` parameter with ad creatives
|
|
24
|
+
- Added ability to pass `app_link` parameter with ad creatives.
|
|
22
25
|
|
|
23
26
|
## 0.2 (2017-07-20)
|
|
24
|
-
- Added ability to configure App Secret to be included with API requests
|
|
27
|
+
- Added ability to configure App Secret to be included with API requests.
|
|
25
28
|
|
|
26
29
|
## 0.1.12 (2017-05-25)
|
|
27
30
|
- Added complete set of ad campaign objectives. (#9, @cte)
|
data/facebook_ads.gemspec
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
# To publish the next version:
|
|
5
5
|
# gem build facebook_ads.gemspec
|
|
6
|
-
# gem push facebook_ads-0.6.
|
|
6
|
+
# gem push facebook_ads-0.6.7.gem
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = 'facebook_ads'
|
|
9
|
-
s.version = '0.6.
|
|
9
|
+
s.version = '0.6.7'
|
|
10
10
|
s.platform = Gem::Platform::RUBY
|
|
11
11
|
s.licenses = ['MIT']
|
|
12
12
|
s.authors = ['Chris Estreich']
|
data/lib/facebook_ads/ad_set.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module FacebookAds
|
|
4
|
-
# https://developers.facebook.com/docs/marketing-api/reference/ad-
|
|
4
|
+
# https://developers.facebook.com/docs/marketing-api/reference/ad-campaign
|
|
5
5
|
class AdSet < Base
|
|
6
6
|
FIELDS = %w[
|
|
7
7
|
id
|
|
@@ -21,6 +21,9 @@ module FacebookAds
|
|
|
21
21
|
lifetime_budget
|
|
22
22
|
promoted_object
|
|
23
23
|
targeting
|
|
24
|
+
attribution_spec
|
|
25
|
+
start_time
|
|
26
|
+
end_time
|
|
24
27
|
created_time
|
|
25
28
|
updated_time
|
|
26
29
|
].freeze
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: get
|
|
5
|
-
uri: https://graph.facebook.com/v<api_version>/act_10152335766987003/adsets?access_token=<access_token>&appsecret_proof=<appsecret_proof>&effective_status%5B%5D=ACTIVE&fields=id,account_id,campaign_id,name,status,configured_status,effective_status,bid_strategy,bid_amount,billing_event,optimization_goal,pacing_type,daily_budget,budget_remaining,lifetime_budget,promoted_object,targeting,created_time,updated_time&limit=100
|
|
5
|
+
uri: https://graph.facebook.com/v<api_version>/act_10152335766987003/adsets?access_token=<access_token>&appsecret_proof=<appsecret_proof>&effective_status%5B%5D=ACTIVE&fields=id,account_id,campaign_id,name,status,configured_status,effective_status,bid_strategy,bid_amount,billing_event,optimization_goal,pacing_type,daily_budget,budget_remaining,lifetime_budget,promoted_object,targeting,attribution_spec,start_time,end_time,created_time,updated_time&limit=100
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
@@ -55,11 +55,11 @@ http_interactions:
|
|
|
55
55
|
body:
|
|
56
56
|
encoding: UTF-8
|
|
57
57
|
string: '{"id":"120330000008135715"}'
|
|
58
|
-
http_version:
|
|
58
|
+
http_version:
|
|
59
59
|
recorded_at: Sat, 26 Aug 2017 00:11:50 GMT
|
|
60
60
|
- request:
|
|
61
61
|
method: get
|
|
62
|
-
uri: https://graph.facebook.com/v<api_version>/120330000008135715?access_token=<access_token>&appsecret_proof=<appsecret_proof>&fields=id,account_id,campaign_id,name,status,configured_status,effective_status,bid_strategy,bid_amount,billing_event,optimization_goal,pacing_type,daily_budget,budget_remaining,lifetime_budget,promoted_object,targeting,created_time,updated_time
|
|
62
|
+
uri: https://graph.facebook.com/v<api_version>/120330000008135715?access_token=<access_token>&appsecret_proof=<appsecret_proof>&fields=id,account_id,campaign_id,name,status,configured_status,effective_status,bid_strategy,bid_amount,billing_event,optimization_goal,pacing_type,daily_budget,budget_remaining,lifetime_budget,promoted_object,targeting,attribution_spec,start_time,end_time,created_time,updated_time
|
|
63
63
|
body:
|
|
64
64
|
encoding: US-ASCII
|
|
65
65
|
string: ''
|
|
@@ -109,6 +109,6 @@ http_interactions:
|
|
|
109
109
|
encoding: UTF-8
|
|
110
110
|
string: '{"id":"120330000008135715","account_id":"10152335766987003","campaign_id":"120330000008134915","name":"Test
|
|
111
111
|
Ad Set","status":"PAUSED","configured_status":"PAUSED","effective_status":"PAUSED","bid_strategy":"LOWEST_COST_WITHOUT_CAP","billing_event":"IMPRESSIONS","optimization_goal":"IMPRESSIONS","pacing_type":["standard"],"daily_budget":"500","budget_remaining":"0","lifetime_budget":"0","targeting":{"age_max":65,"age_min":29,"app_install_state":"not_installed","genders":[2],"geo_locations":{"countries":["US"],"location_types":["home"]},"user_device":["Android_Smartphone","Android_Tablet"],"user_os":["Android"]},"created_time":"2017-08-25T17:11:47-0700","updated_time":"2017-08-25T17:11:47-0700"}'
|
|
112
|
-
http_version:
|
|
112
|
+
http_version:
|
|
113
113
|
recorded_at: Sat, 26 Aug 2017 00:11:50 GMT
|
|
114
114
|
recorded_with: VCR 3.0.3
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: facebook_ads
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Estreich
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-03-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|