Google_Service_AdSenseHost_Associationsessions_Resource

The "associationsessions" collection of methods.

Defined (1)

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

/lib/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 
  7. * Products to associate with the user. 
  8. * @param string $websiteUrl 
  9. * The URL of the user's hosted website. 
  10. * @param array $optParams Optional parameters. 
  11. * @opt_param string websiteLocale 
  12. * The locale of the user's hosted website. 
  13. * @opt_param string userLocale 
  14. * The preferred locale of the user. 
  15. * @return Google_Service_AdSenseHost_AssociationSession 
  16. */ 
  17. public function start($productCode, $websiteUrl, $optParams = array()) 
  18. $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl); 
  19. $params = array_merge($params, $optParams); 
  20. return $this->call('start', array($params), "Google_Service_AdSenseHost_AssociationSession"); 
  21. /** 
  22. * Verify an association session after the association callback returns from 
  23. * AdSense signup. (associationsessions.verify) 
  24. * @param string $token 
  25. * The token returned to the association callback URL. 
  26. * @param array $optParams Optional parameters. 
  27. * @return Google_Service_AdSenseHost_AssociationSession 
  28. */ 
  29. public function verify($token, $optParams = array()) 
  30. $params = array('token' => $token); 
  31. $params = array_merge($params, $optParams); 
  32. return $this->call('verify', array($params), "Google_Service_AdSenseHost_AssociationSession");