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

asObj()

Get fields as object

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

__construct(null $session = null)

Fields constructor.

Parameters

null $session

$this of($reportType)

Load the fields of the passed reportType

Parameters

$reportType

Return Value

$this

stdClass asObj()

Get fields as object

The properties will be the fields name. Each property is an array with type and accepted values.

Return Value

stdClass

array asList()

Get array of fields names.

Return Value

array

string asQuerySelector()

Get a query selector of all filters.

E.g. Id,Name,Description...

Return Value

string

array reportTypes()

Get all report types

Return Value

array

$this except(array $list)

Pull fields from the list.

Parameters

array $list

Return Value

$this