Skip to contents

Main page

rgoogleads documentation main page

rgoogleads-package rgoogleads
Loading Data From 'Google Ads API'

Authorization

Managing authorization process

gads_auth_configure() gads_auth_cache_path() gads_open_auth_cache_folder() gads_api_key() gads_developer_token() gads_oauth_app()
Edit and view auth configuration
gads_auth()
Authorization in Google Ads API
gads_deauth()
Suspend authorization
gads_has_token()
Is there a token on hand?
gads_token()
Produce configured token
gads_user()
Get info on current user

Options

Package options setters

gads_set_customer_id()
Set client customer id in current R session
gads_set_login_customer_id()
Set manager customer id in current R session

Accounts data

Loading account hierarchy and metadata

gads_get_accessible_customers()
Get all data of customers directly accessible by the user authenticating the call.
gads_get_account_hierarchy()
Get Google Ads Manager Account Hierarchy

Account objects

Loading account objects list

gads_get_campaigns()
Get Campaigns Dictionary From Google Ads Client Account
gads_get_ad_groups()
Get Ad Groups Dictionary From Google Ads Client Account
gads_get_ads()
Get Ads Dictionary From Google Ads Client Account
gads_get_keywords()
Get Keyword Dictionary From Google Ads Client Account
gads_get_ad_group_criterions()
Get Ad Group Criterions Dictionary From Google Ads Client Account

Reporting

Loading report data

gads_get_metadata()
Get metada of object, RESOURCE, ATTRIBUTE, METRIC or SEGMENT
gads_get_fields()
Get resource or field information.
gads_get_report()
Get data from Google Ads API

Keywords Planing Data

Loading Keyword Plan data

gads_keyword_plan_historical_metrics()
Returns the requested Keyword Plan historical metrics.
gads_keyword_plan_forecast_timeseries()
Returns a forecast in the form of a time series for the Keyword Plan over the next 52 weeks.
gads_keyword_plan_forecast_metrics()
Returns the requested Keyword Plan forecasts.

Reference data

Loading dictionaries

gads_get_geo_targets()
Download CSV of geo targets

Helpers

Helper functions

gads_check_errors()
Helper function for check api answer on error
gads_customer()
Get all information about Google Ads Customer
gads_customer_id_from_env()
Get customer id for error message
gads_customer_id_to_env()
Write customer id for error message
gads_fix_names()
function for fix names in get_report
gads_last_request_ids()
Get last API request ID for Google Ads API support ticket