Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.AdManager.Util.v202305.PqlUtilities Class Reference

A utility class for handling PQL objects. More...

Static Public Member Functions

static object GetValue (Value value)
 Gets the underlying value of the Value object. For SetValues, returns a List of underlying values. More...
 
static List< String[]> ResultSetToStringArrayList (ResultSet resultSet)
 Gets the result set as list of string arrays. More...
 
static String ResultSetToString (ResultSet resultSet)
 Gets the result set as a table represenation in the form of: More...
 
static String[] GetColumnLabels (ResultSet resultSet)
 Gets the column labels for the result set. More...
 
static object[] GetRowValues (Row row)
 Gets the row values for a row of the result set in the form of an object array. More...
 
static String[] GetRowStringValues (Row row)
 Gets the row values for a row of the result set in a the form of a string array. More...
 

Detailed Description

A utility class for handling PQL objects.

Member Function Documentation

static String [] Google.Api.Ads.AdManager.Util.v202305.PqlUtilities.GetColumnLabels ( ResultSet  resultSet)
inlinestatic

Gets the column labels for the result set.

Parameters
resultSetThe result set to get the column labels for.
Returns
The string array of column labels.
static String [] Google.Api.Ads.AdManager.Util.v202305.PqlUtilities.GetRowStringValues ( Row  row)
inlinestatic

Gets the row values for a row of the result set in a the form of a string array.

null values are interperted as empty strings.

Parameters
rowThe row to get the values for.
Returns
The string array of the row values.
static object [] Google.Api.Ads.AdManager.Util.v202305.PqlUtilities.GetRowValues ( Row  row)
inlinestatic

Gets the row values for a row of the result set in the form of an object array.

Parameters
rowThe row to get the values for.
Returns
The object array of the row values.
static object Google.Api.Ads.AdManager.Util.v202305.PqlUtilities.GetValue ( Value  value)
inlinestatic

Gets the underlying value of the Value object. For SetValues, returns a List of underlying values.

The Value object to get the value from.

Returns
The underlying value, or List of underlying values from a SetValue.
static String Google.Api.Ads.AdManager.Util.v202305.PqlUtilities.ResultSetToString ( ResultSet  resultSet)
inlinestatic

Gets the result set as a table represenation in the form of:

+-------+-------+-------+
|column1|column2|column3|
+-------+-------+-------+
|value1 |value2 |value3 |
+-------+-------+-------+
|value1 |value2 |value3 |
+-------+-------+-------+
Parameters
resultSetThe result set to display as a string
Returns
The string represenation of result set as a table.
static List<String[]> Google.Api.Ads.AdManager.Util.v202305.PqlUtilities.ResultSetToStringArrayList ( ResultSet  resultSet)
inlinestatic

Gets the result set as list of string arrays.

Parameters
resultSetThe result set to convert to a string array list.
Returns
A list of string arrays representing the result set.

References Google.Api.Ads.AdManager.v202305.ResultSet.rows.


The documentation for this class was generated from the following file: