Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Google_Service_AdSenseHost_Associationsessions_Resource Class Reference

The "associationsessions" collection of methods. More...

Inheritance diagram for Google_Service_AdSenseHost_Associationsessions_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 start ($productCode, $websiteUrl, $optParams=array())
 Create an association session for initiating an association with an AdSense user.
 
 verify ($token, $optParams=array())
 Verify an association session after the association callback returns from AdSense signup.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "associationsessions" collection of methods.

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

Member Function Documentation

◆ 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
Google_Exception

◆ start()

Google_Service_AdSenseHost_Associationsessions_Resource::start ( $productCode,
$websiteUrl,
$optParams = array() )

Create an association session for initiating an association with an AdSense user.

(associationsessions.start)

Parameters
string$productCodeProducts to associate with the user.
string$websiteUrlThe URL of the user's hosted website.
array$optParamsOptional parameters.

@opt_param string websiteLocale The locale of the user's hosted website. @opt_param string userLocale The preferred locale of the user.

Return values
Google_Service_AdSenseHost_AssociationSession

◆ verify()

Google_Service_AdSenseHost_Associationsessions_Resource::verify ( $token,
$optParams = array() )

Verify an association session after the association callback returns from AdSense signup.

(associationsessions.verify)

Parameters
string$tokenThe token returned to the association callback URL.
array$optParamsOptional parameters.
Return values
Google_Service_AdSenseHost_AssociationSession

The documentation for this class was generated from the following file: