{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/php-graph-sdk/issues/1057","repository_url":"https://api.github.com/repos/facebook/php-graph-sdk","labels_url":"https://api.github.com/repos/facebook/php-graph-sdk/issues/1057/labels{/name}","comments_url":"https://api.github.com/repos/facebook/php-graph-sdk/issues/1057/comments","events_url":"https://api.github.com/repos/facebook/php-graph-sdk/issues/1057/events","html_url":"https://github.com/facebook/php-graph-sdk/issues/1057","id":358587230,"node_id":"MDU6SXNzdWUzNTg1ODcyMzA=","number":1057,"title":"Wrong Insight Data?","user":{"login":"gelinger777","id":184276,"node_id":"MDQ6VXNlcjE4NDI3Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/184276?v=4","gravatar_id":"","url":"https://api.github.com/users/gelinger777","html_url":"https://github.com/gelinger777","followers_url":"https://api.github.com/users/gelinger777/followers","following_url":"https://api.github.com/users/gelinger777/following{/other_user}","gists_url":"https://api.github.com/users/gelinger777/gists{/gist_id}","starred_url":"https://api.github.com/users/gelinger777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gelinger777/subscriptions","organizations_url":"https://api.github.com/users/gelinger777/orgs","repos_url":"https://api.github.com/users/gelinger777/repos","events_url":"https://api.github.com/users/gelinger777/events{/privacy}","received_events_url":"https://api.github.com/users/gelinger777/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-10T11:47:28Z","updated_at":"2018-09-29T08:02:02Z","closed_at":"2018-09-29T08:02:02Z","author_association":"NONE","body":"\r\nI am trying to get our ad account spend by country for specific day(yesterday) . But from the API I am getting totally wrong numbers than in the ad acount dashboard. What could be the reason?\r\n\r\n```\r\n$fields = array(\r\n                    'spend', 'account_currency'\r\n            );\r\n $params = array(\r\n                'breakdowns' => array('country'),\r\n            );\r\n\r\n                $params['date_preset'] = 'yesterday';\r\n\r\n\r\n                $stats = (new AdAccount('act_'.$account_id))->getInsights(\r\n                    $fields,\r\n                    $params\r\n                )->getResponse()->getContent();\r\n```\r\nOur Spending Yesterday was more than 1,299.57Euro, but I get only back 103 Here what it gives back numbers per country\r\n\r\n```\r\nUS-2018-09-09's --------------------> 97.083288 EUR SKIP_EXISTS \r\nGU-2018-09-09's --------------------> 0.019999 EUR SKIP_EXISTS \r\nYE-2018-09-09's --------------------> 0.009999 EUR SKIP_EXISTS \r\nZM-2018-09-09's --------------------> 0.019999 EUR SKIP_EXISTS \r\nIM-2018-09-09's --------------------> 0.789945 EUR SKIP_EXISTS \r\nKH-2018-09-09's --------------------> 0.199986 EUR SKIP_EXISTS \r\nAW-2018-09-09's --------------------> 0.009999 EUR SKIP_EXISTS \r\nAF-2018-09-09's --------------------> 0.019999 EUR SKIP_EXISTS \r\nBM-2018-09-09's --------------------> 0.009999 EUR SKIP_EXISTS \r\nAM-2018-09-09's --------------------> 0.759947 EUR SKIP_EXISTS \r\nBY-2018-09-09's --------------------> 1.309909 EUR SKIP_EXISTS \r\nAG-2018-09-09's --------------------> 0.019999 EUR SKIP_EXISTS \r\nGG-2018-09-09's --------------------> 0.549962 EUR SKIP_EXISTS \r\nFO-2018-09-09's --------------------> 0.889938 EUR SKIP_EXISTS \r\nAD-2018-09-09's --------------------> 0.489966 EUR SKIP_EXISTS \r\nJE-2018-09-09's --------------------> 0.709951 EUR SKIP_EXISTS \r\nFJ-2018-09-09's --------------------> 0.009999 EUR SKIP_EXISTS\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/php-graph-sdk/issues/comments/425625740","html_url":"https://github.com/facebook/php-graph-sdk/issues/1057#issuecomment-425625740","issue_url":"https://api.github.com/repos/facebook/php-graph-sdk/issues/1057","id":425625740,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTYyNTc0MA==","user":{"login":"yguedidi","id":1480128,"node_id":"MDQ6VXNlcjE0ODAxMjg=","avatar_url":"https://avatars3.githubusercontent.com/u/1480128?v=4","gravatar_id":"","url":"https://api.github.com/users/yguedidi","html_url":"https://github.com/yguedidi","followers_url":"https://api.github.com/users/yguedidi/followers","following_url":"https://api.github.com/users/yguedidi/following{/other_user}","gists_url":"https://api.github.com/users/yguedidi/gists{/gist_id}","starred_url":"https://api.github.com/users/yguedidi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yguedidi/subscriptions","organizations_url":"https://api.github.com/users/yguedidi/orgs","repos_url":"https://api.github.com/users/yguedidi/repos","events_url":"https://api.github.com/users/yguedidi/events{/privacy}","received_events_url":"https://api.github.com/users/yguedidi/received_events","type":"User","site_admin":false},"created_at":"2018-09-29T08:02:02Z","updated_at":"2018-09-29T08:02:02Z","author_association":"COLLABORATOR","body":"Thank you for posting your issue here!\r\nBut this repository is about the Graph API PHP SDK and reported issues must be related to it, like SDK code bugs, documentation mistakes or new feature suggestions.\r\nFor issues with Graph API itself, you can report a bug in the [Facebook issue tracker](https://developers.facebook.com/bugs/).\r\nFor help about how to use the SDK, [StackOverflow](https://stackoverflow.com) is a better place to get answers. Don't forget to tag your question with the [facebook-php-sdk](https://stackoverflow.com/questions/tagged/facebook-php-sdk) tag.\r\nSo I'm closing this, and hope to see you soon contributing to the SDK. :)"}}
{"actor":{"display_login":"yguedidi"}}