zuck 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +13 -5
  2. data/CHANGELOG.markdown +9 -0
  3. data/README.markdown +7 -1
  4. data/VERSION +1 -1
  5. data/lib/zuck/facebook/ad_creative.rb +0 -3
  6. data/lib/zuck/facebook/ad_group.rb +7 -7
  7. data/lib/zuck/facebook/targeting_spec.rb +0 -1
  8. data/lib/zuck.rb +6 -0
  9. data/spec/fixtures/a_single_account.yml +31 -111
  10. data/spec/fixtures/a_single_campaign.yml +11 -57
  11. data/spec/fixtures/a_single_group.yml +13 -62
  12. data/spec/fixtures/ad_interest_search_disney.yml +19 -19
  13. data/spec/fixtures/ad_interest_search_moviepilot.yml +15 -18
  14. data/spec/fixtures/ad_interest_search_nonexistant.yml +11 -11
  15. data/spec/fixtures/create_a_creative.yml +48 -0
  16. data/spec/fixtures/create_ad_campaign.yml +44 -226
  17. data/spec/fixtures/create_ad_group.yml +13 -155
  18. data/spec/fixtures/create_ad_set.yml +11 -57
  19. data/spec/fixtures/delete_ad_group.yml +10 -55
  20. data/spec/fixtures/delete_ad_set.yml +48 -0
  21. data/spec/fixtures/delete_campaign.yml +93 -0
  22. data/spec/fixtures/delete_creative.yml +48 -0
  23. data/spec/fixtures/find_a_single_group_and_update_it.yml +84 -110
  24. data/spec/fixtures/list_of_ad_accounts.yml +10 -57
  25. data/spec/fixtures/list_of_ad_campaigns.yml +10 -57
  26. data/spec/fixtures/list_of_ad_creatives.yml +9 -56
  27. data/spec/fixtures/list_of_ad_groups.yml +10 -57
  28. data/spec/fixtures/list_of_all_ad_creatives_of_account.yml +10 -57
  29. data/spec/fixtures/reach_for_invalid_interest.yml +28 -31
  30. data/spec/fixtures/reach_for_valid_keywords.yml +13 -13
  31. data/spec/fixtures/reach_for_valid_keywords_male_young.yml +13 -13
  32. data/spec/lib/zuck/facebook/ad_interest_spec.rb +1 -1
  33. data/spec/lib/zuck/facebook/targeting_spec_spec.rb +3 -3
  34. data/spec/lib/zuck_spec.rb +125 -86
  35. data/spec/spec_helper.rb +14 -0
  36. data/test_access_token +1 -1
  37. data/zuck.gemspec +7 -3
  38. metadata +49 -45
@@ -1,58 +1,11 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://graph.facebook.com/6021525283751?access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A&fields=id,name,account_id,bid_type,bid_info,campaign_group_id,campaign_status,start_time,end_time,updated_time,created_time,daily_budget,lifetime_budget,budget_remaining,targeting,promoted_object
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v0.8.9
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
- Facebook-Api-Version:
22
- - v1.0
23
- Etag:
24
- - ! '"6d1f3fb1b8dc7e25bd46f71dd1ec13f3c6ad7d09"'
25
- Content-Type:
26
- - application/json; charset=UTF-8
27
- Pragma:
28
- - no-cache
29
- Access-Control-Allow-Origin:
30
- - ! '*'
31
- X-Fb-Rev:
32
- - '1534884'
33
- Cache-Control:
34
- - private, no-cache, no-store, must-revalidate
35
- Expires:
36
- - Sat, 01 Jan 2000 00:00:00 GMT
37
- X-Fb-Debug:
38
- - 9bZNvyB5HQZO7RwDT0Bol5xsP4JoQADI6bblZnxLLpN8R8UmskJOCqa4E0iAJ6ATvKEkHr/zZyLaNhERQe3BDg==
39
- Date:
40
- - Wed, 17 Dec 2014 12:36:40 GMT
41
- Connection:
42
- - keep-alive
43
- Content-Length:
44
- - '324'
45
- body:
46
- encoding: US-ASCII
47
- string: ! '{"id":"6021525283751","name":"test ad set","account_id":"10150585630710217","campaign_group_id":"6021499361751","campaign_status":"ACTIVE","start_time":"2014-12-17T12:53:23+0100","updated_time":"2014-12-17T13:29:58+0100","created_time":"2014-12-17T12:53:23+0100","daily_budget":100,"lifetime_budget":0,"budget_remaining":46}'
48
- http_version:
49
- recorded_at: Wed, 17 Dec 2014 12:36:40 GMT
50
3
  - request:
