GoogleGAL_Service_Analytics_ManagementWebPropertyAdWordsLinks_Resource

The "webPropertyAdWordsLinks" collection of methods.

Defined (1)

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

/core/Google/Service/Analytics.php  
  1. class GoogleGAL_Service_Analytics_ManagementWebPropertyAdWordsLinks_Resource extends GoogleGAL_Service_Resource 
  2.  
  3. /** 
  4. * Deletes a web property-AdWords link. (webPropertyAdWordsLinks.delete) 
  5. * @param string $accountId ID of the account which the given web property 
  6. * belongs to. 
  7. * @param string $webPropertyId Web property ID to delete the AdWords link for. 
  8. * @param string $webPropertyAdWordsLinkId Web property AdWords link ID. 
  9. * @param array $optParams Optional parameters. 
  10. */ 
  11. public function delete($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $optParams = array()) 
  12. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('delete', array($params)); 
  15.  
  16. /** 
  17. * Returns a web property-AdWords link to which the user has access. 
  18. * (webPropertyAdWordsLinks.get) 
  19. * @param string $accountId ID of the account which the given web property 
  20. * belongs to. 
  21. * @param string $webPropertyId Web property ID to retrieve the AdWords link 
  22. * for. 
  23. * @param string $webPropertyAdWordsLinkId Web property-AdWords link ID. 
  24. * @param array $optParams Optional parameters. 
  25. * @return GoogleGAL_Service_Analytics_EntityAdWordsLink 
  26. */ 
  27. public function get($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $optParams = array()) 
  28. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId); 
  29. $params = array_merge($params, $optParams); 
  30. return $this->call('get', array($params), "GoogleGAL_Service_Analytics_EntityAdWordsLink"); 
  31.  
  32. /** 
  33. * Creates a webProperty-AdWords link. (webPropertyAdWordsLinks.insert) 
  34. * @param string $accountId ID of the Google Analytics account to create the 
  35. * link for. 
  36. * @param string $webPropertyId Web property ID to create the link for. 
  37. * @param GoogleGAL_EntityAdWordsLink $postBody 
  38. * @param array $optParams Optional parameters. 
  39. * @return GoogleGAL_Service_Analytics_EntityAdWordsLink 
  40. */ 
  41. public function insert($accountId, $webPropertyId, GoogleGAL_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array()) 
  42. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); 
  43. $params = array_merge($params, $optParams); 
  44. return $this->call('insert', array($params), "GoogleGAL_Service_Analytics_EntityAdWordsLink"); 
  45.  
  46. /** 
  47. * Lists webProperty-AdWords links for a given web property. 
  48. * (webPropertyAdWordsLinks.listManagementWebPropertyAdWordsLinks) 
  49. * @param string $accountId ID of the account which the given web property 
  50. * belongs to. 
  51. * @param string $webPropertyId Web property ID to retrieve the AdWords links 
  52. * for. 
  53. * @param array $optParams Optional parameters. 
  54. * @opt_param int max-results The maximum number of webProperty-AdWords links to 
  55. * include in this response. 
  56. * @opt_param int start-index An index of the first webProperty-AdWords link to 
  57. * retrieve. Use this parameter as a pagination mechanism along with the max- 
  58. * results parameter. 
  59. * @return GoogleGAL_Service_Analytics_EntityAdWordsLinks 
  60. */ 
  61. public function listManagementWebPropertyAdWordsLinks($accountId, $webPropertyId, $optParams = array()) 
  62. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); 
  63. $params = array_merge($params, $optParams); 
  64. return $this->call('list', array($params), "GoogleGAL_Service_Analytics_EntityAdWordsLinks"); 
  65.  
  66. /** 
  67. * Updates an existing webProperty-AdWords link. This method supports patch 
  68. * semantics. (webPropertyAdWordsLinks.patch) 
  69. * @param string $accountId ID of the account which the given web property 
  70. * belongs to. 
  71. * @param string $webPropertyId Web property ID to retrieve the AdWords link 
  72. * for. 
  73. * @param string $webPropertyAdWordsLinkId Web property-AdWords link ID. 
  74. * @param GoogleGAL_EntityAdWordsLink $postBody 
  75. * @param array $optParams Optional parameters. 
  76. * @return GoogleGAL_Service_Analytics_EntityAdWordsLink 
  77. */ 
  78. public function patch($accountId, $webPropertyId, $webPropertyAdWordsLinkId, GoogleGAL_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array()) 
  79. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId, 'postBody' => $postBody); 
  80. $params = array_merge($params, $optParams); 
  81. return $this->call('patch', array($params), "GoogleGAL_Service_Analytics_EntityAdWordsLink"); 
  82.  
  83. /** 
  84. * Updates an existing webProperty-AdWords link. 
  85. * (webPropertyAdWordsLinks.update) 
  86. * @param string $accountId ID of the account which the given web property 
  87. * belongs to. 
  88. * @param string $webPropertyId Web property ID to retrieve the AdWords link 
  89. * for. 
  90. * @param string $webPropertyAdWordsLinkId Web property-AdWords link ID. 
  91. * @param GoogleGAL_EntityAdWordsLink $postBody 
  92. * @param array $optParams Optional parameters. 
  93. * @return GoogleGAL_Service_Analytics_EntityAdWordsLink 
  94. */ 
  95. public function update($accountId, $webPropertyId, $webPropertyAdWordsLinkId, GoogleGAL_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array()) 
  96. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId, 'postBody' => $postBody); 
  97. $params = array_merge($params, $optParams); 
  98. return $this->call('update', array($params), "GoogleGAL_Service_Analytics_EntityAdWordsLink");