The "adunits" collection of methods.
More...
|
| call ($name, $arguments, $expected_class=null) |
| TODO: This function needs simplifying.
|
|
| delete ($accountId, $adClientId, $adUnitId, $optParams=array()) |
| Delete the specified ad unit from the specified publisher AdSense account.
|
|
| get ($accountId, $adClientId, $adUnitId, $optParams=array()) |
| Get the specified host ad unit in this AdSense account.
|
|
| getAdCode ($accountId, $adClientId, $adUnitId, $optParams=array()) |
| Get ad code for the specified ad unit, attaching the specified host custom channels.
|
|
| insert ($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams=array()) |
| Insert the supplied ad unit into the specified publisher AdSense account.
|
|
| listAccountsAdunits ($accountId, $adClientId, $optParams=array()) |
| List all ad units in the specified publisher's AdSense account.
|
|
| patch ($accountId, $adClientId, $adUnitId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams=array()) |
| Update the supplied ad unit in the specified publisher AdSense account.
|
|
| update ($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams=array()) |
| Update the supplied ad unit in the specified publisher AdSense account.
|
|
|
| convertToArrayAndStripNulls ($o) |
|
The "adunits" collection of methods.
Typical usage is: $adsensehostService = new Google_Service_AdSenseHost(...); $adunits = $adsensehostService->adunits;
◆ call()
Google_Service_Resource::call |
( |
| $name, |
|
|
| $arguments, |
|
|
| $expected_class = null ) |
|
inherited |
TODO: This function needs simplifying.
- Parameters
-
$name | |
$arguments | |
$expected_class | - optional, the expected class name |
- Return values
-
Google_Http_Request|expected_class | |
- Exceptions
-
◆ delete()
Google_Service_AdSenseHost_AccountsAdunits_Resource::delete |
( |
| $accountId, |
|
|
| $adClientId, |
|
|
| $adUnitId, |
|
|
| $optParams = array() ) |
Delete the specified ad unit from the specified publisher AdSense account.
(adunits.delete)
- Parameters
-
string | $accountId | Account which contains the ad unit. |
string | $adClientId | Ad client for which to get ad unit. |
string | $adUnitId | Ad unit to delete. |
array | $optParams | Optional parameters. |
- Return values
-
◆ get()
Google_Service_AdSenseHost_AccountsAdunits_Resource::get |
( |
| $accountId, |
|
|
| $adClientId, |
|
|
| $adUnitId, |
|
|
| $optParams = array() ) |
Get the specified host ad unit in this AdSense account.
(adunits.get)
- Parameters
-
string | $accountId | Account which contains the ad unit. |
string | $adClientId | Ad client for which to get ad unit. |
string | $adUnitId | Ad unit to get. |
array | $optParams | Optional parameters. |
- Return values
-
◆ getAdCode()
Google_Service_AdSenseHost_AccountsAdunits_Resource::getAdCode |
( |
| $accountId, |
|
|
| $adClientId, |
|
|
| $adUnitId, |
|
|
| $optParams = array() ) |
Get ad code for the specified ad unit, attaching the specified host custom channels.
(adunits.getAdCode)
- Parameters
-
string | $accountId | Account which contains the ad client. |
string | $adClientId | Ad client with contains the ad unit. |
string | $adUnitId | Ad unit to get the code for. |
array | $optParams | Optional parameters. |
@opt_param string hostCustomChannelId Host custom channel to attach to the ad code.
- Return values
-
◆ insert()
Insert the supplied ad unit into the specified publisher AdSense account.
(adunits.insert)
- Parameters
-
string | $accountId | Account which will contain the ad unit. |
string | $adClientId | Ad client into which to insert the ad unit. |
Google_AdUnit | $postBody | |
array | $optParams | Optional parameters. |
- Return values
-
◆ listAccountsAdunits()
Google_Service_AdSenseHost_AccountsAdunits_Resource::listAccountsAdunits |
( |
| $accountId, |
|
|
| $adClientId, |
|
|
| $optParams = array() ) |
List all ad units in the specified publisher's AdSense account.
(adunits.listAccountsAdunits)
- Parameters
-
string | $accountId | Account which contains the ad client. |
string | $adClientId | Ad client for which to list ad units. |
array | $optParams | Optional parameters. |
@opt_param bool includeInactive Whether to include inactive ad units. Default: true. @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. @opt_param string maxResults The maximum number of ad units to include in the response, used for paging.
- Return values
-
◆ patch()
Update the supplied ad unit in the specified publisher AdSense account.
This method supports patch semantics. (adunits.patch)
- Parameters
-
string | $accountId | Account which contains the ad client. |
string | $adClientId | Ad client which contains the ad unit. |
string | $adUnitId | Ad unit to get. |
Google_AdUnit | $postBody | |
array | $optParams | Optional parameters. |
- Return values
-
◆ update()
Update the supplied ad unit in the specified publisher AdSense account.
(adunits.update)
- Parameters
-
string | $accountId | Account which contains the ad client. |
string | $adClientId | Ad client which contains the ad unit. |
Google_AdUnit | $postBody | |
array | $optParams | Optional parameters. |
- Return values
-
The documentation for this class was generated from the following file:
- lib/google/src/Google/Service/AdSenseHost.php