PageRenderTime 51ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 1ms

/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

Large files files are truncated, but you can click here to view the full 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 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($ur

Large files files are truncated, but you can click here to view the full file