rdfp (version 0.1.2)

dfp_getCustomTargetingValuesByStatement: 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 list or data.frame of data elements to be formatted for a SOAP request (XML format, but passed as character string)

as_df

a boolean indicating whether to attempt to parse the result into a data.frame

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

Run this code
# NOT RUN {
 dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) 
 res <- dfp_getCustomTargetingValuesByStatement(dat)
# }

Run the code above in your browser using DataCamp Workspace