Nenhuma descrição

AdSense.php 33KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060
  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 AdSense (v1.4).
  19. *
  20. * <p>
  21. * Accesses AdSense publishers' inventory and generates performance reports.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://developers.google.com/adsense/management/" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_AdSense extends Google_Service
  31. {
  32. /** View and manage your AdSense data. */
  33. const ADSENSE =
  34. "https://www.googleapis.com/auth/adsense";
  35. /** View your AdSense data. */
  36. const ADSENSE_READONLY =
  37. "https://www.googleapis.com/auth/adsense.readonly";
  38. public $accounts;
  39. public $accounts_adclients;
  40. public $accounts_adunits;
  41. public $accounts_adunits_customchannels;
  42. public $accounts_alerts;
  43. public $accounts_customchannels;
  44. public $accounts_customchannels_adunits;
  45. public $accounts_payments;
  46. public $accounts_reports;
  47. public $accounts_reports_saved;
  48. public $accounts_savedadstyles;
  49. public $accounts_urlchannels;
  50. public $adclients;
  51. public $adunits;
  52. public $adunits_customchannels;
  53. public $alerts;
  54. public $customchannels;
  55. public $customchannels_adunits;
  56. public $metadata_dimensions;
  57. public $metadata_metrics;
  58. public $payments;
  59. public $reports;
  60. public $reports_saved;
  61. public $savedadstyles;
  62. public $urlchannels;
  63. /**
  64. * Constructs the internal representation of the AdSense service.
  65. *
  66. * @param Google_Client $client
  67. */
  68. public function __construct(Google_Client $client)
  69. {
  70. parent::__construct($client);
  71. $this->rootUrl = 'https://www.googleapis.com/';
  72. $this->servicePath = 'adsense/v1.4/';
  73. $this->version = 'v1.4';
  74. $this->serviceName = 'adsense';
  75. $this->accounts = new Google_Service_AdSense_Resource_Accounts(
  76. $this,
  77. $this->serviceName,
  78. 'accounts',
  79. array(
  80. 'methods' => array(
  81. 'get' => array(
  82. 'path' => 'accounts/{accountId}',
  83. 'httpMethod' => 'GET',
  84. 'parameters' => array(
  85. 'accountId' => array(
  86. 'location' => 'path',
  87. 'type' => 'string',
  88. 'required' => true,
  89. ),
  90. 'tree' => array(
  91. 'location' => 'query',
  92. 'type' => 'boolean',
  93. ),
  94. ),
  95. ),'list' => array(
  96. 'path' => 'accounts',
  97. 'httpMethod' => 'GET',
  98. 'parameters' => array(
  99. 'maxResults' => array(
  100. 'location' => 'query',
  101. 'type' => 'integer',
  102. ),
  103. 'pageToken' => array(
  104. 'location' => 'query',
  105. 'type' => 'string',
  106. ),
  107. ),
  108. ),
  109. )
  110. )
  111. );
  112. $this->accounts_adclients = new Google_Service_AdSense_Resource_AccountsAdclients(
  113. $this,
  114. $this->serviceName,
  115. 'adclients',
  116. array(
  117. 'methods' => array(
  118. 'list' => array(
  119. 'path' => 'accounts/{accountId}/adclients',
  120. 'httpMethod' => 'GET',
  121. 'parameters' => array(
  122. 'accountId' => array(
  123. 'location' => 'path',
  124. 'type' => 'string',
  125. 'required' => true,
  126. ),
  127. 'maxResults' => array(
  128. 'location' => 'query',
  129. 'type' => 'integer',
  130. ),
  131. 'pageToken' => array(
  132. 'location' => 'query',
  133. 'type' => 'string',
  134. ),
  135. ),
  136. ),
  137. )
  138. )
  139. );
  140. $this->accounts_adunits = new Google_Service_AdSense_Resource_AccountsAdunits(
  141. $this,
  142. $this->serviceName,
  143. 'adunits',
  144. array(
  145. 'methods' => array(
  146. 'get' => array(
  147. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}',
  148. 'httpMethod' => 'GET',
  149. 'parameters' => array(
  150. 'accountId' => array(
  151. 'location' => 'path',
  152. 'type' => 'string',
  153. 'required' => true,
  154. ),
  155. 'adClientId' => array(
  156. 'location' => 'path',
  157. 'type' => 'string',
  158. 'required' => true,
  159. ),
  160. 'adUnitId' => array(
  161. 'location' => 'path',
  162. 'type' => 'string',
  163. 'required' => true,
  164. ),
  165. ),
  166. ),'getAdCode' => array(
  167. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode',
  168. 'httpMethod' => 'GET',
  169. 'parameters' => array(
  170. 'accountId' => array(
  171. 'location' => 'path',
  172. 'type' => 'string',
  173. 'required' => true,
  174. ),
  175. 'adClientId' => array(
  176. 'location' => 'path',
  177. 'type' => 'string',
  178. 'required' => true,
  179. ),
  180. 'adUnitId' => array(
  181. 'location' => 'path',
  182. 'type' => 'string',
  183. 'required' => true,
  184. ),
  185. ),
  186. ),'list' => array(
  187. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
  188. 'httpMethod' => 'GET',
  189. 'parameters' => array(
  190. 'accountId' => array(
  191. 'location' => 'path',
  192. 'type' => 'string',
  193. 'required' => true,
  194. ),
  195. 'adClientId' => array(
  196. 'location' => 'path',
  197. 'type' => 'string',
  198. 'required' => true,
  199. ),
  200. 'includeInactive' => array(
  201. 'location' => 'query',
  202. 'type' => 'boolean',
  203. ),
  204. 'maxResults' => array(
  205. 'location' => 'query',
  206. 'type' => 'integer',
  207. ),
  208. 'pageToken' => array(
  209. 'location' => 'query',
  210. 'type' => 'string',
  211. ),
  212. ),
  213. ),
  214. )
  215. )
  216. );
  217. $this->accounts_adunits_customchannels = new Google_Service_AdSense_Resource_AccountsAdunitsCustomchannels(
  218. $this,
  219. $this->serviceName,
  220. 'customchannels',
  221. array(
  222. 'methods' => array(
  223. 'list' => array(
  224. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels',
  225. 'httpMethod' => 'GET',
  226. 'parameters' => array(
  227. 'accountId' => array(
  228. 'location' => 'path',
  229. 'type' => 'string',
  230. 'required' => true,
  231. ),
  232. 'adClientId' => array(
  233. 'location' => 'path',
  234. 'type' => 'string',
  235. 'required' => true,
  236. ),
  237. 'adUnitId' => array(
  238. 'location' => 'path',
  239. 'type' => 'string',
  240. 'required' => true,
  241. ),
  242. 'maxResults' => array(
  243. 'location' => 'query',
  244. 'type' => 'integer',
  245. ),
  246. 'pageToken' => array(
  247. 'location' => 'query',
  248. 'type' => 'string',
  249. ),
  250. ),
  251. ),
  252. )
  253. )
  254. );
  255. $this->accounts_alerts = new Google_Service_AdSense_Resource_AccountsAlerts(
  256. $this,
  257. $this->serviceName,
  258. 'alerts',
  259. array(
  260. 'methods' => array(
  261. 'delete' => array(
  262. 'path' => 'accounts/{accountId}/alerts/{alertId}',
  263. 'httpMethod' => 'DELETE',
  264. 'parameters' => array(
  265. 'accountId' => array(
  266. 'location' => 'path',
  267. 'type' => 'string',
  268. 'required' => true,
  269. ),
  270. 'alertId' => array(
  271. 'location' => 'path',
  272. 'type' => 'string',
  273. 'required' => true,
  274. ),
  275. ),
  276. ),'list' => array(
  277. 'path' => 'accounts/{accountId}/alerts',
  278. 'httpMethod' => 'GET',
  279. 'parameters' => array(
  280. 'accountId' => array(
  281. 'location' => 'path',
  282. 'type' => 'string',
  283. 'required' => true,
  284. ),
  285. 'locale' => array(
  286. 'location' => 'query',
  287. 'type' => 'string',
  288. ),
  289. ),
  290. ),
  291. )
  292. )
  293. );
  294. $this->accounts_customchannels = new Google_Service_AdSense_Resource_AccountsCustomchannels(
  295. $this,
  296. $this->serviceName,
  297. 'customchannels',
  298. array(
  299. 'methods' => array(
  300. 'get' => array(
  301. 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}',
  302. 'httpMethod' => 'GET',
  303. 'parameters' => array(
  304. 'accountId' => array(
  305. 'location' => 'path',
  306. 'type' => 'string',
  307. 'required' => true,
  308. ),
  309. 'adClientId' => array(
  310. 'location' => 'path',
  311. 'type' => 'string',
  312. 'required' => true,
  313. ),
  314. 'customChannelId' => array(
  315. 'location' => 'path',
  316. 'type' => 'string',
  317. 'required' => true,
  318. ),
  319. ),
  320. ),'list' => array(
  321. 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels',
  322. 'httpMethod' => 'GET',
  323. 'parameters' => array(
  324. 'accountId' => array(
  325. 'location' => 'path',
  326. 'type' => 'string',
  327. 'required' => true,
  328. ),
  329. 'adClientId' => array(
  330. 'location' => 'path',
  331. 'type' => 'string',
  332. 'required' => true,
  333. ),
  334. 'maxResults' => array(
  335. 'location' => 'query',
  336. 'type' => 'integer',
  337. ),
  338. 'pageToken' => array(
  339. 'location' => 'query',
  340. 'type' => 'string',
  341. ),
  342. ),
  343. ),
  344. )
  345. )
  346. );
  347. $this->accounts_customchannels_adunits = new Google_Service_AdSense_Resource_AccountsCustomchannelsAdunits(
  348. $this,
  349. $this->serviceName,
  350. 'adunits',
  351. array(
  352. 'methods' => array(
  353. 'list' => array(
  354. 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits',
  355. 'httpMethod' => 'GET',
  356. 'parameters' => array(
  357. 'accountId' => array(
  358. 'location' => 'path',
  359. 'type' => 'string',
  360. 'required' => true,
  361. ),
  362. 'adClientId' => array(
  363. 'location' => 'path',
  364. 'type' => 'string',
  365. 'required' => true,
  366. ),
  367. 'customChannelId' => array(
  368. 'location' => 'path',
  369. 'type' => 'string',
  370. 'required' => true,
  371. ),
  372. 'includeInactive' => array(
  373. 'location' => 'query',
  374. 'type' => 'boolean',
  375. ),
  376. 'maxResults' => array(
  377. 'location' => 'query',
  378. 'type' => 'integer',
  379. ),
  380. 'pageToken' => array(
  381. 'location' => 'query',
  382. 'type' => 'string',
  383. ),
  384. ),
  385. ),
  386. )
  387. )
  388. );
  389. $this->accounts_payments = new Google_Service_AdSense_Resource_AccountsPayments(
  390. $this,
  391. $this->serviceName,
  392. 'payments',
  393. array(
  394. 'methods' => array(
  395. 'list' => array(
  396. 'path' => 'accounts/{accountId}/payments',
  397. 'httpMethod' => 'GET',
  398. 'parameters' => array(
  399. 'accountId' => array(
  400. 'location' => 'path',
  401. 'type' => 'string',
  402. 'required' => true,
  403. ),
  404. ),
  405. ),
  406. )
  407. )
  408. );
  409. $this->accounts_reports = new Google_Service_AdSense_Resource_AccountsReports(
  410. $this,
  411. $this->serviceName,
  412. 'reports',
  413. array(
  414. 'methods' => array(
  415. 'generate' => array(
  416. 'path' => 'accounts/{accountId}/reports',
  417. 'httpMethod' => 'GET',
  418. 'parameters' => array(
  419. 'accountId' => array(
  420. 'location' => 'path',
  421. 'type' => 'string',
  422. 'required' => true,
  423. ),
  424. 'startDate' => array(
  425. 'location' => 'query',
  426. 'type' => 'string',
  427. 'required' => true,
  428. ),
  429. 'endDate' => array(
  430. 'location' => 'query',
  431. 'type' => 'string',
  432. 'required' => true,
  433. ),
  434. 'currency' => array(
  435. 'location' => 'query',
  436. 'type' => 'string',
  437. ),
  438. 'dimension' => array(
  439. 'location' => 'query',
  440. 'type' => 'string',
  441. 'repeated' => true,
  442. ),
  443. 'filter' => array(
  444. 'location' => 'query',
  445. 'type' => 'string',
  446. 'repeated' => true,
  447. ),
  448. 'locale' => array(
  449. 'location' => 'query',
  450. 'type' => 'string',
  451. ),
  452. 'maxResults' => array(
  453. 'location' => 'query',
  454. 'type' => 'integer',
  455. ),
  456. 'metric' => array(
  457. 'location' => 'query',
  458. 'type' => 'string',
  459. 'repeated' => true,
  460. ),
  461. 'sort' => array(
  462. 'location' => 'query',
  463. 'type' => 'string',
  464. 'repeated' => true,
  465. ),
  466. 'startIndex' => array(
  467. 'location' => 'query',
  468. 'type' => 'integer',
  469. ),
  470. 'useTimezoneReporting' => array(
  471. 'location' => 'query',
  472. 'type' => 'boolean',
  473. ),
  474. ),
  475. ),
  476. )
  477. )
  478. );
  479. $this->accounts_reports_saved = new Google_Service_AdSense_Resource_AccountsReportsSaved(
  480. $this,
  481. $this->serviceName,
  482. 'saved',
  483. array(
  484. 'methods' => array(
  485. 'generate' => array(
  486. 'path' => 'accounts/{accountId}/reports/{savedReportId}',
  487. 'httpMethod' => 'GET',
  488. 'parameters' => array(
  489. 'accountId' => array(
  490. 'location' => 'path',
  491. 'type' => 'string',
  492. 'required' => true,
  493. ),
  494. 'savedReportId' => array(
  495. 'location' => 'path',
  496. 'type' => 'string',
  497. 'required' => true,
  498. ),
  499. 'locale' => array(
  500. 'location' => 'query',
  501. 'type' => 'string',
  502. ),
  503. 'maxResults' => array(
  504. 'location' => 'query',
  505. 'type' => 'integer',
  506. ),
  507. 'startIndex' => array(
  508. 'location' => 'query',
  509. 'type' => 'integer',
  510. ),
  511. ),
  512. ),'list' => array(
  513. 'path' => 'accounts/{accountId}/reports/saved',
  514. 'httpMethod' => 'GET',
  515. 'parameters' => array(
  516. 'accountId' => array(
  517. 'location' => 'path',
  518. 'type' => 'string',
  519. 'required' => true,
  520. ),
  521. 'maxResults' => array(
  522. 'location' => 'query',
  523. 'type' => 'integer',
  524. ),
  525. 'pageToken' => array(
  526. 'location' => 'query',
  527. 'type' => 'string',
  528. ),
  529. ),
  530. ),
  531. )
  532. )
  533. );
  534. $this->accounts_savedadstyles = new Google_Service_AdSense_Resource_AccountsSavedadstyles(
  535. $this,
  536. $this->serviceName,
  537. 'savedadstyles',
  538. array(
  539. 'methods' => array(
  540. 'get' => array(
  541. 'path' => 'accounts/{accountId}/savedadstyles/{savedAdStyleId}',
  542. 'httpMethod' => 'GET',
  543. 'parameters' => array(
  544. 'accountId' => array(
  545. 'location' => 'path',
  546. 'type' => 'string',
  547. 'required' => true,
  548. ),
  549. 'savedAdStyleId' => array(
  550. 'location' => 'path',
  551. 'type' => 'string',
  552. 'required' => true,
  553. ),
  554. ),
  555. ),'list' => array(
  556. 'path' => 'accounts/{accountId}/savedadstyles',
  557. 'httpMethod' => 'GET',
  558. 'parameters' => array(
  559. 'accountId' => array(
  560. 'location' => 'path',
  561. 'type' => 'string',
  562. 'required' => true,
  563. ),
  564. 'maxResults' => array(
  565. 'location' => 'query',
  566. 'type' => 'integer',
  567. ),
  568. 'pageToken' => array(
  569. 'location' => 'query',
  570. 'type' => 'string',
  571. ),
  572. ),
  573. ),
  574. )
  575. )
  576. );
  577. $this->accounts_urlchannels = new Google_Service_AdSense_Resource_AccountsUrlchannels(
  578. $this,
  579. $this->serviceName,
  580. 'urlchannels',
  581. array(
  582. 'methods' => array(
  583. 'list' => array(
  584. 'path' => 'accounts/{accountId}/adclients/{adClientId}/urlchannels',
  585. 'httpMethod' => 'GET',
  586. 'parameters' => array(
  587. 'accountId' => array(
  588. 'location' => 'path',
  589. 'type' => 'string',
  590. 'required' => true,
  591. ),
  592. 'adClientId' => array(
  593. 'location' => 'path',
  594. 'type' => 'string',
  595. 'required' => true,
  596. ),
  597. 'maxResults' => array(
  598. 'location' => 'query',
  599. 'type' => 'integer',
  600. ),
  601. 'pageToken' => array(
  602. 'location' => 'query',
  603. 'type' => 'string',
  604. ),
  605. ),
  606. ),
  607. )
  608. )
  609. );
  610. $this->adclients = new Google_Service_AdSense_Resource_Adclients(
  611. $this,
  612. $this->serviceName,
  613. 'adclients',
  614. array(
  615. 'methods' => array(
  616. 'list' => array(
  617. 'path' => 'adclients',
  618. 'httpMethod' => 'GET',
  619. 'parameters' => array(
  620. 'maxResults' => array(
  621. 'location' => 'query',
  622. 'type' => 'integer',
  623. ),
  624. 'pageToken' => array(
  625. 'location' => 'query',
  626. 'type' => 'string',
  627. ),
  628. ),
  629. ),
  630. )
  631. )
  632. );
  633. $this->adunits = new Google_Service_AdSense_Resource_Adunits(
  634. $this,
  635. $this->serviceName,
  636. 'adunits',
  637. array(
  638. 'methods' => array(
  639. 'get' => array(
  640. 'path' => 'adclients/{adClientId}/adunits/{adUnitId}',
  641. 'httpMethod' => 'GET',
  642. 'parameters' => array(
  643. 'adClientId' => array(
  644. 'location' => 'path',
  645. 'type' => 'string',
  646. 'required' => true,
  647. ),
  648. 'adUnitId' => array(
  649. 'location' => 'path',
  650. 'type' => 'string',
  651. 'required' => true,
  652. ),
  653. ),
  654. ),'getAdCode' => array(
  655. 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/adcode',
  656. 'httpMethod' => 'GET',
  657. 'parameters' => array(
  658. 'adClientId' => array(
  659. 'location' => 'path',
  660. 'type' => 'string',
  661. 'required' => true,
  662. ),
  663. 'adUnitId' => array(
  664. 'location' => 'path',
  665. 'type' => 'string',
  666. 'required' => true,
  667. ),
  668. ),
  669. ),'list' => array(
  670. 'path' => 'adclients/{adClientId}/adunits',
  671. 'httpMethod' => 'GET',
  672. 'parameters' => array(
  673. 'adClientId' => array(
  674. 'location' => 'path',
  675. 'type' => 'string',
  676. 'required' => true,
  677. ),
  678. 'includeInactive' => array(
  679. 'location' => 'query',
  680. 'type' => 'boolean',
  681. ),
  682. 'maxResults' => array(
  683. 'location' => 'query',
  684. 'type' => 'integer',
  685. ),
  686. 'pageToken' => array(
  687. 'location' => 'query',
  688. 'type' => 'string',
  689. ),
  690. ),
  691. ),
  692. )
  693. )
  694. );
  695. $this->adunits_customchannels = new Google_Service_AdSense_Resource_AdunitsCustomchannels(
  696. $this,
  697. $this->serviceName,
  698. 'customchannels',
  699. array(
  700. 'methods' => array(
  701. 'list' => array(
  702. 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/customchannels',
  703. 'httpMethod' => 'GET',
  704. 'parameters' => array(
  705. 'adClientId' => array(
  706. 'location' => 'path',
  707. 'type' => 'string',
  708. 'required' => true,
  709. ),
  710. 'adUnitId' => array(
  711. 'location' => 'path',
  712. 'type' => 'string',
  713. 'required' => true,
  714. ),
  715. 'maxResults' => array(
  716. 'location' => 'query',
  717. 'type' => 'integer',
  718. ),
  719. 'pageToken' => array(
  720. 'location' => 'query',
  721. 'type' => 'string',
  722. ),
  723. ),
  724. ),
  725. )
  726. )
  727. );
  728. $this->alerts = new Google_Service_AdSense_Resource_Alerts(
  729. $this,
  730. $this->serviceName,
  731. 'alerts',
  732. array(
  733. 'methods' => array(
  734. 'delete' => array(
  735. 'path' => 'alerts/{alertId}',
  736. 'httpMethod' => 'DELETE',
  737. 'parameters' => array(
  738. 'alertId' => array(
  739. 'location' => 'path',
  740. 'type' => 'string',
  741. 'required' => true,
  742. ),
  743. ),
  744. ),'list' => array(
  745. 'path' => 'alerts',
  746. 'httpMethod' => 'GET',
  747. 'parameters' => array(
  748. 'locale' => array(
  749. 'location' => 'query',
  750. 'type' => 'string',
  751. ),
  752. ),
  753. ),
  754. )
  755. )
  756. );
  757. $this->customchannels = new Google_Service_AdSense_Resource_Customchannels(
  758. $this,
  759. $this->serviceName,
  760. 'customchannels',
  761. array(
  762. 'methods' => array(
  763. 'get' => array(
  764. 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}',
  765. 'httpMethod' => 'GET',
  766. 'parameters' => array(
  767. 'adClientId' => array(
  768. 'location' => 'path',
  769. 'type' => 'string',
  770. 'required' => true,
  771. ),
  772. 'customChannelId' => array(
  773. 'location' => 'path',
  774. 'type' => 'string',
  775. 'required' => true,
  776. ),
  777. ),
  778. ),'list' => array(
  779. 'path' => 'adclients/{adClientId}/customchannels',
  780. 'httpMethod' => 'GET',
  781. 'parameters' => array(
  782. 'adClientId' => array(
  783. 'location' => 'path',
  784. 'type' => 'string',
  785. 'required' => true,
  786. ),
  787. 'maxResults' => array(
  788. 'location' => 'query',
  789. 'type' => 'integer',
  790. ),
  791. 'pageToken' => array(
  792. 'location' => 'query',
  793. 'type' => 'string',
  794. ),
  795. ),
  796. ),
  797. )
  798. )
  799. );
  800. $this->customchannels_adunits = new Google_Service_AdSense_Resource_CustomchannelsAdunits(
  801. $this,
  802. $this->serviceName,
  803. 'adunits',
  804. array(
  805. 'methods' => array(
  806. 'list' => array(
  807. 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}/adunits',
  808. 'httpMethod' => 'GET',
  809. 'parameters' => array(
  810. 'adClientId' => array(
  811. 'location' => 'path',
  812. 'type' => 'string',
  813. 'required' => true,
  814. ),
  815. 'customChannelId' => array(
  816. 'location' => 'path',
  817. 'type' => 'string',
  818. 'required' => true,
  819. ),
  820. 'includeInactive' => array(
  821. 'location' => 'query',
  822. 'type' => 'boolean',
  823. ),
  824. 'maxResults' => array(
  825. 'location' => 'query',
  826. 'type' => 'integer',
  827. ),
  828. 'pageToken' => array(
  829. 'location' => 'query',
  830. 'type' => 'string',
  831. ),
  832. ),
  833. ),
  834. )
  835. )
  836. );
  837. $this->metadata_dimensions = new Google_Service_AdSense_Resource_MetadataDimensions(
  838. $this,
  839. $this->serviceName,
  840. 'dimensions',
  841. array(
  842. 'methods' => array(
  843. 'list' => array(
  844. 'path' => 'metadata/dimensions',
  845. 'httpMethod' => 'GET',
  846. 'parameters' => array(),
  847. ),
  848. )
  849. )
  850. );
  851. $this->metadata_metrics = new Google_Service_AdSense_Resource_MetadataMetrics(
  852. $this,
  853. $this->serviceName,
  854. 'metrics',
  855. array(
  856. 'methods' => array(
  857. 'list' => array(
  858. 'path' => 'metadata/metrics',
  859. 'httpMethod' => 'GET',
  860. 'parameters' => array(),
  861. ),
  862. )
  863. )
  864. );
  865. $this->payments = new Google_Service_AdSense_Resource_Payments(
  866. $this,
  867. $this->serviceName,
  868. 'payments',
  869. array(
  870. 'methods' => array(
  871. 'list' => array(
  872. 'path' => 'payments',
  873. 'httpMethod' => 'GET',
  874. 'parameters' => array(),
  875. ),
  876. )
  877. )
  878. );
  879. $this->reports = new Google_Service_AdSense_Resource_Reports(
  880. $this,
  881. $this->serviceName,
  882. 'reports',
  883. array(
  884. 'methods' => array(
  885. 'generate' => array(
  886. 'path' => 'reports',
  887. 'httpMethod' => 'GET',
  888. 'parameters' => array(
  889. 'startDate' => array(
  890. 'location' => 'query',
  891. 'type' => 'string',
  892. 'required' => true,
  893. ),
  894. 'endDate' => array(
  895. 'location' => 'query',
  896. 'type' => 'string',
  897. 'required' => true,
  898. ),
  899. 'accountId' => array(
  900. 'location' => 'query',
  901. 'type' => 'string',
  902. 'repeated' => true,
  903. ),
  904. 'currency' => array(
  905. 'location' => 'query',
  906. 'type' => 'string',
  907. ),
  908. 'dimension' => array(
  909. 'location' => 'query',
  910. 'type' => 'string',
  911. 'repeated' => true,
  912. ),
  913. 'filter' => array(
  914. 'location' => 'query',
  915. 'type' => 'string',
  916. 'repeated' => true,
  917. ),
  918. 'locale' => array(
  919. 'location' => 'query',
  920. 'type' => 'string',
  921. ),
  922. 'maxResults' => array(
  923. 'location' => 'query',
  924. 'type' => 'integer',
  925. ),
  926. 'metric' => array(
  927. 'location' => 'query',
  928. 'type' => 'string',
  929. 'repeated' => true,
  930. ),
  931. 'sort' => array(
  932. 'location' => 'query',
  933. 'type' => 'string',
  934. 'repeated' => true,
  935. ),
  936. 'startIndex' => array(
  937. 'location' => 'query',
  938. 'type' => 'integer',
  939. ),
  940. 'useTimezoneReporting' => array(
  941. 'location' => 'query',
  942. 'type' => 'boolean',
  943. ),
  944. ),
  945. ),
  946. )
  947. )
  948. );
  949. $this->reports_saved = new Google_Service_AdSense_Resource_ReportsSaved(
  950. $this,
  951. $this->serviceName,
  952. 'saved',
  953. array(
  954. 'methods' => array(
  955. 'generate' => array(
  956. 'path' => 'reports/{savedReportId}',
  957. 'httpMethod' => 'GET',
  958. 'parameters' => array(
  959. 'savedReportId' => array(
  960. 'location' => 'path',
  961. 'type' => 'string',
  962. 'required' => true,
  963. ),
  964. 'locale' => array(
  965. 'location' => 'query',
  966. 'type' => 'string',
  967. ),
  968. 'maxResults' => array(
  969. 'location' => 'query',
  970. 'type' => 'integer',
  971. ),
  972. 'startIndex' => array(
  973. 'location' => 'query',
  974. 'type' => 'integer',
  975. ),
  976. ),
  977. ),'list' => array(
  978. 'path' => 'reports/saved',
  979. 'httpMethod' => 'GET',
  980. 'parameters' => array(
  981. 'maxResults' => array(
  982. 'location' => 'query',
  983. 'type' => 'integer',
  984. ),
  985. 'pageToken' => array(
  986. 'location' => 'query',
  987. 'type' => 'string',
  988. ),
  989. ),
  990. ),
  991. )
  992. )
  993. );
  994. $this->savedadstyles = new Google_Service_AdSense_Resource_Savedadstyles(
  995. $this,
  996. $this->serviceName,
  997. 'savedadstyles',
  998. array(
  999. 'methods' => array(
  1000. 'get' => array(
  1001. 'path' => 'savedadstyles/{savedAdStyleId}',
  1002. 'httpMethod' => 'GET',
  1003. 'parameters' => array(
  1004. 'savedAdStyleId' => array(
  1005. 'location' => 'path',
  1006. 'type' => 'string',
  1007. 'required' => true,
  1008. ),
  1009. ),
  1010. ),'list' => array(
  1011. 'path' => 'savedadstyles',
  1012. 'httpMethod' => 'GET',
  1013. 'parameters' => array(
  1014. 'maxResults' => array(
  1015. 'location' => 'query',
  1016. 'type' => 'integer',
  1017. ),
  1018. 'pageToken' => array(
  1019. 'location' => 'query',
  1020. 'type' => 'string',
  1021. ),
  1022. ),
  1023. ),
  1024. )
  1025. )
  1026. );
  1027. $this->urlchannels = new Google_Service_AdSense_Resource_Urlchannels(
  1028. $this,
  1029. $this->serviceName,
  1030. 'urlchannels',
  1031. array(
  1032. 'methods' => array(
  1033. 'list' => array(
  1034. 'path' => 'adclients/{adClientId}/urlchannels',
  1035. 'httpMethod' => 'GET',
  1036. 'parameters' => array(
  1037. 'adClientId' => array(
  1038. 'location' => 'path',
  1039. 'type' => 'string',
  1040. 'required' => true,
  1041. ),
  1042. 'maxResults' => array(
  1043. 'location' => 'query',
  1044. 'type' => 'integer',
  1045. ),
  1046. 'pageToken' => array(
  1047. 'location' => 'query',
  1048. 'type' => 'string',
  1049. ),
  1050. ),
  1051. ),
  1052. )
  1053. )
  1054. );
  1055. }
  1056. }