facebook-python-business-sdk icon indicating copy to clipboard operation
facebook-python-business-sdk copied to clipboard

Get account from config file in custom_audience_utils.py is incorrect

Open ghost opened this issue 11 years ago • 2 comments

Should genereate account like this: my_account = AdAccount('act_' + config['app_act_id'])

Otherwise, it is not working. Because, according to the link, https://developers.facebook.com/docs/marketing-api/custom-audience-targeting/v2.3#examples

curl request with parameter: act_<AD_ACCOUNT_ID>

ghost avatar Apr 20 '15 03:04 ghost

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

ghost avatar Aug 04 '15 18:08 ghost

The 'act_id' field in config.json file should be set as 'act_<ACCOUNT_ID>'. If this is in place then the my_account generated should be appropriate. Checkout the config.json.example here -https://github.com/facebook/facebook-python-ads-sdk/blob/master/config.json.example for how to set the config properly

rituparnamukherjee avatar Sep 03 '15 21:09 rituparnamukherjee