View source: R/gads_get_campaigns.R
gads_get_campaigns | R Documentation |
Get Campaigns Dictionary From Google Ads Client Account
gads_get_campaigns( fields = c("campaign.id", "campaign.name", "campaign.accessible_bidding_strategy", "campaign.ad_serving_optimization_status", "campaign.advertising_channel_sub_type", "campaign.advertising_channel_type", "campaign.app_campaign_setting.app_id", "campaign.app_campaign_setting.app_store", "campaign.base_campaign", "campaign.bidding_strategy", "campaign.app_campaign_setting.bidding_strategy_goal_type", "campaign.campaign_budget", "campaign.bidding_strategy_type", "campaign.dynamic_search_ads_setting.language_code", "campaign.start_date", "campaign.end_date", "campaign.status", "campaign.manual_cpm", "campaign.manual_cpv", "campaign.maximize_conversion_value.target_roas", "campaign.maximize_conversions.target_cpa", "campaign.network_settings.target_content_network", "campaign.network_settings.target_google_search", "campaign.network_settings.target_partner_search_network", "campaign.network_settings.target_search_network", "campaign.optimization_goal_setting.optimization_goal_types", "campaign.optimization_score", "campaign.payment_mode", "campaign.serving_status", "campaign.shopping_setting.campaign_priority", "campaign.shopping_setting.sales_country", "campaign.target_roas.target_roas", "campaign.tracking_url_template", "customer.descriptive_name", "customer.id"), where = NULL, order_by = NULL, limit = NULL, parameters = NULL, customer_id = getOption("gads.customer.id"), login_customer_id = getOption("gads.login.customer.id"), include_resource_name = FALSE, cl = NULL, verbose = TRUE )
fields |
character vector, list of report fields, all report has own fields list, for example see field list of campaigns 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 |
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") |
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 campaings 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 campaing list camps <- gads_get_campaigns( where = "campaign.status = 'ENABLED'" ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.