zuck 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +5 -13
  2. data/CHANGELOG.markdown +35 -5
  3. data/Gemfile +3 -2
  4. data/Gemfile.lock +13 -10
  5. data/README.markdown +26 -38
  6. data/VERSION +1 -1
  7. data/console +8 -2
  8. data/lib/zuck/facebook/ad_account.rb +22 -5
  9. data/lib/zuck/facebook/ad_campaign.rb +12 -15
  10. data/lib/zuck/facebook/ad_creative.rb +14 -14
  11. data/lib/zuck/facebook/ad_group.rb +12 -12
  12. data/lib/zuck/facebook/ad_interest.rb +12 -15
  13. data/lib/zuck/facebook/ad_set.rb +30 -0
  14. data/lib/zuck/facebook/targeting_spec.rb +4 -4
  15. data/lib/zuck/fb_object/dsl.rb +15 -7
  16. data/lib/zuck/fb_object/hash_delegator.rb +20 -3
  17. data/lib/zuck/fb_object/write.rb +18 -6
  18. data/lib/zuck/fb_object.rb +1 -1
  19. data/lib/zuck/helpers.rb +20 -1
  20. data/spec/fixtures/a_single_account.yml +146 -29
  21. data/spec/fixtures/a_single_campaign.yml +61 -12
  22. data/spec/fixtures/a_single_group.yml +65 -12
  23. data/spec/fixtures/ad_interest_search_disney.yml +16 -14
  24. data/spec/fixtures/ad_interest_search_moviepilot.yml +15 -98
  25. data/spec/fixtures/ad_interest_search_nonexistant.yml +7 -5
  26. data/spec/fixtures/create_ad_campaign.yml +334 -9
  27. data/spec/fixtures/create_ad_group.yml +154 -9
  28. data/spec/fixtures/create_ad_set.yml +95 -0
  29. data/spec/fixtures/delete_ad_group.yml +55 -8
  30. data/spec/fixtures/find_a_single_group_and_update_it.yml +122 -95
  31. data/spec/fixtures/list_of_ad_accounts.yml +77 -58
  32. data/spec/fixtures/list_of_ad_campaigns.yml +77 -55
  33. data/spec/fixtures/list_of_ad_creatives.yml +61 -13
  34. data/spec/fixtures/list_of_ad_groups.yml +77 -60
  35. data/spec/fixtures/list_of_all_ad_creatives_of_account.yml +77 -73
  36. data/spec/fixtures/reach_for_invalid_interest.yml +29 -111
  37. data/spec/fixtures/reach_for_valid_keywords.yml +11 -54
  38. data/spec/fixtures/reach_for_valid_keywords_male_young.yml +11 -60
  39. data/spec/lib/zuck/facebook/ad_account_spec.rb +1 -1
  40. data/spec/lib/zuck/facebook/ad_interest_spec.rb +2 -2
  41. data/spec/lib/zuck/facebook/targeting_spec_spec.rb +13 -21
  42. data/spec/lib/zuck_spec.rb +34 -23
  43. data/spec/spec_helper.rb +2 -5
  44. data/test_access_token +1 -0
  45. data/zuck.gemspec +15 -9
  46. metadata +63 -46
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://graph.facebook.com/act_10150585630710217/adcampaigns?access_token=CAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD&fields=
5
+ uri: https://graph.facebook.com/act_10150585630710217/adcampaign_groups?access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A&fields=
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Faraday v0.8.7
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:
@@ -16,60 +16,82 @@ http_interactions:
16
16
  response:
17
17
  status:
18
18
  code: 200
19
- message: !binary |-
20
- T0s=
19
+ message: OK
21
20
  headers:
