facebook_ads 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/.approvals +0 -0
  3. data/.coveralls.yml +1 -0
  4. data/.rspec +2 -0
  5. data/.rubocop.yml +13 -1
  6. data/.rubocop_todo.yml +16 -0
  7. data/.travis.yml +3 -1
  8. data/CHANGELOG.md +5 -0
  9. data/Gemfile +10 -7
  10. data/Gemfile.lock +56 -19
  11. data/LICENSE.md +22 -0
  12. data/README.md +8 -0
  13. data/facebook_ads.gemspec +2 -2
  14. data/lib/facebook_ads/ad.rb +2 -2
  15. data/lib/facebook_ads/ad_account.rb +52 -19
  16. data/lib/facebook_ads/ad_audience.rb +1 -1
  17. data/lib/facebook_ads/ad_campaign.rb +47 -5
  18. data/lib/facebook_ads/ad_creative.rb +4 -4
  19. data/lib/facebook_ads/ad_exception.rb +7 -1
  20. data/lib/facebook_ads/ad_image.rb +6 -2
  21. data/lib/facebook_ads/ad_insight.rb +1 -1
  22. data/lib/facebook_ads/ad_product.rb +1 -1
  23. data/lib/facebook_ads/ad_product_catalog.rb +1 -1
  24. data/lib/facebook_ads/ad_product_feed.rb +1 -1
  25. data/lib/facebook_ads/ad_product_set.rb +1 -1
  26. data/lib/facebook_ads/ad_set.rb +5 -5
  27. data/lib/facebook_ads/ad_targeting.rb +3 -3
  28. data/lib/facebook_ads/base.rb +10 -9
  29. data/spec/facebook_ads/ad_account_spec.rb +93 -0
  30. data/spec/facebook_ads/ad_campaign_spec.rb +19 -0
  31. data/spec/facebook_ads/ad_creative_spec.rb +4 -0
  32. data/spec/facebook_ads/ad_image_spec.rb +4 -0
  33. data/spec/facebook_ads/ad_insight_spec.rb +4 -0
  34. data/spec/facebook_ads/ad_product_catalog_spec.rb +27 -0
  35. data/spec/facebook_ads/ad_product_feed_spec.rb +4 -0
  36. data/spec/facebook_ads/ad_product_set_spec.rb +4 -0
  37. data/spec/facebook_ads/ad_product_spec.rb +21 -0
  38. data/spec/facebook_ads/ad_set_spec.rb +47 -0
  39. data/spec/facebook_ads/ad_spec.rb +4 -0
  40. data/spec/facebook_ads/ad_targeting_spec.rb +4 -0
  41. data/spec/facebook_ads/facebook_ads_spec.rb +15 -0
  42. data/spec/fixtures/approvals/facebookads_adaccount/ad_campaigns/lists_campaigns.approved.json +15 -0
  43. data/spec/fixtures/approvals/facebookads_adaccount/ad_creatives/lists_creatives.approved.json +1047 -0
  44. data/spec/fixtures/approvals/facebookads_adaccount/ad_images/lists_images.approved.json +11 -0
  45. data/spec/fixtures/approvals/facebookads_adaccount/ad_sets/lists_ad_sets.approved.json +3 -0
  46. data/spec/fixtures/approvals/facebookads_adaccount/ads/lists_ads.approved.json +3 -0
  47. data/spec/fixtures/approvals/facebookads_adaccount/all/lists_all_accounts.approved.json +92 -0
  48. data/spec/fixtures/approvals/facebookads_adaccount/create_ad_campaign/creates_a_new_ad_campaign.approved.json +13 -0
  49. data/spec/fixtures/approvals/facebookads_adaccount/create_ad_images/creates_an_image.approved.json +11 -0
  50. data/spec/fixtures/approvals/facebookads_adaccount/find_by/finds_a_specific_account.approved.json +9 -0
  51. data/spec/fixtures/approvals/facebookads_adaccount/reach_estimate/estimates_the_reach_of_a_targeting_spec.approved.json +358 -0
  52. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_ad_campaigns/lists_campaigns.yml +56 -0
  53. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_ad_creatives/lists_creatives.yml +91 -0
  54. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_ad_images/lists_images.yml +56 -0
  55. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_ad_sets/lists_ad_sets.yml +56 -0
  56. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_ads/lists_ads.yml +56 -0
  57. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_all/lists_all_accounts.yml +58 -0
  58. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_create_ad_campaign/creates_a_new_ad_campaign.yml +115 -0
  59. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_create_ad_images/creates_an_image.yml +2865 -0
  60. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_find_by/finds_a_specific_account.yml +58 -0
  61. data/spec/fixtures/cassettes/FacebookAds_AdAccount/_reach_estimate/estimates_the_reach_of_a_targeting_spec.yml +56 -0
  62. data/spec/fixtures/cassettes/FacebookAds_AdCampaign/_destroy/creates_a_new_ad_campaign.yml +164 -0
  63. data/spec/spec_helper.rb +7 -0
  64. data/spec/support/approvals.rb +10 -0
  65. data/spec/support/facebook_ads.rb +4 -0
  66. data/spec/support/rest_client.rb +13 -0
  67. data/spec/support/vcr.rb +16 -0
  68. metadata +47 -29
  69. data/test/ad_account_test.rb +0 -27
  70. data/test/ad_campaign_test.rb +0 -32
  71. data/test/ad_creative_test.rb +0 -7
  72. data/test/ad_image_test.rb +0 -27
  73. data/test/ad_insight_test.rb +0 -7
  74. data/test/ad_product_catalog_test.rb +0 -28
  75. data/test/ad_product_feed_test.rb +0 -7
  76. data/test/ad_product_set_test.rb +0 -7
  77. data/test/ad_product_test.rb +0 -22
  78. data/test/ad_set_test.rb +0 -48
  79. data/test/ad_targeting_test.rb +0 -7
  80. data/test/ad_test.rb +0 -7
  81. data/test/facebook_ads_test.rb +0 -8
  82. data/test/test_helper.rb +0 -64
  83. data/test/vcr_cassettes/AdAccountTest-test_all.yml +0 -70
  84. data/test/vcr_cassettes/AdAccountTest-test_applications.yml +0 -130
  85. data/test/vcr_cassettes/AdAccountTest-test_find_by.yml +0 -71
  86. data/test/vcr_cassettes/AdCampaignTest-test_create.yml +0 -295
  87. data/test/vcr_cassettes/AdCampaignTest-test_list.yml +0 -133
  88. data/test/vcr_cassettes/AdImageTest-test_create.yml +0 -2963
  89. data/test/vcr_cassettes/AdImageTest-test_list.yml +0 -137
  90. data/test/vcr_cassettes/AdProductCatalogTest-test_all.yml +0 -60
  91. data/test/vcr_cassettes/AdProductCatalogTest-test_create.yml +0 -256
  92. data/test/vcr_cassettes/AdProductTest-test_list.yml +0 -130
  93. data/test/vcr_cassettes/AdSetTest-test_create.yml +0 -189
  94. data/test/vcr_cassettes/AdSetTest-test_destroy.yml +0 -124
  95. data/test/vcr_cassettes/AdSetTest-test_update.yml +0 -134
