class Adsense extends Service (View source)

Service definition for Adsense (v2).

The AdSense Management API allows publishers to access their inventory and run earnings and performance reports.

For more information about this service, see the API Documentation

Constants

ADSENSE

View and manage your AdSense data.

ADSENSE_READONLY

View your AdSense data.

Properties

$accounts
$accounts_adclients
$accounts_adclients_adunits
$accounts_adclients_customchannels
$accounts_adclients_urlchannels
$accounts_alerts
$accounts_payments
$accounts_policyIssues
$accounts_reports
$accounts_reports_saved
$accounts_sites
$rootUrlTemplate

Methods

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the Adsense service.

Details

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the Adsense service.

Parameters

Client|array $clientOrConfig

The client used to deliver requests, or a config array to pass to a new Client instance.

string $rootUrl

The root URL used for requests to the service.