|
| __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) |
|
| __construct (Registry $options=null, JGoogleAuth $auth=null) |
|
| authenticate () |
|
| isAuthenticated () |
|
| getOption ($key) |
|
| setOption ($key, $value) |
|
Google Adsense data class for the Joomla Platform.
- Depuis
- 3.1.4
- Obsolète:
- 4.0 Use the
joomla/google
package via Composer instead
◆ __construct()
Constructor.
- Paramètres
-
Registry | $options | Google options object |
JGoogleAuth | $auth | Google data http client object |
- Depuis
- 3.1.4
Références $options.
◆ generateReport()
generateReport |
( |
|
$accountID, |
|
|
|
$start, |
|
|
|
$end = false , |
|
|
|
$options = array() , |
|
|
|
$maxpages = 1 |
|
) |
| |
Method to retrieve a list of AdSense Channel URLs
- Paramètres
-
string | $accountID | ID of account |
mixed | $start | Start day |
mixed | $end | End day |
array | $options | Search settings |
int | $maxpages | Maximum 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 | $accountID | ID of account to get |
boolean | $subaccounts | Include list of subaccounts |
- Renvoie
- mixed Data from Google
- Depuis
- 3.1.4
- Exceptions
-
Références $data, et $url.
◆ getChannel()
getChannel |
( |
|
$accountID, |
|
|
|
$adclientID, |
|
|
|
$channelID |
|
) |
| |
Method to get an Adsense Channel
- Paramètres
-
string | $accountID | ID of account to get |
string | $adclientID | ID of client to get |
string | $channelID | ID of channel to get |
- Renvoie
- mixed Data from Google
- Depuis
- 3.1.4
- Exceptions
-
Références $data, et $url.
◆ getUnit()
getUnit |
( |
|
$accountID, |
|
|
|
$adclientID, |
|
|
|
$adunitID |
|
) |
| |
Method to get an AdSense AdUnit
- Paramètres
-
string | $accountID | ID of account to get |
string | $adclientID | ID of client to get |
string | $adunitID | ID of adunit to get |
- Renvoie
- mixed Data from Google
- Depuis
- 3.1.4
- Exceptions
-
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 | $options | Search settings |
int | $maxpages | Maximum number of pages of accounts to return |
- Renvoie
- mixed Data from Google
- Depuis
- 3.1.4
- Exceptions
-
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 | $accountID | ID of account |
string | $adclientID | ID of client to list channels from |
array | $options | Search settings |
int | $maxpages | Maximum number of pages of accounts to return |
- Renvoie
- mixed Data from Google
- Depuis
- 3.1.4
- Exceptions
-
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 | $accountID | ID of account |
string | $adclientID | ID of client |
string | $channelID | ID of channel to list units from |
array | $options | Search settings |
int | $maxpages | Maximum number of pages of accounts to return |
- Renvoie
- mixed Data from Google
- Depuis
- 3.1.4
- Exceptions
-
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 | $accountID | ID of account to list the clients from |
array | $options | Search settings |
int | $maxpages | Maximum number of pages of accounts to return |
- Renvoie
- mixed Data from Google
- Depuis
- 3.1.4
- Exceptions
-
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 | $accountID | ID of account |
string | $adclientID | ID of client |
string | $adunitID | ID of adunit to list channels from |
array | $options | Search settings |
int | $maxpages | Maximum number of pages of accounts to return |
- Renvoie
- mixed Data from Google
- Depuis
- 3.1.4
- Exceptions
-
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 | $accountID | ID of account |
string | $adclientID | ID of client |
array | $options | Search settings |
int | $maxpages | Maximum number of pages of accounts to return |
- Renvoie
- mixed Data from Google
- Depuis
- 3.1.4
- Exceptions
-
Références $options, $url, et null.
La documentation de cette classe a été générée à partir du fichier suivant :