Google Ads
garf actors for Google Ads
Modifies entities via Google Ads API.
Install
Install garf-google-ads library
pip install garf-actors garf-google-ads
uv pip install garf-actors garf-google-ads
Prerequisites
- Google Ads API enabled.
google-ads.yamlfile
Actors
garf-google-ads contains a set of specific actors to modify campaigns,
ad groups and targeting criteria.
Labeler
Labeler either adds new labels to the account or assigns then to various
entities (Customer, Campaign, AdGroup, AdGroupAd, AdGroupCriterion).
To add new labels, provide new_labels variable (either as a list or
comma-separated values) to Labeler.
Important
If provider labels not found, they will be automatically created before the assignment.
Adder
Adder allows one to add new entities to Google Ads such as Keywords, Sitelinks,
Assets without actually assigning it to the campaign / ad_group /etc.
Actual variables passed to Adder varies by the type of the entity being added:
Keyword-keyword,match_typeTextasset -textVideoasset -video_id,titleSitelink-sitelink,url,description1,description2
StatusChanger
StatusChanger update the status of campaign / ad_group / keyword.
To update status pass status variable (takes one of values - ENABLE, PAUSE, DELETE)
BudgetChanger
BudgetChanger allows to increase of decrease existing campaign budget via the
following variables:
budget_change- ratio for changing budget.-0.5decreasing the budget by 50%, while0.1increases by 10%.max_delta- (optional) maximum absolute change of the budget.
Excluder
Excluder adds negative criteria (placements, keywords) to ad groups.
Workflows
garf-google-ads contains a set of built-in
workflows to simplify getting data
from Google Ads.
ad_group_performance
Workflow fetches such metrics as clicks, impressions, cost and conversions for each ad_group for the last 30 days.
Available parameters:
metricscampaign_typesstart_dateend_date
campaign_performance
Workflow fetches such metrics as clicks, impressions, cost and conversions for each campaign for the last 30 days.
Available parameters:
metricscampaign_typesstart_dateend_date
budgets
Workflow fetches allocated campaign budgets alongside such metrics as clicks, impressions, cost and conversions for the last 30 days.
Available parameters:
metricscampaign_typesstart_dateend_date
keywords
Workflow fetches ad group level keywords alongside such metrics as clicks, impressions, cost and conversions for the last 30 days.
Available parameters:
metricsstart_dateend_date
labels
Workflow fetches enabled labels available for each account.
placements
Workflow fetches ad group level placement when ads were shown alongside such metrics as clicks, impressions, cost and conversions for the last 30 days.
Available parameters:
metricsstart_dateend_datecampaign_typesplacement_types
search_terms
Workflow fetches ad group level search terms alongside such metrics as clicks, impressions, cost and conversions for the last 30 days.
Available parameters:
metricsstart_dateend_date