51
4
  method: post
52
- uri: https://graph.facebook.com/act_10150585630710217/adgroups
5
+ uri: https://graph.facebook.com/v2.2/act_367106653/adgroups
53
6
  body:
54
7
  encoding: US-ASCII
55
- string: bid_type=CPC&bid_info=%7B%22CLICKS%22%3A+1%7D&name=Rap+like+me&targeting=%7B%22geo_locations%22%3A+%7B%22countries%22%3A%5B%22US%22%5D%7D%7D&objective=WEBSITE_CLICKS&creative=%7B%22creative_id%22%3A+%226021396606151%22%7D&campaign_id=6021525283751&redownload=1&access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A
8
+ string: name=Rap+like+me&objective=WEBSITE_CLICKS&creative=%7B%22creative_id%22%3A+6024299683866%7D&campaign_id=6024300272266&redownload=1&access_token=FAKEACCESSTOKEN
56
9
  headers:
57
10
  User-Agent:
58
11
  - Faraday v0.8.9
@@ -65,129 +18,34 @@ http_interactions:
65
18
  code: 200
66
19
  message: OK
67
20
  headers:
68
- Facebook-Api-Version:
69
- - v1.0
70
21
  Content-Type:
71
22
  - application/json; charset=UTF-8
72
- Pragma:
73
- - no-cache
74
23
  Access-Control-Allow-Origin:
75
24
  - ! '*'
76
25
  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
- - NTaINAkcgTiUSFH5+UEXMohGCHDwFGHQonsYLcjJ2IWVsC1KLxB7K6eB2ZPqHozhgYRPpL/YxojDPEPfZxCdmw==
84
- Date:
85
- - Wed, 17 Dec 2014 12:36:41 GMT
86
- Transfer-Encoding:
87
- - chunked
88
- Connection:
89
- - keep-alive
90
- body:
91
- encoding: US-ASCII
92
- string: ! '{"id":"6021526003751","data":{"adgroups":{"6021526003751":{"id":"6021526003751","account_id":"10150585630710217","adgroup_status":"PENDING_REVIEW","bid_info":{"CLICKS":1},"bid_type":"CPC","campaign_id":"6021525283751","creative_ids":["6021396606151"],"impression_control_map":[{"location":3,"control":{"impression_control_type":2,"user_impression_limit":6,"user_impression_limit_period":24,"user_impression_limit_period_unit":0}}],"last_updated_by_app_id":333322143368799,"locations":[3],"name":"Rap
93
- like me","objective":"WEBSITE_CLICKS","targeting":{"age_max":65,"age_min":18,"geo_locations":{"countries":["US"]}},"tracking_specs":[{"action.type":["post_engagement"],"page":[250413944992062],"post":[882760995090684]}],"updated_time":1418819801,"created_time":1418819801}},"creatives":{"6021396606151":{"id":"6021396606151","object_type":"SHARE","object_story_id":"250413944992062_882760995090684","object_story_spec":{"page_id":"250413944992062","link_data":{"link":"http:\/\/moviepilot.com\/","message":"Story
94
- message","name":"Link Name","caption":"Link Caption","description":"A description","picture":"http:\/\/graph.facebook.com\/moviepilotdotcom\/picture"}},"name":"Link
95
- Page Post Ad Creative"}}}}'
96
- http_version:
97
- recorded_at: Wed, 17 Dec 2014 12:36:41 GMT
98
- - request:
99
- method: get
100
- uri: https://graph.facebook.com/6021525283751?access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A&fields=id,name,account_id,bid_type,bid_info,campaign_group_id,campaign_status,start_time,end_time,updated_time,created_time,daily_budget,lifetime_budget,budget_remaining,targeting,promoted_object
101
- body:
102
- encoding: US-ASCII
103
- string: ''
104
- headers:
105
- User-Agent:
106
- - Faraday v0.8.9
107
- Accept-Encoding:
108
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
109
- Accept:
110
- - ! '*/*'
111
- response:
112
- status:
113
- code: 200
114
- message: OK
115
- headers:
116
- Facebook-Api-Version:
117
- - v1.0
118
- Etag:
119
- - ! '"6d1f3fb1b8dc7e25bd46f71dd1ec13f3c6ad7d09"'
120
- Content-Type:
121
- - application/json; charset=UTF-8
26
+ - '1690131'
122
27
  Pragma:
