Bez popisu

Doubleclicksearch.php 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for Doubleclicksearch (v2).
  19. *
  20. * <p>
  21. * Reports and modifies your advertising data in DoubleClick Search (for
  22. * example, campaigns, ad groups, keywords, and conversions).</p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://developers.google.com/doubleclick-search/" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_Doubleclicksearch extends Google_Service
  32. {
  33. /** View and manage your advertising data in DoubleClick Search. */
  34. const DOUBLECLICKSEARCH =
  35. "https://www.googleapis.com/auth/doubleclicksearch";
  36. public $conversion;
  37. public $reports;
  38. public $savedColumns;
  39. /**
  40. * Constructs the internal representation of the Doubleclicksearch service.
  41. *
  42. * @param Google_Client $client
  43. */
  44. public function __construct(Google_Client $client)
  45. {
  46. parent::__construct($client);
  47. $this->rootUrl = 'https://www.googleapis.com/';
  48. $this->servicePath = 'doubleclicksearch/v2/';
  49. $this->version = 'v2';
  50. $this->serviceName = 'doubleclicksearch';
  51. $this->conversion = new Google_Service_Doubleclicksearch_Resource_Conversion(
  52. $this,
  53. $this->serviceName,
  54. 'conversion',
  55. array(
  56. 'methods' => array(
  57. 'get' => array(
  58. 'path' => 'agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion',
  59. 'httpMethod' => 'GET',
  60. 'parameters' => array(
  61. 'agencyId' => array(
  62. 'location' => 'path',
  63. 'type' => 'string',
  64. 'required' => true,
  65. ),
  66. 'advertiserId' => array(
  67. 'location' => 'path',
  68. 'type' => 'string',
  69. 'required' => true,
  70. ),
  71. 'engineAccountId' => array(
  72. 'location' => 'path',
  73. 'type' => 'string',
  74. 'required' => true,
  75. ),
  76. 'endDate' => array(
  77. 'location' => 'query',
  78. 'type' => 'integer',
  79. 'required' => true,
  80. ),
  81. 'rowCount' => array(
  82. 'location' => 'query',
  83. 'type' => 'integer',
  84. 'required' => true,
  85. ),
  86. 'startDate' => array(
  87. 'location' => 'query',
  88. 'type' => 'integer',
  89. 'required' => true,
  90. ),
  91. 'startRow' => array(
  92. 'location' => 'query',
  93. 'type' => 'integer',
  94. 'required' => true,
  95. ),
  96. 'adGroupId' => array(
  97. 'location' => 'query',
  98. 'type' => 'string',
  99. ),
  100. 'adId' => array(
  101. 'location' => 'query',
  102. 'type' => 'string',
  103. ),
  104. 'campaignId' => array(
  105. 'location' => 'query',
  106. 'type' => 'string',
  107. ),
  108. 'criterionId' => array(
  109. 'location' => 'query',
  110. 'type' => 'string',
  111. ),
  112. ),
  113. ),'insert' => array(
  114. 'path' => 'conversion',
  115. 'httpMethod' => 'POST',
  116. 'parameters' => array(),
  117. ),'patch' => array(
  118. 'path' => 'conversion',
  119. 'httpMethod' => 'PATCH',
  120. 'parameters' => array(
  121. 'advertiserId' => array(
  122. 'location' => 'query',
  123. 'type' => 'string',
  124. 'required' => true,
  125. ),
  126. 'agencyId' => array(
  127. 'location' => 'query',
  128. 'type' => 'string',
  129. 'required' => true,
  130. ),
  131. 'endDate' => array(
  132. 'location' => 'query',
  133. 'type' => 'integer',
  134. 'required' => true,
  135. ),
  136. 'engineAccountId' => array(
  137. 'location' => 'query',
  138. 'type' => 'string',
  139. 'required' => true,
  140. ),
  141. 'rowCount' => array(
  142. 'location' => 'query',
  143. 'type' => 'integer',
  144. 'required' => true,
  145. ),
  146. 'startDate' => array(
  147. 'location' => 'query',
  148. 'type' => 'integer',
  149. 'required' => true,
  150. ),
  151. 'startRow' => array(
  152. 'location' => 'query',
  153. 'type' => 'integer',
  154. 'required' => true,
  155. ),
  156. ),
  157. ),'update' => array(
  158. 'path' => 'conversion',
  159. 'httpMethod' => 'PUT',
  160. 'parameters' => array(),
  161. ),'updateAvailability' => array(
  162. 'path' => 'conversion/updateAvailability',
  163. 'httpMethod' => 'POST',
  164. 'parameters' => array(),
  165. ),
  166. )
  167. )
  168. );
  169. $this->reports = new Google_Service_Doubleclicksearch_Resource_Reports(
  170. $this,
  171. $this->serviceName,
  172. 'reports',
  173. array(
  174. 'methods' => array(
  175. 'generate' => array(
  176. 'path' => 'reports/generate',
  177. 'httpMethod' => 'POST',
  178. 'parameters' => array(),
  179. ),'get' => array(
  180. 'path' => 'reports/{reportId}',
  181. 'httpMethod' => 'GET',
  182. 'parameters' => array(
  183. 'reportId' => array(
  184. 'location' => 'path',
  185. 'type' => 'string',
  186. 'required' => true,
  187. ),
  188. ),
  189. ),'getFile' => array(
  190. 'path' => 'reports/{reportId}/files/{reportFragment}',
  191. 'httpMethod' => 'GET',
  192. 'parameters' => array(
  193. 'reportId' => array(
  194. 'location' => 'path',
  195. 'type' => 'string',
  196. 'required' => true,
  197. ),
  198. 'reportFragment' => array(
  199. 'location' => 'path',
  200. 'type' => 'integer',
  201. 'required' => true,
  202. ),
  203. ),
  204. ),'request' => array(
  205. 'path' => 'reports',
  206. 'httpMethod' => 'POST',
  207. 'parameters' => array(),
  208. ),
  209. )
  210. )
  211. );
  212. $this->savedColumns = new Google_Service_Doubleclicksearch_Resource_SavedColumns(
  213. $this,
  214. $this->serviceName,
  215. 'savedColumns',
  216. array(
  217. 'methods' => array(
  218. 'list' => array(
  219. 'path' => 'agency/{agencyId}/advertiser/{advertiserId}/savedcolumns',
  220. 'httpMethod' => 'GET',
  221. 'parameters' => array(
  222. 'agencyId' => array(
  223. 'location' => 'path',
  224. 'type' => 'string',
  225. 'required' => true,
  226. ),
  227. 'advertiserId' => array(
  228. 'location' => 'path',
  229. 'type' => 'string',
  230. 'required' => true,
  231. ),
  232. ),
  233. ),
  234. )
  235. )
  236. );
  237. }
  238. }