# Clone the repository
git clone https://github.com/<org>/meta-ads-knowledge.git
cd meta-ads-knowledge
# Create a virtual environment (recommended)
python -m venv .venv
source .venv/bin/activate # Linux/macOS
# .venv\Scripts\activate # Windows
# Install dependencies + test dependencies
pip install -r requirements.txt
pip install pytestpytestAll tests run without API tokens and without network access. If a test requires external services, that's a bug in the test.
- Python 3.9+, no external linters (no CI yet).
- Comments and docstrings — in Russian.
- User-facing error messages — in Russian.
- Imports: standard library, then third-party, then local.
- No secrets in code: tokens, keys, passwords — only via environment variables.
- Fork the repository.
- Create a branch off
main:git checkout -b fix/description. - Make your changes and make sure
pytestpasses. - Open a Pull Request describing what changed and why.
- Add tests for
generate_creative.pyandhost_image.py(with mocks). - Add CI (GitHub Actions: lint + pytest).
- Translate the documentation to English (or make it bilingual).
- Extend
_ACTION_ALIASESinmeta_client.pywith new event types. - Add a
--dry-runmode to the scripts that talk to the API.