123
28
  - no-cache
124
- Access-Control-Allow-Origin:
125
- - ! '*'
126
- X-Fb-Rev:
127
- - '1534884'
128
29
  Cache-Control:
129
30
  - private, no-cache, no-store, must-revalidate
130
- Expires:
131
- - Sat, 01 Jan 2000 00:00:00 GMT
132
- X-Fb-Debug:
133
- - 9XcopJVIBLF438Uia/6uZLT4M4qLlKiglNysRbACUHTi2TbtpfjPJUxngDNCHhQYM7Qs2iZilXOqzkCj6yd/yA==
134
- Date:
135
- - Wed, 17 Dec 2014 13:22:12 GMT
136
- Connection:
137
- - keep-alive
138
- Content-Length:
139
- - '324'
140
- body:
141
- encoding: US-ASCII
142
- string: ! '{"id":"6021525283751","name":"test ad set","account_id":"10150585630710217","campaign_group_id":"6021499361751","campaign_status":"ACTIVE","start_time":"2014-12-17T12:53:23+0100","updated_time":"2014-12-17T13:29:58+0100","created_time":"2014-12-17T12:53:23+0100","daily_budget":100,"lifetime_budget":0,"budget_remaining":46}'
143
- http_version:
144
- recorded_at: Wed, 17 Dec 2014 13:22:12 GMT
145
- - request:
146
- method: post
147
- uri: https://graph.facebook.com/act_10150585630710217/adgroups
148
- body:
149
- encoding: US-ASCII
150
- string: bid_type=CPC&bid_info=%7B%22CLICKS%22%3A+1%7D&name=Rap+like+me&targeting=%7B%22geo_locations%22%3A+%7B%22countries%22%3A%5B%22US%22%5D%7D%7D&objective=WEBSITE_CLICKS&creative=%7B%22creative_id%22%3A+%226021396606151%22%7D&campaign_id=6021525283751&redownload=1&access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A
151
- headers:
152
- User-Agent:
153
- - Faraday v0.8.9
154
- Content-Type:
155
- - application/x-www-form-urlencoded
156
- Accept:
157
- - ! '*/*'
158
- response:
159
- status:
160
- code: 200
161
- message: OK
162
- headers:
163
31
  Facebook-Api-Version:
164
- - v1.0
165
- Content-Type:
166
- - application/json; charset=UTF-8
167
- Pragma:
168
- - no-cache
169
- Access-Control-Allow-Origin:
170
- - ! '*'
171
- X-Fb-Rev:
172
- - '1534884'
173
- Cache-Control:
174
- - private, no-cache, no-store, must-revalidate
32
+ - v2.2
175
33
  Expires:
176
34
  - Sat, 01 Jan 2000 00:00:00 GMT
177
35
  X-Fb-Debug:
