zuck 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/CHANGELOG.markdown +35 -5
- data/Gemfile +3 -2
- data/Gemfile.lock +13 -10
- data/README.markdown +26 -38
- data/VERSION +1 -1
- data/console +8 -2
- data/lib/zuck/facebook/ad_account.rb +22 -5
- data/lib/zuck/facebook/ad_campaign.rb +12 -15
- data/lib/zuck/facebook/ad_creative.rb +14 -14
- data/lib/zuck/facebook/ad_group.rb +12 -12
- data/lib/zuck/facebook/ad_interest.rb +12 -15
- data/lib/zuck/facebook/ad_set.rb +30 -0
- data/lib/zuck/facebook/targeting_spec.rb +4 -4
- data/lib/zuck/fb_object/dsl.rb +15 -7
- data/lib/zuck/fb_object/hash_delegator.rb +20 -3
- data/lib/zuck/fb_object/write.rb +18 -6
- data/lib/zuck/fb_object.rb +1 -1
- data/lib/zuck/helpers.rb +20 -1
- data/spec/fixtures/a_single_account.yml +146 -29
- data/spec/fixtures/a_single_campaign.yml +61 -12
- data/spec/fixtures/a_single_group.yml +65 -12
- data/spec/fixtures/ad_interest_search_disney.yml +16 -14
- data/spec/fixtures/ad_interest_search_moviepilot.yml +15 -98
- data/spec/fixtures/ad_interest_search_nonexistant.yml +7 -5
- data/spec/fixtures/create_ad_campaign.yml +334 -9
- data/spec/fixtures/create_ad_group.yml +154 -9
- data/spec/fixtures/create_ad_set.yml +95 -0
- data/spec/fixtures/delete_ad_group.yml +55 -8
- data/spec/fixtures/find_a_single_group_and_update_it.yml +122 -95
- data/spec/fixtures/list_of_ad_accounts.yml +77 -58
- data/spec/fixtures/list_of_ad_campaigns.yml +77 -55
- data/spec/fixtures/list_of_ad_creatives.yml +61 -13
- data/spec/fixtures/list_of_ad_groups.yml +77 -60
- data/spec/fixtures/list_of_all_ad_creatives_of_account.yml +77 -73
- data/spec/fixtures/reach_for_invalid_interest.yml +29 -111
- data/spec/fixtures/reach_for_valid_keywords.yml +11 -54
- data/spec/fixtures/reach_for_valid_keywords_male_young.yml +11 -60
- data/spec/lib/zuck/facebook/ad_account_spec.rb +1 -1
- data/spec/lib/zuck/facebook/ad_interest_spec.rb +2 -2
- data/spec/lib/zuck/facebook/targeting_spec_spec.rb +13 -21
- data/spec/lib/zuck_spec.rb +34 -23
- data/spec/spec_helper.rb +2 -5
- data/test_access_token +1 -0
- data/zuck.gemspec +15 -9
- metadata +63 -46
@@ -1,95 +1,5 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://graph.facebook.com/search?access_token=CAAEvJ5vzhl8BAPGZCZCPL4FxryEHXGxPCuCGeqe3PEWIjhIvJ00HB8PPpokFmUkemvmEUHirqdNMc7zIDLSTVnX6jTQjAgSlzcYrAYJRQ32fr6RM5ZAnKPdgFEwN5tgvswatXZAI4vu7ZBAQexRl9MU0CpwW7JDDBZAGo5XDrCKrBxkUUWJUvh&q=moviepilotcom&type=adinterest
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.8.7
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
-
Accept:
|
15
|
-
- ! '*/*'
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
Etag:
|
22
|
-
- ! '"f4708ef59d4457b905f54670ff7a3ab8fb53d758"'
|
23
|
-
Content-Type:
|
24
|
-
- application/json; charset=UTF-8
|
25
|
-
Pragma:
|
26
|
-
- no-cache
|
27
|
-
Access-Control-Allow-Origin:
|
28
|
-
- ! '*'
|
29
|
-
X-Fb-Rev:
|
30
|
-
- '1216101'
|
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
|
-
- 9Ihh9aS8WUH+aH6uc7MUk/Kxu6CV8yMAw6N0dClTJaM=
|
37
|
-
Date:
|
38
|
-
- Tue, 22 Apr 2014 16:22:30 GMT
|
39
|
-
Connection:
|
40
|
-
- keep-alive
|
41
|
-
Content-Length:
|
42
|
-
- '107'
|
43
|
-
body:
|
44
|
-
encoding: US-ASCII
|
45
|
-
string: ! '{"data":[{"name":"moviepilotcom","id":6003495809986,"audience_size":4992196,"path":[],"description":null}]}'
|
46
|
-
http_version:
|
47
|
-
recorded_at: Tue, 22 Apr 2014 16:22:32 GMT
|
48
|
-
- request:
|
49
|
-
method: get
|
50
|
-
uri: https://graph.facebook.com/search?access_token=CAAEvJ5vzhl8BAPGZCZCPL4FxryEHXGxPCuCGeqe3PEWIjhIvJ00HB8PPpokFmUkemvmEUHirqdNMc7zIDLSTVnX6jTQjAgSlzcYrAYJRQ32fr6RM5ZAnKPdgFEwN5tgvswatXZAI4vu7ZBAQexRl9MU0CpwW7JDDBZAGo5XDrCKrBxkUUWJUvh&q=moviepilotcocomm&type=adinterest
|
51
|
-
body:
|
52
|
-
encoding: US-ASCII
|
53
|
-
string: ''
|
54
|
-
headers:
|
55
|
-
User-Agent:
|
56
|
-
- Faraday v0.8.7
|
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
|
-
Etag:
|
67
|
-
- ! '"1050253aec7b29caff644806927dabfa81406eee"'
|
68
|
-
Content-Type:
|
69
|
-
- application/json; charset=UTF-8
|
70
|
-
Pragma:
|
71
|
-
- no-cache
|
72
|
-
Access-Control-Allow-Origin:
|
73
|
-
- ! '*'
|
74
|
-
X-Fb-Rev:
|
75
|
-
- '1216101'
|
76
|
-
Cache-Control:
|
77
|
-
- private, no-cache, no-store, must-revalidate
|
78
|
-
Expires:
|
79
|
-
- Sat, 01 Jan 2000 00:00:00 GMT
|
80
|
-
X-Fb-Debug:
|
81
|
-
- bBOfyA7fkYvP457S15CzkxmNavxH4F+Zx+Sys3Ux4v0=
|
82
|
-
Date:
|
83
|
-
- Tue, 22 Apr 2014 16:23:50 GMT
|
84
|
-
Connection:
|
85
|
-
- keep-alive
|
86
|
-
Content-Length:
|
87
|
-
- '11'
|
88
|
-
body:
|
89
|
-
encoding: US-ASCII
|
90
|
-
string: ! '{"data":[]}'
|
91
|
-
http_version:
|
92
|
-
recorded_at: Tue, 22 Apr 2014 16:23:52 GMT
|
93
3
|
- request:
|
94
4
|
method: get
|
95
5
|
uri: https://graph.facebook.com/search?access_token=CAAEvJ5vzhl8BAPGZCZCPL4FxryEHXGxPCuCGeqe3PEWIjhIvJ00HB8PPpokFmUkemvmEUHirqdNMc7zIDLSTVnX6jTQjAgSlzcYrAYJRQ32fr6RM5ZAnKPdgFEwN5tgvswatXZAI4vu7ZBAQexRl9MU0CpwW7JDDBZAGo5XDrCKrBxkUUWJUvh&q=moviepilot&type=adinterest
|
@@ -98,7 +8,7 @@ http_interactions:
|
|
98
8
|
string: ''
|
99
9
|
headers:
|
100
10
|
User-Agent:
|
101
|
-
- Faraday v0.8.
|
11
|
+
- Faraday v0.8.9
|
102
12
|
Accept-Encoding:
|
103
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
104
14
|
Accept:
|
@@ -108,8 +18,10 @@ http_interactions:
|
|
108
18
|
code: 200
|
109
19
|
message: OK
|
110
20
|
headers:
|
21
|
+
Facebook-Api-Version:
|
22
|
+
- v1.0
|
111
23
|
Etag:
|
112
|
-
- ! '"
|
24
|
+
- ! '"ba0fafe4ed5264db3ef1b4ac787694e839a1e8a6"'
|
113
25
|
Content-Type:
|
114
26
|
- application/json; charset=UTF-8
|
115
27
|
Pragma:
|
@@ -117,22 +29,27 @@ http_interactions:
|
|
117
29
|
Access-Control-Allow-Origin:
|
118
30
|
- ! '*'
|
119
31
|
X-Fb-Rev:
|
120
|
-
- '
|
32
|
+
- '1534884'
|
121
33
|
Cache-Control:
|
122
34
|
- private, no-cache, no-store, must-revalidate
|
123
35
|
Expires:
|
124
36
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
125
37
|
X-Fb-Debug:
|
126
|
-
-
|
38
|
+
- PDh3mmxbsNqedDiNcGWtSC5YjmDAdCIV8DlHVOBGy2HkwKHTcgtRhxV/aSil9efUIZamLZayMMTlXYK/8+n2YA==
|
127
39
|
Date:
|
128
|
-
-
|
40
|
+
- Wed, 17 Dec 2014 13:24:51 GMT
|
129
41
|
Connection:
|
130
42
|
- keep-alive
|
131
43
|
Content-Length:
|
132
|
-
- '
|
44
|
+
- '810'
|
133
45
|
body:
|
134
46
|
encoding: US-ASCII
|
135
|
-
string: ! '{"data":[{"name":"moviepilotcom","id":6003495809986,"audience_size":
|
47
|
+
string: ! '{"data":[{"name":"moviepilot horror","id":6016974866325,"audience_size":5155140,"path":[],"description":null},{"name":"moviepilotcom","id":6003495809986,"audience_size":4805530,"path":[],"description":null},{"name":"moviepilot","id":6003327847780,"audience_size":1960530,"path":[],"description":null},{"name":"moviepilot
|
48
|
+
superheroes","id":6013950241910,"audience_size":2443280,"path":[],"description":null},{"name":"moviepilot
|
49
|
+
tv","id":6014564835078,"audience_size":1427730,"path":[],"description":null},{"name":"moviepilot
|
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}]}'
|
136
53
|
http_version:
|
137
|
-
recorded_at:
|
54
|
+
recorded_at: Wed, 17 Dec 2014 13:24:51 GMT
|
138
55
|
recorded_with: VCR 2.3.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.8.
|
11
|
+
- Faraday v0.8.9
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -18,6 +18,8 @@ http_interactions:
|
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
+
Facebook-Api-Version:
|
22
|
+
- v1.0
|
21
23
|
Etag:
|
22
24
|
- ! '"1050253aec7b29caff644806927dabfa81406eee"'
|
23
25
|
Content-Type:
|
@@ -27,15 +29,15 @@ http_interactions:
|
|
27
29
|
Access-Control-Allow-Origin:
|
28
30
|
- ! '*'
|
29
31
|
X-Fb-Rev:
|
30
|
-
- '
|
32
|
+
- '1534884'
|
31
33
|
Cache-Control:
|
32
34
|
- private, no-cache, no-store, must-revalidate
|
33
35
|
Expires:
|
34
36
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
35
37
|
X-Fb-Debug:
|
36
|
-
-
|
38
|
+
- EeFRTf5/YcAT53Pj0vja6Ox7Gf/Utwd/C1994u9m/1KNlnwdO7ZUnAyMWLtNfMJIGaKumgmxYKba1r7tg+99sg==
|
37
39
|
Date:
|
38
|
-
-
|
40
|
+
- Wed, 17 Dec 2014 13:24:51 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: ! '{"data":[]}'
|
46
48
|
http_version:
|
47
|
-
recorded_at:
|
49
|
+
recorded_at: Wed, 17 Dec 2014 13:24:52 GMT
|
48
50
|
recorded_with: VCR 2.3.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://graph.facebook.com/act_10150585630710217/
|
5
|
+
uri: https://graph.facebook.com/act_10150585630710217/adcampaign_groups
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
8
|
+
string: objective=NONE&name=bloody&campaign_group_status=PAUSED&redownload=1&access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.8.
|
11
|
+
- Faraday v0.8.9
|
12
12
|
Content-Type:
|
13
13
|
- application/x-www-form-urlencoded
|
14
14
|
Accept:
|
@@ -18,29 +18,354 @@ http_interactions:
|
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
+
Facebook-Api-Version:
|
22
|
+
- v1.0
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=UTF-8
|
25
|
+
Pragma:
|
26
|
+
- no-cache
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- ! '*'
|
29
|
+
X-Fb-Rev:
|
30
|
+
- '1534884'
|
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
|
72
|
+
Pragma:
|
73
|
+
- no-cache
|
74
|
+
Access-Control-Allow-Origin:
|
75
|
+
- ! '*'
|
76
|
+
X-Fb-Rev:
|
77
|
+
- '1534884'
|
78
|
+
Cache-Control:
|
79
|
+
- 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
|
+
Facebook-Api-Version:
|
114
|
+
- v1.0
|
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
|
125
|
+
Expires:
|
126
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
127
|
+
X-Fb-Debug:
|
128
|
+
- ytW26Re6zcyJJrzH6p0jzQX//SqKqs31D/Ajq62fEx06RhlA+86UJVZPuSiZgCiVSnK2XqzeYteBGkk6D/zQqA==
|
129
|
+
Date:
|
130
|
+
- Wed, 17 Dec 2014 12:36:40 GMT
|
131
|
+
Connection:
|
132
|
+
- keep-alive
|
133
|
+
Content-Length:
|
134
|
+
- '22'
|
135
|
+
body:
|
136
|
+
encoding: US-ASCII
|
137
|
+
string: ! '{"id":"6021526002751"}'
|
138
|
+
http_version:
|
139
|
+
recorded_at: Wed, 17 Dec 2014 12:36:40 GMT
|
140
|
+
- request:
|
141
|
+
method: get
|
142
|
+
uri: https://graph.facebook.com/6021526002751?access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A&fields=id,account_id,objective,name,adgroups,campaign_group_status,buying_type
|
143
|
+
body:
|
144
|
+
encoding: US-ASCII
|
145
|
+
string: ''
|
146
|
+
headers:
|
147
|
+
User-Agent:
|
148
|
+
- Faraday v0.8.9
|
149
|
+
Accept-Encoding:
|
150
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
151
|
+
Accept:
|
152
|
+
- ! '*/*'
|
153
|
+
response:
|
154
|
+
status:
|
155
|
+
code: 200
|
156
|
+
message: OK
|
157
|
+
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
|
+
Content-Type:
|
208
|
+
- application/json; charset=UTF-8
|
209
|
+
Pragma:
|
210
|
+
- no-cache
|
21
211
|
Access-Control-Allow-Origin:
|
22
212
|
- ! '*'
|
213
|
+
X-Fb-Rev:
|
214
|
+
- '1534884'
|
23
215
|
Cache-Control:
|
24
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
|
252
|
+
Etag:
|
253
|
+
- ! '"752a6a8f80f647b40b853df0bdabd436f39f1be2"'
|
25
254
|
Content-Type:
|
26
255
|
- application/json; charset=UTF-8
|
256
|
+
Pragma:
|
257
|
+
- no-cache
|
258
|
+
Access-Control-Allow-Origin:
|
259
|
+
- ! '*'
|
260
|
+
X-Fb-Rev:
|
261
|
+
- '1534884'
|
262
|
+
Cache-Control:
|
263
|
+
- private, no-cache, no-store, must-revalidate
|
27
264
|
Expires:
|
28
265
|
- Sat, 01 Jan 2000 00:00:00 GMT
|
266
|
+
X-Fb-Debug:
|
267
|
+
- 6h465SC5/bFpaXvhJjiOTNLPb1Cslv5ZT8KP7lyeYOd8vOZtv/Y2ZiGZVitmiBlFXrh0f82PPTHp6/SVQK2XOw==
|
268
|
+
Date:
|
269
|
+
- Wed, 17 Dec 2014 13:22:11 GMT
|
270
|
+
Connection:
|
271
|
+
- keep-alive
|
272
|
+
Content-Length:
|
273
|
+
- '147'
|
274
|
+
body:
|
275
|
+
encoding: US-ASCII
|
276
|
+
string: ! '{"id":"6021528859351","account_id":"10150585630710217","objective":"NONE","name":"bloody","campaign_group_status":"PAUSED","buying_type":"AUCTION"}'
|
277
|
+
http_version:
|
278
|
+
recorded_at: Wed, 17 Dec 2014 13:22:11 GMT
|
279
|
+
- request:
|
280
|
+
method: post
|
281
|
+
uri: https://graph.facebook.com/act_10150585630710217/adcampaign_groups
|
282
|
+
body:
|
283
|
+
encoding: US-ASCII
|
284
|
+
string: daily_budget=1000&name=bloody&redownload=1&access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A
|
285
|
+
headers:
|
286
|
+
User-Agent:
|
287
|
+
- Faraday v0.8.9
|
288
|
+
Content-Type:
|
289
|
+
- application/x-www-form-urlencoded
|
290
|
+
Accept:
|
291
|
+
- ! '*/*'
|
292
|
+
response:
|
293
|
+
status:
|
294
|
+
code: 200
|
295
|
+
message: OK
|
296
|
+
headers:
|
297
|
+
Facebook-Api-Version:
|
298
|
+
- v1.0
|
299
|
+
Content-Type:
|
300
|
+
- application/json; charset=UTF-8
|
301
|
+
Pragma:
|
302
|
+
- no-cache
|
303
|
+
Access-Control-Allow-Origin:
|
304
|
+
- ! '*'
|
305
|
+
X-Fb-Rev:
|
306
|
+
- '1534884'
|
307
|
+
Cache-Control:
|
308
|
+
- private, no-cache, no-store, must-revalidate
|
309
|
+
Expires:
|
310
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
311
|
+
X-Fb-Debug:
|
312
|
+
- SPlBiUXbWh21CrryVHMCnq+8SmtcNwvxHBDFx3QjCzBesHCX4T+4hmoCHHb1KzkvUG/W15CyC4GcqRUUs8uJGQ==
|
313
|
+
Date:
|
314
|
+
- Wed, 17 Dec 2014 13:22:11 GMT
|
315
|
+
Connection:
|
316
|
+
- keep-alive
|
317
|
+
Content-Length:
|
318
|
+
- '22'
|
319
|
+
body:
|
320
|
+
encoding: US-ASCII
|
321
|
+
string: ! '{"id":"6021528860151"}'
|
322
|
+
http_version:
|
323
|
+
recorded_at: Wed, 17 Dec 2014 13:22:12 GMT
|
324
|
+
- request:
|
325
|
+
method: get
|
326
|
+
uri: https://graph.facebook.com/6021528860151?access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A&fields=id,account_id,objective,name,adgroups,campaign_group_status,buying_type
|
327
|
+
body:
|
328
|
+
encoding: US-ASCII
|
329
|
+
string: ''
|
330
|
+
headers:
|
331
|
+
User-Agent:
|
332
|
+
- Faraday v0.8.9
|
333
|
+
Accept-Encoding:
|
334
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
335
|
+
Accept:
|
336
|
+
- ! '*/*'
|
337
|
+
response:
|
338
|
+
status:
|
339
|
+
code: 200
|
340
|
+
message: OK
|
341
|
+
headers:
|
342
|
+
Facebook-Api-Version:
|
343
|
+
- v1.0
|
344
|
+
Etag:
|
345
|
+
- ! '"0f8e4d1524b28f1e8115bc77daa6af3d21468ff7"'
|
346
|
+
Content-Type:
|
347
|
+
- application/json; charset=UTF-8
|
29
348
|
Pragma:
|
30
349
|
- no-cache
|
350
|
+
Access-Control-Allow-Origin:
|
351
|
+
- ! '*'
|
31
352
|
X-Fb-Rev:
|
32
|
-
- '
|
353
|
+
- '1534884'
|
354
|
+
Cache-Control:
|
355
|
+
- private, no-cache, no-store, must-revalidate
|
356
|
+
Expires:
|
357
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
33
358
|
X-Fb-Debug:
|
34
|
-
-
|
359
|
+
- KAGRLC9NZdrfAwAqHuaKCZMq8gtr4xUagFtbNqXDSzc0K/0NJyP3+53Nv70857mXOdyd2vvSuHJYVhC6gjT7Fg==
|
35
360
|
Date:
|
36
|
-
-
|
361
|
+
- Wed, 17 Dec 2014 13:22:12 GMT
|
37
362
|
Connection:
|
38
363
|
- keep-alive
|
39
364
|
Content-Length:
|
40
|
-
- '
|
365
|
+
- '147'
|
41
366
|
body:
|
42
367
|
encoding: US-ASCII
|
43
|
-
string: ! '{"id":"
|
368
|
+
string: ! '{"id":"6021528860151","account_id":"10150585630710217","objective":"NONE","name":"bloody","campaign_group_status":"ACTIVE","buying_type":"AUCTION"}'
|
44
369
|
http_version:
|
45
|
-
recorded_at:
|
370
|
+
recorded_at: Wed, 17 Dec 2014 13:22:12 GMT
|
46
371
|
recorded_with: VCR 2.3.0
|