Google_Service_AdSenseHost

Service definition for AdSenseHost (v4.1).

Defined (1)

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

/lib/Google/Service/AdSenseHost.php  
  1. class Google_Service_AdSenseHost extends Google_Service 
  2. /** View and manage your AdSense host data and associated accounts. */ 
  3. const ADSENSEHOST = "https://www.googleapis.com/auth/adsensehost"; 
  4.  
  5. public $accounts; 
  6. public $accounts_adclients; 
  7. public $accounts_adunits; 
  8. public $accounts_reports; 
  9. public $adclients; 
  10. public $associationsessions; 
  11. public $customchannels; 
  12. public $reports; 
  13. public $urlchannels; 
  14.  
  15.  
  16. /** 
  17. * Constructs the internal representation of the AdSenseHost service. 
  18. * @param Google_Client $client 
  19. */ 
  20. public function __construct(Google_Client $client) 
  21. parent::__construct($client); 
  22. $this->servicePath = 'adsensehost/v4.1/'; 
  23. $this->version = 'v4.1'; 
  24. $this->serviceName = 'adsensehost'; 
  25.  
  26. $this->accounts = new Google_Service_AdSenseHost_Accounts_Resource( 
  27. $this,  
  28. $this->serviceName,  
  29. 'accounts',  
  30. array( 
  31. 'methods' => array( 
  32. 'get' => array( 
  33. 'path' => 'accounts/{accountId}',  
  34. 'httpMethod' => 'GET',  
  35. 'parameters' => array( 
  36. 'accountId' => array( 
  37. 'location' => 'path',  
  38. 'type' => 'string',  
  39. 'required' => true,  
  40. ),  
  41. ),  
  42. ), 'list' => array( 
  43. 'path' => 'accounts',  
  44. 'httpMethod' => 'GET',  
  45. 'parameters' => array( 
  46. 'filterAdClientId' => array( 
  47. 'location' => 'query',  
  48. 'type' => 'string',  
  49. 'repeated' => true,  
  50. 'required' => true,  
  51. ),  
  52. ),  
  53. ),  
  54. ); 
  55. $this->accounts_adclients = new Google_Service_AdSenseHost_AccountsAdclients_Resource( 
  56. $this,  
  57. $this->serviceName,  
  58. 'adclients',  
  59. array( 
  60. 'methods' => array( 
  61. 'get' => array( 
  62. 'path' => 'accounts/{accountId}/adclients/{adClientId}',  
  63. 'httpMethod' => 'GET',  
  64. 'parameters' => array( 
  65. 'accountId' => array( 
  66. 'location' => 'path',  
  67. 'type' => 'string',  
  68. 'required' => true,  
  69. ),  
  70. 'adClientId' => array( 
  71. 'location' => 'path',  
  72. 'type' => 'string',  
  73. 'required' => true,  
  74. ),  
  75. ),  
  76. ), 'list' => array( 
  77. 'path' => 'accounts/{accountId}/adclients',  
  78. 'httpMethod' => 'GET',  
  79. 'parameters' => array( 
  80. 'accountId' => array( 
  81. 'location' => 'path',  
  82. 'type' => 'string',  
  83. 'required' => true,  
  84. ),  
  85. 'pageToken' => array( 
  86. 'location' => 'query',  
  87. 'type' => 'string',  
  88. ),  
  89. 'maxResults' => array( 
  90. 'location' => 'query',  
  91. 'type' => 'integer',  
  92. ),  
  93. ),  
  94. ),  
  95. ); 
  96. $this->accounts_adunits = new Google_Service_AdSenseHost_AccountsAdunits_Resource( 
  97. $this,  
  98. $this->serviceName,  
  99. 'adunits',  
  100. array( 
  101. 'methods' => array( 
  102. 'delete' => array( 
  103. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}',  
  104. 'httpMethod' => 'DELETE',  
  105. 'parameters' => array( 
  106. 'accountId' => array( 
  107. 'location' => 'path',  
  108. 'type' => 'string',  
  109. 'required' => true,  
  110. ),  
  111. 'adClientId' => array( 
  112. 'location' => 'path',  
  113. 'type' => 'string',  
  114. 'required' => true,  
  115. ),  
  116. 'adUnitId' => array( 
  117. 'location' => 'path',  
  118. 'type' => 'string',  
  119. 'required' => true,  
  120. ),  
  121. ),  
  122. ), 'get' => array( 
  123. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}',  
  124. 'httpMethod' => 'GET',  
  125. 'parameters' => array( 
  126. 'accountId' => array( 
  127. 'location' => 'path',  
  128. 'type' => 'string',  
  129. 'required' => true,  
  130. ),  
  131. 'adClientId' => array( 
  132. 'location' => 'path',  
  133. 'type' => 'string',  
  134. 'required' => true,  
  135. ),  
  136. 'adUnitId' => array( 
  137. 'location' => 'path',  
  138. 'type' => 'string',  
  139. 'required' => true,  
  140. ),  
  141. ),  
  142. ), 'getAdCode' => array( 
  143. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode',  
  144. 'httpMethod' => 'GET',  
  145. 'parameters' => array( 
  146. 'accountId' => array( 
  147. 'location' => 'path',  
  148. 'type' => 'string',  
  149. 'required' => true,  
  150. ),  
  151. 'adClientId' => array( 
  152. 'location' => 'path',  
  153. 'type' => 'string',  
  154. 'required' => true,  
  155. ),  
  156. 'adUnitId' => array( 
  157. 'location' => 'path',  
  158. 'type' => 'string',  
  159. 'required' => true,  
  160. ),  
  161. 'hostCustomChannelId' => array( 
  162. 'location' => 'query',  
  163. 'type' => 'string',  
  164. 'repeated' => true,  
  165. ),  
  166. ),  
  167. ), 'insert' => array( 
  168. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',  
  169. 'httpMethod' => 'POST',  
  170. 'parameters' => array( 
  171. 'accountId' => array( 
  172. 'location' => 'path',  
  173. 'type' => 'string',  
  174. 'required' => true,  
  175. ),  
  176. 'adClientId' => array( 
  177. 'location' => 'path',  
  178. 'type' => 'string',  
  179. 'required' => true,  
  180. ),  
  181. ),  
  182. ), 'list' => array( 
  183. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',  
  184. 'httpMethod' => 'GET',  
  185. 'parameters' => array( 
  186. 'accountId' => array( 
  187. 'location' => 'path',  
  188. 'type' => 'string',  
  189. 'required' => true,  
  190. ),  
  191. 'adClientId' => array( 
  192. 'location' => 'path',  
  193. 'type' => 'string',  
  194. 'required' => true,  
  195. ),  
  196. 'includeInactive' => array( 
  197. 'location' => 'query',  
  198. 'type' => 'boolean',  
  199. ),  
  200. 'pageToken' => array( 
  201. 'location' => 'query',  
  202. 'type' => 'string',  
  203. ),  
  204. 'maxResults' => array( 
  205. 'location' => 'query',  
  206. 'type' => 'integer',  
  207. ),  
  208. ),  
  209. ), 'patch' => array( 
  210. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',  
  211. 'httpMethod' => 'PATCH',  
  212. 'parameters' => array( 
  213. 'accountId' => array( 
  214. 'location' => 'path',  
  215. 'type' => 'string',  
  216. 'required' => true,  
  217. ),  
  218. 'adClientId' => array( 
  219. 'location' => 'path',  
  220. 'type' => 'string',  
  221. 'required' => true,  
  222. ),  
  223. 'adUnitId' => array( 
  224. 'location' => 'query',  
  225. 'type' => 'string',  
  226. 'required' => true,  
  227. ),  
  228. ),  
  229. ), 'update' => array( 
  230. 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',  
  231. 'httpMethod' => 'PUT',  
  232. 'parameters' => array( 
  233. 'accountId' => array( 
  234. 'location' => 'path',  
  235. 'type' => 'string',  
  236. 'required' => true,  
  237. ),  
  238. 'adClientId' => array( 
  239. 'location' => 'path',  
  240. 'type' => 'string',  
  241. 'required' => true,  
  242. ),  
  243. ),  
  244. ),  
  245. ); 
  246. $this->accounts_reports = new Google_Service_AdSenseHost_AccountsReports_Resource( 
  247. $this,  
  248. $this->serviceName,  
  249. 'reports',  
  250. array( 
  251. 'methods' => array( 
  252. 'generate' => array( 
  253. 'path' => 'accounts/{accountId}/reports',  
  254. 'httpMethod' => 'GET',  
  255. 'parameters' => array( 
  256. 'accountId' => array( 
  257. 'location' => 'path',  
  258. 'type' => 'string',  
  259. 'required' => true,  
  260. ),  
  261. 'startDate' => array( 
  262. 'location' => 'query',  
  263. 'type' => 'string',  
  264. 'required' => true,  
  265. ),  
  266. 'endDate' => array( 
  267. 'location' => 'query',  
  268. 'type' => 'string',  
  269. 'required' => true,  
  270. ),  
  271. 'sort' => array( 
  272. 'location' => 'query',  
  273. 'type' => 'string',  
  274. 'repeated' => true,  
  275. ),  
  276. 'locale' => array( 
  277. 'location' => 'query',  
  278. 'type' => 'string',  
  279. ),  
  280. 'metric' => array( 
  281. 'location' => 'query',  
  282. 'type' => 'string',  
  283. 'repeated' => true,  
  284. ),  
  285. 'maxResults' => array( 
  286. 'location' => 'query',  
  287. 'type' => 'integer',  
  288. ),  
  289. 'filter' => array( 
  290. 'location' => 'query',  
  291. 'type' => 'string',  
  292. 'repeated' => true,  
  293. ),  
  294. 'startIndex' => array( 
  295. 'location' => 'query',  
  296. 'type' => 'integer',  
  297. ),  
  298. 'dimension' => array( 
  299. 'location' => 'query',  
  300. 'type' => 'string',  
  301. 'repeated' => true,  
  302. ),  
  303. ),  
  304. ),  
  305. ); 
  306. $this->adclients = new Google_Service_AdSenseHost_Adclients_Resource( 
  307. $this,  
  308. $this->serviceName,  
  309. 'adclients',  
  310. array( 
  311. 'methods' => array( 
  312. 'get' => array( 
  313. 'path' => 'adclients/{adClientId}',  
  314. 'httpMethod' => 'GET',  
  315. 'parameters' => array( 
  316. 'adClientId' => array( 
  317. 'location' => 'path',  
  318. 'type' => 'string',  
  319. 'required' => true,  
  320. ),  
  321. ),  
  322. ), 'list' => array( 
  323. 'path' => 'adclients',  
  324. 'httpMethod' => 'GET',  
  325. 'parameters' => array( 
  326. 'pageToken' => array( 
  327. 'location' => 'query',  
  328. 'type' => 'string',  
  329. ),  
  330. 'maxResults' => array( 
  331. 'location' => 'query',  
  332. 'type' => 'integer',  
  333. ),  
  334. ),  
  335. ),  
  336. ); 
  337. $this->associationsessions = new Google_Service_AdSenseHost_Associationsessions_Resource( 
  338. $this,  
  339. $this->serviceName,  
  340. 'associationsessions',  
  341. array( 
  342. 'methods' => array( 
  343. 'start' => array( 
  344. 'path' => 'associationsessions/start',  
  345. 'httpMethod' => 'GET',  
  346. 'parameters' => array( 
  347. 'productCode' => array( 
  348. 'location' => 'query',  
  349. 'type' => 'string',  
  350. 'repeated' => true,  
  351. 'required' => true,  
  352. ),  
  353. 'websiteUrl' => array( 
  354. 'location' => 'query',  
  355. 'type' => 'string',  
  356. 'required' => true,  
  357. ),  
  358. 'websiteLocale' => array( 
  359. 'location' => 'query',  
  360. 'type' => 'string',  
  361. ),  
  362. 'userLocale' => array( 
  363. 'location' => 'query',  
  364. 'type' => 'string',  
  365. ),  
  366. ),  
  367. ), 'verify' => array( 
  368. 'path' => 'associationsessions/verify',  
  369. 'httpMethod' => 'GET',  
  370. 'parameters' => array( 
  371. 'token' => array( 
  372. 'location' => 'query',  
  373. 'type' => 'string',  
  374. 'required' => true,  
  375. ),  
  376. ),  
  377. ),  
  378. ); 
  379. $this->customchannels = new Google_Service_AdSenseHost_Customchannels_Resource( 
  380. $this,  
  381. $this->serviceName,  
  382. 'customchannels',  
  383. array( 
  384. 'methods' => array( 
  385. 'delete' => array( 
  386. 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}',  
  387. 'httpMethod' => 'DELETE',  
  388. 'parameters' => array( 
  389. 'adClientId' => array( 
  390. 'location' => 'path',  
  391. 'type' => 'string',  
  392. 'required' => true,  
  393. ),  
  394. 'customChannelId' => array( 
  395. 'location' => 'path',  
  396. 'type' => 'string',  
  397. 'required' => true,  
  398. ),  
  399. ),  
  400. ), 'get' => array( 
  401. 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}',  
  402. 'httpMethod' => 'GET',  
  403. 'parameters' => array( 
  404. 'adClientId' => array( 
  405. 'location' => 'path',  
  406. 'type' => 'string',  
  407. 'required' => true,  
  408. ),  
  409. 'customChannelId' => array( 
  410. 'location' => 'path',  
  411. 'type' => 'string',  
  412. 'required' => true,  
  413. ),  
  414. ),  
  415. ), 'insert' => array( 
  416. 'path' => 'adclients/{adClientId}/customchannels',  
  417. 'httpMethod' => 'POST',  
  418. 'parameters' => array( 
  419. 'adClientId' => array( 
  420. 'location' => 'path',  
  421. 'type' => 'string',  
  422. 'required' => true,  
  423. ),  
  424. ),  
  425. ), 'list' => array( 
  426. 'path' => 'adclients/{adClientId}/customchannels',  
  427. 'httpMethod' => 'GET',  
  428. 'parameters' => array( 
  429. 'adClientId' => array( 
  430. 'location' => 'path',  
  431. 'type' => 'string',  
  432. 'required' => true,  
  433. ),  
  434. 'pageToken' => array( 
  435. 'location' => 'query',  
  436. 'type' => 'string',  
  437. ),  
  438. 'maxResults' => array( 
  439. 'location' => 'query',  
  440. 'type' => 'integer',  
  441. ),  
  442. ),  
  443. ), 'patch' => array( 
  444. 'path' => 'adclients/{adClientId}/customchannels',  
  445. 'httpMethod' => 'PATCH',  
  446. 'parameters' => array( 
  447. 'adClientId' => array( 
  448. 'location' => 'path',  
  449. 'type' => 'string',  
  450. 'required' => true,  
  451. ),  
  452. 'customChannelId' => array( 
  453. 'location' => 'query',  
  454. 'type' => 'string',  
  455. 'required' => true,  
  456. ),  
  457. ),  
  458. ), 'update' => array( 
  459. 'path' => 'adclients/{adClientId}/customchannels',  
  460. 'httpMethod' => 'PUT',  
  461. 'parameters' => array( 
  462. 'adClientId' => array( 
  463. 'location' => 'path',  
  464. 'type' => 'string',  
  465. 'required' => true,  
  466. ),  
  467. ),  
  468. ),  
  469. ); 
  470. $this->reports = new Google_Service_AdSenseHost_Reports_Resource( 
  471. $this,  
  472. $this->serviceName,  
  473. 'reports',  
  474. array( 
  475. 'methods' => array( 
  476. 'generate' => array( 
  477. 'path' => 'reports',  
  478. 'httpMethod' => 'GET',  
  479. 'parameters' => array( 
  480. 'startDate' => array( 
  481. 'location' => 'query',  
  482. 'type' => 'string',  
  483. 'required' => true,  
  484. ),  
  485. 'endDate' => array( 
  486. 'location' => 'query',  
  487. 'type' => 'string',  
  488. 'required' => true,  
  489. ),  
  490. 'sort' => array( 
  491. 'location' => 'query',  
  492. 'type' => 'string',  
  493. 'repeated' => true,  
  494. ),  
  495. 'locale' => array( 
  496. 'location' => 'query',  
  497. 'type' => 'string',  
  498. ),  
  499. 'metric' => array( 
  500. 'location' => 'query',  
  501. 'type' => 'string',  
  502. 'repeated' => true,  
  503. ),  
  504. 'maxResults' => array( 
  505. 'location' => 'query',  
  506. 'type' => 'integer',  
  507. ),  
  508. 'filter' => array( 
  509. 'location' => 'query',  
  510. 'type' => 'string',  
  511. 'repeated' => true,  
  512. ),  
  513. 'startIndex' => array( 
  514. 'location' => 'query',  
  515. 'type' => 'integer',  
  516. ),  
  517. 'dimension' => array( 
  518. 'location' => 'query',  
  519. 'type' => 'string',  
  520. 'repeated' => true,  
  521. ),  
  522. ),  
  523. ),  
  524. ); 
  525. $this->urlchannels = new Google_Service_AdSenseHost_Urlchannels_Resource( 
  526. $this,  
  527. $this->serviceName,  
  528. 'urlchannels',  
  529. array( 
  530. 'methods' => array( 
  531. 'delete' => array( 
  532. 'path' => 'adclients/{adClientId}/urlchannels/{urlChannelId}',  
  533. 'httpMethod' => 'DELETE',  
  534. 'parameters' => array( 
  535. 'adClientId' => array( 
  536. 'location' => 'path',  
  537. 'type' => 'string',  
  538. 'required' => true,  
  539. ),  
  540. 'urlChannelId' => array( 
  541. 'location' => 'path',  
  542. 'type' => 'string',  
  543. 'required' => true,  
  544. ),  
  545. ),  
  546. ), 'insert' => array( 
  547. 'path' => 'adclients/{adClientId}/urlchannels',  
  548. 'httpMethod' => 'POST',  
  549. 'parameters' => array( 
  550. 'adClientId' => array( 
  551. 'location' => 'path',  
  552. 'type' => 'string',  
  553. 'required' => true,  
  554. ),  
  555. ),  
  556. ), 'list' => array( 
  557. 'path' => 'adclients/{adClientId}/urlchannels',  
  558. 'httpMethod' => 'GET',  
  559. 'parameters' => array( 
  560. 'adClientId' => array( 
  561. 'location' => 'path',  
  562. 'type' => 'string',  
  563. 'required' => true,  
  564. ),  
  565. 'pageToken' => array( 
  566. 'location' => 'query',  
  567. 'type' => 'string',  
  568. ),  
  569. 'maxResults' => array( 
  570. 'location' => 'query',  
  571. 'type' => 'integer',  
  572. ),  
  573. ),  
  574. ),  
  575. );