class Associationsessions extends Resource (View source)

The "associationsessions" collection of methods.

Typical usage is:

 $adsensehostService = new Google\Service\AdSenseHost(...);
 $associationsessions = $adsensehostService->associationsessions;

Methods

start(string|array $productCode, string $websiteUrl, array $optParams = [])

Create an association session for initiating an association with an AdSense user. (associationsessions.start)

verify(string $token, array $optParams = [])

Verify an association session after the association callback returns from AdSense signup. (associationsessions.verify)

Details

AssociationSession start(string|array $productCode, string $websiteUrl, array $optParams = [])

Create an association session for initiating an association with an AdSense user. (associationsessions.start)

Parameters

string|array $productCode

Products to associate with the user.

string $websiteUrl

The URL of the user's hosted website.

array $optParams

Optional parameters.

Return Value

AssociationSession

Exceptions

Exception

AssociationSession verify(string $token, array $optParams = [])

Verify an association session after the association callback returns from AdSense signup. (associationsessions.verify)

Parameters

string $token

The token returned to the association callback URL.

array $optParams

Optional parameters.

Return Value

AssociationSession

Exceptions

Exception