From SQLAlchemy
The CData Python Connector for Facebook Ads includes a Dialect class that enables integration with SQLAlchemy. The following sections detail various aspects of this integration:
Connecting from SQLAlchemy
See Connecting to construct a URL with which SQLAlchemy loads and uses the appropriate connector automatically.
Reflecting metadata with SQLAlchemy
Reflecting Metadata shows how to model Facebook Ads tables with mapped classes.
Querying Data from SQLAlchemy
Querying Data demonstrates how to use mapped classes to query the associated tables.