22
- !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
23
- - !binary |-
24
- Kg==
25
- !binary "Q2FjaGUtQ29udHJvbA==":
26
- - !binary |-
27
- cHJpdmF0ZSwgbm8tY2FjaGUsIG5vLXN0b3JlLCBtdXN0LXJldmFsaWRhdGU=
28
- !binary "Q29udGVudC1UeXBl":
29
- - !binary |-
30
- YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD1VVEYtOA==
31
- !binary "RXRhZw==":
32
- - !binary |-
33
- ImI5YjM2YzhjZGJjZGFjNTJjNmM2OTgzMzM1YjE1MzkxMTBlMjg0ZDgi
34
- !binary "RXhwaXJlcw==":
35
- - !binary |-
36
- U2F0LCAwMSBKYW4gMjAwMCAwMDowMDowMCBHTVQ=
37
- !binary "UHJhZ21h":
38
- - !binary |-
39
- bm8tY2FjaGU=
40
- !binary "WC1GYi1SZXY=":
41
- - !binary |-
42
- OTM0Njc3
43
- !binary "Q29udGVudC1FbmNvZGluZw==":
44
- - !binary |-
45
- Z3ppcA==
46
- !binary "WC1GYi1EZWJ1Zw==":
47
- - !binary |-
48
- Q0NSSlVETStDdTBhNlBCUklPRW4zUUxkVlBrRVRDRzdORVlTSnpZQTVqUT0=
49
- !binary "RGF0ZQ==":
50
- - !binary |-
51
- VGh1LCAxMiBTZXAgMjAxMyAxMzoyMTozOCBHTVQ=
52
- !binary "Q29ubmVjdGlvbg==":
53
- - !binary |-
54
- a2VlcC1hbGl2ZQ==
55
- !binary "Q29udGVudC1MZW5ndGg=":
56
- - !binary |-
57
- NTM5
21
+ Facebook-Api-Version:
22
+ - v1.0
23
+ Etag:
24
+ - ! '"9f3290adf7bf50479029ce60a076a6a7ca57c829"'
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
+ - GWTtQ/QxNJXLL8ovBM8ay1adbqHWUAnId0LERMqj9P7Rw/Al/6argGfyxuFLo9lBoxKsIx9weBMAMsUqOESgGQ==
39
+ Date:
40
+ - Wed, 17 Dec 2014 12:36:35 GMT
41
+ Connection:
42
+ - keep-alive
43
+ Content-Length:
44
+ - '602'
58
45
  body:
59
- encoding: ASCII-8BIT
60
- string: !binary |-
61
- H4sIAAAAAAAAA+2WXY+TQBSG/0ozXkqTc4ZOgUn2oqYma2Jr3XCzcQ2ZwoBo
62
- +ZBCtDb973soaRWoDd5omnjHzHmZj2demHfPAlUqJj/sWRwwyaaAYDtgWugI
63
- ZAZTvp9VaekdiwgoQNhiaoKFwNEiQaoSTaX1JsuCHbUDFW923roKIl0yiQBg
64
- MF8luYqj1NuWqqy21H3SxUlOTZKEhf5a6dTfeb7K+z1eobe69HJdxBmthF6g
65
- oYrSK+Pj7BzQHIMzRu7iRHKQYvoSOACtp8ppgzoYoPQLPVR52k9NpUXsYPQ4
66
- Wv85/u5szr5ocyRiXY58irfLEUFyHOTHWmmelFf92BrzEseGWI8jIt6sH0FI
67
- LgZxbCmvcmwrL3zX/EisxxGc2/Xjv+F4JNblCJZ1q340pbAlOAP82FFe8WNX
68
- ecGPDbE2R9shk97qfc0lXdkTawDHjvIKx66yx/FErMXRnKBNweaP/o+rIkuy
69
- Mk6j0RO7n61Wj6NXbx7c+/ns0RjNHpbv3s5HL/IqyUmh0uBT8/TEKJhs4lDX
70
- 8eVnVhJ/MStZYxNdFBTQJD+z12knJ9lj6KsuJqpfx7Ov3mAXZ+7dYOezOHw0
71
- WK4iosbknvlVsc0Kiox7psJSF5T9lp9n3xfzBSzc6Nvyx2tcvL+7I7xrHWZF
72
- nQ2beiRIYy7cL039cKBUWgdbJu36KJK4CasGy8KQkiZFzMMzvi/LuhsLAAA=
46
+ encoding: US-ASCII
47
+ string: ! '{"data":[{"id":"6021499361751"},{"id":"6021499807351"},{"id":"6021500417351"},{"id":"6021523561951"},{"id":"6021523578151"},{"id":"6021524946751"},{"id":"6021525337751"},{"id":"6021525874951"},{"id":"6021525981551"},{"id":"6021499434951"},{"id":"6021499435351"},{"id":"6021499789751"},{"id":"6021499790551"},{"id":"6021499806751"},{"id":"6021500416751"},{"id":"6021523561551"},{"id":"6021523569351"},{"id":"6021523577751"},{"id":"6021524942351"},{"id":"6021525337351"},{"id":"6021525874351"},{"id":"6021525980951"}],"paging":{"cursors":{"before":"NjAyMTQ5OTM2MTc1MQ==","after":"NjAyMTUyNTk4MDk1MQ=="}}}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Dec 2014 12:36:35 GMT
50
+ - request:
51
+ method: get
52
+ uri: https://graph.facebook.com/act_10150585630710217/adcampaign_groups?access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A&fields=
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ User-Agent:
58
+ - Faraday v0.8.9
59
+ Accept-Encoding:
60
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
61
+ Accept:
62
+ - ! '*/*'
63
+ response:
64
+ status:
65
+ code: 200
66
+ message: OK
67
+ headers:
68
+ Facebook-Api-Version:
69
+ - v1.0
70
+ Etag:
71
+ - ! '"a46b796bf7eaf0370d3ef015ff4e070dee8b34a6"'
72
+ Content-Type:
73
+ - application/json; charset=UTF-8
74
+ Pragma:
75
+ - no-cache
76
+ Access-Control-Allow-Origin:
77
+ - ! '*'
78
+ X-Fb-Rev:
79
+ - '1534884'
80
+ Cache-Control:
81
+ - private, no-cache, no-store, must-revalidate
82
+ Expires:
83
+ - Sat, 01 Jan 2000 00:00:00 GMT
84
+ X-Fb-Debug:
85
+ - Twi7eFEpMQ7dtknBPJczL2ZhTma1iqXW37j34cJwqytRkmkiJv74xCkNSvJ9GKMvzweApFzlUnMmr6wqrRP8Mw==
86
+ Date:
87
+ - Wed, 17 Dec 2014 13:22:05 GMT
88
+ Connection:
89
+ - keep-alive
90
+ Content-Length:
91
+ - '648'
92
+ body:
93
+ encoding: US-ASCII
94
+ string: ! '{"data":[{"id":"6021499361751"},{"id":"6021499807351"},{"id":"6021500417351"},{"id":"6021523561951"},{"id":"6021523578151"},{"id":"6021524946751"},{"id":"6021525337751"},{"id":"6021525874951"},{"id":"6021525981551"},{"id":"6021526002751"},{"id":"6021499434951"},{"id":"6021499435351"},{"id":"6021499789751"},{"id":"6021499790551"},{"id":"6021499806751"},{"id":"6021500416751"},{"id":"6021523561551"},{"id":"6021523569351"},{"id":"6021523577751"},{"id":"6021524942351"},{"id":"6021525337351"},{"id":"6021525874351"},{"id":"6021525980951"},{"id":"6021526002351"}],"paging":{"cursors":{"before":"NjAyMTQ5OTM2MTc1MQ==","after":"NjAyMTUyNjAwMjM1MQ=="}}}'
73
95
  http_version:
