---
title: "Discussion on \"A Beginner's Guide to Facebook Marketing API with Python\" | Hashnode"
description: "Discussion on \"A Beginner's Guide to Facebook Marketing API with Python\". Master Facebook ads using Python with this beginner's guide to Marketing API. Learn authentication, account retrieval, campaign data, and insights."
url: "https://hashnode.com/posts/a-beginners-guide-to-facebook-marketing-api-with-python/656f1541b68fb0a0cc0c94ac"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A Beginner's Guide to Facebook Marketing API with Python](https://enzircle.com/a-beginners-guide-to-facebook-marketing-api-with-python?utm_source=hashnode&utm_medium=feed)

Master Facebook ads using Python with this beginner's guide to Marketing API. Learn authentication, account retrieval, campaign data, and insights.

Dec 5, 2023 · 5 min read · enzircle.com  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#facebookads](https://hashnode.com/tag/facebookads)

## Written by

[Joash Xu](https://hashnode.com/@joashxu)

@joashxu · Jakarta, Indonesia

  
[View profile](https://hashnode.com/@joashxu)

## Responses 1

Markdown supported · ⌘↵ to post

[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
