PageRenderTime 60ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/moodle/moodle
PHP | 2166 lines | 1658 code | 102 blank | 406 comment | 0 complexity | 952c34ea7c725ab4ac35f2b758403ca0 MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.1, BSD-3-Clause, MIT, GPL-3.0
  1. <?php
  2. /*
  3. * Copyright 2010 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for AdSenseHost (v4.1).
  19. *
  20. * <p>
  21. * Gives AdSense Hosts access to report generation, ad code generation, and
  22. * publisher management capabilities.</p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://developers.google.com/adsense/host/" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_AdSenseHost extends Google_Service
  32. {
  33. /** View and manage your AdSense host data and associated accounts. */
  34. const ADSENSEHOST =
  35. "https://www.googleapis.com/auth/adsensehost";
  36. public $accounts;
  37. public $accounts_adclients;
  38. public $accounts_adunits;
  39. public $accounts_reports;
  40. public $adclients;
  41. public $associationsessions;
  42. public $customchannels;
  43. public $reports;
  44. public $urlchannels;
  45. /**
  46. * Constructs the internal representation of the AdSenseHost service.
  47. *
  48. * @param Google_Client $client
  49. */
  50. public function __construct(Google_Client $client)
  51. {
  52. parent::__construct($client);
  53. $this->rootUrl = 'https://www.googleapis.com/';
  54. $this->servicePath = 'adsensehost/v4.1/';
  55. $this->version = 'v4.1';
  56. $this->serviceName = 'adsensehost';
  57. $this->accounts = new Google_Service_AdSenseHost_Accounts_Resource(
  58. $this,
  59. $this->serviceName,
  60. 'accounts',
  61. array(
  62. 'methods' => array(
  63. 'get' => array(
  64. 'path' => 'accounts/{accountId}',
  65. 'httpMethod' => 'GET',
  66. 'parameters' => array(
  67. 'accountId' => array(
  68. 'location' => 'path',
  69. 'type' => 'string',
  70. 'required' => true,
  71. ),
  72. ),
  73. ),'list' => array(
  74. 'path' => 'accounts',
  75. 'httpMethod' => 'GET',
  76. 'parameters' => array(
  77. 'filterAdClientId' => array(
  78. 'location' => 'query',
  79. 'type' => 'string',
  80. 'repeated' => true,
  81. 'required' => true,
  82. ),
  83. ),
  84. ),
  85. )
  86. )
  87. );
  88. $this->accounts_adclients = new Google_Service_AdSenseHost_AccountsAdclients_Resource(
  89. $this,
  90. $this->serviceName,
  91. 'adclients',
  92. array(
  93. 'methods' => array(
  94. 'get' => array(
  95. 'path' => 'accounts/{accountId}/adclients/{adClientId}',
  96. 'httpMethod' => 'GET',
  97. 'parameters' => array(
  98. 'accountId' => array(
  99. 'location' => 'path',
  100. 'type' => 'string',
  101. 'required' => true,
  102. ),
  103. 'adClientId' => array(
  104. 'location' => 'path',
  105. 'type' => 'string',
  106. 'required' => true,
  107. ),
  108. ),
  109. ),'list' => array(
  110. 'path' => 'accounts/{accountId}/adclients',
  111. 'httpMethod' => 'GET',
  112. 'parameters' => array(
  113. 'accountId' => array(
  114. 'location' => 'path',
  115. 'type' => 'string',
  116. 'required' => true,
  117. ),
  118. 'pageToken' => array(
  119. 'location' => 'query',
  120. 'type' => 'string',
  121. ),
  122. 'maxResults' => array(
  123. 'location' => 'query',
  124. 'type' => 'integer',
  125. ),
  126. ),
  127. ),
  128. )
  129. )
  130. );
  131. $this->accounts_adunits = new Google_Service_AdSenseHost_AccountsAdunits_Resource(
  132. $this,
  133. $this->serviceName,
  134. 'adunits',
  135. array(
  136. 'methods' => array(
  137. 'delete' => array(
  138. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}',
  139. 'httpMethod' => 'DELETE',
  140. 'parameters' => array(
  141. 'accountId' => array(
  142. 'location' => 'path',
  143. 'type' => 'string',
  144. 'required' => true,
  145. ),
  146. 'adClientId' => array(
  147. 'location' => 'path',
  148. 'type' => 'string',
  149. 'required' => true,
  150. ),
  151. 'adUnitId' => array(
  152. 'location' => 'path',
  153. 'type' => 'string',
  154. 'required' => true,
  155. ),
  156. ),
  157. ),'get' => array(
  158. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}',
  159. 'httpMethod' => 'GET',
  160. 'parameters' => array(
  161. 'accountId' => array(
  162. 'location' => 'path',
  163. 'type' => 'string',
  164. 'required' => true,
  165. ),
  166. 'adClientId' => array(
  167. 'location' => 'path',
  168. 'type' => 'string',
  169. 'required' => true,
  170. ),
  171. 'adUnitId' => array(
  172. 'location' => 'path',
  173. 'type' => 'string',
  174. 'required' => true,
  175. ),
  176. ),
  177. ),'getAdCode' => array(
  178. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode',
  179. 'httpMethod' => 'GET',
  180. 'parameters' => array(
  181. 'accountId' => array(
  182. 'location' => 'path',
  183. 'type' => 'string',
  184. 'required' => true,
  185. ),
  186. 'adClientId' => array(
  187. 'location' => 'path',
  188. 'type' => 'string',
  189. 'required' => true,
  190. ),
  191. 'adUnitId' => array(
  192. 'location' => 'path',
  193. 'type' => 'string',
  194. 'required' => true,
  195. ),
  196. 'hostCustomChannelId' => array(
  197. 'location' => 'query',
  198. 'type' => 'string',
  199. 'repeated' => true,
  200. ),
  201. ),
  202. ),'insert' => array(
  203. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
  204. 'httpMethod' => 'POST',
  205. 'parameters' => array(
  206. 'accountId' => array(
  207. 'location' => 'path',
  208. 'type' => 'string',
  209. 'required' => true,
  210. ),
  211. 'adClientId' => array(
  212. 'location' => 'path',
  213. 'type' => 'string',
  214. 'required' => true,
  215. ),
  216. ),
  217. ),'list' => array(
  218. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
  219. 'httpMethod' => 'GET',
  220. 'parameters' => array(
  221. 'accountId' => array(
  222. 'location' => 'path',
  223. 'type' => 'string',
  224. 'required' => true,
  225. ),
  226. 'adClientId' => array(
  227. 'location' => 'path',
  228. 'type' => 'string',
  229. 'required' => true,
  230. ),
  231. 'includeInactive' => array(
  232. 'location' => 'query',
  233. 'type' => 'boolean',
  234. ),
  235. 'pageToken' => array(
  236. 'location' => 'query',
  237. 'type' => 'string',
  238. ),
  239. 'maxResults' => array(
  240. 'location' => 'query',
  241. 'type' => 'integer',
  242. ),
  243. ),
  244. ),'patch' => array(
  245. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
  246. 'httpMethod' => 'PATCH',
  247. 'parameters' => array(
  248. 'accountId' => array(
  249. 'location' => 'path',
  250. 'type' => 'string',
  251. 'required' => true,
  252. ),
  253. 'adClientId' => array(
  254. 'location' => 'path',
  255. 'type' => 'string',
  256. 'required' => true,
  257. ),
  258. 'adUnitId' => array(
  259. 'location' => 'query',
  260. 'type' => 'string',
  261. 'required' => true,
  262. ),
  263. ),
  264. ),'update' => array(
  265. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
  266. 'httpMethod' => 'PUT',
  267. 'parameters' => array(
  268. 'accountId' => array(
  269. 'location' => 'path',
  270. 'type' => 'string',
  271. 'required' => true,
  272. ),
  273. 'adClientId' => array(
  274. 'location' => 'path',
  275. 'type' => 'string',
  276. 'required' => true,
  277. ),
  278. ),
  279. ),
  280. )
  281. )
  282. );
  283. $this->accounts_reports = new Google_Service_AdSenseHost_AccountsReports_Resource(
  284. $this,
  285. $this->serviceName,
  286. 'reports',
  287. array(
  288. 'methods' => array(
  289. 'generate' => array(
  290. 'path' => 'accounts/{accountId}/reports',
  291. 'httpMethod' => 'GET',
  292. 'parameters' => array(
  293. 'accountId' => array(
  294. 'location' => 'path',
  295. 'type' => 'string',
  296. 'required' => true,
  297. ),
  298. 'startDate' => array(
  299. 'location' => 'query',
  300. 'type' => 'string',
  301. 'required' => true,
  302. ),
  303. 'endDate' => array(
  304. 'location' => 'query',
  305. 'type' => 'string',
  306. 'required' => true,
  307. ),
  308. 'sort' => array(
  309. 'location' => 'query',
  310. 'type' => 'string',
  311. 'repeated' => true,
  312. ),
  313. 'locale' => array(
  314. 'location' => 'query',
  315. 'type' => 'string',
  316. ),
  317. 'metric' => array(
  318. 'location' => 'query',
  319. 'type' => 'string',
  320. 'repeated' => true,
  321. ),
  322. 'maxResults' => array(
  323. 'location' => 'query',
  324. 'type' => 'integer',
  325. ),
  326. 'filter' => array(
  327. 'location' => 'query',
  328. 'type' => 'string',
  329. 'repeated' => true,
  330. ),
  331. 'startIndex' => array(
  332. 'location' => 'query',
  333. 'type' => 'integer',
  334. ),
  335. 'dimension' => array(
  336. 'location' => 'query',
  337. 'type' => 'string',
  338. 'repeated' => true,
  339. ),
  340. ),
  341. ),
  342. )
  343. )
  344. );
  345. $this->adclients = new Google_Service_AdSenseHost_Adclients_Resource(
  346. $this,
  347. $this->serviceName,
  348. 'adclients',
  349. array(
  350. 'methods' => array(
  351. 'get' => array(
  352. 'path' => 'adclients/{adClientId}',
  353. 'httpMethod' => 'GET',
  354. 'parameters' => array(
  355. 'adClientId' => array(
  356. 'location' => 'path',
  357. 'type' => 'string',
  358. 'required' => true,
  359. ),
  360. ),
  361. ),'list' => array(
  362. 'path' => 'adclients',
  363. 'httpMethod' => 'GET',
  364. 'parameters' => array(
  365. 'pageToken' => array(
  366. 'location' => 'query',
  367. 'type' => 'string',
  368. ),
  369. 'maxResults' => array(
  370. 'location' => 'query',
  371. 'type' => 'integer',
  372. ),
  373. ),
  374. ),
  375. )
  376. )
  377. );
  378. $this->associationsessions = new Google_Service_AdSenseHost_Associationsessions_Resource(
  379. $this,
  380. $this->serviceName,
  381. 'associationsessions',
  382. array(
  383. 'methods' => array(
  384. 'start' => array(
  385. 'path' => 'associationsessions/start',
  386. 'httpMethod' => 'GET',
  387. 'parameters' => array(
  388. 'productCode' => array(
  389. 'location' => 'query',
  390. 'type' => 'string',
  391. 'repeated' => true,
  392. 'required' => true,
  393. ),
  394. 'websiteUrl' => array(
  395. 'location' => 'query',
  396. 'type' => 'string',
  397. 'required' => true,
  398. ),
  399. 'websiteLocale' => array(
  400. 'location' => 'query',
  401. 'type' => 'string',
  402. ),
  403. 'userLocale' => array(
  404. 'location' => 'query',
  405. 'type' => 'string',
  406. ),
  407. ),
  408. ),'verify' => array(
  409. 'path' => 'associationsessions/verify',
  410. 'httpMethod' => 'GET',
  411. 'parameters' => array(
  412. 'token' => array(
  413. 'location' => 'query',
  414. 'type' => 'string',
  415. 'required' => true,
  416. ),
  417. ),
  418. ),
  419. )
  420. )
  421. );
  422. $this->customchannels = new Google_Service_AdSenseHost_Customchannels_Resource(
  423. $this,
  424. $this->serviceName,
  425. 'customchannels',
  426. array(
  427. 'methods' => array(
  428. 'delete' => array(
  429. 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}',
  430. 'httpMethod' => 'DELETE',
  431. 'parameters' => array(
  432. 'adClientId' => array(
  433. 'location' => 'path',
  434. 'type' => 'string',
  435. 'required' => true,
  436. ),
  437. 'customChannelId' => array(
  438. 'location' => 'path',
  439. 'type' => 'string',
  440. 'required' => true,
  441. ),
  442. ),
  443. ),'get' => array(
  444. 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}',
  445. 'httpMethod' => 'GET',
  446. 'parameters' => array(
  447. 'adClientId' => array(
  448. 'location' => 'path',
  449. 'type' => 'string',
  450. 'required' => true,
  451. ),
  452. 'customChannelId' => array(
  453. 'location' => 'path',
  454. 'type' => 'string',
  455. 'required' => true,
  456. ),
  457. ),
  458. ),'insert' => array(
  459. 'path' => 'adclients/{adClientId}/customchannels',
  460. 'httpMethod' => 'POST',
  461. 'parameters' => array(
  462. 'adClientId' => array(
  463. 'location' => 'path',
  464. 'type' => 'string',
  465. 'required' => true,
  466. ),
  467. ),
  468. ),'list' => array(
  469. 'path' => 'adclients/{adClientId}/customchannels',
  470. 'httpMethod' => 'GET',
  471. 'parameters' => array(
  472. 'adClientId' => array(
  473. 'location' => 'path',
  474. 'type' => 'string',
  475. 'required' => true,
  476. ),
  477. 'pageToken' => array(
  478. 'location' => 'query',
  479. 'type' => 'string',
  480. ),
  481. 'maxResults' => array(
  482. 'location' => 'query',
  483. 'type' => 'integer',
  484. ),
  485. ),
  486. ),'patch' => array(
  487. 'path' => 'adclients/{adClientId}/customchannels',
  488. 'httpMethod' => 'PATCH',
  489. 'parameters' => array(
  490. 'adClientId' => array(
  491. 'location' => 'path',
  492. 'type' => 'string',
  493. 'required' => true,
  494. ),
  495. 'customChannelId' => array(
  496. 'location' => 'query',
  497. 'type' => 'string',
  498. 'required' => true,
  499. ),
  500. ),
  501. ),'update' => array(
  502. 'path' => 'adclients/{adClientId}/customchannels',
  503. 'httpMethod' => 'PUT',
  504. 'parameters' => array(
  505. 'adClientId' => array(
  506. 'location' => 'path',
  507. 'type' => 'string',
  508. 'required' => true,
  509. ),
  510. ),
  511. ),
  512. )
  513. )
  514. );
  515. $this->reports = new Google_Service_AdSenseHost_Reports_Resource(
  516. $this,
  517. $this->serviceName,
  518. 'reports',
  519. array(
  520. 'methods' => array(
  521. 'generate' => array(
  522. 'path' => 'reports',
  523. 'httpMethod' => 'GET',
  524. 'parameters' => array(
  525. 'startDate' => array(
  526. 'location' => 'query',
  527. 'type' => 'string',
  528. 'required' => true,
  529. ),
  530. 'endDate' => array(
  531. 'location' => 'query',
  532. 'type' => 'string',
  533. 'required' => true,
  534. ),
  535. 'sort' => array(
  536. 'location' => 'query',
  537. 'type' => 'string',
  538. 'repeated' => true,
  539. ),
  540. 'locale' => array(
  541. 'location' => 'query',
  542. 'type' => 'string',
  543. ),
  544. 'metric' => array(
  545. 'location' => 'query',
  546. 'type' => 'string',
  547. 'repeated' => true,
  548. ),
  549. 'maxResults' => array(
  550. 'location' => 'query',
  551. 'type' => 'integer',
  552. ),
  553. 'filter' => array(
  554. 'location' => 'query',
  555. 'type' => 'string',
  556. 'repeated' => true,
  557. ),
  558. 'startIndex' => array(
  559. 'location' => 'query',
  560. 'type' => 'integer',
  561. ),
  562. 'dimension' => array(
  563. 'location' => 'query',
  564. 'type' => 'string',
  565. 'repeated' => true,
  566. ),
  567. ),
  568. ),
  569. )
  570. )
  571. );
  572. $this->urlchannels = new Google_Service_AdSenseHost_Urlchannels_Resource(
  573. $this,
  574. $this->serviceName,
  575. 'urlchannels',
  576. array(
  577. 'methods' => array(
  578. 'delete' => array(
  579. 'path' => 'adclients/{adClientId}/urlchannels/{urlChannelId}',
  580. 'httpMethod' => 'DELETE',
  581. 'parameters' => array(
  582. 'adClientId' => array(
  583. 'location' => 'path',
  584. 'type' => 'string',
  585. 'required' => true,
  586. ),
  587. 'urlChannelId' => array(
  588. 'location' => 'path',
  589. 'type' => 'string',
  590. 'required' => true,
  591. ),
  592. ),
  593. ),'insert' => array(
  594. 'path' => 'adclients/{adClientId}/urlchannels',
  595. 'httpMethod' => 'POST',
  596. 'parameters' => array(
  597. 'adClientId' => array(
  598. 'location' => 'path',
  599. 'type' => 'string',
  600. 'required' => true,
  601. ),
  602. ),
  603. ),'list' => array(
  604. 'path' => 'adclients/{adClientId}/urlchannels',
  605. 'httpMethod' => 'GET',
  606. 'parameters' => array(
  607. 'adClientId' => array(
  608. 'location' => 'path',
  609. 'type' => 'string',
  610. 'required' => true,
  611. ),
  612. 'pageToken' => array(
  613. 'location' => 'query',
  614. 'type' => 'string',
  615. ),
  616. 'maxResults' => array(
  617. 'location' => 'query',
  618. 'type' => 'integer',
  619. ),
  620. ),
  621. ),
  622. )
  623. )
  624. );
  625. }
  626. }
  627. /**
  628. * The "accounts" collection of methods.
  629. * Typical usage is:
  630. * <code>
  631. * $adsensehostService = new Google_Service_AdSenseHost(...);
  632. * $accounts = $adsensehostService->accounts;
  633. * </code>
  634. */
  635. class Google_Service_AdSenseHost_Accounts_Resource extends Google_Service_Resource
  636. {
  637. /**
  638. * Get information about the selected associated AdSense account. (accounts.get)
  639. *
  640. * @param string $accountId Account to get information about.
  641. * @param array $optParams Optional parameters.
  642. * @return Google_Service_AdSenseHost_Account
  643. */
  644. public function get($accountId, $optParams = array())
  645. {
  646. $params = array('accountId' => $accountId);
  647. $params = array_merge($params, $optParams);
  648. return $this->call('get', array($params), "Google_Service_AdSenseHost_Account");
  649. }
  650. /**
  651. * List hosted accounts associated with this AdSense account by ad client id.
  652. * (accounts.listAccounts)
  653. *
  654. * @param string $filterAdClientId Ad clients to list accounts for.
  655. * @param array $optParams Optional parameters.
  656. * @return Google_Service_AdSenseHost_Accounts
  657. */
  658. public function listAccounts($filterAdClientId, $optParams = array())
  659. {
  660. $params = array('filterAdClientId' => $filterAdClientId);
  661. $params = array_merge($params, $optParams);
  662. return $this->call('list', array($params), "Google_Service_AdSenseHost_Accounts");
  663. }
  664. }
  665. /**
  666. * The "adclients" collection of methods.
  667. * Typical usage is:
  668. * <code>
  669. * $adsensehostService = new Google_Service_AdSenseHost(...);
  670. * $adclients = $adsensehostService->adclients;
  671. * </code>
  672. */
  673. class Google_Service_AdSenseHost_AccountsAdclients_Resource extends Google_Service_Resource
  674. {
  675. /**
  676. * Get information about one of the ad clients in the specified publisher's
  677. * AdSense account. (adclients.get)
  678. *
  679. * @param string $accountId Account which contains the ad client.
  680. * @param string $adClientId Ad client to get.
  681. * @param array $optParams Optional parameters.
  682. * @return Google_Service_AdSenseHost_AdClient
  683. */
  684. public function get($accountId, $adClientId, $optParams = array())
  685. {
  686. $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
  687. $params = array_merge($params, $optParams);
  688. return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient");
  689. }
  690. /**
  691. * List all hosted ad clients in the specified hosted account.
  692. * (adclients.listAccountsAdclients)
  693. *
  694. * @param string $accountId Account for which to list ad clients.
  695. * @param array $optParams Optional parameters.
  696. *
  697. * @opt_param string pageToken A continuation token, used to page through ad
  698. * clients. To retrieve the next page, set this parameter to the value of
  699. * "nextPageToken" from the previous response.
  700. * @opt_param string maxResults The maximum number of ad clients to include in
  701. * the response, used for paging.
  702. * @return Google_Service_AdSenseHost_AdClients
  703. */
  704. public function listAccountsAdclients($accountId, $optParams = array())
  705. {
  706. $params = array('accountId' => $accountId);
  707. $params = array_merge($params, $optParams);
  708. return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients");
  709. }
  710. }
  711. /**
  712. * The "adunits" collection of methods.
  713. * Typical usage is:
  714. * <code>
  715. * $adsensehostService = new Google_Service_AdSenseHost(...);
  716. * $adunits = $adsensehostService->adunits;
  717. * </code>
  718. */
  719. class Google_Service_AdSenseHost_AccountsAdunits_Resource extends Google_Service_Resource
  720. {
  721. /**
  722. * Delete the specified ad unit from the specified publisher AdSense account.
  723. * (adunits.delete)
  724. *
  725. * @param string $accountId Account which contains the ad unit.
  726. * @param string $adClientId Ad client for which to get ad unit.
  727. * @param string $adUnitId Ad unit to delete.
  728. * @param array $optParams Optional parameters.
  729. * @return Google_Service_AdSenseHost_AdUnit
  730. */
  731. public function delete($accountId, $adClientId, $adUnitId, $optParams = array())
  732. {
  733. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  734. $params = array_merge($params, $optParams);
  735. return $this->call('delete', array($params), "Google_Service_AdSenseHost_AdUnit");
  736. }
  737. /**
  738. * Get the specified host ad unit in this AdSense account. (adunits.get)
  739. *
  740. * @param string $accountId Account which contains the ad unit.
  741. * @param string $adClientId Ad client for which to get ad unit.
  742. * @param string $adUnitId Ad unit to get.
  743. * @param array $optParams Optional parameters.
  744. * @return Google_Service_AdSenseHost_AdUnit
  745. */
  746. public function get($accountId, $adClientId, $adUnitId, $optParams = array())
  747. {
  748. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  749. $params = array_merge($params, $optParams);
  750. return $this->call('get', array($params), "Google_Service_AdSenseHost_AdUnit");
  751. }
  752. /**
  753. * Get ad code for the specified ad unit, attaching the specified host custom
  754. * channels. (adunits.getAdCode)
  755. *
  756. * @param string $accountId Account which contains the ad client.
  757. * @param string $adClientId Ad client with contains the ad unit.
  758. * @param string $adUnitId Ad unit to get the code for.
  759. * @param array $optParams Optional parameters.
  760. *
  761. * @opt_param string hostCustomChannelId Host custom channel to attach to the ad
  762. * code.
  763. * @return Google_Service_AdSenseHost_AdCode
  764. */
  765. public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array())
  766. {
  767. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  768. $params = array_merge($params, $optParams);
  769. return $this->call('getAdCode', array($params), "Google_Service_AdSenseHost_AdCode");
  770. }
  771. /**
  772. * Insert the supplied ad unit into the specified publisher AdSense account.
  773. * (adunits.insert)
  774. *
  775. * @param string $accountId Account which will contain the ad unit.
  776. * @param string $adClientId Ad client into which to insert the ad unit.
  777. * @param Google_AdUnit $postBody
  778. * @param array $optParams Optional parameters.
  779. * @return Google_Service_AdSenseHost_AdUnit
  780. */
  781. public function insert($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
  782. {
  783. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
  784. $params = array_merge($params, $optParams);
  785. return $this->call('insert', array($params), "Google_Service_AdSenseHost_AdUnit");
  786. }
  787. /**
  788. * List all ad units in the specified publisher's AdSense account.
  789. * (adunits.listAccountsAdunits)
  790. *
  791. * @param string $accountId Account which contains the ad client.
  792. * @param string $adClientId Ad client for which to list ad units.
  793. * @param array $optParams Optional parameters.
  794. *
  795. * @opt_param bool includeInactive Whether to include inactive ad units.
  796. * Default: true.
  797. * @opt_param string pageToken A continuation token, used to page through ad
  798. * units. To retrieve the next page, set this parameter to the value of
  799. * "nextPageToken" from the previous response.
  800. * @opt_param string maxResults The maximum number of ad units to include in the
  801. * response, used for paging.
  802. * @return Google_Service_AdSenseHost_AdUnits
  803. */
  804. public function listAccountsAdunits($accountId, $adClientId, $optParams = array())
  805. {
  806. $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
  807. $params = array_merge($params, $optParams);
  808. return $this->call('list', array($params), "Google_Service_AdSenseHost_AdUnits");
  809. }
  810. /**
  811. * Update the supplied ad unit in the specified publisher AdSense account. This
  812. * method supports patch semantics. (adunits.patch)
  813. *
  814. * @param string $accountId Account which contains the ad client.
  815. * @param string $adClientId Ad client which contains the ad unit.
  816. * @param string $adUnitId Ad unit to get.
  817. * @param Google_AdUnit $postBody
  818. * @param array $optParams Optional parameters.
  819. * @return Google_Service_AdSenseHost_AdUnit
  820. */
  821. public function patch($accountId, $adClientId, $adUnitId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
  822. {
  823. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody);
  824. $params = array_merge($params, $optParams);
  825. return $this->call('patch', array($params), "Google_Service_AdSenseHost_AdUnit");
  826. }
  827. /**
  828. * Update the supplied ad unit in the specified publisher AdSense account.
  829. * (adunits.update)
  830. *
  831. * @param string $accountId Account which contains the ad client.
  832. * @param string $adClientId Ad client which contains the ad unit.
  833. * @param Google_AdUnit $postBody
  834. * @param array $optParams Optional parameters.
  835. * @return Google_Service_AdSenseHost_AdUnit
  836. */
  837. public function update($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
  838. {
  839. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
  840. $params = array_merge($params, $optParams);
  841. return $this->call('update', array($params), "Google_Service_AdSenseHost_AdUnit");
  842. }
  843. }
  844. /**
  845. * The "reports" collection of methods.
  846. * Typical usage is:
  847. * <code>
  848. * $adsensehostService = new Google_Service_AdSenseHost(...);
  849. * $reports = $adsensehostService->reports;
  850. * </code>
  851. */
  852. class Google_Service_AdSenseHost_AccountsReports_Resource extends Google_Service_Resource
  853. {
  854. /**
  855. * Generate an AdSense report based on the report request sent in the query
  856. * parameters. Returns the result as JSON; to retrieve output in CSV format
  857. * specify "alt=csv" as a query parameter. (reports.generate)
  858. *
  859. * @param string $accountId Hosted account upon which to report.
  860. * @param string $startDate Start of the date range to report on in "YYYY-MM-DD"
  861. * format, inclusive.
  862. * @param string $endDate End of the date range to report on in "YYYY-MM-DD"
  863. * format, inclusive.
  864. * @param array $optParams Optional parameters.
  865. *
  866. * @opt_param string sort The name of a dimension or metric to sort the
  867. * resulting report on, optionally prefixed with "+" to sort ascending or "-" to
  868. * sort descending. If no prefix is specified, the column is sorted ascending.
  869. * @opt_param string locale Optional locale to use for translating report output
  870. * to a local language. Defaults to "en_US" if not specified.
  871. * @opt_param string metric Numeric columns to include in the report.
  872. * @opt_param string maxResults The maximum number of rows of report data to
  873. * return.
  874. * @opt_param string filter Filters to be run on the report.
  875. * @opt_param string startIndex Index of the first row of report data to return.
  876. * @opt_param string dimension Dimensions to base the report on.
  877. * @return Google_Service_AdSenseHost_Report
  878. */
  879. public function generate($accountId, $startDate, $endDate, $optParams = array())
  880. {
  881. $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
  882. $params = array_merge($params, $optParams);
  883. return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report");
  884. }
  885. }
  886. /**
  887. * The "adclients" collection of methods.
  888. * Typical usage is:
  889. * <code>
  890. * $adsensehostService = new Google_Service_AdSenseHost(...);
  891. * $adclients = $adsensehostService->adclients;
  892. * </code>
  893. */
  894. class Google_Service_AdSenseHost_Adclients_Resource extends Google_Service_Resource
  895. {
  896. /**
  897. * Get information about one of the ad clients in the Host AdSense account.
  898. * (adclients.get)
  899. *
  900. * @param string $adClientId Ad client to get.
  901. * @param array $optParams Optional parameters.
  902. * @return Google_Service_AdSenseHost_AdClient
  903. */
  904. public function get($adClientId, $optParams = array())
  905. {
  906. $params = array('adClientId' => $adClientId);
  907. $params = array_merge($params, $optParams);
  908. return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient");
  909. }
  910. /**
  911. * List all host ad clients in this AdSense account. (adclients.listAdclients)
  912. *
  913. * @param array $optParams Optional parameters.
  914. *
  915. * @opt_param string pageToken A continuation token, used to page through ad
  916. * clients. To retrieve the next page, set this parameter to the value of
  917. * "nextPageToken" from the previous response.
  918. * @opt_param string maxResults The maximum number of ad clients to include in
  919. * the response, used for paging.
  920. * @return Google_Service_AdSenseHost_AdClients
  921. */
  922. public function listAdclients($optParams = array())
  923. {
  924. $params = array();
  925. $params = array_merge($params, $optParams);
  926. return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients");
  927. }
  928. }
  929. /**
  930. * The "associationsessions" collection of methods.
  931. * Typical usage is:
  932. * <code>
  933. * $adsensehostService = new Google_Service_AdSenseHost(...);
  934. * $associationsessions = $adsensehostService->associationsessions;
  935. * </code>
  936. */
  937. class Google_Service_AdSenseHost_Associationsessions_Resource extends Google_Service_Resource
  938. {
  939. /**
  940. * Create an association session for initiating an association with an AdSense
  941. * user. (associationsessions.start)
  942. *
  943. * @param string $productCode Products to associate with the user.
  944. * @param string $websiteUrl The URL of the user's hosted website.
  945. * @param array $optParams Optional parameters.
  946. *
  947. * @opt_param string websiteLocale The locale of the user's hosted website.
  948. * @opt_param string userLocale The preferred locale of the user.
  949. * @return Google_Service_AdSenseHost_AssociationSession
  950. */
  951. public function start($productCode, $websiteUrl, $optParams = array())
  952. {
  953. $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl);
  954. $params = array_merge($params, $optParams);
  955. return $this->call('start', array($params), "Google_Service_AdSenseHost_AssociationSession");
  956. }
  957. /**
  958. * Verify an association session after the association callback returns from
  959. * AdSense signup. (associationsessions.verify)
  960. *
  961. * @param string $token The token returned to the association callback URL.
  962. * @param array $optParams Optional parameters.
  963. * @return Google_Service_AdSenseHost_AssociationSession
  964. */
  965. public function verify($token, $optParams = array())
  966. {
  967. $params = array('token' => $token);
  968. $params = array_merge($params, $optParams);
  969. return $this->call('verify', array($params), "Google_Service_AdSenseHost_AssociationSession");
  970. }
  971. }
  972. /**
  973. * The "customchannels" collection of methods.
  974. * Typical usage is:
  975. * <code>
  976. * $adsensehostService = new Google_Service_AdSenseHost(...);
  977. * $customchannels = $adsensehostService->customchannels;
  978. * </code>
  979. */
  980. class Google_Service_AdSenseHost_Customchannels_Resource extends Google_Service_Resource
  981. {
  982. /**
  983. * Delete a specific custom channel from the host AdSense account.
  984. * (customchannels.delete)
  985. *
  986. * @param string $adClientId Ad client from which to delete the custom channel.
  987. * @param string $customChannelId Custom channel to delete.
  988. * @param array $optParams Optional parameters.
  989. * @return Google_Service_AdSenseHost_CustomChannel
  990. */
  991. public function delete($adClientId, $customChannelId, $optParams = array())
  992. {
  993. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
  994. $params = array_merge($params, $optParams);
  995. return $this->call('delete', array($params), "Google_Service_AdSenseHost_CustomChannel");
  996. }
  997. /**
  998. * Get a specific custom channel from the host AdSense account.
  999. * (customchannels.get)
  1000. *
  1001. * @param string $adClientId Ad client from which to get the custom channel.
  1002. * @param string $customChannelId Custom channel to get.
  1003. * @param array $optParams Optional parameters.
  1004. * @return Google_Service_AdSenseHost_CustomChannel
  1005. */
  1006. public function get($adClientId, $customChannelId, $optParams = array())
  1007. {
  1008. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
  1009. $params = array_merge($params, $optParams);
  1010. return $this->call('get', array($params), "Google_Service_AdSenseHost_CustomChannel");
  1011. }
  1012. /**
  1013. * Add a new custom channel to the host AdSense account. (customchannels.insert)
  1014. *
  1015. * @param string $adClientId Ad client to which the new custom channel will be
  1016. * added.
  1017. * @param Google_CustomChannel $postBody
  1018. * @param array $optParams Optional parameters.
  1019. * @return Google_Service_AdSenseHost_CustomChannel
  1020. */
  1021. public function insert($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
  1022. {
  1023. $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
  1024. $params = array_merge($params, $optParams);
  1025. return $this->call('insert', array($params), "Google_Service_AdSenseHost_CustomChannel");
  1026. }
  1027. /**
  1028. * List all host custom channels in this AdSense account.
  1029. * (customchannels.listCustomchannels)
  1030. *
  1031. * @param string $adClientId Ad client for which to list custom channels.
  1032. * @param array $optParams Optional parameters.
  1033. *
  1034. * @opt_param string pageToken A continuation token, used to page through custom
  1035. * channels. To retrieve the next page, set this parameter to the value of
  1036. * "nextPageToken" from the previous response.
  1037. * @opt_param string maxResults The maximum number of custom channels to include
  1038. * in the response, used for paging.
  1039. * @return Google_Service_AdSenseHost_CustomChannels
  1040. */
  1041. public function listCustomchannels($adClientId, $optParams = array())
  1042. {
  1043. $params = array('adClientId' => $adClientId);
  1044. $params = array_merge($params, $optParams);
  1045. return $this->call('list', array($params), "Google_Service_AdSenseHost_CustomChannels");
  1046. }
  1047. /**
  1048. * Update a custom channel in the host AdSense account. This method supports
  1049. * patch semantics. (customchannels.patch)
  1050. *
  1051. * @param string $adClientId Ad client in which the custom channel will be
  1052. * updated.
  1053. * @param string $customChannelId Custom channel to get.
  1054. * @param Google_CustomChannel $postBody
  1055. * @param array $optParams Optional parameters.
  1056. * @return Google_Service_AdSenseHost_CustomChannel
  1057. */
  1058. public function patch($adClientId, $customChannelId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
  1059. {
  1060. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody);
  1061. $params = array_merge($params, $optParams);
  1062. return $this->call('patch', array($params), "Google_Service_AdSenseHost_CustomChannel");
  1063. }
  1064. /**
  1065. * Update a custom channel in the host AdSense account. (customchannels.update)
  1066. *
  1067. * @param string $adClientId Ad client in which the custom channel will be
  1068. * updated.
  1069. * @param Google_CustomChannel $postBody
  1070. * @param array $optParams Optional parameters.
  1071. * @return Google_Service_AdSenseHost_CustomChannel
  1072. */
  1073. public function update($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
  1074. {
  1075. $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
  1076. $params = array_merge($params, $optParams);
  1077. return $this->call('update', array($params), "Google_Service_AdSenseHost_CustomChannel");
  1078. }
  1079. }
  1080. /**
  1081. * The "reports" collection of methods.
  1082. * Typical usage is:
  1083. * <code>
  1084. * $adsensehostService = new Google_Service_AdSenseHost(...);
  1085. * $reports = $adsensehostService->reports;
  1086. * </code>
  1087. */
  1088. class Google_Service_AdSenseHost_Reports_Resource extends Google_Service_Resource
  1089. {
  1090. /**
  1091. * Generate an AdSense report based on the report request sent in the query
  1092. * parameters. Returns the result as JSON; to retrieve output in CSV format
  1093. * specify "alt=csv" as a query parameter. (reports.generate)
  1094. *
  1095. * @param string $startDate Start of the date range to report on in "YYYY-MM-DD"
  1096. * format, inclusive.
  1097. * @param string $endDate End of the date range to report on in "YYYY-MM-DD"
  1098. * format, inclusive.
  1099. * @param array $optParams Optional parameters.
  1100. *
  1101. * @opt_param string sort The name of a dimension or metric to sort the
  1102. * resulting report on, optionally prefixed with "+" to sort ascending or "-" to
  1103. * sort descending. If no prefix is specified, the column is sorted ascending.
  1104. * @opt_param string locale Optional locale to use for translating report output
  1105. * to a local language. Defaults to "en_US" if not specified.
  1106. * @opt_param string metric Numeric columns to include in the report.
  1107. * @opt_param string maxResults The maximum number of rows of report data to
  1108. * return.
  1109. * @opt_param string filter Filters to be run on the report.
  1110. * @opt_param string startIndex Index of the first row of report data to return.
  1111. * @opt_param string dimension Dimensions to base the report on.
  1112. * @return Google_Service_AdSenseHost_Report
  1113. */
  1114. public function generate($startDate, $endDate, $optParams = array())
  1115. {
  1116. $params = array('startDate' => $startDate, 'endDate' => $endDate);
  1117. $params = array_merge($params, $optParams);
  1118. return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report");
  1119. }
  1120. }
  1121. /**
  1122. * The "urlchannels" collection of methods.
  1123. * Typical usage is:
  1124. * <code>
  1125. * $adsensehostService = new Google_Service_AdSenseHost(...);
  1126. * $urlchannels = $adsensehostService->urlchannels;
  1127. * </code>
  1128. */
  1129. class Google_Service_AdSenseHost_Urlchannels_Resource extends Google_Service_Resource
  1130. {
  1131. /**
  1132. * Delete a URL channel from the host AdSense account. (urlchannels.delete)
  1133. *
  1134. * @param string $adClientId Ad client from which to delete the URL channel.
  1135. * @param string $urlChannelId URL channel to delete.
  1136. * @param array $optParams Optional parameters.
  1137. * @return Google_Service_AdSenseHost_UrlChannel
  1138. */
  1139. public function delete($adClientId, $urlChannelId, $optParams = array())
  1140. {
  1141. $params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId);
  1142. $params = array_merge($params, $optParams);
  1143. return $this->call('delete', array($params), "Google_Service_AdSenseHost_UrlChannel");
  1144. }
  1145. /**
  1146. * Add a new URL channel to the host AdSense account. (urlchannels.insert)
  1147. *
  1148. * @param string $adClientId Ad client to which the new URL channel will be
  1149. * added.
  1150. * @param Google_UrlChannel $postBody
  1151. * @param array $optParams Optional parameters.
  1152. * @return Google_Service_AdSenseHost_UrlChannel
  1153. */
  1154. public function insert($adClientId, Google_Service_AdSenseHost_UrlChannel $postBody, $optParams = array())
  1155. {
  1156. $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
  1157. $params = array_merge($params, $optParams);
  1158. return $this->call('insert', array($params), "Google_Service_AdSenseHost_UrlChannel");
  1159. }
  1160. /**
  1161. * List all host URL channels in the host AdSense account.
  1162. * (urlchannels.listUrlchannels)
  1163. *
  1164. * @param string $adClientId Ad client for which to list URL channels.
  1165. * @param array $optParams Optional parameters.
  1166. *
  1167. * @opt_param string pageToken A continuation token, used to page through URL
  1168. * channels. To retrieve the next page, set this parameter to the value of
  1169. * "nextPageToken" from the previous response.
  1170. * @opt_param string maxResults The maximum number of URL channels to include in
  1171. * the response, used for paging.
  1172. * @return Google_Service_AdSenseHost_UrlChannels
  1173. */
  1174. public function listUrlchannels($adClientId, $optParams = array())
  1175. {
  1176. $params = array('adClientId' => $adClientId);
  1177. $params = array_merge($params, $optParams);
  1178. return $this->call('list', array($params), "Google_Service_AdSenseHost_UrlChannels");
  1179. }
  1180. }
  1181. class Google_Service_AdSenseHost_Account extends Google_Model
  1182. {
  1183. protected $internal_gapi_mappings = array(
  1184. );
  1185. public $id;
  1186. public $kind;
  1187. public $name;
  1188. public $status;
  1189. public function setId($id)
  1190. {
  1191. $this->id = $id;
  1192. }
  1193. public function getId()
  1194. {
  1195. return $this->id;
  1196. }
  1197. public function setKind($kind)
  1198. {
  1199. $this->kind = $kind;
  1200. }
  1201. public function getKind()
  1202. {
  1203. return $this->kind;
  1204. }
  1205. public function setName($name)
  1206. {
  1207. $this->name = $name;
  1208. }
  1209. public function getName()
  1210. {
  1211. return $this->name;
  1212. }
  1213. public function setStatus($status)
  1214. {
  1215. $this->status = $status;
  1216. }
  1217. public function getStatus()
  1218. {
  1219. return $this->status;
  1220. }
  1221. }
  1222. class Google_Service_AdSenseHost_Accounts extends Google_Collection
  1223. {
  1224. protected $collection_key = 'items';
  1225. protected $internal_gapi_mappings = array(
  1226. );
  1227. public $etag;
  1228. protected $itemsType = 'Google_Service_AdSenseHost_Account';
  1229. protected $itemsDataType = 'array';
  1230. public $kind;
  1231. public function setEtag($etag)
  1232. {
  1233. $this->etag = $etag;
  1234. }
  1235. public function getEtag()
  1236. {
  1237. return $this->etag;
  1238. }
  1239. public function setItems($items)
  1240. {
  1241. $this->items = $items;
  1242. }
  1243. public function getItems()
  1244. {
  1245. return $this->items;
  1246. }
  1247. public function setKind($kind)
  1248. {
  1249. $this->kind = $kind;
  1250. }
  1251. public function getKind()
  1252. {
  1253. return $this->kind;
  1254. }
  1255. }
  1256. class Google_Service_AdSenseHost_AdClient extends Google_Model
  1257. {
  1258. protected $internal_gapi_mappings = array(
  1259. );
  1260. public $arcOptIn;
  1261. public $id;
  1262. public $kind;
  1263. public $productCode;
  1264. public $supportsReporting;
  1265. public function setArcOptIn($arcOptIn)
  1266. {
  1267. $this->arcOptIn = $arcOptIn;
  1268. }
  1269. public function getArcOptIn()
  1270. {
  1271. return $this->arcOptIn;
  1272. }
  1273. public function setId($id)
  1274. {
  1275. $this->id = $id;
  1276. }
  1277. public function getId()
  1278. {
  1279. return $this->id;
  1280. }
  1281. public function setKind($kind)
  1282. {
  1283. $this->kind = $kind;
  1284. }
  1285. public function getKind()
  1286. {
  1287. return $this->kind;
  1288. }
  1289. public function setProductCode($productCode)
  1290. {
  1291. $this->productCode = $productCode;
  1292. }
  1293. public function getProductCode()
  1294. {
  1295. return $this->productCode;
  1296. }
  1297. public function setSupportsReporting($supportsReporting)
  1298. {
  1299. $this->supportsReporting = $supportsReporting;
  1300. }
  1301. public function getSupportsReporting()
  1302. {
  1303. return $this->supportsReporting;
  1304. }
  1305. }
  1306. class Google_Service_AdSenseHost_AdClients extends Google_Collection
  1307. {
  1308. protected $collection_key = 'items';
  1309. protected $internal_gapi_mappings = array(
  1310. );
  1311. public $etag;
  1312. protected $itemsType = 'Google_Service_AdSenseHost_AdClient';
  1313. protected $itemsDataType = 'array';
  1314. public $kind;
  1315. public $nextPageToken;
  1316. public function setEtag($etag)
  1317. {
  1318. $this->etag = $etag;
  1319. }
  1320. public function getEtag()
  1321. {
  1322. return $this->etag;
  1323. }
  1324. public function setItems($items)
  1325. {
  1326. $this->items = $items;
  1327. }
  1328. public function getItems()
  1329. {
  1330. return $this->items;
  1331. }
  1332. public function setKind($kind)
  1333. {
  1334. $this->kind = $kind;
  1335. }
  1336. public function getKind()
  1337. {
  1338. return $this->kind;
  1339. }
  1340. public function setNextPageToken($nextPageToken)
  1341. {
  1342. $this->nextPageToken = $nextPageToken;
  1343. }
  1344. public function getNextPageToken()
  1345. {
  1346. return $this->nextPageToken;
  1347. }
  1348. }
  1349. class Google_Service_AdSenseHost_AdCode extends Google_Model
  1350. {
  1351. protected $internal_gapi_mappings = array(
  1352. );
  1353. public $adCode;
  1354. public $kind;
  1355. public function setAdCode($adCode)
  1356. {
  1357. $this->adCode = $adCode;
  1358. }
  1359. public function getAdCode()
  1360. {
  1361. return $this->adCode;
  1362. }
  1363. public function setKind($kind)
  1364. {
  1365. $this->kind = $kind;
  1366. }
  1367. public function getKind()
  1368. {
  1369. return $this->kind;
  1370. }
  1371. }
  1372. class Google_Service_AdSenseHost_AdStyle extends Google_Model
  1373. {
  1374. protected $internal_gapi_mappings = array(
  1375. );
  1376. protected $colorsType = 'Google_Service_AdSenseHost_AdStyleColors';
  1377. protected $colorsDataType = '';
  1378. public $corners;
  1379. protected $fontType = 'Google_Service_AdSenseHost_AdStyleFont';
  1380. protected $fontDataType = '';
  1381. public $kind;
  1382. public function setColors(Google_Service_AdSenseHost_AdStyleColors $colors)
  1383. {
  1384. $this->colors = $colors;
  1385. }
  1386. public function getColors()
  1387. {
  1388. return $this->colors;
  1389. }
  1390. public function setCorners($corners)
  1391. {
  1392. $this->corners = $corners;
  1393. }
  1394. public function getCorners()
  1395. {
  1396. return $this->corners;
  1397. }
  1398. public function setFont(Google_Service_AdSenseHost_AdStyleFont $font)
  1399. {
  1400. $this->font = $font;
  1401. }
  1402. public function getFont()
  1403. {
  1404. return $this->font;
  1405. }
  1406. public function setKind($kind)
  1407. {
  1408. $this->kind = $kind;
  1409. }
  1410. public function getKind()
  1411. {
  1412. return $this->kind;
  1413. }
  1414. }
  1415. class Google_Service_AdSenseHost_AdStyleColors extends Google_Model
  1416. {
  1417. protected $internal_gapi_mappings = array(
  1418. );
  1419. public $background;
  1420. public $border;
  1421. public $text;
  1422. public $title;
  1423. public $url;
  1424. public function setBackground($background)
  1425. {
  1426. $this->background = $background;
  1427. }
  1428. public function getBackground()
  1429. {
  1430. return $this->background;
  1431. }
  1432. public function setBorder($border)
  1433. {
  1434. $this->border = $border;
  1435. }
  1436. public function getBorder()
  1437. {
  1438. return $this->border;
  1439. }
  1440. public function setText($text)
  1441. {
  1442. $this->text = $text;
  1443. }
  1444. public function getText()
  1445. {
  1446. return $this->text;
  1447. }
  1448. public function setTitle($title)
  1449. {
  1450. $this->title = $title;
  1451. }
  1452. public function getTitle()
  1453. {
  1454. return $this->title;
  1455. }
  1456. public function setUrl($url)
  1457. {
  1458. $this->url = $url;
  1459. }
  1460. public function getUrl()
  1461. {
  1462. return $this->url;
  1463. }
  1464. }
  1465. class Google_Service_AdSenseHost_AdStyleFont extends Google_Model
  1466. {
  1467. protected $internal_gapi_mappings = array(
  1468. );
  1469. public $family;
  1470. public $size;
  1471. public function setFamily($family)
  1472. {
  1473. $this->family = $family;
  1474. }
  1475. public function getFamily()
  1476. {
  1477. return $this->family;
  1478. }
  1479. public function setSize($size)
  1480. {
  1481. $this->size = $size;
  1482. }
  1483. public function getSize()
  1484. {
  1485. return $this->size;
  1486. }
  1487. }
  1488. class Google_Service_AdSenseHost_AdUnit extends Google_Model
  1489. {
  1490. protected $internal_gapi_mappings = array(
  1491. );
  1492. public $code;
  1493. protected $contentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettings';
  1494. protected $contentAdsSettingsDataType = '';
  1495. protected $customStyleType = 'Google_Service_AdSenseHost_AdStyle';
  1496. protected $customStyleDataType = '';
  1497. public $id;
  1498. public $kind;
  1499. protected $mobileContentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings';
  1500. protected $mobileContentAdsSettingsDataType = '';
  1501. public $name;
  1502. public $status;
  1503. public function setCode($code)
  1504. {
  1505. $this->code = $code;
  1506. }
  1507. public function getCode()
  1508. {
  1509. return $this->code;
  1510. }
  1511. public function setContentAdsSettings(Google_Service_AdSenseHost_AdUnitContentAdsSettings $contentAdsSettings)
  1512. {
  1513. $this->contentAdsSettings = $contentAdsSettings;
  1514. }
  1515. public function getContentAdsSettings()
  1516. {
  1517. return $this->contentAdsSettings;
  1518. }
  1519. public function setCustomStyle(Google_Service_AdSenseHost_AdStyle $customStyle)
  1520. {
  1521. $this->customStyle = $customStyle;
  1522. }
  1523. public function getCustomStyle()
  1524. {
  1525. return $this->customStyle;
  1526. }
  1527. public function setId($id)
  1528. {
  1529. $this->id = $id;
  1530. }
  1531. public function getId()
  1532. {
  1533. return $this->id;
  1534. }
  1535. public function setKind($kind)
  1536. {
  1537. $this->kind = $kind;
  1538. }
  1539. public function getKind()
  1540. {
  1541. return $this->kind;
  1542. }
  1543. public function setMobileContentAdsSettings(Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings $mobileContentAdsSettings)
  1544. {
  1545. $this->mobileContentAdsSettings = $mobileContentAdsSettings;
  1546. }
  1547. public function getMobileContentAdsSettings()
  1548. {
  1549. return $this->mobileContentAdsSettings;
  1550. }
  1551. public function setName($name)
  1552. {
  1553. $this->name = $name;
  1554. }
  1555. public function getName()
  1556. {
  1557. return $this->name;
  1558. }
  1559. public function setStatus($status)
  1560. {
  1561. $this->status = $status;
  1562. }
  1563. public function getStatus()
  1564. {
  1565. return $this->status;
  1566. }
  1567. }
  1568. class Google_Service_AdSenseHost_AdUnitContentAdsSettings extends Google_Model
  1569. {
  1570. protected $internal_gapi_mappings = array(
  1571. );
  1572. protected $backupOptionType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption';
  1573. protected $backupOptionDataType = '';
  1574. public $size;
  1575. public $type;
  1576. public function setBackupOption(Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption $backupOption)
  1577. {
  1578. $this->backupOption = $backupOption;
  1579. }
  1580. public function getBackupOption()
  1581. {
  1582. return $this->backupOption;
  1583. }
  1584. public function setSize($size)
  1585. {
  1586. $this->size = $size;
  1587. }
  1588. public function getSize()
  1589. {
  1590. return $this->size;
  1591. }
  1592. public function setType($type)
  1593. {
  1594. $this->type = $type;
  1595. }
  1596. public function getType()
  1597. {
  1598. return $this->type;
  1599. }
  1600. }
  1601. class Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption extends Google_Model
  1602. {
  1603. protected $internal_gapi_mappings = array(
  1604. );
  1605. public $color;
  1606. public $type;
  1607. public $url;
  1608. public function setColor($color)
  1609. {
  1610. $this->color = $color;
  1611. }
  1612. public function getColor()
  1613. {
  1614. return $this->color;
  1615. }
  1616. public function setType($type)
  1617. {
  1618. $this->type = $type;
  1619. }
  1620. public function getType()
  1621. {
  1622. return $this->type;
  1623. }
  1624. public function setUrl($url)
  1625. {
  1626. $this->url = $url;
  1627. }
  1628. public function getUrl()
  1629. {
  1630. return $this->url;
  1631. }
  1632. }
  1633. class Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings extends Google_Model
  1634. {
  1635. protected $internal_gapi_mappings = array(
  1636. );
  1637. public $markupLanguage;
  1638. public $scriptingLanguage;
  1639. public $size;
  1640. public $type;
  1641. public function setMarkupLanguage($markupLanguage)
  1642. {
  1643. $this->markupLanguage = $markupLanguage;
  1644. }
  1645. public function getMarkupLanguage()
  1646. {
  1647. return $this->markupLanguage;
  1648. }
  1649. public function setScriptingLanguage($scriptingLanguage)
  1650. {
  1651. $this->scriptingLanguage = $scriptingLanguage;
  1652. }
  1653. public function getScriptingLanguage()
  1654. {
  1655. return $this->scriptingLanguage;
  1656. }
  1657. public function setSize($size)
  1658. {
  1659. $this->size = $size;
  1660. }
  1661. public function getSize()
  1662. {
  1663. return $this->size;
  1664. }
  1665. public function setType($type)
  1666. {
  1667. $this->type = $type;
  1668. }
  1669. public function getType()
  1670. {
  1671. return $this->type;
  1672. }
  1673. }
  1674. class Google_Service_AdSenseHost_AdUnits extends Google_Collection
  1675. {
  1676. protected $collection_key = 'items';
  1677. protected $internal_gapi_mappings = array(
  1678. );
  1679. public $etag;
  1680. protected $itemsType = 'Google_Service_AdSenseHost_AdUnit';
  1681. protected $itemsDataType = 'array';
  1682. public $kind;
  1683. public $nextPageToken;
  1684. public function setEtag($etag)
  1685. {
  1686. $this->etag = $etag;
  1687. }
  1688. public function getEtag()
  1689. {
  1690. return $this->etag;
  1691. }
  1692. public function setItems($items)
  1693. {
  1694. $this->items = $items;
  1695. }
  1696. public function getItems()
  1697. {
  1698. return $this->items;
  1699. }
  1700. public function setKind($kind)
  1701. {
  1702. $this->kind = $kind;
  1703. }
  1704. public function getKind()
  1705. {
  1706. return $this->kind;
  1707. }
  1708. public function setNextPageToken($nextPageToken)
  1709. {
  1710. $this->nextPageToken = $nextPageToken;
  1711. }
  1712. public function getNextPageToken()
  1713. {
  1714. return $this->nextPageToken;
  1715. }
  1716. }
  1717. class Google_Service_AdSenseHost_AssociationSession extends Google_Collection
  1718. {
  1719. protected $collection_key = 'productCodes';
  1720. protected $internal_gapi_mappings = array(
  1721. );
  1722. public $accountId;
  1723. public $id;
  1724. public $kind;
  1725. public $productCodes;
  1726. public $redirectUrl;
  1727. public $status;
  1728. public $userLocale;
  1729. public $websiteLocale;
  1730. public $websiteUrl;
  1731. public function setAccountId($accountId)
  1732. {
  1733. $this->accountId = $accountId;
  1734. }
  1735. public function getAccountId()
  1736. {
  1737. return $this->accountId;
  1738. }
  1739. public function setId($id)
  1740. {
  1741. $this->id = $id;
  1742. }
  1743. public function getId()
  1744. {
  1745. return $this->id;
  1746. }
  1747. public function setKind($kind)
  1748. {
  1749. $this->kind = $kind;
  1750. }
  1751. public function getKind()
  1752. {
  1753. return $this->kind;
  1754. }
  1755. public function setProductCodes($productCodes)
  1756. {
  1757. $this->productCodes = $productCodes;
  1758. }
  1759. public function getProductCodes()
  1760. {
  1761. return $this->productCodes;
  1762. }
  1763. public function setRedirectUrl($redirectUrl)
  1764. {
  1765. $this->redirectUrl = $redirectUrl;
  1766. }
  1767. public function getRedirectUrl()
  1768. {
  1769. return $this->redirectUrl;
  1770. }
  1771. public function setStatus($status)
  1772. {
  1773. $this->status = $status;
  1774. }
  1775. public function getStatus()
  1776. {
  1777. return $this->status;
  1778. }
  1779. public function setUserLocale($userLocale)
  1780. {
  1781. $this->userLocale = $userLocale;
  1782. }
  1783. public function getUserLocale()
  1784. {
  1785. return $this->userLocale;
  1786. }
  1787. public function setWebsiteLocale($websiteLocale)
  1788. {
  1789. $this->websiteLocale = $websiteLocale;
  1790. }
  1791. public function getWebsiteLocale()
  1792. {
  1793. return $this->websiteLocale;
  1794. }
  1795. public function setWebsiteUrl($websiteUrl)
  1796. {
  1797. $this->websiteUrl = $websiteUrl;
  1798. }
  1799. public function getWebsiteUrl()
  1800. {
  1801. return $this->websiteUrl;
  1802. }
  1803. }
  1804. class Google_Service_AdSenseHost_CustomChannel extends Google_Model
  1805. {
  1806. protected $internal_gapi_mappings = array(
  1807. );
  1808. public $code;
  1809. public $id;
  1810. public $kind;
  1811. public $name;
  1812. public function setCode($code)
  1813. {
  1814. $this->code = $code;
  1815. }
  1816. public function getCode()
  1817. {
  1818. return $this->code;
  1819. }
  1820. public function setId($id)
  1821. {
  1822. $this->id = $id;
  1823. }
  1824. public function getId()
  1825. {
  1826. return $this->id;
  1827. }
  1828. public function setKind($kind)
  1829. {
  1830. $this->kind = $kind;
  1831. }
  1832. public function getKind()
  1833. {
  1834. return $this->kind;
  1835. }
  1836. public function setName($name)
  1837. {
  1838. $this->name = $name;
  1839. }
  1840. public function getName()
  1841. {
  1842. return $this->name;
  1843. }
  1844. }
  1845. class Google_Service_AdSenseHost_CustomChannels extends Google_Collection
  1846. {
  1847. protected $collection_key = 'items';
  1848. protected $internal_gapi_mappings = array(
  1849. );
  1850. public $etag;
  1851. protected $itemsType = 'Google_Service_AdSenseHost_CustomChannel';
  1852. protected $itemsDataType = 'array';
  1853. public $kind;
  1854. public $nextPageToken;
  1855. public function setEtag($etag)
  1856. {
  1857. $this->etag = $etag;
  1858. }
  1859. public function getEtag()
  1860. {
  1861. return $this->etag;
  1862. }
  1863. public function setItems($items)
  1864. {
  1865. $this->items = $items;
  1866. }
  1867. public function getItems()
  1868. {
  1869. return $this->items;
  1870. }
  1871. public function setKind($kind)
  1872. {
  1873. $this->kind = $kind;
  1874. }
  1875. public function getKind()
  1876. {
  1877. return $this->kind;
  1878. }
  1879. public function setNextPageToken($nextPageToken)
  1880. {
  1881. $this->nextPageToken = $nextPageToken;
  1882. }
  1883. public function getNextPageToken()
  1884. {
  1885. return $this->nextPageToken;
  1886. }
  1887. }
  1888. class Google_Service_AdSenseHost_Report extends Google_Collection
  1889. {
  1890. protected $collection_key = 'warnings';
  1891. protected $internal_gapi_mappings = array(
  1892. );
  1893. public $averages;
  1894. protected $headersType = 'Google_Service_AdSenseHost_ReportHeaders';
  1895. protected $headersDataType = 'array';
  1896. public $kind;
  1897. public $rows;
  1898. public $totalMatchedRows;
  1899. public $totals;
  1900. public $warnings;
  1901. public function setAverages($averages)
  1902. {
  1903. $this->averages = $averages;
  1904. }
  1905. public function getAverages()
  1906. {
  1907. return $this->averages;
  1908. }
  1909. public function setHeaders($headers)
  1910. {
  1911. $this->headers = $headers;
  1912. }
  1913. public function getHeaders()
  1914. {
  1915. return $this->headers;
  1916. }
  1917. public function setKind($kind)
  1918. {
  1919. $this->kind = $kind;
  1920. }
  1921. public function getKind()
  1922. {
  1923. return $this->kind;
  1924. }
  1925. public function setRows($rows)
  1926. {
  1927. $this->rows = $rows;
  1928. }
  1929. public function getRows()
  1930. {
  1931. return $this->rows;
  1932. }
  1933. public function setTotalMatchedRows($totalMatchedRows)
  1934. {
  1935. $this->totalMatchedRows = $totalMatchedRows;
  1936. }
  1937. public function getTotalMatchedRows()
  1938. {
  1939. return $this->totalMatchedRows;
  1940. }
  1941. public function setTotals($totals)
  1942. {
  1943. $this->totals = $totals;
  1944. }
  1945. public function getTotals()
  1946. {
  1947. return $this->totals;
  1948. }
  1949. public function setWarnings($warnings)
  1950. {
  1951. $this->warnings = $warnings;
  1952. }
  1953. public function getWarnings()
  1954. {
  1955. return $this->warnings;
  1956. }
  1957. }
  1958. class Google_Service_AdSenseHost_ReportHeaders extends Google_Model
  1959. {
  1960. protected $internal_gapi_mappings = array(
  1961. );
  1962. public $currency;
  1963. public $name;
  1964. public $type;
  1965. public function setCurrency($currency)
  1966. {
  1967. $this->currency = $currency;
  1968. }
  1969. public function getCurrency()
  1970. {
  1971. return $this->currency;
  1972. }
  1973. public function setName($name)
  1974. {
  1975. $this->name = $name;
  1976. }
  1977. public function getName()
  1978. {
  1979. return $this->name;
  1980. }
  1981. public function setType($type)
  1982. {
  1983. $this->type = $type;
  1984. }
  1985. public function getType()
  1986. {
  1987. return $this->type;
  1988. }
  1989. }
  1990. class Google_Service_AdSenseHost_UrlChannel extends Google_Model
  1991. {
  1992. protected $internal_gapi_mappings = array(
  1993. );
  1994. public $id;
  1995. public $kind;
  1996. public $urlPattern;
  1997. public function setId($id)
  1998. {
  1999. $this->id = $id;
  2000. }
  2001. public function getId()
  2002. {
  2003. return $this->id;
  2004. }
  2005. public function setKind($kind)
  2006. {
  2007. $this->kind = $kind;
  2008. }
  2009. public function getKind()
  2010. {
  2011. return $this->kind;
  2012. }
  2013. public function setUrlPattern($urlPattern)
  2014. {
  2015. $this->urlPattern = $urlPattern;
  2016. }
  2017. public function getUrlPattern()
  2018. {
  2019. return $this->urlPattern;
  2020. }
  2021. }
  2022. class Google_Service_AdSenseHost_UrlChannels extends Google_Collection
  2023. {
  2024. protected $collection_key = 'items';
  2025. protected $internal_gapi_mappings = array(
  2026. );
  2027. public $etag;
  2028. protected $itemsType = 'Google_Service_AdSenseHost_UrlChannel';
  2029. protected $itemsDataType = 'array';
  2030. public $kind;
  2031. public $nextPageToken;
  2032. public function setEtag($etag)
  2033. {
  2034. $this->etag = $etag;
  2035. }
  2036. public function getEtag()
  2037. {
  2038. return $this->etag;
  2039. }
  2040. public function setItems($items)
  2041. {
  2042. $this->items = $items;
  2043. }
  2044. public function getItems()
  2045. {
  2046. return $this->items;
  2047. }
  2048. public function setKind($kind)
  2049. {
  2050. $this->kind = $kind;
  2051. }
  2052. public function getKind()
  2053. {
  2054. return $this->kind;
  2055. }
  2056. public function setNextPageToken($nextPageToken)
  2057. {
  2058. $this->nextPageToken = $nextPageToken;
  2059. }
  2060. public function getNextPageToken()
  2061. {
  2062. return $this->nextPageToken;
  2063. }
  2064. }