PageRenderTime 49ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/Lib/google-api-php-client/contrib/Google_AdsenseService.php

https://bitbucket.org/addictionworldwide/google-bundle-for-symfony2
PHP | 1140 lines | 703 code | 58 blank | 379 comment | 40 complexity | 46a03ecf85100740f30d284a07eb54eb MD5 | raw file
Possible License(s): Apache-2.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. * $adsenseService = new Google_AdsenseService(...);
  20. * $urlchannels = $adsenseService->urlchannels;
  21. * </code>
  22. */
  23. class Google_UrlchannelsServiceResource extends Google_ServiceResource {
  24. /**
  25. * List all URL channels in the specified ad client for this AdSense account. (urlchannels.list)
  26. *
  27. * @param string $adClientId Ad client for which to list URL channels.
  28. * @param array $optParams Optional parameters.
  29. *
  30. * @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.
  31. * @opt_param int maxResults The maximum number of URL channels to include in the response, used for paging.
  32. * @return Google_UrlChannels
  33. */
  34. public function listUrlchannels($adClientId, $optParams = array()) {
  35. $params = array('adClientId' => $adClientId);
  36. $params = array_merge($params, $optParams);
  37. $data = $this->__call('list', array($params));
  38. if ($this->useObjects()) {
  39. return new Google_UrlChannels($data);
  40. } else {
  41. return $data;
  42. }
  43. }
  44. }
  45. /**
  46. * The "adunits" collection of methods.
  47. * Typical usage is:
  48. * <code>
  49. * $adsenseService = new Google_AdsenseService(...);
  50. * $adunits = $adsenseService->adunits;
  51. * </code>
  52. */
  53. class Google_AdunitsServiceResource extends Google_ServiceResource {
  54. /**
  55. * List all ad units in the specified ad client for this AdSense account. (adunits.list)
  56. *
  57. * @param string $adClientId Ad client for which to list ad units.
  58. * @param array $optParams Optional parameters.
  59. *
  60. * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
  61. * @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.
  62. * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
  63. * @return Google_AdUnits
  64. */
  65. public function listAdunits($adClientId, $optParams = array()) {
  66. $params = array('adClientId' => $adClientId);
  67. $params = array_merge($params, $optParams);
  68. $data = $this->__call('list', array($params));
  69. if ($this->useObjects()) {
  70. return new Google_AdUnits($data);
  71. } else {
  72. return $data;
  73. }
  74. }
  75. /**
  76. * Gets the specified ad unit in the specified ad client. (adunits.get)
  77. *
  78. * @param string $adClientId Ad client for which to get the ad unit.
  79. * @param string $adUnitId Ad unit to retrieve.
  80. * @param array $optParams Optional parameters.
  81. * @return Google_AdUnit
  82. */
  83. public function get($adClientId, $adUnitId, $optParams = array()) {
  84. $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  85. $params = array_merge($params, $optParams);
  86. $data = $this->__call('get', array($params));
  87. if ($this->useObjects()) {
  88. return new Google_AdUnit($data);
  89. } else {
  90. return $data;
  91. }
  92. }
  93. }
  94. /**
  95. * The "customchannels" collection of methods.
  96. * Typical usage is:
  97. * <code>
  98. * $adsenseService = new Google_AdsenseService(...);
  99. * $customchannels = $adsenseService->customchannels;
  100. * </code>
  101. */
  102. class Google_AdunitsCustomchannelsServiceResource extends Google_ServiceResource {
  103. /**
  104. * List all custom channels which the specified ad unit belongs to. (customchannels.list)
  105. *
  106. * @param string $adClientId Ad client which contains the ad unit.
  107. * @param string $adUnitId Ad unit for which to list custom channels.
  108. * @param array $optParams Optional parameters.
  109. *
  110. * @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.
  111. * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
  112. * @return Google_CustomChannels
  113. */
  114. public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) {
  115. $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  116. $params = array_merge($params, $optParams);
  117. $data = $this->__call('list', array($params));
  118. if ($this->useObjects()) {
  119. return new Google_CustomChannels($data);
  120. } else {
  121. return $data;
  122. }
  123. }
  124. }
  125. /**
  126. * The "adclients" collection of methods.
  127. * Typical usage is:
  128. * <code>
  129. * $adsenseService = new Google_AdsenseService(...);
  130. * $adclients = $adsenseService->adclients;
  131. * </code>
  132. */
  133. class Google_AdclientsServiceResource extends Google_ServiceResource {
  134. /**
  135. * List all ad clients in this AdSense account. (adclients.list)
  136. *
  137. * @param array $optParams Optional parameters.
  138. *
  139. * @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.
  140. * @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging.
  141. * @return Google_AdClients
  142. */
  143. public function listAdclients($optParams = array()) {
  144. $params = array();
  145. $params = array_merge($params, $optParams);
  146. $data = $this->__call('list', array($params));
  147. if ($this->useObjects()) {
  148. return new Google_AdClients($data);
  149. } else {
  150. return $data;
  151. }
  152. }
  153. }
  154. /**
  155. * The "reports" collection of methods.
  156. * Typical usage is:
  157. * <code>
  158. * $adsenseService = new Google_AdsenseService(...);
  159. * $reports = $adsenseService->reports;
  160. * </code>
  161. */
  162. class Google_ReportsServiceResource extends Google_ServiceResource {
  163. /**
  164. * Generate an AdSense report based on the report request sent in the query parameters. Returns the
  165. * result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
  166. * (reports.generate)
  167. *
  168. * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
  169. * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
  170. * @param array $optParams Optional parameters.
  171. *
  172. * @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.
  173. * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
  174. * @opt_param string metric Numeric columns to include in the report.
  175. * @opt_param int maxResults The maximum number of rows of report data to return.
  176. * @opt_param string filter Filters to be run on the report.
  177. * @opt_param string currency Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
  178. * @opt_param int startIndex Index of the first row of report data to return.
  179. * @opt_param string dimension Dimensions to base the report on.
  180. * @opt_param string accountId Accounts upon which to report.
  181. * @return Google_AdsenseReportsGenerateResponse
  182. */
  183. public function generate($startDate, $endDate, $optParams = array()) {
  184. $params = array('startDate' => $startDate, 'endDate' => $endDate);
  185. $params = array_merge($params, $optParams);
  186. $data = $this->__call('generate', array($params));
  187. if ($this->useObjects()) {
  188. return new Google_AdsenseReportsGenerateResponse($data);
  189. } else {
  190. return $data;
  191. }
  192. }
  193. }
  194. /**
  195. * The "accounts" collection of methods.
  196. * Typical usage is:
  197. * <code>
  198. * $adsenseService = new Google_AdsenseService(...);
  199. * $accounts = $adsenseService->accounts;
  200. * </code>
  201. */
  202. class Google_AccountsServiceResource extends Google_ServiceResource {
  203. /**
  204. * List all accounts available to this AdSense account. (accounts.list)
  205. *
  206. * @param array $optParams Optional parameters.
  207. *
  208. * @opt_param string pageToken A continuation token, used to page through accounts. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
  209. * @opt_param int maxResults The maximum number of accounts to include in the response, used for paging.
  210. * @return Google_Accounts
  211. */
  212. public function listAccounts($optParams = array()) {
  213. $params = array();
  214. $params = array_merge($params, $optParams);
  215. $data = $this->__call('list', array($params));
  216. if ($this->useObjects()) {
  217. return new Google_Accounts($data);
  218. } else {
  219. return $data;
  220. }
  221. }
  222. /**
  223. * Get information about the selected AdSense account. (accounts.get)
  224. *
  225. * @param string $accountId Account to get information about.
  226. * @param array $optParams Optional parameters.
  227. *
  228. * @opt_param bool tree Whether the tree of sub accounts should be returned.
  229. * @return Google_Account
  230. */
  231. public function get($accountId, $optParams = array()) {
  232. $params = array('accountId' => $accountId);
  233. $params = array_merge($params, $optParams);
  234. $data = $this->__call('get', array($params));
  235. if ($this->useObjects()) {
  236. return new Google_Account($data);
  237. } else {
  238. return $data;
  239. }
  240. }
  241. }
  242. /**
  243. * The "urlchannels" collection of methods.
  244. * Typical usage is:
  245. * <code>
  246. * $adsenseService = new Google_AdsenseService(...);
  247. * $urlchannels = $adsenseService->urlchannels;
  248. * </code>
  249. */
  250. class Google_AccountsUrlchannelsServiceResource extends Google_ServiceResource {
  251. /**
  252. * List all URL channels in the specified ad client for the specified account. (urlchannels.list)
  253. *
  254. * @param string $accountId Account to which the ad client belongs.
  255. * @param string $adClientId Ad client for which to list URL channels.
  256. * @param array $optParams Optional parameters.
  257. *
  258. * @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.
  259. * @opt_param int maxResults The maximum number of URL channels to include in the response, used for paging.
  260. * @return Google_UrlChannels
  261. */
  262. public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array()) {
  263. $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
  264. $params = array_merge($params, $optParams);
  265. $data = $this->__call('list', array($params));
  266. if ($this->useObjects()) {
  267. return new Google_UrlChannels($data);
  268. } else {
  269. return $data;
  270. }
  271. }
  272. }
  273. /**
  274. * The "adunits" collection of methods.
  275. * Typical usage is:
  276. * <code>
  277. * $adsenseService = new Google_AdsenseService(...);
  278. * $adunits = $adsenseService->adunits;
  279. * </code>
  280. */
  281. class Google_AccountsAdunitsServiceResource extends Google_ServiceResource {
  282. /**
  283. * List all ad units in the specified ad client for the specified account. (adunits.list)
  284. *
  285. * @param string $accountId Account to which the ad client belongs.
  286. * @param string $adClientId Ad client for which to list ad units.
  287. * @param array $optParams Optional parameters.
  288. *
  289. * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
  290. * @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.
  291. * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
  292. * @return Google_AdUnits
  293. */
  294. public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) {
  295. $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
  296. $params = array_merge($params, $optParams);
  297. $data = $this->__call('list', array($params));
  298. if ($this->useObjects()) {
  299. return new Google_AdUnits($data);
  300. } else {
  301. return $data;
  302. }
  303. }
  304. /**
  305. * Gets the specified ad unit in the specified ad client for the specified account. (adunits.get)
  306. *
  307. * @param string $accountId Account to which the ad client belongs.
  308. * @param string $adClientId Ad client for which to get the ad unit.
  309. * @param string $adUnitId Ad unit to retrieve.
  310. * @param array $optParams Optional parameters.
  311. * @return Google_AdUnit
  312. */
  313. public function get($accountId, $adClientId, $adUnitId, $optParams = array()) {
  314. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  315. $params = array_merge($params, $optParams);
  316. $data = $this->__call('get', array($params));
  317. if ($this->useObjects()) {
  318. return new Google_AdUnit($data);
  319. } else {
  320. return $data;
  321. }
  322. }
  323. }
  324. /**
  325. * The "customchannels" collection of methods.
  326. * Typical usage is:
  327. * <code>
  328. * $adsenseService = new Google_AdsenseService(...);
  329. * $customchannels = $adsenseService->customchannels;
  330. * </code>
  331. */
  332. class Google_AccountsAdunitsCustomchannelsServiceResource extends Google_ServiceResource {
  333. /**
  334. * List all custom channels which the specified ad unit belongs to. (customchannels.list)
  335. *
  336. * @param string $accountId Account to which the ad client belongs.
  337. * @param string $adClientId Ad client which contains the ad unit.
  338. * @param string $adUnitId Ad unit for which to list custom channels.
  339. * @param array $optParams Optional parameters.
  340. *
  341. * @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.
  342. * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
  343. * @return Google_CustomChannels
  344. */
  345. public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array()) {
  346. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
  347. $params = array_merge($params, $optParams);
  348. $data = $this->__call('list', array($params));
  349. if ($this->useObjects()) {
  350. return new Google_CustomChannels($data);
  351. } else {
  352. return $data;
  353. }
  354. }
  355. }
  356. /**
  357. * The "adclients" collection of methods.
  358. * Typical usage is:
  359. * <code>
  360. * $adsenseService = new Google_AdsenseService(...);
  361. * $adclients = $adsenseService->adclients;
  362. * </code>
  363. */
  364. class Google_AccountsAdclientsServiceResource extends Google_ServiceResource {
  365. /**
  366. * List all ad clients in the specified account. (adclients.list)
  367. *
  368. * @param string $accountId Account for which to list ad clients.
  369. * @param array $optParams Optional parameters.
  370. *
  371. * @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.
  372. * @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging.
  373. * @return Google_AdClients
  374. */
  375. public function listAccountsAdclients($accountId, $optParams = array()) {
  376. $params = array('accountId' => $accountId);
  377. $params = array_merge($params, $optParams);
  378. $data = $this->__call('list', array($params));
  379. if ($this->useObjects()) {
  380. return new Google_AdClients($data);
  381. } else {
  382. return $data;
  383. }
  384. }
  385. }
  386. /**
  387. * The "reports" collection of methods.
  388. * Typical usage is:
  389. * <code>
  390. * $adsenseService = new Google_AdsenseService(...);
  391. * $reports = $adsenseService->reports;
  392. * </code>
  393. */
  394. class Google_AccountsReportsServiceResource extends Google_ServiceResource {
  395. /**
  396. * Generate an AdSense report based on the report request sent in the query parameters. Returns the
  397. * result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
  398. * (reports.generate)
  399. *
  400. * @param string $accountId Account upon which to report.
  401. * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
  402. * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
  403. * @param array $optParams Optional parameters.
  404. *
  405. * @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.
  406. * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
  407. * @opt_param string metric Numeric columns to include in the report.
  408. * @opt_param int maxResults The maximum number of rows of report data to return.
  409. * @opt_param string filter Filters to be run on the report.
  410. * @opt_param string currency Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
  411. * @opt_param int startIndex Index of the first row of report data to return.
  412. * @opt_param string dimension Dimensions to base the report on.
  413. * @return Google_AdsenseReportsGenerateResponse
  414. */
  415. public function generate($accountId, $startDate, $endDate, $optParams = array()) {
  416. $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
  417. $params = array_merge($params, $optParams);
  418. $data = $this->__call('generate', array($params));
  419. if ($this->useObjects()) {
  420. return new Google_AdsenseReportsGenerateResponse($data);
  421. } else {
  422. return $data;
  423. }
  424. }
  425. }
  426. /**
  427. * The "customchannels" collection of methods.
  428. * Typical usage is:
  429. * <code>
  430. * $adsenseService = new Google_AdsenseService(...);
  431. * $customchannels = $adsenseService->customchannels;
  432. * </code>
  433. */
  434. class Google_AccountsCustomchannelsServiceResource extends Google_ServiceResource {
  435. /**
  436. * List all custom channels in the specified ad client for the specified account.
  437. * (customchannels.list)
  438. *
  439. * @param string $accountId Account to which the ad client belongs.
  440. * @param string $adClientId Ad client for which to list custom channels.
  441. * @param array $optParams Optional parameters.
  442. *
  443. * @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.
  444. * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
  445. * @return Google_CustomChannels
  446. */
  447. public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) {
  448. $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
  449. $params = array_merge($params, $optParams);
  450. $data = $this->__call('list', array($params));
  451. if ($this->useObjects()) {
  452. return new Google_CustomChannels($data);
  453. } else {
  454. return $data;
  455. }
  456. }
  457. /**
  458. * Get the specified custom channel from the specified ad client for the specified account.
  459. * (customchannels.get)
  460. *
  461. * @param string $accountId Account to which the ad client belongs.
  462. * @param string $adClientId Ad client which contains the custom channel.
  463. * @param string $customChannelId Custom channel to retrieve.
  464. * @param array $optParams Optional parameters.
  465. * @return Google_CustomChannel
  466. */
  467. public function get($accountId, $adClientId, $customChannelId, $optParams = array()) {
  468. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
  469. $params = array_merge($params, $optParams);
  470. $data = $this->__call('get', array($params));
  471. if ($this->useObjects()) {
  472. return new Google_CustomChannel($data);
  473. } else {
  474. return $data;
  475. }
  476. }
  477. }
  478. /**
  479. * The "adunits" collection of methods.
  480. * Typical usage is:
  481. * <code>
  482. * $adsenseService = new Google_AdsenseService(...);
  483. * $adunits = $adsenseService->adunits;
  484. * </code>
  485. */
  486. class Google_AccountsCustomchannelsAdunitsServiceResource extends Google_ServiceResource {
  487. /**
  488. * List all ad units in the specified custom channel. (adunits.list)
  489. *
  490. * @param string $accountId Account to which the ad client belongs.
  491. * @param string $adClientId Ad client which contains the custom channel.
  492. * @param string $customChannelId Custom channel for which to list ad units.
  493. * @param array $optParams Optional parameters.
  494. *
  495. * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
  496. * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
  497. * @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.
  498. * @return Google_AdUnits
  499. */
  500. public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array()) {
  501. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
  502. $params = array_merge($params, $optParams);
  503. $data = $this->__call('list', array($params));
  504. if ($this->useObjects()) {
  505. return new Google_AdUnits($data);
  506. } else {
  507. return $data;
  508. }
  509. }
  510. }
  511. /**
  512. * The "customchannels" collection of methods.
  513. * Typical usage is:
  514. * <code>
  515. * $adsenseService = new Google_AdsenseService(...);
  516. * $customchannels = $adsenseService->customchannels;
  517. * </code>
  518. */
  519. class Google_CustomchannelsServiceResource extends Google_ServiceResource {
  520. /**
  521. * List all custom channels in the specified ad client for this AdSense account.
  522. * (customchannels.list)
  523. *
  524. * @param string $adClientId Ad client for which to list custom channels.
  525. * @param array $optParams Optional parameters.
  526. *
  527. * @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.
  528. * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
  529. * @return Google_CustomChannels
  530. */
  531. public function listCustomchannels($adClientId, $optParams = array()) {
  532. $params = array('adClientId' => $adClientId);
  533. $params = array_merge($params, $optParams);
  534. $data = $this->__call('list', array($params));
  535. if ($this->useObjects()) {
  536. return new Google_CustomChannels($data);
  537. } else {
  538. return $data;
  539. }
  540. }
  541. /**
  542. * Get the specified custom channel from the specified ad client. (customchannels.get)
  543. *
  544. * @param string $adClientId Ad client which contains the custom channel.
  545. * @param string $customChannelId Custom channel to retrieve.
  546. * @param array $optParams Optional parameters.
  547. * @return Google_CustomChannel
  548. */
  549. public function get($adClientId, $customChannelId, $optParams = array()) {
  550. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
  551. $params = array_merge($params, $optParams);
  552. $data = $this->__call('get', array($params));
  553. if ($this->useObjects()) {
  554. return new Google_CustomChannel($data);
  555. } else {
  556. return $data;
  557. }
  558. }
  559. }
  560. /**
  561. * The "adunits" collection of methods.
  562. * Typical usage is:
  563. * <code>
  564. * $adsenseService = new Google_AdsenseService(...);
  565. * $adunits = $adsenseService->adunits;
  566. * </code>
  567. */
  568. class Google_CustomchannelsAdunitsServiceResource extends Google_ServiceResource {
  569. /**
  570. * List all ad units in the specified custom channel. (adunits.list)
  571. *
  572. * @param string $adClientId Ad client which contains the custom channel.
  573. * @param string $customChannelId Custom channel for which to list ad units.
  574. * @param array $optParams Optional parameters.
  575. *
  576. * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
  577. * @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.
  578. * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
  579. * @return Google_AdUnits
  580. */
  581. public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) {
  582. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
  583. $params = array_merge($params, $optParams);
  584. $data = $this->__call('list', array($params));
  585. if ($this->useObjects()) {
  586. return new Google_AdUnits($data);
  587. } else {
  588. return $data;
  589. }
  590. }
  591. }
  592. /**
  593. * Service definition for Google_Adsense (v1.1).
  594. *
  595. * <p>
  596. * Gives AdSense publishers access to their inventory and the ability to generate reports
  597. * </p>
  598. *
  599. * <p>
  600. * For more information about this service, see the
  601. * <a href="https://developers.google.com/adsense/management/" target="_blank">API Documentation</a>
  602. * </p>
  603. *
  604. * @author Google, Inc.
  605. */
  606. class Google_AdsenseService extends Google_Service {
  607. public $urlchannels;
  608. public $adunits;
  609. public $adunits_customchannels;
  610. public $adclients;
  611. public $reports;
  612. public $accounts;
  613. public $accounts_urlchannels;
  614. public $accounts_adunits;
  615. public $accounts_adunits_customchannels;
  616. public $accounts_adclients;
  617. public $accounts_reports;
  618. public $accounts_customchannels;
  619. public $accounts_customchannels_adunits;
  620. public $customchannels;
  621. public $customchannels_adunits;
  622. /**
  623. * Constructs the internal representation of the Adsense service.
  624. *
  625. * @param Google_Client $client
  626. */
  627. public function __construct(Google_Client $client) {
  628. $this->servicePath = 'adsense/v1.1/';
  629. $this->version = 'v1.1';
  630. $this->serviceName = 'adsense';
  631. $client->addService($this->serviceName, $this->version);
  632. $this->urlchannels = new Google_UrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "id": "adsense.urlchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/urlchannels", "response": {"$ref": "UrlChannels"}}}}', true));
  633. $this->adunits = new Google_AdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "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": "int32"}}, "id": "adsense.adunits.list", "httpMethod": "GET", "path": "adclients/{adClientId}/adunits", "response": {"$ref": "AdUnits"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.adunits.get", "httpMethod": "GET", "path": "adclients/{adClientId}/adunits/{adUnitId}", "response": {"$ref": "AdUnit"}}}}', true));
  634. $this->adunits_customchannels = new Google_AdunitsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "adUnitId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.adunits.customchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/adunits/{adUnitId}/customchannels", "response": {"$ref": "CustomChannels"}}}}', true));
  635. $this->adclients = new Google_AdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "response": {"$ref": "AdClients"}, "httpMethod": "GET", "path": "adclients", "id": "adsense.adclients.list"}}}', true));
  636. $this->reports = new Google_ReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "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": "int32"}, "filter": {"repeated": true, "type": "string", "location": "query"}, "currency": {"type": "string", "location": "query"}, "startIndex": {"location": "query", "minimum": "0", "type": "integer", "maximum": "5000", "format": "int32"}, "dimension": {"repeated": true, "type": "string", "location": "query"}, "accountId": {"repeated": true, "type": "string", "location": "query"}}, "id": "adsense.reports.generate", "httpMethod": "GET", "supportsMediaDownload": true, "path": "reports", "response": {"$ref": "AdsenseReportsGenerateResponse"}}}}', true));
  637. $this->accounts = new Google_AccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "response": {"$ref": "Accounts"}, "httpMethod": "GET", "path": "accounts", "id": "adsense.accounts.list"}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"tree": {"type": "boolean", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.get", "httpMethod": "GET", "path": "accounts/{accountId}", "response": {"$ref": "Account"}}}}', true));
  638. $this->accounts_urlchannels = new Google_AccountsUrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.urlchannels.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/urlchannels", "response": {"$ref": "UrlChannels"}}}}', true));
  639. $this->accounts_adunits = new Google_AccountsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "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": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.adunits.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "response": {"$ref": "AdUnits"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.adunits.get", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "response": {"$ref": "AdUnit"}}}}', true));
  640. $this->accounts_adunits_customchannels = new Google_AccountsAdunitsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.adunits.customchannels.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels", "response": {"$ref": "CustomChannels"}}}}', true));
  641. $this->accounts_adclients = new Google_AccountsAdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.adclients.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients", "response": {"$ref": "AdClients"}}}}', true));
  642. $this->accounts_reports = new Google_AccountsReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "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": "int32"}, "filter": {"repeated": true, "type": "string", "location": "query"}, "currency": {"type": "string", "location": "query"}, "startIndex": {"location": "query", "minimum": "0", "type": "integer", "maximum": "5000", "format": "int32"}, "dimension": {"repeated": true, "type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.reports.generate", "httpMethod": "GET", "supportsMediaDownload": true, "path": "accounts/{accountId}/reports", "response": {"$ref": "AdsenseReportsGenerateResponse"}}}}', true));
  643. $this->accounts_customchannels = new Google_AccountsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.customchannels.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels", "response": {"$ref": "CustomChannels"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.customchannels.get", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}", "response": {"$ref": "CustomChannel"}}}}', true));
  644. $this->accounts_customchannels_adunits = new Google_AccountsCustomchannelsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "pageToken": {"type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.customchannels.adunits.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits", "response": {"$ref": "AdUnits"}}}}', true));
  645. $this->customchannels = new Google_CustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "id": "adsense.customchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels", "response": {"$ref": "CustomChannels"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.customchannels.get", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "response": {"$ref": "CustomChannel"}}}}', true));
  646. $this->customchannels_adunits = new Google_CustomchannelsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "id": "adsense.customchannels.adunits.list", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels/{customChannelId}/adunits", "response": {"$ref": "AdUnits"}}}}', true));
  647. }
  648. }
  649. class Google_Account extends Google_Model {
  650. public $kind;
  651. public $id;
  652. protected $__subAccountsType = 'Google_Account';
  653. protected $__subAccountsDataType = 'array';
  654. public $subAccounts;
  655. public $name;
  656. public function setKind($kind) {
  657. $this->kind = $kind;
  658. }
  659. public function getKind() {
  660. return $this->kind;
  661. }
  662. public function setId($id) {
  663. $this->id = $id;
  664. }
  665. public function getId() {
  666. return $this->id;
  667. }
  668. public function setSubAccounts($subAccounts) {
  669. $this->assertIsArray($subAccounts, 'Google_Account', __METHOD__);
  670. $this->subAccounts = $subAccounts;
  671. }
  672. public function getSubAccounts() {
  673. return $this->subAccounts;
  674. }
  675. public function setName($name) {
  676. $this->name = $name;
  677. }
  678. public function getName() {
  679. return $this->name;
  680. }
  681. }
  682. class Google_Accounts extends Google_Model {
  683. public $nextPageToken;
  684. protected $__itemsType = 'Google_Account';
  685. protected $__itemsDataType = 'array';
  686. public $items;
  687. public $kind;
  688. public $etag;
  689. public function setNextPageToken($nextPageToken) {
  690. $this->nextPageToken = $nextPageToken;
  691. }
  692. public function getNextPageToken() {
  693. return $this->nextPageToken;
  694. }
  695. public function setItems($items) {
  696. $this->assertIsArray($items, 'Google_Account', __METHOD__);
  697. $this->items = $items;
  698. }
  699. public function getItems() {
  700. return $this->items;
  701. }
  702. public function setKind($kind) {
  703. $this->kind = $kind;
  704. }
  705. public function getKind() {
  706. return $this->kind;
  707. }
  708. public function setEtag($etag) {
  709. $this->etag = $etag;
  710. }
  711. public function getEtag() {
  712. return $this->etag;
  713. }
  714. }
  715. class Google_AdClient extends Google_Model {
  716. public $productCode;
  717. public $kind;
  718. public $id;
  719. public $supportsReporting;
  720. public function setProductCode($productCode) {
  721. $this->productCode = $productCode;
  722. }
  723. public function getProductCode() {
  724. return $this->productCode;
  725. }
  726. public function setKind($kind) {
  727. $this->kind = $kind;
  728. }
  729. public function getKind() {
  730. return $this->kind;
  731. }
  732. public function setId($id) {
  733. $this->id = $id;
  734. }
  735. public function getId() {
  736. return $this->id;
  737. }
  738. public function setSupportsReporting($supportsReporting) {
  739. $this->supportsReporting = $supportsReporting;
  740. }
  741. public function getSupportsReporting() {
  742. return $this->supportsReporting;
  743. }
  744. }
  745. class Google_AdClients extends Google_Model {
  746. public $nextPageToken;
  747. protected $__itemsType = 'Google_AdClient';
  748. protected $__itemsDataType = 'array';
  749. public $items;
  750. public $kind;
  751. public $etag;
  752. public function setNextPageToken($nextPageToken) {
  753. $this->nextPageToken = $nextPageToken;
  754. }
  755. public function getNextPageToken() {
  756. return $this->nextPageToken;
  757. }
  758. public function setItems($items) {
  759. $this->assertIsArray($items, 'Google_AdClient', __METHOD__);
  760. $this->items = $items;
  761. }
  762. public function getItems() {
  763. return $this->items;
  764. }
  765. public function setKind($kind) {
  766. $this->kind = $kind;
  767. }
  768. public function getKind() {
  769. return $this->kind;
  770. }
  771. public function setEtag($etag) {
  772. $this->etag = $etag;
  773. }
  774. public function getEtag() {
  775. return $this->etag;
  776. }
  777. }
  778. class Google_AdUnit extends Google_Model {
  779. public $status;
  780. public $kind;
  781. public $code;
  782. public $id;
  783. public $name;
  784. public function setStatus($status) {
  785. $this->status = $status;
  786. }
  787. public function getStatus() {
  788. return $this->status;
  789. }
  790. public function setKind($kind) {
  791. $this->kind = $kind;
  792. }
  793. public function getKind() {
  794. return $this->kind;
  795. }
  796. public function setCode($code) {
  797. $this->code = $code;
  798. }
  799. public function getCode() {
  800. return $this->code;
  801. }
  802. public function setId($id) {
  803. $this->id = $id;
  804. }
  805. public function getId() {
  806. return $this->id;
  807. }
  808. public function setName($name) {
  809. $this->name = $name;
  810. }
  811. public function getName() {
  812. return $this->name;
  813. }
  814. }
  815. class Google_AdUnits extends Google_Model {
  816. public $nextPageToken;
  817. protected $__itemsType = 'Google_AdUnit';
  818. protected $__itemsDataType = 'array';
  819. public $items;
  820. public $kind;
  821. public $etag;
  822. public function setNextPageToken($nextPageToken) {
  823. $this->nextPageToken = $nextPageToken;
  824. }
  825. public function getNextPageToken() {
  826. return $this->nextPageToken;
  827. }
  828. public function setItems($items) {
  829. $this->assertIsArray($items, 'Google_AdUnit', __METHOD__);
  830. $this->items = $items;
  831. }
  832. public function getItems() {
  833. return $this->items;
  834. }
  835. public function setKind($kind) {
  836. $this->kind = $kind;
  837. }
  838. public function getKind() {
  839. return $this->kind;
  840. }
  841. public function setEtag($etag) {
  842. $this->etag = $etag;
  843. }
  844. public function getEtag() {
  845. return $this->etag;
  846. }
  847. }
  848. class Google_AdsenseReportsGenerateResponse extends Google_Model {
  849. public $kind;
  850. public $rows;
  851. public $warnings;
  852. public $totals;
  853. protected $__headersType = 'Google_AdsenseReportsGenerateResponseHeaders';
  854. protected $__headersDataType = 'array';
  855. public $headers;
  856. public $totalMatchedRows;
  857. public $averages;
  858. public function setKind($kind) {
  859. $this->kind = $kind;
  860. }
  861. public function getKind() {
  862. return $this->kind;
  863. }
  864. public function setRows($rows) {
  865. $this->rows = $rows;
  866. }
  867. public function getRows() {
  868. return $this->rows;
  869. }
  870. public function setWarnings($warnings) {
  871. $this->warnings = $warnings;
  872. }
  873. public function getWarnings() {
  874. return $this->warnings;
  875. }
  876. public function setTotals($totals) {
  877. $this->totals = $totals;
  878. }
  879. public function getTotals() {
  880. return $this->totals;
  881. }
  882. public function setHeaders($headers) {
  883. $this->assertIsArray($headers, 'Google_AdsenseReportsGenerateResponseHeaders', __METHOD__);
  884. $this->headers = $headers;
  885. }
  886. public function getHeaders() {
  887. return $this->headers;
  888. }
  889. public function setTotalMatchedRows($totalMatchedRows) {
  890. $this->totalMatchedRows = $totalMatchedRows;
  891. }
  892. public function getTotalMatchedRows() {
  893. return $this->totalMatchedRows;
  894. }
  895. public function setAverages($averages) {
  896. $this->averages = $averages;
  897. }
  898. public function getAverages() {
  899. return $this->averages;
  900. }
  901. }
  902. class Google_AdsenseReportsGenerateResponseHeaders extends Google_Model {
  903. public $currency;
  904. public $type;
  905. public $name;
  906. public function setCurrency($currency) {
  907. $this->currency = $currency;
  908. }
  909. public function getCurrency() {
  910. return $this->currency;
  911. }
  912. public function setType($type) {
  913. $this->type = $type;
  914. }
  915. public function getType() {
  916. return $this->type;
  917. }
  918. public function setName($name) {
  919. $this->name = $name;
  920. }
  921. public function getName() {
  922. return $this->name;
  923. }
  924. }
  925. class Google_CustomChannel extends Google_Model {
  926. public $kind;
  927. public $code;
  928. protected $__targetingInfoType = 'Google_CustomChannelTargetingInfo';
  929. protected $__targetingInfoDataType = '';
  930. public $targetingInfo;
  931. public $id;
  932. public $name;
  933. public function setKind($kind) {
  934. $this->kind = $kind;
  935. }
  936. public function getKind() {
  937. return $this->kind;
  938. }
  939. public function setCode($code) {
  940. $this->code = $code;
  941. }
  942. public function getCode() {
  943. return $this->code;
  944. }
  945. public function setTargetingInfo(Google_CustomChannelTargetingInfo $targetingInfo) {
  946. $this->targetingInfo = $targetingInfo;
  947. }
  948. public function getTargetingInfo() {
  949. return $this->targetingInfo;
  950. }
  951. public function setId($id) {
  952. $this->id = $id;
  953. }
  954. public function getId() {
  955. return $this->id;
  956. }
  957. public function setName($name) {
  958. $this->name = $name;
  959. }
  960. public function getName() {
  961. return $this->name;
  962. }
  963. }
  964. class Google_CustomChannelTargetingInfo extends Google_Model {
  965. public $location;
  966. public $adsAppearOn;
  967. public $siteLanguage;
  968. public $description;
  969. public function setLocation($location) {
  970. $this->location = $location;
  971. }
  972. public function getLocation() {
  973. return $this->location;
  974. }
  975. public function setAdsAppearOn($adsAppearOn) {
  976. $this->adsAppearOn = $adsAppearOn;
  977. }
  978. public function getAdsAppearOn() {
  979. return $this->adsAppearOn;
  980. }
  981. pub

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