178
- - vExd7wU6raTmfRq43ihY78qXWPocxMA155ZybDyAFBdzLDi22iW/qIn4j3cSSQPyiv15aoi0HlX7ilyHL7rk/Q==
36
+ - exte+aNjlHg327l2IzYMrn8ran3UwCtF+9csV5Iw5+CByqkjAgpUZf8dNhTKM4LY2cBtor/VTvyn0ilpxeH1+A==
179
37
  Date:
180
- - Wed, 17 Dec 2014 13:22:13 GMT
181
- Transfer-Encoding:
182
- - chunked
38
+ - Wed, 15 Apr 2015 08:31:53 GMT
183
39
  Connection:
184
40
  - keep-alive
41
+ Content-Length:
42
+ - '956'
185
43
  body:
186
44
  encoding: US-ASCII
187
- string: ! '{"id":"6021528861551","data":{"adgroups":{"6021528861551":{"id":"6021528861551","account_id":"10150585630710217","adgroup_status":"PENDING_REVIEW","bid_info":{"CLICKS":1},"bid_type":"CPC","campaign_id":"6021525283751","creative_ids":["6021396606151"],"impression_control_map":[{"location":3,"control":{"impression_control_type":2,"user_impression_limit":6,"user_impression_limit_period":24,"user_impression_limit_period_unit":0}}],"last_updated_by_app_id":333322143368799,"locations":[3],"name":"Rap
188
- like me","objective":"WEBSITE_CLICKS","targeting":{"age_max":65,"age_min":18,"geo_locations":{"countries":["US"]}},"tracking_specs":[{"action.type":["post_engagement"],"page":[250413944992062],"post":[882760995090684]}],"updated_time":1418822533,"created_time":1418822533}},"creatives":{"6021396606151":{"id":"6021396606151","object_type":"SHARE","object_story_id":"250413944992062_882760995090684","object_story_spec":{"page_id":"250413944992062","link_data":{"link":"http:\/\/moviepilot.com\/","message":"Story
189
- message","name":"Link Name","caption":"Link Caption","description":"A description","picture":"http:\/\/graph.facebook.com\/moviepilotdotcom\/picture"}},"name":"Link
190
- Page Post Ad Creative"}}}}'
45
+ string: ! '{"id":"6024300273866","data":{"adgroups":{"6024300273866":{"id":"6024300273866","account_id":"367106653","adgroup_status":"PENDING_REVIEW","bid_info":{"CLICKS":1},"bid_type":"CPC","campaign_id":"6024300272266","creative_ids":["6024299683866"],"name":"Rap
46
+ like me","objective":"WEBSITE_CLICKS","targeting":{"age_max":65,"age_min":18,"geo_locations":{"countries":["US","GB"],"location_types":["home"]}},"tracking_specs":[{"action.type":["link_click"],"object":["10150219314478408"]},{"action.type":["like"],"page":["158352134203230"]}],"updated_time":1429086712,"created_time":1429086712}},"creatives":{"6024299683866":{"id":"6024299683866","body":"bloody
47
+ 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
+ title"}}}}'
191
49
  http_version:
192
- recorded_at: Wed, 17 Dec 2014 13:22:13 GMT
50
+ recorded_at: Wed, 15 Apr 2015 08:31:55 GMT
193
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/act_10150585630710217/adcampaigns
5
+ uri: https://graph.facebook.com/v2.2/act_367106653/adcampaigns
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: name=test+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=6021499361751&redownload=1&access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A
8
+ string: bid_type=CPC&bid_info=%7B%27CLICKS%27%3A+1%7D&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=6024300271066&redownload=1&access_token=FAKEACCESSTOKEN
9
9
  headers:
10
10
  User-Agent:
11
11
  - Faraday v0.8.9
