validate_query: validate_query

Description Usage Arguments Value Examples

View source: R/validate_query.R

Description

Performs static validation checks on the provided analysis query. Reference: <https://developers.google.com/ads-data-hub/reference/rest/v1/customers.analysisQueries/validate>

Usage

1
validate_query(customer_id, query_instance, token)

Arguments

customer_id

ADH Customer ID e.g. customers/123

query_instance

Query instance returned by create_query function

token

Access token retrived from function google_auth()

Value

If successful, the response body contains a validation queryPerformanceInfo object

Examples

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

## End(Not run)

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