Google_Service_AdSenseHost_Associationsessions_Resource

The "associationsessions" collection of methods.

Defined (1)

The class is defined in the following location(s).

/includes/api-libs/Google/Service/AdSenseHost.php  
  1. class Google_Service_AdSenseHost_Associationsessions_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Create an association session for initiating an association with an AdSense 
  5. * user. (associationsessions.start) 
  6. * @param string $productCode Products to associate with the user. 
  7. * @param string $websiteUrl The URL of the user's hosted website. 
  8. * @param array $optParams Optional parameters. 
  9. * @opt_param string websiteLocale The locale of the user's hosted website. 
  10. * @opt_param string userLocale The preferred locale of the user. 
  11. * @return Google_Service_AdSenseHost_AssociationSession 
  12. */ 
  13. public function start($productCode, $websiteUrl, $optParams = array()) 
  14. $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl); 
  15. $params = array_merge($params, $optParams); 
  16. return $this->call('start', array($params), "Google_Service_AdSenseHost_AssociationSession"); 
  17.  
  18. /** 
  19. * Verify an association session after the association callback returns from 
  20. * AdSense signup. (associationsessions.verify) 
  21. * @param string $token The token returned to the association callback URL. 
  22. * @param array $optParams Optional parameters. 
  23. * @return Google_Service_AdSenseHost_AssociationSession 
  24. */ 
  25. public function verify($token, $optParams = array()) 
  26. $params = array('token' => $token); 
  27. $params = array_merge($params, $optParams); 
  28. return $this->call('verify', array($params), "Google_Service_AdSenseHost_AssociationSession");