create_query: create_query

Description Usage Arguments Value Examples

View source: R/create_query.R

Description

Creates an analysis query for later execution. No query validation is performed at this time. Reference: <https://developers.google.com/ads-data-hub/reference/rest/v1/customers.analysisQueries/create>

Usage

1
create_query(customer_id, query_title, query_text, token)

Arguments

customer_id

ADH Customer ID e.g. customers/123

query_title

Query title, which is unique within a single Ads Data Hub customer and query type. e.g.RnF Analysis

query_text

Query text written in Standard SQL.

token

Access token retrived from function google_auth()

Value

If successful, the response body contains a newly created instance of the query

Examples

1
2
3
4
5
6
## Not run: 
library(adsDataHubR)
token <- google_auth(client_id = client_id, client_secret=client_secret)
create_query(customer_id, query_title, query_text, token)

## End(Not run)

adsDataHubR documentation built on Feb. 8, 2021, 5:07 p.m.