Google_Service_AdSense

Service definition for AdSense (v1.4).

Defined (1)

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

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