74
- recorded_at: Thu, 12 Sep 2013 13:21:38 GMT
96
+ recorded_at: Wed, 17 Dec 2014 13:22:05 GMT
75
97
  recorded_with: VCR 2.3.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://graph.facebook.com/6010889169151/adcreatives?access_token=CAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD&fields=
5
+ uri: https://graph.facebook.com/6010889169151/adcreatives?access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A&fields=
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Faraday v0.8.7
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,32 +18,80 @@ http_interactions:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
+ Facebook-Api-Version:
22
+ - v1.0
23
+ Etag:
24
+ - ! '"9818afb0fc3be647821cb978d9dec1afcfa6cdc6"'
25
+ Content-Type:
26
+ - application/json; charset=UTF-8
27
+ Pragma:
28
+ - no-cache
21
29
  Access-Control-Allow-Origin:
22
30
  - ! '*'
31
+ X-Fb-Rev:
32
+ - '1534884'
23
33
  Cache-Control:
24
34
  - private, no-cache, no-store, must-revalidate
25
- Content-Type:
26
- - application/json; charset=UTF-8
27
- Etag:
28
- - ! '"059c02f2d58116e7271e2885bc8551cf1b65f739"'
29
35
  Expires:
30
36
  - Sat, 01 Jan 2000 00:00:00 GMT
37
+ X-Fb-Debug:
38
+ - CAY6wp0mChB83YQBHM2kkuOQDo7WdEqUNxRnIcltPMQWudYNGY/5cDr2a7eaM7TiWCSzeZLsNzWtEu4bbxmRJg==
39
+ Date:
40
+ - Wed, 17 Dec 2014 12:36:35 GMT
41
+ Connection:
42
+ - keep-alive
43
+ Content-Length:
44
+ - '33'
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"data":[{"id":"6010888561951"}]}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Dec 2014 12:36:35 GMT
50
+ - request:
51
+ method: get
52
+ uri: https://graph.facebook.com/6010889169151/adcreatives?access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A&fields=
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ User-Agent:
58
+ - Faraday v0.8.9
59
+ Accept-Encoding:
60
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
61
+ Accept:
62
+ - ! '*/*'
63
+ response:
64
+ status:
65
+ code: 200
66
+ message: OK
67
+ headers:
68
+ Facebook-Api-Version:
69
+ - v1.0
70
+ Etag:
71
+ - ! '"9818afb0fc3be647821cb978d9dec1afcfa6cdc6"'
72
+ Content-Type:
73
+ - application/json; charset=UTF-8
31
74
  Pragma:
