class GoogleAds (View source)

Properties

protected mixed $config Full config data.
protected $env Environment => test/production
protected $userCredentials oAuth UserRefreshCredentials
protected $session Session.
protected $service Service

Methods

__construct(null $env = null)

GoogleAds constructor.

$this
oAuth(array $data = [])

Generate User Credentials.

$this
session(array $data = [])

No description

fields()

Get an instance of Fields

service(* $service)

Set the google adwords service.

adGroupService()

AdGroupService

adGroupAdService()

AdGroupAdService

campaignService()

CampaignService

report()

Get an instance of Report

array
showReportTypes()

Show a list of report types

array
showReportFormats()

Show a list of report formats.

mixed
getService()

Get the service.

getSession()

Get the session.

UserRefreshCredentials
getUserCredentials()

Get UserRefreshCredentials

$this
env($env)

Set the environment to work with.

null
getEnv()

Get the environment.

Details

__construct(null $env = null)

GoogleAds constructor.

Parameters

null $env

$this oAuth(array $data = [])

Generate User Credentials.

Parameters

array $data

Return Value

$this

$this session(array $data = [])

Parameters

array $data

Return Value

$this

Fields fields()

Get an instance of Fields

Return Value

Fields

Service service(* $service)

Set the google adwords service.

Parameters

* $service

Return Value

Service

AdGroup adGroupService()

AdGroupService

Return Value

AdGroup

AdGroupAd adGroupAdService()

AdGroupAdService

Return Value

AdGroupAd

Campaign campaignService()

CampaignService

Return Value

Campaign

Report report()

Get an instance of Report

Return Value

Report

array showReportTypes()

Show a list of report types

Return Value

array

array showReportFormats()

Show a list of report formats.

Return Value

array

mixed getService()

Get the service.

Return Value

mixed

AdwordsSession getSession()

Get the session.

Return Value

AdwordsSession

UserRefreshCredentials getUserCredentials()

Get UserRefreshCredentials

Return Value

UserRefreshCredentials

$this env($env)

Set the environment to work with.

Parameters

$env

Return Value

$this

null getEnv()

Get the environment.

Return Value

null