---
title: "Comment by Nathaniel Bradley on \"A Beginner's Guide to Facebook Marketing API with Python\" | Hashnode"
description: "I tried this but the code to grab the business account Ad Accounts is no longer valid. I used \"from facebook_business.adobjects.business import Business\" Then g"
url: "https://hashnode.com/posts/a-beginners-guide-to-facebook-marketing-api-with-python/656f1541b68fb0a0cc0c94ac/comment/66d577bda91411deade8ebfe"
---

[Discussion](https://hashnode.com/posts/a-beginners-guide-to-facebook-marketing-api-with-python/656f1541b68fb0a0cc0c94ac)

Comment [A Beginner's Guide to Facebook Marketing API with Python](https://hashnode.com/posts/a-beginners-guide-to-facebook-marketing-api-with-python/656f1541b68fb0a0cc0c94ac)

[Nathaniel Bradley](https://hashnode.com/@mabonat)

[Sep 2, 2024](https://hashnode.com/posts/a-beginners-guide-to-facebook-marketing-api-with-python/656f1541b68fb0a0cc0c94ac/comment/66d577bda91411deade8ebfe)

I tried this but the code to grab the business account Ad Accounts is no longer valid.

I used "from facebook\_business.adobjects.business import Business"

Then get\_clinet\_ad\_accounts instead of get\_authorized\_ad\_accounts