32
75
  - no-cache
76
+ Access-Control-Allow-Origin:
77
+ - ! '*'
33
78
  X-Fb-Rev:
34
- - '934677'
79
+ - '1534884'
80
+ Cache-Control:
81
+ - private, no-cache, no-store, must-revalidate
82
+ Expires:
83
+ - Sat, 01 Jan 2000 00:00:00 GMT
35
84
  X-Fb-Debug:
36
- - WDxMSDUs/mE5bYf2TYbE+FrTVQ6Ff/EM8TOVcqc9SLQ=
85
+ - /OJJwpvUT1P+qbKqAugkaGlbjSbKgRbtul+E8rWLDvCLR7xwOns/HN/mLngby00pcvLJ5I12LMvnZAsTzVrQpg==
37
86
  Date:
38
- - Thu, 12 Sep 2013 13:21:39 GMT
87
+ - Wed, 17 Dec 2014 13:22:06 GMT
39
88
  Connection:
40
89
  - keep-alive
41
90
  Content-Length:
42
- - '712'
91
+ - '33'
43
92
  body:
44
93
  encoding: US-ASCII
45
- string: ! '{"data":[{"id":"6010888561951","action_spec":[{"action.type":["like"],"post":["10150420410887685"]}],"image_url":"","name":"Sponsored
46
- story #6,010,888,561,951","preview_url":"https:\/\/www.facebook.com\/ads\/api\/creative_preview.php?cid=6010888561951","related_fan_page":1,"type":25,"creative_id":6010888561951,"run_status":1,"count_current_adgroups":9}],"paging":{"next":"https:\/\/graph.facebook.com\/6010889169151\/adcreatives?access_token=CAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD&limit=500&offset=500&__after_id=6010888561951"},"count":1,"limit":500}'
94
+ string: ! '{"data":[{"id":"6010888561951"}]}'
47
95
  http_version:
48
- recorded_at: Thu, 12 Sep 2013 13:21:39 GMT
96
+ recorded_at: Wed, 17 Dec 2014 13:22:06 GMT
49
97
  recorded_with: VCR 2.3.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://graph.facebook.com/6010889111951/adgroups?access_token=CAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD&fields=
5
+ uri: https://graph.facebook.com/6021499361751/adgroups?access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A&fields=
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Faraday v0.8.7
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:
@@ -16,65 +16,82 @@ http_interactions:
16
16
  response:
17
17
  status:
18
18
  code: 200
19
- message: !binary |-
20
- T0s=
19
+ message: OK
21
20
  headers:
22
- !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
23
- - !binary |-
24
- Kg==
25
- !binary "Q2FjaGUtQ29udHJvbA==":
26
- - !binary |-
27
- cHJpdmF0ZSwgbm8tY2FjaGUsIG5vLXN0b3JlLCBtdXN0LXJldmFsaWRhdGU=
28
- !binary "Q29udGVudC1UeXBl":
29
- - !binary |-
30
- YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD1VVEYtOA==
31
- !binary "RXRhZw==":
32
- - !binary |-
33
- IjdmYzg0N2MwZDUzNmZmYTVlMWEyNTZiMjcxZDUyMWIxOGU4YmY3MmIi
34
- !binary "RXhwaXJlcw==":
35
- - !binary |-
36
- U2F0LCAwMSBKYW4gMjAwMCAwMDowMDowMCBHTVQ=
37
- !binary "UHJhZ21h":
38
- - !binary |-
39
- bm8tY2FjaGU=
40
- !binary "WC1GYi1SZXY=":
41
- - !binary |-
42
- OTM0Njc3
43
- !binary "Q29udGVudC1FbmNvZGluZw==":
44
- - !binary |-
45
- Z3ppcA==
46
- !binary "WC1GYi1EZWJ1Zw==":
47
- - !binary |-
48
- L09YMW9jWDhuRFJUcmtSS0RoMkx0ZmptS3djMmZKTDU3N2lwKzlmWWRVOD0=
49
- !binary "RGF0ZQ==":
50
- - !binary |-
51
- VGh1LCAxMiBTZXAgMjAxMyAxMzoyMTozOSBHTVQ=
52
- !binary "Q29ubmVjdGlvbg==":
53
- - !binary |-
54
- a2VlcC1hbGl2ZQ==
55
- !binary "Q29udGVudC1MZW5ndGg=":
56
- - !binary |-
57
- NzUy
21
+ Facebook-Api-Version:
22
+ - v1.0
23
+ Etag:
24
+ - ! '"8633e0598e35ea3081cddeeda7005e1ebd3d18bb"'
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
+ - vd7dNLE7GDVFEb3JhmK/1+WPfh4vtmYaqLnUXO2rSg0elzVAVmjvql5l5lEJ3H821bCNFiPLGLPKj/IGP7q5+A==
39
+ Date:
40
+ - Wed, 17 Dec 2014 12:36:35 GMT
41
+ Connection:
42
+ - keep-alive
43
+ Content-Length:
44
+ - '165'
58
45
  body:
