Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JGoogleDataAdsense
+ Graphe d'héritage de JGoogleDataAdsense:

Fonctions membres publiques

 __construct (Registry $options=null, JGoogleAuth $auth=null)
 
 getAccount ($accountID, $subaccounts=true)
 
 listAccounts ($options=array(), $maxpages=1)
 
 listClients ($accountID, $options=array(), $maxpages=1)
 
 getUnit ($accountID, $adclientID, $adunitID)
 
 listUnitChannels ($accountID, $adclientID, $adunitID, $options=array(), $maxpages=1)
 
 getChannel ($accountID, $adclientID, $channelID)
 
 listChannels ($accountID, $adclientID, $options=array(), $maxpages=1)
 
 listChannelUnits ($accountID, $adclientID, $channelID, $options=array(), $maxpages=1)
 
 listUrlChannels ($accountID, $adclientID, $options=array(), $maxpages=1)
 
 generateReport ($accountID, $start, $end=false, $options=array(), $maxpages=1)
 
- Fonctions membres publiques hérités de JGoogleData
 __construct (Registry $options=null, JGoogleAuth $auth=null)
 
 authenticate ()
 
 isAuthenticated ()
 
 getOption ($key)
 
 setOption ($key, $value)
 

Membres hérités additionnels

- Fonctions membres protégées hérités de JGoogleData
 listGetData ($url, $maxpages=1, $token=null)
 
 query ($url, $data=null, $headers=null, $method='get')
 
- Fonctions membres protégées statiques hérités de JGoogleData
static safeXml ($data)
 
- Attributs protégés hérités de JGoogleData
 $options
 
 $auth
 

Description détaillée

Google Adsense data class for the Joomla Platform.

Depuis
3.1.4
Obsolète:
4.0 Use the joomla/google package via Composer instead

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( Registry  $options = null,
JGoogleAuth  $auth = null 
)

Constructor.

Paramètres
Registry$optionsGoogle options object
JGoogleAuth$authGoogle data http client object
Depuis
3.1.4

Références $options.

Documentation des fonctions membres

◆ generateReport()

generateReport (   $accountID,
  $start,
  $end = false,
  $options = array(),
  $maxpages = 1 
)

Method to retrieve a list of AdSense Channel URLs

Paramètres
string$accountIDID of account
mixed$startStart day
mixed$endEnd day
array$optionsSearch settings
int$maxpagesMaximum number of pages of accounts to return
Renvoie
mixed Data from Google
Depuis
3.1.4
Exceptions
InvalidArgumentException
UnexpectedValueException

Références $data, $i, $options, $start, $url, et elseif.

◆ getAccount()

getAccount (   $accountID,
  $subaccounts = true 
)

Method to get an Adsense account's settings from Google

Paramètres
string$accountIDID of account to get
boolean$subaccountsInclude list of subaccounts
Renvoie
mixed Data from Google
Depuis
3.1.4
Exceptions
UnexpectedValueException

Références $data, et $url.

◆ getChannel()

getChannel (   $accountID,
  $adclientID,
  $channelID 
)

Method to get an Adsense Channel

Paramètres
string$accountIDID of account to get
string$adclientIDID of client to get
string$channelIDID of channel to get
Renvoie
mixed Data from Google
Depuis
3.1.4
Exceptions
UnexpectedValueException

Références $data, et $url.

◆ getUnit()

getUnit (   $accountID,
  $adclientID,
  $adunitID 
)

Method to get an AdSense AdUnit

Paramètres
string$accountIDID of account to get
string$adclientIDID of client to get
string$adunitIDID of adunit to get
Renvoie
mixed Data from Google
Depuis
3.1.4
Exceptions
UnexpectedValueException

Références $data, et $url.

◆ listAccounts()

listAccounts (   $options = array(),
  $maxpages = 1 
)

Method to retrieve a list of AdSense accounts from Google

Paramètres
array$optionsSearch settings
int$maxpagesMaximum number of pages of accounts to return
Renvoie
mixed Data from Google
Depuis
3.1.4
Exceptions
UnexpectedValueException

Références $options, $url, et null.

◆ listChannels()

listChannels (   $accountID,
  $adclientID,
  $options = array(),
  $maxpages = 1 
)

Method to retrieve a list of AdSense Custom Channels

Paramètres
string$accountIDID of account
string$adclientIDID of client to list channels from
array$optionsSearch settings
int$maxpagesMaximum number of pages of accounts to return
Renvoie
mixed Data from Google
Depuis
3.1.4
Exceptions
UnexpectedValueException

Références $options, $url, et null.

◆ listChannelUnits()

listChannelUnits (   $accountID,
  $adclientID,
  $channelID,
  $options = array(),
  $maxpages = 1 
)

Method to retrieve a list of AdSense Adunits for a specific Custom Channel

Paramètres
string$accountIDID of account
string$adclientIDID of client
string$channelIDID of channel to list units from
array$optionsSearch settings
int$maxpagesMaximum number of pages of accounts to return
Renvoie
mixed Data from Google
Depuis
3.1.4
Exceptions
UnexpectedValueException

Références $options, $url, et null.

◆ listClients()

listClients (   $accountID,
  $options = array(),
  $maxpages = 1 
)

Method to retrieve a list of AdSense clients from Google

Paramètres
string$accountIDID of account to list the clients from
array$optionsSearch settings
int$maxpagesMaximum number of pages of accounts to return
Renvoie
mixed Data from Google
Depuis
3.1.4
Exceptions
UnexpectedValueException

Références $options, $url, et null.

◆ listUnitChannels()

listUnitChannels (   $accountID,
  $adclientID,
  $adunitID,
  $options = array(),
  $maxpages = 1 
)

Method to retrieve a list of AdSense Custom Channels for a specific Adunit

Paramètres
string$accountIDID of account
string$adclientIDID of client
string$adunitIDID of adunit to list channels from
array$optionsSearch settings
int$maxpagesMaximum number of pages of accounts to return
Renvoie
mixed Data from Google
Depuis
3.1.4
Exceptions
UnexpectedValueException

Références $options, $url, et null.

◆ listUrlChannels()

listUrlChannels (   $accountID,
  $adclientID,
  $options = array(),
  $maxpages = 1 
)

Method to generate a report from Google AdSense

Paramètres
string$accountIDID of account
string$adclientIDID of client
array$optionsSearch settings
int$maxpagesMaximum number of pages of accounts to return
Renvoie
mixed Data from Google
Depuis
3.1.4
Exceptions
UnexpectedValueException

Références $options, $url, et null.


La documentation de cette classe a été générée à partir du fichier suivant :