/src/Google/Service/AdSense.php

https://github.com/leogaggl/pluspress · PHP · 3770 lines · 2626 code · 348 blank · 796 comment · 0 complexity · f053cac68ffe2045e42e93dc4c9b5599 MD5 · raw file

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