zuck 2.1.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.ruby-version +1 -0
- data/CHANGELOG.markdown +7 -0
- data/VERSION +1 -1
- data/lib/zuck.rb +4 -4
- data/lib/zuck/facebook/ad_account.rb +0 -1
- data/lib/zuck/facebook/ad_creative.rb +0 -2
- data/lib/zuck/facebook/ad_group.rb +5 -8
- data/lib/zuck/facebook/ad_set.rb +1 -1
- data/spec/fixtures/a_single_account.yml +28 -28
- data/spec/fixtures/a_single_campaign.yml +14 -12
- data/spec/fixtures/a_single_group.yml +13 -11
- data/spec/fixtures/ad_interest_search_disney.yml +61 -35
- data/spec/fixtures/ad_interest_search_moviepilot.yml +59 -31
- data/spec/fixtures/ad_interest_search_nonexistant.yml +10 -8
- data/spec/fixtures/create_a_creative.yml +11 -9
- data/spec/fixtures/create_ad_campaign.yml +48 -40
- data/spec/fixtures/create_ad_group.yml +17 -13
- data/spec/fixtures/create_ad_set.yml +14 -12
- data/spec/fixtures/delete_ad_group.yml +11 -9
- data/spec/fixtures/delete_ad_set.yml +11 -9
- data/spec/fixtures/delete_campaign.yml +22 -18
- data/spec/fixtures/delete_creative.yml +11 -9
- data/spec/fixtures/find_a_single_group_and_update_it.yml +98 -64
- data/spec/fixtures/list_of_ad_accounts.yml +13 -11
- data/spec/fixtures/list_of_ad_campaigns.yml +13 -11
- data/spec/fixtures/list_of_ad_creatives.yml +10 -8
- data/spec/fixtures/list_of_ad_groups.yml +13 -11
- data/spec/fixtures/list_of_all_ad_creatives_of_account.yml +13 -11
- data/spec/fixtures/reach_for_invalid_interest.yml +29 -23
- data/spec/fixtures/reach_for_valid_keywords.yml +13 -11
- data/spec/fixtures/reach_for_valid_keywords_male_young.yml +13 -11
- data/spec/lib/zuck/facebook/ad_interest_spec.rb +1 -1
- data/spec/lib/zuck/facebook/targeting_spec_spec.rb +29 -25
- data/spec/lib/zuck_spec.rb +11 -6
- data/spec/spec_helper.rb +7 -1
- data/test_access_token +1 -1
- data/zuck.gemspec +4 -4
- metadata +3 -3
- data/.rvmrc +0 -1
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://graph.facebook.com/v2.
|
5
|
+
uri: https://graph.facebook.com/v2.4/search?access_token=DUMMY_TOKEN&q=ick%20spickeby&type=adinterest
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -18,12 +18,14 @@ http_interactions:
|
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
-
Content-Type:
|
22
|
-
- application/json; charset=UTF-8
|
23
21
|
Access-Control-Allow-Origin:
|
24
22
|
- ! '*'
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=UTF-8
|
25
|
+
X-Fb-Trace-Id:
|
26
|
+
- Ef4UcTkA94L
|
25
27
|
X-Fb-Rev:
|
26
|
-
- '
|
28
|
+
- '1928154'
|
27
29
|
Etag:
|
28
30
|
- ! '"1050253aec7b29caff644806927dabfa81406eee"'
|
29
31
|
Pragma:
|
@@ -31,13 +33,13 @@ http_interactions:
|
|
31
33
|
Cache-Control:
|
32
34
|
- private, no-cache, no-store, must-revalidate
|
33
35
|
Facebook-Api-Version:
|
34
|
-
- v2.
|
36
|
+
- v2.4
|
35
37
|
Expires:
|
36
38
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
37
39
|
X-Fb-Debug:
|
38
|
-
-
|
40
|
+
- SyWvW7PjP9UyfThaKkcjNngIQVmzIKPkhR/wDNSk9nYA+gP4cS3Wh73JFpdUWTJX7fXkGVigwg9KfOPWYk1mWg==
|
39
41
|
Date:
|
40
|
-
-
|
42
|
+
- Thu, 10 Sep 2015 09:47:15 GMT
|
41
43
|
Connection:
|
42
44
|
- keep-alive
|
43
45
|
Content-Length:
|
@@ -46,5 +48,5 @@ http_interactions:
|
|
46
48
|
encoding: US-ASCII
|
47
49
|
string: ! '{"data":[]}'
|
48
50
|
http_version:
|
49
|
-
recorded_at:
|
51
|
+
recorded_at: Thu, 10 Sep 2015 09:47:15 GMT
|
50
52
|
recorded_with: VCR 2.3.0
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://graph.facebook.com/v2.
|
5
|
+
uri: https://graph.facebook.com/v2.4/act_367106653/adcreatives
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string: title=bloody+title&body=bloody+body&object_url=http%3A%2F%2Fmoviepilot.com%2F&image_url=http%3A%2F%2Fimages-cdn.moviepilot.com%2Fimage%2Fupload%2Fc_fill%2Ch_246%2Cw_470%2Fv1427727623%2Fmoviepilot.jpg&redownload=1&access_token=
|
8
|
+
string: title=bloody+title&body=bloody+body&object_url=http%3A%2F%2Fmoviepilot.com%2F&image_url=http%3A%2F%2Fimages-cdn.moviepilot.com%2Fimage%2Fupload%2Fc_fill%2Ch_246%2Cw_470%2Fv1427727623%2Fmoviepilot.jpg&redownload=1&access_token=DUMMY_TOKEN
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.8.9
|
@@ -18,24 +18,26 @@ http_interactions:
|
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
-
Content-Type:
|
22
|
-
- application/json; charset=UTF-8
|
23
21
|
Access-Control-Allow-Origin:
|
24
22
|
- ! '*'
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=UTF-8
|
25
|
+
X-Fb-Trace-Id:
|
26
|
+
- DCtV1HKJ1Jq
|
25
27
|
X-Fb-Rev:
|
26
|
-
- '
|
28
|
+
- '1928154'
|
27
29
|
Pragma:
|
28
30
|
- no-cache
|
29
31
|
Cache-Control:
|
30
32
|
- private, no-cache, no-store, must-revalidate
|
31
33
|
Facebook-Api-Version:
|
32
|
-
- v2.
|
34
|
+
- v2.4
|
33
35
|
Expires:
|
34
36
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
35
37
|
X-Fb-Debug:
|
36
|
-
-
|
38
|
+
- /No6AqgU30oz3k44JjIwO5QI3w9HPYrof0X1XRMTyuKGL51uyfRtG2St7dCsCE9ehW8amJdMsUQmFaBdESYuIA==
|
37
39
|
Date:
|
38
|
-
-
|
40
|
+
- Thu, 10 Sep 2015 09:47:24 GMT
|
39
41
|
Connection:
|
40
42
|
- keep-alive
|
41
43
|
Content-Length:
|
@@ -44,5 +46,5 @@ http_interactions:
|
|
44
46
|
encoding: US-ASCII
|
45
47
|
string: ! '{"id":"6024299683866"}'
|
46
48
|
http_version:
|
47
|
-
recorded_at:
|
49
|
+
recorded_at: Thu, 10 Sep 2015 09:47:24 GMT
|
48
50
|
recorded_with: VCR 2.3.0
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://graph.facebook.com/v2.
|
5
|
+
uri: https://graph.facebook.com/v2.4/act_367106653/adcampaign_groups
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string: daily_budget=1000&name=bloody+campaign+%28via+account%29&redownload=1&access_token=
|
8
|
+
string: daily_budget=1000&name=bloody+campaign+%28via+account%29&redownload=1&access_token=DUMMY_TOKEN
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.8.9
|
@@ -18,36 +18,38 @@ http_interactions:
|
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
-
Content-Type:
|
22
|
-
- application/json; charset=UTF-8
|
23
21
|
Access-Control-Allow-Origin:
|
24
22
|
- ! '*'
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=UTF-8
|
25
|
+
X-Fb-Trace-Id:
|
26
|
+
- B8CET9086si
|
25
27
|
X-Fb-Rev:
|
26
|
-
- '
|
28
|
+
- '1928154'
|
27
29
|
Pragma:
|
28
30
|
- no-cache
|
29
31
|
Cache-Control:
|
30
32
|
- private, no-cache, no-store, must-revalidate
|
31
33
|
Facebook-Api-Version:
|
32
|
-
- v2.
|
34
|
+
- v2.4
|
33
35
|
Expires:
|
34
36
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
35
37
|
X-Fb-Debug:
|
36
|
-
-
|
38
|
+
- D4I+6CHTKrwwkaKF3tU6Xb0HuMXbV062sL0frseWWJOQ6L1V98UNoW74Ieg8NjfANuQ0PEq2qailJ8BzaoEXYA==
|
37
39
|
Date:
|
38
|
-
-
|
40
|
+
- Thu, 10 Sep 2015 09:47:19 GMT
|
39
41
|
Connection:
|
40
42
|
- keep-alive
|
41
43
|
Content-Length:
|
42
44
|
- '22'
|
43
45
|
body:
|
44
46
|
encoding: US-ASCII
|
45
|
-
string: ! '{"id":"
|
47
|
+
string: ! '{"id":"6029725593266"}'
|
46
48
|
http_version:
|
47
|
-
recorded_at:
|
49
|
+
recorded_at: Thu, 10 Sep 2015 09:47:19 GMT
|
48
50
|
- request:
|
49
51
|
method: get
|
50
|
-
uri: https://graph.facebook.com/v2.
|
52
|
+
uri: https://graph.facebook.com/v2.4/6029725593266?access_token=DUMMY_TOKEN&fields=id,account_id,objective,name,adgroups,campaign_group_status,buying_type
|
51
53
|
body:
|
52
54
|
encoding: US-ASCII
|
53
55
|
string: ''
|
@@ -63,42 +65,44 @@ http_interactions:
|
|
63
65
|
code: 200
|
64
66
|
message: OK
|
65
67
|
headers:
|
66
|
-
Content-Type:
|
67
|
-
- application/json; charset=UTF-8
|
68
68
|
Access-Control-Allow-Origin:
|
69
69
|
- ! '*'
|
70
|
+
Content-Type:
|
71
|
+
- application/json; charset=UTF-8
|
72
|
+
X-Fb-Trace-Id:
|
73
|
+
- DrIyUDmMRYI
|
70
74
|
X-Fb-Rev:
|
71
|
-
- '
|
75
|
+
- '1928154'
|
72
76
|
Etag:
|
73
|
-
- ! '"
|
77
|
+
- ! '"38d1711ccb1597eed80cd4dc5011ef83ac89b2f5"'
|
74
78
|
Pragma:
|
75
79
|
- no-cache
|
76
80
|
Cache-Control:
|
77
81
|
- private, no-cache, no-store, must-revalidate
|
78
82
|
Facebook-Api-Version:
|
79
|
-
- v2.
|
83
|
+
- v2.4
|
80
84
|
Expires:
|
81
85
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
82
86
|
X-Fb-Debug:
|
83
|
-
-
|
87
|
+
- A+DlCcSjvZCpISfNvY1726dDhe4wBBTEJsL3X/sVuqywoa/eJk1U9kcj19WvszW35Rgd+n5bg1unnsTemLYs+Q==
|
84
88
|
Date:
|
85
|
-
-
|
89
|
+
- Thu, 10 Sep 2015 09:47:19 GMT
|
86
90
|
Connection:
|
87
91
|
- keep-alive
|
88
92
|
Content-Length:
|
89
93
|
- '162'
|
90
94
|
body:
|
91
95
|
encoding: US-ASCII
|
92
|
-
string: ! '{"id":"
|
96
|
+
string: ! '{"id":"6029725593266","account_id":"367106653","objective":"NONE","name":"bloody
|
93
97
|
campaign (via account)","campaign_group_status":"ACTIVE","buying_type":"AUCTION"}'
|
94
98
|
http_version:
|
95
|
-
recorded_at:
|
99
|
+
recorded_at: Thu, 10 Sep 2015 09:47:19 GMT
|
96
100
|
- request:
|
97
101
|
method: post
|
98
|
-
uri: https://graph.facebook.com/v2.
|
102
|
+
uri: https://graph.facebook.com/v2.4/act_367106653/adcampaign_groups
|
99
103
|
body:
|
100
104
|
encoding: US-ASCII
|
101
|
-
string: objective=NONE&name=bloody+campaign&campaign_group_status=PAUSED&redownload=1&access_token=
|
105
|
+
string: objective=NONE&name=bloody+campaign&campaign_group_status=PAUSED&redownload=1&access_token=DUMMY_TOKEN
|
102
106
|
headers:
|
103
107
|
User-Agent:
|
104
108
|
- Faraday v0.8.9
|
@@ -111,36 +115,38 @@ http_interactions:
|
|
111
115
|
code: 200
|
112
116
|
message: OK
|
113
117
|
headers:
|
114
|
-
Content-Type:
|
115
|
-
- application/json; charset=UTF-8
|
116
118
|
Access-Control-Allow-Origin:
|
117
119
|
- ! '*'
|
120
|
+
Content-Type:
|
121
|
+
- application/json; charset=UTF-8
|
122
|
+
X-Fb-Trace-Id:
|
123
|
+
- EN/RVRzwKnM
|
118
124
|
X-Fb-Rev:
|
119
|
-
- '
|
125
|
+
- '1928154'
|
120
126
|
Pragma:
|
121
127
|
- no-cache
|
122
128
|
Cache-Control:
|
123
129
|
- private, no-cache, no-store, must-revalidate
|
124
130
|
Facebook-Api-Version:
|
125
|
-
- v2.
|
131
|
+
- v2.4
|
126
132
|
Expires:
|
127
133
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
128
134
|
X-Fb-Debug:
|
129
|
-
-
|
135
|
+
- k8Ll7k4dAjdyQVcyPRxVi6GX0iuVjAY4orRpypKImDvSD6eTNJMpdh/E0bRTxyHZhJ3uRi73vqlpKV+GljjNiA==
|
130
136
|
Date:
|
131
|
-
-
|
137
|
+
- Thu, 10 Sep 2015 09:47:20 GMT
|
132
138
|
Connection:
|
133
139
|
- keep-alive
|
134
140
|
Content-Length:
|
135
141
|
- '22'
|
136
142
|
body:
|
137
143
|
encoding: US-ASCII
|
138
|
-
string: ! '{"id":"
|
144
|
+
string: ! '{"id":"6029725594066"}'
|
139
145
|
http_version:
|
140
|
-
recorded_at:
|
146
|
+
recorded_at: Thu, 10 Sep 2015 09:47:20 GMT
|
141
147
|
- request:
|
142
148
|
method: get
|
143
|
-
uri: https://graph.facebook.com/v2.
|
149
|
+
uri: https://graph.facebook.com/v2.4/6029725594066?access_token=DUMMY_TOKEN&fields=id,account_id,objective,name,adgroups,campaign_group_status,buying_type
|
144
150
|
body:
|
145
151
|
encoding: US-ASCII
|
146
152
|
string: ''
|
@@ -156,34 +162,36 @@ http_interactions:
|
|
156
162
|
code: 200
|
157
163
|
message: OK
|
158
164
|
headers:
|
159
|
-
Content-Type:
|
160
|
-
- application/json; charset=UTF-8
|
161
165
|
Access-Control-Allow-Origin:
|
162
166
|
- ! '*'
|
167
|
+
Content-Type:
|
168
|
+
- application/json; charset=UTF-8
|
169
|
+
X-Fb-Trace-Id:
|
170
|
+
- E+t2cJPb/jM
|
163
171
|
X-Fb-Rev:
|
164
|
-
- '
|
172
|
+
- '1928154'
|
165
173
|
Etag:
|
166
|
-
- ! '"
|
174
|
+
- ! '"89a44c9a956eb960b4aaa07fdff11ddddfbc867f"'
|
167
175
|
Pragma:
|
168
176
|
- no-cache
|
169
177
|
Cache-Control:
|
170
178
|
- private, no-cache, no-store, must-revalidate
|
171
179
|
Facebook-Api-Version:
|
172
|
-
- v2.
|
180
|
+
- v2.4
|
173
181
|
Expires:
|
174
182
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
175
183
|
X-Fb-Debug:
|
176
|
-
-
|
184
|
+
- 4WROlHo/RF7NCCSVSwBjPaa+c+sKPrOMWCpU7AYf6pVoQSzcL5M04cZtu0BXmWGID7R5s08FGaZGv7CFK8uyjw==
|
177
185
|
Date:
|
178
|
-
-
|
186
|
+
- Thu, 10 Sep 2015 09:47:20 GMT
|
179
187
|
Connection:
|
180
188
|
- keep-alive
|
181
189
|
Content-Length:
|
182
190
|
- '148'
|
183
191
|
body:
|
184
192
|
encoding: US-ASCII
|
185
|
-
string: ! '{"id":"
|
193
|
+
string: ! '{"id":"6029725594066","account_id":"367106653","objective":"NONE","name":"bloody
|
186
194
|
campaign","campaign_group_status":"PAUSED","buying_type":"AUCTION"}'
|
187
195
|
http_version:
|
188
|
-
recorded_at:
|
196
|
+
recorded_at: Thu, 10 Sep 2015 09:47:20 GMT
|
189
197
|
recorded_with: VCR 2.3.0
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://graph.facebook.com/v2.
|
5
|
+
uri: https://graph.facebook.com/v2.4/act_367106653/adgroups
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string: name=Rap+like+me&
|
8
|
+
string: name=Rap+like+me&bid_amount=5&creative=%7B%22creative_id%22%3A+6024299683866%7D&campaign_id=6029725595466&redownload=1&access_token=DUMMY_TOKEN
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.8.9
|
@@ -18,34 +18,38 @@ http_interactions:
|
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
-
Content-Type:
|
22
|
-
- application/json; charset=UTF-8
|
23
21
|
Access-Control-Allow-Origin:
|
24
22
|
- ! '*'
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=UTF-8
|
25
|
+
X-Fb-Trace-Id:
|
26
|
+
- FB2xuDbnlmH
|
25
27
|
X-Fb-Rev:
|
26
|
-
- '
|
28
|
+
- '1928154'
|
27
29
|
Pragma:
|
28
30
|
- no-cache
|
29
31
|
Cache-Control:
|
30
32
|
- private, no-cache, no-store, must-revalidate
|
31
33
|
Facebook-Api-Version:
|
32
|
-
- v2.
|
34
|
+
- v2.4
|
33
35
|
Expires:
|
34
36
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
37
|
+
Vary:
|
38
|
+
- Accept-Encoding
|
35
39
|
X-Fb-Debug:
|
36
|
-
-
|
40
|
+
- lh22DJX/Fra93KXJkypzizxWVdEv7h1+hWDsVgAexBOJYCO9mWdr/Ru+V/O7j0fZQBU74FsWW2T5nJ/KmSnL0A==
|
37
41
|
Date:
|
38
|
-
-
|
42
|
+
- Thu, 10 Sep 2015 09:47:26 GMT
|
43
|
+
Transfer-Encoding:
|
44
|
+
- chunked
|
39
45
|
Connection:
|
40
46
|
- keep-alive
|
41
|
-
Content-Length:
|
42
|
-
- '956'
|
43
47
|
body:
|
44
48
|
encoding: US-ASCII
|
45
|
-
string: ! '{"id":"
|
46
|
-
like me","
|
49
|
+
string: ! '{"id":"6029725596866","data":{"adgroups":{"6029725596866":{"id":"6029725596866","account_id":"367106653","adgroup_status":"PENDING_REVIEW","bid_info":{"REACH":5},"bid_type":"ABSOLUTE_OCPM","campaign_id":"6029725595466","campaign_group_id":"6029725594066","name":"Rap
|
50
|
+
like me","targeting":{"age_max":65,"age_min":18,"geo_locations":{"countries":["US","GB"],"location_types":["home"]},"page_types":["desktopfeed","mobileexternal","mobilefeed","rightcolumn"]},"tracking_specs":[{"action.type":["link_click"],"object":["10150219314478408"]},{"action.type":["page_engagement"],"page":["158352134203230"]}],"updated_time":1441878445,"created_time":1441878445,"bid_amount":5}},"creatives":{"6024299683866":{"id":"6024299683866","body":"bloody
|
47
51
|
body","image_hash":"1040d95f6a3505d0da0c8502cc87376a","image_url":"https:\/\/fbcdn-creative-a.akamaihd.net\/hads-ak-xaf1\/t45.1600-4\/s110x80\/10736784_6024299683266_385998835_n.png","actor_id":"158352134203230","object_type":"DOMAIN","object_url":"http:\/\/moviepilot.com\/","title":"bloody
|
48
52
|
title"}}}}'
|
49
53
|
http_version:
|
50
|
-
recorded_at:
|
54
|
+
recorded_at: Thu, 10 Sep 2015 09:47:26 GMT
|
51
55
|
recorded_with: VCR 2.3.0
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://graph.facebook.com/v2.
|
5
|
+
uri: https://graph.facebook.com/v2.4/act_367106653/adcampaigns
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
8
|
+
string: bid_amount=1&billing_event=IMPRESSIONS&optimization_goal=REACH&name=bloody+ad+set&campaign_status=PAUSED&daily_budget=100&targeting=%7B%27geo_locations%27%3A%7B%27countries%27%3A%5B%27US%27%2C%27GB%27%5D%7D%7D&campaign_group_id=6029725594066&redownload=1&access_token=DUMMY_TOKEN
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.8.9
|
@@ -18,32 +18,34 @@ http_interactions:
|
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
-
Content-Type:
|
22
|
-
- application/json; charset=UTF-8
|
23
21
|
Access-Control-Allow-Origin:
|
24
22
|
- ! '*'
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=UTF-8
|
25
|
+
X-Fb-Trace-Id:
|
26
|
+
- ElFoFDZW+ww
|
25
27
|
X-Fb-Rev:
|
26
|
-
- '
|
28
|
+
- '1928154'
|
27
29
|
Pragma:
|
28
30
|
- no-cache
|
29
31
|
Cache-Control:
|
30
32
|
- private, no-cache, no-store, must-revalidate
|
31
33
|
Facebook-Api-Version:
|
32
|
-
- v2.
|
34
|
+
- v2.4
|
33
35
|
Expires:
|
34
36
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
35
37
|
X-Fb-Debug:
|
36
|
-
-
|
38
|
+
- q28/CF3tpmK0A/hkIOK7/cdDJKz/sZ+x6V0qQGQRo/jbzwkueIPGN/dXzCoX5g40+sulYdQ0zyXrPCT4o5qLNg==
|
37
39
|
Date:
|
38
|
-
-
|
40
|
+
- Thu, 10 Sep 2015 09:47:21 GMT
|
39
41
|
Connection:
|
40
42
|
- keep-alive
|
41
43
|
Content-Length:
|
42
|
-
- '
|
44
|
+
- '897'
|
43
45
|
body:
|
44
46
|
encoding: US-ASCII
|
45
|
-
string: ! '{"id":"
|
46
|
-
ad set","daily_budget":100,"campaign_status":"PAUSED","
|
47
|
+
string: ! '{"id":"6029725595466","data":{"campaigns":{"6029725595466":{"id":"6029725595466","account_id":"367106653","name":"bloody
|
48
|
+
ad set","daily_budget":"100","lifetime_budget":"0","campaign_status":"PAUSED","frequency_cap":0,"frequency_cap_reset_period":0,"lifetime_frequency_cap":0,"lifetime_imps":0,"start_time":"2015-09-10T02:47:21-0700","updated_time":"2015-09-10T02:47:21-0700","created_time":"2015-09-10T02:47:21-0700","campaign_group_id":"6029725594066","product_ad_behavior":"REQUIRE_LAST_SEEN_PRODUCTS","budget_remaining":"88","bid_info":{"REACH":1},"is_autobid":false,"targeting":{"age_max":65,"age_min":18,"geo_locations":{"countries":["US","GB"],"location_types":["home"]},"page_types":["desktopfeed","mobileexternal","mobilefeed","rightcolumn"]},"optimization_goal":"REACH","bid_amount":1,"billing_event":"IMPRESSIONS","rtb_flag":false,"pacing_type":["standard"],"use_new_app_click":false}}}}'
|
47
49
|
http_version:
|
48
|
-
recorded_at:
|
50
|
+
recorded_at: Thu, 10 Sep 2015 09:47:21 GMT
|
49
51
|
recorded_with: VCR 2.3.0
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://graph.facebook.com/v2.
|
5
|
+
uri: https://graph.facebook.com/v2.4/6029725596866
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string: access_token=
|
8
|
+
string: access_token=DUMMY_TOKEN&method=delete
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.8.9
|
@@ -18,24 +18,26 @@ http_interactions:
|
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
-
Content-Type:
|
22
|
-
- application/json; charset=UTF-8
|
23
21
|
Access-Control-Allow-Origin:
|
24
22
|
- ! '*'
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=UTF-8
|
25
|
+
X-Fb-Trace-Id:
|
26
|
+
- HcahAij1CM2
|
25
27
|
X-Fb-Rev:
|
26
|
-
- '
|
28
|
+
- '1928154'
|
27
29
|
Pragma:
|
28
30
|
- no-cache
|
29
31
|
Cache-Control:
|
30
32
|
- private, no-cache, no-store, must-revalidate
|
31
33
|
Facebook-Api-Version:
|
32
|
-
- v2.
|
34
|
+
- v2.4
|
33
35
|
Expires:
|
34
36
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
35
37
|
X-Fb-Debug:
|
36
|
-
-
|
38
|
+
- 9MXnSFEzz4Lpq5R6Z5MhysxMt2jROG54WCpGfClSaFldigYgXbB9XO76OxIUtcJempeJtFmcnkv8JX5Zkl0W8w==
|
37
39
|
Date:
|
38
|
-
-
|
40
|
+
- Thu, 10 Sep 2015 09:47:31 GMT
|
39
41
|
Connection:
|
40
42
|
- keep-alive
|
41
43
|
Content-Length:
|
@@ -44,5 +46,5 @@ http_interactions:
|
|
44
46
|
encoding: US-ASCII
|
45
47
|
string: ! '{"success":true}'
|
46
48
|
http_version:
|
47
|
-
recorded_at:
|
49
|
+
recorded_at: Thu, 10 Sep 2015 09:47:31 GMT
|
48
50
|
recorded_with: VCR 2.3.0
|