Title: | 'Google Ads API' Interface |
---|---|
Description: | Interface for the 'Google Ads API'. 'Google Ads' is an online advertising service that enables advertisers to display advertising to web users (see <https://developers.google.com/google-ads/> for more information). |
Authors: | Johannes Burkhardt [aut, cre], Matthias Bannert [aut] |
Maintainer: | Johannes Burkhardt <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.1 |
Built: | 2024-11-01 02:52:51 UTC |
Source: | https://github.com/banboo-data/r4googleads |
get_credentials authenticates the R app at the
'Google' authentication server using OAUTH2 and receives the client token.
Usually you need not to run get_credentials() explicitly since the whole authentication process is managed by authenticate
.
.get_credentials()
.get_credentials()
Client token from Google authentication server.
load_token loads the access token using credentials provided by another internal function (dot-get_credentials). Execution of function is possible only once per authentication process.
Usually you need not to run load_token() explicitly since the whole authentication process is managed by authenticate
.
.load_token(credlist)
.load_token(credlist)
credlist |
list of credentials |
Access token with corresponding time stamp
refresh_token returns a new valid access token. The access token deprecates after one hour and has to updated with the refresh token.
Usually you need not to run refresh_token() explicitly since the whole authentication process is managed by authenticate
.
.refresh_token(google_auth)
.refresh_token(google_auth)
google_auth |
list of credentials and access token |
New access token with corresponding time stamp
This function starts the authentication process with 'Google'. Note that this function needs user interaction.
authenticate(save = TRUE)
authenticate(save = TRUE)
save |
logical, should the authentication information should be saved on disk? Defaults to TRUE. |
data.frame containing credentials, optionally saved as .RData in the current working directory
Create
build_handle(x)
build_handle(x)
x |
object of class googleAdsSearch, googleAdsFields listAccessibleCustomers |
curl dandle object
A built-in collection of queries, mostly for the googleAdsSearch service: default_search(), campaign_sample(), adgroup_sample(), adgroup_sample_1(), hotel_ads_sample(), keyword_sample(), keyword_sample_1(), keyword_sample_2(). Usually these functions are not called stand alone. Often they are used when a constructor of a query based service is called. A 'Google Ads Query Builder' can be found here: https://developers.google.com/google-ads/api/fields/v9/overview_query_builder
default_search() campaign_sample() adgroup_sample() adgroup_sample_1() hotel_ads_sample() keyword_sample() keyword_sample_1() keyword_sample_2()
default_search() campaign_sample() adgroup_sample() adgroup_sample_1() hotel_ads_sample() keyword_sample() keyword_sample_1() keyword_sample_2()
character query statement
default_search() campaign_sample() adgroup_sample() adgroup_sample_1() hotel_ads_sample() keyword_sample() keyword_sample_1() keyword_sample_2()
default_search() campaign_sample() adgroup_sample() adgroup_sample_1() hotel_ads_sample() keyword_sample() keyword_sample_1() keyword_sample_2()
You were looking for a deprecated function. Very likely you have been a user of 'r4googleads' predecessor 'RAdwords' package. 'Google' phases out its 'Adwords API' and replaces it with the 'Google Ads API'. Hence, we have created the 'r4googleads' package. For more information please read our migration guide read our migration guide: Migration Guide
do_auth(...) statement() reports(...) metrics(...) get_data(...)
do_auth(...) statement() reports(...) metrics(...) get_data(...)
... |
arguments to to be passed on to the underlying functions. (note that this functions is deprecated, use authenticate().) |
message with deprecation notice
message with deprecation notice
message with deprecation notice
message with deprecation notice
message with deprecation notice
Create an instance of a googleAdsFields class. A list of Google's ads services and their arguments can be found here: https://developers.google.com/google-ads/api/rest/reference/rest/v9/googleAdsFields.
googleAdsFields(tbl, api_version = "v9")
googleAdsFields(tbl, api_version = "v9")
tbl |
character table argument |
api_version |
Google Ads API version e.g 'v9' |
list; contains googleAdsFields Class information
Create an instance of a googleAdsSearch class. A list of Google's ads services can be found here: https://developers.google.com/google-ads/api/rest/reference/rest.
googleAdsSearch(aid, query = default_search(), api_version = "v9")
googleAdsSearch(aid, query = default_search(), api_version = "v9")
aid |
character Google account id |
query |
character query string or function that returns a character query string. See also queries. |
api_version |
Google Ads API version e.g 'v9' |
list; contains googleAdsSearch Class information
Create an instance of a listAccessibleCustomers class. https://developers.google.com/google-ads/api/rest/reference/rest/v9/customers/listAccessibleCustomers.
listAccessibleCustomers(api_version = "v9")
listAccessibleCustomers(api_version = "v9")
api_version |
Google Ads API version e.g 'v9' |
list; contains listAccessibleCustomers Class information
Sends 'Google Ads' Services objects to the 'Google Ads API'.
query_google_ads( mcc_id, google_auth, service, raw_data = FALSE, convert_micros = 1e+06 )
query_google_ads( mcc_id, google_auth, service, raw_data = FALSE, convert_micros = 1e+06 )
mcc_id |
Google Ads Client Center MCC Id |
google_auth |
auth object |
service |
googleAds service object created by a service constructor such as |
raw_data |
TRUE / FALSE returns raw data or content only |
convert_micros |
converts micros data: divides data by 1e6, if NULL no conversion will be applied. |
Google Services return object either with raw or processed data (default).