59
- encoding: ASCII-8BIT
60
- string: !binary |-
61
- H4sIAAAAAAAAA+2ZQW/aMBTHv0rl61Lp2Y4hsdTDpO6wA522sVNVRS4Y5DUk
62
- keNUrRDffc8OoXRLKw6jlyTiQPz3c57tH4/nly1ZKqeIvN0SsySSTIBCkgKf
63
- ilRQEhG1WJRN4bIgUqACRCImHKYUGJ36Dsu1LZsqq51yTU0kjci9WWamWJVE
64
- bgnFll3b5J4rHfSF2lTKrIswaHhgklJK8YGolcWjtrUpi6yu9AIHvL3DVquV
65
- M48aLXxLa4N+eBuUzaayug5GaO9smWcbVYVJ5eUCLcuCSB4G96L3q8ek9Y9F
66
- pKm1zY465GZjHHr6hpJV2poSp8Li93tkTeHHgd0Ofc5V7bKmwtXXy+z+OVNV
67
- FdaD48UYjTmfJNM0xY77GfiJczQs1AbdJD9UdZGbB32BdxFxyq61M8Xazy3s
68
- mDXaW5BfP8kdboCzavGA+vGqdk93JozIgPJLSC8pm9NYcirjySdgADh8WH/0
69
- s7cnAymmXU+FW9/taofRCyQ90kY9ZUhHAOPgZGWedL7fbJwyDnqEF361bu9K
70
- 0eR5RHTRuebvd9E/LIuR5f3vY5gsM8nEf2AZMXqL5SCdn2U2YSPLXawfJMuM
71
- SXoayxTwH6k/LrcY9bLcSR/AMo3pGJeHHJfp9NS4DEKyQzbyOsfAXAkx6md5
72
- L30Eyz4VHfPlkIMPMi7TiWTpSTmGZ/kQwf9muT0FdYeqo3yZ7Q9I52cZEjzm
73
- jSy358lBsgypZOwElrkUiaTQn2O0GPWy3EnnZjlJ8eIjy0POMYBKfkq+jCyD
74
- hN58ucOoh+UX6fwscyrGs9+Az35MCi7hEG3fqckxGTMJhwh+nGMkaYtRL8ud
75
- dH6WWSLGHGPYLGNcPiXHQJYBP305RpK2GPWy3ElnYBkr0pVad8X2xtalxVL7
76
- lqiV0xYL6Te/Pz/Nrtfxt/nX+Gb+hc6+X13h0fBer0rrC+17XcyuZ/xm/tDq
77
- OyzSh8I9kb7o375yEAARKVerWof3Bn8AYVHTKK0ZAAA=
46
+ encoding: US-ASCII
47
+ string: ! '{"data":[{"id":"6021525982751"},{"id":"6021525876351"},{"id":"6021525861551"}],"paging":{"cursors":{"before":"NjAyMTUyNTk4Mjc1MQ==","after":"NjAyMTUyNTg2MTU1MQ=="}}}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Dec 2014 12:36:35 GMT
50
+ - request:
51
+ method: get
52
+ uri: https://graph.facebook.com/6021499361751/adgroups?access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A&fields=
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ User-Agent:
58
+ - Faraday v0.8.9
59
+ Accept-Encoding:
60
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
61
+ Accept:
62
+ - ! '*/*'
63
+ response:
64
+ status:
65
+ code: 200
66
+ message: OK
67
+ headers:
68
+ Facebook-Api-Version:
69
+ - v1.0
70
+ Etag:
71
+ - ! '"785092532354ba5f8d62e00808e4123f1bcde0c6"'
72
+ Content-Type:
73
+ - application/json; charset=UTF-8
74
+ Pragma:
75
+ - no-cache
76
+ Access-Control-Allow-Origin:
77
+ - ! '*'
78
+ X-Fb-Rev:
79
+ - '1534884'
80
+ Cache-Control:
81
+ - private, no-cache, no-store, must-revalidate
82
+ Expires:
83
+ - Sat, 01 Jan 2000 00:00:00 GMT
84
+ X-Fb-Debug:
85
+ - ubTtMNag5Ex7ENBS+TzTz6aSJNVine3VsXQj70udBKldPn80xOwqOKSyg/CfTGJ16qNfTNN7arHrDGuY1Dgj1w==
86
+ Date:
87
+ - Wed, 17 Dec 2014 13:22:05 GMT
88
+ Connection:
89
+ - keep-alive
90
+ Content-Length:
91
+ - '188'
92
+ body:
93
+ encoding: US-ASCII
94
+ string: ! '{"data":[{"id":"6021526003751"},{"id":"6021525982751"},{"id":"6021525876351"},{"id":"6021525861551"}],"paging":{"cursors":{"before":"NjAyMTUyNjAwMzc1MQ==","after":"NjAyMTUyNTg2MTU1MQ=="}}}'
78
95
  http_version:
