dfp_getCustomTargetingValuesByStatement {rdfp} | R Documentation |
getCustomTargetingValuesByStatement
Description
Gets a CustomTargetingValuePage of CustomTargetingValue objects that satisfy the given Statement query. The WHERE clause in the Statement query must always contain CustomTargetingValue customTargetingKeyId as one of its columns in a way that it is AND'ed with the rest of the query. So, if you want to retrieve values for a known set of key ids, valid Statement query would look like: "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that are associated with keys having ids 17, 18, 19. "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that are associated with keys having id 17 and value name is 'red'. The following fields are supported for filtering:
id
customTargetingKeyId
name
displayName
matchType
Usage
dfp_getCustomTargetingValuesByStatement(request_data, as_df = TRUE,
verbose = FALSE)
Arguments
request_data |
a |
as_df |
a boolean indicating whether to attempt to parse the result into
a |
verbose |
a boolean indicating whether to print the service URL and POSTed XML |
Value
a data.frame
or list
containing all the elements of a getCustomTargetingValuesByStatementResponse
See Also
Google Documentation for getCustomTargetingValuesByStatement
Examples
## Not run:
dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'"))
res <- dfp_getCustomTargetingValuesByStatement(dat)
## End(Not run)