PageRenderTime 66ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/google/src/Google/Service/AdSense.php

https://bitbucket.org/moodle/moodle
PHP | 3596 lines | 2714 code | 158 blank | 724 comment | 0 complexity | c18b8434ec733be72e88690d4577752b MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.1, BSD-3-Clause, MIT, GPL-3.0
  1. <?php
  2. /*
  3. * Copyright 2010 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. * Gives AdSense publishers access to their inventory and the ability to
  22. * generate reports</p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://developers.google.com/adsense/management/" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_AdSense extends Google_Service
  32. {
  33. /** View and manage your AdSense data. */
  34. const ADSENSE =
  35. "https://www.googleapis.com/auth/adsense";
  36. /** View your AdSense data. */
  37. const ADSENSE_READONLY =
  38. "https://www.googleapis.com/auth/adsense.readonly";
  39. public $accounts;
  40. public $accounts_adclients;
  41. public $accounts_adunits;
  42. public $accounts_adunits_customchannels;
  43. public $accounts_alerts;
  44. public $accounts_customchannels;
  45. public $accounts_customchannels_adunits;
  46. public $accounts_payments;
  47. public $accounts_reports;
  48. public $accounts_reports_saved;
  49. public $accounts_savedadstyles;
  50. public $accounts_urlchannels;
  51. public $adclients;
  52. public $adunits;
  53. public $adunits_customchannels;
  54. public $alerts;
  55. public $customchannels;
  56. public $customchannels_adunits;
  57. public $metadata_dimensions;
  58. public $metadata_metrics;
  59. public $payments;
  60. public $reports;
  61. public $reports_saved;
  62. public $savedadstyles;
  63. public $urlchannels;
  64. /**
  65. * Constructs the internal representation of the AdSense service.
  66. *
  67. * @param Google_Client $client
  68. */
  69. public function __construct(Google_Client $client)
  70. {
  71. parent::__construct($client);
  72. $this->rootUrl = 'https://www.googleapis.com/';
  73. $this->servicePath = 'adsense/v1.4/';
  74. $this->version = 'v1.4';
  75. $this->serviceName = 'adsense';
  76. $this->accounts = new Google_Service_AdSense_Accounts_Resource(
  77. $this,
  78. $this->serviceName,
  79. 'accounts',
  80. array(
  81. 'methods' => array(
  82. 'get' => array(
  83. 'path' => 'accounts/{accountId}',
  84. 'httpMethod' => 'GET',
  85. 'parameters' => array(
  86. 'accountId' => array(
  87. 'location' => 'path',
  88. 'type' => 'string',
  89. 'required' => true,
  90. ),
  91. 'tree' => array(
  92. 'location' => 'query',
  93. 'type' => 'boolean',
  94. ),
  95. ),
  96. ),'list' => array(
  97. 'path' => 'accounts',
  98. 'httpMethod' => 'GET',
  99. 'parameters' => array(
  100. 'pageToken' => array(
  101. 'location' => 'query',
  102. 'type' => 'string',
  103. ),
  104. 'maxResults' => array(
  105. 'location' => 'query',
  106. 'type' => 'integer',
  107. ),
  108. ),
  109. ),
  110. )
  111. )
  112. );
  113. $this->accounts_adclients = new Google_Service_AdSense_AccountsAdclients_Resource(
  114. $this,
  115. $this->serviceName,
  116. 'adclients',
  117. array(
  118. 'methods' => array(
  119. 'list' => array(
  120. 'path' => 'accounts/{accountId}/adclients',
  121. 'httpMethod' => 'GET',
  122. 'parameters' => array(
  123. 'accountId' => array(
  124. 'location' => 'path',
  125. 'type' => 'string',
  126. 'required' => true,
  127. ),
  128. 'pageToken' => array(
  129. 'location' => 'query',
  130. 'type' => 'string',
  131. ),
  132. 'maxResults' => array(
  133. 'location' => 'query',
  134. 'type' => 'integer',
  135. ),
  136. ),
  137. ),
  138. )
  139. )
  140. );
  141. $this->accounts_adunits = new Google_Service_AdSense_AccountsAdunits_Resource(
  142. $this,
  143. $this->serviceName,
  144. 'adunits',
  145. array(
  146. 'methods' => array(
  147. 'get' => array(
  148. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}',
  149. 'httpMethod' => 'GET',
  150. 'parameters' => array(
  151. 'accountId' => array(
  152. 'location' => 'path',
  153. 'type' => 'string',
  154. 'required' => true,
  155. ),
  156. 'adClientId' => array(
  157. 'location' => 'path',
  158. 'type' => 'string',
  159. 'required' => true,
  160. ),
  161. 'adUnitId' => array(
  162. 'location' => 'path',
  163. 'type' => 'string',
  164. 'required' => true,
  165. ),
  166. ),
  167. ),'getAdCode' => array(
  168. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode',
  169. 'httpMethod' => 'GET',
  170. 'parameters' => array(
  171. 'accountId' => array(
  172. 'location' => 'path',
  173. 'type' => 'string',
  174. 'required' => true,
  175. ),
  176. 'adClientId' => array(
  177. 'location' => 'path',
  178. 'type' => 'string',
  179. 'required' => true,
  180. ),
  181. 'adUnitId' => array(
  182. 'location' => 'path',
  183. 'type' => 'string',
  184. 'required' => true,
  185. ),
  186. ),
  187. ),'list' => array(
  188. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
  189. 'httpMethod' => 'GET',
  190. 'parameters' => array(
  191. 'accountId' => array(
  192. 'location' => 'path',
  193. 'type' => 'string',
  194. 'required' => true,
  195. ),
  196. 'adClientId' => array(
  197. 'location' => 'path',
  198. 'type' => 'string',
  199. 'required' => true,
  200. ),
  201. 'includeInactive' => array(
  202. 'location' => 'query',
  203. 'type' => 'boolean',
  204. ),
  205. 'pageToken' => array(
  206. 'location' => 'query',
  207. 'type' => 'string',
  208. ),
  209. 'maxResults' => array(
  210. 'location' => 'query',
  211. 'type' => 'integer',
  212. ),
  213. ),
  214. ),
  215. )
  216. )
  217. );
  218. $this->accounts_adunits_customchannels = new Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource(
  219. $this,
  220. $this->serviceName,
  221. 'customchannels',
  222. array(
  223. 'methods' => array(
  224. 'list' => array(
  225. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels',
  226. 'httpMethod' => 'GET',
  227. 'parameters' => array(
  228. 'accountId' => array(
  229. 'location' => 'path',
  230. 'type' => 'string',
  231. 'required' => true,
  232. ),
  233. 'adClientId' => array(
  234. 'location' => 'path',
  235. 'type' => 'string',
  236. 'required' => true,
  237. ),
  238. 'adUnitId' => array(
  239. 'location' => 'path',
  240. 'type' => 'string',
  241. 'required' => true,
  242. ),
  243. 'pageToken' => array(
  244. 'location' => 'query',
  245. 'type' => 'string',
  246. ),
  247. 'maxResults' => array(
  248. 'location' => 'query',
  249. 'type' => 'integer',
  250. ),
  251. ),
  252. ),
  253. )
  254. )
  255. );
  256. $this->accounts_alerts = new Google_Service_AdSense_AccountsAlerts_Resource(
  257. $this,
  258. $this->serviceName,
  259. 'alerts',
  260. array(
  261. 'methods' => array(
  262. 'delete' => array(
  263. 'path' => 'accounts/{accountId}/alerts/{alertId}',
  264. 'httpMethod' => 'DELETE',
  265. 'parameters' => array(
  266. 'accountId' => array(
  267. 'location' => 'path',
  268. 'type' => 'string',
  269. 'required' => true,
  270. ),
  271. 'alertId' => array(
  272. 'location' => 'path',
  273. 'type' => 'string',
  274. 'required' => true,
  275. ),
  276. ),
  277. ),'list' => array(
  278. 'path' => 'accounts/{accountId}/alerts',
  279. 'httpMethod' => 'GET',
  280. 'parameters' => array(
  281. 'accountId' => array(
  282. 'location' => 'path',
  283. 'type' => 'string',
  284. 'required' => true,
  285. ),
  286. 'locale' => array(
  287. 'location' => 'query',
  288. 'type' => 'string',
  289. ),
  290. ),
  291. ),
  292. )
  293. )
  294. );
  295. $this->accounts_customchannels = new Google_Service_AdSense_AccountsCustomchannels_Resource(
  296. $this,
  297. $this->serviceName,
  298. 'customchannels',
  299. array(
  300. 'methods' => array(
  301. 'get' => array(
  302. 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}',
  303. 'httpMethod' => 'GET',
  304. 'parameters' => array(
  305. 'accountId' => array(
  306. 'location' => 'path',
  307. 'type' => 'string',
  308. 'required' => true,
  309. ),
  310. 'adClientId' => array(
  311. 'location' => 'path',
  312. 'type' => 'string',
  313. 'required' => true,
  314. ),
  315. 'customChannelId' => array(
  316. 'location' => 'path',
  317. 'type' => 'string',
  318. 'required' => true,
  319. ),
  320. ),
  321. ),'list' => array(
  322. 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels',
  323. 'httpMethod' => 'GET',
  324. 'parameters' => array(
  325. 'accountId' => array(
  326. 'location' => 'path',
  327. 'type' => 'string',
  328. 'required' => true,
  329. ),
  330. 'adClientId' => array(
  331. 'location' => 'path',
  332. 'type' => 'string',
  333. 'required' => true,
  334. ),
  335. 'pageToken' => array(
  336. 'location' => 'query',
  337. 'type' => 'string',
  338. ),
  339. 'maxResults' => array(
  340. 'location' => 'query',
  341. 'type' => 'integer',
  342. ),
  343. ),
  344. ),
  345. )
  346. )
  347. );
  348. $this->accounts_customchannels_adunits = new Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource(
  349. $this,
  350. $this->serviceName,
  351. 'adunits',
  352. array(
  353. 'methods' => array(
  354. 'list' => array(
  355. 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits',
  356. 'httpMethod' => 'GET',
  357. 'parameters' => array(
  358. 'accountId' => array(
  359. 'location' => 'path',
  360. 'type' => 'string',
  361. 'required' => true,
  362. ),
  363. 'adClientId' => array(
  364. 'location' => 'path',
  365. 'type' => 'string',
  366. 'required' => true,
  367. ),
  368. 'customChannelId' => array(
  369. 'location' => 'path',
  370. 'type' => 'string',
  371. 'required' => true,
  372. ),
  373. 'includeInactive' => array(
  374. 'location' => 'query',
  375. 'type' => 'boolean',
  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_payments = new Google_Service_AdSense_AccountsPayments_Resource(
  391. $this,
  392. $this->serviceName,
  393. 'payments',
  394. array(
  395. 'methods' => array(
  396. 'list' => array(
  397. 'path' => 'accounts/{accountId}/payments',
  398. 'httpMethod' => 'GET',
  399. 'parameters' => array(
  400. 'accountId' => array(
  401. 'location' => 'path',
  402. 'type' => 'string',
  403. 'required' => true,
  404. ),
  405. ),
  406. ),
  407. )
  408. )
  409. );
  410. $this->accounts_reports = new Google_Service_AdSense_AccountsReports_Resource(
  411. $this,
  412. $this->serviceName,
  413. 'reports',
  414. array(
  415. 'methods' => array(
  416. 'generate' => array(
  417. 'path' => 'accounts/{accountId}/reports',
  418. 'httpMethod' => 'GET',
  419. 'parameters' => array(
  420. 'accountId' => array(
  421. 'location' => 'path',
  422. 'type' => 'string',
  423. 'required' => true,
  424. ),
  425. 'startDate' => array(
  426. 'location' => 'query',
  427. 'type' => 'string',
  428. 'required' => true,
  429. ),
  430. 'endDate' => array(
  431. 'location' => 'query',
  432. 'type' => 'string',
  433. 'required' => true,
  434. ),
  435. 'sort' => array(
  436. 'location' => 'query',
  437. 'type' => 'string',
  438. 'repeated' => true,
  439. ),
  440. 'locale' => array(
  441. 'location' => 'query',
  442. 'type' => 'string',
  443. ),
  444. 'metric' => array(
  445. 'location' => 'query',
  446. 'type' => 'string',
  447. 'repeated' => true,
  448. ),
  449. 'maxResults' => array(
  450. 'location' => 'query',
  451. 'type' => 'integer',
  452. ),
  453. 'filter' => array(
  454. 'location' => 'query',
  455. 'type' => 'string',
  456. 'repeated' => true,
  457. ),
  458. 'currency' => array(
  459. 'location' => 'query',
  460. 'type' => 'string',
  461. ),
  462. 'startIndex' => array(
  463. 'location' => 'query',
  464. 'type' => 'integer',
  465. ),
  466. 'useTimezoneReporting' => array(
  467. 'location' => 'query',
  468. 'type' => 'boolean',
  469. ),
  470. 'dimension' => array(
  471. 'location' => 'query',
  472. 'type' => 'string',
  473. 'repeated' => true,
  474. ),
  475. ),
  476. ),
  477. )
  478. )
  479. );
  480. $this->accounts_reports_saved = new Google_Service_AdSense_AccountsReportsSaved_Resource(
  481. $this,
  482. $this->serviceName,
  483. 'saved',
  484. array(
  485. 'methods' => array(
  486. 'generate' => array(
  487. 'path' => 'accounts/{accountId}/reports/{savedReportId}',
  488. 'httpMethod' => 'GET',
  489. 'parameters' => array(
  490. 'accountId' => array(
  491. 'location' => 'path',
  492. 'type' => 'string',
  493. 'required' => true,
  494. ),
  495. 'savedReportId' => array(
  496. 'location' => 'path',
  497. 'type' => 'string',
  498. 'required' => true,
  499. ),
  500. 'locale' => array(
  501. 'location' => 'query',
  502. 'type' => 'string',
  503. ),
  504. 'startIndex' => array(
  505. 'location' => 'query',
  506. 'type' => 'integer',
  507. ),
  508. 'maxResults' => array(
  509. 'location' => 'query',
  510. 'type' => 'integer',
  511. ),
  512. ),
  513. ),'list' => array(
  514. 'path' => 'accounts/{accountId}/reports/saved',
  515. 'httpMethod' => 'GET',
  516. 'parameters' => array(
  517. 'accountId' => array(
  518. 'location' => 'path',
  519. 'type' => 'string',
  520. 'required' => true,
  521. ),
  522. 'pageToken' => array(
  523. 'location' => 'query',
  524. 'type' => 'string',
  525. ),
  526. 'maxResults' => array(
  527. 'location' => 'query',
  528. 'type' => 'integer',
  529. ),
  530. ),
  531. ),
  532. )
  533. )
  534. );
  535. $this->accounts_savedadstyles = new Google_Service_AdSense_AccountsSavedadstyles_Resource(
  536. $this,
  537. $this->serviceName,
  538. 'savedadstyles',
  539. array(
  540. 'methods' => array(
  541. 'get' => array(
  542. 'path' => 'accounts/{accountId}/savedadstyles/{savedAdStyleId}',
  543. 'httpMethod' => 'GET',
  544. 'parameters' => array(
  545. 'accountId' => array(
  546. 'location' => 'path',
  547. 'type' => 'string',
  548. 'required' => true,
  549. ),
  550. 'savedAdStyleId' => array(
  551. 'location' => 'path',
  552. 'type' => 'string',
  553. 'required' => true,
  554. ),
  555. ),
  556. ),'list' => array(
  557. 'path' => 'accounts/{accountId}/savedadstyles',
  558. 'httpMethod' => 'GET',
  559. 'parameters' => array(
  560. 'accountId' => array(
  561. 'location' => 'path',
  562. 'type' => 'string',
  563. 'required' => true,
  564. ),
  565. 'pageToken' => array(
  566. 'location' => 'query',
  567. 'type' => 'string',
  568. ),
  569. 'maxResults' => array(
  570. 'location' => 'query',
  571. 'type' => 'integer',
  572. ),
  573. ),
  574. ),
  575. )
  576. )
  577. );
  578. $this->accounts_urlchannels = new Google_Service_AdSense_AccountsUrlchannels_Resource(
  579. $this,
  580. $this->serviceName,
  581. 'urlchannels',
  582. array(
  583. 'methods' => array(
  584. 'list' => array(
  585. 'path' => 'accounts/{accountId}/adclients/{adClientId}/urlchannels',
  586. 'httpMethod' => 'GET',
  587. 'parameters' => array(
  588. 'accountId' => array(
  589. 'location' => 'path',
  590. 'type' => 'string',
  591. 'required' => true,
  592. ),
  593. 'adClientId' => array(
  594. 'location' => 'path',
  595. 'type' => 'string',
  596. 'required' => true,
  597. ),
  598. 'pageToken' => array(
  599. 'location' => 'query',
  600. 'type' => 'string',
  601. ),
  602. 'maxResults' => array(
  603. 'location' => 'query',
  604. 'type' => 'integer',
  605. ),
  606. ),
  607. ),
  608. )
  609. )
  610. );
  611. $this->adclients = new Google_Service_AdSense_Adclients_Resource(
  612. $this,
  613. $this->serviceName,
  614. 'adclients',
  615. array(
  616. 'methods' => array(
  617. 'list' => array(
  618. 'path' => 'adclients',
  619. 'httpMethod' => 'GET',
  620. 'parameters' => array(
  621. 'pageToken' => array(
  622. 'location' => 'query',
  623. 'type' => 'string',
  624. ),
  625. 'maxResults' => array(
  626. 'location' => 'query',
  627. 'type' => 'integer',
  628. ),
  629. ),
  630. ),
  631. )
  632. )
  633. );
  634. $this->adunits = new Google_Service_AdSense_Adunits_Resource(
  635. $this,
  636. $this->serviceName,
  637. 'adunits',
  638. array(
  639. 'methods' => array(
  640. 'get' => array(
  641. 'path' => 'adclients/{adClientId}/adunits/{adUnitId}',
  642. 'httpMethod' => 'GET',
  643. 'parameters' => array(
  644. 'adClientId' => array(
  645. 'location' => 'path',
  646. 'type' => 'string',
  647. 'required' => true,
  648. ),
  649. 'adUnitId' => array(
  650. 'location' => 'path',
  651. 'type' => 'string',
  652. 'required' => true,
  653. ),
  654. ),
  655. ),'getAdCode' => array(
  656. 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/adcode',
  657. 'httpMethod' => 'GET',
  658. 'parameters' => array(
  659. 'adClientId' => array(
  660. 'location' => 'path',
  661. 'type' => 'string',
  662. 'required' => true,
  663. ),
  664. 'adUnitId' => array(
  665. 'location' => 'path',
  666. 'type' => 'string',
  667. 'required' => true,
  668. ),
  669. ),
  670. ),'list' => array(
  671. 'path' => 'adclients/{adClientId}/adunits',
  672. 'httpMethod' => 'GET',
  673. 'parameters' => array(
  674. 'adClientId' => array(
  675. 'location' => 'path',
  676. 'type' => 'string',
  677. 'required' => true,
  678. ),
  679. 'includeInactive' => array(
  680. 'location' => 'query',
  681. 'type' => 'boolean',
  682. ),
  683. 'pageToken' => array(
  684. 'location' => 'query',
  685. 'type' => 'string',
  686. ),
  687. 'maxResults' => array(
  688. 'location' => 'query',
  689. 'type' => 'integer',
  690. ),
  691. ),
  692. ),
  693. )
  694. )
  695. );
  696. $this->adunits_customchannels = new Google_Service_AdSense_AdunitsCustomchannels_Resource(
  697. $this,
  698. $this->serviceName,
  699. 'customchannels',
  700. array(
  701. 'methods' => array(
  702. 'list' => array(
  703. 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/customchannels',
  704. 'httpMethod' => 'GET',
  705. 'parameters' => array(
  706. 'adClientId' => array(
  707. 'location' => 'path',
  708. 'type' => 'string',
  709. 'required' => true,
  710. ),
  711. 'adUnitId' => array(
  712. 'location' => 'path',
  713. 'type' => 'string',
  714. 'required' => true,
  715. ),
  716. 'pageToken' => array(
  717. 'location' => 'query',
  718. 'type' => 'string',
  719. ),
  720. 'maxResults' => array(
  721. 'location' => 'query',
  722. 'type' => 'integer',
  723. ),
  724. ),
  725. ),
  726. )
  727. )
  728. );
  729. $this->alerts = new Google_Service_AdSense_Alerts_Resource(
  730. $this,
  731. $this->serviceName,
  732. 'alerts',
  733. array(
  734. 'methods' => array(
  735. 'delete' => array(
  736. 'path' => 'alerts/{alertId}',
  737. 'httpMethod' => 'DELETE',
  738. 'parameters' => array(
  739. 'alertId' => array(
  740. 'location' => 'path',
  741. 'type' => 'string',
  742. 'required' => true,
  743. ),
  744. ),
  745. ),'list' => array(
  746. 'path' => 'alerts',
  747. 'httpMethod' => 'GET',
  748. 'parameters' => array(
  749. 'locale' => array(
  750. 'location' => 'query',
  751. 'type' => 'string',
  752. ),
  753. ),
  754. ),
  755. )
  756. )
  757. );
  758. $this->customchannels = new Google_Service_AdSense_Customchannels_Resource(
  759. $this,
  760. $this->serviceName,
  761. 'customchannels',
  762. array(
  763. 'methods' => array(
  764. 'get' => array(
  765. 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}',
  766. 'httpMethod' => 'GET',
  767. 'parameters' => array(
  768. 'adClientId' => array(
  769. 'location' => 'path',
  770. 'type' => 'string',
  771. 'required' => true,
  772. ),
  773. 'customChannelId' => array(
  774. 'location' => 'path',
  775. 'type' => 'string',
  776. 'required' => true,
  777. ),
  778. ),
  779. ),'list' => array(
  780. 'path' => 'adclients/{adClientId}/customchannels',
  781. 'httpMethod' => 'GET',
  782. 'parameters' => array(
  783. 'adClientId' => array(
  784. 'location' => 'path',
  785. 'type' => 'string',
  786. 'required' => true,
  787. ),
  788. 'pageToken' => array(
  789. 'location' => 'query',
  790. 'type' => 'string',
  791. ),
  792. 'maxResults' => array(
  793. 'location' => 'query',
  794. 'type' => 'integer',
  795. ),
  796. ),
  797. ),
  798. )
  799. )
  800. );
  801. $this->customchannels_adunits = new Google_Service_AdSense_CustomchannelsAdunits_Resource(
  802. $this,
  803. $this->serviceName,
  804. 'adunits',
  805. array(
  806. 'methods' => array(
  807. 'list' => array(
  808. 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}/adunits',
  809. 'httpMethod' => 'GET',
  810. 'parameters' => array(
  811. 'adClientId' => array(
  812. 'location' => 'path',
  813. 'type' => 'string',
  814. 'required' => true,
  815. ),
  816. 'customChannelId' => array(
  817. 'location' => 'path',
  818. 'type' => 'string',
  819. 'required' => true,
  820. ),
  821. 'includeInactive' => array(
  822. 'location' => 'query',
  823. 'type' => 'boolean',
  824. ),
  825. 'pageToken' => array(
  826. 'location' => 'query',
  827. 'type' => 'string',
  828. ),
  829. 'maxResults' => array(
  830. 'location' => 'query',
  831. 'type' => 'integer',
  832. ),
  833. ),
  834. ),
  835. )
  836. )
  837. );
  838. $this->metadata_dimensions = new Google_Service_AdSense_MetadataDimensions_Resource(
  839. $this,
  840. $this->serviceName,
  841. 'dimensions',
  842. array(
  843. 'methods' => array(
  844. 'list' => array(
  845. 'path' => 'metadata/dimensions',
  846. 'httpMethod' => 'GET',
  847. 'parameters' => array(),
  848. ),
  849. )
  850. )
  851. );
  852. $this->metadata_metrics = new Google_Service_AdSense_MetadataMetrics_Resource(
  853. $this,
  854. $this->serviceName,
  855. 'metrics',
  856. array(
  857. 'methods' => array(
  858. 'list' => array(
  859. 'path' => 'metadata/metrics',
  860. 'httpMethod' => 'GET',
  861. 'parameters' => array(),
  862. ),
  863. )
  864. )
  865. );
  866. $this->payments = new Google_Service_AdSense_Payments_Resource(
  867. $this,
  868. $this->serviceName,
  869. 'payments',
  870. array(
  871. 'methods' => array(
  872. 'list' => array(
  873. 'path' => 'payments',
  874. 'httpMethod' => 'GET',
  875. 'parameters' => array(),
  876. ),
  877. )
  878. )
  879. );
  880. $this->reports = new Google_Service_AdSense_Reports_Resource(
  881. $this,
  882. $this->serviceName,
  883. 'reports',
  884. array(
  885. 'methods' => array(
  886. 'generate' => array(
  887. 'path' => 'reports',
  888. 'httpMethod' => 'GET',
  889. 'parameters' => array(
  890. 'startDate' => array(
  891. 'location' => 'query',
  892. 'type' => 'string',
  893. 'required' => true,
  894. ),
  895. 'endDate' => array(
  896. 'location' => 'query',
  897. 'type' => 'string',
  898. 'required' => true,
  899. ),
  900. 'sort' => array(
  901. 'location' => 'query',
  902. 'type' => 'string',
  903. 'repeated' => true,
  904. ),
  905. 'locale' => array(
  906. 'location' => 'query',
  907. 'type' => 'string',
  908. ),
  909. 'metric' => array(
  910. 'location' => 'query',
  911. 'type' => 'string',
  912. 'repeated' => true,
  913. ),
  914. 'maxResults' => array(
  915. 'location' => 'query',
  916. 'type' => 'integer',
  917. ),
  918. 'filter' => array(
  919. 'location' => 'query',
  920. 'type' => 'string',
  921. 'repeated' => true,
  922. ),
  923. 'currency' => array(
  924. 'location' => 'query',
  925. 'type' => 'string',
  926. ),
  927. 'startIndex' => array(
  928. 'location' => 'query',
  929. 'type' => 'integer',
  930. ),
  931. 'useTimezoneReporting' => array(
  932. 'location' => 'query',
  933. 'type' => 'boolean',
  934. ),
  935. 'dimension' => array(
  936. 'location' => 'query',
  937. 'type' => 'string',
  938. 'repeated' => true,
  939. ),
  940. 'accountId' => array(
  941. 'location' => 'query',
  942. 'type' => 'string',
  943. 'repeated' => true,
  944. ),
  945. ),
  946. ),
  947. )
  948. )
  949. );
  950. $this->reports_saved = new Google_Service_AdSense_ReportsSaved_Resource(
  951. $this,
  952. $this->serviceName,
  953. 'saved',
  954. array(
  955. 'methods' => array(
  956. 'generate' => array(
  957. 'path' => 'reports/{savedReportId}',
  958. 'httpMethod' => 'GET',
  959. 'parameters' => array(
  960. 'savedReportId' => array(
  961. 'location' => 'path',
  962. 'type' => 'string',
  963. 'required' => true,
  964. ),
  965. 'locale' => array(
  966. 'location' => 'query',
  967. 'type' => 'string',
  968. ),
  969. 'startIndex' => array(
  970. 'location' => 'query',
  971. 'type' => 'integer',
  972. ),
  973. 'maxResults' => array(
  974. 'location' => 'query',
  975. 'type' => 'integer',
  976. ),
  977. ),
  978. ),'list' => array(
  979. 'path' => 'reports/saved',
  980. 'httpMethod' => 'GET',
  981. 'parameters' => array(
  982. 'pageToken' => array(
  983. 'location' => 'query',
  984. 'type' => 'string',
  985. ),
  986. 'maxResults' => array(
  987. 'location' => 'query',
  988. 'type' => 'integer',
  989. ),
  990. ),
  991. ),
  992. )
  993. )
  994. );
  995. $this->savedadstyles = new Google_Service_AdSense_Savedadstyles_Resource(
  996. $this,
  997. $this->serviceName,
  998. 'savedadstyles',
  999. array(
  1000. 'methods' => array(
  1001. 'get' => array(
  1002. 'path' => 'savedadstyles/{savedAdStyleId}',
  1003. 'httpMethod' => 'GET',
  1004. 'parameters' => array(
  1005. 'savedAdStyleId' => array(
  1006. 'location' => 'path',
  1007. 'type' => 'string',
  1008. 'required' => true,
  1009. ),
  1010. ),
  1011. ),'list' => array(
  1012. 'path' => 'savedadstyles',
  1013. 'httpMethod' => 'GET',
  1014. 'parameters' => array(
  1015. 'pageToken' => array(
  1016. 'location' => 'query',
  1017. 'type' => 'string',
  1018. ),
  1019. 'maxResults' => array(
  1020. 'location' => 'query',
  1021. 'type' => 'integer',
  1022. ),
  1023. ),
  1024. ),
  1025. )
  1026. )
  1027. );
  1028. $this->urlchannels = new Google_Service_AdSense_Urlchannels_Resource(
  1029. $this,
  1030. $this->serviceName,
  1031. 'urlchannels',
  1032. array(
  1033. 'methods' => array(
  1034. 'list' => array(
  1035. 'path' => 'adclients/{adClientId}/urlchannels',
  1036. 'httpMethod' => 'GET',
  1037. 'parameters' => array(
  1038. 'adClientId' => array(
  1039. 'location' => 'path',
  1040. 'type' => 'string',
  1041. 'required' => true,
  1042. ),
  1043. 'pageToken' => array(
  1044. 'location' => 'query',
  1045. 'type' => 'string',
  1046. ),
  1047. 'maxResults' => array(
  1048. 'location' => 'query',
  1049. 'type' => 'integer',
  1050. ),
  1051. ),
  1052. ),
  1053. )
  1054. )
  1055. );
  1056. }
  1057. }
  1058. /**
  1059. * The "accounts" collection of methods.
  1060. * Typical usage is:
  1061. * <code>
  1062. * $adsenseService = new Google_Service_AdSense(...);
  1063. * $accounts = $adsenseService->accounts;
  1064. * </code>
  1065. */
  1066. class Google_Service_AdSense_Accounts_Resource extends Google_Service_Resource
  1067. {
  1068. /**
  1069. * Get information about the selected AdSense account. (accounts.get)
  1070. *
  1071. * @param string $accountId Account to get information about.
  1072. * @param array $optParams Optional parameters.
  1073. *
  1074. * @opt_param bool tree Whether the tree of sub accounts should be returned.
  1075. * @return Google_Service_AdSense_Account
  1076. */
  1077. public function get($accountId, $optParams = array())
  1078. {
  1079. $params = array('accountId' => $accountId);
  1080. $params = array_merge($params, $optParams);
  1081. return $this->call('get', array($params), "Google_Service_AdSense_Account");
  1082. }
  1083. /**
  1084. * List all accounts available to this AdSense account. (accounts.listAccounts)
  1085. *
  1086. * @param array $optParams Optional parameters.
  1087. *
  1088. * @opt_param string pageToken A continuation token, used to page through
  1089. * accounts. To retrieve the next page, set this parameter to the value of
  1090. * "nextPageToken" from the previous response.
  1091. * @opt_param int maxResults The maximum number of accounts to include in the
  1092. * response, used for paging.
  1093. * @return Google_Service_AdSense_Accounts
  1094. */
  1095. public function listAccounts($optParams = array())
  1096. {
  1097. $params = array();
  1098. $params = array_merge($params, $optParams);
  1099. return $this->call('list', array($params), "Google_Service_AdSense_Accounts");
  1100. }
  1101. }
  1102. /**
  1103. * The "adclients" collection of methods.
  1104. * Typical usage is:
  1105. * <code>
  1106. * $adsenseService = new Google_Service_AdSense(...);
  1107. * $adclients = $adsenseService->adclients;
  1108. * </code>
  1109. */
  1110. class Google_Service_AdSense_AccountsAdclients_Resource extends Google_Service_Resource
  1111. {
  1112. /**
  1113. * List all ad clients in the specified account.
  1114. * (adclients.listAccountsAdclients)
  1115. *
  1116. * @param string $accountId Account for which to list ad clients.
  1117. * @param array $optParams Optional parameters.
  1118. *
  1119. * @opt_param string pageToken A continuation token, used to page through ad
  1120. * clients. To retrieve the next page, set this parameter to the value of
  1121. * "nextPageToken" from the previous response.
  1122. * @opt_param int maxResults The maximum number of ad clients to include in the
  1123. * response, used for paging.
  1124. * @return Google_Service_AdSense_AdClients
  1125. */
  1126. public function listAccountsAdclients($accountId, $optParams = array())
  1127. {
  1128. $params = array('accountId' => $accountId);
  1129. $params = array_merge($params, $optParams);
  1130. return $this->call('list', array($params), "Google_Service_AdSense_AdClients");
  1131. }
  1132. }
  1133. /**
  1134. * The "adunits" collection of methods.
  1135. * Typical usage is:
  1136. * <code>
  1137. * $adsenseService = new Google_Service_AdSense(...);
  1138. * $adunits = $adsenseService->adunits;
  1139. * </code>
  1140. */
  1141. class Google_Service_AdSense_AccountsAdunits_Resource extends Google_Service_Resource
  1142. {
  1143. /**
  1144. * Gets the specified ad unit in the specified ad client for the specified
  1145. * account. (adunits.get)
  1146. *
  1147. * @param string $accountId Account to which the ad client belongs.
  1148. * @param string $adClientId Ad client for which to get the ad unit.
  1149. * @param string $adUnitId Ad unit to retrieve.
  1150. * @param array $optParams Optional parameters.
  1151. * @return Google_Service_AdSense_AdUnit
  1152. */
  1153. public function get($accountId, $adClientId, $adUnitId, $optParams = array())
  1154. {
  1155. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  1156. $params = array_merge($params, $optParams);
  1157. return $this->call('get', array($params), "Google_Service_AdSense_AdUnit");
  1158. }
  1159. /**
  1160. * Get ad code for the specified ad unit. (adunits.getAdCode)
  1161. *
  1162. * @param string $accountId Account which contains the ad client.
  1163. * @param string $adClientId Ad client with contains the ad unit.
  1164. * @param string $adUnitId Ad unit to get the code for.
  1165. * @param array $optParams Optional parameters.
  1166. * @return Google_Service_AdSense_AdCode
  1167. */
  1168. public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array())
  1169. {
  1170. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  1171. $params = array_merge($params, $optParams);
  1172. return $this->call('getAdCode', array($params), "Google_Service_AdSense_AdCode");
  1173. }
  1174. /**
  1175. * List all ad units in the specified ad client for the specified account.
  1176. * (adunits.listAccountsAdunits)
  1177. *
  1178. * @param string $accountId Account to which the ad client belongs.
  1179. * @param string $adClientId Ad client for which to list ad units.
  1180. * @param array $optParams Optional parameters.
  1181. *
  1182. * @opt_param bool includeInactive Whether to include inactive ad units.
  1183. * Default: true.
  1184. * @opt_param string pageToken A continuation token, used to page through ad
  1185. * units. To retrieve the next page, set this parameter to the value of
  1186. * "nextPageToken" from the previous response.
  1187. * @opt_param int maxResults The maximum number of ad units to include in the
  1188. * response, used for paging.
  1189. * @return Google_Service_AdSense_AdUnits
  1190. */
  1191. public function listAccountsAdunits($accountId, $adClientId, $optParams = array())
  1192. {
  1193. $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
  1194. $params = array_merge($params, $optParams);
  1195. return $this->call('list', array($params), "Google_Service_AdSense_AdUnits");
  1196. }
  1197. }
  1198. /**
  1199. * The "customchannels" collection of methods.
  1200. * Typical usage is:
  1201. * <code>
  1202. * $adsenseService = new Google_Service_AdSense(...);
  1203. * $customchannels = $adsenseService->customchannels;
  1204. * </code>
  1205. */
  1206. class Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource extends Google_Service_Resource
  1207. {
  1208. /**
  1209. * List all custom channels which the specified ad unit belongs to.
  1210. * (customchannels.listAccountsAdunitsCustomchannels)
  1211. *
  1212. * @param string $accountId Account to which the ad client belongs.
  1213. * @param string $adClientId Ad client which contains the ad unit.
  1214. * @param string $adUnitId Ad unit for which to list custom channels.
  1215. * @param array $optParams Optional parameters.
  1216. *
  1217. * @opt_param string pageToken A continuation token, used to page through custom
  1218. * channels. To retrieve the next page, set this parameter to the value of
  1219. * "nextPageToken" from the previous response.
  1220. * @opt_param int maxResults The maximum number of custom channels to include in
  1221. * the response, used for paging.
  1222. * @return Google_Service_AdSense_CustomChannels
  1223. */
  1224. public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array())
  1225. {
  1226. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  1227. $params = array_merge($params, $optParams);
  1228. return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels");
  1229. }
  1230. }
  1231. /**
  1232. * The "alerts" collection of methods.
  1233. * Typical usage is:
  1234. * <code>
  1235. * $adsenseService = new Google_Service_AdSense(...);
  1236. * $alerts = $adsenseService->alerts;
  1237. * </code>
  1238. */
  1239. class Google_Service_AdSense_AccountsAlerts_Resource extends Google_Service_Resource
  1240. {
  1241. /**
  1242. * Dismiss (delete) the specified alert from the specified publisher AdSense
  1243. * account. (alerts.delete)
  1244. *
  1245. * @param string $accountId Account which contains the ad unit.
  1246. * @param string $alertId Alert to delete.
  1247. * @param array $optParams Optional parameters.
  1248. */
  1249. public function delete($accountId, $alertId, $optParams = array())
  1250. {
  1251. $params = array('accountId' => $accountId, 'alertId' => $alertId);
  1252. $params = array_merge($params, $optParams);
  1253. return $this->call('delete', array($params));
  1254. }
  1255. /**
  1256. * List the alerts for the specified AdSense account.
  1257. * (alerts.listAccountsAlerts)
  1258. *
  1259. * @param string $accountId Account for which to retrieve the alerts.
  1260. * @param array $optParams Optional parameters.
  1261. *
  1262. * @opt_param string locale The locale to use for translating alert messages.
  1263. * The account locale will be used if this is not supplied. The AdSense default
  1264. * (English) will be used if the supplied locale is invalid or unsupported.
  1265. * @return Google_Service_AdSense_Alerts
  1266. */
  1267. public function listAccountsAlerts($accountId, $optParams = array())
  1268. {
  1269. $params = array('accountId' => $accountId);
  1270. $params = array_merge($params, $optParams);
  1271. return $this->call('list', array($params), "Google_Service_AdSense_Alerts");
  1272. }
  1273. }
  1274. /**
  1275. * The "customchannels" collection of methods.
  1276. * Typical usage is:
  1277. * <code>
  1278. * $adsenseService = new Google_Service_AdSense(...);
  1279. * $customchannels = $adsenseService->customchannels;
  1280. * </code>
  1281. */
  1282. class Google_Service_AdSense_AccountsCustomchannels_Resource extends Google_Service_Resource
  1283. {
  1284. /**
  1285. * Get the specified custom channel from the specified ad client for the
  1286. * specified account. (customchannels.get)
  1287. *
  1288. * @param string $accountId Account to which the ad client belongs.
  1289. * @param string $adClientId Ad client which contains the custom channel.
  1290. * @param string $customChannelId Custom channel to retrieve.
  1291. * @param array $optParams Optional parameters.
  1292. * @return Google_Service_AdSense_CustomChannel
  1293. */
  1294. public function get($accountId, $adClientId, $customChannelId, $optParams = array())
  1295. {
  1296. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
  1297. $params = array_merge($params, $optParams);
  1298. return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel");
  1299. }
  1300. /**
  1301. * List all custom channels in the specified ad client for the specified
  1302. * account. (customchannels.listAccountsCustomchannels)
  1303. *
  1304. * @param string $accountId Account to which the ad client belongs.
  1305. * @param string $adClientId Ad client for which to list custom channels.
  1306. * @param array $optParams Optional parameters.
  1307. *
  1308. * @opt_param string pageToken A continuation token, used to page through custom
  1309. * channels. To retrieve the next page, set this parameter to the value of
  1310. * "nextPageToken" from the previous response.
  1311. * @opt_param int maxResults The maximum number of custom channels to include in
  1312. * the response, used for paging.
  1313. * @return Google_Service_AdSense_CustomChannels
  1314. */
  1315. public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array())
  1316. {
  1317. $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
  1318. $params = array_merge($params, $optParams);
  1319. return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels");
  1320. }
  1321. }
  1322. /**
  1323. * The "adunits" collection of methods.
  1324. * Typical usage is:
  1325. * <code>
  1326. * $adsenseService = new Google_Service_AdSense(...);
  1327. * $adunits = $adsenseService->adunits;
  1328. * </code>
  1329. */
  1330. class Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource extends Google_Service_Resource
  1331. {
  1332. /**
  1333. * List all ad units in the specified custom channel.
  1334. * (adunits.listAccountsCustomchannelsAdunits)
  1335. *
  1336. * @param string $accountId Account to which the ad client belongs.
  1337. * @param string $adClientId Ad client which contains the custom channel.
  1338. * @param string $customChannelId Custom channel for which to list ad units.
  1339. * @param array $optParams Optional parameters.
  1340. *
  1341. * @opt_param bool includeInactive Whether to include inactive ad units.
  1342. * Default: true.
  1343. * @opt_param int maxResults The maximum number of ad units to include in the
  1344. * response, used for paging.
  1345. * @opt_param string pageToken A continuation token, used to page through ad
  1346. * units. To retrieve the next page, set this parameter to the value of
  1347. * "nextPageToken" from the previous response.
  1348. * @return Google_Service_AdSense_AdUnits
  1349. */
  1350. public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array())
  1351. {
  1352. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
  1353. $params = array_merge($params, $optParams);
  1354. return $this->call('list', array($params), "Google_Service_AdSense_AdUnits");
  1355. }
  1356. }
  1357. /**
  1358. * The "payments" collection of methods.
  1359. * Typical usage is:
  1360. * <code>
  1361. * $adsenseService = new Google_Service_AdSense(...);
  1362. * $payments = $adsenseService->payments;
  1363. * </code>
  1364. */
  1365. class Google_Service_AdSense_AccountsPayments_Resource extends Google_Service_Resource
  1366. {
  1367. /**
  1368. * List the payments for the specified AdSense account.
  1369. * (payments.listAccountsPayments)
  1370. *
  1371. * @param string $accountId Account for which to retrieve the payments.
  1372. * @param array $optParams Optional parameters.
  1373. * @return Google_Service_AdSense_Payments
  1374. */
  1375. public function listAccountsPayments($accountId, $optParams = array())
  1376. {
  1377. $params = array('accountId' => $accountId);
  1378. $params = array_merge($params, $optParams);
  1379. return $this->call('list', array($params), "Google_Service_AdSense_Payments");
  1380. }
  1381. }
  1382. /**
  1383. * The "reports" collection of methods.
  1384. * Typical usage is:
  1385. * <code>
  1386. * $adsenseService = new Google_Service_AdSense(...);
  1387. * $reports = $adsenseService->reports;
  1388. * </code>
  1389. */
  1390. class Google_Service_AdSense_AccountsReports_Resource extends Google_Service_Resource
  1391. {
  1392. /**
  1393. * Generate an AdSense report based on the report request sent in the query
  1394. * parameters. Returns the result as JSON; to retrieve output in CSV format
  1395. * specify "alt=csv" as a query parameter. (reports.generate)
  1396. *
  1397. * @param string $accountId Account upon which to report.
  1398. * @param string $startDate Start of the date range to report on in "YYYY-MM-DD"
  1399. * format, inclusive.
  1400. * @param string $endDate End of the date range to report on in "YYYY-MM-DD"
  1401. * format, inclusive.
  1402. * @param array $optParams Optional parameters.
  1403. *
  1404. * @opt_param string sort The name of a dimension or metric to sort the
  1405. * resulting report on, optionally prefixed with "+" to sort ascending or "-" to
  1406. * sort descending. If no prefix is specified, the column is sorted ascending.
  1407. * @opt_param string locale Optional locale to use for translating report output
  1408. * to a local language. Defaults to "en_US" if not specified.
  1409. * @opt_param string metric Numeric columns to include in the report.
  1410. * @opt_param int maxResults The maximum number of rows of report data to
  1411. * return.
  1412. * @opt_param string filter Filters to be run on the report.
  1413. * @opt_param string currency Optional currency to use when reporting on
  1414. * monetary metrics. Defaults to the account's currency if not set.
  1415. * @opt_param int startIndex Index of the first row of report data to return.
  1416. * @opt_param bool useTimezoneReporting Whether the report should be generated
  1417. * in the AdSense account's local timezone. If false default PST/PDT timezone
  1418. * will be used.
  1419. * @opt_param string dimension Dimensions to base the report on.
  1420. * @return Google_Service_AdSense_AdsenseReportsGenerateResponse
  1421. */
  1422. public function generate($accountId, $startDate, $endDate, $optParams = array())
  1423. {
  1424. $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
  1425. $params = array_merge($params, $optParams);
  1426. return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse");
  1427. }
  1428. }
  1429. /**
  1430. * The "saved" collection of methods.
  1431. * Typical usage is:
  1432. * <code>
  1433. * $adsenseService = new Google_Service_AdSense(...);
  1434. * $saved = $adsenseService->saved;
  1435. * </code>
  1436. */
  1437. class Google_Service_AdSense_AccountsReportsSaved_Resource extends Google_Service_Resource
  1438. {
  1439. /**
  1440. * Generate an AdSense report based on the saved report ID sent in the query
  1441. * parameters. (saved.generate)
  1442. *
  1443. * @param string $accountId Account to which the saved reports belong.
  1444. * @param string $savedReportId The saved report to retrieve.
  1445. * @param array $optParams Optional parameters.
  1446. *
  1447. * @opt_param string locale Optional locale to use for translating report output
  1448. * to a local language. Defaults to "en_US" if not specified.
  1449. * @opt_param int startIndex Index of the first row of report data to return.
  1450. * @opt_param int maxResults The maximum number of rows of report data to
  1451. * return.
  1452. * @return Google_Service_AdSense_AdsenseReportsGenerateResponse
  1453. */
  1454. public function generate($accountId, $savedReportId, $optParams = array())
  1455. {
  1456. $params = array('accountId' => $accountId, 'savedReportId' => $savedReportId);
  1457. $params = array_merge($params, $optParams);
  1458. return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse");
  1459. }
  1460. /**
  1461. * List all saved reports in the specified AdSense account.
  1462. * (saved.listAccountsReportsSaved)
  1463. *
  1464. * @param string $accountId Account to which the saved reports belong.
  1465. * @param array $optParams Optional parameters.
  1466. *
  1467. * @opt_param string pageToken A continuation token, used to page through saved
  1468. * reports. To retrieve the next page, set this parameter to the value of
  1469. * "nextPageToken" from the previous response.
  1470. * @opt_param int maxResults The maximum number of saved reports to include in
  1471. * the response, used for paging.
  1472. * @return Google_Service_AdSense_SavedReports
  1473. */
  1474. public function listAccountsReportsSaved($accountId, $optParams = array())
  1475. {
  1476. $params = array('accountId' => $accountId);
  1477. $params = array_merge($params, $optParams);
  1478. return $this->call('list', array($params), "Google_Service_AdSense_SavedReports");
  1479. }
  1480. }
  1481. /**
  1482. * The "savedadstyles" collection of methods.
  1483. * Typical usage is:
  1484. * <code>
  1485. * $adsenseService = new Google_Service_AdSense(...);
  1486. * $savedadstyles = $adsenseService->savedadstyles;
  1487. * </code>
  1488. */
  1489. class Google_Service_AdSense_AccountsSavedadstyles_Resource extends Google_Service_Resource
  1490. {
  1491. /**
  1492. * List a specific saved ad style for the specified account. (savedadstyles.get)
  1493. *
  1494. * @param string $accountId Account for which to get the saved ad style.
  1495. * @param string $savedAdStyleId Saved ad style to retrieve.
  1496. * @param array $optParams Optional parameters.
  1497. * @return Google_Service_AdSense_SavedAdStyle
  1498. */
  1499. public function get($accountId, $savedAdStyleId, $optParams = array())
  1500. {
  1501. $params = array('accountId' => $accountId, 'savedAdStyleId' => $savedAdStyleId);
  1502. $params = array_merge($params, $optParams);
  1503. return $this->call('get', array($params), "Google_Service_AdSense_SavedAdStyle");
  1504. }
  1505. /**
  1506. * List all saved ad styles in the specified account.
  1507. * (savedadstyles.listAccountsSavedadstyles)
  1508. *
  1509. * @param string $accountId Account for which to list saved ad styles.
  1510. * @param array $optParams Optional parameters.
  1511. *
  1512. * @opt_param string pageToken A continuation token, used to page through saved
  1513. * ad styles. To retrieve the next page, set this parameter to the value of
  1514. * "nextPageToken" from the previous response.
  1515. * @opt_param int maxResults The maximum number of saved ad styles to include in
  1516. * the response, used for paging.
  1517. * @return Google_Service_AdSense_SavedAdStyles
  1518. */
  1519. public function listAccountsSavedadstyles($accountId, $optParams = array())
  1520. {
  1521. $params = array('accountId' => $accountId);
  1522. $params = array_merge($params, $optParams);
  1523. return $this->call('list', array($params), "Google_Service_AdSense_SavedAdStyles");
  1524. }
  1525. }
  1526. /**
  1527. * The "urlchannels" collection of methods.
  1528. * Typical usage is:
  1529. * <code>
  1530. * $adsenseService = new Google_Service_AdSense(...);
  1531. * $urlchannels = $adsenseService->urlchannels;
  1532. * </code>
  1533. */
  1534. class Google_Service_AdSense_AccountsUrlchannels_Resource extends Google_Service_Resource
  1535. {
  1536. /**
  1537. * List all URL channels in the specified ad client for the specified account.
  1538. * (urlchannels.listAccountsUrlchannels)
  1539. *
  1540. * @param string $accountId Account to which the ad client belongs.
  1541. * @param string $adClientId Ad client for which to list URL channels.
  1542. * @param array $optParams Optional parameters.
  1543. *
  1544. * @opt_param string pageToken A continuation token, used to page through URL
  1545. * channels. To retrieve the next page, set this parameter to the value of
  1546. * "nextPageToken" from the previous response.
  1547. * @opt_param int maxResults The maximum number of URL channels to include in
  1548. * the response, used for paging.
  1549. * @return Google_Service_AdSense_UrlChannels
  1550. */
  1551. public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array())
  1552. {
  1553. $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
  1554. $params = array_merge($params, $optParams);
  1555. return $this->call('list', array($params), "Google_Service_AdSense_UrlChannels");
  1556. }
  1557. }
  1558. /**
  1559. * The "adclients" collection of methods.
  1560. * Typical usage is:
  1561. * <code>
  1562. * $adsenseService = new Google_Service_AdSense(...);
  1563. * $adclients = $adsenseService->adclients;
  1564. * </code>
  1565. */
  1566. class Google_Service_AdSense_Adclients_Resource extends Google_Service_Resource
  1567. {
  1568. /**
  1569. * List all ad clients in this AdSense account. (adclients.listAdclients)
  1570. *
  1571. * @param array $optParams Optional parameters.
  1572. *
  1573. * @opt_param string pageToken A continuation token, used to page through ad
  1574. * clients. To retrieve the next page, set this parameter to the value of
  1575. * "nextPageToken" from the previous response.
  1576. * @opt_param int maxResults The maximum number of ad clients to include in the
  1577. * response, used for paging.
  1578. * @return Google_Service_AdSense_AdClients
  1579. */
  1580. public function listAdclients($optParams = array())
  1581. {
  1582. $params = array();
  1583. $params = array_merge($params, $optParams);
  1584. return $this->call('list', array($params), "Google_Service_AdSense_AdClients");
  1585. }
  1586. }
  1587. /**
  1588. * The "adunits" collection of methods.
  1589. * Typical usage is:
  1590. * <code>
  1591. * $adsenseService = new Google_Service_AdSense(...);
  1592. * $adunits = $adsenseService->adunits;
  1593. * </code>
  1594. */
  1595. class Google_Service_AdSense_Adunits_Resource extends Google_Service_Resource
  1596. {
  1597. /**
  1598. * Gets the specified ad unit in the specified ad client. (adunits.get)
  1599. *
  1600. * @param string $adClientId Ad client for which to get the ad unit.
  1601. * @param string $adUnitId Ad unit to retrieve.
  1602. * @param array $optParams Optional parameters.
  1603. * @return Google_Service_AdSense_AdUnit
  1604. */
  1605. public function get($adClientId, $adUnitId, $optParams = array())
  1606. {
  1607. $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  1608. $params = array_merge($params, $optParams);
  1609. return $this->call('get', array($params), "Google_Service_AdSense_AdUnit");
  1610. }
  1611. /**
  1612. * Get ad code for the specified ad unit. (adunits.getAdCode)
  1613. *
  1614. * @param string $adClientId Ad client with contains the ad unit.
  1615. * @param string $adUnitId Ad unit to get the code for.
  1616. * @param array $optParams Optional parameters.
  1617. * @return Google_Service_AdSense_AdCode
  1618. */
  1619. public function getAdCode($adClientId, $adUnitId, $optParams = array())
  1620. {
  1621. $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  1622. $params = array_merge($params, $optParams);
  1623. return $this->call('getAdCode', array($params), "Google_Service_AdSense_AdCode");
  1624. }
  1625. /**
  1626. * List all ad units in the specified ad client for this AdSense account.
  1627. * (adunits.listAdunits)
  1628. *
  1629. * @param string $adClientId Ad client for which to list ad units.
  1630. * @param array $optParams Optional parameters.
  1631. *
  1632. * @opt_param bool includeInactive Whether to include inactive ad units.
  1633. * Default: true.
  1634. * @opt_param string pageToken A continuation token, used to page through ad
  1635. * units. To retrieve the next page, set this parameter to the value of
  1636. * "nextPageToken" from the previous response.
  1637. * @opt_param int maxResults The maximum number of ad units to include in the
  1638. * response, used for paging.
  1639. * @return Google_Service_AdSense_AdUnits
  1640. */
  1641. public function listAdunits($adClientId, $optParams = array())
  1642. {
  1643. $params = array('adClientId' => $adClientId);
  1644. $params = array_merge($params, $optParams);
  1645. return $this->call('list', array($params), "Google_Service_AdSense_AdUnits");
  1646. }
  1647. }
  1648. /**
  1649. * The "customchannels" collection of methods.
  1650. * Typical usage is:
  1651. * <code>
  1652. * $adsenseService = new Google_Service_AdSense(...);
  1653. * $customchannels = $adsenseService->customchannels;
  1654. * </code>
  1655. */
  1656. class Google_Service_AdSense_AdunitsCustomchannels_Resource extends Google_Service_Resource
  1657. {
  1658. /**
  1659. * List all custom channels which the specified ad unit belongs to.
  1660. * (customchannels.listAdunitsCustomchannels)
  1661. *
  1662. * @param string $adClientId Ad client which contains the ad unit.
  1663. * @param string $adUnitId Ad unit for which to list custom channels.
  1664. * @param array $optParams Optional parameters.
  1665. *
  1666. * @opt_param string pageToken A continuation token, used to page through custom
  1667. * channels. To retrieve the next page, set this parameter to the value of
  1668. * "nextPageToken" from the previous response.
  1669. * @opt_param int maxResults The maximum number of custom channels to include in
  1670. * the response, used for paging.
  1671. * @return Google_Service_AdSense_CustomChannels
  1672. */
  1673. public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array())
  1674. {
  1675. $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  1676. $params = array_merge($params, $optParams);
  1677. return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels");
  1678. }
  1679. }
  1680. /**
  1681. * The "alerts" collection of methods.
  1682. * Typical usage is:
  1683. * <code>
  1684. * $adsenseService = new Google_Service_AdSense(...);
  1685. * $alerts = $adsenseService->alerts;
  1686. * </code>
  1687. */
  1688. class Google_Service_AdSense_Alerts_Resource extends Google_Service_Resource
  1689. {
  1690. /**
  1691. * Dismiss (delete) the specified alert from the publisher's AdSense account.
  1692. * (alerts.delete)
  1693. *
  1694. * @param string $alertId Alert to delete.
  1695. * @param array $optParams Optional parameters.
  1696. */
  1697. public function delete($alertId, $optParams = array())
  1698. {
  1699. $params = array('alertId' => $alertId);
  1700. $params = array_merge($params, $optParams);
  1701. return $this->call('delete', array($params));
  1702. }
  1703. /**
  1704. * List the alerts for this AdSense account. (alerts.listAlerts)
  1705. *
  1706. * @param array $optParams Optional parameters.
  1707. *
  1708. * @opt_param string locale The locale to use for translating alert messages.
  1709. * The account locale will be used if this is not supplied. The AdSense default
  1710. * (English) will be used if the supplied locale is invalid or unsupported.
  1711. * @return Google_Service_AdSense_Alerts
  1712. */
  1713. public function listAlerts($optParams = array())
  1714. {
  1715. $params = array();
  1716. $params = array_merge($params, $optParams);
  1717. return $this->call('list', array($params), "Google_Service_AdSense_Alerts");
  1718. }
  1719. }
  1720. /**
  1721. * The "customchannels" collection of methods.
  1722. * Typical usage is:
  1723. * <code>
  1724. * $adsenseService = new Google_Service_AdSense(...);
  1725. * $customchannels = $adsenseService->customchannels;
  1726. * </code>
  1727. */
  1728. class Google_Service_AdSense_Customchannels_Resource extends Google_Service_Resource
  1729. {
  1730. /**
  1731. * Get the specified custom channel from the specified ad client.
  1732. * (customchannels.get)
  1733. *
  1734. * @param string $adClientId Ad client which contains the custom channel.
  1735. * @param string $customChannelId Custom channel to retrieve.
  1736. * @param array $optParams Optional parameters.
  1737. * @return Google_Service_AdSense_CustomChannel
  1738. */
  1739. public function get($adClientId, $customChannelId, $optParams = array())
  1740. {
  1741. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
  1742. $params = array_merge($params, $optParams);
  1743. return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel");
  1744. }
  1745. /**
  1746. * List all custom channels in the specified ad client for this AdSense account.
  1747. * (customchannels.listCustomchannels)
  1748. *
  1749. * @param string $adClientId Ad client for which to list custom channels.
  1750. * @param array $optParams Optional parameters.
  1751. *
  1752. * @opt_param string pageToken A continuation token, used to page through custom
  1753. * channels. To retrieve the next page, set this parameter to the value of
  1754. * "nextPageToken" from the previous response.
  1755. * @opt_param int maxResults The maximum number of custom channels to include in
  1756. * the response, used for paging.
  1757. * @return Google_Service_AdSense_CustomChannels
  1758. */
  1759. public function listCustomchannels($adClientId, $optParams = array())
  1760. {
  1761. $params = array('adClientId' => $adClientId);
  1762. $params = array_merge($params, $optParams);
  1763. return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels");
  1764. }
  1765. }
  1766. /**
  1767. * The "adunits" collection of methods.
  1768. * Typical usage is:
  1769. * <code>
  1770. * $adsenseService = new Google_Service_AdSense(...);
  1771. * $adunits = $adsenseService->adunits;
  1772. * </code>
  1773. */
  1774. class Google_Service_AdSense_CustomchannelsAdunits_Resource extends Google_Service_Resource
  1775. {
  1776. /**
  1777. * List all ad units in the specified custom channel.
  1778. * (adunits.listCustomchannelsAdunits)
  1779. *
  1780. * @param string $adClientId Ad client which contains the custom channel.
  1781. * @param string $customChannelId Custom channel for which to list ad units.
  1782. * @param array $optParams Optional parameters.
  1783. *
  1784. * @opt_param bool includeInactive Whether to include inactive ad units.
  1785. * Default: true.
  1786. * @opt_param string pageToken A continuation token, used to page through ad
  1787. * units. To retrieve the next page, set this parameter to the value of
  1788. * "nextPageToken" from the previous response.
  1789. * @opt_param int maxResults The maximum number of ad units to include in the
  1790. * response, used for paging.
  1791. * @return Google_Service_AdSense_AdUnits
  1792. */
  1793. public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array())
  1794. {
  1795. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
  1796. $params = array_merge($params, $optParams);
  1797. return $this->call('list', array($params), "Google_Service_AdSense_AdUnits");
  1798. }
  1799. }
  1800. /**
  1801. * The "metadata" collection of methods.
  1802. * Typical usage is:
  1803. * <code>
  1804. * $adsenseService = new Google_Service_AdSense(...);
  1805. * $metadata = $adsenseService->metadata;
  1806. * </code>
  1807. */
  1808. class Google_Service_AdSense_Metadata_Resource extends Google_Service_Resource
  1809. {
  1810. }
  1811. /**
  1812. * The "dimensions" collection of methods.
  1813. * Typical usage is:
  1814. * <code>
  1815. * $adsenseService = new Google_Service_AdSense(...);
  1816. * $dimensions = $adsenseService->dimensions;
  1817. * </code>
  1818. */
  1819. class Google_Service_AdSense_MetadataDimensions_Resource extends Google_Service_Resource
  1820. {
  1821. /**
  1822. * List the metadata for the dimensions available to this AdSense account.
  1823. * (dimensions.listMetadataDimensions)
  1824. *
  1825. * @param array $optParams Optional parameters.
  1826. * @return Google_Service_AdSense_Metadata
  1827. */
  1828. public function listMetadataDimensions($optParams = array())
  1829. {
  1830. $params = array();
  1831. $params = array_merge($params, $optParams);
  1832. return $this->call('list', array($params), "Google_Service_AdSense_Metadata");
  1833. }
  1834. }
  1835. /**
  1836. * The "metrics" collection of methods.
  1837. * Typical usage is:
  1838. * <code>
  1839. * $adsenseService = new Google_Service_AdSense(...);
  1840. * $metrics = $adsenseService->metrics;
  1841. * </code>
  1842. */
  1843. class Google_Service_AdSense_MetadataMetrics_Resource extends Google_Service_Resource
  1844. {
  1845. /**
  1846. * List the metadata for the metrics available to this AdSense account.
  1847. * (metrics.listMetadataMetrics)
  1848. *
  1849. * @param array $optParams Optional parameters.
  1850. * @return Google_Service_AdSense_Metadata
  1851. */
  1852. public function listMetadataMetrics($optParams = array())
  1853. {
  1854. $params = array();
  1855. $params = array_merge($params, $optParams);
  1856. return $this->call('list', array($params), "Google_Service_AdSense_Metadata");
  1857. }
  1858. }
  1859. /**
  1860. * The "payments" collection of methods.
  1861. * Typical usage is:
  1862. * <code>
  1863. * $adsenseService = new Google_Service_AdSense(...);
  1864. * $payments = $adsenseService->payments;
  1865. * </code>
  1866. */
  1867. class Google_Service_AdSense_Payments_Resource extends Google_Service_Resource
  1868. {
  1869. /**
  1870. * List the payments for this AdSense account. (payments.listPayments)
  1871. *
  1872. * @param array $optParams Optional parameters.
  1873. * @return Google_Service_AdSense_Payments
  1874. */
  1875. public function listPayments($optParams = array())
  1876. {
  1877. $params = array();
  1878. $params = array_merge($params, $optParams);
  1879. return $this->call('list', array($params), "Google_Service_AdSense_Payments");
  1880. }
  1881. }
  1882. /**
  1883. * The "reports" collection of methods.
  1884. * Typical usage is:
  1885. * <code>
  1886. * $adsenseService = new Google_Service_AdSense(...);
  1887. * $reports = $adsenseService->reports;
  1888. * </code>
  1889. */
  1890. class Google_Service_AdSense_Reports_Resource extends Google_Service_Resource
  1891. {
  1892. /**
  1893. * Generate an AdSense report based on the report request sent in the query
  1894. * parameters. Returns the result as JSON; to retrieve output in CSV format
  1895. * specify "alt=csv" as a query parameter. (reports.generate)
  1896. *
  1897. * @param string $startDate Start of the date range to report on in "YYYY-MM-DD"
  1898. * format, inclusive.
  1899. * @param string $endDate End of the date range to report on in "YYYY-MM-DD"
  1900. * format, inclusive.
  1901. * @param array $optParams Optional parameters.
  1902. *
  1903. * @opt_param string sort The name of a dimension or metric to sort the
  1904. * resulting report on, optionally prefixed with "+" to sort ascending or "-" to
  1905. * sort descending. If no prefix is specified, the column is sorted ascending.
  1906. * @opt_param string locale Optional locale to use for translating report output
  1907. * to a local language. Defaults to "en_US" if not specified.
  1908. * @opt_param string metric Numeric columns to include in the report.
  1909. * @opt_param int maxResults The maximum number of rows of report data to
  1910. * return.
  1911. * @opt_param string filter Filters to be run on the report.
  1912. * @opt_param string currency Optional currency to use when reporting on
  1913. * monetary metrics. Defaults to the account's currency if not set.
  1914. * @opt_param int startIndex Index of the first row of report data to return.
  1915. * @opt_param bool useTimezoneReporting Whether the report should be generated
  1916. * in the AdSense account's local timezone. If false default PST/PDT timezone
  1917. * will be used.
  1918. * @opt_param string dimension Dimensions to base the report on.
  1919. * @opt_param string accountId Accounts upon which to report.
  1920. * @return Google_Service_AdSense_AdsenseReportsGenerateResponse
  1921. */
  1922. public function generate($startDate, $endDate, $optParams = array())
  1923. {
  1924. $params = array('startDate' => $startDate, 'endDate' => $endDate);
  1925. $params = array_merge($params, $optParams);
  1926. return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse");
  1927. }
  1928. }
  1929. /**
  1930. * The "saved" collection of methods.
  1931. * Typical usage is:
  1932. * <code>
  1933. * $adsenseService = new Google_Service_AdSense(...);
  1934. * $saved = $adsenseService->saved;
  1935. * </code>
  1936. */
  1937. class Google_Service_AdSense_ReportsSaved_Resource extends Google_Service_Resource
  1938. {
  1939. /**
  1940. * Generate an AdSense report based on the saved report ID sent in the query
  1941. * parameters. (saved.generate)
  1942. *
  1943. * @param string $savedReportId The saved report to retrieve.
  1944. * @param array $optParams Optional parameters.
  1945. *
  1946. * @opt_param string locale Optional locale to use for translating report output
  1947. * to a local language. Defaults to "en_US" if not specified.
  1948. * @opt_param int startIndex Index of the first row of report data to return.
  1949. * @opt_param int maxResults The maximum number of rows of report data to
  1950. * return.
  1951. * @return Google_Service_AdSense_AdsenseReportsGenerateResponse
  1952. */
  1953. public function generate($savedReportId, $optParams = array())
  1954. {
  1955. $params = array('savedReportId' => $savedReportId);
  1956. $params = array_merge($params, $optParams);
  1957. return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse");
  1958. }
  1959. /**
  1960. * List all saved reports in this AdSense account. (saved.listReportsSaved)
  1961. *
  1962. * @param array $optParams Optional parameters.
  1963. *
  1964. * @opt_param string pageToken A continuation token, used to page through saved
  1965. * reports. To retrieve the next page, set this parameter to the value of
  1966. * "nextPageToken" from the previous response.
  1967. * @opt_param int maxResults The maximum number of saved reports to include in
  1968. * the response, used for paging.
  1969. * @return Google_Service_AdSense_SavedReports
  1970. */
  1971. public function listReportsSaved($optParams = array())
  1972. {
  1973. $params = array();
  1974. $params = array_merge($params, $optParams);
  1975. return $this->call('list', array($params), "Google_Service_AdSense_SavedReports");
  1976. }
  1977. }
  1978. /**
  1979. * The "savedadstyles" collection of methods.
  1980. * Typical usage is:
  1981. * <code>
  1982. * $adsenseService = new Google_Service_AdSense(...);
  1983. * $savedadstyles = $adsenseService->savedadstyles;
  1984. * </code>
  1985. */
  1986. class Google_Service_AdSense_Savedadstyles_Resource extends Google_Service_Resource
  1987. {
  1988. /**
  1989. * Get a specific saved ad style from the user's account. (savedadstyles.get)
  1990. *
  1991. * @param string $savedAdStyleId Saved ad style to retrieve.
  1992. * @param array $optParams Optional parameters.
  1993. * @return Google_Service_AdSense_SavedAdStyle
  1994. */
  1995. public function get($savedAdStyleId, $optParams = array())
  1996. {
  1997. $params = array('savedAdStyleId' => $savedAdStyleId);
  1998. $params = array_merge($params, $optParams);
  1999. return $this->call('get', array($params), "Google_Service_AdSense_SavedAdStyle");
  2000. }
  2001. /**
  2002. * List all saved ad styles in the user's account.
  2003. * (savedadstyles.listSavedadstyles)
  2004. *
  2005. * @param array $optParams Optional parameters.
  2006. *
  2007. * @opt_param string pageToken A continuation token, used to page through saved
  2008. * ad styles. To retrieve the next page, set this parameter to the value of
  2009. * "nextPageToken" from the previous response.
  2010. * @opt_param int maxResults The maximum number of saved ad styles to include in
  2011. * the response, used for paging.
  2012. * @return Google_Service_AdSense_SavedAdStyles
  2013. */
  2014. public function listSavedadstyles($optParams = array())
  2015. {
  2016. $params = array();
  2017. $params = array_merge($params, $optParams);
  2018. return $this->call('list', array($params), "Google_Service_AdSense_SavedAdStyles");
  2019. }
  2020. }
  2021. /**
  2022. * The "urlchannels" collection of methods.
  2023. * Typical usage is:
  2024. * <code>
  2025. * $adsenseService = new Google_Service_AdSense(...);
  2026. * $urlchannels = $adsenseService->urlchannels;
  2027. * </code>
  2028. */
  2029. class Google_Service_AdSense_Urlchannels_Resource extends Google_Service_Resource
  2030. {
  2031. /**
  2032. * List all URL channels in the specified ad client for this AdSense account.
  2033. * (urlchannels.listUrlchannels)
  2034. *
  2035. * @param string $adClientId Ad client for which to list URL channels.
  2036. * @param array $optParams Optional parameters.
  2037. *
  2038. * @opt_param string pageToken A continuation token, used to page through URL
  2039. * channels. To retrieve the next page, set this parameter to the value of
  2040. * "nextPageToken" from the previous response.
  2041. * @opt_param int maxResults The maximum number of URL channels to include in
  2042. * the response, used for paging.
  2043. * @return Google_Service_AdSense_UrlChannels
  2044. */
  2045. public function listUrlchannels($adClientId, $optParams = array())
  2046. {
  2047. $params = array('adClientId' => $adClientId);
  2048. $params = array_merge($params, $optParams);
  2049. return $this->call('list', array($params), "Google_Service_AdSense_UrlChannels");
  2050. }
  2051. }
  2052. class Google_Service_AdSense_Account extends Google_Collection
  2053. {
  2054. protected $collection_key = 'subAccounts';
  2055. protected $internal_gapi_mappings = array(
  2056. "creationTime" => "creation_time",
  2057. );
  2058. public $creationTime;
  2059. public $id;
  2060. public $kind;
  2061. public $name;
  2062. public $premium;
  2063. protected $subAccountsType = 'Google_Service_AdSense_Account';
  2064. protected $subAccountsDataType = 'array';
  2065. public $timezone;
  2066. public function setCreationTime($creationTime)
  2067. {
  2068. $this->creationTime = $creationTime;
  2069. }
  2070. public function getCreationTime()
  2071. {
  2072. return $this->creationTime;
  2073. }
  2074. public function setId($id)
  2075. {
  2076. $this->id = $id;
  2077. }
  2078. public function getId()
  2079. {
  2080. return $this->id;
  2081. }
  2082. public function setKind($kind)
  2083. {
  2084. $this->kind = $kind;
  2085. }
  2086. public function getKind()
  2087. {
  2088. return $this->kind;
  2089. }
  2090. public function setName($name)
  2091. {
  2092. $this->name = $name;
  2093. }
  2094. public function getName()
  2095. {
  2096. return $this->name;
  2097. }
  2098. public function setPremium($premium)
  2099. {
  2100. $this->premium = $premium;
  2101. }
  2102. public function getPremium()
  2103. {
  2104. return $this->premium;
  2105. }
  2106. public function setSubAccounts($subAccounts)
  2107. {
  2108. $this->subAccounts = $subAccounts;
  2109. }
  2110. public function getSubAccounts()
  2111. {
  2112. return $this->subAccounts;
  2113. }
  2114. public function setTimezone($timezone)
  2115. {
  2116. $this->timezone = $timezone;
  2117. }
  2118. public function getTimezone()
  2119. {
  2120. return $this->timezone;
  2121. }
  2122. }
  2123. class Google_Service_AdSense_Accounts extends Google_Collection
  2124. {
  2125. protected $collection_key = 'items';
  2126. protected $internal_gapi_mappings = array(
  2127. );
  2128. public $etag;
  2129. protected $itemsType = 'Google_Service_AdSense_Account';
  2130. protected $itemsDataType = 'array';
  2131. public $kind;
  2132. public $nextPageToken;
  2133. public function setEtag($etag)
  2134. {
  2135. $this->etag = $etag;
  2136. }
  2137. public function getEtag()
  2138. {
  2139. return $this->etag;
  2140. }
  2141. public function setItems($items)
  2142. {
  2143. $this->items = $items;
  2144. }
  2145. public function getItems()
  2146. {
  2147. return $this->items;
  2148. }
  2149. public function setKind($kind)
  2150. {
  2151. $this->kind = $kind;
  2152. }
  2153. public function getKind()
  2154. {
  2155. return $this->kind;
  2156. }
  2157. public function setNextPageToken($nextPageToken)
  2158. {
  2159. $this->nextPageToken = $nextPageToken;
  2160. }
  2161. public function getNextPageToken()
  2162. {
  2163. return $this->nextPageToken;
  2164. }
  2165. }
  2166. class Google_Service_AdSense_AdClient extends Google_Model
  2167. {
  2168. protected $internal_gapi_mappings = array(
  2169. );
  2170. public $arcOptIn;
  2171. public $arcReviewMode;
  2172. public $id;
  2173. public $kind;
  2174. public $productCode;
  2175. public $supportsReporting;
  2176. public function setArcOptIn($arcOptIn)
  2177. {
  2178. $this->arcOptIn = $arcOptIn;
  2179. }
  2180. public function getArcOptIn()
  2181. {
  2182. return $this->arcOptIn;
  2183. }
  2184. public function setArcReviewMode($arcReviewMode)
  2185. {
  2186. $this->arcReviewMode = $arcReviewMode;
  2187. }
  2188. public function getArcReviewMode()
  2189. {
  2190. return $this->arcReviewMode;
  2191. }
  2192. public function setId($id)
  2193. {
  2194. $this->id = $id;
  2195. }
  2196. public function getId()
  2197. {
  2198. return $this->id;
  2199. }
  2200. public function setKind($kind)
  2201. {
  2202. $this->kind = $kind;
  2203. }
  2204. public function getKind()
  2205. {
  2206. return $this->kind;
  2207. }
  2208. public function setProductCode($productCode)
  2209. {
  2210. $this->productCode = $productCode;
  2211. }
  2212. public function getProductCode()
  2213. {
  2214. return $this->productCode;
  2215. }
  2216. public function setSupportsReporting($supportsReporting)
  2217. {
  2218. $this->supportsReporting = $supportsReporting;
  2219. }
  2220. public function getSupportsReporting()
  2221. {
  2222. return $this->supportsReporting;
  2223. }
  2224. }
  2225. class Google_Service_AdSense_AdClients extends Google_Collection
  2226. {
  2227. protected $collection_key = 'items';
  2228. protected $internal_gapi_mappings = array(
  2229. );
  2230. public $etag;
  2231. protected $itemsType = 'Google_Service_AdSense_AdClient';
  2232. protected $itemsDataType = 'array';
  2233. public $kind;
  2234. public $nextPageToken;
  2235. public function setEtag($etag)
  2236. {
  2237. $this->etag = $etag;
  2238. }
  2239. public function getEtag()
  2240. {
  2241. return $this->etag;
  2242. }
  2243. public function setItems($items)
  2244. {
  2245. $this->items = $items;
  2246. }
  2247. public function getItems()
  2248. {
  2249. return $this->items;
  2250. }
  2251. public function setKind($kind)
  2252. {
  2253. $this->kind = $kind;
  2254. }
  2255. public function getKind()
  2256. {
  2257. return $this->kind;
  2258. }
  2259. public function setNextPageToken($nextPageToken)
  2260. {
  2261. $this->nextPageToken = $nextPageToken;
  2262. }
  2263. public function getNextPageToken()
  2264. {
  2265. return $this->nextPageToken;
  2266. }
  2267. }
  2268. class Google_Service_AdSense_AdCode extends Google_Model
  2269. {
  2270. protected $internal_gapi_mappings = array(
  2271. );
  2272. public $adCode;
  2273. public $kind;
  2274. public function setAdCode($adCode)
  2275. {
  2276. $this->adCode = $adCode;
  2277. }
  2278. public function getAdCode()
  2279. {
  2280. return $this->adCode;
  2281. }
  2282. public function setKind($kind)
  2283. {
  2284. $this->kind = $kind;
  2285. }
  2286. public function getKind()
  2287. {
  2288. return $this->kind;
  2289. }
  2290. }
  2291. class Google_Service_AdSense_AdStyle extends Google_Model
  2292. {
  2293. protected $internal_gapi_mappings = array(
  2294. );
  2295. protected $colorsType = 'Google_Service_AdSense_AdStyleColors';
  2296. protected $colorsDataType = '';
  2297. public $corners;
  2298. protected $fontType = 'Google_Service_AdSense_AdStyleFont';
  2299. protected $fontDataType = '';
  2300. public $kind;
  2301. public function setColors(Google_Service_AdSense_AdStyleColors $colors)
  2302. {
  2303. $this->colors = $colors;
  2304. }
  2305. public function getColors()
  2306. {
  2307. return $this->colors;
  2308. }
  2309. public function setCorners($corners)
  2310. {
  2311. $this->corners = $corners;
  2312. }
  2313. public function getCorners()
  2314. {
  2315. return $this->corners;
  2316. }
  2317. public function setFont(Google_Service_AdSense_AdStyleFont $font)
  2318. {
  2319. $this->font = $font;
  2320. }
  2321. public function getFont()
  2322. {
  2323. return $this->font;
  2324. }
  2325. public function setKind($kind)
  2326. {
  2327. $this->kind = $kind;
  2328. }
  2329. public function getKind()
  2330. {
  2331. return $this->kind;
  2332. }
  2333. }
  2334. class Google_Service_AdSense_AdStyleColors extends Google_Model
  2335. {
  2336. protected $internal_gapi_mappings = array(
  2337. );
  2338. public $background;
  2339. public $border;
  2340. public $text;
  2341. public $title;
  2342. public $url;
  2343. public function setBackground($background)
  2344. {
  2345. $this->background = $background;
  2346. }
  2347. public function getBackground()
  2348. {
  2349. return $this->background;
  2350. }
  2351. public function setBorder($border)
  2352. {
  2353. $this->border = $border;
  2354. }
  2355. public function getBorder()
  2356. {
  2357. return $this->border;
  2358. }
  2359. public function setText($text)
  2360. {
  2361. $this->text = $text;
  2362. }
  2363. public function getText()
  2364. {
  2365. return $this->text;
  2366. }
  2367. public function setTitle($title)
  2368. {
  2369. $this->title = $title;
  2370. }
  2371. public function getTitle()
  2372. {
  2373. return $this->title;
  2374. }
  2375. public function setUrl($url)
  2376. {
  2377. $this->url = $url;
  2378. }
  2379. public function getUrl()
  2380. {
  2381. return $this->url;
  2382. }
  2383. }
  2384. class Google_Service_AdSense_AdStyleFont extends Google_Model
  2385. {
  2386. protected $internal_gapi_mappings = array(
  2387. );
  2388. public $family;
  2389. public $size;
  2390. public function setFamily($family)
  2391. {
  2392. $this->family = $family;
  2393. }
  2394. public function getFamily()
  2395. {
  2396. return $this->family;
  2397. }
  2398. public function setSize($size)
  2399. {
  2400. $this->size = $size;
  2401. }
  2402. public function getSize()
  2403. {
  2404. return $this->size;
  2405. }
  2406. }
  2407. class Google_Service_AdSense_AdUnit extends Google_Model
  2408. {
  2409. protected $internal_gapi_mappings = array(
  2410. );
  2411. public $code;
  2412. protected $contentAdsSettingsType = 'Google_Service_AdSense_AdUnitContentAdsSettings';
  2413. protected $contentAdsSettingsDataType = '';
  2414. protected $customStyleType = 'Google_Service_AdSense_AdStyle';
  2415. protected $customStyleDataType = '';
  2416. protected $feedAdsSettingsType = 'Google_Service_AdSense_AdUnitFeedAdsSettings';
  2417. protected $feedAdsSettingsDataType = '';
  2418. public $id;
  2419. public $kind;
  2420. protected $mobileContentAdsSettingsType = 'Google_Service_AdSense_AdUnitMobileContentAdsSettings';
  2421. protected $mobileContentAdsSettingsDataType = '';
  2422. public $name;
  2423. public $savedStyleId;
  2424. public $status;
  2425. public function setCode($code)
  2426. {
  2427. $this->code = $code;
  2428. }
  2429. public function getCode()
  2430. {
  2431. return $this->code;
  2432. }
  2433. public function setContentAdsSettings(Google_Service_AdSense_AdUnitContentAdsSettings $contentAdsSettings)
  2434. {
  2435. $this->contentAdsSettings = $contentAdsSettings;
  2436. }
  2437. public function getContentAdsSettings()
  2438. {
  2439. return $this->contentAdsSettings;
  2440. }
  2441. public function setCustomStyle(Google_Service_AdSense_AdStyle $customStyle)
  2442. {
  2443. $this->customStyle = $customStyle;
  2444. }
  2445. public function getCustomStyle()
  2446. {
  2447. return $this->customStyle;
  2448. }
  2449. public function setFeedAdsSettings(Google_Service_AdSense_AdUnitFeedAdsSettings $feedAdsSettings)
  2450. {
  2451. $this->feedAdsSettings = $feedAdsSettings;
  2452. }
  2453. public function getFeedAdsSettings()
  2454. {
  2455. return $this->feedAdsSettings;
  2456. }
  2457. public function setId($id)
  2458. {
  2459. $this->id = $id;
  2460. }
  2461. public function getId()
  2462. {
  2463. return $this->id;
  2464. }
  2465. public function setKind($kind)
  2466. {
  2467. $this->kind = $kind;
  2468. }
  2469. public function getKind()
  2470. {
  2471. return $this->kind;
  2472. }
  2473. public function setMobileContentAdsSettings(Google_Service_AdSense_AdUnitMobileContentAdsSettings $mobileContentAdsSettings)
  2474. {
  2475. $this->mobileContentAdsSettings = $mobileContentAdsSettings;
  2476. }
  2477. public function getMobileContentAdsSettings()
  2478. {
  2479. return $this->mobileContentAdsSettings;
  2480. }
  2481. public function setName($name)
  2482. {
  2483. $this->name = $name;
  2484. }
  2485. public function getName()
  2486. {
  2487. return $this->name;
  2488. }
  2489. public function setSavedStyleId($savedStyleId)
  2490. {
  2491. $this->savedStyleId = $savedStyleId;
  2492. }
  2493. public function getSavedStyleId()
  2494. {
  2495. return $this->savedStyleId;
  2496. }
  2497. public function setStatus($status)
  2498. {
  2499. $this->status = $status;
  2500. }
  2501. public function getStatus()
  2502. {
  2503. return $this->status;
  2504. }
  2505. }
  2506. class Google_Service_AdSense_AdUnitContentAdsSettings extends Google_Model
  2507. {
  2508. protected $internal_gapi_mappings = array(
  2509. );
  2510. protected $backupOptionType = 'Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption';
  2511. protected $backupOptionDataType = '';
  2512. public $size;
  2513. public $type;
  2514. public function setBackupOption(Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption $backupOption)
  2515. {
  2516. $this->backupOption = $backupOption;
  2517. }
  2518. public function getBackupOption()
  2519. {
  2520. return $this->backupOption;
  2521. }
  2522. public function setSize($size)
  2523. {
  2524. $this->size = $size;
  2525. }
  2526. public function getSize()
  2527. {
  2528. return $this->size;
  2529. }
  2530. public function setType($type)
  2531. {
  2532. $this->type = $type;
  2533. }
  2534. public function getType()
  2535. {
  2536. return $this->type;
  2537. }
  2538. }
  2539. class Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption extends Google_Model
  2540. {
  2541. protected $internal_gapi_mappings = array(
  2542. );
  2543. public $color;
  2544. public $type;
  2545. public $url;
  2546. public function setColor($color)
  2547. {
  2548. $this->color = $color;
  2549. }
  2550. public function getColor()
  2551. {
  2552. return $this->color;
  2553. }
  2554. public function setType($type)
  2555. {
  2556. $this->type = $type;
  2557. }
  2558. public function getType()
  2559. {
  2560. return $this->type;
  2561. }
  2562. public function setUrl($url)
  2563. {
  2564. $this->url = $url;
  2565. }
  2566. public function getUrl()
  2567. {
  2568. return $this->url;
  2569. }
  2570. }
  2571. class Google_Service_AdSense_AdUnitFeedAdsSettings extends Google_Model
  2572. {
  2573. protected $internal_gapi_mappings = array(
  2574. );
  2575. public $adPosition;
  2576. public $frequency;
  2577. public $minimumWordCount;
  2578. public $type;
  2579. public function setAdPosition($adPosition)
  2580. {
  2581. $this->adPosition = $adPosition;
  2582. }
  2583. public function getAdPosition()
  2584. {
  2585. return $this->adPosition;
  2586. }
  2587. public function setFrequency($frequency)
  2588. {
  2589. $this->frequency = $frequency;
  2590. }
  2591. public function getFrequency()
  2592. {
  2593. return $this->frequency;
  2594. }
  2595. public function setMinimumWordCount($minimumWordCount)
  2596. {
  2597. $this->minimumWordCount = $minimumWordCount;
  2598. }
  2599. public function getMinimumWordCount()
  2600. {
  2601. return $this->minimumWordCount;
  2602. }
  2603. public function setType($type)
  2604. {
  2605. $this->type = $type;
  2606. }
  2607. public function getType()
  2608. {
  2609. return $this->type;
  2610. }
  2611. }
  2612. class Google_Service_AdSense_AdUnitMobileContentAdsSettings extends Google_Model
  2613. {
  2614. protected $internal_gapi_mappings = array(
  2615. );
  2616. public $markupLanguage;
  2617. public $scriptingLanguage;
  2618. public $size;
  2619. public $type;
  2620. public function setMarkupLanguage($markupLanguage)
  2621. {
  2622. $this->markupLanguage = $markupLanguage;
  2623. }
  2624. public function getMarkupLanguage()
  2625. {
  2626. return $this->markupLanguage;
  2627. }
  2628. public function setScriptingLanguage($scriptingLanguage)
  2629. {
  2630. $this->scriptingLanguage = $scriptingLanguage;
  2631. }
  2632. public function getScriptingLanguage()
  2633. {
  2634. return $this->scriptingLanguage;
  2635. }
  2636. public function setSize($size)
  2637. {
  2638. $this->size = $size;
  2639. }
  2640. public function getSize()
  2641. {
  2642. return $this->size;
  2643. }
  2644. public function setType($type)
  2645. {
  2646. $this->type = $type;
  2647. }
  2648. public function getType()
  2649. {
  2650. return $this->type;
  2651. }
  2652. }
  2653. class Google_Service_AdSense_AdUnits extends Google_Collection
  2654. {
  2655. protected $collection_key = 'items';
  2656. protected $internal_gapi_mappings = array(
  2657. );
  2658. public $etag;
  2659. protected $itemsType = 'Google_Service_AdSense_AdUnit';
  2660. protected $itemsDataType = 'array';
  2661. public $kind;
  2662. public $nextPageToken;
  2663. public function setEtag($etag)
  2664. {
  2665. $this->etag = $etag;
  2666. }
  2667. public function getEtag()
  2668. {
  2669. return $this->etag;
  2670. }
  2671. public function setItems($items)
  2672. {
  2673. $this->items = $items;
  2674. }
  2675. public function getItems()
  2676. {
  2677. return $this->items;
  2678. }
  2679. public function setKind($kind)
  2680. {
  2681. $this->kind = $kind;
  2682. }
  2683. public function getKind()
  2684. {
  2685. return $this->kind;
  2686. }
  2687. public function setNextPageToken($nextPageToken)
  2688. {
  2689. $this->nextPageToken = $nextPageToken;
  2690. }
  2691. public function getNextPageToken()
  2692. {
  2693. return $this->nextPageToken;
  2694. }
  2695. }
  2696. class Google_Service_AdSense_AdsenseReportsGenerateResponse extends Google_Collection
  2697. {
  2698. protected $collection_key = 'warnings';
  2699. protected $internal_gapi_mappings = array(
  2700. );
  2701. public $averages;
  2702. public $endDate;
  2703. protected $headersType = 'Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders';
  2704. protected $headersDataType = 'array';
  2705. public $kind;
  2706. public $rows;
  2707. public $startDate;
  2708. public $totalMatchedRows;
  2709. public $totals;
  2710. public $warnings;
  2711. public function setAverages($averages)
  2712. {
  2713. $this->averages = $averages;
  2714. }
  2715. public function getAverages()
  2716. {
  2717. return $this->averages;
  2718. }
  2719. public function setEndDate($endDate)
  2720. {
  2721. $this->endDate = $endDate;
  2722. }
  2723. public function getEndDate()
  2724. {
  2725. return $this->endDate;
  2726. }
  2727. public function setHeaders($headers)
  2728. {
  2729. $this->headers = $headers;
  2730. }
  2731. public function getHeaders()
  2732. {
  2733. return $this->headers;
  2734. }
  2735. public function setKind($kind)
  2736. {
  2737. $this->kind = $kind;
  2738. }
  2739. public function getKind()
  2740. {
  2741. return $this->kind;
  2742. }
  2743. public function setRows($rows)
  2744. {
  2745. $this->rows = $rows;
  2746. }
  2747. public function getRows()
  2748. {
  2749. return $this->rows;
  2750. }
  2751. public function setStartDate($startDate)
  2752. {
  2753. $this->startDate = $startDate;
  2754. }
  2755. public function getStartDate()
  2756. {
  2757. return $this->startDate;
  2758. }
  2759. public function setTotalMatchedRows($totalMatchedRows)
  2760. {
  2761. $this->totalMatchedRows = $totalMatchedRows;
  2762. }
  2763. public function getTotalMatchedRows()
  2764. {
  2765. return $this->totalMatchedRows;
  2766. }
  2767. public function setTotals($totals)
  2768. {
  2769. $this->totals = $totals;
  2770. }
  2771. public function getTotals()
  2772. {
  2773. return $this->totals;
  2774. }
  2775. public function setWarnings($warnings)
  2776. {
  2777. $this->warnings = $warnings;
  2778. }
  2779. public function getWarnings()
  2780. {
  2781. return $this->warnings;
  2782. }
  2783. }
  2784. class Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders extends Google_Model
  2785. {
  2786. protected $internal_gapi_mappings = array(
  2787. );
  2788. public $currency;
  2789. public $name;
  2790. public $type;
  2791. public function setCurrency($currency)
  2792. {
  2793. $this->currency = $currency;
  2794. }
  2795. public function getCurrency()
  2796. {
  2797. return $this->currency;
  2798. }
  2799. public function setName($name)
  2800. {
  2801. $this->name = $name;
  2802. }
  2803. public function getName()
  2804. {
  2805. return $this->name;
  2806. }
  2807. public function setType($type)
  2808. {
  2809. $this->type = $type;
  2810. }
  2811. public function getType()
  2812. {
  2813. return $this->type;
  2814. }
  2815. }
  2816. class Google_Service_AdSense_Alert extends Google_Model
  2817. {
  2818. protected $internal_gapi_mappings = array(
  2819. );
  2820. public $id;
  2821. public $isDismissible;
  2822. public $kind;
  2823. public $message;
  2824. public $severity;
  2825. public $type;
  2826. public function setId($id)
  2827. {
  2828. $this->id = $id;
  2829. }
  2830. public function getId()
  2831. {
  2832. return $this->id;
  2833. }
  2834. public function setIsDismissible($isDismissible)
  2835. {
  2836. $this->isDismissible = $isDismissible;
  2837. }
  2838. public function getIsDismissible()
  2839. {
  2840. return $this->isDismissible;
  2841. }
  2842. public function setKind($kind)
  2843. {
  2844. $this->kind = $kind;
  2845. }
  2846. public function getKind()
  2847. {
  2848. return $this->kind;
  2849. }
  2850. public function setMessage($message)
  2851. {
  2852. $this->message = $message;
  2853. }
  2854. public function getMessage()
  2855. {
  2856. return $this->message;
  2857. }
  2858. public function setSeverity($severity)
  2859. {
  2860. $this->severity = $severity;
  2861. }
  2862. public function getSeverity()
  2863. {
  2864. return $this->severity;
  2865. }
  2866. public function setType($type)
  2867. {
  2868. $this->type = $type;
  2869. }
  2870. public function getType()
  2871. {
  2872. return $this->type;
  2873. }
  2874. }
  2875. class Google_Service_AdSense_Alerts extends Google_Collection
  2876. {
  2877. protected $collection_key = 'items';
  2878. protected $internal_gapi_mappings = array(
  2879. );
  2880. protected $itemsType = 'Google_Service_AdSense_Alert';
  2881. protected $itemsDataType = 'array';
  2882. public $kind;
  2883. public function setItems($items)
  2884. {
  2885. $this->items = $items;
  2886. }
  2887. public function getItems()
  2888. {
  2889. return $this->items;
  2890. }
  2891. public function setKind($kind)
  2892. {
  2893. $this->kind = $kind;
  2894. }
  2895. public function getKind()
  2896. {
  2897. return $this->kind;
  2898. }
  2899. }
  2900. class Google_Service_AdSense_CustomChannel extends Google_Model
  2901. {
  2902. protected $internal_gapi_mappings = array(
  2903. );
  2904. public $code;
  2905. public $id;
  2906. public $kind;
  2907. public $name;
  2908. protected $targetingInfoType = 'Google_Service_AdSense_CustomChannelTargetingInfo';
  2909. protected $targetingInfoDataType = '';
  2910. public function setCode($code)
  2911. {
  2912. $this->code = $code;
  2913. }
  2914. public function getCode()
  2915. {
  2916. return $this->code;
  2917. }
  2918. public function setId($id)
  2919. {
  2920. $this->id = $id;
  2921. }
  2922. public function getId()
  2923. {
  2924. return $this->id;
  2925. }
  2926. public function setKind($kind)
  2927. {
  2928. $this->kind = $kind;
  2929. }
  2930. public function getKind()
  2931. {
  2932. return $this->kind;
  2933. }
  2934. public function setName($name)
  2935. {
  2936. $this->name = $name;
  2937. }
  2938. public function getName()
  2939. {
  2940. return $this->name;
  2941. }
  2942. public function setTargetingInfo(Google_Service_AdSense_CustomChannelTargetingInfo $targetingInfo)
  2943. {
  2944. $this->targetingInfo = $targetingInfo;
  2945. }
  2946. public function getTargetingInfo()
  2947. {
  2948. return $this->targetingInfo;
  2949. }
  2950. }
  2951. class Google_Service_AdSense_CustomChannelTargetingInfo extends Google_Model
  2952. {
  2953. protected $internal_gapi_mappings = array(
  2954. );
  2955. public $adsAppearOn;
  2956. public $description;
  2957. public $location;
  2958. public $siteLanguage;
  2959. public function setAdsAppearOn($adsAppearOn)
  2960. {
  2961. $this->adsAppearOn = $adsAppearOn;
  2962. }
  2963. public function getAdsAppearOn()
  2964. {
  2965. return $this->adsAppearOn;
  2966. }
  2967. public function setDescription($description)
  2968. {
  2969. $this->description = $description;
  2970. }
  2971. public function getDescription()
  2972. {
  2973. return $this->description;
  2974. }
  2975. public function setLocation($location)
  2976. {
  2977. $this->location = $location;
  2978. }
  2979. public function getLocation()
  2980. {
  2981. return $this->location;
  2982. }
  2983. public function setSiteLanguage($siteLanguage)
  2984. {
  2985. $this->siteLanguage = $siteLanguage;
  2986. }
  2987. public function getSiteLanguage()
  2988. {
  2989. return $this->siteLanguage;
  2990. }
  2991. }
  2992. class Google_Service_AdSense_CustomChannels extends Google_Collection
  2993. {
  2994. protected $collection_key = 'items';
  2995. protected $internal_gapi_mappings = array(
  2996. );
  2997. public $etag;
  2998. protected $itemsType = 'Google_Service_AdSense_CustomChannel';
  2999. protected $itemsDataType = 'array';
  3000. public $kind;
  3001. public $nextPageToken;
  3002. public function setEtag($etag)
  3003. {
  3004. $this->etag = $etag;
  3005. }
  3006. public function getEtag()
  3007. {
  3008. return $this->etag;
  3009. }
  3010. public function setItems($items)
  3011. {
  3012. $this->items = $items;
  3013. }
  3014. public function getItems()
  3015. {
  3016. return $this->items;
  3017. }
  3018. public function setKind($kind)
  3019. {
  3020. $this->kind = $kind;
  3021. }
  3022. public function getKind()
  3023. {
  3024. return $this->kind;
  3025. }
  3026. public function setNextPageToken($nextPageToken)
  3027. {
  3028. $this->nextPageToken = $nextPageToken;
  3029. }
  3030. public function getNextPageToken()
  3031. {
  3032. return $this->nextPageToken;
  3033. }
  3034. }
  3035. class Google_Service_AdSense_Metadata extends Google_Collection
  3036. {
  3037. protected $collection_key = 'items';
  3038. protected $internal_gapi_mappings = array(
  3039. );
  3040. protected $itemsType = 'Google_Service_AdSense_ReportingMetadataEntry';
  3041. protected $itemsDataType = 'array';
  3042. public $kind;
  3043. public function setItems($items)
  3044. {
  3045. $this->items = $items;
  3046. }
  3047. public function getItems()
  3048. {
  3049. return $this->items;
  3050. }
  3051. public function setKind($kind)
  3052. {
  3053. $this->kind = $kind;
  3054. }
  3055. public function getKind()
  3056. {
  3057. return $this->kind;
  3058. }
  3059. }
  3060. class Google_Service_AdSense_Payment extends Google_Model
  3061. {
  3062. protected $internal_gapi_mappings = array(
  3063. );
  3064. public $id;
  3065. public $kind;
  3066. public $paymentAmount;
  3067. public $paymentAmountCurrencyCode;
  3068. public $paymentDate;
  3069. public function setId($id)
  3070. {
  3071. $this->id = $id;
  3072. }
  3073. public function getId()
  3074. {
  3075. return $this->id;
  3076. }
  3077. public function setKind($kind)
  3078. {
  3079. $this->kind = $kind;
  3080. }
  3081. public function getKind()
  3082. {
  3083. return $this->kind;
  3084. }
  3085. public function setPaymentAmount($paymentAmount)
  3086. {
  3087. $this->paymentAmount = $paymentAmount;
  3088. }
  3089. public function getPaymentAmount()
  3090. {
  3091. return $this->paymentAmount;
  3092. }
  3093. public function setPaymentAmountCurrencyCode($paymentAmountCurrencyCode)
  3094. {
  3095. $this->paymentAmountCurrencyCode = $paymentAmountCurrencyCode;
  3096. }
  3097. public function getPaymentAmountCurrencyCode()
  3098. {
  3099. return $this->paymentAmountCurrencyCode;
  3100. }
  3101. public function setPaymentDate($paymentDate)
  3102. {
  3103. $this->paymentDate = $paymentDate;
  3104. }
  3105. public function getPaymentDate()
  3106. {
  3107. return $this->paymentDate;
  3108. }
  3109. }
  3110. class Google_Service_AdSense_Payments extends Google_Collection
  3111. {
  3112. protected $collection_key = 'items';
  3113. protected $internal_gapi_mappings = array(
  3114. );
  3115. protected $itemsType = 'Google_Service_AdSense_Payment';
  3116. protected $itemsDataType = 'array';
  3117. public $kind;
  3118. public function setItems($items)
  3119. {
  3120. $this->items = $items;
  3121. }
  3122. public function getItems()
  3123. {
  3124. return $this->items;
  3125. }
  3126. public function setKind($kind)
  3127. {
  3128. $this->kind = $kind;
  3129. }
  3130. public function getKind()
  3131. {
  3132. return $this->kind;
  3133. }
  3134. }
  3135. class Google_Service_AdSense_ReportingMetadataEntry extends Google_Collection
  3136. {
  3137. protected $collection_key = 'supportedProducts';
  3138. protected $internal_gapi_mappings = array(
  3139. );
  3140. public $compatibleDimensions;
  3141. public $compatibleMetrics;
  3142. public $id;
  3143. public $kind;
  3144. public $requiredDimensions;
  3145. public $requiredMetrics;
  3146. public $supportedProducts;
  3147. public function setCompatibleDimensions($compatibleDimensions)
  3148. {
  3149. $this->compatibleDimensions = $compatibleDimensions;
  3150. }
  3151. public function getCompatibleDimensions()
  3152. {
  3153. return $this->compatibleDimensions;
  3154. }
  3155. public function setCompatibleMetrics($compatibleMetrics)
  3156. {
  3157. $this->compatibleMetrics = $compatibleMetrics;
  3158. }
  3159. public function getCompatibleMetrics()
  3160. {
  3161. return $this->compatibleMetrics;
  3162. }
  3163. public function setId($id)
  3164. {
  3165. $this->id = $id;
  3166. }
  3167. public function getId()
  3168. {
  3169. return $this->id;
  3170. }
  3171. public function setKind($kind)
  3172. {
  3173. $this->kind = $kind;
  3174. }
  3175. public function getKind()
  3176. {
  3177. return $this->kind;
  3178. }
  3179. public function setRequiredDimensions($requiredDimensions)
  3180. {
  3181. $this->requiredDimensions = $requiredDimensions;
  3182. }
  3183. public function getRequiredDimensions()
  3184. {
  3185. return $this->requiredDimensions;
  3186. }
  3187. public function setRequiredMetrics($requiredMetrics)
  3188. {
  3189. $this->requiredMetrics = $requiredMetrics;
  3190. }
  3191. public function getRequiredMetrics()
  3192. {
  3193. return $this->requiredMetrics;
  3194. }
  3195. public function setSupportedProducts($supportedProducts)
  3196. {
  3197. $this->supportedProducts = $supportedProducts;
  3198. }
  3199. public function getSupportedProducts()
  3200. {
  3201. return $this->supportedProducts;
  3202. }
  3203. }
  3204. class Google_Service_AdSense_SavedAdStyle extends Google_Model
  3205. {
  3206. protected $internal_gapi_mappings = array(
  3207. );
  3208. protected $adStyleType = 'Google_Service_AdSense_AdStyle';
  3209. protected $adStyleDataType = '';
  3210. public $id;
  3211. public $kind;
  3212. public $name;
  3213. public function setAdStyle(Google_Service_AdSense_AdStyle $adStyle)
  3214. {
  3215. $this->adStyle = $adStyle;
  3216. }
  3217. public function getAdStyle()
  3218. {
  3219. return $this->adStyle;
  3220. }
  3221. public function setId($id)
  3222. {
  3223. $this->id = $id;
  3224. }
  3225. public function getId()
  3226. {
  3227. return $this->id;
  3228. }
  3229. public function setKind($kind)
  3230. {
  3231. $this->kind = $kind;
  3232. }
  3233. public function getKind()
  3234. {
  3235. return $this->kind;
  3236. }
  3237. public function setName($name)
  3238. {
  3239. $this->name = $name;
  3240. }
  3241. public function getName()
  3242. {
  3243. return $this->name;
  3244. }
  3245. }
  3246. class Google_Service_AdSense_SavedAdStyles extends Google_Collection
  3247. {
  3248. protected $collection_key = 'items';
  3249. protected $internal_gapi_mappings = array(
  3250. );
  3251. public $etag;
  3252. protected $itemsType = 'Google_Service_AdSense_SavedAdStyle';
  3253. protected $itemsDataType = 'array';
  3254. public $kind;
  3255. public $nextPageToken;
  3256. public function setEtag($etag)
  3257. {
  3258. $this->etag = $etag;
  3259. }
  3260. public function getEtag()
  3261. {
  3262. return $this->etag;
  3263. }
  3264. public function setItems($items)
  3265. {
  3266. $this->items = $items;
  3267. }
  3268. public function getItems()
  3269. {
  3270. return $this->items;
  3271. }
  3272. public function setKind($kind)
  3273. {
  3274. $this->kind = $kind;
  3275. }
  3276. public function getKind()
  3277. {
  3278. return $this->kind;
  3279. }
  3280. public function setNextPageToken($nextPageToken)
  3281. {
  3282. $this->nextPageToken = $nextPageToken;
  3283. }
  3284. public function getNextPageToken()
  3285. {
  3286. return $this->nextPageToken;
  3287. }
  3288. }
  3289. class Google_Service_AdSense_SavedReport extends Google_Model
  3290. {
  3291. protected $internal_gapi_mappings = array(
  3292. );
  3293. public $id;
  3294. public $kind;
  3295. public $name;
  3296. public function setId($id)
  3297. {
  3298. $this->id = $id;
  3299. }
  3300. public function getId()
  3301. {
  3302. return $this->id;
  3303. }
  3304. public function setKind($kind)
  3305. {
  3306. $this->kind = $kind;
  3307. }
  3308. public function getKind()
  3309. {
  3310. return $this->kind;
  3311. }
  3312. public function setName($name)
  3313. {
  3314. $this->name = $name;
  3315. }
  3316. public function getName()
  3317. {
  3318. return $this->name;
  3319. }
  3320. }
  3321. class Google_Service_AdSense_SavedReports extends Google_Collection
  3322. {
  3323. protected $collection_key = 'items';
  3324. protected $internal_gapi_mappings = array(
  3325. );
  3326. public $etag;
  3327. protected $itemsType = 'Google_Service_AdSense_SavedReport';
  3328. protected $itemsDataType = 'array';
  3329. public $kind;
  3330. public $nextPageToken;
  3331. public function setEtag($etag)
  3332. {
  3333. $this->etag = $etag;
  3334. }
  3335. public function getEtag()
  3336. {
  3337. return $this->etag;
  3338. }
  3339. public function setItems($items)
  3340. {
  3341. $this->items = $items;
  3342. }
  3343. public function getItems()
  3344. {
  3345. return $this->items;
  3346. }
  3347. public function setKind($kind)
  3348. {
  3349. $this->kind = $kind;
  3350. }
  3351. public function getKind()
  3352. {
  3353. return $this->kind;
  3354. }
  3355. public function setNextPageToken($nextPageToken)
  3356. {
  3357. $this->nextPageToken = $nextPageToken;
  3358. }
  3359. public function getNextPageToken()
  3360. {
  3361. return $this->nextPageToken;
  3362. }
  3363. }
  3364. class Google_Service_AdSense_UrlChannel extends Google_Model
  3365. {
  3366. protected $internal_gapi_mappings = array(
  3367. );
  3368. public $id;
  3369. public $kind;
  3370. public $urlPattern;
  3371. public function setId($id)
  3372. {
  3373. $this->id = $id;
  3374. }
  3375. public function getId()
  3376. {
  3377. return $this->id;
  3378. }
  3379. public function setKind($kind)
  3380. {
  3381. $this->kind = $kind;
  3382. }
  3383. public function getKind()
  3384. {
  3385. return $this->kind;
  3386. }
  3387. public function setUrlPattern($urlPattern)
  3388. {
  3389. $this->urlPattern = $urlPattern;
  3390. }
  3391. public function getUrlPattern()
  3392. {
  3393. return $this->urlPattern;
  3394. }
  3395. }
  3396. class Google_Service_AdSense_UrlChannels extends Google_Collection
  3397. {
  3398. protected $collection_key = 'items';
  3399. protected $internal_gapi_mappings = array(
  3400. );
  3401. public $etag;
  3402. protected $itemsType = 'Google_Service_AdSense_UrlChannel';
  3403. protected $itemsDataType = 'array';
  3404. public $kind;
  3405. public $nextPageToken;
  3406. public function setEtag($etag)
  3407. {
  3408. $this->etag = $etag;
  3409. }
  3410. public function getEtag()
  3411. {
  3412. return $this->etag;
  3413. }
  3414. public function setItems($items)
  3415. {
  3416. $this->items = $items;
  3417. }
  3418. public function getItems()
  3419. {
  3420. return $this->items;
  3421. }
  3422. public function setKind($kind)
  3423. {
  3424. $this->kind = $kind;
  3425. }
  3426. public function getKind()
  3427. {
  3428. return $this->kind;
  3429. }
  3430. public function setNextPageToken($nextPageToken)
  3431. {
  3432. $this->nextPageToken = $nextPageToken;
  3433. }
  3434. public function getNextPageToken()
  3435. {
  3436. return $this->nextPageToken;
  3437. }
  3438. }