79
- recorded_at: Thu, 12 Sep 2013 13:21:39 GMT
96
+ recorded_at: Wed, 17 Dec 2014 13:22:05 GMT
80
97
  recorded_with: VCR 2.3.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://graph.facebook.com/act_10150585630710217/adcreatives?access_token=CAAEvJ5vzhl8BAH8aCPOx0Ft9uNB147TF8weJ8hK0g7YVDRWU4eEih7tEKdJgmfk0vABZClZACJbEzyhSMbiShL6RpsfkZASfX1C9nv1AlFvjJajflqkyYZAlpE2edT0FJHjdh4NFg0ZCt0sBgq0kZABtKsjuU18aMURLE7rjKHR4X8NkXBUafg1T4uZARRNqboZD&fields=
5
+ uri: https://graph.facebook.com/act_10150585630710217/adcreatives?access_token=CAAEvJ5vzhl8BANgaZCvjMZCRsIbNZCSPswoDM0MTx8g30ojs53HUp43aVBVdqHnu9kIFytWIR5oRfp1Sy8DZBtJ9p5Rw2kY93ZAu6EwzHqZCrjmeBxXBWWlMCty1Bg4zKc3abdbjgoX4fWP4NWCEyWZCFJBKXWR0WV3ZC63bSqw7ojzYJm4teOarRc1GaesGIlIKlZB6s7EwZA1qUZCCKsdZCSsq%0A&fields=
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Faraday v0.8.7
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:
@@ -16,78 +16,82 @@ http_interactions:
16
16
  response:
17
17
  status:
18
18
  code: 200
19
- message: !binary |-
20
- T0s=
19
+ message: OK
21
20
  headers:
22
- !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
23
- - !binary |-
24
- Kg==
25
- !binary "Q2FjaGUtQ29udHJvbA==":
26
- - !binary |-
27
- cHJpdmF0ZSwgbm8tY2FjaGUsIG5vLXN0b3JlLCBtdXN0LXJldmFsaWRhdGU=
28
- !binary "Q29udGVudC1UeXBl":
29
- - !binary |-
30
- YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD1VVEYtOA==
31
- !binary "RXRhZw==":
32
- - !binary |-
33
- IjFkNzk2ZTAwMmVhYmUwZDJhNWI4ZjlkMzMyYWYwNDNmNDkyMmIzNmIi
34
- !binary "RXhwaXJlcw==":
35
- - !binary |-
36
- U2F0LCAwMSBKYW4gMjAwMCAwMDowMDowMCBHTVQ=
37
- !binary "UHJhZ21h":
38
- - !binary |-
39
- bm8tY2FjaGU=
40
- !binary "WC1GYi1SZXY=":
41
- - !binary |-
42
- OTM0Njc3
43
- !binary "Q29udGVudC1FbmNvZGluZw==":
44
- - !binary |-
45
- Z3ppcA==
46
- !binary "WC1GYi1EZWJ1Zw==":
47
- - !binary |-
48
- aHdGMTRtV3FFSGJ4RWNod1Y1YVMyMlNCdlhTaWpNWmdLUFVoWVl2Szh6ND0=
49
- !binary "RGF0ZQ==":
50
- - !binary |-
51
- VGh1LCAxMiBTZXAgMjAxMyAxMzoyMTozOSBHTVQ=
52
- !binary "Q29ubmVjdGlvbg==":
53
- - !binary |-
54
- a2VlcC1hbGl2ZQ==
55
- !binary "Q29udGVudC1MZW5ndGg=":
56
- - !binary |-
57
- MTM1MA==
21
+ Facebook-Api-Version:
22
+ - v1.0
23
+ Etag:
24
+ - ! '"097453d022fe293736d7a96bd423883d31ca8ad5"'
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
+ - IODDyHGEfyt2DcMA7gGiPfy9Gzj0yguOO+hmjZTg1aoG8lJ7lCDzwAuOr8bYybSROEb2CxyWu/Zz/f057dGzqw==
39
+ Date:
40
+ - Wed, 17 Dec 2014 12:36:35 GMT
41
+ Connection:
42
+ - keep-alive
43
+ Content-Length:
44
+ - '395'
58
45
  body:
