class Service (View source)

Properties

protected string $where Where Condition
protected string $orderBy Order By clause
protected string $limit Limit clause
protected mixed $session
protected AdWordsServices $adWordsServices
protected $service
protected $fields

Methods

__construct(Google $service, AdWordsSession $session = null)

Service constructor.

$this
orderBy($field)

No description

$this
limit(int $number, int $offset)

No description

$this
select($fields)

Set the fields to retrieve

$this
where($condition)

Set where condition

get(array $fields = [])

Get all items.

mixed
getService()

Get the Google service.

Details

__construct(Google $service, AdWordsSession $session = null)

Service constructor.

Parameters

Google $service Service $service
AdWordsSession $session

$this orderBy($field)

Parameters

$field

Return Value

$this

$this limit(int $number, int $offset)

Parameters

int $number
int $offset

Return Value

$this

$this select($fields)

Set the fields to retrieve

Parameters

$fields

Return Value

$this

$this where($condition)

Set where condition

Parameters

$condition

Return Value

$this

ServiceCollection get(array $fields = [])

Get all items.

Parameters

array $fields

Return Value

ServiceCollection E.g. => Campaign | AdGroup | AdGroupAd | ...

mixed getService()

Get the Google service.

Return Value

mixed