@@ -18,78 +18,32 @@ 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
- - '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
- - P9WaOOXq6uArlw9Am4iG1Bijy01ET0n1pIg8eNxZxY27Xh5c5gDfcSbFanBDwmXZ4oHn1D9JmbOYJ7CRX8jJhw==
37
- Date:
38
- - Wed, 17 Dec 2014 12:36:38 GMT
39
- Connection:
40
- - keep-alive
41
- Content-Length:
42
- - '564'
43
- body:
44
- encoding: US-ASCII
45
- string: ! '{"id":"6021526001951","data":{"campaigns":{"6021526001951":{"id":"6021526001951","account_id":"10150585630710217","name":"test
46
- ad set","daily_budget":100,"campaign_status":"PAUSED","daily_imps":0,"frequency_cap":0,"frequency_cap_reset_period":0,"start_time":"2014-12-17T13:36:38+0100","updated_time":"2014-12-17T13:36:38+0100","created_time":"2014-12-17T13:36:38+0100","campaign_group_id":6021499361751,"prorated_daily_budget":43,"budget_remaining":43,"targeting":{"age_min":18,"age_max":65,"geo_locations":{"countries":["US","GB"]}},"pacing_type":["standard"]}}}}'
47
- http_version:
48
- recorded_at: Wed, 17 Dec 2014 12:36:38 GMT
49
- - request:
50
- method: post
51
- uri: https://graph.facebook.com/act_10150585630710217/adcampaigns
52
- body:
53
- encoding: US-ASCII
54
- string: name=test+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=6021499361751&redownload=1&access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A
55
- headers:
56
- User-Agent:
57
- - Faraday v0.8.9
58
- Content-Type:
59
- - application/x-www-form-urlencoded
60
- Accept:
61
- - ! '*/*'
62
- response:
63
- status:
64
- code: 200
65
- message: OK
66
- headers:
67
- Facebook-Api-Version:
68
- - v1.0
69
- Content-Type:
70
- - application/json; charset=UTF-8
26
+ - '1690131'
71
27
  Pragma:
72
28
  - no-cache
73
- Access-Control-Allow-Origin:
74
- - ! '*'
75
- X-Fb-Rev:
76
- - '1534884'
77
29
  Cache-Control:
78
30
  - private, no-cache, no-store, must-revalidate
31
+ Facebook-Api-Version:
32
+ - v2.2
79
33
  Expires:
80
34
  - Sat, 01 Jan 2000 00:00:00 GMT
81
35
  X-Fb-Debug:
82
- - 3HxiMk9UHPheBgDJyYpXL6RRbuHsz/Hd8XWQtc7NH0YDnWStKSE3xRABKIcbOyMGLVPwlrY/RjqpJtf3X5AwfQ==
36
+ - vHMkYhoPkbSPsFlnVXl+PT0fIYOQyG79Azhz65M0Ebiq9OSKAn0N/0McuXZcrEVM0e0SnCkAKu6+ASKNpFs5YA==
83
37
  Date:
84
- - Wed, 17 Dec 2014 13:22:10 GMT
38
+ - Wed, 15 Apr 2015 08:31:50 GMT
85
39
  Connection:
86
40
  - keep-alive
87
41
  Content-Length:
88
- - '564'
42
+ - '676'
89
43
  body:
90
44
  encoding: US-ASCII
91
- string: ! '{"id":"6021528858751","data":{"campaigns":{"6021528858751":{"id":"6021528858751","account_id":"10150585630710217","name":"test
92
- ad set","daily_budget":100,"campaign_status":"PAUSED","daily_imps":0,"frequency_cap":0,"frequency_cap_reset_period":0,"start_time":"2014-12-17T14:22:10+0100","updated_time":"2014-12-17T14:22:10+0100","created_time":"2014-12-17T14:22:10+0100","campaign_group_id":6021499361751,"prorated_daily_budget":40,"budget_remaining":40,"targeting":{"age_min":18,"age_max":65,"geo_locations":{"countries":["US","GB"]}},"pacing_type":["standard"]}}}}'
45
+ string: ! '{"id":"6024300272266","data":{"campaigns":{"6024300272266":{"id":"6024300272266","account_id":367106653,"name":"bloody
46
+ ad set","daily_budget":100,"campaign_status":"PAUSED","daily_imps":0,"frequency_cap":0,"frequency_cap_reset_period":0,"start_time":"2015-04-15T01:31:49-0700","updated_time":"2015-04-15T01:31:49-0700","created_time":"2015-04-15T01:31:49-0700","campaign_group_id":"6024300271066","product_ad_behavior":"REQUIRE_LAST_SEEN_PRODUCTS","prorated_daily_budget":93,"budget_remaining":93,"bid_type":"CPC","bid_info":{"CLICKS":1},"targeting":{"age_min":18,"age_max":65,"geo_locations":{"countries":["US","GB"],"location_types":["home"]}},"pacing_type":["standard"]}}}}'
93
47
  http_version:
