Google_Service_AdSense

Service definition for AdSense (v1.4).

Defined (1)

The class is defined in the following location(s).

/lib/vendor/google/apiclient/src/Google/Service/AdSense.php  
  1. class Google_Service_AdSense extends Google_Service 
  2. /** View and manage your AdSense data. */ 
  3. const ADSENSE = "https://www.googleapis.com/auth/adsense"; 
  4. /** View your AdSense data. */ 
  5. const ADSENSE_READONLY = "https://www.googleapis.com/auth/adsense.readonly"; 
  6.  
  7. public $accounts; 
  8. public $accounts_adclients; 
  9. public $accounts_adunits; 
  10. public $accounts_adunits_customchannels; 
  11. public $accounts_alerts; 
  12. public $accounts_customchannels; 
  13. public $accounts_customchannels_adunits; 
  14. public $accounts_payments; 
  15. public $accounts_reports; 
  16. public $accounts_reports_saved; 
  17. public $accounts_savedadstyles; 
  18. public $accounts_urlchannels; 
  19. public $adclients; 
  20. public $adunits; 
  21. public $adunits_customchannels; 
  22. public $alerts; 
  23. public $customchannels; 
  24. public $customchannels_adunits; 
  25. public $metadata_dimensions; 
  26. public $metadata_metrics; 
  27. public $payments; 
  28. public $reports; 
  29. public $reports_saved; 
  30. public $savedadstyles; 
  31. public $urlchannels; 
  32.  
  33.  
  34. /** 
  35. * Constructs the internal representation of the AdSense service. 
  36. * @param Google_Client $client 
  37. */ 
  38. public function __construct(Google_Client $client) 
  39. parent::__construct($client); 
  40. $this->servicePath = 'adsense/v1.4/'; 
  41. $this->version = 'v1.4'; 
  42. $this->serviceName = 'adsense'; 
  43.  
  44. $this->accounts = new Google_Service_AdSense_Accounts_Resource( 
  45. $this,  
  46. $this->serviceName,  
  47. 'accounts',  
  48. array( 
  49. 'methods' => array( 
  50. 'get' => array( 
  51. 'path' => 'accounts/{accountId}',  
  52. 'httpMethod' => 'GET',  
  53. 'parameters' => array( 
  54. 'accountId' => array( 
  55. 'location' => 'path',  
  56. 'type' => 'string',  
  57. 'required' => true,  
  58. ),  
  59. 'tree' => array( 
  60. 'location' => 'query',  
  61. 'type' => 'boolean',  
  62. ),  
  63. ),  
  64. ), 'list' => array( 
  65. 'path' => 'accounts',  
  66. 'httpMethod' => 'GET',  
  67. 'parameters' => array( 
  68. 'pageToken' => array( 
  69. 'location' => 'query',  
  70. 'type' => 'string',  
  71. ),  
  72. 'maxResults' => array( 
  73. 'location' => 'query',  
  74. 'type' => 'integer',  
  75. ),  
  76. ),  
  77. ),  
  78. ); 
  79. $this->accounts_adclients = new Google_Service_AdSense_AccountsAdclients_Resource( 
  80. $this,  
  81. $this->serviceName,  
  82. 'adclients',  
  83. array( 
  84. 'methods' => array( 
  85. 'list' => array( 
  86. 'path' => 'accounts/{accountId}/adclients',  
  87. 'httpMethod' => 'GET',  
  88. 'parameters' => array( 
  89. 'accountId' => array( 
  90. 'location' => 'path',  
  91. 'type' => 'string',  
  92. 'required' => true,  
  93. ),  
  94. 'pageToken' => array( 
  95. 'location' => 'query',  
  96. 'type' => 'string',  
  97. ),  
  98. 'maxResults' => array( 
  99. 'location' => 'query',  
  100. 'type' => 'integer',  
  101. ),  
  102. ),  
  103. ),  
  104. ); 
  105. $this->accounts_adunits = new Google_Service_AdSense_AccountsAdunits_Resource( 
  106. $this,  
  107. $this->serviceName,  
  108. 'adunits',  
  109. array( 
  110. 'methods' => array( 
  111. 'get' => array( 
  112. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}',  
  113. 'httpMethod' => 'GET',  
  114. 'parameters' => array( 
  115. 'accountId' => array( 
  116. 'location' => 'path',  
  117. 'type' => 'string',  
  118. 'required' => true,  
  119. ),  
  120. 'adClientId' => array( 
  121. 'location' => 'path',  
  122. 'type' => 'string',  
  123. 'required' => true,  
  124. ),  
  125. 'adUnitId' => array( 
  126. 'location' => 'path',  
  127. 'type' => 'string',  
  128. 'required' => true,  
  129. ),  
  130. ),  
  131. ), 'getAdCode' => array( 
  132. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode',  
  133. 'httpMethod' => 'GET',  
  134. 'parameters' => array( 
  135. 'accountId' => array( 
  136. 'location' => 'path',  
  137. 'type' => 'string',  
  138. 'required' => true,  
  139. ),  
  140. 'adClientId' => array( 
  141. 'location' => 'path',  
  142. 'type' => 'string',  
  143. 'required' => true,  
  144. ),  
  145. 'adUnitId' => array( 
  146. 'location' => 'path',  
  147. 'type' => 'string',  
  148. 'required' => true,  
  149. ),  
  150. ),  
  151. ), 'list' => array( 
  152. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',  
  153. 'httpMethod' => 'GET',  
  154. 'parameters' => array( 
  155. 'accountId' => array( 
  156. 'location' => 'path',  
  157. 'type' => 'string',  
  158. 'required' => true,  
  159. ),  
  160. 'adClientId' => array( 
  161. 'location' => 'path',  
  162. 'type' => 'string',  
  163. 'required' => true,  
  164. ),  
  165. 'includeInactive' => array( 
  166. 'location' => 'query',  
  167. 'type' => 'boolean',  
  168. ),  
  169. 'pageToken' => array( 
  170. 'location' => 'query',  
  171. 'type' => 'string',  
  172. ),  
  173. 'maxResults' => array( 
  174. 'location' => 'query',  
  175. 'type' => 'integer',  
  176. ),  
  177. ),  
  178. ),  
  179. ); 
  180. $this->accounts_adunits_customchannels = new Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource( 
  181. $this,  
  182. $this->serviceName,  
  183. 'customchannels',  
  184. array( 
  185. 'methods' => array( 
  186. 'list' => array( 
  187. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels',  
  188. 'httpMethod' => 'GET',  
  189. 'parameters' => array( 
  190. 'accountId' => array( 
  191. 'location' => 'path',  
  192. 'type' => 'string',  
  193. 'required' => true,  
  194. ),  
  195. 'adClientId' => array( 
  196. 'location' => 'path',  
  197. 'type' => 'string',  
  198. 'required' => true,  
  199. ),  
  200. 'adUnitId' => array( 
  201. 'location' => 'path',  
  202. 'type' => 'string',  
  203. 'required' => true,  
  204. ),  
  205. 'pageToken' => array( 
  206. 'location' => 'query',  
  207. 'type' => 'string',  
  208. ),  
  209. 'maxResults' => array( 
  210. 'location' => 'query',  
  211. 'type' => 'integer',  
  212. ),  
  213. ),  
  214. ),  
  215. ); 
  216. $this->accounts_alerts = new Google_Service_AdSense_AccountsAlerts_Resource( 
  217. $this,  
  218. $this->serviceName,  
  219. 'alerts',  
  220. array( 
  221. 'methods' => array( 
  222. 'delete' => array( 
  223. 'path' => 'accounts/{accountId}/alerts/{alertId}',  
  224. 'httpMethod' => 'DELETE',  
  225. 'parameters' => array( 
  226. 'accountId' => array( 
  227. 'location' => 'path',  
  228. 'type' => 'string',  
  229. 'required' => true,  
  230. ),  
  231. 'alertId' => array( 
  232. 'location' => 'path',  
  233. 'type' => 'string',  
  234. 'required' => true,  
  235. ),  
  236. ),  
  237. ), 'list' => array( 
  238. 'path' => 'accounts/{accountId}/alerts',  
  239. 'httpMethod' => 'GET',  
  240. 'parameters' => array( 
  241. 'accountId' => array( 
  242. 'location' => 'path',  
  243. 'type' => 'string',  
  244. 'required' => true,  
  245. ),  
  246. 'locale' => array( 
  247. 'location' => 'query',  
  248. 'type' => 'string',  
  249. ),  
  250. ),  
  251. ),  
  252. ); 
  253. $this->accounts_customchannels = new Google_Service_AdSense_AccountsCustomchannels_Resource( 
  254. $this,  
  255. $this->serviceName,  
  256. 'customchannels',  
  257. array( 
  258. 'methods' => array( 
  259. 'get' => array( 
  260. 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}',  
  261. 'httpMethod' => 'GET',  
  262. 'parameters' => array( 
  263. 'accountId' => array( 
  264. 'location' => 'path',  
  265. 'type' => 'string',  
  266. 'required' => true,  
  267. ),  
  268. 'adClientId' => array( 
  269. 'location' => 'path',  
  270. 'type' => 'string',  
  271. 'required' => true,  
  272. ),  
  273. 'customChannelId' => array( 
  274. 'location' => 'path',  
  275. 'type' => 'string',  
  276. 'required' => true,  
  277. ),  
  278. ),  
  279. ), 'list' => array( 
  280. 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels',  
  281. 'httpMethod' => 'GET',  
  282. 'parameters' => array( 
  283. 'accountId' => array( 
  284. 'location' => 'path',  
  285. 'type' => 'string',  
  286. 'required' => true,  
  287. ),  
  288. 'adClientId' => array( 
  289. 'location' => 'path',  
  290. 'type' => 'string',  
  291. 'required' => true,  
  292. ),  
  293. 'pageToken' => array( 
  294. 'location' => 'query',  
  295. 'type' => 'string',  
  296. ),  
  297. 'maxResults' => array( 
  298. 'location' => 'query',  
  299. 'type' => 'integer',  
  300. ),  
  301. ),  
  302. ),  
  303. ); 
  304. $this->accounts_customchannels_adunits = new Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource( 
  305. $this,  
  306. $this->serviceName,  
  307. 'adunits',  
  308. array( 
  309. 'methods' => array( 
  310. 'list' => array( 
  311. 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits',  
  312. 'httpMethod' => 'GET',  
  313. 'parameters' => array( 
  314. 'accountId' => array( 
  315. 'location' => 'path',  
  316. 'type' => 'string',  
  317. 'required' => true,  
  318. ),  
  319. 'adClientId' => array( 
  320. 'location' => 'path',  
  321. 'type' => 'string',  
  322. 'required' => true,  
  323. ),  
  324. 'customChannelId' => array( 
  325. 'location' => 'path',  
  326. 'type' => 'string',  
  327. 'required' => true,  
  328. ),  
  329. 'includeInactive' => array( 
  330. 'location' => 'query',  
  331. 'type' => 'boolean',  
  332. ),  
  333. 'maxResults' => array( 
  334. 'location' => 'query',  
  335. 'type' => 'integer',  
  336. ),  
  337. 'pageToken' => array( 
  338. 'location' => 'query',  
  339. 'type' => 'string',  
  340. ),  
  341. ),  
  342. ),  
  343. ); 
  344. $this->accounts_payments = new Google_Service_AdSense_AccountsPayments_Resource( 
  345. $this,  
  346. $this->serviceName,  
  347. 'payments',  
  348. array( 
  349. 'methods' => array( 
  350. 'list' => array( 
  351. 'path' => 'accounts/{accountId}/payments',  
  352. 'httpMethod' => 'GET',  
  353. 'parameters' => array( 
  354. 'accountId' => array( 
  355. 'location' => 'path',  
  356. 'type' => 'string',  
  357. 'required' => true,  
  358. ),  
  359. ),  
  360. ),  
  361. ); 
  362. $this->accounts_reports = new Google_Service_AdSense_AccountsReports_Resource( 
  363. $this,  
  364. $this->serviceName,  
  365. 'reports',  
  366. array( 
  367. 'methods' => array( 
  368. 'generate' => array( 
  369. 'path' => 'accounts/{accountId}/reports',  
  370. 'httpMethod' => 'GET',  
  371. 'parameters' => array( 
  372. 'accountId' => array( 
  373. 'location' => 'path',  
  374. 'type' => 'string',  
  375. 'required' => true,  
  376. ),  
  377. 'startDate' => array( 
  378. 'location' => 'query',  
  379. 'type' => 'string',  
  380. 'required' => true,  
  381. ),  
  382. 'endDate' => array( 
  383. 'location' => 'query',  
  384. 'type' => 'string',  
  385. 'required' => true,  
  386. ),  
  387. 'sort' => array( 
  388. 'location' => 'query',  
  389. 'type' => 'string',  
  390. 'repeated' => true,  
  391. ),  
  392. 'locale' => array( 
  393. 'location' => 'query',  
  394. 'type' => 'string',  
  395. ),  
  396. 'metric' => array( 
  397. 'location' => 'query',  
  398. 'type' => 'string',  
  399. 'repeated' => true,  
  400. ),  
  401. 'maxResults' => array( 
  402. 'location' => 'query',  
  403. 'type' => 'integer',  
  404. ),  
  405. 'filter' => array( 
  406. 'location' => 'query',  
  407. 'type' => 'string',  
  408. 'repeated' => true,  
  409. ),  
  410. 'currency' => array( 
  411. 'location' => 'query',  
  412. 'type' => 'string',  
  413. ),  
  414. 'startIndex' => array( 
  415. 'location' => 'query',  
  416. 'type' => 'integer',  
  417. ),  
  418. 'useTimezoneReporting' => array( 
  419. 'location' => 'query',  
  420. 'type' => 'boolean',  
  421. ),  
  422. 'dimension' => array( 
  423. 'location' => 'query',  
  424. 'type' => 'string',  
  425. 'repeated' => true,  
  426. ),  
  427. ),  
  428. ),  
  429. ); 
  430. $this->accounts_reports_saved = new Google_Service_AdSense_AccountsReportsSaved_Resource( 
  431. $this,  
  432. $this->serviceName,  
  433. 'saved',  
  434. array( 
  435. 'methods' => array( 
  436. 'generate' => array( 
  437. 'path' => 'accounts/{accountId}/reports/{savedReportId}',  
  438. 'httpMethod' => 'GET',  
  439. 'parameters' => array( 
  440. 'accountId' => array( 
  441. 'location' => 'path',  
  442. 'type' => 'string',  
  443. 'required' => true,  
  444. ),  
  445. 'savedReportId' => array( 
  446. 'location' => 'path',  
  447. 'type' => 'string',  
  448. 'required' => true,  
  449. ),  
  450. 'locale' => array( 
  451. 'location' => 'query',  
  452. 'type' => 'string',  
  453. ),  
  454. 'startIndex' => array( 
  455. 'location' => 'query',  
  456. 'type' => 'integer',  
  457. ),  
  458. 'maxResults' => array( 
  459. 'location' => 'query',  
  460. 'type' => 'integer',  
  461. ),  
  462. ),  
  463. ), 'list' => array( 
  464. 'path' => 'accounts/{accountId}/reports/saved',  
  465. 'httpMethod' => 'GET',  
  466. 'parameters' => array( 
  467. 'accountId' => array( 
  468. 'location' => 'path',  
  469. 'type' => 'string',  
  470. 'required' => true,  
  471. ),  
  472. 'pageToken' => array( 
  473. 'location' => 'query',  
  474. 'type' => 'string',  
  475. ),  
  476. 'maxResults' => array( 
  477. 'location' => 'query',  
  478. 'type' => 'integer',  
  479. ),  
  480. ),  
  481. ),  
  482. ); 
  483. $this->accounts_savedadstyles = new Google_Service_AdSense_AccountsSavedadstyles_Resource( 
  484. $this,  
  485. $this->serviceName,  
  486. 'savedadstyles',  
  487. array( 
  488. 'methods' => array( 
  489. 'get' => array( 
  490. 'path' => 'accounts/{accountId}/savedadstyles/{savedAdStyleId}',  
  491. 'httpMethod' => 'GET',  
  492. 'parameters' => array( 
  493. 'accountId' => array( 
  494. 'location' => 'path',  
  495. 'type' => 'string',  
  496. 'required' => true,  
  497. ),  
  498. 'savedAdStyleId' => array( 
  499. 'location' => 'path',  
  500. 'type' => 'string',  
  501. 'required' => true,  
  502. ),  
  503. ),  
  504. ), 'list' => array( 
  505. 'path' => 'accounts/{accountId}/savedadstyles',  
  506. 'httpMethod' => 'GET',  
  507. 'parameters' => array( 
  508. 'accountId' => array( 
  509. 'location' => 'path',  
  510. 'type' => 'string',  
  511. 'required' => true,  
  512. ),  
  513. 'pageToken' => array( 
  514. 'location' => 'query',  
  515. 'type' => 'string',  
  516. ),  
  517. 'maxResults' => array( 
  518. 'location' => 'query',  
  519. 'type' => 'integer',  
  520. ),  
  521. ),  
  522. ),  
  523. ); 
  524. $this->accounts_urlchannels = new Google_Service_AdSense_AccountsUrlchannels_Resource( 
  525. $this,  
  526. $this->serviceName,  
  527. 'urlchannels',  
  528. array( 
  529. 'methods' => array( 
  530. 'list' => array( 
  531. 'path' => 'accounts/{accountId}/adclients/{adClientId}/urlchannels',  
  532. 'httpMethod' => 'GET',  
  533. 'parameters' => array( 
  534. 'accountId' => array( 
  535. 'location' => 'path',  
  536. 'type' => 'string',  
  537. 'required' => true,  
  538. ),  
  539. 'adClientId' => array( 
  540. 'location' => 'path',  
  541. 'type' => 'string',  
  542. 'required' => true,  
  543. ),  
  544. 'pageToken' => array( 
  545. 'location' => 'query',  
  546. 'type' => 'string',  
  547. ),  
  548. 'maxResults' => array( 
  549. 'location' => 'query',  
  550. 'type' => 'integer',  
  551. ),  
  552. ),  
  553. ),  
  554. ); 
  555. $this->adclients = new Google_Service_AdSense_Adclients_Resource( 
  556. $this,  
  557. $this->serviceName,  
  558. 'adclients',  
  559. array( 
  560. 'methods' => array( 
  561. 'list' => array( 
  562. 'path' => 'adclients',  
  563. 'httpMethod' => 'GET',  
  564. 'parameters' => array( 
  565. 'pageToken' => array( 
  566. 'location' => 'query',  
  567. 'type' => 'string',  
  568. ),  
  569. 'maxResults' => array( 
  570. 'location' => 'query',  
  571. 'type' => 'integer',  
  572. ),  
  573. ),  
  574. ),  
  575. ); 
  576. $this->adunits = new Google_Service_AdSense_Adunits_Resource( 
  577. $this,  
  578. $this->serviceName,  
  579. 'adunits',  
  580. array( 
  581. 'methods' => array( 
  582. 'get' => array( 
  583. 'path' => 'adclients/{adClientId}/adunits/{adUnitId}',  
  584. 'httpMethod' => 'GET',  
  585. 'parameters' => array( 
  586. 'adClientId' => array( 
  587. 'location' => 'path',  
  588. 'type' => 'string',  
  589. 'required' => true,  
  590. ),  
  591. 'adUnitId' => array( 
  592. 'location' => 'path',  
  593. 'type' => 'string',  
  594. 'required' => true,  
  595. ),  
  596. ),  
  597. ), 'getAdCode' => array( 
  598. 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/adcode',  
  599. 'httpMethod' => 'GET',  
  600. 'parameters' => array( 
  601. 'adClientId' => array( 
  602. 'location' => 'path',  
  603. 'type' => 'string',  
  604. 'required' => true,  
  605. ),  
  606. 'adUnitId' => array( 
  607. 'location' => 'path',  
  608. 'type' => 'string',  
  609. 'required' => true,  
  610. ),  
  611. ),  
  612. ), 'list' => array( 
  613. 'path' => 'adclients/{adClientId}/adunits',  
  614. 'httpMethod' => 'GET',  
  615. 'parameters' => array( 
  616. 'adClientId' => array( 
  617. 'location' => 'path',  
  618. 'type' => 'string',  
  619. 'required' => true,  
  620. ),  
  621. 'includeInactive' => array( 
  622. 'location' => 'query',  
  623. 'type' => 'boolean',  
  624. ),  
  625. 'pageToken' => array( 
  626. 'location' => 'query',  
  627. 'type' => 'string',  
  628. ),  
  629. 'maxResults' => array( 
  630. 'location' => 'query',  
  631. 'type' => 'integer',  
  632. ),  
  633. ),  
  634. ),  
  635. ); 
  636. $this->adunits_customchannels = new Google_Service_AdSense_AdunitsCustomchannels_Resource( 
  637. $this,  
  638. $this->serviceName,  
  639. 'customchannels',  
  640. array( 
  641. 'methods' => array( 
  642. 'list' => array( 
  643. 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/customchannels',  
  644. 'httpMethod' => 'GET',  
  645. 'parameters' => array( 
  646. 'adClientId' => array( 
  647. 'location' => 'path',  
  648. 'type' => 'string',  
  649. 'required' => true,  
  650. ),  
  651. 'adUnitId' => array( 
  652. 'location' => 'path',  
  653. 'type' => 'string',  
  654. 'required' => true,  
  655. ),  
  656. 'pageToken' => array( 
  657. 'location' => 'query',  
  658. 'type' => 'string',  
  659. ),  
  660. 'maxResults' => array( 
  661. 'location' => 'query',  
  662. 'type' => 'integer',  
  663. ),  
  664. ),  
  665. ),  
  666. ); 
  667. $this->alerts = new Google_Service_AdSense_Alerts_Resource( 
  668. $this,  
  669. $this->serviceName,  
  670. 'alerts',  
  671. array( 
  672. 'methods' => array( 
  673. 'delete' => array( 
  674. 'path' => 'alerts/{alertId}',  
  675. 'httpMethod' => 'DELETE',  
  676. 'parameters' => array( 
  677. 'alertId' => array( 
  678. 'location' => 'path',  
  679. 'type' => 'string',  
  680. 'required' => true,  
  681. ),  
  682. ),  
  683. ), 'list' => array( 
  684. 'path' => 'alerts',  
  685. 'httpMethod' => 'GET',  
  686. 'parameters' => array( 
  687. 'locale' => array( 
  688. 'location' => 'query',  
  689. 'type' => 'string',  
  690. ),  
  691. ),  
  692. ),  
  693. ); 
  694. $this->customchannels = new Google_Service_AdSense_Customchannels_Resource( 
  695. $this,  
  696. $this->serviceName,  
  697. 'customchannels',  
  698. array( 
  699. 'methods' => array( 
  700. 'get' => array( 
  701. 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}',  
  702. 'httpMethod' => 'GET',  
  703. 'parameters' => array( 
  704. 'adClientId' => array( 
  705. 'location' => 'path',  
  706. 'type' => 'string',  
  707. 'required' => true,  
  708. ),  
  709. 'customChannelId' => array( 
  710. 'location' => 'path',  
  711. 'type' => 'string',  
  712. 'required' => true,  
  713. ),  
  714. ),  
  715. ), 'list' => array( 
  716. 'path' => 'adclients/{adClientId}/customchannels',  
  717. 'httpMethod' => 'GET',  
  718. 'parameters' => array( 
  719. 'adClientId' => array( 
  720. 'location' => 'path',  
  721. 'type' => 'string',  
  722. 'required' => true,  
  723. ),  
  724. 'pageToken' => array( 
  725. 'location' => 'query',  
  726. 'type' => 'string',  
  727. ),  
  728. 'maxResults' => array( 
  729. 'location' => 'query',  
  730. 'type' => 'integer',  
  731. ),  
  732. ),  
  733. ),  
  734. ); 
  735. $this->customchannels_adunits = new Google_Service_AdSense_CustomchannelsAdunits_Resource( 
  736. $this,  
  737. $this->serviceName,  
  738. 'adunits',  
  739. array( 
  740. 'methods' => array( 
  741. 'list' => array( 
  742. 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}/adunits',  
  743. 'httpMethod' => 'GET',  
  744. 'parameters' => array( 
  745. 'adClientId' => array( 
  746. 'location' => 'path',  
  747. 'type' => 'string',  
  748. 'required' => true,  
  749. ),  
  750. 'customChannelId' => array( 
  751. 'location' => 'path',  
  752. 'type' => 'string',  
  753. 'required' => true,  
  754. ),  
  755. 'includeInactive' => array( 
  756. 'location' => 'query',  
  757. 'type' => 'boolean',  
  758. ),  
  759. 'pageToken' => array( 
  760. 'location' => 'query',  
  761. 'type' => 'string',  
  762. ),  
  763. 'maxResults' => array( 
  764. 'location' => 'query',  
  765. 'type' => 'integer',  
  766. ),  
  767. ),  
  768. ),  
  769. ); 
  770. $this->metadata_dimensions = new Google_Service_AdSense_MetadataDimensions_Resource( 
  771. $this,  
  772. $this->serviceName,  
  773. 'dimensions',  
  774. array( 
  775. 'methods' => array( 
  776. 'list' => array( 
  777. 'path' => 'metadata/dimensions',  
  778. 'httpMethod' => 'GET',  
  779. 'parameters' => array(),  
  780. ),  
  781. ); 
  782. $this->metadata_metrics = new Google_Service_AdSense_MetadataMetrics_Resource( 
  783. $this,  
  784. $this->serviceName,  
  785. 'metrics',  
  786. array( 
  787. 'methods' => array( 
  788. 'list' => array( 
  789. 'path' => 'metadata/metrics',  
  790. 'httpMethod' => 'GET',  
  791. 'parameters' => array(),  
  792. ),  
  793. ); 
  794. $this->payments = new Google_Service_AdSense_Payments_Resource( 
  795. $this,  
  796. $this->serviceName,  
  797. 'payments',  
  798. array( 
  799. 'methods' => array( 
  800. 'list' => array( 
  801. 'path' => 'payments',  
  802. 'httpMethod' => 'GET',  
  803. 'parameters' => array(),  
  804. ),  
  805. ); 
  806. $this->reports = new Google_Service_AdSense_Reports_Resource( 
  807. $this,  
  808. $this->serviceName,  
  809. 'reports',  
  810. array( 
  811. 'methods' => array( 
  812. 'generate' => array( 
  813. 'path' => 'reports',  
  814. 'httpMethod' => 'GET',  
  815. 'parameters' => array( 
  816. 'startDate' => array( 
  817. 'location' => 'query',  
  818. 'type' => 'string',  
  819. 'required' => true,  
  820. ),  
  821. 'endDate' => array( 
  822. 'location' => 'query',  
  823. 'type' => 'string',  
  824. 'required' => true,  
  825. ),  
  826. 'sort' => array( 
  827. 'location' => 'query',  
  828. 'type' => 'string',  
  829. 'repeated' => true,  
  830. ),  
  831. 'locale' => array( 
  832. 'location' => 'query',  
  833. 'type' => 'string',  
  834. ),  
  835. 'metric' => array( 
  836. 'location' => 'query',  
  837. 'type' => 'string',  
  838. 'repeated' => true,  
  839. ),  
  840. 'maxResults' => array( 
  841. 'location' => 'query',  
  842. 'type' => 'integer',  
  843. ),  
  844. 'filter' => array( 
  845. 'location' => 'query',  
  846. 'type' => 'string',  
  847. 'repeated' => true,  
  848. ),  
  849. 'currency' => array( 
  850. 'location' => 'query',  
  851. 'type' => 'string',  
  852. ),  
  853. 'startIndex' => array( 
  854. 'location' => 'query',  
  855. 'type' => 'integer',  
  856. ),  
  857. 'useTimezoneReporting' => array( 
  858. 'location' => 'query',  
  859. 'type' => 'boolean',  
  860. ),  
  861. 'dimension' => array( 
  862. 'location' => 'query',  
  863. 'type' => 'string',  
  864. 'repeated' => true,  
  865. ),  
  866. 'accountId' => array( 
  867. 'location' => 'query',  
  868. 'type' => 'string',  
  869. 'repeated' => true,  
  870. ),  
  871. ),  
  872. ),  
  873. ); 
  874. $this->reports_saved = new Google_Service_AdSense_ReportsSaved_Resource( 
  875. $this,  
  876. $this->serviceName,  
  877. 'saved',  
  878. array( 
  879. 'methods' => array( 
  880. 'generate' => array( 
  881. 'path' => 'reports/{savedReportId}',  
  882. 'httpMethod' => 'GET',  
  883. 'parameters' => array( 
  884. 'savedReportId' => array( 
  885. 'location' => 'path',  
  886. 'type' => 'string',  
  887. 'required' => true,  
  888. ),  
  889. 'locale' => array( 
  890. 'location' => 'query',  
  891. 'type' => 'string',  
  892. ),  
  893. 'startIndex' => array( 
  894. 'location' => 'query',  
  895. 'type' => 'integer',  
  896. ),  
  897. 'maxResults' => array( 
  898. 'location' => 'query',  
  899. 'type' => 'integer',  
  900. ),  
  901. ),  
  902. ), 'list' => array( 
  903. 'path' => 'reports/saved',  
  904. 'httpMethod' => 'GET',  
  905. 'parameters' => array( 
  906. 'pageToken' => array( 
  907. 'location' => 'query',  
  908. 'type' => 'string',  
  909. ),  
  910. 'maxResults' => array( 
  911. 'location' => 'query',  
  912. 'type' => 'integer',  
  913. ),  
  914. ),  
  915. ),  
  916. ); 
  917. $this->savedadstyles = new Google_Service_AdSense_Savedadstyles_Resource( 
  918. $this,  
  919. $this->serviceName,  
  920. 'savedadstyles',  
  921. array( 
  922. 'methods' => array( 
  923. 'get' => array( 
  924. 'path' => 'savedadstyles/{savedAdStyleId}',  
  925. 'httpMethod' => 'GET',  
  926. 'parameters' => array( 
  927. 'savedAdStyleId' => array( 
  928. 'location' => 'path',  
  929. 'type' => 'string',  
  930. 'required' => true,  
  931. ),  
  932. ),  
  933. ), 'list' => array( 
  934. 'path' => 'savedadstyles',  
  935. 'httpMethod' => 'GET',  
  936. 'parameters' => array( 
  937. 'pageToken' => array( 
  938. 'location' => 'query',  
  939. 'type' => 'string',  
  940. ),  
  941. 'maxResults' => array( 
  942. 'location' => 'query',  
  943. 'type' => 'integer',  
  944. ),  
  945. ),  
  946. ),  
  947. ); 
  948. $this->urlchannels = new Google_Service_AdSense_Urlchannels_Resource( 
  949. $this,  
  950. $this->serviceName,  
  951. 'urlchannels',  
  952. array( 
  953. 'methods' => array( 
  954. 'list' => array( 
  955. 'path' => 'adclients/{adClientId}/urlchannels',  
  956. 'httpMethod' => 'GET',  
  957. 'parameters' => array( 
  958. 'adClientId' => array( 
  959. 'location' => 'path',  
  960. 'type' => 'string',  
  961. 'required' => true,  
  962. ),  
  963. 'pageToken' => array( 
  964. 'location' => 'query',  
  965. 'type' => 'string',  
  966. ),  
  967. 'maxResults' => array( 
  968. 'location' => 'query',  
  969. 'type' => 'integer',  
  970. ),  
  971. ),  
  972. ),  
  973. );