Documentation

Google_Service_AdSenseHost_Resource_AccountsAdunits extends Google_Service_Resource
in package

The "adunits" collection of methods.

Typical usage is: $adsensehostService = new Google_Service_AdSenseHost(...); $adunits = $adsensehostService->adunits;

Table of Contents

$client  : Google_Client
$methods  : array<string|int, mixed>
$resourceName  : string
$rootUrl  : string
$serviceName  : string
$servicePath  : string
$stackParameters  : mixed
__construct()  : mixed
call()  : Google_Http_Request|expectedClass
TODO: This function needs simplifying.
createRequestUri()  : string
Parse/expand request parameters and create a fully qualified request uri.
delete()  : Google_Service_AdSenseHost_AdUnit
Delete the specified ad unit from the specified publisher AdSense account.
get()  : Google_Service_AdSenseHost_AdUnit
Get the specified host ad unit in this AdSense account. (adunits.get)
getAdCode()  : Google_Service_AdSenseHost_AdCode
Get ad code for the specified ad unit, attaching the specified host custom channels. (adunits.getAdCode)
insert()  : Google_Service_AdSenseHost_AdUnit
Insert the supplied ad unit into the specified publisher AdSense account.
listAccountsAdunits()  : Google_Service_AdSenseHost_AdUnits
List all ad units in the specified publisher's AdSense account.
patch()  : Google_Service_AdSenseHost_AdUnit
Update the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics. (adunits.patch)
update()  : Google_Service_AdSenseHost_AdUnit
Update the supplied ad unit in the specified publisher AdSense account.
convertToArrayAndStripNulls()  : mixed

Properties

$methods

private array<string|int, mixed> $methods

$resourceName

private string $resourceName

$serviceName

private string $serviceName

$servicePath

private string $servicePath

$stackParameters

private mixed $stackParameters = array('alt' => array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('type' => 'string', 'location' => 'query'))

Methods

__construct()

public __construct(mixed $service, mixed $serviceName, mixed $resourceName, mixed $resource) : mixed
Parameters
$service : mixed
$serviceName : mixed
$resourceName : mixed
$resource : mixed
Return values
mixed

call()

TODO: This function needs simplifying.

public call( $name,  $arguments[,  $expectedClass = null ]) : Google_Http_Request|expectedClass
Parameters
$name :
$arguments :
$expectedClass : = null
  • optional, the expected class name
Tags
throws
Google_Exception
Return values
Google_Http_Request|expectedClass

createRequestUri()

Parse/expand request parameters and create a fully qualified request uri.

public createRequestUri(string $restPath, array<string|int, mixed> $params) : string
Parameters
$restPath : string
$params : array<string|int, mixed>
Tags
static
Return values
string

$requestUrl

delete()

Delete the specified ad unit from the specified publisher AdSense account.

public delete(string $accountId, string $adClientId, string $adUnitId[, array<string|int, mixed> $optParams = array() ]) : Google_Service_AdSenseHost_AdUnit

(adunits.delete)

Parameters
$accountId : string

Account which contains the ad unit.

$adClientId : string

Ad client for which to get ad unit.

$adUnitId : string

Ad unit to delete.

$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_AdSenseHost_AdUnit

get()

Get the specified host ad unit in this AdSense account. (adunits.get)

public get(string $accountId, string $adClientId, string $adUnitId[, array<string|int, mixed> $optParams = array() ]) : Google_Service_AdSenseHost_AdUnit
Parameters
$accountId : string

Account which contains the ad unit.

$adClientId : string

Ad client for which to get ad unit.

$adUnitId : string

Ad unit to get.

$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_AdSenseHost_AdUnit

getAdCode()

Get ad code for the specified ad unit, attaching the specified host custom channels. (adunits.getAdCode)

public getAdCode(string $accountId, string $adClientId, string $adUnitId[, array<string|int, mixed> $optParams = array() ]) : Google_Service_AdSenseHost_AdCode
Parameters
$accountId : string

Account which contains the ad client.

$adClientId : string

Ad client with contains the ad unit.

$adUnitId : string

Ad unit to get the code for.

$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
opt_param

string hostCustomChannelId Host custom channel to attach to the ad code.

Return values
Google_Service_AdSenseHost_AdCode

insert()

Insert the supplied ad unit into the specified publisher AdSense account.

public insert(string $accountId, string $adClientId, Google_Service_AdSenseHost_AdUnit $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_AdSenseHost_AdUnit

(adunits.insert)

Parameters
$accountId : string

Account which will contain the ad unit.

$adClientId : string

Ad client into which to insert the ad unit.

$postBody : Google_Service_AdSenseHost_AdUnit
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_AdSenseHost_AdUnit

listAccountsAdunits()

List all ad units in the specified publisher's AdSense account.

public listAccountsAdunits(string $accountId, string $adClientId[, array<string|int, mixed> $optParams = array() ]) : Google_Service_AdSenseHost_AdUnits

(adunits.listAccountsAdunits)

Parameters
$accountId : string

Account which contains the ad client.

$adClientId : string

Ad client for which to list ad units.

$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
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
Google_Service_AdSenseHost_AdUnits

patch()

Update the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics. (adunits.patch)

public patch(string $accountId, string $adClientId, string $adUnitId, Google_Service_AdSenseHost_AdUnit $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_AdSenseHost_AdUnit
Parameters
$accountId : string

Account which contains the ad client.

$adClientId : string

Ad client which contains the ad unit.

$adUnitId : string

Ad unit to get.

$postBody : Google_Service_AdSenseHost_AdUnit
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_AdSenseHost_AdUnit

update()

Update the supplied ad unit in the specified publisher AdSense account.

public update(string $accountId, string $adClientId, Google_Service_AdSenseHost_AdUnit $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_AdSenseHost_AdUnit

(adunits.update)

Parameters
$accountId : string

Account which contains the ad client.

$adClientId : string

Ad client which contains the ad unit.

$postBody : Google_Service_AdSenseHost_AdUnit
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_AdSenseHost_AdUnit

convertToArrayAndStripNulls()

protected convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
$o : mixed
Return values
mixed

Search results