94
- recorded_at: Wed, 17 Dec 2014 13:22:10 GMT
48
+ recorded_at: Wed, 15 Apr 2015 08:31:52 GMT
95
49
  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/6010889169151
5
+ uri: https://graph.facebook.com/v2.2/6024300273866
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A&method=delete
8
+ string: access_token=FAKEACCESSTOKEN&method=delete
9
9
  headers:
10
10
  User-Agent:
11
11
  - Faraday v0.8.9
@@ -18,76 +18,31 @@ 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
- - '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
- - qGpX6qFKpWvgRHaBZoVnJPdM2FZO9ve2k7WmSjxTtJuRcdlvmHcBf2zJ1oEDRhvCp0EpwJOdwn3rPoqog9NV0Q==
37
- Date:
38
- - Wed, 17 Dec 2014 12:36:42 GMT
39
- Connection:
40
- - keep-alive
41
- Content-Length:
42
- - '4'
43
- body:
44
- encoding: US-ASCII
45
- string: 'true'
46
- http_version:
47
- recorded_at: Wed, 17 Dec 2014 12:36:42 GMT
48
- - request:
49
- method: post
50
- uri: https://graph.facebook.com/6010889169151
51
- body:
52
- encoding: US-ASCII
53
- string: access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A&method=delete
54
- headers:
55
- User-Agent:
56
- - Faraday v0.8.9
57
- Content-Type:
58
- - application/x-www-form-urlencoded
59
- Accept:
60
- - ! '*/*'
61
- response:
62
- status:
63
- code: 200
64
- message: OK
65
- headers:
66
- Facebook-Api-Version:
67
- - v1.0
68
- Content-Type:
69
- - application/json; charset=UTF-8
26
+ - '1690131'
70
27
  Pragma:
71
28
  - no-cache
72
- Access-Control-Allow-Origin:
73
- - ! '*'
74
- X-Fb-Rev:
75
- - '1534884'
76
29
  Cache-Control:
77
30
  - private, no-cache, no-store, must-revalidate
31
+ Facebook-Api-Version:
32
+ - v2.2
78
33
  Expires:
79
34
  - Sat, 01 Jan 2000 00:00:00 GMT
80
35
  X-Fb-Debug:
81
- - wC6lizxjFhgB2g26Kc+/L+wP9IOB91RlXIEukjSNsKvWLfZYrW7fYqrzPCNEiXTYg0X9UceE4GxjHUnIcWQu+w==
36
+ - byGWgISx681zR7Gby+kFRzeCAwULEdzX5RZcab+1dp7m9GlMyCBws8ZnnZFObcGwl46bBaEBWs3p1SAOxP8esg==
82
37
  Date:
83
- - Wed, 17 Dec 2014 13:22:14 GMT
38
+ - Wed, 15 Apr 2015 08:31:57 GMT
84
39
  Connection:
85
40
  - keep-alive
86
41
  Content-Length:
87
- - '4'
42
+ - '16'
88
43
  body:
89
44
  encoding: US-ASCII
90
- string: 'true'
45
+ string: ! '{"success":true}'
91
46
  http_version:
92
- recorded_at: Wed, 17 Dec 2014 13:22:14 GMT
47
+ recorded_at: Wed, 15 Apr 2015 08:31:59 GMT
93
48
  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/6024300272266
