facebook_ads 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/facebook_ads.gemspec +2 -2
- data/lib/facebook_ads/ad_campaign.rb +5 -8
- data/lib/facebook_ads/ad_set.rb +2 -0
- data/spec/facebook_ads/ad_account_spec.rb +1 -1
- data/spec/fixtures/approvals/facebookads_adaccount/ad_campaigns/lists_campaigns.approved.json +1 -1
- data/spec/fixtures/approvals/facebookads_adaccount/create_ad_campaign/creates_a_new_ad_campaign.approved.json +1 -1
- data/spec/fixtures/cassettes/FacebookAds_AdAccount/_ad_campaigns/lists_campaigns.yml +1 -1
- data/spec/fixtures/cassettes/FacebookAds_AdAccount/_create_ad_campaign/creates_a_new_ad_campaign.yml +2 -2
- data/spec/fixtures/cassettes/FacebookAds_AdCampaign/_destroy/sets_effective_status_to_deleted.yml +2 -2
- 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: 1bb5a527242c2b0054b6e9d47d907dba0d07789e
|
4
|
+
data.tar.gz: 969784bc06dbd4dab9bbfc8d6c66bae85efb3a46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36f41c341c1755e5a70712cba6100e542ca2b82a65f84080679f43f13a3159b1f60edbef028aa7bc1e6b4983582191191b89f492c26dbf5ce9a1a2cc71326b6f
|
7
|
+
data.tar.gz: e7806d4ab9d564bc8fdf217b09eaa9c1dc710697f64b1bd94ae4fa0f803fde4e4f321a3c108be1bf7e31e9d5a1abaad8328a52cd9750f9861e3792895cf545d6
|
data/facebook_ads.gemspec
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
# To publish the next version:
|
4
4
|
# gem build facebook_ads.gemspec
|
5
|
-
# gem push facebook_ads-0.
|
5
|
+
# gem push facebook_ads-0.6.0.gem
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = 'facebook_ads'
|
8
|
-
s.version = '0.
|
8
|
+
s.version = '0.6.0'
|
9
9
|
s.platform = Gem::Platform::RUBY
|
10
10
|
s.licenses = ['MIT']
|
11
11
|
s.authors = ['Chris Estreich']
|
@@ -30,22 +30,19 @@ module FacebookAds
|
|
30
30
|
].freeze
|
31
31
|
|
32
32
|
OBJECTIVES = %w[
|
33
|
+
APP_INSTALLS
|
33
34
|
BRAND_AWARENESS
|
34
|
-
|
35
|
-
CANVAS_APP_INSTALLS
|
35
|
+
CONVERSIONS
|
36
36
|
EVENT_RESPONSES
|
37
37
|
LEAD_GENERATION
|
38
|
+
LINK_CLICKS
|
38
39
|
LOCAL_AWARENESS
|
39
|
-
MOBILE_APP_ENGAGEMENT
|
40
|
-
MOBILE_APP_INSTALLS
|
41
|
-
NONE
|
42
40
|
OFFER_CLAIMS
|
43
41
|
PAGE_LIKES
|
44
42
|
POST_ENGAGEMENT
|
45
|
-
LINK_CLICKS
|
46
|
-
CONVERSIONS
|
47
|
-
VIDEO_VIEWS
|
48
43
|
PRODUCT_CATALOG_SALES
|
44
|
+
REACH
|
45
|
+
VIDEO_VIEWS
|
49
46
|
].freeze
|
50
47
|
|
51
48
|
# belongs_to ad_account
|
data/lib/facebook_ads/ad_set.rb
CHANGED
@@ -37,6 +37,7 @@ module FacebookAds
|
|
37
37
|
NONE
|
38
38
|
APP_INSTALLS
|
39
39
|
BRAND_AWARENESS
|
40
|
+
AD_RECALL_LIFT
|
40
41
|
CLICKS
|
41
42
|
ENGAGED_USERS
|
42
43
|
EVENT_RESPONSES
|
@@ -52,6 +53,7 @@ module FacebookAds
|
|
52
53
|
SOCIAL_IMPRESSIONS
|
53
54
|
VIDEO_VIEWS
|
54
55
|
APP_DOWNLOADS
|
56
|
+
LANDING_PAGE_VIEWS
|
55
57
|
].freeze
|
56
58
|
|
57
59
|
# belongs_to ad_account
|
@@ -37,7 +37,7 @@ describe FacebookAds::AdAccount do
|
|
37
37
|
|
38
38
|
describe '.create_ad_campaign' do
|
39
39
|
it 'creates a new ad campaign', :vcr do
|
40
|
-
ad_campaign = account.create_ad_campaign(name: 'Test', objective: '
|
40
|
+
ad_campaign = account.create_ad_campaign(name: 'Test', objective: 'APP_INSTALLS')
|
41
41
|
verify(format: :json) { JSON.dump(ad_campaign) }
|
42
42
|
end
|
43
43
|
end
|
@@ -50,7 +50,7 @@ http_interactions:
|
|
50
50
|
- '434'
|
51
51
|
body:
|
52
52
|
encoding: UTF-8
|
53
|
-
string: '{"data":[{"id":"6076261167842","account_id":"10152335766987003","buying_type":"AUCTION","can_use_spend_cap":true,"configured_status":"ACTIVE","created_time":"2017-04-25T16:54:27-0700","effective_status":"ACTIVE","name":"Test","objective":"
|
53
|
+
string: '{"data":[{"id":"6076261167842","account_id":"10152335766987003","buying_type":"AUCTION","can_use_spend_cap":true,"configured_status":"ACTIVE","created_time":"2017-04-25T16:54:27-0700","effective_status":"ACTIVE","name":"Test","objective":"APP_INSTALLS","start_time":"1969-12-31T15:59:59-0800","updated_time":"2017-04-25T16:54:27-0700"}],"paging":{"cursors":{"before":"NjA3NjI2MTE2Nzg0MgZDZD","after":"NjA3NjI2MTE2Nzg0MgZDZD"}}}'
|
54
54
|
http_version:
|
55
55
|
recorded_at: Wed, 26 Apr 2017 00:48:41 GMT
|
56
56
|
recorded_with: VCR 3.0.3
|
data/spec/fixtures/cassettes/FacebookAds_AdAccount/_create_ad_campaign/creates_a_new_ad_campaign.yml
CHANGED
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://graph.facebook.com/v<api_version>/act_10152335766987003/campaigns
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: name=Test&objective=
|
8
|
+
string: name=Test&objective=APP_INSTALLS&status=ACTIVE&access_token=<access_token>
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- application/json
|
@@ -109,7 +109,7 @@ http_interactions:
|
|
109
109
|
- '333'
|
110
110
|
body:
|
111
111
|
encoding: UTF-8
|
112
|
-
string: '{"id":"6076262393242","account_id":"10152335766987003","buying_type":"AUCTION","can_use_spend_cap":true,"configured_status":"ACTIVE","created_time":"2017-04-25T17:48:41-0700","effective_status":"ACTIVE","name":"Test","objective":"
|
112
|
+
string: '{"id":"6076262393242","account_id":"10152335766987003","buying_type":"AUCTION","can_use_spend_cap":true,"configured_status":"ACTIVE","created_time":"2017-04-25T17:48:41-0700","effective_status":"ACTIVE","name":"Test","objective":"APP_INSTALLS","start_time":"1969-12-31T15:59:59-0800","updated_time":"2017-04-25T17:48:41-0700"}'
|
113
113
|
http_version:
|
114
114
|
recorded_at: Wed, 26 Apr 2017 00:48:42 GMT
|
115
115
|
recorded_with: VCR 3.0.3
|
data/spec/fixtures/cassettes/FacebookAds_AdCampaign/_destroy/sets_effective_status_to_deleted.yml
CHANGED
@@ -50,7 +50,7 @@ http_interactions:
|
|
50
50
|
- '335'
|
51
51
|
body:
|
52
52
|
encoding: UTF-8
|
53
|
-
string: '{"id":"6076262142242","account_id":"10152335766987003","buying_type":"AUCTION","can_use_spend_cap":true,"configured_status":"DELETED","created_time":"2017-04-25T17:34:09-0700","effective_status":"DELETED","name":"Test","objective":"
|
53
|
+
string: '{"id":"6076262142242","account_id":"10152335766987003","buying_type":"AUCTION","can_use_spend_cap":true,"configured_status":"DELETED","created_time":"2017-04-25T17:34:09-0700","effective_status":"DELETED","name":"Test","objective":"APP_INSTALLS","start_time":"1969-12-31T15:59:59-0800","updated_time":"2017-04-25T17:35:27-0700"}'
|
54
54
|
http_version:
|
55
55
|
recorded_at: Wed, 26 Apr 2017 00:52:19 GMT
|
56
56
|
- request:
|
@@ -158,7 +158,7 @@ http_interactions:
|
|
158
158
|
- '335'
|
159
159
|
body:
|
160
160
|
encoding: UTF-8
|
161
|
-
string: '{"id":"6076262142242","account_id":"10152335766987003","buying_type":"AUCTION","can_use_spend_cap":true,"configured_status":"DELETED","created_time":"2017-04-25T17:34:09-0700","effective_status":"DELETED","name":"Test","objective":"
|
161
|
+
string: '{"id":"6076262142242","account_id":"10152335766987003","buying_type":"AUCTION","can_use_spend_cap":true,"configured_status":"DELETED","created_time":"2017-04-25T17:34:09-0700","effective_status":"DELETED","name":"Test","objective":"APP_INSTALLS","start_time":"1969-12-31T15:59:59-0800","updated_time":"2017-04-25T17:35:27-0700"}'
|
162
162
|
http_version:
|
163
163
|
recorded_at: Wed, 26 Apr 2017 00:52:20 GMT
|
164
164
|
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.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Estreich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|