PageRenderTime 70ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/src/Google/Service/AdSenseHost.php

https://github.com/leogaggl/pluspress
PHP | 2281 lines | 1609 code | 215 blank | 457 comment | 0 complexity | dee806b6038dd68dc5d9be85793d3a98 MD5 | raw file

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 publisher management capabilities.
  22. * </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 = "https://www.googleapis.com/auth/adsensehost";
  35. public $accounts;
  36. public $accounts_adclients;
  37. public $accounts_adunits;
  38. public $accounts_reports;
  39. public $adclients;
  40. public $associationsessions;
  41. public $customchannels;
  42. public $reports;
  43. public $urlchannels;
  44. /**
  45. * Constructs the internal representation of the AdSenseHost service.
  46. *
  47. * @param Google_Client $client
  48. */
  49. public function __construct(Google_Client $client)
  50. {
  51. parent::__construct($client);
  52. $this->servicePath = 'adsensehost/v4.1/';
  53. $this->version = 'v4.1';
  54. $this->serviceName = 'adsensehost';
  55. $this->accounts = new Google_Service_AdSenseHost_Accounts_Resource(
  56. $this,
  57. $this->serviceName,
  58. 'accounts',
  59. array(
  60. 'methods' => array(
  61. 'get' => array(
  62. 'path' => 'accounts/{accountId}',
  63. 'httpMethod' => 'GET',
  64. 'parameters' => array(
  65. 'accountId' => array(
  66. 'location' => 'path',
  67. 'type' => 'string',
  68. 'required' => true,
  69. ),
  70. ),
  71. ),'list' => array(
  72. 'path' => 'accounts',
  73. 'httpMethod' => 'GET',
  74. 'parameters' => array(
  75. 'filterAdClientId' => array(
  76. 'location' => 'query',
  77. 'type' => 'string',
  78. 'repeated' => true,
  79. 'required' => true,
  80. ),
  81. ),
  82. ),
  83. )
  84. )
  85. );
  86. $this->accounts_adclients = new Google_Service_AdSenseHost_AccountsAdclients_Resource(
  87. $this,
  88. $this->serviceName,
  89. 'adclients',
  90. array(
  91. 'methods' => array(
  92. 'get' => array(
  93. 'path' => 'accounts/{accountId}/adclients/{adClientId}',
  94. 'httpMethod' => 'GET',
  95. 'parameters' => array(
  96. 'accountId' => array(
  97. 'location' => 'path',
  98. 'type' => 'string',
  99. 'required' => true,
  100. ),
  101. 'adClientId' => array(
  102. 'location' => 'path',
  103. 'type' => 'string',
  104. 'required' => true,
  105. ),
  106. ),
  107. ),'list' => array(
  108. 'path' => 'accounts/{accountId}/adclients',
  109. 'httpMethod' => 'GET',
  110. 'parameters' => array(
  111. 'accountId' => array(
  112. 'location' => 'path',
  113. 'type' => 'string',
  114. 'required' => true,
  115. ),
  116. 'pageToken' => array(
  117. 'location' => 'query',
  118. 'type' => 'string',
  119. ),
  120. 'maxResults' => array(
  121. 'location' => 'query',
  122. 'type' => 'integer',
  123. ),
  124. ),
  125. ),
  126. )
  127. )
  128. );
  129. $this->accounts_adunits = new Google_Service_AdSenseHost_AccountsAdunits_Resource(
  130. $this,
  131. $this->serviceName,
  132. 'adunits',
  133. array(
  134. 'methods' => array(
  135. 'delete' => array(
  136. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}',
  137. 'httpMethod' => 'DELETE',
  138. 'parameters' => array(
  139. 'accountId' => array(
  140. 'location' => 'path',
  141. 'type' => 'string',
  142. 'required' => true,
  143. ),
  144. 'adClientId' => array(
  145. 'location' => 'path',
  146. 'type' => 'string',
  147. 'required' => true,
  148. ),
  149. 'adUnitId' => array(
  150. 'location' => 'path',
  151. 'type' => 'string',
  152. 'required' => true,
  153. ),
  154. ),
  155. ),'get' => array(
  156. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}',
  157. 'httpMethod' => 'GET',
  158. 'parameters' => array(
  159. 'accountId' => array(
  160. 'location' => 'path',
  161. 'type' => 'string',
  162. 'required' => true,
  163. ),
  164. 'adClientId' => array(
  165. 'location' => 'path',
  166. 'type' => 'string',
  167. 'required' => true,
  168. ),
  169. 'adUnitId' => array(
  170. 'location' => 'path',
  171. 'type' => 'string',
  172. 'required' => true,
  173. ),
  174. ),
  175. ),'getAdCode' => array(
  176. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode',
  177. 'httpMethod' => 'GET',
  178. 'parameters' => array(
  179. 'accountId' => array(
  180. 'location' => 'path',
  181. 'type' => 'string',
  182. 'required' => true,
  183. ),
  184. 'adClientId' => array(
  185. 'location' => 'path',
  186. 'type' => 'string',
  187. 'required' => true,
  188. ),
  189. 'adUnitId' => array(
  190. 'location' => 'path',
  191. 'type' => 'string',
  192. 'required' => true,
  193. ),
  194. 'hostCustomChannelId' => array(
  195. 'location' => 'query',
  196. 'type' => 'string',
  197. 'repeated' => true,
  198. ),
  199. ),
  200. ),'insert' => array(
  201. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
  202. 'httpMethod' => 'POST',
  203. 'parameters' => array(
  204. 'accountId' => array(
  205. 'location' => 'path',
  206. 'type' => 'string',
  207. 'required' => true,
  208. ),
  209. 'adClientId' => array(
  210. 'location' => 'path',
  211. 'type' => 'string',
  212. 'required' => true,
  213. ),
  214. ),
  215. ),'list' => array(
  216. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
  217. 'httpMethod' => 'GET',
  218. 'parameters' => array(
  219. 'accountId' => array(
  220. 'location' => 'path',
  221. 'type' => 'string',
  222. 'required' => true,
  223. ),
  224. 'adClientId' => array(
  225. 'location' => 'path',
  226. 'type' => 'string',
  227. 'required' => true,
  228. ),
  229. 'includeInactive' => array(
  230. 'location' => 'query',
  231. 'type' => 'boolean',
  232. ),
  233. 'pageToken' => array(
  234. 'location' => 'query',
  235. 'type' => 'string',
  236. ),
  237. 'maxResults' => array(
  238. 'location' => 'query',
  239. 'type' => 'integer',
  240. ),
  241. ),
  242. ),'patch' => array(
  243. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
  244. 'httpMethod' => 'PATCH',
  245. 'parameters' => array(
  246. 'accountId' => array(
  247. 'location' => 'path',
  248. 'type' => 'string',
  249. 'required' => true,
  250. ),
  251. 'adClientId' => array(
  252. 'location' => 'path',
  253. 'type' => 'string',
  254. 'required' => true,
  255. ),
  256. 'adUnitId' => array(
  257. 'location' => 'query',
  258. 'type' => 'string',
  259. 'required' => true,
  260. ),
  261. ),
  262. ),'update' => array(
  263. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
  264. 'httpMethod' => 'PUT',
  265. 'parameters' => array(
  266. 'accountId' => array(
  267. 'location' => 'path',
  268. 'type' => 'string',
  269. 'required' => true,
  270. ),
  271. 'adClientId' => array(
  272. 'location' => 'path',
  273. 'type' => 'string',
  274. 'required' => true,
  275. ),
  276. ),
  277. ),
  278. )
  279. )
  280. );
  281. $this->accounts_reports = new Google_Service_AdSenseHost_AccountsReports_Resource(
  282. $this,
  283. $this->serviceName,
  284. 'reports',
  285. array(
  286. 'methods' => array(
  287. 'generate' => array(
  288. 'path' => 'accounts/{accountId}/reports',
  289. 'httpMethod' => 'GET',
  290. 'parameters' => array(
  291. 'accountId' => array(
  292. 'location' => 'path',
  293. 'type' => 'string',
  294. 'required' => true,
  295. ),
  296. 'startDate' => array(
  297. 'location' => 'query',
  298. 'type' => 'string',
  299. 'required' => true,
  300. ),
  301. 'endDate' => array(
  302. 'location' => 'query',
  303. 'type' => 'string',
  304. 'required' => true,
  305. ),
  306. 'sort' => array(
  307. 'location' => 'query',
  308. 'type' => 'string',
  309. 'repeated' => true,
  310. ),
  311. 'locale' => array(
  312. 'location' => 'query',
  313. 'type' => 'string',
  314. ),
  315. 'metric' => array(
  316. 'location' => 'query',
  317. 'type' => 'string',
  318. 'repeated' => true,
  319. ),
  320. 'maxResults' => array(
  321. 'location' => 'query',
  322. 'type' => 'integer',
  323. ),
  324. 'filter' => array(
  325. 'location' => 'query',
  326. 'type' => 'string',
  327. 'repeated' => true,
  328. ),
  329. 'startIndex' => array(
  330. 'location' => 'query',
  331. 'type' => 'integer',
  332. ),
  333. 'dimension' => array(
  334. 'location' => 'query',
  335. 'type' => 'string',
  336. 'repeated' => true,
  337. ),
  338. ),
  339. ),
  340. )
  341. )
  342. );
  343. $this->adclients = new Google_Service_AdSenseHost_Adclients_Resource(
  344. $this,
  345. $this->serviceName,
  346. 'adclients',
  347. array(
  348. 'methods' => array(
  349. 'get' => array(
  350. 'path' => 'adclients/{adClientId}',
  351. 'httpMethod' => 'GET',
  352. 'parameters' => array(
  353. 'adClientId' => array(
  354. 'location' => 'path',
  355. 'type' => 'string',
  356. 'required' => true,
  357. ),
  358. ),
  359. ),'list' => array(
  360. 'path' => 'adclients',
  361. 'httpMethod' => 'GET',
  362. 'parameters' => array(
  363. 'pageToken' => array(
  364. 'location' => 'query',
  365. 'type' => 'string',
  366. ),
  367. 'maxResults' => array(
  368. 'location' => 'query',
  369. 'type' => 'integer',
  370. ),
  371. ),
  372. ),
  373. )
  374. )
  375. );
  376. $this->associationsessions = new Google_Service_AdSenseHost_Associationsessions_Resource(
  377. $this,
  378. $this->serviceName,
  379. 'associationsessions',
  380. array(
  381. 'methods' => array(
  382. 'start' => array(
  383. 'path' => 'associationsessions/start',
  384. 'httpMethod' => 'GET',
  385. 'parameters' => array(
  386. 'productCode' => array(
  387. 'location' => 'query',
  388. 'type' => 'string',
  389. 'repeated' => true,
  390. 'required' => true,
  391. ),
  392. 'websiteUrl' => array(
  393. 'location' => 'query',
  394. 'type' => 'string',
  395. 'required' => true,
  396. ),
  397. 'websiteLocale' => array(
  398. 'location' => 'query',
  399. 'type' => 'string',
  400. ),
  401. 'userLocale' => array(
  402. 'location' => 'query',
  403. 'type' => 'string',
  404. ),
  405. ),
  406. ),'verify' => array(
  407. 'path' => 'associationsessions/verify',
  408. 'httpMethod' => 'GET',
  409. 'parameters' => array(
  410. 'token' => array(
  411. 'location' => 'query',
  412. 'type' => 'string',
  413. 'required' => true,
  414. ),
  415. ),
  416. ),
  417. )
  418. )
  419. );
  420. $this->customchannels = new Google_Service_AdSenseHost_Customchannels_Resource(
  421. $this,
  422. $this->serviceName,
  423. 'customchannels',
  424. array(
  425. 'methods' => array(
  426. 'delete' => array(
  427. 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}',
  428. 'httpMethod' => 'DELETE',
  429. 'parameters' => array(
  430. 'adClientId' => array(
  431. 'location' => 'path',
  432. 'type' => 'string',
  433. 'required' => true,
  434. ),
  435. 'customChannelId' => array(
  436. 'location' => 'path',
  437. 'type' => 'string',
  438. 'required' => true,
  439. ),
  440. ),
  441. ),'get' => array(
  442. 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}',
  443. 'httpMethod' => 'GET',
  444. 'parameters' => array(
  445. 'adClientId' => array(
  446. 'location' => 'path',
  447. 'type' => 'string',
  448. 'required' => true,
  449. ),
  450. 'customChannelId' => array(
  451. 'location' => 'path',
  452. 'type' => 'string',
  453. 'required' => true,
  454. ),
  455. ),
  456. ),'insert' => array(
  457. 'path' => 'adclients/{adClientId}/customchannels',
  458. 'httpMethod' => 'POST',
  459. 'parameters' => array(
  460. 'adClientId' => array(
  461. 'location' => 'path',
  462. 'type' => 'string',
  463. 'required' => true,
  464. ),
  465. ),
  466. ),'list' => array(
  467. 'path' => 'adclients/{adClientId}/customchannels',
  468. 'httpMethod' => 'GET',
  469. 'parameters' => array(
  470. 'adClientId' => array(
  471. 'location' => 'path',
  472. 'type' => 'string',
  473. 'required' => true,
  474. ),
  475. 'pageToken' => array(
  476. 'location' => 'query',
  477. 'type' => 'string',
  478. ),
  479. 'maxResults' => array(
  480. 'location' => 'query',
  481. 'type' => 'integer',
  482. ),
  483. ),
  484. ),'patch' => array(
  485. 'path' => 'adclients/{adClientId}/customchannels',
  486. 'httpMethod' => 'PATCH',
  487. 'parameters' => array(
  488. 'adClientId' => array(
  489. 'location' => 'path',
  490. 'type' => 'string',
  491. 'required' => true,
  492. ),
  493. 'customChannelId' => array(
  494. 'location' => 'query',
  495. 'type' => 'string',
  496. 'required' => true,
  497. ),
  498. ),
  499. ),'update' => array(
  500. 'path' => 'adclients/{adClientId}/customchannels',
  501. 'httpMethod' => 'PUT',
  502. 'parameters' => array(
  503. 'adClientId' => array(
  504. 'location' => 'path',
  505. 'type' => 'string',
  506. 'required' => true,
  507. ),
  508. ),
  509. ),
  510. )
  511. )
  512. );
  513. $this->reports = new Google_Service_AdSenseHost_Reports_Resource(
  514. $this,
  515. $this->serviceName,
  516. 'reports',
  517. array(
  518. 'methods' => array(
  519. 'generate' => array(
  520. 'path' => 'reports',
  521. 'httpMethod' => 'GET',
  522. 'parameters' => array(
  523. 'startDate' => array(
  524. 'location' => 'query',
  525. 'type' => 'string',
  526. 'required' => true,
  527. ),
  528. 'endDate' => array(
  529. 'location' => 'query',
  530. 'type' => 'string',
  531. 'required' => true,
  532. ),
  533. 'sort' => array(
  534. 'location' => 'query',
  535. 'type' => 'string',
  536. 'repeated' => true,
  537. ),
  538. 'locale' => array(
  539. 'location' => 'query',
  540. 'type' => 'string',
  541. ),
  542. 'metric' => array(
  543. 'location' => 'query',
  544. 'type' => 'string',
  545. 'repeated' => true,
  546. ),
  547. 'maxResults' => array(
  548. 'location' => 'query',
  549. 'type' => 'integer',
  550. ),
  551. 'filter' => array(
  552. 'location' => 'query',
  553. 'type' => 'string',
  554. 'repeated' => true,
  555. ),
  556. 'startIndex' => array(
  557. 'location' => 'query',
  558. 'type' => 'integer',
  559. ),
  560. 'dimension' => array(
  561. 'location' => 'query',
  562. 'type' => 'string',
  563. 'repeated' => true,
  564. ),
  565. ),
  566. ),
  567. )
  568. )
  569. );
  570. $this->urlchannels = new Google_Service_AdSenseHost_Urlchannels_Resource(
  571. $this,
  572. $this->serviceName,
  573. 'urlchannels',
  574. array(
  575. 'methods' => array(
  576. 'delete' => array(
  577. 'path' => 'adclients/{adClientId}/urlchannels/{urlChannelId}',
  578. 'httpMethod' => 'DELETE',
  579. 'parameters' => array(
  580. 'adClientId' => array(
  581. 'location' => 'path',
  582. 'type' => 'string',
  583. 'required' => true,
  584. ),
  585. 'urlChannelId' => array(
  586. 'location' => 'path',
  587. 'type' => 'string',
  588. 'required' => true,
  589. ),
  590. ),
  591. ),'insert' => array(
  592. 'path' => 'adclients/{adClientId}/urlchannels',
  593. 'httpMethod' => 'POST',
  594. 'parameters' => array(
  595. 'adClientId' => array(
  596. 'location' => 'path',
  597. 'type' => 'string',
  598. 'required' => true,
  599. ),
  600. ),
  601. ),'list' => array(
  602. 'path' => 'adclients/{adClientId}/urlchannels',
  603. 'httpMethod' => 'GET',
  604. 'parameters' => array(
  605. 'adClientId' => array(
  606. 'location' => 'path',
  607. 'type' => 'string',
  608. 'required' => true,
  609. ),
  610. 'pageToken' => array(
  611. 'location' => 'query',
  612. 'type' => 'string',
  613. ),
  614. 'maxResults' => array(
  615. 'location' => 'query',
  616. 'type' => 'integer',
  617. ),
  618. ),
  619. ),
  620. )
  621. )
  622. );
  623. }
  624. }
  625. /**
  626. * The "accounts" collection of methods.
  627. * Typical usage is:
  628. * <code>
  629. * $adsensehostService = new Google_Service_AdSenseHost(...);
  630. * $accounts = $adsensehostService->accounts;
  631. * </code>
  632. */
  633. class Google_Service_AdSenseHost_Accounts_Resource extends Google_Service_Resource
  634. {
  635. /**
  636. * Get information about the selected associated AdSense account. (accounts.get)
  637. *
  638. * @param string $accountId
  639. * Account to get information about.
  640. * @param array $optParams Optional parameters.
  641. * @return Google_Service_AdSenseHost_Account
  642. */
  643. public function get($accountId, $optParams = array())
  644. {
  645. $params = array('accountId' => $accountId);
  646. $params = array_merge($params, $optParams);
  647. return $this->call('get', array($params), "Google_Service_AdSenseHost_Account");
  648. }
  649. /**
  650. * List hosted accounts associated with this AdSense account by ad client id.
  651. * (accounts.listAccounts)
  652. *
  653. * @param string $filterAdClientId
  654. * 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
  680. * Account which contains the ad client.
  681. * @param string $adClientId
  682. * Ad client to get.
  683. * @param array $optParams Optional parameters.
  684. * @return Google_Service_AdSenseHost_AdClient
  685. */
  686. public function get($accountId, $adClientId, $optParams = array())
  687. {
  688. $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
  689. $params = array_merge($params, $optParams);
  690. return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient");
  691. }
  692. /**
  693. * List all hosted ad clients in the specified hosted account.
  694. * (adclients.listAccountsAdclients)
  695. *
  696. * @param string $accountId
  697. * Account for which to list ad clients.
  698. * @param array $optParams Optional parameters.
  699. *
  700. * @opt_param string pageToken
  701. * A continuation token, used to page through ad clients. To retrieve the next page, set this
  702. * parameter to the value of "nextPageToken" from the previous response.
  703. * @opt_param string maxResults
  704. * The maximum number of ad clients to include in the response, used for paging.
  705. * @return Google_Service_AdSenseHost_AdClients
  706. */
  707. public function listAccountsAdclients($accountId, $optParams = array())
  708. {
  709. $params = array('accountId' => $accountId);
  710. $params = array_merge($params, $optParams);
  711. return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients");
  712. }
  713. }
  714. /**
  715. * The "adunits" collection of methods.
  716. * Typical usage is:
  717. * <code>
  718. * $adsensehostService = new Google_Service_AdSenseHost(...);
  719. * $adunits = $adsensehostService->adunits;
  720. * </code>
  721. */
  722. class Google_Service_AdSenseHost_AccountsAdunits_Resource extends Google_Service_Resource
  723. {
  724. /**
  725. * Delete the specified ad unit from the specified publisher AdSense account.
  726. * (adunits.delete)
  727. *
  728. * @param string $accountId
  729. * Account which contains the ad unit.
  730. * @param string $adClientId
  731. * Ad client for which to get ad unit.
  732. * @param string $adUnitId
  733. * Ad unit to delete.
  734. * @param array $optParams Optional parameters.
  735. * @return Google_Service_AdSenseHost_AdUnit
  736. */
  737. public function delete($accountId, $adClientId, $adUnitId, $optParams = array())
  738. {
  739. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  740. $params = array_merge($params, $optParams);
  741. return $this->call('delete', array($params), "Google_Service_AdSenseHost_AdUnit");
  742. }
  743. /**
  744. * Get the specified host ad unit in this AdSense account. (adunits.get)
  745. *
  746. * @param string $accountId
  747. * Account which contains the ad unit.
  748. * @param string $adClientId
  749. * Ad client for which to get ad unit.
  750. * @param string $adUnitId
  751. * Ad unit to get.
  752. * @param array $optParams Optional parameters.
  753. * @return Google_Service_AdSenseHost_AdUnit
  754. */
  755. public function get($accountId, $adClientId, $adUnitId, $optParams = array())
  756. {
  757. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  758. $params = array_merge($params, $optParams);
  759. return $this->call('get', array($params), "Google_Service_AdSenseHost_AdUnit");
  760. }
  761. /**
  762. * Get ad code for the specified ad unit, attaching the specified host custom
  763. * channels. (adunits.getAdCode)
  764. *
  765. * @param string $accountId
  766. * Account which contains the ad client.
  767. * @param string $adClientId
  768. * Ad client with contains the ad unit.
  769. * @param string $adUnitId
  770. * Ad unit to get the code for.
  771. * @param array $optParams Optional parameters.
  772. *
  773. * @opt_param string hostCustomChannelId
  774. * Host custom channel to attach to the ad code.
  775. * @return Google_Service_AdSenseHost_AdCode
  776. */
  777. public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array())
  778. {
  779. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  780. $params = array_merge($params, $optParams);
  781. return $this->call('getAdCode', array($params), "Google_Service_AdSenseHost_AdCode");
  782. }
  783. /**
  784. * Insert the supplied ad unit into the specified publisher AdSense account.
  785. * (adunits.insert)
  786. *
  787. * @param string $accountId
  788. * Account which will contain the ad unit.
  789. * @param string $adClientId
  790. * Ad client into which to insert the ad unit.
  791. * @param Google_AdUnit $postBody
  792. * @param array $optParams Optional parameters.
  793. * @return Google_Service_AdSenseHost_AdUnit
  794. */
  795. public function insert($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
  796. {
  797. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
  798. $params = array_merge($params, $optParams);
  799. return $this->call('insert', array($params), "Google_Service_AdSenseHost_AdUnit");
  800. }
  801. /**
  802. * List all ad units in the specified publisher's AdSense account.
  803. * (adunits.listAccountsAdunits)
  804. *
  805. * @param string $accountId
  806. * Account which contains the ad client.
  807. * @param string $adClientId
  808. * Ad client for which to list ad units.
  809. * @param array $optParams Optional parameters.
  810. *
  811. * @opt_param bool includeInactive
  812. * Whether to include inactive ad units. Default: true.
  813. * @opt_param string pageToken
  814. * A continuation token, used to page through ad units. To retrieve the next page, set this
  815. * parameter to the value of "nextPageToken" from the previous response.
  816. * @opt_param string maxResults
  817. * The maximum number of ad units to include in the response, used for paging.
  818. * @return Google_Service_AdSenseHost_AdUnits
  819. */
  820. public function listAccountsAdunits($accountId, $adClientId, $optParams = array())
  821. {
  822. $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
  823. $params = array_merge($params, $optParams);
  824. return $this->call('list', array($params), "Google_Service_AdSenseHost_AdUnits");
  825. }
  826. /**
  827. * Update the supplied ad unit in the specified publisher AdSense account. This
  828. * method supports patch semantics. (adunits.patch)
  829. *
  830. * @param string $accountId
  831. * Account which contains the ad client.
  832. * @param string $adClientId
  833. * Ad client which contains the ad unit.
  834. * @param string $adUnitId
  835. * Ad unit to get.
  836. * @param Google_AdUnit $postBody
  837. * @param array $optParams Optional parameters.
  838. * @return Google_Service_AdSenseHost_AdUnit
  839. */
  840. public function patch($accountId, $adClientId, $adUnitId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
  841. {
  842. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody);
  843. $params = array_merge($params, $optParams);
  844. return $this->call('patch', array($params), "Google_Service_AdSenseHost_AdUnit");
  845. }
  846. /**
  847. * Update the supplied ad unit in the specified publisher AdSense account.
  848. * (adunits.update)
  849. *
  850. * @param string $accountId
  851. * Account which contains the ad client.
  852. * @param string $adClientId
  853. * Ad client which contains the ad unit.
  854. * @param Google_AdUnit $postBody
  855. * @param array $optParams Optional parameters.
  856. * @return Google_Service_AdSenseHost_AdUnit
  857. */
  858. public function update($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
  859. {
  860. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
  861. $params = array_merge($params, $optParams);
  862. return $this->call('update', array($params), "Google_Service_AdSenseHost_AdUnit");
  863. }
  864. }
  865. /**
  866. * The "reports" collection of methods.
  867. * Typical usage is:
  868. * <code>
  869. * $adsensehostService = new Google_Service_AdSenseHost(...);
  870. * $reports = $adsensehostService->reports;
  871. * </code>
  872. */
  873. class Google_Service_AdSenseHost_AccountsReports_Resource extends Google_Service_Resource
  874. {
  875. /**
  876. * Generate an AdSense report based on the report request sent in the query
  877. * parameters. Returns the result as JSON; to retrieve output in CSV format
  878. * specify "alt=csv" as a query parameter. (reports.generate)
  879. *
  880. * @param string $accountId
  881. * Hosted account upon which to report.
  882. * @param string $startDate
  883. * Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
  884. * @param string $endDate
  885. * End of the date range to report on in "YYYY-MM-DD" format, inclusive.
  886. * @param array $optParams Optional parameters.
  887. *
  888. * @opt_param string sort
  889. * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+"
  890. * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted
  891. * ascending.
  892. * @opt_param string locale
  893. * Optional locale to use for translating report output to a local language. Defaults to "en_US" if
  894. * not specified.
  895. * @opt_param string metric
  896. * Numeric columns to include in the report.
  897. * @opt_param string maxResults
  898. * The maximum number of rows of report data to return.
  899. * @opt_param string filter
  900. * Filters to be run on the report.
  901. * @opt_param string startIndex
  902. * Index of the first row of report data to return.
  903. * @opt_param string dimension
  904. * Dimensions to base the report on.
  905. * @return Google_Service_AdSenseHost_Report
  906. */
  907. public function generate($accountId, $startDate, $endDate, $optParams = array())
  908. {
  909. $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
  910. $params = array_merge($params, $optParams);
  911. return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report");
  912. }
  913. }
  914. /**
  915. * The "adclients" collection of methods.
  916. * Typical usage is:
  917. * <code>
  918. * $adsensehostService = new Google_Service_AdSenseHost(...);
  919. * $adclients = $adsensehostService->adclients;
  920. * </code>
  921. */
  922. class Google_Service_AdSenseHost_Adclients_Resource extends Google_Service_Resource
  923. {
  924. /**
  925. * Get information about one of the ad clients in the Host AdSense account.
  926. * (adclients.get)
  927. *
  928. * @param string $adClientId
  929. * Ad client to get.
  930. * @param array $optParams Optional parameters.
  931. * @return Google_Service_AdSenseHost_AdClient
  932. */
  933. public function get($adClientId, $optParams = array())
  934. {
  935. $params = array('adClientId' => $adClientId);
  936. $params = array_merge($params, $optParams);
  937. return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient");
  938. }
  939. /**
  940. * List all host ad clients in this AdSense account. (adclients.listAdclients)
  941. *
  942. * @param array $optParams Optional parameters.
  943. *
  944. * @opt_param string pageToken
  945. * A continuation token, used to page through ad clients. To retrieve the next page, set this
  946. * parameter to the value of "nextPageToken" from the previous response.
  947. * @opt_param string maxResults
  948. * The maximum number of ad clients to include in the response, used for paging.
  949. * @return Google_Service_AdSenseHost_AdClients
  950. */
  951. public function listAdclients($optParams = array())
  952. {
  953. $params = array();
  954. $params = array_merge($params, $optParams);
  955. return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients");
  956. }
  957. }
  958. /**
  959. * The "associationsessions" collection of methods.
  960. * Typical usage is:
  961. * <code>
  962. * $adsensehostService = new Google_Service_AdSenseHost(...);
  963. * $associationsessions = $adsensehostService->associationsessions;
  964. * </code>
  965. */
  966. class Google_Service_AdSenseHost_Associationsessions_Resource extends Google_Service_Resource
  967. {
  968. /**
  969. * Create an association session for initiating an association with an AdSense
  970. * user. (associationsessions.start)
  971. *
  972. * @param string $productCode
  973. * Products to associate with the user.
  974. * @param string $websiteUrl
  975. * The URL of the user's hosted website.
  976. * @param array $optParams Optional parameters.
  977. *
  978. * @opt_param string websiteLocale
  979. * The locale of the user's hosted website.
  980. * @opt_param string userLocale
  981. * The preferred locale of the user.
  982. * @return Google_Service_AdSenseHost_AssociationSession
  983. */
  984. public function start($productCode, $websiteUrl, $optParams = array())
  985. {
  986. $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl);
  987. $params = array_merge($params, $optParams);
  988. return $this->call('start', array($params), "Google_Service_AdSenseHost_AssociationSession");
  989. }
  990. /**
  991. * Verify an association session after the association callback returns from
  992. * AdSense signup. (associationsessions.verify)
  993. *
  994. * @param string $token
  995. * The token returned to the association callback URL.
  996. * @param array $optParams Optional parameters.
  997. * @return Google_Service_AdSenseHost_AssociationSession
  998. */
  999. public function verify($token, $optParams = array())
  1000. {
  1001. $params = array('token' => $token);
  1002. $params = array_merge($params, $optParams);
  1003. return $this->call('verify', array($params), "Google_Service_AdSenseHost_AssociationSession");
  1004. }
  1005. }
  1006. /**
  1007. * The "customchannels" collection of methods.
  1008. * Typical usage is:
  1009. * <code>
  1010. * $adsensehostService = new Google_Service_AdSenseHost(...);
  1011. * $customchannels = $adsensehostService->customchannels;
  1012. * </code>
  1013. */
  1014. class Google_Service_AdSenseHost_Customchannels_Resource extends Google_Service_Resource
  1015. {
  1016. /**
  1017. * Delete a specific custom channel from the host AdSense account.
  1018. * (customchannels.delete)
  1019. *
  1020. * @param string $adClientId
  1021. * Ad client from which to delete the custom channel.
  1022. * @param string $customChannelId
  1023. * Custom channel to delete.
  1024. * @param array $optParams Optional parameters.
  1025. * @return Google_Service_AdSenseHost_CustomChannel
  1026. */
  1027. public function delete($adClientId, $customChannelId, $optParams = array())
  1028. {
  1029. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
  1030. $params = array_merge($params, $optParams);
  1031. return $this->call('delete', array($params), "Google_Service_AdSenseHost_CustomChannel");
  1032. }
  1033. /**
  1034. * Get a specific custom channel from the host AdSense account.
  1035. * (customchannels.get)
  1036. *
  1037. * @param string $adClientId
  1038. * Ad client from which to get the custom channel.
  1039. * @param string $customChannelId
  1040. * Custom channel to get.
  1041. * @param array $optParams Optional parameters.
  1042. * @return Google_Service_AdSenseHost_CustomChannel
  1043. */
  1044. public function get($adClientId, $customChannelId, $optParams = array())
  1045. {
  1046. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
  1047. $params = array_merge($params, $optParams);
  1048. return $this->call('get', array($params), "Google_Service_AdSenseHost_CustomChannel");
  1049. }
  1050. /**
  1051. * Add a new custom channel to the host AdSense account. (customchannels.insert)
  1052. *
  1053. * @param string $adClientId
  1054. * Ad client to which the new custom channel will be added.
  1055. * @param Google_CustomChannel $postBody
  1056. * @param array $optParams Optional parameters.
  1057. * @return Google_Service_AdSenseHost_CustomChannel
  1058. */
  1059. public function insert($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
  1060. {
  1061. $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
  1062. $params = array_merge($params, $optParams);
  1063. return $this->call('insert', array($params), "Google_Service_AdSenseHost_CustomChannel");
  1064. }
  1065. /**
  1066. * List all host custom channels in this AdSense account.
  1067. * (customchannels.listCustomchannels)
  1068. *
  1069. * @param string $adClientId
  1070. * Ad client for which to list custom channels.
  1071. * @param array $optParams Optional parameters.
  1072. *
  1073. * @opt_param string pageToken
  1074. * A continuation token, used to page through custom channels. To retrieve the next page, set this
  1075. * parameter to the value of "nextPageToken" from the previous response.
  1076. * @opt_param string maxResults
  1077. * The maximum number of custom channels to include in the response, used for paging.
  1078. * @return Google_Service_AdSenseHost_CustomChannels
  1079. */
  1080. public function listCustomchannels($adClientId, $optParams = array())
  1081. {
  1082. $params = array('adClientId' => $adClientId);
  1083. $params = array_merge($params, $optParams);
  1084. return $this->call('list', array($params), "Google_Service_AdSenseHost_CustomChannels");
  1085. }
  1086. /**
  1087. * Update a custom channel in the host AdSense account. This method supports
  1088. * patch semantics. (customchannels.patch)
  1089. *
  1090. * @param string $adClientId
  1091. * Ad client in which the custom channel will be updated.
  1092. * @param string $customChannelId
  1093. * Custom channel to get.
  1094. * @param Google_CustomChannel $postBody
  1095. * @param array $optParams Optional parameters.
  1096. * @return Google_Service_AdSenseHost_CustomChannel
  1097. */
  1098. public function patch($adClientId, $customChannelId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
  1099. {
  1100. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody);
  1101. $params = array_merge($params, $optParams);
  1102. return $this->call('patch', array($params), "Google_Service_AdSenseHost_CustomChannel");
  1103. }
  1104. /**
  1105. * Update a custom channel in the host AdSense account. (customchannels.update)
  1106. *
  1107. * @param string $adClientId
  1108. * Ad client in which the custom channel will be updated.
  1109. * @param Google_CustomChannel $postBody
  1110. * @param array $optParams Optional parameters.
  1111. * @return Google_Service_AdSenseHost_CustomChannel
  1112. */
  1113. public function update($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
  1114. {
  1115. $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
  1116. $params = array_merge($params, $optParams);
  1117. return $this->call('update', array($params), "Google_Service_AdSenseHost_CustomChannel");
  1118. }
  1119. }
  1120. /**
  1121. * The "reports" collection of methods.
  1122. * Typical usage is:
  1123. * <code>
  1124. * $adsensehostService = new Google_Service_AdSenseHost(...);
  1125. * $reports = $adsensehostService->reports;
  1126. * </code>
  1127. */
  1128. class Google_Service_AdSenseHost_Reports_Resource extends Google_Service_Resource
  1129. {
  1130. /**
  1131. * Generate an AdSense report based on the report request sent in the query
  1132. * parameters. Returns the result as JSON; to retrieve output in CSV format
  1133. * specify "alt=csv" as a query parameter. (reports.generate)
  1134. *
  1135. * @param string $startDate
  1136. * Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
  1137. * @param string $endDate
  1138. * End of the date range to report on in "YYYY-MM-DD" format, inclusive.
  1139. * @param array $optParams Optional parameters.
  1140. *
  1141. * @opt_param string sort
  1142. * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+"
  1143. * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted
  1144. * ascending.
  1145. * @opt_param string locale
  1146. * Optional locale to use for translating report output to a local language. Defaults to "en_US" if
  1147. * not specified.
  1148. * @opt_param string metric
  1149. * Numeric columns to include in the report.
  1150. * @opt_param string maxResults
  1151. * The maximum number of rows of report data to return.
  1152. * @opt_param string filter
  1153. * Filters to be run on the report.
  1154. * @opt_param string startIndex
  1155. * Index of the first row of report data to return.
  1156. * @opt_param string dimension
  1157. * Dimensions to base the report on.
  1158. * @return Google_Service_AdSenseHost_Report
  1159. */
  1160. public function generate($startDate, $endDate, $optParams = array())
  1161. {
  1162. $params = array('startDate' => $startDate, 'endDate' => $endDate);
  1163. $params = array_merge($params, $optParams);
  1164. return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report");
  1165. }
  1166. }
  1167. /**
  1168. * The "urlchannels" collection of methods.
  1169. * Typical usage is:
  1170. * <code>
  1171. * $adsensehostService = new Google_Service_AdSenseHost(...);
  1172. * $urlchannels = $adsensehostService->urlchannels;
  1173. * </code>
  1174. */
  1175. class Google_Service_AdSenseHost_Urlchannels_Resource extends Google_Service_Resource
  1176. {
  1177. /**
  1178. * Delete a URL channel from the host AdSense account. (urlchannels.delete)
  1179. *
  1180. * @param string $adClientId
  1181. * Ad client from which to delete the URL channel.
  1182. * @param string $urlChannelId
  1183. * URL channel to delete.
  1184. * @param array $optParams Optional parameters.
  1185. * @return Google_Service_AdSenseHost_UrlChannel
  1186. */
  1187. public function delete($adClientId, $urlChannelId, $optParams = array())
  1188. {
  1189. $params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId);
  1190. $params = array_merge($params, $optParams);
  1191. return $this->call('delete', array($params), "Google_Service_AdSenseHost_UrlChannel");
  1192. }
  1193. /**
  1194. * Add a new URL channel to the host AdSense account. (urlchannels.insert)
  1195. *
  1196. * @param string $adClientId
  1197. * Ad client to which the new URL channel will be added.
  1198. * @param Google_UrlChannel $postBody
  1199. * @param array $optParams Optional parameters.
  1200. * @return Google_Service_AdSenseHost_UrlChannel
  1201. */
  1202. public function insert($adClientId, Google_Service_AdSenseHost_UrlChannel $postBody, $optParams = array())
  1203. {
  1204. $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
  1205. $params = array_merge($params, $optParams);
  1206. return $this->call('insert', array($params), "Google_Service_AdSenseHost_UrlChannel");
  1207. }
  1208. /**
  1209. * List all host URL channels in the host AdSense account.
  1210. * (urlchannels.listUrlchannels)
  1211. *
  1212. * @param string $adClientId
  1213. * Ad client for which to list URL channels.
  1214. * @param array $optParams Optional parameters.
  1215. *
  1216. * @opt_param string pageToken
  1217. * A continuation token, used to page through URL channels. To retrieve the next page, set this
  1218. * parameter to the value of "nextPageToken" from the previous response.
  1219. * @opt_param string maxResults
  1220. * The maximum number of URL channels to include in the response, used for paging.
  1221. * @return Google_Service_AdSenseHost_UrlChannels
  1222. */
  1223. public function listUrlchannels($adClientId, $optParams = array())
  1224. {
  1225. $params = array('adClientId' => $adClientId);
  1226. $params = array_merge($params, $optParams);
  1227. return $this->call('list', array($params), "Google_Service_AdSenseHost_UrlChannels");
  1228. }
  1229. }
  1230. class Google_Service_AdSenseHost_Account extends Google_Model
  1231. {
  1232. public $id;
  1233. public $kind;
  1234. public $name;
  1235. public $status;
  1236. public function setId($id)
  1237. {
  1238. $this->id = $id;
  1239. }
  1240. public function getId()
  1241. {
  1242. return $this->id;
  1243. }
  1244. public function setKind($kind)
  1245. {
  1246. $this->kind = $kind;
  1247. }
  1248. public function getKind()
  1249. {
  1250. return $this->kind;
  1251. }
  1252. public function setName($name)
  1253. {
  1254. $this->name = $name;
  1255. }
  1256. public function getName()
  1257. {
  1258. return $this->name;
  1259. }
  1260. public function setStatus($status)
  1261. {
  1262. $this->status = $status;
  1263. }
  1264. public function getStatus()
  1265. {
  1266. return $this->status;
  1267. }
  1268. }
  1269. class Google_Service_AdSenseHost_Accounts extends Google_Collection
  1270. {
  1271. public $etag;
  1272. protected $itemsType = 'Google_Service_AdSenseHost_Account';
  1273. protected $itemsDataType = 'array';
  1274. public $kind;
  1275. public function setEtag($etag)
  1276. {
  1277. $this->etag = $etag;
  1278. }
  1279. public function getEtag()
  1280. {
  1281. return $this->etag;
  1282. }
  1283. public function setItems($items)
  1284. {
  1285. $this->items = $items;
  1286. }
  1287. public function getItems()
  1288. {
  1289. return $this->items;
  1290. }
  1291. public function setKind($kind)
  1292. {
  1293. $this->kind = $kind;
  1294. }
  1295. public function getKind()
  1296. {
  1297. return $this->kind;
  1298. }
  1299. }
  1300. class Google_Service_AdSenseHost_AdClient extends Google_Model
  1301. {
  1302. public $arcOptIn;
  1303. public $id;
  1304. public $kind;
  1305. public $productCode;
  1306. public $supportsReporting;
  1307. public function setArcOptIn($arcOptIn)
  1308. {
  1309. $this->arcOptIn = $arcOptIn;
  1310. }
  1311. public function getArcOptIn()
  1312. {
  1313. return $this->arcOptIn;
  1314. }
  1315. public function setId($id)
  1316. {
  1317. $this->id = $id;
  1318. }
  1319. public function getId()
  1320. {
  1321. return $this->id;
  1322. }
  1323. public function setKind($kind)
  1324. {
  1325. $this->kind = $kind;
  1326. }
  1327. public function getKind()
  1328. {
  1329. return $this->kind;
  1330. }
  1331. public function setProductCode($productCode)
  1332. {
  1333. $this->productCode = $productCode;
  1334. }
  1335. public function getProductCode()
  1336. {
  1337. return $this->productCode;
  1338. }
  1339. public function setSupportsReporting($supportsReporting)
  1340. {
  1341. $this->supportsReporting = $supportsReporting;
  1342. }
  1343. public function getSupportsReporting()
  1344. {
  1345. return $this->supportsReporting;
  1346. }
  1347. }
  1348. class Google_Service_AdSenseHost_AdClients extends Google_Collection
  1349. {
  1350. public $etag;
  1351. protected $itemsType = 'Google_Service_AdSenseHost_AdClient';
  1352. protected $itemsDataType = 'array';
  1353. public $kind;
  1354. public $nextPageToken;
  1355. public function setEtag($etag)
  1356. {
  1357. $this->etag = $etag;
  1358. }
  1359. public function getEtag()
  1360. {
  1361. return $this->etag;
  1362. }
  1363. public function setItems($items)
  1364. {
  1365. $this->items = $items;
  1366. }
  1367. public function getItems()
  1368. {
  1369. return $this->items;
  1370. }
  1371. public function setKind($kind)
  1372. {
  1373. $this->kind = $kind;
  1374. }
  1375. public function getKind()
  1376. {
  1377. return $this->kind;
  1378. }
  1379. public function setNextPageToken($nextPageToken)
  1380. {
  1381. $this->nextPageToken = $nextPageToken;
  1382. }
  1383. public function getNextPageToken()
  1384. {
  1385. return $this->nextPageToken;
  1386. }
  1387. }
  1388. class Google_Service_AdSenseHost_AdCode extends Google_Model
  1389. {
  1390. public $adCode;
  1391. public $kind;
  1392. public function setAdCode($adCode)
  1393. {
  1394. $this->adCode = $adCode;
  1395. }
  1396. public function getAdCode()
  1397. {
  1398. return $this->adCode;
  1399. }
  1400. public function setKind($kind)
  1401. {
  1402. $this->kind = $kind;
  1403. }
  1404. public function getKind()
  1405. {
  1406. return $this->kind;
  1407. }
  1408. }
  1409. class Google_Service_AdSenseHost_AdStyle extends Google_Model
  1410. {
  1411. protected $colorsType = 'Google_Service_AdSenseHost_AdStyleColors';
  1412. protected $colorsDataType = '';
  1413. public $corners;
  1414. protected $fontType = 'Google_Service_AdSenseHost_AdStyleFont';
  1415. protected $fontDataType = '';
  1416. public $kind;
  1417. public function setColors(Google_Service_AdSenseHost_AdStyleColors $colors)
  1418. {
  1419. $this->colors = $colors;
  1420. }
  1421. public function getColors()
  1422. {
  1423. return $this->colors;
  1424. }
  1425. public function setCorners($corners)
  1426. {
  1427. $this->corners = $corners;
  1428. }
  1429. public function getCorners()
  1430. {
  1431. return $this->corners;
  1432. }
  1433. public function setFont(Google_Service_AdSenseHost_AdStyleFont $font)
  1434. {
  1435. $this->font = $font;
  1436. }
  1437. public function getFont()
  1438. {
  1439. return $this->font;
  1440. }
  1441. public function setKind($kind)
  1442. {
  1443. $this->kind = $kind;
  1444. }
  1445. public function getKind()
  1446. {
  1447. return $this->kind;
  1448. }
  1449. }
  1450. class Google_Service_AdSenseHost_AdStyleColors extends Google_Model
  1451. {
  1452. public $background;
  1453. public $border;
  1454. public $text;
  1455. public $title;
  1456. public $url;
  1457. public function setBackground($background)
  1458. {
  1459. $this->background = $background;
  1460. }
  1461. public function getBackground()
  1462. {
  1463. return $this->background;
  1464. }
  1465. public function setBorder($border)
  1466. {
  1467. $this->border = $border;
  1468. }
  1469. public function getBorder()
  1470. {
  1471. return $this->border;
  1472. }
  1473. public function setText($text)
  1474. {
  1475. $this->text = $text;
  1476. }
  1477. public function getText()
  1478. {
  1479. return $this->text;
  1480. }
  1481. public function setTitle($title)
  1482. {
  1483. $this->title = $title;
  1484. }
  1485. public function getTitle()
  1486. {
  1487. return $this->title;
  1488. }
  1489. public function setUrl($url)
  1490. {
  1491. $this->url = $url;
  1492. }
  1493. public function getUrl()
  1494. {
  1495. return $this->url;
  1496. }
  1497. }
  1498. class Google_Service_AdSenseHost_AdStyleFont extends Google_Model
  1499. {
  1500. public $family;
  1501. public $size;

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