GoogleGAL_Service_AdSense

Service definition for AdSense (v1.4).

Defined (1)

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

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