{"action":"created","issue":{"url":"https://api.github.com/repos/cardcorp/fbRads/issues/23","repository_url":"https://api.github.com/repos/cardcorp/fbRads","labels_url":"https://api.github.com/repos/cardcorp/fbRads/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/cardcorp/fbRads/issues/23/comments","events_url":"https://api.github.com/repos/cardcorp/fbRads/issues/23/events","html_url":"https://github.com/cardcorp/fbRads/issues/23","id":166355969,"number":23,"title":"fbad_get_search: using type='adTargetingCategory' to get ID for 'behaviors'","user":{"login":"Curtis-Cochran","id":11353714,"avatar_url":"https://avatars.githubusercontent.com/u/11353714?v=3","gravatar_id":"","url":"https://api.github.com/users/Curtis-Cochran","html_url":"https://github.com/Curtis-Cochran","followers_url":"https://api.github.com/users/Curtis-Cochran/followers","following_url":"https://api.github.com/users/Curtis-Cochran/following{/other_user}","gists_url":"https://api.github.com/users/Curtis-Cochran/gists{/gist_id}","starred_url":"https://api.github.com/users/Curtis-Cochran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Curtis-Cochran/subscriptions","organizations_url":"https://api.github.com/users/Curtis-Cochran/orgs","repos_url":"https://api.github.com/users/Curtis-Cochran/repos","events_url":"https://api.github.com/users/Curtis-Cochran/events{/privacy}","received_events_url":"https://api.github.com/users/Curtis-Cochran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-19T15:07:51Z","updated_at":"2016-07-20T11:58:58Z","closed_at":null,"body":"Hello,\r\n\r\nI'm trying to us the fbad_get_search function to get the id of certain behaviors within Facebook API. I can do this easily for type='adinterest', but I cannot figure out the appropriate syntax nor could I find any examples that illustrate how to use the fbad_get_search function when the type='adTargetingCategory'.\r\n\r\nI've tried the following but it returns a lexical error which seems like a json parsing issue:\r\n\r\n`fb <- fbad_get_search(q='Small business owners',type = 'adTargetingCategory',class='behaviors')`\r\n\r\nIt returns this error:\r\n\r\n`Error: lexical error: invalid character inside string.\r\n          mail (icloud, me, mac domains) \",\"audience_size\":3796666,\"re\r\n                     (right here) ------^`\r\n\r\nIs this possible currently within fbRads? I can see that it's possible when reviewing the Facebook Marketing API documentation, it's just not clear how that translates to the fbRads functions.\r\n\r\nThanks,\r\n\r\nCurtis"},"comment":{"url":"https://api.github.com/repos/cardcorp/fbRads/issues/comments/233929023","html_url":"https://github.com/cardcorp/fbRads/issues/23#issuecomment-233929023","issue_url":"https://api.github.com/repos/cardcorp/fbRads/issues/23","id":233929023,"user":{"login":"Curtis-Cochran","id":11353714,"avatar_url":"https://avatars.githubusercontent.com/u/11353714?v=3","gravatar_id":"","url":"https://api.github.com/users/Curtis-Cochran","html_url":"https://github.com/Curtis-Cochran","followers_url":"https://api.github.com/users/Curtis-Cochran/followers","following_url":"https://api.github.com/users/Curtis-Cochran/following{/other_user}","gists_url":"https://api.github.com/users/Curtis-Cochran/gists{/gist_id}","starred_url":"https://api.github.com/users/Curtis-Cochran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Curtis-Cochran/subscriptions","organizations_url":"https://api.github.com/users/Curtis-Cochran/orgs","repos_url":"https://api.github.com/users/Curtis-Cochran/repos","events_url":"https://api.github.com/users/Curtis-Cochran/events{/privacy}","received_events_url":"https://api.github.com/users/Curtis-Cochran/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T11:58:58Z","updated_at":"2016-07-20T11:58:58Z","body":"Update: It looks like there was hard return \\n in some parts of the json file returned from the fbad_get_search query which was causing the fromJSON function to fail.  \r\n\r\nTo correct it, I ran the fbad_request manually, removed the \\n from the file and then called fromJSON. That seems to have corrected the issue.  Is there are more native way to handle that type of issue from with fbRads?\r\n\r\nThanks,\r\n\r\nCurtis"}}
{"actor":{"display_login":"Curtis-Cochran"}}