Google Cloud Platform
Arba is deployed to Google Cloud as a Cloud Run job.
During the installation the following artifacts are created:
- Cloud Run job (
arba) - Cloud Scheduler job (
arba-scheduler) - Bucket in Cloud Storage -
gs://PROJECT_ID/arba) - Repository in Artifact Registry -
google-marketing-solutions - Image in the repository above -
arba
Prerequisites
- Credentials for Google Ads API access which 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.
Install
-
Clone repo in Cloud Shell or on your local machine (we assume Linux with
gcloudCLI installed):git clone https://github.com/google-marketing-solutions/arba.git -
Go to the repo folder:
cd arba/ -
Put your
google-ads.yamlthere. -
Deploy
./deploy.sh
Customize
arba is deployed as a Cloud Run job with name arba.
You can customize the following options of the job.
In Google Cloud go to Cloud Run -> Jobs -> arba, click on View & edit job configuration,
scroll to Containers, Connection, Security, select Variables & Secrets and
adjust one of the following Environment variables:
BQ_DATASET- BigQuery dataset where data are saved.ACCOUNT- Google Ads account(s) or MCC(s).ADS_CONFIG- Path to google-ads.yaml on Google Cloud Storage.START_DATE- First date of performance; can be either date (i.e. '2026-01-01') or lookback (:YYYYMMDD-N, where N - number of lookback days).END_DATE- Last date of performance in the same format asSTART_DATE.MIN_COST_SHARE- Share of text ads needs to be processed by Gemini. From 0 to 100.GEMINI_API_KEY- Gemini API key.
By default arba is scheduled to run on midnight UTC.
You can change the schedule in Cloud Scheduler. Locate arba-scheduler and define your own schedule.
Upgrade
Upgrade makes new queries and dependencies available.
./upgrade.sh
Uninstall
Uninstall removes Arba Cloud Storage bucket, docker image, Cloud Run Job and Cloud Scheduler only. You need to remove BigQuery dataset manually.
./uninstall.sh