Local Installation
Prerequisites
- Credentials for Google Ads API access which are stored in
google-ads.yaml. See details here. - A Google Cloud project with billing account attached.
- Vertex AI API enabled.
- Environment variables specified:
- GEMINI_API_KEY to access Google Gemini.
-
Service account created and service account key downloaded in order to write data to BigQuery.
- Expose
GOOGLE_APPLICATION_CREDENTIALSvariable that points to this service account JSON file.
Note
If authenticating via service account is not possible you can authenticate with the following command:
You can grabgcloud auth application-default loginapplication_default_credentials.jsonfile from$HOME/.config/gcloudfolder. - Expose
Install
pip install -r requirements.txt
Run
- Provide default values in
workflow-config.yamlbq_project- name of Google Cloud Project.google_ads_account- ID(s) of Google Ads accounts.
Note
Optionally you can provide other parameters:
bq_dataset- name of BigQuery dataset where the AdRank Booster data to be stored (by defaultarba).google_ads_config- path togoogle-ads.yamlfile (by default expected in your home directory).
- Run the following command to start generating data:
garf -w workflow-config.yaml