{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk/issues/61","labels_url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk/issues/61/comments","events_url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk/issues/61/events","html_url":"https://github.com/facebook/facebook-python-ads-sdk/issues/61","id":76119065,"number":61,"title":"Batch `Service temporarily unavailable` error for creation of creative with page post inline","user":{"login":"m-vdb","id":1931615,"avatar_url":"https://avatars.githubusercontent.com/u/1931615?v=3","gravatar_id":"","url":"https://api.github.com/users/m-vdb","html_url":"https://github.com/m-vdb","followers_url":"https://api.github.com/users/m-vdb/followers","following_url":"https://api.github.com/users/m-vdb/following{/other_user}","gists_url":"https://api.github.com/users/m-vdb/gists{/gist_id}","starred_url":"https://api.github.com/users/m-vdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-vdb/subscriptions","organizations_url":"https://api.github.com/users/m-vdb/orgs","repos_url":"https://api.github.com/users/m-vdb/repos","events_url":"https://api.github.com/users/m-vdb/events{/privacy}","received_events_url":"https://api.github.com/users/m-vdb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-13T20:48:25Z","updated_at":"2016-01-11T18:04:29Z","closed_at":null,"body":"I'm trying to create several creatives using [page post inline|]. Here is how I create the creative:\r\n```\r\ndef create_creative(batch, ...):\r\n    params[AdCreative.Field.object_story_spec] = {\r\n            \"page_id\": page_id,\r\n            \"link_data\": {\r\n                \"message\": \"<name>\",\r\n                \"name\": \"<name>\",\r\n                \"picture\": \"<picture-url>\",\r\n                \"description\": \"<description>\",\r\n                \"link\": \"<post-link>\"\r\n            }\r\n        }\r\n    creative = AdCreative()\r\n    creative.remote_create(params=params, batch=batch)\r\n    return creative\r\n```\r\nAnd then I do the following:\r\n````\r\nbatch = api.new_batch()\r\ncreative1 = create_creative(batch, **data)\r\ncreative2 = create_creative(batch, **data)\r\ncreative3 = create_creative(batch, **data)\r\ncreative4 = create_creative(batch, **data)\r\ncreative5 = create_creative(batch, **data)\r\nbatch.execute()\r\n````\r\nThe result is the following:\r\n- 4 creatives are created properly (1, 2, 3 and 5)\r\n- the 4th one got this error:\r\n```\r\nfacebookads.exceptions.FacebookRequestError(u'Call was not successful \\nRequest:\\n\\t{\\'body\\': \\'<the body>', \\'method\\': \\'POST\\', \\'relative_url\\': \\'act_104145169778295/adcreatives\\'}\\nResponse:\\n\\tHTTP Status: 500\\n\\tHeaders:[{u\\'name\\': u\\'Access-Control-Allow-Origin\\', u\\'value\\': u\\'*\\'}, {u\\'name\\': u\\'Vary\\', u\\'value\\': u\\'Accept-Encoding\\'}, {u\\'name\\': u\\'Pragma\\', u\\'value\\': u\\'no-cache\\'}, {u\\'name\\': u\\'Cache-Control\\', u\\'value\\': u\\'no-store\\'}, {u\\'name\\': u\\'Content-Type\\', u\\'value\\': u\\'text/javascript; charset=UTF-8\\'}, {u\\'name\\': u\\'Facebook-API-Version\\', u\\'value\\': u\\'v2.3\\'}, {u\\'name\\': u\\'WWW-Authenticate\\', u\\'value\\': u\\'OAuth \"Facebook Platform\" \"invalid_request\" \"Service temporarily unavailable\"\\'}, {u\\'name\\': u\\'Expires\\', u\\'value\\': u\\'Sat, 01 Jan 2000 00:00:00 GMT\\'}]\\n\\tBody: {\"error\":{\"message\":\"Service temporarily unavailable\",\"type\":\"FacebookApiException\",\"is_transient\":false,\"code\":2,\"error_subcode\":1487172,\"error_user_title\":\"Could not save creative\",\"error_user_msg\":\"Could not save creative\"}}\\n')\r\n```\r\n\r\nIt's very strange. I'm sure it's not a pb of the SDK itself, but are you aware of any limitation for creative creation?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk/issues/comments/170636201","html_url":"https://github.com/facebook/facebook-python-ads-sdk/issues/61#issuecomment-170636201","issue_url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk/issues/61","id":170636201,"user":{"login":"m-vdb","id":1931615,"avatar_url":"https://avatars.githubusercontent.com/u/1931615?v=3","gravatar_id":"","url":"https://api.github.com/users/m-vdb","html_url":"https://github.com/m-vdb","followers_url":"https://api.github.com/users/m-vdb/followers","following_url":"https://api.github.com/users/m-vdb/following{/other_user}","gists_url":"https://api.github.com/users/m-vdb/gists{/gist_id}","starred_url":"https://api.github.com/users/m-vdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-vdb/subscriptions","organizations_url":"https://api.github.com/users/m-vdb/orgs","repos_url":"https://api.github.com/users/m-vdb/repos","events_url":"https://api.github.com/users/m-vdb/events{/privacy}","received_events_url":"https://api.github.com/users/m-vdb/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T18:04:29Z","updated_at":"2016-01-11T18:04:29Z","body":"yes from time to time. Looks like your API team is [not eager to fix it](https://developers.facebook.com/bugs/631360980334887/). An adapted response explaining it's a transient issue is really needed IMHO."}}