View source: R/gads_get_ad_groups.R
gads_get_ad_groups | R Documentation |
Get Ad Groups Dictionary From Google Ads Client Account
gads_get_ad_groups( customer_id = getOption("gads.customer.id"), fields = c("ad_group.id", "ad_group.name", "ad_group.status", "ad_group.ad_rotation_mode", "ad_group.base_ad_group", "ad_group.campaign", "campaign.id", "ad_group.display_custom_bid_dimension", "ad_group.effective_target_cpa_source", "ad_group.effective_target_roas", "ad_group.effective_target_roas_source", "ad_group.final_url_suffix", "ad_group.target_roas", "ad_group.type", "ad_group.url_custom_parameters", "ad_group.tracking_url_template", "customer.id", "customer.descriptive_name"), where = NULL, order_by = NULL, limit = NULL, parameters = NULL, login_customer_id = getOption("gads.login.customer.id"), include_resource_name = FALSE, cl = NULL, verbose = TRUE )
customer_id |
Google Ads client customer id, supports a single account id: "xxx-xxx-xxxx" or a vector of ids from the same Google Ads MCC: c("xxx-xxx-xxxx", "xxx-xxx-xxxx") |
fields |
character vector, list of report fields, all report has own fields list, for example see field list of ad group report. |
where |
Filter, for example you can filter campaigns by status |
order_by |
Sorting, character vectors of fields and sorting directions, for example |
limit |
Maximun rows in report |
parameters |
Query parameters, for example |
login_customer_id |
Google Ads manager customer id |
include_resource_name |
Get resource names fields in report |
cl |
A cluster object created by |
verbose |
Console log output |
tibble with ad group dicrionary
## Not run: # set client customer id gads_set_login_customer_id('xxx-xxx-xxxx') # set manager id if you work under MCC gads_set_customer_id('xxx-xxx-xxxx') # load ad groups list adgroups <- gads_get_ad_groups( where = 'ad_group.status = "ENABLED"' ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.