create_query {adsDataHubR}R Documentation

create_query

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

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

## 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)

[Package adsDataHubR version 0.1.1 Index]