6
+ body:
7
+ encoding: US-ASCII
8
+ string: access_token=FAKEACCESSTOKEN&method=delete
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
+ - Jdx6FZtPUdnTGeXG9vlik/LKprYxhYqCSOq3ba43Ye3zf9gUZgaodHBBlt/ntr2oMp/CZWf2cN87LEYoSk6G9A==
37
+ Date:
38
+ - Wed, 15 Apr 2015 08:31:58 GMT
39
+ Connection:
40
+ - keep-alive
41
+ Content-Length:
42
+ - '16'
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ! '{"success":true}'
46
+ http_version:
47
+ recorded_at: Wed, 15 Apr 2015 08:32:00 GMT
48
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,93 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://graph.facebook.com/v2.2/6024300271066
6
+ body:
7
+ encoding: US-ASCII
8
+ string: access_token=FAKEACCESSTOKEN&method=delete
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
+ - DB9BLFJv1gG9AFgDTbXWgZTrhvMEcB9RCrAQ3516mmUvbnkPYLotatVUBcxgix0CD7Cx1eNhZi3zdw6nTvakUw==
37
+ Date:
38
+ - Wed, 15 Apr 2015 08:32:01 GMT
39
+ Connection:
40
+ - keep-alive
41
+ Content-Length:
42
+ - '16'
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ! '{"success":true}'
46
+ http_version:
47
+ recorded_at: Wed, 15 Apr 2015 08:32:03 GMT
48
+ - request:
49
+ method: post
50
+ uri: https://graph.facebook.com/v2.2/6024300270466
51
+ body:
52
+ encoding: US-ASCII
53
+ string: access_token=FAKEACCESSTOKEN&method=delete
54
+ headers:
55
+ User-Agent:
56
+ - Faraday v0.8.9
57
+ Content-Type:
58
+ - application/x-www-form-urlencoded
59
+ Accept:
60
+ - ! '*/*'
61
+ response:
62
+ status:
63
+ code: 200
64
+ message: OK
65
+ headers:
66
+ Content-Type:
67
+ - application/json; charset=UTF-8
68
+ Access-Control-Allow-Origin:
69
+ - ! '*'
70
+ X-Fb-Rev:
71
+ - '1690131'
72
+ Pragma:
73
+ - no-cache
74
+ Cache-Control:
75
+ - private, no-cache, no-store, must-revalidate
76
+ Facebook-Api-Version:
77
+ - v2.2
78
+ Expires:
79
+ - Sat, 01 Jan 2000 00:00:00 GMT
80
+ X-Fb-Debug:
81
+ - qlN4i0urIkQXJoBrA5CqWPmD/Rtaz8PZtXQrWTcGeety4QEtFwv3+oDt1D5h6BSR1zpYorUUb3LxXYvqWJ1StA==
82
+ Date:
83
+ - Wed, 15 Apr 2015 08:32:03 GMT
84
+ Connection:
85
+ - keep-alive
86
+ Content-Length:
87
+ - '16'
88
+ body:
89
+ encoding: US-ASCII
90
+ string: ! '{"success":true}'
91
+ http_version:
92
+ recorded_at: Wed, 15 Apr 2015 08:32:05 GMT
93
+ 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/6024299683866
6
+ body:
7
+ encoding: US-ASCII
8
+ string: access_token=FAKEACCESSTOKEN&method=delete
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
+ - 4O3t4k0uGB6c0/dHfmOOEX2EzhN+dCDDUUsuLDdPdoM5DTGdv0i+BW4u5AdanHv2hvHqr3Y/R7QgEPaLWFbvcQ==
37
+ Date:
38
+ - Wed, 15 Apr 2015 08:31:59 GMT
39
+ Connection:
40
+ - keep-alive
41
+ Content-Length:
42
+ - '16'
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ! '{"success":true}'
46
+ http_version:
47
+ recorded_at: Wed, 15 Apr 2015 08:32:01 GMT
48
+ recorded_with: VCR 2.3.0