@@ -1,130 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://graph.facebook.com/v2.8/TEST_BUSINESS_ID/product_catalogs?access_token=TEST_ACCESS_TOKEN&fields=id,name,vertical,product_count,feed_count
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Access-Control-Allow-Origin:
22
- - "*"
23
- Etag:
24
- - '"4da6baa87a2d2d9485d71880069bf895add8e5de"'
25
- Pragma:
26
- - no-cache
27
- Cache-Control:
28
- - private, no-cache, no-store, must-revalidate
29
- Facebook-Api-Version:
30
- - v2.8
31
- Expires:
32
- - Sat, 01 Jan 2000 00:00:00 GMT
33
- Content-Type:
34
- - application/json; charset=UTF-8
35
- X-Fb-Trace-Id:
36
- - DLCpw/CioIz
37
- X-Fb-Rev:
38
- - '2761076'
39
- Vary:
40
- - Accept-Encoding
41
- Content-Encoding:
42
- - gzip
43
- X-Fb-Debug:
44
- - bC/e/XS1/SBBd+i8nBYjuKq8fH5lDfU2AkEMOlYrh9KbX3vOzKnhbCFebbRREnTGuNKJ2dXra6c3vxtqgCJBOw==
45
- Date:
46
- - Sun, 01 Jan 2017 02:33:34 GMT
47
- Connection:
48
- - keep-alive
49
- Content-Length:
50
- - '161'
51
- body:
52
- encoding: ASCII-8BIT
53
- string: !binary |-
54
- H4sIAAAAAAAAA3WMsQrCMBRF/+XNHQxRUrMJdqwu3UQkvryWok3kNRFpyL+b
55
- Lm5u95x7uQmsCQb0JcFoQYPYq1oJuVFS7JSooQJnJipFR3Mo9CYOI5pnMein
56
- iRip2Bd7GzHc0EcXQIsKeiL7w3wtEzOMbgCdACPPnuc13qn3vL633UOej/hp
57
- l4Nsl0aclmZbfk0fiP/VOecvv4YTXL4AAAA=
58
- http_version:
59
- recorded_at: Sun, 01 Jan 2017 02:33:34 GMT
60
- - request:
61
- method: get
62
- uri: https://graph.facebook.com/v2.8/197871307315718/products?access_token=TEST_ACCESS_TOKEN&fields=id,retailer_id,name,description,brand,category,currency,price,image_url,url&limit=100
63
- body:
64
- encoding: US-ASCII
65
- string: ''
66
- headers:
67
- Accept:
68
- - "*/*; q=0.5, application/xml"
69
- Accept-Encoding:
70
- - gzip, deflate
71
- User-Agent:
72
- - Ruby
73
- response:
74
- status:
75
- code: 200
76
- message: OK
77
- headers:
78
- Access-Control-Allow-Origin:
79
- - "*"
80
- Etag:
81
- - '"bb480c7a1e23fbaadac31061c1b5f7ee3f4562e8"'
82
- Pragma:
83
- - no-cache
84
- Cache-Control:
85
- - private, no-cache, no-store, must-revalidate
86
- Facebook-Api-Version:
87
- - v2.8
88
- Expires:
89
- - Sat, 01 Jan 2000 00:00:00 GMT
90
- Content-Type:
91
- - application/json; charset=UTF-8
92
- X-Fb-Trace-Id:
93
- - FEsxhkoKAm0
94
- X-Fb-Rev:
95
- - '2761076'
96
- Vary:
97
- - Accept-Encoding
98
- Content-Encoding:
99
- - gzip
100
- X-Fb-Debug:
101
- - kpTAOYHwfddkGrvWp32KTHz97vxETw4MUMtmG8xz9o99LegDnrNmHSOcy8UH2v7X9Tr5z/8OvzGENyBycfDttw==
102
- Date:
103
- - Sun, 01 Jan 2017 02:33:34 GMT
104
- Connection:
105
- - keep-alive
106
- Content-Length:
107
- - '763'
108
- body:
109
- encoding: ASCII-8BIT
110
- string: !binary |-
111
- H4sIAAAAAAAAA+1Ty3KbMBT9FYbpeFVjxCNAZjwdYew0bajrxPE01B2PEMIo
112
- wYhIwo+m+fcKJ7RpF1l30ZV0zz06us8HPUMS6adfH3Sa6ac6cPwAAMv0ADAd
113
- 0/H1tzonEtGS8NWRoCzO+rxJD32COKfVWihOhTZEOT9zgilrhHbZsjQjsFzt
114
- ShJeKpp2Rcst4RrkkuYUU1Rql0pFG/9WyYjAnNaSskqJvXE1UdC6bt/2NSS1
115
- A2u4ljHGhSS1tqOyoJVmuX3L09JG0IoIoWXoIAwllXJUteHCjHHUCva72JQT
116
- I0nWjB+U/wPZkZIftB8v48AN56TCrf/6KlJAzSlu83sD3BPDNBVCN2hNVg0v
117
- FVpIWYvT5WA5IHuVbIVKY7838hRnlVERuRwIlJPV8YVRF/W7bAhn8KKa5g3Y
118
- FHd16sx7Smh4lFk2pmm5Nnw6rUl3ZrZPSM2JaBoXBAYuWZPlnFXy+MMzCVjY
119
- dy3HzjzHRtjGqQVSD2DbAYGVKkLHKxFXodzW6x7OxRD0VhVeFUgUKq6w3JfR
120
- 6N4N5PREjFWif6coWV0gqdI0MNssByWTYjmwbMtzPcvXH7+pYqG1qqN++tDW
121
- UahutdeU5Iy3JYznM2c6H+/jW2jH8/HuUwTNKUyipK0zypXw66RHNWyqzH/E
122
- tOaoLowcYZIydvcU2NYy/OUABJ7vAdv0bOB6QAE1Z1mDpXiHMFbzspLsjlTD
123
- MYTjT2ESBufxNQxhzG/EzlwAv66nW5nAycHdkm0yQsloPCPsHCMYNROSwCS8
124
- nichjyZxMnJy4n+nZzj4+P7kIgnp5ZfKaWaz6GaMzhLo07ObDU3gfXByd34l
125
- 7s9McxEC4i52SRhGt2U2n8APPlxUeczjilnbC1b69xcJvLT46IsT3ySj0WKR
126
- +UnUyykpMzGk2XM7Ry8WtIPafezuL7aqg47b0RndNvyyn6e/s4/D3xm/5r4D
127
- 1LVX0g2VQ2CavWMDh6/2WA3x9riH/zv4L3bwaVFfa+Hj409lK5S5NQYAAA==
128
- http_version:
129
- recorded_at: Sun, 01 Jan 2017 02:33:34 GMT
130
- recorded_with: VCR 3.0.3
@@ -1,189 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://graph.facebook.com/v2.8/6069436026057?access_token=TEST_ACCESS_TOKEN&fields=id,account_id,buying_type,can_use_spend_cap,configured_status,created_time,effective_status,name,objective,start_time,stop_time,updated_time,spend_cap
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- User-Agent:
15
- - rest-client/2.0.0 (darwin16.3.0 x86_64) ruby/2.2.6p396
16
- Host:
17
- - graph.facebook.com
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Access-Control-Allow-Origin:
24
- - "*"
25
- Etag:
26
- - '"3093fb2c3c70fd686df36b0d287b0e7bfb65cb68"'
27
- Pragma:
28
- - no-cache
29
- Cache-Control:
30
- - private, no-cache, no-store, must-revalidate
31
- Facebook-Api-Version:
32
- - v2.8
33
- Expires:
34
- - Sat, 01 Jan 2000 00:00:00 GMT
35
- Content-Type:
36
- - application/json; charset=UTF-8
37
- X-Fb-Trace-Id:
38
- - DUi9h6Na23I
39
- X-Fb-Rev:
40
- - '2769824'
41
- Vary:
42
- - Accept-Encoding
43
- Content-Encoding:
44
- - gzip
45
- X-Fb-Debug:
46
- - PNBIKRQfFP8ih7Pci3/yzuOwZsjTBbk/ZgYMC/sy8EgEdnMFm95vMqyVgGtzmwkw5pszlRXz1qS1vkgDPDvtHw==
47
- Date:
48
- - Tue, 10 Jan 2017 07:38:21 GMT
49
- Connection:
50
- - keep-alive
51
- Content-Length:
52
- - '242'
53
- body:
54
- encoding: ASCII-8BIT
55
- string: !binary |-
56
- H4sIAAAAAAAAA22OwWrDMAyGX2X4vICUpk7iW8l66KUdS7odjZMoxYM6IbYL
57
- Zezdp2Sww+hN6Pv+X/oSthdKSJBltpGQStjm4lmYrhujC3qFCFssNwVigUVa
58
- wMLbeLfuosN9IhZ256o5nI6874zT0ZP2E7led2YSKsyRGIxusJc4U699MCF6
59
- jr3uzvX+ZUnNZAKTYK9LXQooEygSSBtAhZnKygRyADZpGKgL9kYPWpxZ0x/U
60
- ehvoqRrdjWZvR+cZju3nb5CN6nR837/V/HHNhIvm8Ph0KhX+nY5T/+/JPAFk
61
- uUE2Ua0zm98/F4f8j1MBAAA=
62
- http_version:
63
- recorded_at: Tue, 10 Jan 2017 07:38:21 GMT
64
- - request:
65
- method: post
66
- uri: https://graph.facebook.com/v2.8/act_1051938118182807/adsets
67
- body:
68
- encoding: UTF-8
69
- string: campaign_id=6069436026057&name=Test&targeting=%7B%22age_max%22%3A65%2C%22age_min%22%3A18%2C%22app_install_state%22%3A%22not_installed%22%2C%22excluded_custom_audiences%22%3A%5B%7B%22name%22%3A%22All-Users-2016-07-28%22%2C%22id%22%3A%226068994792257%22%7D%5D%2C%22genders%22%3A%5B2%5D%2C%22geo_locations%22%3A%7B%22countries%22%3A%5B%22US%22%5D%2C%22location_types%22%3A%5B%22home%22%2C%22recent%22%5D%7D%2C%22locales%22%3A%5B24%2C6%5D%2C%22publisher_platforms%22%3A%5B%22facebook%22%2C%22instagram%22%2C%22audience_network%22%5D%2C%22device_platforms%22%3A%5B%22desktop%22%5D%2C%22facebook_positions%22%3A%5B%22feed%22%2C%22right_hand_column%22%5D%7D&promoted_object=%7B%22pixel_id%22%3A%221472889202927380%22%2C%22custom_event_type%22%3A%22PURCHASE%22%7D&optimization_goal=OFFSITE_CONVERSIONS&daily_budget=1000&billing_event=IMPRESSIONS&status=ACTIVE&is_autobid=true&access_token=TEST_ACCESS_TOKEN
70
- headers:
71
- Accept:
72
- - "*/*"
73
- Accept-Encoding:
74
- - gzip, deflate
75
- User-Agent:
76
- - rest-client/2.0.0 (darwin16.3.0 x86_64) ruby/2.2.6p396
77
- Content-Length:
78
- - '1061'
79
- Content-Type:
80
- - application/x-www-form-urlencoded
81
- Host:
82
- - graph.facebook.com
83
- response:
84
- status:
85
- code: 200
86
- message: OK
87
- headers:
88
- P3p:
89
- - 'CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p"'
90
- Access-Control-Allow-Origin:
91
- - "*"
92
- Pragma:
93
- - no-cache
94
- Cache-Control:
95
- - private, no-cache, no-store, must-revalidate
96
- Facebook-Api-Version:
97
- - v2.8
98
- Expires:
99
- - Sat, 01 Jan 2000 00:00:00 GMT
100
- Content-Type:
101
- - application/json; charset=UTF-8
102
- X-Fb-Trace-Id:
103
- - AwRM00wrgYX
104
- X-Fb-Rev:
105
- - '2769824'
106
- Set-Cookie:
107
- - sW=1484033901%3AAaBh0wN0r79WkD0T; path=/; domain=.graph.facebook.com; secure
108
- X-Fb-Debug:
109
- - qPat9POKPd9oGXI3rw0jKoygmTYkHzHEW3Lz10stQiKAoK3uXN0J7bB2FrbNcgnoHZLfHnN0m7oXnSpa0LDK2Q==
110
- Date:
111
- - Tue, 10 Jan 2017 07:38:22 GMT
112
- Connection:
113
- - keep-alive
114
- Content-Length:
115
- - '22'
116
- body:
117
- encoding: UTF-8
118
- string: '{"id":"6081945233457"}'
119
- http_version:
120
- recorded_at: Tue, 10 Jan 2017 07:38:22 GMT
121
- - request:
122
- method: get
123
- uri: https://graph.facebook.com/v2.8/6081945233457?access_token=TEST_ACCESS_TOKEN&fields=id,account_id,campaign_id,name,status,configured_status,effective_status,bid_amount,billing_event,optimization_goal,pacing_type,daily_budget,budget_remaining,lifetime_budget,promoted_object,targeting,created_time,updated_time
124
- body:
125
- encoding: US-ASCII
126
- string: ''
127
- headers:
128
- Accept:
129
- - "*/*"
130
- Accept-Encoding:
131
- - gzip, deflate
132
- User-Agent:
133
- - rest-client/2.0.0 (darwin16.3.0 x86_64) ruby/2.2.6p396
134
- Host:
135
- - graph.facebook.com
136
- response:
137
- status:
138
- code: 200
139
- message: OK
140
- headers:
141
- Access-Control-Allow-Origin:
142
- - "*"
143
- Etag:
144
- - '"0983c34785b31e38d0cf8f37ed607f5a8291d0cd"'
145
- Pragma:
146
- - no-cache
147
- Cache-Control:
148
- - private, no-cache, no-store, must-revalidate
149
- Facebook-Api-Version:
150
- - v2.8
151
- Expires:
152
- - Sat, 01 Jan 2000 00:00:00 GMT
153
- Content-Type:
154
- - application/json; charset=UTF-8
155
- X-Fb-Trace-Id:
156
- - AM3sukRLuz3
157
- X-Fb-Rev:
158
- - '2769824'
159
- Vary:
160
- - Accept-Encoding
161
- Content-Encoding:
162
- - gzip
163
- X-Fb-Debug:
164
- - wluPtKeCIEfsitUpt6Q66u1Q4wvfvEno0Nm4AvxgyjpQ7yBYG4oBOq83X8Bgjun4quG/9QYEgHrHu7fVPqHR7A==
165
- Date:
166
- - Tue, 10 Jan 2017 07:38:22 GMT
167
- Connection:
168
- - keep-alive
169
- Content-Length:
170
- - '578'
171
- body:
172
- encoding: ASCII-8BIT
173
- string: !binary |-
174
- H4sIAAAAAAAAA41SwW7iMBD9F59BShwICTfE0l0OpaiBXqrKMs4QvDi25Thd
175
- uoh/37EBtau97M0z82bem+c5E1mTKcmTIi1HY5plo/GEDAgXwvTas1hMk3Fa
176
- ZkWaFmlBiyTUBW8tl41mt+68HGV5QvMkdmveAqY30HmMOs9932E8m2+WL4vQ
177
- bfReNr2Dmv1bhP0ehJfv8Fmbzx7Xs+X3FVvPttXiG4J2UimpGwbvoD0ilo/r
178
- 50VVLZ9WFVaN9bKVv7mXRrPGcIWIp4eHarlZsPnT6mXxfEdaLsIY/2FR8GuQ
179
- qmvuavI2IDWX6oPt+roBH01IkkAcY+ag5VJja6iMMa/kHpAUPhsC2jrTGo9r
180
- mt1PXIpMz8TKE6ibr6MJLYqSJrSkk6wIDaLvvGmva91UkfX2ef5jVi3IZUA8
181
- dzg98p4Jb4C1/ESm+XhwDaQm07TAwFomNW6jVHQxjNHG33NQB59PQvU1artx
182
- 8r6WoAWg4a/n+1XkRVmOJiWlX/91ptRw24HrhjRJ82FKh0lKLmhZA7rGNA6g
183
- MTJMGRF/oQt640k5GRnItgom3+tx15g/GOQYEAci/Ozb5YpRsUhHg/ztiwns
184
- 60ejMDhZrrswDpcM9vc7JbsDOGYV93vj2kix5wJ2xhwREQ1pHG/Dzd8MYBr8
185
- L+OOQd8dyqzp5G0RHADRQSebg2cHPBkmjOpbHc8G3iXO+Iuwhu7ojY3bCAc8
186
- XEQ4FpSMDk7QvmFSbmg2zYopxXcRT6239X8hL38ARmr8p8QDAAA=
187
- http_version:
188
- recorded_at: Tue, 10 Jan 2017 07:38:22 GMT
189
- recorded_with: VCR 3.0.3
@@ -1,124 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://graph.facebook.com/v2.8/6081945233457?access_token=TEST_ACCESS_TOKEN&fields=id,account_id,campaign_id,name,status,configured_status,effective_status,bid_amount,billing_event,optimization_goal,pacing_type,daily_budget,budget_remaining,lifetime_budget,promoted_object,targeting,created_time,updated_time
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- User-Agent:
15
- - rest-client/2.0.0 (darwin16.3.0 x86_64) ruby/2.2.6p396
16
- Host:
17
- - graph.facebook.com
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Access-Control-Allow-Origin:
24
- - "*"
25
- Etag:
26
- - '"0983c34785b31e38d0cf8f37ed607f5a8291d0cd"'
27
- Pragma:
28
- - no-cache
29
- Cache-Control:
30
- - private, no-cache, no-store, must-revalidate
31
- Facebook-Api-Version:
32
- - v2.8
33
- Expires:
34
- - Sat, 01 Jan 2000 00:00:00 GMT
35
- Content-Type:
36
- - application/json; charset=UTF-8
37
- X-Fb-Trace-Id:
38
- - DBFCj3ipgSr
39
- X-Fb-Rev:
40
- - '2769824'
41
- Vary:
42
- - Accept-Encoding
43
- Content-Encoding:
44
- - gzip
45
- X-Fb-Debug:
46
- - AZ7nHqabtntJxydYIChMjiwtsfqoRPKiLQ8/IBmYKniFQ+E+cG66ht6U2DLsiAYEaBZVcKxdxTTjZogNXlGGEQ==
47
- Date:
48
- - Tue, 10 Jan 2017 07:39:49 GMT
49
- Connection:
50
- - keep-alive
51
- Content-Length:
52
- - '578'
53
- body:
54
- encoding: ASCII-8BIT
55
- string: !binary |-
56
- H4sIAAAAAAAAA41SwW7iMBD9F59BShwICTfE0l0OpaiBXqrKMs4QvDi25Thd
57
- uoh/37EBtau97M0z82bem+c5E1mTKcmTIi1HY5plo/GEDAgXwvTas1hMk3Fa
58
- ZkWaFmlBiyTUBW8tl41mt+68HGV5QvMkdmveAqY30HmMOs9932E8m2+WL4vQ
59
- bfReNr2Dmv1bhP0ehJfv8Fmbzx7Xs+X3FVvPttXiG4J2UimpGwbvoD0ilo/r
60
- 50VVLZ9WFVaN9bKVv7mXRrPGcIWIp4eHarlZsPnT6mXxfEdaLsIY/2FR8GuQ
61
- qmvuavI2IDWX6oPt+roBH01IkkAcY+ag5VJja6iMMa/kHpAUPhsC2jrTGo9r
62
- mt1PXIpMz8TKE6ibr6MJLYqSJrSkk6wIDaLvvGmva91UkfX2ef5jVi3IZUA8
63
- dzg98p4Jb4C1/ESm+XhwDaQm07TAwFomNW6jVHQxjNHG33NQB59PQvU1artx
64
- 8r6WoAWg4a/n+1XkRVmOJiWlX/91ptRw24HrhjRJ82FKh0lKLmhZA7rGNA6g
65
- MTJMGRF/oQt640k5GRnItgom3+tx15g/GOQYEAci/Ozb5YpRsUhHg/ztiwns
66
- 60ejMDhZrrswDpcM9vc7JbsDOGYV93vj2kix5wJ2xhwREQ1pHG/Dzd8MYBr8
67
- L+OOQd8dyqzp5G0RHADRQSebg2cHPBkmjOpbHc8G3iXO+Iuwhu7ojY3bCAc8
68
- XEQ4FpSMDk7QvmFSbmg2zYopxXcRT6239X8hL38ARmr8p8QDAAA=
69
- http_version:
70
- recorded_at: Tue, 10 Jan 2017 07:39:49 GMT
71
- - request:
72
- method: delete
73
- uri: https://graph.facebook.com/v2.8/6081945233457?access_token=TEST_ACCESS_TOKEN
74
- body:
75
- encoding: US-ASCII
76
- string: ''
77
- headers:
78
- Accept:
79
- - "*/*"
80
- Accept-Encoding:
81
- - gzip, deflate
82
- User-Agent:
83
- - rest-client/2.0.0 (darwin16.3.0 x86_64) ruby/2.2.6p396
84
- Host:
85
- - graph.facebook.com
86
- response:
87
- status:
88
- code: 200
89
- message: OK
90
- headers:
91
- P3p:
92
- - 'CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p"'
93
- Access-Control-Allow-Origin:
94
- - "*"
95
- Pragma:
96
- - no-cache
97
- Cache-Control:
98
- - private, no-cache, no-store, must-revalidate
99
- Facebook-Api-Version:
100
- - v2.8
101
- Expires:
102
- - Sat, 01 Jan 2000 00:00:00 GMT
103
- Content-Type:
104
- - application/json; charset=UTF-8
105
- X-Fb-Trace-Id:
106
- - AKVHkQrgYjj
107
- X-Fb-Rev:
108
- - '2769824'
109
- Set-Cookie:
110
- - sW=1484033990%3AAaAd4deeT2KlMMk2; path=/; domain=.graph.facebook.com; secure
111
- X-Fb-Debug:
112
- - 4NAqA+2lkZSqcoAQnNc09Kgsxu7YkAPWvcdh8WQiVpcotRf7ov5BnzAWr5qnXYVGxmKcQemTl0V9LTaREiSWiQ==
113
- Date:
114
- - Tue, 10 Jan 2017 07:39:50 GMT
115
- Connection:
116
- - keep-alive
117
- Content-Length:
118
- - '16'
119
- body:
120
- encoding: UTF-8
121
- string: '{"success":true}'
122
- http_version:
123
- recorded_at: Tue, 10 Jan 2017 07:39:50 GMT
124
- recorded_with: VCR 3.0.3
@@ -1,134 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://graph.facebook.com/v2.8/6078462927057?access_token=TEST_ACCESS_TOKEN&fields=id,account_id,campaign_id,adlabels,adset_schedule,bid_amount,bid_info,billing_event,configured_status,created_time,creative_sequence,effective_status,end_time,frequency_cap,frequency_cap_reset_period,frequency_control_specs,is_autobid,lifetime_frequency_cap,lifetime_imps,name,optimization_goal,promoted_object,rf_prediction_id,rtb_flag,start_time,targeting,updated_time,use_new_app_click,pacing_type,budget_remaining,daily_budget,lifetime_budget
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- User-Agent:
15
- - rest-client/2.0.0 (darwin16.3.0 x86_64) ruby/2.2.6p396
16
- Host:
17
- - graph.facebook.com
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Access-Control-Allow-Origin:
24
- - "*"
25
- Etag:
26
- - '"8601e585e51a79f062fca560a52d6ba20e8851b7"'
27
- Pragma:
28
- - no-cache
29
- Cache-Control:
30
- - private, no-cache, no-store, must-revalidate
31
- Facebook-Api-Version:
32
- - v2.8
33
- Expires:
34
- - Sat, 01 Jan 2000 00:00:00 GMT
35
- Content-Type:
36
- - application/json; charset=UTF-8
37
- X-Fb-Trace-Id:
38
- - FYcH7oOq7ZO
39
- X-Fb-Rev:
40
- - '2768927'
41
- Vary:
42
- - Accept-Encoding
43
- Content-Encoding:
44
- - gzip
45
- X-Fb-Debug:
46
- - CL6Z+QJWxmHr07ulS7RrqdZdh78jeQvyOfW5Ir+rvu8wXWB70O9Fxhr3flqxI79ZaZHtjEJGlQ340bvOE1CK4A==
47
- Date:
48
- - Mon, 09 Jan 2017 12:06:46 GMT
49
- Connection:
50
- - keep-alive
51
- Content-Length:
52
- - '820'
53
- body:
54
- encoding: ASCII-8BIT
55
- string: !binary |-
56
- H4sIAAAAAAAAA41UwW7jNhD9FYGnLmAtKMqSJd1crxc12iaL2M4etgFBS5TC
57
- miJZisrGDfLvHVK2kW23aG8SZ/jmzbw3fEGiQRXK8aKY56QkC5wt0Ayxutaj
58
- cjQEE5wlZVokSZEUpMA+XrPeMNEperkNkZzgbLp9EFIK1VH+xJWD+ObXT3fr
59
- 7XZze7P1d7VqRTda3tDBMTcOkLFc7Tb3ax+0nDmIONFzOCc4yeMkiUm6S5IK
60
- LyqSxLjAGDJ52/LaiSf+HZTW8j9GruoTrZmhlg/cUcOt0MAWz5AYKBudPnjy
61
- zo58hqRouS9JRW+GkKNYIPCZH6KlMcxyGZHfRoxJFpEszsroc3Sv5djz6EfR
62
- NNwO0aZnHR+iJHlP0vdJDjS0AUzxJ3NCK9ppJgHw9uPH7Wa3pqvbm/v13WUm
63
- xupe+7714XfoClUvyIhnLs8CzBekKEqCvUBp4buvx8HpfpowdSfjuW5uNrvN
64
- crf+QFc/rVc/3+536HWGrDvQVrIOVS2TA/QK47LufwwY0joYiuo8G2iN9uwZ
65
- VVk5m36EQhXJ4McYKhSAShmU8KhKu8sZb7xWz7UcG2jvTJuNjQB5OIz6y8vk
66
- QJIWc5KRsiyzHKacZOiqwYcTfIh6OTZRHC2l9IJEd7wTg+Pgomg/wPih1X8g
67
- kTT7DyQv778j5TgvynK+KAkJvj6jwMU4ZMbT9EiME/T6cBXlO935/UrLDOfp
68
- /C3SL1ofmRRHHv2w384uBnsH5PbbaBXQvLPiKMVRw06TuYg3ly/XceWNB1VI
69
- +NNU6jqYbfCShQ22ItBA+y2CnEs8OCacP0IF4GN57Vf14XXKkSFI5rP84Y0P
70
- 6Fs/A3v+bJgaPBzo7E08HqQYHrmlRjLXatuHEi2r+QEa9c/KeTJUcfdV26Pn
71
- dAlTowdxJg+XeDCOFd2jo49MgXX8tik4C8YC14OLRS25x2j4kwDUb8r2sN/S
72
- 99bw4ei0Cc2Npvnb87IA8WJc7vC8wqRK0ov7x8Gz/Eq9vWsp6uN1fwyr/TCm
73
- pfvi10k1zDaex2FsYFTw4PRMqLA5sLtpPveSN0zIE50y/HmGcSh0fXquIYxe
74
- /wJPAx7ClwUAAA==
75
- http_version:
76
- recorded_at: Mon, 09 Jan 2017 12:06:46 GMT
77
- - request:
78
- method: post
79
- uri: https://graph.facebook.com/v2.8/6078462927057
80
- body:
81
- encoding: UTF-8
82
- string: daily_budget=149900&access_token=TEST_ACCESS_TOKEN
83
- headers:
84
- Accept:
85
- - "*/*"
86
- Accept-Encoding:
87
- - gzip, deflate
88
- User-Agent:
89
- - rest-client/2.0.0 (darwin16.3.0 x86_64) ruby/2.2.6p396
90
- Content-Length:
91
- - '205'
92
- Content-Type:
93
- - application/x-www-form-urlencoded
94
- Host:
95
- - graph.facebook.com
96
- response:
97
- status:
98
- code: 200
99
- message: OK
100
- headers:
101
- P3p:
102
- - 'CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p"'
103
- Access-Control-Allow-Origin:
104
- - "*"
105
- Pragma:
106
- - no-cache
107
- Cache-Control:
108
- - private, no-cache, no-store, must-revalidate
109
- Facebook-Api-Version:
110
- - v2.8
111
- Expires:
112
- - Sat, 01 Jan 2000 00:00:00 GMT
113
- Content-Type:
114
- - application/json; charset=UTF-8
115
- X-Fb-Trace-Id:
116
- - CHyrZMQDmsR
117
- X-Fb-Rev:
118
- - '2768887'
119
- Set-Cookie:
120
- - sW=1483963606%3AAaDLso7ysP8SWvGp; path=/; domain=.graph.facebook.com; secure
121
- X-Fb-Debug:
122
- - "+T+Zyg61PIrzSH8uyxzxPAUJ6qDnUStygRBXef+Sl6eja/viNiHOnYXRHsxb9z1vrXx8JlB9Ab5bumH7iC+hmw=="
123
- Date:
124
- - Mon, 09 Jan 2017 12:06:47 GMT
125
- Connection:
126
- - keep-alive
127
- Content-Length:
128
- - '16'
129
- body:
130
- encoding: UTF-8
131
- string: '{"success":true}'
132
- http_version:
133
- recorded_at: Mon, 09 Jan 2017 12:06:47 GMT
134
- recorded_with: VCR 3.0.3