Fields
class Fields (View source)
Properties
protected mixed|null | $session | Adwords Session | |
protected AdWordsServices | $adWordsServices | ||
protected AdsSoapClient|SoapClient | $reportDefinitionService | ||
protected | $reportDefinitionFields | ||
protected stdClass | $obj | Fields with type and accepted values. |
Methods
__construct(null $session = null)
Fields constructor.
$this
of($reportType)
Load the fields of the passed reportType
array
asList()
Get array of fields names.
string
asQuerySelector()
Get a query selector of all filters.
array
reportTypes()
Get all report types
$this
except(array $list)
Pull fields from the list.
Details
at line 50
__construct(null $session = null)
Fields constructor.
at line 67
$this
of($reportType)
Load the fields of the passed reportType
at line 86
stdClass
asObj()
Get fields as object
The properties will be the fields name. Each property is an array with type and accepted values.
at line 96
array
asList()
Get array of fields names.
at line 107
string
asQuerySelector()
Get a query selector of all filters.
E.g. Id,Name,Description...
at line 116
array
reportTypes()
Get all report types
at line 127
$this
except(array $list)
Pull fields from the list.