Nenhuma descrição

AdExchangeSeller.php 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  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 AdExchangeSeller (v2.0).
  19. *
  20. * <p>
  21. * Accesses the inventory of Ad Exchange seller users and generates reports.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://developers.google.com/ad-exchange/seller-rest/" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_AdExchangeSeller extends Google_Service
  31. {
  32. /** View and manage your Ad Exchange data. */
  33. const ADEXCHANGE_SELLER =
  34. "https://www.googleapis.com/auth/adexchange.seller";
  35. /** View your Ad Exchange data. */
  36. const ADEXCHANGE_SELLER_READONLY =
  37. "https://www.googleapis.com/auth/adexchange.seller.readonly";
  38. public $accounts;
  39. public $accounts_adclients;
  40. public $accounts_alerts;
  41. public $accounts_customchannels;
  42. public $accounts_metadata_dimensions;
  43. public $accounts_metadata_metrics;
  44. public $accounts_preferreddeals;
  45. public $accounts_reports;
  46. public $accounts_reports_saved;
  47. public $accounts_urlchannels;
  48. /**
  49. * Constructs the internal representation of the AdExchangeSeller service.
  50. *
  51. * @param Google_Client $client
  52. */
  53. public function __construct(Google_Client $client)
  54. {
  55. parent::__construct($client);
  56. $this->rootUrl = 'https://www.googleapis.com/';
  57. $this->servicePath = 'adexchangeseller/v2.0/';
  58. $this->version = 'v2.0';
  59. $this->serviceName = 'adexchangeseller';
  60. $this->accounts = new Google_Service_AdExchangeSeller_Resource_Accounts(
  61. $this,
  62. $this->serviceName,
  63. 'accounts',
  64. array(
  65. 'methods' => array(
  66. 'get' => array(
  67. 'path' => 'accounts/{accountId}',
  68. 'httpMethod' => 'GET',
  69. 'parameters' => array(
  70. 'accountId' => array(
  71. 'location' => 'path',
  72. 'type' => 'string',
  73. 'required' => true,
  74. ),
  75. ),
  76. ),'list' => array(
  77. 'path' => 'accounts',
  78. 'httpMethod' => 'GET',
  79. 'parameters' => array(
  80. 'maxResults' => array(
  81. 'location' => 'query',
  82. 'type' => 'integer',
  83. ),
  84. 'pageToken' => array(
  85. 'location' => 'query',
  86. 'type' => 'string',
  87. ),
  88. ),
  89. ),
  90. )
  91. )
  92. );
  93. $this->accounts_adclients = new Google_Service_AdExchangeSeller_Resource_AccountsAdclients(
  94. $this,
  95. $this->serviceName,
  96. 'adclients',
  97. array(
  98. 'methods' => array(
  99. 'list' => array(
  100. 'path' => 'accounts/{accountId}/adclients',
  101. 'httpMethod' => 'GET',
  102. 'parameters' => array(
  103. 'accountId' => array(
  104. 'location' => 'path',
  105. 'type' => 'string',
  106. 'required' => true,
  107. ),
  108. 'maxResults' => array(
  109. 'location' => 'query',
  110. 'type' => 'integer',
  111. ),
  112. 'pageToken' => array(
  113. 'location' => 'query',
  114. 'type' => 'string',
  115. ),
  116. ),
  117. ),
  118. )
  119. )
  120. );
  121. $this->accounts_alerts = new Google_Service_AdExchangeSeller_Resource_AccountsAlerts(
  122. $this,
  123. $this->serviceName,
  124. 'alerts',
  125. array(
  126. 'methods' => array(
  127. 'list' => array(
  128. 'path' => 'accounts/{accountId}/alerts',
  129. 'httpMethod' => 'GET',
  130. 'parameters' => array(
  131. 'accountId' => array(
  132. 'location' => 'path',
  133. 'type' => 'string',
  134. 'required' => true,
  135. ),
  136. 'locale' => array(
  137. 'location' => 'query',
  138. 'type' => 'string',
  139. ),
  140. ),
  141. ),
  142. )
  143. )
  144. );
  145. $this->accounts_customchannels = new Google_Service_AdExchangeSeller_Resource_AccountsCustomchannels(
  146. $this,
  147. $this->serviceName,
  148. 'customchannels',
  149. array(
  150. 'methods' => array(
  151. 'get' => array(
  152. 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}',
  153. 'httpMethod' => 'GET',
  154. 'parameters' => array(
  155. 'accountId' => array(
  156. 'location' => 'path',
  157. 'type' => 'string',
  158. 'required' => true,
  159. ),
  160. 'adClientId' => array(
  161. 'location' => 'path',
  162. 'type' => 'string',
  163. 'required' => true,
  164. ),
  165. 'customChannelId' => array(
  166. 'location' => 'path',
  167. 'type' => 'string',
  168. 'required' => true,
  169. ),
  170. ),
  171. ),'list' => array(
  172. 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels',
  173. 'httpMethod' => 'GET',
  174. 'parameters' => array(
  175. 'accountId' => array(
  176. 'location' => 'path',
  177. 'type' => 'string',
  178. 'required' => true,
  179. ),
  180. 'adClientId' => array(
  181. 'location' => 'path',
  182. 'type' => 'string',
  183. 'required' => true,
  184. ),
  185. 'maxResults' => array(
  186. 'location' => 'query',
  187. 'type' => 'integer',
  188. ),
  189. 'pageToken' => array(
  190. 'location' => 'query',
  191. 'type' => 'string',
  192. ),
  193. ),
  194. ),
  195. )
  196. )
  197. );
  198. $this->accounts_metadata_dimensions = new Google_Service_AdExchangeSeller_Resource_AccountsMetadataDimensions(
  199. $this,
  200. $this->serviceName,
  201. 'dimensions',
  202. array(
  203. 'methods' => array(
  204. 'list' => array(
  205. 'path' => 'accounts/{accountId}/metadata/dimensions',
  206. 'httpMethod' => 'GET',
  207. 'parameters' => array(
  208. 'accountId' => array(
  209. 'location' => 'path',
  210. 'type' => 'string',
  211. 'required' => true,
  212. ),
  213. ),
  214. ),
  215. )
  216. )
  217. );
  218. $this->accounts_metadata_metrics = new Google_Service_AdExchangeSeller_Resource_AccountsMetadataMetrics(
  219. $this,
  220. $this->serviceName,
  221. 'metrics',
  222. array(
  223. 'methods' => array(
  224. 'list' => array(
  225. 'path' => 'accounts/{accountId}/metadata/metrics',
  226. 'httpMethod' => 'GET',
  227. 'parameters' => array(
  228. 'accountId' => array(
  229. 'location' => 'path',
  230. 'type' => 'string',
  231. 'required' => true,
  232. ),
  233. ),
  234. ),
  235. )
  236. )
  237. );
  238. $this->accounts_preferreddeals = new Google_Service_AdExchangeSeller_Resource_AccountsPreferreddeals(
  239. $this,
  240. $this->serviceName,
  241. 'preferreddeals',
  242. array(
  243. 'methods' => array(
  244. 'get' => array(
  245. 'path' => 'accounts/{accountId}/preferreddeals/{dealId}',
  246. 'httpMethod' => 'GET',
  247. 'parameters' => array(
  248. 'accountId' => array(
  249. 'location' => 'path',
  250. 'type' => 'string',
  251. 'required' => true,
  252. ),
  253. 'dealId' => array(
  254. 'location' => 'path',
  255. 'type' => 'string',
  256. 'required' => true,
  257. ),
  258. ),
  259. ),'list' => array(
  260. 'path' => 'accounts/{accountId}/preferreddeals',
  261. 'httpMethod' => 'GET',
  262. 'parameters' => array(
  263. 'accountId' => array(
  264. 'location' => 'path',
  265. 'type' => 'string',
  266. 'required' => true,
  267. ),
  268. ),
  269. ),
  270. )
  271. )
  272. );
  273. $this->accounts_reports = new Google_Service_AdExchangeSeller_Resource_AccountsReports(
  274. $this,
  275. $this->serviceName,
  276. 'reports',
  277. array(
  278. 'methods' => array(
  279. 'generate' => array(
  280. 'path' => 'accounts/{accountId}/reports',
  281. 'httpMethod' => 'GET',
  282. 'parameters' => array(
  283. 'accountId' => array(
  284. 'location' => 'path',
  285. 'type' => 'string',
  286. 'required' => true,
  287. ),
  288. 'startDate' => array(
  289. 'location' => 'query',
  290. 'type' => 'string',
  291. 'required' => true,
  292. ),
  293. 'endDate' => array(
  294. 'location' => 'query',
  295. 'type' => 'string',
  296. 'required' => true,
  297. ),
  298. 'dimension' => array(
  299. 'location' => 'query',
  300. 'type' => 'string',
  301. 'repeated' => true,
  302. ),
  303. 'filter' => array(
  304. 'location' => 'query',
  305. 'type' => 'string',
  306. 'repeated' => true,
  307. ),
  308. 'locale' => array(
  309. 'location' => 'query',
  310. 'type' => 'string',
  311. ),
  312. 'maxResults' => array(
  313. 'location' => 'query',
  314. 'type' => 'integer',
  315. ),
  316. 'metric' => array(
  317. 'location' => 'query',
  318. 'type' => 'string',
  319. 'repeated' => true,
  320. ),
  321. 'sort' => array(
  322. 'location' => 'query',
  323. 'type' => 'string',
  324. 'repeated' => true,
  325. ),
  326. 'startIndex' => array(
  327. 'location' => 'query',
  328. 'type' => 'integer',
  329. ),
  330. ),
  331. ),
  332. )
  333. )
  334. );
  335. $this->accounts_reports_saved = new Google_Service_AdExchangeSeller_Resource_AccountsReportsSaved(
  336. $this,
  337. $this->serviceName,
  338. 'saved',
  339. array(
  340. 'methods' => array(
  341. 'generate' => array(
  342. 'path' => 'accounts/{accountId}/reports/{savedReportId}',
  343. 'httpMethod' => 'GET',
  344. 'parameters' => array(
  345. 'accountId' => array(
  346. 'location' => 'path',
  347. 'type' => 'string',
  348. 'required' => true,
  349. ),
  350. 'savedReportId' => array(
  351. 'location' => 'path',
  352. 'type' => 'string',
  353. 'required' => true,
  354. ),
  355. 'locale' => array(
  356. 'location' => 'query',
  357. 'type' => 'string',
  358. ),
  359. 'maxResults' => array(
  360. 'location' => 'query',
  361. 'type' => 'integer',
  362. ),
  363. 'startIndex' => array(
  364. 'location' => 'query',
  365. 'type' => 'integer',
  366. ),
  367. ),
  368. ),'list' => array(
  369. 'path' => 'accounts/{accountId}/reports/saved',
  370. 'httpMethod' => 'GET',
  371. 'parameters' => array(
  372. 'accountId' => array(
  373. 'location' => 'path',
  374. 'type' => 'string',
  375. 'required' => true,
  376. ),
  377. 'maxResults' => array(
  378. 'location' => 'query',
  379. 'type' => 'integer',
  380. ),
  381. 'pageToken' => array(
  382. 'location' => 'query',
  383. 'type' => 'string',
  384. ),
  385. ),
  386. ),
  387. )
  388. )
  389. );
  390. $this->accounts_urlchannels = new Google_Service_AdExchangeSeller_Resource_AccountsUrlchannels(
  391. $this,
  392. $this->serviceName,
  393. 'urlchannels',
  394. array(
  395. 'methods' => array(
  396. 'list' => array(
  397. 'path' => 'accounts/{accountId}/adclients/{adClientId}/urlchannels',
  398. 'httpMethod' => 'GET',
  399. 'parameters' => array(
  400. 'accountId' => array(
  401. 'location' => 'path',
  402. 'type' => 'string',
  403. 'required' => true,
  404. ),
  405. 'adClientId' => array(
  406. 'location' => 'path',
  407. 'type' => 'string',
  408. 'required' => true,
  409. ),
  410. 'maxResults' => array(
  411. 'location' => 'query',
  412. 'type' => 'integer',
  413. ),
  414. 'pageToken' => array(
  415. 'location' => 'query',
  416. 'type' => 'string',
  417. ),
  418. ),
  419. ),
  420. )
  421. )
  422. );
  423. }
  424. }