zuck 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/CHANGELOG.markdown +9 -0
- data/README.markdown +7 -1
- data/VERSION +1 -1
- data/lib/zuck/facebook/ad_creative.rb +0 -3
- data/lib/zuck/facebook/ad_group.rb +7 -7
- data/lib/zuck/facebook/targeting_spec.rb +0 -1
- data/lib/zuck.rb +6 -0
- data/spec/fixtures/a_single_account.yml +31 -111
- data/spec/fixtures/a_single_campaign.yml +11 -57
- data/spec/fixtures/a_single_group.yml +13 -62
- data/spec/fixtures/ad_interest_search_disney.yml +19 -19
- data/spec/fixtures/ad_interest_search_moviepilot.yml +15 -18
- data/spec/fixtures/ad_interest_search_nonexistant.yml +11 -11
- data/spec/fixtures/create_a_creative.yml +48 -0
- data/spec/fixtures/create_ad_campaign.yml +44 -226
- data/spec/fixtures/create_ad_group.yml +13 -155
- data/spec/fixtures/create_ad_set.yml +11 -57
- data/spec/fixtures/delete_ad_group.yml +10 -55
- data/spec/fixtures/delete_ad_set.yml +48 -0
- data/spec/fixtures/delete_campaign.yml +93 -0
- data/spec/fixtures/delete_creative.yml +48 -0
- data/spec/fixtures/find_a_single_group_and_update_it.yml +84 -110
- data/spec/fixtures/list_of_ad_accounts.yml +10 -57
- data/spec/fixtures/list_of_ad_campaigns.yml +10 -57
- data/spec/fixtures/list_of_ad_creatives.yml +9 -56
- data/spec/fixtures/list_of_ad_groups.yml +10 -57
- data/spec/fixtures/list_of_all_ad_creatives_of_account.yml +10 -57
- data/spec/fixtures/reach_for_invalid_interest.yml +28 -31
- data/spec/fixtures/reach_for_valid_keywords.yml +13 -13
- data/spec/fixtures/reach_for_valid_keywords_male_young.yml +13 -13
- data/spec/lib/zuck/facebook/ad_interest_spec.rb +1 -1
- data/spec/lib/zuck/facebook/targeting_spec_spec.rb +3 -3
- data/spec/lib/zuck_spec.rb +125 -86
- data/spec/spec_helper.rb +14 -0
- data/test_access_token +1 -1
- data/zuck.gemspec +7 -3
- metadata +49 -45
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://graph.facebook.com/search?access_token=
|
5
|
+
uri: https://graph.facebook.com/v2.2/search?access_token=FAKEACCESSTOKEN&q=moviepilot&type=adinterest
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -18,38 +18,35 @@ http_interactions:
|
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
-
Facebook-Api-Version:
|
22
|
-
- v1.0
|
23
|
-
Etag:
|
24
|
-
- ! '"ba0fafe4ed5264db3ef1b4ac787694e839a1e8a6"'
|
25
21
|
Content-Type:
|
26
22
|
- application/json; charset=UTF-8
|
27
|
-
Pragma:
|
28
|
-
- no-cache
|
29
23
|
Access-Control-Allow-Origin:
|
30
24
|
- ! '*'
|
31
25
|
X-Fb-Rev:
|
32
|
-
- '
|
26
|
+
- '1690131'
|
27
|
+
Etag:
|
28
|
+
- ! '"00c8d060548219c13e6e1e57928c422237f1b484"'
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
33
31
|
Cache-Control:
|
34
32
|
- private, no-cache, no-store, must-revalidate
|
33
|
+
Facebook-Api-Version:
|
34
|
+
- v2.2
|
35
35
|
Expires:
|
36
36
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
37
37
|
X-Fb-Debug:
|
38
|
-
-
|
38
|
+
- MvznFodJDu9SsYDJhQuiq0dgbprzOpN/4lu1rkgDvOAEEM4Lp2gqhw4pNZwLveZUD/iwv1mE7O4HPdAQWzEwTg==
|
39
39
|
Date:
|
40
|
-
- Wed,
|
40
|
+
- Wed, 15 Apr 2015 08:31:45 GMT
|
41
41
|
Connection:
|
42
42
|
- keep-alive
|
43
43
|
Content-Length:
|
44
|
-
- '
|
44
|
+
- '411'
|
45
45
|
body:
|
46
46
|
encoding: US-ASCII
|
47
|
-
string: ! '{"data":[{"
|
48
|
-
|
49
|
-
|
50
|
-
action","id":6014532714533,"audience_size":1372480,"path":[],"description":null},{"name":"moviepilot
|
51
|
-
animation","id":6021685075080,"audience_size":1278040,"path":[],"description":null},{"name":"moviepilot
|
52
|
-
scifi","id":6014484233967,"audience_size":1115420,"path":[],"description":null}]}'
|
47
|
+
string: ! '{"data":[{"id":"6003495809986","name":"moviepilotcom","audience_size":4982640,"path":[],"description":null},{"id":"6003327847780","name":"moviepilot","audience_size":1948110,"path":[],"description":null},{"id":"6016974866325","name":"moviepilot
|
48
|
+
horror","audience_size":5058700,"path":[],"description":null},{"id":"6014532714533","name":"moviepilot
|
49
|
+
action","audience_size":1387320,"path":[],"description":null}]}'
|
53
50
|
http_version:
|
54
|
-
recorded_at: Wed,
|
51
|
+
recorded_at: Wed, 15 Apr 2015 08:31:47 GMT
|
55
52
|
recorded_with: VCR 2.3.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://graph.facebook.com/search?access_token=
|
5
|
+
uri: https://graph.facebook.com/v2.2/search?access_token=FAKEACCESSTOKEN&q=ick%20spickeby&type=adinterest
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -18,26 +18,26 @@ http_interactions:
|
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
-
Facebook-Api-Version:
|
22
|
-
- v1.0
|
23
|
-
Etag:
|
24
|
-
- ! '"1050253aec7b29caff644806927dabfa81406eee"'
|
25
21
|
Content-Type:
|
26
22
|
- application/json; charset=UTF-8
|
27
|
-
Pragma:
|
28
|
-
- no-cache
|
29
23
|
Access-Control-Allow-Origin:
|
30
24
|
- ! '*'
|
31
25
|
X-Fb-Rev:
|
32
|
-
- '
|
26
|
+
- '1690131'
|
27
|
+
Etag:
|
28
|
+
- ! '"1050253aec7b29caff644806927dabfa81406eee"'
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
33
31
|
Cache-Control:
|
34
32
|
- private, no-cache, no-store, must-revalidate
|
33
|
+
Facebook-Api-Version:
|
34
|
+
- v2.2
|
35
35
|
Expires:
|
36
36
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
37
37
|
X-Fb-Debug:
|
38
|
-
-
|
38
|
+
- WNNz7Uoiw1QBioiQSiarW30TUGGOos/AxhNtL6OSKLidnJ84+S16HYI8kR4nnkulDM69Ko8sCxHYR7UIvDreYw==
|
39
39
|
Date:
|
40
|
-
- Wed,
|
40
|
+
- Wed, 15 Apr 2015 08:31:45 GMT
|
41
41
|
Connection:
|
42
42
|
- keep-alive
|
43
43
|
Content-Length:
|
@@ -46,5 +46,5 @@ http_interactions:
|
|
46
46
|
encoding: US-ASCII
|
47
47
|
string: ! '{"data":[]}'
|
48
48
|
http_version:
|
49
|
-
recorded_at: Wed,
|
49
|
+
recorded_at: Wed, 15 Apr 2015 08:31:47 GMT
|
50
50
|
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://graph.facebook.com/v2.2/act_367106653/adcreatives
|
6
|
+
body:
|
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=FAKEACCESSTOKEN
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.9
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
Accept:
|
15
|
+
- ! '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=UTF-8
|
23
|
+
Access-Control-Allow-Origin:
|
24
|
+
- ! '*'
|
25
|
+
X-Fb-Rev:
|
26
|
+
- '1690131'
|
27
|
+
Pragma:
|
28
|
+
- no-cache
|
29
|
+
Cache-Control:
|
30
|
+
- private, no-cache, no-store, must-revalidate
|
31
|
+
Facebook-Api-Version:
|
32
|
+
- v2.2
|
33
|
+
Expires:
|
34
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
35
|
+
X-Fb-Debug:
|
36
|
+
- 9wWrRIJ/Cohv1aG6YzYPLp67jGG4LngMt0ASXLODuReojMnYjEurJAR0CB8/azjZyXQ9rJsu0s1fxwtMIUz27Q==
|
37
|
+
Date:
|
38
|
+
- Wed, 15 Apr 2015 08:31:52 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
Content-Length:
|
42
|
+
- '22'
|
43
|
+
body:
|
44
|
+
encoding: US-ASCII
|
45
|
+
string: ! '{"id":"6024299683866"}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 15 Apr 2015 08:31:54 GMT
|
48
|
+
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/
|
5
|
+
uri: https://graph.facebook.com/v2.2/act_367106653/adcampaign_groups
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
8
|
+
string: daily_budget=1000&name=bloody+campaign+%28via+account%29&redownload=1&access_token=FAKEACCESSTOKEN
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.8.9
|
@@ -18,128 +18,36 @@ http_interactions:
|
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
-
Facebook-Api-Version:
|
22
|
-
- v1.0
|
23
21
|
Content-Type:
|
24
22
|
- application/json; charset=UTF-8
|
25
|
-
Pragma:
|
26
|
-
- no-cache
|
27
23
|
Access-Control-Allow-Origin:
|
28
24
|
- ! '*'
|
29
25
|
X-Fb-Rev:
|
30
|
-
- '
|
31
|
-
Cache-Control:
|
32
|
-
- private, no-cache, no-store, must-revalidate
|
33
|
-
Expires:
|
34
|
-
- Sat, 01 Jan 2000 00:00:00 GMT
|
35
|
-
X-Fb-Debug:
|
36
|
-
- HeM4gUMXZnF8tosYPUyflz1+gmIeE8hhPw1Dlja/IF+QoMaQJHnfqMQSK2Ytn8PLh6G2oXzs7dc/D1bhxUpzQg==
|
37
|
-
Date:
|
38
|
-
- Wed, 17 Dec 2014 12:36:39 GMT
|
39
|
-
Connection:
|
40
|
-
- keep-alive
|
41
|
-
Content-Length:
|
42
|
-
- '22'
|
43
|
-
body:
|
44
|
-
encoding: US-ASCII
|
45
|
-
string: ! '{"id":"6021526002351"}'
|
46
|
-
http_version:
|
47
|
-
recorded_at: Wed, 17 Dec 2014 12:36:39 GMT
|
48
|
-
- request:
|
49
|
-
method: get
|
50
|
-
uri: https://graph.facebook.com/6021526002351?access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A&fields=id,account_id,objective,name,adgroups,campaign_group_status,buying_type
|
51
|
-
body:
|
52
|
-
encoding: US-ASCII
|
53
|
-
string: ''
|
54
|
-
headers:
|
55
|
-
User-Agent:
|
56
|
-
- Faraday v0.8.9
|
57
|
-
Accept-Encoding:
|
58
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
59
|
-
Accept:
|
60
|
-
- ! '*/*'
|
61
|
-
response:
|
62
|
-
status:
|
63
|
-
code: 200
|
64
|
-
message: OK
|
65
|
-
headers:
|
66
|
-
Facebook-Api-Version:
|
67
|
-
- v1.0
|
68
|
-
Etag:
|
69
|
-
- ! '"3736f9a12bc6ae9cc060139d7a7bdf82091b83ed"'
|
70
|
-
Content-Type:
|
71
|
-
- application/json; charset=UTF-8
|
26
|
+
- '1690131'
|
72
27
|
Pragma:
|
73
28
|
- no-cache
|
74
|
-
Access-Control-Allow-Origin:
|
75
|
-
- ! '*'
|
76
|
-
X-Fb-Rev:
|
77
|
-
- '1534884'
|
78
29
|
Cache-Control:
|
79
30
|
- private, no-cache, no-store, must-revalidate
|
80
|
-
Expires:
|
81
|
-
- Sat, 01 Jan 2000 00:00:00 GMT
|
82
|
-
X-Fb-Debug:
|
83
|
-
- dQRT2uJTXlbkwmXD65KiDpyzA+lKD5AaMTI1Vvtoiph4VHgt6XoCejxvqSIgfOQjlEyHHJmZws6hHJeCOpqBFw==
|
84
|
-
Date:
|
85
|
-
- Wed, 17 Dec 2014 12:36:39 GMT
|
86
|
-
Connection:
|
87
|
-
- keep-alive
|
88
|
-
Content-Length:
|
89
|
-
- '147'
|
90
|
-
body:
|
91
|
-
encoding: US-ASCII
|
92
|
-
string: ! '{"id":"6021526002351","account_id":"10150585630710217","objective":"NONE","name":"bloody","campaign_group_status":"PAUSED","buying_type":"AUCTION"}'
|
93
|
-
http_version:
|
94
|
-
recorded_at: Wed, 17 Dec 2014 12:36:39 GMT
|
95
|
-
- request:
|
96
|
-
method: post
|
97
|
-
uri: https://graph.facebook.com/act_10150585630710217/adcampaign_groups
|
98
|
-
body:
|
99
|
-
encoding: US-ASCII
|
100
|
-
string: daily_budget=1000&name=bloody&redownload=1&access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A
|
101
|
-
headers:
|
102
|
-
User-Agent:
|
103
|
-
- Faraday v0.8.9
|
104
|
-
Content-Type:
|
105
|
-
- application/x-www-form-urlencoded
|
106
|
-
Accept:
|
107
|
-
- ! '*/*'
|
108
|
-
response:
|
109
|
-
status:
|
110
|
-
code: 200
|
111
|
-
message: OK
|
112
|
-
headers:
|
113
31
|
Facebook-Api-Version:
|
114
|
-
-
|
115
|
-
Content-Type:
|
116
|
-
- application/json; charset=UTF-8
|
117
|
-
Pragma:
|
118
|
-
- no-cache
|
119
|
-
Access-Control-Allow-Origin:
|
120
|
-
- ! '*'
|
121
|
-
X-Fb-Rev:
|
122
|
-
- '1534884'
|
123
|
-
Cache-Control:
|
124
|
-
- private, no-cache, no-store, must-revalidate
|
32
|
+
- v2.2
|
125
33
|
Expires:
|
126
34
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
127
35
|
X-Fb-Debug:
|
128
|
-
-
|
36
|
+
- 0VWyk3B5tw1/+dND9G1v3N2/WqxDqwybjbYmmbLCU3wXlj+9jxewjKplWDdvLc5fsUhad8KKrYJ0VF/0c0lzPg==
|
129
37
|
Date:
|
130
|
-
- Wed,
|
38
|
+
- Wed, 15 Apr 2015 08:31:47 GMT
|
131
39
|
Connection:
|
132
40
|
- keep-alive
|
133
41
|
Content-Length:
|
134
42
|
- '22'
|
135
43
|
body:
|
136
44
|
encoding: US-ASCII
|
137
|
-
string: ! '{"id":"
|
45
|
+
string: ! '{"id":"6024300270466"}'
|
138
46
|
http_version:
|
139
|
-
recorded_at: Wed,
|
47
|
+
recorded_at: Wed, 15 Apr 2015 08:31:49 GMT
|
140
48
|
- request:
|
141
49
|
method: get
|
142
|
-
uri: https://graph.facebook.com/
|
50
|
+
uri: https://graph.facebook.com/v2.2/6024300270466?access_token=FAKEACCESSTOKEN&fields=id,account_id,objective,name,adgroups,campaign_group_status,buying_type
|
143
51
|
body:
|
144
52
|
encoding: US-ASCII
|
145
53
|
string: ''
|
@@ -155,133 +63,42 @@ http_interactions:
|
|
155
63
|
code: 200
|
156
64
|
message: OK
|
157
65
|
headers:
|
158
|
-
Facebook-Api-Version:
|
159
|
-
- v1.0
|
160
|
-
Etag:
|
161
|
-
- ! '"6353d0cc0af184d726da98c8377b6a40275aa141"'
|
162
|
-
Content-Type:
|
163
|
-
- application/json; charset=UTF-8
|
164
|
-
Pragma:
|
165
|
-
- no-cache
|
166
|
-
Access-Control-Allow-Origin:
|
167
|
-
- ! '*'
|
168
|
-
X-Fb-Rev:
|
169
|
-
- '1534884'
|
170
|
-
Cache-Control:
|
171
|
-
- private, no-cache, no-store, must-revalidate
|
172
|
-
Expires:
|
173
|
-
- Sat, 01 Jan 2000 00:00:00 GMT
|
174
|
-
X-Fb-Debug:
|
175
|
-
- UKZJPyK56yYC8zcqlDeWGhUyeQMN2CzglEDX3iyH/U9aok2lXIHiMt79Sgk8SrvaWeooPuO12QJ/K4pDEyMMCw==
|
176
|
-
Date:
|
177
|
-
- Wed, 17 Dec 2014 12:36:40 GMT
|
178
|
-
Connection:
|
179
|
-
- keep-alive
|
180
|
-
Content-Length:
|
181
|
-
- '147'
|
182
|
-
body:
|
183
|
-
encoding: US-ASCII
|
184
|
-
string: ! '{"id":"6021526002751","account_id":"10150585630710217","objective":"NONE","name":"bloody","campaign_group_status":"ACTIVE","buying_type":"AUCTION"}'
|
185
|
-
http_version:
|
186
|
-
recorded_at: Wed, 17 Dec 2014 12:36:40 GMT
|
187
|
-
- request:
|
188
|
-
method: post
|
189
|
-
uri: https://graph.facebook.com/act_10150585630710217/adcampaign_groups
|
190
|
-
body:
|
191
|
-
encoding: US-ASCII
|
192
|
-
string: objective=NONE&name=bloody&campaign_group_status=PAUSED&redownload=1&access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A
|
193
|
-
headers:
|
194
|
-
User-Agent:
|
195
|
-
- Faraday v0.8.9
|
196
|
-
Content-Type:
|
197
|
-
- application/x-www-form-urlencoded
|
198
|
-
Accept:
|
199
|
-
- ! '*/*'
|
200
|
-
response:
|
201
|
-
status:
|
202
|
-
code: 200
|
203
|
-
message: OK
|
204
|
-
headers:
|
205
|
-
Facebook-Api-Version:
|
206
|
-
- v1.0
|
207
66
|
Content-Type:
|
208
67
|
- application/json; charset=UTF-8
|
209
|
-
Pragma:
|
210
|
-
- no-cache
|
211
68
|
Access-Control-Allow-Origin:
|
212
69
|
- ! '*'
|
213
70
|
X-Fb-Rev:
|
214
|
-
- '
|
215
|
-
Cache-Control:
|
216
|
-
- private, no-cache, no-store, must-revalidate
|
217
|
-
Expires:
|
218
|
-
- Sat, 01 Jan 2000 00:00:00 GMT
|
219
|
-
X-Fb-Debug:
|
220
|
-
- BSslwdPKoCUDbK/Se4RofSPSR+iTZpq/1ITa6q9QPOsR6jvnPg9b1Bjl5egU6DhOkve8TlD9oGcEj6Cv9HSsOg==
|
221
|
-
Date:
|
222
|
-
- Wed, 17 Dec 2014 13:22:11 GMT
|
223
|
-
Connection:
|
224
|
-
- keep-alive
|
225
|
-
Content-Length:
|
226
|
-
- '22'
|
227
|
-
body:
|
228
|
-
encoding: US-ASCII
|
229
|
-
string: ! '{"id":"6021528859351"}'
|
230
|
-
http_version:
|
231
|
-
recorded_at: Wed, 17 Dec 2014 13:22:11 GMT
|
232
|
-
- request:
|
233
|
-
method: get
|
234
|
-
uri: https://graph.facebook.com/6021528859351?access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A&fields=id,account_id,objective,name,adgroups,campaign_group_status,buying_type
|
235
|
-
body:
|
236
|
-
encoding: US-ASCII
|
237
|
-
string: ''
|
238
|
-
headers:
|
239
|
-
User-Agent:
|
240
|
-
- Faraday v0.8.9
|
241
|
-
Accept-Encoding:
|
242
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
243
|
-
Accept:
|
244
|
-
- ! '*/*'
|
245
|
-
response:
|
246
|
-
status:
|
247
|
-
code: 200
|
248
|
-
message: OK
|
249
|
-
headers:
|
250
|
-
Facebook-Api-Version:
|
251
|
-
- v1.0
|
71
|
+
- '1690131'
|
252
72
|
Etag:
|
253
|
-
- ! '"
|
254
|
-
Content-Type:
|
255
|
-
- application/json; charset=UTF-8
|
73
|
+
- ! '"d4275dbdef2f31612d0b584e5007051d574503c5"'
|
256
74
|
Pragma:
|
257
75
|
- no-cache
|
258
|
-
Access-Control-Allow-Origin:
|
259
|
-
- ! '*'
|
260
|
-
X-Fb-Rev:
|
261
|
-
- '1534884'
|
262
76
|
Cache-Control:
|
263
77
|
- private, no-cache, no-store, must-revalidate
|
78
|
+
Facebook-Api-Version:
|
79
|
+
- v2.2
|
264
80
|
Expires:
|
265
81
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
266
82
|
X-Fb-Debug:
|
267
|
-
-
|
83
|
+
- LpfCNLdKBODf0ei6Fqxa8qwCNEiYfXXW8mE7ljp3qePj/PPnYUL9PRfi1/Hp+Xk9EzbDrhzFLDMWITlm177LEA==
|
268
84
|
Date:
|
269
|
-
- Wed,
|
85
|
+
- Wed, 15 Apr 2015 08:31:48 GMT
|
270
86
|
Connection:
|
271
87
|
- keep-alive
|
272
88
|
Content-Length:
|
273
|
-
- '
|
89
|
+
- '162'
|
274
90
|
body:
|
275
91
|
encoding: US-ASCII
|
276
|
-
string: ! '{"id":"
|
92
|
+
string: ! '{"id":"6024300270466","account_id":"367106653","objective":"NONE","name":"bloody
|
93
|
+
campaign (via account)","campaign_group_status":"ACTIVE","buying_type":"AUCTION"}'
|
277
94
|
http_version:
|
278
|
-
recorded_at: Wed,
|
95
|
+
recorded_at: Wed, 15 Apr 2015 08:31:50 GMT
|
279
96
|
- request:
|
280
97
|
method: post
|
281
|
-
uri: https://graph.facebook.com/
|
98
|
+
uri: https://graph.facebook.com/v2.2/act_367106653/adcampaign_groups
|
282
99
|
body:
|
283
100
|
encoding: US-ASCII
|
284
|
-
string:
|
101
|
+
string: objective=NONE&name=bloody+campaign&campaign_group_status=PAUSED&redownload=1&access_token=FAKEACCESSTOKEN
|
285
102
|
headers:
|
286
103
|
User-Agent:
|
287
104
|
- Faraday v0.8.9
|
@@ -294,36 +111,36 @@ http_interactions:
|
|
294
111
|
code: 200
|
295
112
|
message: OK
|
296
113
|
headers:
|
297
|
-
Facebook-Api-Version:
|
298
|
-
- v1.0
|
299
114
|
Content-Type:
|
300
115
|
- application/json; charset=UTF-8
|
301
|
-
Pragma:
|
302
|
-
- no-cache
|
303
116
|
Access-Control-Allow-Origin:
|
304
117
|
- ! '*'
|
305
118
|
X-Fb-Rev:
|
306
|
-
- '
|
119
|
+
- '1690131'
|
120
|
+
Pragma:
|
121
|
+
- no-cache
|
307
122
|
Cache-Control:
|
308
123
|
- private, no-cache, no-store, must-revalidate
|
124
|
+
Facebook-Api-Version:
|
125
|
+
- v2.2
|
309
126
|
Expires:
|
310
127
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
311
128
|
X-Fb-Debug:
|
312
|
-
-
|
129
|
+
- P3oXxQn82F7HYt+7iBd4DOiI84HEg6kNx4snUsbrvD5IIYq6Q5Imrcoc6sHS4vH+mDqgVLyQHGp8CE4tKndWXA==
|
313
130
|
Date:
|
314
|
-
- Wed,
|
131
|
+
- Wed, 15 Apr 2015 08:31:48 GMT
|
315
132
|
Connection:
|
316
133
|
- keep-alive
|
317
134
|
Content-Length:
|
318
135
|
- '22'
|
319
136
|
body:
|
320
137
|
encoding: US-ASCII
|
321
|
-
string: ! '{"id":"
|
138
|
+
string: ! '{"id":"6024300271066"}'
|
322
139
|
http_version:
|
323
|
-
recorded_at: Wed,
|
140
|
+
recorded_at: Wed, 15 Apr 2015 08:31:50 GMT
|
324
141
|
- request:
|
325
142
|
method: get
|
326
|
-
uri: https://graph.facebook.com/
|
143
|
+
uri: https://graph.facebook.com/v2.2/6024300271066?access_token=FAKEACCESSTOKEN&fields=id,account_id,objective,name,adgroups,campaign_group_status,buying_type
|
327
144
|
body:
|
328
145
|
encoding: US-ASCII
|
329
146
|
string: ''
|
@@ -339,33 +156,34 @@ http_interactions:
|
|
339
156
|
code: 200
|
340
157
|
message: OK
|
341
158
|
headers:
|
342
|
-
Facebook-Api-Version:
|
343
|
-
- v1.0
|
344
|
-
Etag:
|
345
|
-
- ! '"0f8e4d1524b28f1e8115bc77daa6af3d21468ff7"'
|
346
159
|
Content-Type:
|
347
160
|
- application/json; charset=UTF-8
|
348
|
-
Pragma:
|
349
|
-
- no-cache
|
350
161
|
Access-Control-Allow-Origin:
|
351
162
|
- ! '*'
|
352
163
|
X-Fb-Rev:
|
353
|
-
- '
|
164
|
+
- '1690131'
|
165
|
+
Etag:
|
166
|
+
- ! '"5fc49c9fce8b1298addf8f2dc950dd6bf98fb83b"'
|
167
|
+
Pragma:
|
168
|
+
- no-cache
|
354
169
|
Cache-Control:
|
355
170
|
- private, no-cache, no-store, must-revalidate
|
171
|
+
Facebook-Api-Version:
|
172
|
+
- v2.2
|
356
173
|
Expires:
|
357
174
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
358
175
|
X-Fb-Debug:
|
359
|
-
-
|
176
|
+
- geKx3F9tyCnl5y8Gyql1y45rljNhu+sOh7cc5u9YbTRIwR8vIejGl7Q+VJi/yucYhUOkvlo12KEoueboI7oTSQ==
|
360
177
|
Date:
|
361
|
-
- Wed,
|
178
|
+
- Wed, 15 Apr 2015 08:31:49 GMT
|
362
179
|
Connection:
|
363
180
|
- keep-alive
|
364
181
|
Content-Length:
|
365
|
-
- '
|
182
|
+
- '148'
|
366
183
|
body:
|
367
184
|
encoding: US-ASCII
|
368
|
-
string: ! '{"id":"
|
185
|
+
string: ! '{"id":"6024300271066","account_id":"367106653","objective":"NONE","name":"bloody
|
186
|
+
campaign","campaign_group_status":"PAUSED","buying_type":"AUCTION"}'
|
369
187
|
http_version:
|
370
|
-
recorded_at: Wed,
|
188
|
+
recorded_at: Wed, 15 Apr 2015 08:31:51 GMT
|
371
189
|
recorded_with: VCR 2.3.0
|