PageRenderTime 43ms CodeModel.GetById 9ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/google/contrib/Google_AdsensehostService.php

https://bitbucket.org/synergylearning/campusconnect
PHP | 1378 lines | 970 code | 49 blank | 359 comment | 52 complexity | 8b6a5cd3244cf84c6b33e111570d0d7f MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, LGPL-2.1, Apache-2.0, BSD-3-Clause, AGPL-3.0

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

  1. <?php
  2. /*
  3. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  4. * use this file except in compliance with the License. You may obtain a copy of
  5. * the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. * License for the specific language governing permissions and limitations under
  13. * the License.
  14. */
  15. /**
  16. * The "urlchannels" collection of methods.
  17. * Typical usage is:
  18. * <code>
  19. * $adsensehostService = new Google_AdsensehostService(...);
  20. * $urlchannels = $adsensehostService->urlchannels;
  21. * </code>
  22. */
  23. class Google_UrlchannelsServiceResource extends Google_ServiceResource {
  24. /**
  25. * Add a new URL channel to the host AdSense account. (urlchannels.insert)
  26. *
  27. * @param string $adClientId Ad client to which the new URL channel will be added.
  28. * @param Google_UrlChannel $postBody
  29. * @param array $optParams Optional parameters.
  30. * @return Google_UrlChannel
  31. */
  32. public function insert($adClientId, Google_UrlChannel $postBody, $optParams = array()) {
  33. $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
  34. $params = array_merge($params, $optParams);
  35. $data = $this->__call('insert', array($params));
  36. if ($this->useObjects()) {
  37. return new Google_UrlChannel($data);
  38. } else {
  39. return $data;
  40. }
  41. }
  42. /**
  43. * List all host URL channels in the host AdSense account. (urlchannels.list)
  44. *
  45. * @param string $adClientId Ad client for which to list URL channels.
  46. * @param array $optParams Optional parameters.
  47. *
  48. * @opt_param string pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
  49. * @opt_param string maxResults The maximum number of URL channels to include in the response, used for paging.
  50. * @return Google_UrlChannels
  51. */
  52. public function listUrlchannels($adClientId, $optParams = array()) {
  53. $params = array('adClientId' => $adClientId);
  54. $params = array_merge($params, $optParams);
  55. $data = $this->__call('list', array($params));
  56. if ($this->useObjects()) {
  57. return new Google_UrlChannels($data);
  58. } else {
  59. return $data;
  60. }
  61. }
  62. /**
  63. * Delete a URL channel from the host AdSense account. (urlchannels.delete)
  64. *
  65. * @param string $adClientId Ad client from which to delete the URL channel.
  66. * @param string $urlChannelId URL channel to delete.
  67. * @param array $optParams Optional parameters.
  68. * @return Google_UrlChannel
  69. */
  70. public function delete($adClientId, $urlChannelId, $optParams = array()) {
  71. $params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId);
  72. $params = array_merge($params, $optParams);
  73. $data = $this->__call('delete', array($params));
  74. if ($this->useObjects()) {
  75. return new Google_UrlChannel($data);
  76. } else {
  77. return $data;
  78. }
  79. }
  80. }
  81. /**
  82. * The "adclients" collection of methods.
  83. * Typical usage is:
  84. * <code>
  85. * $adsensehostService = new Google_AdsensehostService(...);
  86. * $adclients = $adsensehostService->adclients;
  87. * </code>
  88. */
  89. class Google_AdclientsServiceResource extends Google_ServiceResource {
  90. /**
  91. * List all host ad clients in this AdSense account. (adclients.list)
  92. *
  93. * @param array $optParams Optional parameters.
  94. *
  95. * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
  96. * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
  97. * @return Google_AdClients
  98. */
  99. public function listAdclients($optParams = array()) {
  100. $params = array();
  101. $params = array_merge($params, $optParams);
  102. $data = $this->__call('list', array($params));
  103. if ($this->useObjects()) {
  104. return new Google_AdClients($data);
  105. } else {
  106. return $data;
  107. }
  108. }
  109. /**
  110. * Get information about one of the ad clients in the Host AdSense account. (adclients.get)
  111. *
  112. * @param string $adClientId Ad client to get.
  113. * @param array $optParams Optional parameters.
  114. * @return Google_AdClient
  115. */
  116. public function get($adClientId, $optParams = array()) {
  117. $params = array('adClientId' => $adClientId);
  118. $params = array_merge($params, $optParams);
  119. $data = $this->__call('get', array($params));
  120. if ($this->useObjects()) {
  121. return new Google_AdClient($data);
  122. } else {
  123. return $data;
  124. }
  125. }
  126. }
  127. /**
  128. * The "associationsessions" collection of methods.
  129. * Typical usage is:
  130. * <code>
  131. * $adsensehostService = new Google_AdsensehostService(...);
  132. * $associationsessions = $adsensehostService->associationsessions;
  133. * </code>
  134. */
  135. class Google_AssociationsessionsServiceResource extends Google_ServiceResource {
  136. /**
  137. * Create an association session for initiating an association with an AdSense user.
  138. * (associationsessions.start)
  139. *
  140. * @param string $productCode Products to associate with the user.
  141. * @param string $websiteUrl The URL of the user's hosted website.
  142. * @param array $optParams Optional parameters.
  143. *
  144. * @opt_param string websiteLocale The locale of the user's hosted website.
  145. * @opt_param string userLocale The preferred locale of the user.
  146. * @return Google_AssociationSession
  147. */
  148. public function start($productCode, $websiteUrl, $optParams = array()) {
  149. $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl);
  150. $params = array_merge($params, $optParams);
  151. $data = $this->__call('start', array($params));
  152. if ($this->useObjects()) {
  153. return new Google_AssociationSession($data);
  154. } else {
  155. return $data;
  156. }
  157. }
  158. /**
  159. * Verify an association session after the association callback returns from AdSense signup.
  160. * (associationsessions.verify)
  161. *
  162. * @param string $token The token returned to the association callback URL.
  163. * @param array $optParams Optional parameters.
  164. * @return Google_AssociationSession
  165. */
  166. public function verify($token, $optParams = array()) {
  167. $params = array('token' => $token);
  168. $params = array_merge($params, $optParams);
  169. $data = $this->__call('verify', array($params));
  170. if ($this->useObjects()) {
  171. return new Google_AssociationSession($data);
  172. } else {
  173. return $data;
  174. }
  175. }
  176. }
  177. /**
  178. * The "reports" collection of methods.
  179. * Typical usage is:
  180. * <code>
  181. * $adsensehostService = new Google_AdsensehostService(...);
  182. * $reports = $adsensehostService->reports;
  183. * </code>
  184. */
  185. class Google_ReportsServiceResource extends Google_ServiceResource {
  186. /**
  187. * Generate an AdSense report based on the report request sent in the query parameters. Returns the
  188. * result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
  189. * (reports.generate)
  190. *
  191. * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
  192. * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
  193. * @param array $optParams Optional parameters.
  194. *
  195. * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
  196. * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
  197. * @opt_param string metric Numeric columns to include in the report.
  198. * @opt_param string maxResults The maximum number of rows of report data to return.
  199. * @opt_param string filter Filters to be run on the report.
  200. * @opt_param string startIndex Index of the first row of report data to return.
  201. * @opt_param string dimension Dimensions to base the report on.
  202. * @return Google_Report
  203. */
  204. public function generate($endDate, $startDate, $optParams = array()) {
  205. $params = array('endDate' => $endDate, 'startDate' => $startDate);
  206. $params = array_merge($params, $optParams);
  207. $data = $this->__call('generate', array($params));
  208. if ($this->useObjects()) {
  209. return new Google_Report($data);
  210. } else {
  211. return $data;
  212. }
  213. }
  214. }
  215. /**
  216. * The "accounts" collection of methods.
  217. * Typical usage is:
  218. * <code>
  219. * $adsensehostService = new Google_AdsensehostService(...);
  220. * $accounts = $adsensehostService->accounts;
  221. * </code>
  222. */
  223. class Google_AccountsServiceResource extends Google_ServiceResource {
  224. /**
  225. * List hosted accounts associated with this AdSense account by ad client id. (accounts.list)
  226. *
  227. * @param string $filterAdClientId Ad clients to list accounts for.
  228. * @param array $optParams Optional parameters.
  229. * @return Google_Accounts
  230. */
  231. public function listAccounts($filterAdClientId, $optParams = array()) {
  232. $params = array('filterAdClientId' => $filterAdClientId);
  233. $params = array_merge($params, $optParams);
  234. $data = $this->__call('list', array($params));
  235. if ($this->useObjects()) {
  236. return new Google_Accounts($data);
  237. } else {
  238. return $data;
  239. }
  240. }
  241. /**
  242. * Get information about the selected associated AdSense account. (accounts.get)
  243. *
  244. * @param string $accountId Account to get information about.
  245. * @param array $optParams Optional parameters.
  246. * @return Google_Account
  247. */
  248. public function get($accountId, $optParams = array()) {
  249. $params = array('accountId' => $accountId);
  250. $params = array_merge($params, $optParams);
  251. $data = $this->__call('get', array($params));
  252. if ($this->useObjects()) {
  253. return new Google_Account($data);
  254. } else {
  255. return $data;
  256. }
  257. }
  258. }
  259. /**
  260. * The "adunits" collection of methods.
  261. * Typical usage is:
  262. * <code>
  263. * $adsensehostService = new Google_AdsensehostService(...);
  264. * $adunits = $adsensehostService->adunits;
  265. * </code>
  266. */
  267. class Google_AccountsAdunitsServiceResource extends Google_ServiceResource {
  268. /**
  269. * Insert the supplied ad unit into the specified publisher AdSense account. (adunits.insert)
  270. *
  271. * @param string $accountId Account which will contain the ad unit.
  272. * @param string $adClientId Ad client into which to insert the ad unit.
  273. * @param Google_AdUnit $postBody
  274. * @param array $optParams Optional parameters.
  275. * @return Google_AdUnit
  276. */
  277. public function insert($accountId, $adClientId, Google_AdUnit $postBody, $optParams = array()) {
  278. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
  279. $params = array_merge($params, $optParams);
  280. $data = $this->__call('insert', array($params));
  281. if ($this->useObjects()) {
  282. return new Google_AdUnit($data);
  283. } else {
  284. return $data;
  285. }
  286. }
  287. /**
  288. * Get the specified host ad unit in this AdSense account. (adunits.get)
  289. *
  290. * @param string $accountId Account which contains the ad unit.
  291. * @param string $adClientId Ad client for which to get ad unit.
  292. * @param string $adUnitId Ad unit to get.
  293. * @param array $optParams Optional parameters.
  294. * @return Google_AdUnit
  295. */
  296. public function get($accountId, $adClientId, $adUnitId, $optParams = array()) {
  297. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  298. $params = array_merge($params, $optParams);
  299. $data = $this->__call('get', array($params));
  300. if ($this->useObjects()) {
  301. return new Google_AdUnit($data);
  302. } else {
  303. return $data;
  304. }
  305. }
  306. /**
  307. * Get ad code for the specified ad unit, attaching the specified host custom channels.
  308. * (adunits.getAdCode)
  309. *
  310. * @param string $accountId Account which contains the ad client.
  311. * @param string $adClientId Ad client with contains the ad unit.
  312. * @param string $adUnitId Ad unit to get the code for.
  313. * @param array $optParams Optional parameters.
  314. *
  315. * @opt_param string hostCustomChannelId Host custom channel to attach to the ad code.
  316. * @return Google_AdCode
  317. */
  318. public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array()) {
  319. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  320. $params = array_merge($params, $optParams);
  321. $data = $this->__call('getAdCode', array($params));
  322. if ($this->useObjects()) {
  323. return new Google_AdCode($data);
  324. } else {
  325. return $data;
  326. }
  327. }
  328. /**
  329. * List all ad units in the specified publisher's AdSense account. (adunits.list)
  330. *
  331. * @param string $accountId Account which contains the ad client.
  332. * @param string $adClientId Ad client for which to list ad units.
  333. * @param array $optParams Optional parameters.
  334. *
  335. * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
  336. * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
  337. * @opt_param string maxResults The maximum number of ad units to include in the response, used for paging.
  338. * @return Google_AdUnits
  339. */
  340. public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) {
  341. $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
  342. $params = array_merge($params, $optParams);
  343. $data = $this->__call('list', array($params));
  344. if ($this->useObjects()) {
  345. return new Google_AdUnits($data);
  346. } else {
  347. return $data;
  348. }
  349. }
  350. /**
  351. * Update the supplied ad unit in the specified publisher AdSense account. (adunits.update)
  352. *
  353. * @param string $accountId Account which contains the ad client.
  354. * @param string $adClientId Ad client which contains the ad unit.
  355. * @param Google_AdUnit $postBody
  356. * @param array $optParams Optional parameters.
  357. * @return Google_AdUnit
  358. */
  359. public function update($accountId, $adClientId, Google_AdUnit $postBody, $optParams = array()) {
  360. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
  361. $params = array_merge($params, $optParams);
  362. $data = $this->__call('update', array($params));
  363. if ($this->useObjects()) {
  364. return new Google_AdUnit($data);
  365. } else {
  366. return $data;
  367. }
  368. }
  369. /**
  370. * Update the supplied ad unit in the specified publisher AdSense account. This method supports
  371. * patch semantics. (adunits.patch)
  372. *
  373. * @param string $accountId Account which contains the ad client.
  374. * @param string $adClientId Ad client which contains the ad unit.
  375. * @param string $adUnitId Ad unit to get.
  376. * @param Google_AdUnit $postBody
  377. * @param array $optParams Optional parameters.
  378. * @return Google_AdUnit
  379. */
  380. public function patch($accountId, $adClientId, $adUnitId, Google_AdUnit $postBody, $optParams = array()) {
  381. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody);
  382. $params = array_merge($params, $optParams);
  383. $data = $this->__call('patch', array($params));
  384. if ($this->useObjects()) {
  385. return new Google_AdUnit($data);
  386. } else {
  387. return $data;
  388. }
  389. }
  390. /**
  391. * Delete the specified ad unit from the specified publisher AdSense account. (adunits.delete)
  392. *
  393. * @param string $accountId Account which contains the ad unit.
  394. * @param string $adClientId Ad client for which to get ad unit.
  395. * @param string $adUnitId Ad unit to delete.
  396. * @param array $optParams Optional parameters.
  397. * @return Google_AdUnit
  398. */
  399. public function delete($accountId, $adClientId, $adUnitId, $optParams = array()) {
  400. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  401. $params = array_merge($params, $optParams);
  402. $data = $this->__call('delete', array($params));
  403. if ($this->useObjects()) {
  404. return new Google_AdUnit($data);
  405. } else {
  406. return $data;
  407. }
  408. }
  409. }
  410. /**
  411. * The "adclients" collection of methods.
  412. * Typical usage is:
  413. * <code>
  414. * $adsensehostService = new Google_AdsensehostService(...);
  415. * $adclients = $adsensehostService->adclients;
  416. * </code>
  417. */
  418. class Google_AccountsAdclientsServiceResource extends Google_ServiceResource {
  419. /**
  420. * List all hosted ad clients in the specified hosted account. (adclients.list)
  421. *
  422. * @param string $accountId Account for which to list ad clients.
  423. * @param array $optParams Optional parameters.
  424. *
  425. * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
  426. * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
  427. * @return Google_AdClients
  428. */
  429. public function listAccountsAdclients($accountId, $optParams = array()) {
  430. $params = array('accountId' => $accountId);
  431. $params = array_merge($params, $optParams);
  432. $data = $this->__call('list', array($params));
  433. if ($this->useObjects()) {
  434. return new Google_AdClients($data);
  435. } else {
  436. return $data;
  437. }
  438. }
  439. /**
  440. * Get information about one of the ad clients in the specified publisher's AdSense account.
  441. * (adclients.get)
  442. *
  443. * @param string $accountId Account which contains the ad client.
  444. * @param string $adClientId Ad client to get.
  445. * @param array $optParams Optional parameters.
  446. * @return Google_AdClient
  447. */
  448. public function get($accountId, $adClientId, $optParams = array()) {
  449. $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
  450. $params = array_merge($params, $optParams);
  451. $data = $this->__call('get', array($params));
  452. if ($this->useObjects()) {
  453. return new Google_AdClient($data);
  454. } else {
  455. return $data;
  456. }
  457. }
  458. }
  459. /**
  460. * The "reports" collection of methods.
  461. * Typical usage is:
  462. * <code>
  463. * $adsensehostService = new Google_AdsensehostService(...);
  464. * $reports = $adsensehostService->reports;
  465. * </code>
  466. */
  467. class Google_AccountsReportsServiceResource extends Google_ServiceResource {
  468. /**
  469. * Generate an AdSense report based on the report request sent in the query parameters. Returns the
  470. * result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
  471. * (reports.generate)
  472. *
  473. * @param string $accountId Hosted account upon which to report.
  474. * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
  475. * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
  476. * @param array $optParams Optional parameters.
  477. *
  478. * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
  479. * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
  480. * @opt_param string metric Numeric columns to include in the report.
  481. * @opt_param string maxResults The maximum number of rows of report data to return.
  482. * @opt_param string filter Filters to be run on the report.
  483. * @opt_param string startIndex Index of the first row of report data to return.
  484. * @opt_param string dimension Dimensions to base the report on.
  485. * @return Google_Report
  486. */
  487. public function generate($accountId, $startDate, $endDate, $optParams = array()) {
  488. $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
  489. $params = array_merge($params, $optParams);
  490. $data = $this->__call('generate', array($params));
  491. if ($this->useObjects()) {
  492. return new Google_Report($data);
  493. } else {
  494. return $data;
  495. }
  496. }
  497. }
  498. /**
  499. * The "customchannels" collection of methods.
  500. * Typical usage is:
  501. * <code>
  502. * $adsensehostService = new Google_AdsensehostService(...);
  503. * $customchannels = $adsensehostService->customchannels;
  504. * </code>
  505. */
  506. class Google_CustomchannelsServiceResource extends Google_ServiceResource {
  507. /**
  508. * Add a new custom channel to the host AdSense account. (customchannels.insert)
  509. *
  510. * @param string $adClientId Ad client to which the new custom channel will be added.
  511. * @param Google_CustomChannel $postBody
  512. * @param array $optParams Optional parameters.
  513. * @return Google_CustomChannel
  514. */
  515. public function insert($adClientId, Google_CustomChannel $postBody, $optParams = array()) {
  516. $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
  517. $params = array_merge($params, $optParams);
  518. $data = $this->__call('insert', array($params));
  519. if ($this->useObjects()) {
  520. return new Google_CustomChannel($data);
  521. } else {
  522. return $data;
  523. }
  524. }
  525. /**
  526. * Get a specific custom channel from the host AdSense account. (customchannels.get)
  527. *
  528. * @param string $adClientId Ad client from which to get the custom channel.
  529. * @param string $customChannelId Custom channel to get.
  530. * @param array $optParams Optional parameters.
  531. * @return Google_CustomChannel
  532. */
  533. public function get($adClientId, $customChannelId, $optParams = array()) {
  534. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
  535. $params = array_merge($params, $optParams);
  536. $data = $this->__call('get', array($params));
  537. if ($this->useObjects()) {
  538. return new Google_CustomChannel($data);
  539. } else {
  540. return $data;
  541. }
  542. }
  543. /**
  544. * List all host custom channels in this AdSense account. (customchannels.list)
  545. *
  546. * @param string $adClientId Ad client for which to list custom channels.
  547. * @param array $optParams Optional parameters.
  548. *
  549. * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
  550. * @opt_param string maxResults The maximum number of custom channels to include in the response, used for paging.
  551. * @return Google_CustomChannels
  552. */
  553. public function listCustomchannels($adClientId, $optParams = array()) {
  554. $params = array('adClientId' => $adClientId);
  555. $params = array_merge($params, $optParams);
  556. $data = $this->__call('list', array($params));
  557. if ($this->useObjects()) {
  558. return new Google_CustomChannels($data);
  559. } else {
  560. return $data;
  561. }
  562. }
  563. /**
  564. * Update a custom channel in the host AdSense account. (customchannels.update)
  565. *
  566. * @param string $adClientId Ad client in which the custom channel will be updated.
  567. * @param Google_CustomChannel $postBody
  568. * @param array $optParams Optional parameters.
  569. * @return Google_CustomChannel
  570. */
  571. public function update($adClientId, Google_CustomChannel $postBody, $optParams = array()) {
  572. $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
  573. $params = array_merge($params, $optParams);
  574. $data = $this->__call('update', array($params));
  575. if ($this->useObjects()) {
  576. return new Google_CustomChannel($data);
  577. } else {
  578. return $data;
  579. }
  580. }
  581. /**
  582. * Update a custom channel in the host AdSense account. This method supports patch semantics.
  583. * (customchannels.patch)
  584. *
  585. * @param string $adClientId Ad client in which the custom channel will be updated.
  586. * @param string $customChannelId Custom channel to get.
  587. * @param Google_CustomChannel $postBody
  588. * @param array $optParams Optional parameters.
  589. * @return Google_CustomChannel
  590. */
  591. public function patch($adClientId, $customChannelId, Google_CustomChannel $postBody, $optParams = array()) {
  592. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody);
  593. $params = array_merge($params, $optParams);
  594. $data = $this->__call('patch', array($params));
  595. if ($this->useObjects()) {
  596. return new Google_CustomChannel($data);
  597. } else {
  598. return $data;
  599. }
  600. }
  601. /**
  602. * Delete a specific custom channel from the host AdSense account. (customchannels.delete)
  603. *
  604. * @param string $adClientId Ad client from which to delete the custom channel.
  605. * @param string $customChannelId Custom channel to delete.
  606. * @param array $optParams Optional parameters.
  607. * @return Google_CustomChannel
  608. */
  609. public function delete($adClientId, $customChannelId, $optParams = array()) {
  610. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
  611. $params = array_merge($params, $optParams);
  612. $data = $this->__call('delete', array($params));
  613. if ($this->useObjects()) {
  614. return new Google_CustomChannel($data);
  615. } else {
  616. return $data;
  617. }
  618. }
  619. }
  620. /**
  621. * Service definition for Google_Adsensehost (v4.1).
  622. *
  623. * <p>
  624. * Gives AdSense Hosts access to report generation, ad code generation, and publisher management capabilities.
  625. * </p>
  626. *
  627. * <p>
  628. * For more information about this service, see the
  629. * <a href="https://developers.google.com/adsense/host/" target="_blank">API Documentation</a>
  630. * </p>
  631. *
  632. * @author Google, Inc.
  633. */
  634. class Google_AdsensehostService extends Google_Service {
  635. public $urlchannels;
  636. public $adclients;
  637. public $associationsessions;
  638. public $reports;
  639. public $accounts;
  640. public $accounts_adunits;
  641. public $accounts_adclients;
  642. public $accounts_reports;
  643. public $customchannels;
  644. /**
  645. * Constructs the internal representation of the Adsensehost service.
  646. *
  647. * @param Google_Client $client
  648. */
  649. public function __construct(Google_Client $client) {
  650. $this->servicePath = 'adsensehost/v4.1/';
  651. $this->version = 'v4.1';
  652. $this->serviceName = 'adsensehost';
  653. $client->addService($this->serviceName, $this->version);
  654. $this->urlchannels = new Google_UrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "UrlChannel"}, "response": {"$ref": "UrlChannel"}, "httpMethod": "POST", "path": "adclients/{adClientId}/urlchannels", "id": "adsensehost.urlchannels.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}}, "id": "adsensehost.urlchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/urlchannels", "response": {"$ref": "UrlChannels"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "urlChannelId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.urlchannels.delete", "httpMethod": "DELETE", "path": "adclients/{adClientId}/urlchannels/{urlChannelId}", "response": {"$ref": "UrlChannel"}}}}', true));
  655. $this->adclients = new Google_AdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}}, "response": {"$ref": "AdClients"}, "httpMethod": "GET", "path": "adclients", "id": "adsensehost.adclients.list"}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.adclients.get", "httpMethod": "GET", "path": "adclients/{adClientId}", "response": {"$ref": "AdClient"}}}}', true));
  656. $this->associationsessions = new Google_AssociationsessionsServiceResource($this, $this->serviceName, 'associationsessions', json_decode('{"methods": {"start": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"websiteLocale": {"type": "string", "location": "query"}, "productCode": {"repeated": true, "required": true, "type": "string", "location": "query", "enum": ["AFC", "AFF", "AFMC", "AFS"]}, "userLocale": {"type": "string", "location": "query"}, "websiteUrl": {"required": true, "type": "string", "location": "query"}}, "id": "adsensehost.associationsessions.start", "httpMethod": "GET", "path": "associationsessions/start", "response": {"$ref": "AssociationSession"}}, "verify": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"token": {"required": true, "type": "string", "location": "query"}}, "id": "adsensehost.associationsessions.verify", "httpMethod": "GET", "path": "associationsessions/verify", "response": {"$ref": "AssociationSession"}}}}', true));
  657. $this->reports = new Google_ReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"sort": {"repeated": true, "type": "string", "location": "query"}, "startDate": {"required": true, "type": "string", "location": "query"}, "endDate": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "metric": {"repeated": true, "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "50000", "format": "uint32"}, "filter": {"repeated": true, "type": "string", "location": "query"}, "startIndex": {"location": "query", "minimum": "0", "type": "integer", "maximum": "5000", "format": "uint32"}, "dimension": {"repeated": true, "type": "string", "location": "query"}}, "id": "adsensehost.reports.generate", "httpMethod": "GET", "path": "reports", "response": {"$ref": "Report"}}}}', true));
  658. $this->accounts = new Google_AccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"filterAdClientId": {"repeated": true, "required": true, "type": "string", "location": "query"}}, "id": "adsensehost.accounts.list", "httpMethod": "GET", "path": "accounts", "response": {"$ref": "Accounts"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.get", "httpMethod": "GET", "path": "accounts/{accountId}", "response": {"$ref": "Account"}}}}', true));
  659. $this->accounts_adunits = new Google_AccountsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "httpMethod": "POST", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "id": "adsensehost.accounts.adunits.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adunits.get", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "response": {"$ref": "AdUnit"}}, "getAdCode": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "hostCustomChannelId": {"repeated": true, "type": "string", "location": "query"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adunits.getAdCode", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode", "response": {"$ref": "AdCode"}}, "list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adunits.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "response": {"$ref": "AdUnits"}}, "update": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "httpMethod": "PUT", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "id": "adsensehost.accounts.adunits.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "httpMethod": "PATCH", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "id": "adsensehost.accounts.adunits.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adunits.delete", "httpMethod": "DELETE", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "response": {"$ref": "AdUnit"}}}}', true));
  660. $this->accounts_adclients = new Google_AccountsAdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adclients.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients", "response": {"$ref": "AdClients"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adclients.get", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}", "response": {"$ref": "AdClient"}}}}', true));
  661. $this->accounts_reports = new Google_AccountsReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"sort": {"repeated": true, "type": "string", "location": "query"}, "startDate": {"required": true, "type": "string", "location": "query"}, "endDate": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "metric": {"repeated": true, "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "50000", "format": "uint32"}, "filter": {"repeated": true, "type": "string", "location": "query"}, "startIndex": {"location": "query", "minimum": "0", "type": "integer", "maximum": "5000", "format": "uint32"}, "dimension": {"repeated": true, "type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.reports.generate", "httpMethod": "GET", "path": "accounts/{accountId}/reports", "response": {"$ref": "Report"}}}}', true));
  662. $this->customchannels = new Google_CustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "httpMethod": "POST", "path": "adclients/{adClientId}/customchannels", "id": "adsensehost.customchannels.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.customchannels.get", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "response": {"$ref": "CustomChannel"}}, "list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}}, "id": "adsensehost.customchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels", "response": {"$ref": "CustomChannels"}}, "update": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "httpMethod": "PUT", "path": "adclients/{adClientId}/customchannels", "id": "adsensehost.customchannels.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "httpMethod": "PATCH", "path": "adclients/{adClientId}/customchannels", "id": "adsensehost.customchannels.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.customchannels.delete", "httpMethod": "DELETE", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "response": {"$ref": "CustomChannel"}}}}', true));
  663. }
  664. }
  665. class Google_Account extends Google_Model {
  666. public $status;
  667. public $kind;
  668. public $id;
  669. public $name;
  670. public function setStatus($status) {
  671. $this->status = $status;
  672. }
  673. public function getStatus() {
  674. return $this->status;
  675. }
  676. public function setKind($kind) {
  677. $this->kind = $kind;
  678. }
  679. public function getKind() {
  680. return $this->kind;
  681. }
  682. public function setId($id) {
  683. $this->id = $id;
  684. }
  685. public function getId() {
  686. return $this->id;
  687. }
  688. public function setName($name) {
  689. $this->name = $name;
  690. }
  691. public function getName() {
  692. return $this->name;
  693. }
  694. }
  695. class Google_Accounts extends Google_Model {
  696. protected $__itemsType = 'Google_Account';
  697. protected $__itemsDataType = 'array';
  698. public $items;
  699. public $kind;
  700. public $etag;
  701. public function setItems($items) {
  702. $this->assertIsArray($items, 'Google_Account', __METHOD__);
  703. $this->items = $items;
  704. }
  705. public function getItems() {
  706. return $this->items;
  707. }
  708. public function setKind($kind) {
  709. $this->kind = $kind;
  710. }
  711. public function getKind() {
  712. return $this->kind;
  713. }
  714. public function setEtag($etag) {
  715. $this->etag = $etag;
  716. }
  717. public function getEtag() {
  718. return $this->etag;
  719. }
  720. }
  721. class Google_AdClient extends Google_Model {
  722. public $productCode;
  723. public $kind;
  724. public $id;
  725. public $arcOptIn;
  726. public $supportsReporting;
  727. public function setProductCode($productCode) {
  728. $this->productCode = $productCode;
  729. }
  730. public function getProductCode() {
  731. return $this->productCode;
  732. }
  733. public function setKind($kind) {
  734. $this->kind = $kind;
  735. }
  736. public function getKind() {
  737. return $this->kind;
  738. }
  739. public function setId($id) {
  740. $this->id = $id;
  741. }
  742. public function getId() {
  743. return $this->id;
  744. }
  745. public function setArcOptIn($arcOptIn) {
  746. $this->arcOptIn = $arcOptIn;
  747. }
  748. public function getArcOptIn() {
  749. return $this->arcOptIn;
  750. }
  751. public function setSupportsReporting($supportsReporting) {
  752. $this->supportsReporting = $supportsReporting;
  753. }
  754. public function getSupportsReporting() {
  755. return $this->supportsReporting;
  756. }
  757. }
  758. class Google_AdClients extends Google_Model {
  759. public $nextPageToken;
  760. protected $__itemsType = 'Google_AdClient';
  761. protected $__itemsDataType = 'array';
  762. public $items;
  763. public $kind;
  764. public $etag;
  765. public function setNextPageToken($nextPageToken) {
  766. $this->nextPageToken = $nextPageToken;
  767. }
  768. public function getNextPageToken() {
  769. return $this->nextPageToken;
  770. }
  771. public function setItems($items) {
  772. $this->assertIsArray($items, 'Google_AdClient', __METHOD__);
  773. $this->items = $items;
  774. }
  775. public function getItems() {
  776. return $this->items;
  777. }
  778. public function setKind($kind) {
  779. $this->kind = $kind;
  780. }
  781. public function getKind() {
  782. return $this->kind;
  783. }
  784. public function setEtag($etag) {
  785. $this->etag = $etag;
  786. }
  787. public function getEtag() {
  788. return $this->etag;
  789. }
  790. }
  791. class Google_AdCode extends Google_Model {
  792. public $adCode;
  793. public $kind;
  794. public function setAdCode($adCode) {
  795. $this->adCode = $adCode;
  796. }
  797. public function getAdCode() {
  798. return $this->adCode;
  799. }
  800. public function setKind($kind) {
  801. $this->kind = $kind;
  802. }
  803. public function getKind() {
  804. return $this->kind;
  805. }
  806. }
  807. class Google_AdStyle extends Google_Model {
  808. public $corners;
  809. protected $__colorsType = 'Google_AdStyleColors';
  810. protected $__colorsDataType = '';
  811. public $colors;
  812. protected $__fontType = 'Google_AdStyleFont';
  813. protected $__fontDataType = '';
  814. public $font;
  815. public $kind;
  816. public function setCorners($corners) {
  817. $this->corners = $corners;
  818. }
  819. public function getCorners() {
  820. return $this->corners;
  821. }
  822. public function setColors(Google_AdStyleColors $colors) {
  823. $this->colors = $colors;
  824. }
  825. public function getColors() {
  826. return $this->colors;
  827. }
  828. public function setFont(Google_AdStyleFont $font) {
  829. $this->font = $font;
  830. }
  831. public function getFont() {
  832. return $this->font;
  833. }
  834. public function setKind($kind) {
  835. $this->kind = $kind;
  836. }
  837. public function getKind() {
  838. return $this->kind;
  839. }
  840. }
  841. class Google_AdStyleColors extends Google_Model {
  842. public $url;
  843. public $text;
  844. public $border;
  845. public $background;
  846. public $title;
  847. public function setUrl($url) {
  848. $this->url = $url;
  849. }
  850. public function getUrl() {
  851. return $this->url;
  852. }
  853. public function setText($text) {
  854. $this->text = $text;
  855. }
  856. public function getText() {
  857. return $this->text;
  858. }
  859. public function setBorder($border) {
  860. $this->border = $border;
  861. }
  862. public function getBorder() {
  863. return $this->border;
  864. }
  865. public function setBackground($background) {
  866. $this->background = $background;
  867. }
  868. public function getBackground() {
  869. return $this->background;
  870. }
  871. public function setTitle($title) {
  872. $this->title = $title;
  873. }
  874. public function getTitle() {
  875. return $this->title;
  876. }
  877. }
  878. class Google_AdStyleFont extends Google_Model {
  879. public $family;
  880. public $size;
  881. public function setFamily($family) {
  882. $this->family = $family;
  883. }
  884. public function getFamily() {
  885. return $this->family;
  886. }
  887. public function setSize($size) {
  888. $this->size = $size;
  889. }
  890. public function getSize() {
  891. return $this->size;
  892. }
  893. }
  894. class Google_AdUnit extends Google_Model {
  895. public $status;
  896. public $kind;
  897. public $code;
  898. public $name;
  899. protected $__contentAdsSettingsType = 'Google_AdUnitContentAdsSettings';
  900. protected $__contentAdsSettingsDataType = '';
  901. public $contentAdsSettings;
  902. public $id;
  903. protected $__mobileContentAdsSettingsType = 'Google_AdUnitMobileContentAdsSettings';
  904. protected $__mobileContentAdsSettingsDataType = '';
  905. public $mobileContentAdsSettings;
  906. protected $__customStyleType = 'Google_AdStyle';
  907. protected $__customStyleDataType = '';
  908. public $customStyle;
  909. public function setStatus($status) {
  910. $this->status = $status;
  911. }
  912. public function getStatus() {
  913. return $this->status;
  914. }
  915. public function setKind($kind) {
  916. $this->kind = $kind;
  917. }
  918. public function getKind() {
  919. return $this->kind;
  920. }
  921. public function setCode($code) {
  922. $this->code = $code;
  923. }
  924. public function getCode() {
  925. return $this->code;
  926. }
  927. public function setName($name) {
  928. $this->name = $name;
  929. }
  930. public function getName() {
  931. return $this->name;
  932. }
  933. public function setContentAdsSettings(Google_AdUnitContentAdsSettings $contentAdsSettings) {
  934. $this->contentAdsSettings = $contentAdsSettings;
  935. }
  936. public function getContentAdsSettings() {
  937. return $this->contentAdsSettings;
  938. }
  939. public function setId($id) {
  940. $this->id = $id;
  941. }
  942. public function getId() {
  943. return $this->id;
  944. }
  945. public function setMobileContentAdsSettings(Google_AdUnitMobileContentAdsSettings $mobileContentAdsSettings) {
  946. $this->mobileContentAdsSettings = $mobileContentAdsSettings;
  947. }
  948. public function getMobileContentAdsSettings() {
  949. return $this->mobileContentAdsSettings;
  950. }
  951. public function setCustomStyle(Google_AdStyle $customStyle) {
  952. $this->customStyle = $customStyle;
  953. }
  954. public function getCustomStyle() {
  955. return $this->customStyle;
  956. }
  957. }
  958. class Google_AdUnitContentAdsSettings extends Google_Model {
  959. public $type;
  960. protected $__backupOptionType = 'Google_AdUnitContentAdsSettingsBackupOption';
  961. protected $__backupOptionDataType = '';
  962. public $backupOption;
  963. public $size;
  964. public function setType($type) {
  965. $this->type = $type;
  966. }
  967. public function getType() {
  968. return $this->type;
  969. }
  970. public function setBackupOption(Google_AdUnitContentAdsSettingsBackupOption $backupOption) {
  971. $this->backupOption = $backupOption;
  972. }
  973. public function getBackupOption() {
  974. return $this->backupOption;
  975. }
  976. public function setSize($size) {
  977. $this->size = $size;
  978. }
  979. public function getSize() {
  980. return $this->size;
  981. }
  982. }
  983. class Google_AdUnitContentAdsSettingsBackupOption extends Google_Model {
  984. public $color;
  985. public $url;
  986. public $type;
  987. public function setColor($color) {
  988. $this->color = $color;
  989. }
  990. public function getColor() {
  991. return $this->color;
  992. }
  993. public function setUrl($url) {
  994. $this->url = $url;
  995. }
  996. public function getUrl() {
  997. return $this->url;
  998. }
  999. public function setType($type) {
  1000. $this->type = $type;
  1001. }
  1002. public function getType() {
  1003. return $this->type;
  1004. }
  1005. }
  1006. class Google_AdUnitMobileContentAdsSettings extends Google_Model {
  1007. public $scriptingLanguage;
  1008. public $type;
  1009. public $markupLanguage;
  1010. public $size;
  1011. public function setScriptingLanguage($scriptingLanguage) {
  1012. $this->scriptingLanguage = $scriptingLanguage;
  1013. }
  1014. public function getScriptingLanguage() {
  1015. return $this->scriptingLanguage;
  1016. }
  1017. public function setType($type) {
  1018. $this->type = $type;
  1019. }
  1020. public function getType() {
  1021. return $this->type;
  1022. }
  1023. public function setMarkupLanguage($markupLanguage) {
  1024. $this->markupLanguage = $markupLanguage;
  1025. }
  1026. public function getMarkupLanguage() {
  1027. return $this->markupLanguage;
  1028. }
  1029. public function setSize($size) {
  1030. $this->size = $size;
  1031. }
  1032. public function getSize() {
  1033. return $this->size;
  1034. }
  1035. }
  1036. class Google_AdUnits extends Google_Model {
  1037. public $nextPageToken;
  1038. protected $__itemsType = 'Google_AdUnit';
  1039. protected $__itemsDataType = 'array';
  1040. public $items;
  1041. public $kind;
  1042. public $etag;
  1043. public function setNextPageToken($nextPageToken) {
  1044. $this->nextPageToken = $nextPageToken;
  1045. }
  1046. public function getNextPageToken() {
  1047. return $this->nextPageToken;
  1048. }
  1049. public function setItems($items) {
  1050. $this->assertIsArray($items, 'Google_AdUnit',

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