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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a31fcb4d68c33b6fb583c0f00bef17ddb12d318c
4
- data.tar.gz: 949366fcb398c647befccc49df5ba2a9cc44255b
3
+ metadata.gz: 1bb5a527242c2b0054b6e9d47d907dba0d07789e
4
+ data.tar.gz: 969784bc06dbd4dab9bbfc8d6c66bae85efb3a46
5
5
  SHA512:
6
- metadata.gz: 1aa1487fea0adea8f643e9edd085473bcbd3f83e44f0dbc0029fcbe1f19edd95e304648f9747b5833258cbce47b6ed8163eaa3e2220c8a9e0b5199de9bec0cbc
7
- data.tar.gz: 21917b75b731b6dfa3f5195e9305726a433cb49302db529d47ab4e9f85d252a02034f584450202aa5cc643e31cbe2ad84f9690e4570827ba748e8b7d515a04ed
6
+ metadata.gz: 36f41c341c1755e5a70712cba6100e542ca2b82a65f84080679f43f13a3159b1f60edbef028aa7bc1e6b4983582191191b89f492c26dbf5ce9a1a2cc71326b6f
7
+ data.tar.gz: e7806d4ab9d564bc8fdf217b09eaa9c1dc710697f64b1bd94ae4fa0f803fde4e4f321a3c108be1bf7e31e9d5a1abaad8328a52cd9750f9861e3792895cf545d6
@@ -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.1.gem
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.5.1'
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
- CANVAS_APP_ENGAGEMENT
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
@@ -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: 'MOBILE_APP_INSTALLS')
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
@@ -8,7 +8,7 @@
8
8
  "created_time": "<time>",
9
9
  "effective_status": "ACTIVE",
10
10
  "name": "Test",
11
- "objective": "MOBILE_APP_INSTALLS",
11
+ "objective": "APP_INSTALLS",
12
12
  "start_time": "<time>",
13
13
  "updated_time": "<time>"
14
14
  }
@@ -7,7 +7,7 @@
7
7
  "created_time": "<time>",
8
8
  "effective_status": "ACTIVE",
9
9
  "name": "Test",
10
- "objective": "MOBILE_APP_INSTALLS",
10
+ "objective": "APP_INSTALLS",
11
11
  "start_time": "<time>",
12
12
  "updated_time": "<time>"
13
13
  }
@@ -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":"MOBILE_APP_INSTALLS","start_time":"1969-12-31T15:59:59-0800","updated_time":"2017-04-25T16:54:27-0700"}],"paging":{"cursors":{"before":"NjA3NjI2MTE2Nzg0MgZDZD","after":"NjA3NjI2MTE2Nzg0MgZDZD"}}}'
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
@@ -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=MOBILE_APP_INSTALLS&status=ACTIVE&access_token=<access_token>
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":"MOBILE_APP_INSTALLS","start_time":"1969-12-31T15:59:59-0800","updated_time":"2017-04-25T17:48:41-0700"}'
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
@@ -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":"MOBILE_APP_INSTALLS","start_time":"1969-12-31T15:59:59-0800","updated_time":"2017-04-25T17:35:27-0700"}'
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":"MOBILE_APP_INSTALLS","start_time":"1969-12-31T15:59:59-0800","updated_time":"2017-04-25T17:35:27-0700"}'
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.5.1
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-09-19 00:00:00.000000000 Z
11
+ date: 2017-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client