59
- encoding: ASCII-8BIT
60
- string: !binary |-
61
- H4sIAAAAAAAAA91YW3PaRhT+Kxr1sRh2dZdnPJkVYAyOY7BNXadkmJW0SDK6
62
- VRIodsb/vUcSBkGcDjSO01YPxns5lz2X75zdL7xNM8of//GF92z+mFcQRpqm
63
- yQrWZcw3eGplXhRO05hZ5aZq3MweYgZj3vfmjP/U4OMozYoxRlhGkoCkgouq
64
- aDL/6QmWvYA6bLpIfJAATEMaADV/HUdhGiXM5tIsSh64X5QGSG+A+AbIb1QK
65
- xAlbeixfEbtZFqfHk9akled5c0YtZkbRvGlFwaRF7RT+xN6kZSWMZt6STVfE
66
- zdiN31mefbJ7uoT5NGP2dEbDaQwq8se4wVdnE+QGv+ZTmGaLtsEnC7BKRrNF
67
- WhJZ0SLMptYiSRj8UttJokUMS/pTo2ZZUcIaFtS6ZcFsvOEQgwytPiEfr349
68
- OxfaDhkQYrDr0VJMFto5rBJyOSTt+8fPQweRnnN3DjOklxsBId3L28FSu1el
69
- zl0xWX0G6Y03o1Hb3AwcshyR9vny4iz3TwkZ5uXSqCByzjbbSLd9U+c3l55H
70
- Z6DecC3oPWlvJDFC/O7zUjclg/WSIZH2b4WQ8rvOiW/V9Btc1wS3x5VK1efX
71
- TkW65bnL75R0kjU/OO/Vml8/ygnsW9uPdJyCwChtS+7q/ArL9v/U8nsS3c6N
72
- rL6PAXMveWxftF06Apvnd+9LuXPSKX4ukWuMT42P/e5gMPav+lfd04/v24Yx
73
- nsvDm+7I6YsGNn83YjOwXTO4iuxbnNNbOez39KUp6Mv+Kcz3cmfcc5d2T38c
74
- kahg26a3I/A3GABkG9rgCrQ4KfJwkUXTRQzJCrGJvpVRxOZmSRRwlBtCNHNF
75
- Vj5nFYReA2KvUQVfZN4zK5sWcS1AwmJRlyRdF5Ai/ICMq0f9ixlXpn+pjAIA
76
- ooqCIiuaoOriOhnVF5JxzXbvZBS+TkbAqz1gDvAlgLwGw+0A3o6+nwoBOxBZ
77
- QuMKIpuV3QEpvyI8FCUrf6JGpf/b+3NluEMRtHRaQbu303DNaUjWZCyqWN7H
78
- aa9cm9C28FeuS9vMD7NqjXZvq6K6VSW5qPq4ggYzsh+gJt24DLCEMc4bulHI
79
- uDxK5tEi47KEWnOWcDSOudzL3GLOZL6fcjS0udz10sxnaZO7jDMv8B6huGcR
80
- bOAWKfxLgR74Og9BsdOvuHqhwwGX5iQE6VWn4NLUBR1M0VQES2A2VgWsiSZm
81
- gjaTBCxbNrapIq33V53FpjmYmZYdHj2X7yPapHMaUM+1myHLJi0XWoUjOj8C
82
- KeKklWKMPmto0lIR1nR9qiCkKBBligIdyFREqoKnYfM+dsr0D+d7tCJwQJcl
83
- 0abV6cGJz2DmCIlvm61oy7eZB84BSz2rA7qsup2v8LVGuHdQbaUqCEaaIIs/
84
- N6j+byH1Lp2f5NT3Xwot4e1Da+PhA0NrRfjPQ0uVhaoK/IvwSrJnCpYEC9l4
85
- JgGMzKCvUlSmWlSRZbg/fC9exUmIt/CqwOwNXgEw4qmAMRZeEa/euLsoYAet
86
- fXtoUFWEewfVdhGUdBVJ4k8ugrt4pVhYsBSLqYKiSJIiUWbqmmjPKNywEaby
87
- jw4pgO8pdOIY/X1IQTeQ7lzHTc8J4HVg0noJqtAOVKmqJCpY1nQZCRo0+6/d
88
- XcHtZuPcquRJL5S89a7vCCFR+8m4tBtC/3VU+nbJe+t6V4THs3sPgqY14QFx
89
- VVwZqQPNMX/8hYeHJXgpg/ckuF7OMpZAD/fhnuQfOiP5wyN5vOyM8cXopHgo
90
- MNkMntSq9c8XHUeCNeHiZl6tPz2tnqrgZaroZgMPLqOAuE9/ASLPYLQIFAAA
46
+ encoding: US-ASCII
47
+ string: ! '{"data":[{"id":"6021396606151"},{"id":"6013351235551"},{"id":"6013351233351"},{"id":"6011746439951"},{"id":"6010888561951"},{"id":"6010341812751"},{"id":"6010341810151"},{"id":"6005851371551"},{"id":"6004501081751"},{"id":"6004500825351"},{"id":"6004500752551"},{"id":"6004497043751"},{"id":"6004497038551"}],"paging":{"cursors":{"before":"NjAyMTM5NjYwNjE1MQ==","after":"NjAwNDQ5NzAzODU1MQ=="}}}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Dec 2014 12:36:35 GMT
50
+ - request:
51
+ method: get
52
+ uri: https://graph.facebook.com/act_10150585630710217/adcreatives?access_token=CAAEvJ5vzhl8BAICOwypV5nYnYWXhBq1eskHA7rKyrz9fXcAvKRXDWVZAaG7FpQ21qTXeCtGZCR7iu1dtZCqZCZBZCQbefKrMOnZAibDZAiQKiX0s22PgtKuCoQK4LDVimREnqkGdoLMyB4zgT3A6ZAU7pn6wc2mTzZBWVbkr71bZBJKjhyeb4V58TkMsUbN9SQer3ZCRRtWTxqNFTUwHuv51RoVsI7LNw0mCr5gZD%0A&fields=
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ User-Agent:
58
+ - Faraday v0.8.9
59
+ Accept-Encoding:
60
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
61
+ Accept:
62
+ - ! '*/*'
63
+ response:
64
+ status:
65
+ code: 200
66
+ message: OK
67
+ headers:
68
+ Facebook-Api-Version:
69
+ - v1.0
70
+ Etag:
71
+ - ! '"097453d022fe293736d7a96bd423883d31ca8ad5"'
72
+ Content-Type:
73
+ - application/json; charset=UTF-8
74
+ Pragma:
75
+ - no-cache
76
+ Access-Control-Allow-Origin:
77
+ - ! '*'
78
+ X-Fb-Rev:
79
+ - '1534884'
80
+ Cache-Control:
81
+ - private, no-cache, no-store, must-revalidate
82
+ Expires:
83
+ - Sat, 01 Jan 2000 00:00:00 GMT
84
+ X-Fb-Debug:
85
+ - wfSneHPkIqG3jcxgugJVy71nWIzGvYz1G1/SUa5T5Tg9hNQrO89TLVIa/ZFFc6cbnXYbokkDRaKHOTAlhy7mzw==
86
+ Date:
87
+ - Wed, 17 Dec 2014 13:22:06 GMT
88
+ Connection:
89
+ - keep-alive
90
+ Content-Length:
91
+ - '395'
92
+ body:
93
+ encoding: US-ASCII
94
+ string: ! '{"data":[{"id":"6021396606151"},{"id":"6013351235551"},{"id":"6013351233351"},{"id":"6011746439951"},{"id":"6010888561951"},{"id":"6010341812751"},{"id":"6010341810151"},{"id":"6005851371551"},{"id":"6004501081751"},{"id":"6004500825351"},{"id":"6004500752551"},{"id":"6004497043751"},{"id":"6004497038551"}],"paging":{"cursors":{"before":"NjAyMTM5NjYwNjE1MQ==","after":"NjAwNDQ5NzAzODU1MQ=="}}}'
91
95
  http_version:
92
- recorded_at: Thu, 12 Sep 2013 13:21:39 GMT
96
+ recorded_at: Wed, 17 Dec 2014 13:22:06 GMT
93
97
  recorded_with: VCR 2.3.0