alexx876

Untitled

Jan 11th, 2019
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.40 KB | None | 0 0
  1. ==== Query
  2. curl -i -X GET \
  3. "https://graph.facebook.com/v3.2/act_1998537763541015/ads?fields=insights%7Bspend%2Cctr%2Cresults%2Ccost_per_result%2Creach%2Cimpressions%2Cclicks%2Ccost_per_unique_click%2Crelevance_score%2Cad_name%7D%2Cadcreatives%7Bthumbnail_url%7D%2Cstatus.in(%5B'ACTIVE'%5D)&access_token=<access token sanitized>"
  4. ==== Access Token Info
  5. {
  6. "perms": [
  7. "user_friends",
  8. "publish_actions",
  9. "read_insights",
  10. "whitelisted_offline_access",
  11. "manage_pages",
  12. "pages_show_list",
  13. "publish_pages",
  14. "ads_management",
  15. "ads_read",
  16. "business_management",
  17. "public_profile",
  18. "basic_info"
  19. ],
  20. "user_id": 100024080914884,
  21. "app_id": 119211728144504
  22. }
  23. ==== Parameters
  24. - Query Parameters
  25.  
  26.  
  27. {
  28. "fields": "insights{spend,ctr,results,cost_per_result,reach,impressions,clicks,cost_per_unique_click,relevance_score,ad_name},adcreatives{thumbnail_url},status.in(['ACTIVE'])"
  29. }
  30. - POST Parameters
  31.  
  32.  
  33. {}
  34. ==== Response
  35. {
  36. "data": [
  37. {
  38. "insights": {
  39. "data": [
  40. {
  41. "spend": "11314.69",
  42. "ctr": "0.863314",
  43. "results": [
  44. {
  45. "indicator": "actions:offsite_conversion.custom.268574000666237",
  46. "values": [
  47. {
  48. "value": "75",
  49. "attribution_windows": [
  50. "default"
  51. ]
  52. }
  53. ]
  54. }
  55. ],
  56. "cost_per_result": [
  57. {
  58. "indicator": "actions:offsite_conversion.custom.268574000666237",
  59. "values": [
  60. {
  61. "value": "150.86253333333",
  62. "attribution_windows": [
  63. "default"
  64. ]
  65. }
  66. ]
  67. }
  68. ],
  69. "reach": "243967",
  70. "impressions": "258191",
  71. "clicks": "2229",
  72. "cost_per_unique_click": "5.183092",
  73. "relevance_score": {
  74. "score": "9",
  75. "status": "OK"
  76. },
  77. "ad_name": "Работающий 2",
  78. "date_start": "2018-12-12",
  79. "date_stop": "2019-01-10"
  80. }
  81. ],
  82. "paging": {
  83. "cursors": {
  84. "before": "MAZDZD",
  85. "after": "MAZDZD"
  86. }
  87. }
  88. },
  89. "adcreatives": {
  90. "data": [
  91. {
  92. "thumbnail_url": "https://external.xx.fbcdn.net/safe_image.php?d=AQAB7hnQifROxdyX&w=64&h=64&url=https%3A%2F%2Fscontent.xx.fbcdn.net%2Fv%2Ft15.5256-10%2F48747566_1420972164705123_3000032306908889088_n.jpg%3F_nc_ht%3Dscontent.xx%26oh%3D9ac258b6d650035b23b0c5f73cb66f0a%26oe%3D5CD9E38D&cfs=1&_nc_hash=AQB6M7-6BsXBwS3T",
  93. "id": "23843099936780239"
  94. }
  95. ]
  96. },
  97. "status": "ACTIVE",
  98. "id": "23843099936570239"
  99. },
  100. {
  101. "insights": {
  102. "data": [
  103. {
  104. "spend": "50257.59",
  105. "ctr": "1.134208",
  106. "results": [
  107. {
  108. "indicator": "actions:offsite_conversion.custom.268574000666237",
  109. "values": [
  110. {
  111. "value": "391",
  112. "attribution_windows": [
  113. "default"
  114. ]
  115. }
  116. ]
  117. }
  118. ],
  119. "cost_per_result": [
  120. {
  121. "indicator": "actions:offsite_conversion.custom.268574000666237",
  122. "values": [
  123. {
  124. "value": "128.53603580563",
  125. "attribution_windows": [
  126. "default"
  127. ]
  128. }
  129. ]
  130. }
  131. ],
  132. "reach": "587902",
  133. "impressions": "912002",
  134. "clicks": "10344",
  135. "cost_per_unique_click": "5.29808",
  136. "relevance_score": {
  137. "score": "10",
  138. "status": "OK"
  139. },
  140. "ad_name": "Работающий",
  141. "date_start": "2018-12-12",
  142. "date_stop": "2019-01-10"
  143. }
  144. ],
  145. "paging": {
  146. "cursors": {
  147. "before": "MAZDZD",
  148. "after": "MAZDZD"
  149. }
  150. }
  151. },
  152. "adcreatives": {
  153. "data": [
  154. {
  155. "thumbnail_url": "https://external.xx.fbcdn.net/safe_image.php?d=AQAplNFSvugVv6YK&w=64&h=64&url=https%3A%2F%2Fscontent.xx.fbcdn.net%2Fv%2Ft15.5256-10%2F44781472_1380479698754370_7124351245044678656_n.jpg%3F_nc_ht%3Dscontent.xx%26oh%3D78566d99029bfcf9fc943850986c8dd8%26oe%3D5CC1E8DD&cfs=1&_nc_hash=AQAC9zeTSnk70Bor",
  156. "id": "23843018595340239"
  157. }
  158. ]
  159. },
  160. "status": "ACTIVE",
  161. "id": "23843018595140239"
  162. },
  163. {
  164. "insights": {
  165. "data": [
  166. {
  167. "spend": "0",
  168. "results": [
  169. {
  170. "indicator": "actions:offsite_conversion.custom.268574000666237"
  171. }
  172. ],
  173. "cost_per_result": [
  174. {
  175. "indicator": "actions:offsite_conversion.custom.268574000666237"
  176. }
  177. ],
  178. "reach": "0",
  179. "impressions": "0",
  180. "clicks": "0",
  181. "relevance_score": {
  182. "status": "NOT_ENOUGH_IMPRESSIONS"
  183. },
  184. "ad_name": "1",
  185. "date_start": "2018-12-12",
  186. "date_stop": "2019-01-10"
  187. }
  188. ],
  189. "paging": {
  190. "cursors": {
  191. "before": "MAZDZD",
  192. "after": "MAZDZD"
  193. }
  194. }
  195. },
  196. "adcreatives": {
  197. "data": [
  198. {
  199. "thumbnail_url": "https://external.xx.fbcdn.net/safe_image.php?d=AQA4ktd9eTzILZfV&w=64&h=64&url=https%3A%2F%2Fscontent.xx.fbcdn.net%2Fv%2Ft15.5256-10%2F46118714_350705582178294_3189927504148168704_n.jpg%3F_nc_ht%3Dscontent.xx%26oh%3D54294735ff634b875a548fe48cf600be%26oe%3D5CC8CC5D&cfs=1&_nc_hash=AQAw-Y1B4LgyNKUg",
  200. "id": "23843058448790239"
  201. }
  202. ]
  203. },
  204. "status": "ACTIVE",
  205. "id": "23843058448540239"
  206. },
  207. {
  208. "insights": {
  209. "data": [
  210. {
  211. "spend": "729.05",
  212. "ctr": "1.515848",
  213. "results": [
  214. {
  215. "indicator": "actions:offsite_conversion.custom.268574000666237",
  216. "values": [
  217. {
  218. "value": "2",
  219. "attribution_windows": [
  220. "default"
  221. ]
  222. }
  223. ]
  224. }
  225. ],
  226. "cost_per_result": [
  227. {
  228. "indicator": "actions:offsite_conversion.custom.268574000666237",
  229. "values": [
  230. {
  231. "value": "364.525",
  232. "attribution_windows": [
  233. "default"
  234. ]
  235. }
  236. ]
  237. }
  238. ],
  239. "reach": "4306",
  240. "impressions": "4354",
  241. "clicks": "66",
  242. "cost_per_unique_click": "11.046212",
  243. "relevance_score": {
  244. "score": "9",
  245. "status": "OK"
  246. },
  247. "ad_name": "2",
  248. "date_start": "2018-12-12",
  249. "date_stop": "2019-01-10"
  250. }
  251. ],
  252. "paging": {
  253. "cursors": {
  254. "before": "MAZDZD",
  255. "after": "MAZDZD"
  256. }
  257. }
  258. },
  259. "adcreatives": {
  260. "data": [
  261. {
  262. "thumbnail_url": "https://external.xx.fbcdn.net/safe_image.php?d=AQBEqP8mVCFfqKQd&w=64&h=64&url=https%3A%2F%2Fscontent.xx.fbcdn.net%2Fv%2Ft15.5256-10%2F47783188_350707062178146_4730104683459248128_n.jpg%3F_nc_ht%3Dscontent.xx%26oh%3D52f298b96bead9c7c08ed11dbe4660f6%26oe%3D5CCF8851&cfs=1&_nc_hash=AQArL5-jk3sHpuTW",
  263. "id": "23843058451760239"
  264. }
  265. ]
  266. },
  267. "status": "ACTIVE",
  268. "id": "23843058449430239"
  269. },
  270. {
  271. "insights": {
  272. "data": [
  273. {
  274. "spend": "0",
  275. "results": [
  276. {
  277. "indicator": "actions:offsite_conversion.custom.268574000666237"
  278. }
  279. ],
  280. "cost_per_result": [
  281. {
  282. "indicator": "actions:offsite_conversion.custom.268574000666237"
  283. }
  284. ],
  285. "reach": "0",
  286. "impressions": "0",
  287. "clicks": "0",
  288. "relevance_score": {
  289. "status": "NOT_ENOUGH_IMPRESSIONS"
  290. },
  291. "ad_name": "3",
  292. "date_start": "2018-12-12",
  293. "date_stop": "2019-01-10"
  294. }
  295. ],
  296. "paging": {
  297. "cursors": {
  298. "before": "MAZDZD",
  299. "after": "MAZDZD"
  300. }
  301. }
  302. },
  303. "adcreatives": {
  304. "data": [
  305. {
  306. "thumbnail_url": "https://external.xx.fbcdn.net/safe_image.php?d=AQAIFUJDxYzgWmro&w=64&h=64&url=https%3A%2F%2Fscontent.xx.fbcdn.net%2Fv%2Ft15.5256-10%2F47779681_350707045511481_4057701452754190336_n.jpg%3F_nc_ht%3Dscontent.xx%26oh%3D2a5bd498430a46306d799c9b1d084850%26oe%3D5CC02ED4&cfs=1&_nc_hash=AQAZ-p4mTEGXOFBu",
  307. "id": "23843058451600239"
  308. }
  309. ]
  310. },
  311. "status": "ACTIVE",
  312. "id": "23843058449410239"
  313. },
  314. {
  315. "insights": {
  316. "data": [
  317. {
  318. "spend": "0",
  319. "results": [
  320. {
  321. "indicator": "actions:offsite_conversion.custom.268574000666237"
  322. }
  323. ],
  324. "cost_per_result": [
  325. {
  326. "indicator": "actions:offsite_conversion.custom.268574000666237"
  327. }
  328. ],
  329. "reach": "0",
  330. "impressions": "0",
  331. "clicks": "0",
  332. "relevance_score": {
  333. "status": "NOT_ENOUGH_IMPRESSIONS"
  334. },
  335. "ad_name": "4",
  336. "date_start": "2018-12-12",
  337. "date_stop": "2019-01-10"
  338. }
  339. ],
  340. "paging": {
  341. "cursors": {
  342. "before": "MAZDZD",
  343. "after": "MAZDZD"
  344. }
  345. }
  346. },
  347. "adcreatives": {
  348. "data": [
  349. {
  350. "thumbnail_url": "https://external.xx.fbcdn.net/safe_image.php?d=AQB3KNBZtDncjksf&w=64&h=64&url=https%3A%2F%2Fscontent.xx.fbcdn.net%2Fv%2Ft15.5256-10%2F47475822_350706852178167_7726065636249436160_n.jpg%3F_nc_ht%3Dscontent.xx%26oh%3Dd5db8374bd5e8b76b1a6c21a8fdf95a1%26oe%3D5CCF4E3D&cfs=1&_nc_hash=AQD4fPRkDUAvmEjB",
  351. "id": "23843058450640239"
  352. }
  353. ]
  354. },
  355. "status": "ACTIVE",
  356. "id": "23843058449460239"
  357. },
  358. {
  359. "insights": {
  360. "data": [
  361. {
  362. "spend": "0",
  363. "results": [
  364. {
  365. "indicator": "actions:offsite_conversion.custom.268574000666237"
  366. }
  367. ],
  368. "cost_per_result": [
  369. {
  370. "indicator": "actions:offsite_conversion.custom.268574000666237"
  371. }
  372. ],
  373. "reach": "0",
  374. "impressions": "0",
  375. "clicks": "0",
  376. "relevance_score": {
  377. "status": "NOT_ENOUGH_IMPRESSIONS"
  378. },
  379. "ad_name": "Первый пост",
  380. "date_start": "2018-12-12",
  381. "date_stop": "2019-01-10"
  382. }
  383. ],
  384. "paging": {
  385. "cursors": {
  386. "before": "MAZDZD",
  387. "after": "MAZDZD"
  388. }
  389. }
  390. },
  391. "adcreatives": {
  392. "data": [
  393. {
  394. "thumbnail_url": "https://external.xx.fbcdn.net/safe_image.php?d=AQBL8FAPyER5dpFQ&w=64&h=64&url=https%3A%2F%2Fscontent.xx.fbcdn.net%2Fv%2Ft15.5256-10%2F43595899_1361779290624411_4657400589469089792_n.jpg%3F_nc_ht%3Dscontent.xx%26oh%3D1044ab663ec3685cac4d4aa69a540a9f%26oe%3D5CC6D161&cfs=1&_nc_hash=AQCI7Hn2LcZeKchm",
  395. "id": "23842979961500239"
  396. }
  397. ]
  398. },
  399. "status": "PAUSED",
  400. "id": "23842979961210239"
  401. },
  402. {
  403. "insights": {
  404. "data": [
  405. {
  406. "spend": "0",
  407. "results": [
  408. {
  409. "indicator": "actions:offsite_conversion.custom.268574000666237"
  410. }
  411. ],
  412. "cost_per_result": [
  413. {
  414. "indicator": "actions:offsite_conversion.custom.268574000666237"
  415. }
  416. ],
  417. "reach": "0",
  418. "impressions": "0",
  419. "clicks": "0",
  420. "relevance_score": {
  421. "status": "NOT_ENOUGH_IMPRESSIONS"
  422. },
  423. "ad_name": "Первый пост",
  424. "date_start": "2018-12-12",
  425. "date_stop": "2019-01-10"
  426. }
  427. ],
  428. "paging": {
  429. "cursors": {
  430. "before": "MAZDZD",
  431. "after": "MAZDZD"
  432. }
  433. }
  434. },
  435. "adcreatives": {
  436. "data": [
  437. {
  438. "thumbnail_url": "https://external.xx.fbcdn.net/safe_image.php?d=AQB4CnPpnY8P3FEB&w=64&h=64&url=https%3A%2F%2Fscontent.xx.fbcdn.net%2Fv%2Ft15.5256-10%2F41555127_1370896493046024_2997227289537675264_n.jpg%3F_nc_ht%3Dscontent.xx%26oh%3D13b60d7e030fe31358e8b6bcf49cd380%26oe%3D5CC027BE&cfs=1&_nc_hash=AQAfvezqYG9RSSgy",
  439. "id": "23842998721170239"
  440. }
  441. ]
  442. },
  443. "status": "PAUSED",
  444. "id": "23842998720870239"
  445. },
  446. {
  447. "insights": {
  448. "data": [
  449. {
  450. "spend": "0",
  451. "results": [
  452. {
  453. "indicator": "actions:offsite_conversion.custom.268574000666237"
  454. }
  455. ],
  456. "cost_per_result": [
  457. {
  458. "indicator": "actions:offsite_conversion.custom.268574000666237"
  459. }
  460. ],
  461. "reach": "0",
  462. "impressions": "0",
  463. "clicks": "0",
  464. "relevance_score": {
  465. "status": "NOT_ENOUGH_IMPRESSIONS"
  466. },
  467. "ad_name": "Первый пост",
  468. "date_start": "2018-12-12",
  469. "date_stop": "2019-01-10"
  470. }
  471. ],
  472. "paging": {
  473. "cursors": {
  474. "before": "MAZDZD",
  475. "after": "MAZDZD"
  476. }
  477. }
  478. },
  479. "adcreatives": {
  480. "data": [
  481. {
  482. "thumbnail_url": "https://external.xx.fbcdn.net/safe_image.php?d=AQDrkDO-NCarH6bx&w=64&h=64&url=https%3A%2F%2Fscontent.xx.fbcdn.net%2Fv%2Ft15.5256-10%2F43162971_1371442199658120_7266908721496719360_n.jpg%3F_nc_ht%3Dscontent.xx%26oh%3D0b2b15c9ac166251a4689fbf5f3c07c4%26oe%3D5CD9A1BA&cfs=1&_nc_hash=AQDqYOBmFN4uj758",
  483. "id": "23843000274520239"
  484. }
  485. ]
  486. },
  487. "status": "PAUSED",
  488. "id": "23843000273190239"
  489. },
  490. {
  491. "insights": {
  492. "data": [
  493. {
  494. "spend": "0",
  495. "results": [
  496. {
  497. "indicator": "actions:offsite_conversion.custom.268574000666237"
  498. }
  499. ],
  500. "cost_per_result": [
  501. {
  502. "indicator": "actions:offsite_conversion.custom.268574000666237"
  503. }
  504. ],
  505. "reach": "0",
  506. "impressions": "0",
  507. "clicks": "0",
  508. "relevance_score": {
  509. "status": "NOT_ENOUGH_IMPRESSIONS"
  510. },
  511. "ad_name": "Первый пост",
  512. "date_start": "2018-12-12",
  513. "date_stop": "2019-01-10"
  514. }
  515. ],
  516. "paging": {
  517. "cursors": {
  518. "before": "MAZDZD",
  519. "after": "MAZDZD"
  520. }
  521. }
  522. },
  523. "adcreatives": {
  524. "data": [
  525. {
  526. "thumbnail_url": "https://external.xx.fbcdn.net/safe_image.php?d=AQADCyoe1WxLjCVy&w=64&h=64&url=https%3A%2F%2Fscontent.xx.fbcdn.net%2Fv%2Ft15.5256-10%2F43785111_1370895829712757_2636302126589935616_n.jpg%3F_nc_ht%3Dscontent.xx%26oh%3D7a4610b88f1023ed8a88bc07f3bf7007%26oe%3D5CC5E193&cfs=1&_nc_hash=AQCzpllAulYOaZiM",
  527. "id": "23842998720060239"
  528. }
  529. ]
  530. },
  531. "status": "PAUSED",
  532. "id": "23842998717960239"
  533. },
  534. {
  535. "insights": {
  536. "data": [
  537. {
  538. "spend": "0",
  539. "results": [
  540. {
  541. "indicator": "actions:offsite_conversion.custom.268574000666237"
  542. }
  543. ],
  544. "cost_per_result": [
  545. {
  546. "indicator": "actions:offsite_conversion.custom.268574000666237"
  547. }
  548. ],
  549. "reach": "0",
  550. "impressions": "0",
  551. "clicks": "0",
  552. "relevance_score": {
  553. "status": "NOT_ENOUGH_IMPRESSIONS"
  554. },
  555. "ad_name": "Тимур",
  556. "date_start": "2018-12-12",
  557. "date_stop": "2019-01-10"
  558. }
  559. ],
  560. "paging": {
  561. "cursors": {
  562. "before": "MAZDZD",
  563. "after": "MAZDZD"
  564. }
  565. }
  566. },
  567. "adcreatives": {
  568. "data": [
  569. {
  570. "thumbnail_url": "https://external.xx.fbcdn.net/safe_image.php?d=AQBhAnGdaSHpWqLp&w=64&h=64&url=https%3A%2F%2Fscontent.xx.fbcdn.net%2Fv%2Ft15.5256-10%2F43510913_1373330942802579_1062514216847540224_n.jpg%3F_nc_ht%3Dscontent.xx%26oh%3D9ff7e1e7925d599c7213edefe4bd9b76%26oe%3D5CCF1C51&cfs=1&_nc_hash=AQApXXgkcIhSRA-r",
  571. "id": "23843004288250239"
  572. }
  573. ]
  574. },
  575. "status": "PAUSED",
  576. "id": "23843004287560239"
  577. }
  578. ],
  579. "paging": "--sanitized--",
  580. "__fb_trace_id__": "E2v6PSEngbF"
  581. }
  582. ==== Debug Information from Graph API Explorer
  583. - https://developers.facebook.com/tools/explorer/?method=GET&path=act_1998537763541015%2Fads%3Ffields%3Dinsights%7Bspend%2Cctr%2Cresults%2Ccost_per_result%2Creach%2Cimpressions%2Cclicks%2Ccost_per_unique_click%2Crelevance_score%2Cad_name%7D%2Cadcreatives%7Bthumbnail_url%7D%2Cstatus.in(['ACTIVE'])&version=v3.2
Advertisement
Add Comment
Please, Sign In to add comment