Google_Service_ShoppingContent

Service definition for ShoppingContent (v2).

Defined (1)

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

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