lemboy-google-api-client 0.9.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (555) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,1713 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module AdsenseV1_4
23
+ # AdSense Management API
24
+ #
25
+ # Accesses AdSense publishers' inventory and generates performance reports.
26
+ #
27
+ # @example
28
+ # require 'google/apis/adsense_v1_4'
29
+ #
30
+ # Adsense = Google::Apis::AdsenseV1_4 # Alias the module
31
+ # service = Adsense::AdSenseService.new
32
+ #
33
+ # @see https://developers.google.com/adsense/management/
34
+ class AdSenseService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ # Overrides userIp if both are provided.
44
+ attr_accessor :quota_user
45
+
46
+ # @return [String]
47
+ # IP address of the site where the request originates. Use this if you want to
48
+ # enforce per-user limits.
49
+ attr_accessor :user_ip
50
+
51
+ def initialize
52
+ super('https://www.googleapis.com/', 'adsense/v1.4/')
53
+ end
54
+
55
+ # Get information about the selected AdSense account.
56
+ # @param [String] account_id
57
+ # Account to get information about.
58
+ # @param [Boolean] tree
59
+ # Whether the tree of sub accounts should be returned.
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
62
+ # @param [String] quota_user
63
+ # Available to use for quota purposes for server-side applications. Can be any
64
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
65
+ # Overrides userIp if both are provided.
66
+ # @param [String] user_ip
67
+ # IP address of the site where the request originates. Use this if you want to
68
+ # enforce per-user limits.
69
+ # @param [Google::Apis::RequestOptions] options
70
+ # Request-specific options
71
+ #
72
+ # @yield [result, err] Result & error if block supplied
73
+ # @yieldparam result [Google::Apis::AdsenseV1_4::Account] parsed result object
74
+ # @yieldparam err [StandardError] error object if request failed
75
+ #
76
+ # @return [Google::Apis::AdsenseV1_4::Account]
77
+ #
78
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
81
+ def get_account(account_id, tree: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
82
+ command = make_simple_command(:get, 'accounts/{accountId}', options)
83
+ command.response_representation = Google::Apis::AdsenseV1_4::Account::Representation
84
+ command.response_class = Google::Apis::AdsenseV1_4::Account
85
+ command.params['accountId'] = account_id unless account_id.nil?
86
+ command.query['tree'] = tree unless tree.nil?
87
+ command.query['fields'] = fields unless fields.nil?
88
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
89
+ command.query['userIp'] = user_ip unless user_ip.nil?
90
+ execute_or_queue_command(command, &block)
91
+ end
92
+
93
+ # List all accounts available to this AdSense account.
94
+ # @param [Fixnum] max_results
95
+ # The maximum number of accounts to include in the response, used for paging.
96
+ # @param [String] page_token
97
+ # A continuation token, used to page through accounts. To retrieve the next page,
98
+ # set this parameter to the value of "nextPageToken" from the previous response.
99
+ # @param [String] fields
100
+ # Selector specifying which fields to include in a partial response.
101
+ # @param [String] quota_user
102
+ # Available to use for quota purposes for server-side applications. Can be any
103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
104
+ # Overrides userIp if both are provided.
105
+ # @param [String] user_ip
106
+ # IP address of the site where the request originates. Use this if you want to
107
+ # enforce per-user limits.
108
+ # @param [Google::Apis::RequestOptions] options
109
+ # Request-specific options
110
+ #
111
+ # @yield [result, err] Result & error if block supplied
112
+ # @yieldparam result [Google::Apis::AdsenseV1_4::Accounts] parsed result object
113
+ # @yieldparam err [StandardError] error object if request failed
114
+ #
115
+ # @return [Google::Apis::AdsenseV1_4::Accounts]
116
+ #
117
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
118
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
119
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
120
+ def list_accounts(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
121
+ command = make_simple_command(:get, 'accounts', options)
122
+ command.response_representation = Google::Apis::AdsenseV1_4::Accounts::Representation
123
+ command.response_class = Google::Apis::AdsenseV1_4::Accounts
124
+ command.query['maxResults'] = max_results unless max_results.nil?
125
+ command.query['pageToken'] = page_token unless page_token.nil?
126
+ command.query['fields'] = fields unless fields.nil?
127
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
128
+ command.query['userIp'] = user_ip unless user_ip.nil?
129
+ execute_or_queue_command(command, &block)
130
+ end
131
+
132
+ # List all ad clients in the specified account.
133
+ # @param [String] account_id
134
+ # Account for which to list ad clients.
135
+ # @param [Fixnum] max_results
136
+ # The maximum number of ad clients to include in the response, used for paging.
137
+ # @param [String] page_token
138
+ # A continuation token, used to page through ad clients. To retrieve the next
139
+ # page, set this parameter to the value of "nextPageToken" from the previous
140
+ # response.
141
+ # @param [String] fields
142
+ # Selector specifying which fields to include in a partial response.
143
+ # @param [String] quota_user
144
+ # Available to use for quota purposes for server-side applications. Can be any
145
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
146
+ # Overrides userIp if both are provided.
147
+ # @param [String] user_ip
148
+ # IP address of the site where the request originates. Use this if you want to
149
+ # enforce per-user limits.
150
+ # @param [Google::Apis::RequestOptions] options
151
+ # Request-specific options
152
+ #
153
+ # @yield [result, err] Result & error if block supplied
154
+ # @yieldparam result [Google::Apis::AdsenseV1_4::AdClients] parsed result object
155
+ # @yieldparam err [StandardError] error object if request failed
156
+ #
157
+ # @return [Google::Apis::AdsenseV1_4::AdClients]
158
+ #
159
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
160
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
161
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
162
+ def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
163
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients', options)
164
+ command.response_representation = Google::Apis::AdsenseV1_4::AdClients::Representation
165
+ command.response_class = Google::Apis::AdsenseV1_4::AdClients
166
+ command.params['accountId'] = account_id unless account_id.nil?
167
+ command.query['maxResults'] = max_results unless max_results.nil?
168
+ command.query['pageToken'] = page_token unless page_token.nil?
169
+ command.query['fields'] = fields unless fields.nil?
170
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
171
+ command.query['userIp'] = user_ip unless user_ip.nil?
172
+ execute_or_queue_command(command, &block)
173
+ end
174
+
175
+ # Gets the specified ad unit in the specified ad client for the specified
176
+ # account.
177
+ # @param [String] account_id
178
+ # Account to which the ad client belongs.
179
+ # @param [String] ad_client_id
180
+ # Ad client for which to get the ad unit.
181
+ # @param [String] ad_unit_id
182
+ # Ad unit to retrieve.
183
+ # @param [String] fields
184
+ # Selector specifying which fields to include in a partial response.
185
+ # @param [String] quota_user
186
+ # Available to use for quota purposes for server-side applications. Can be any
187
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
188
+ # Overrides userIp if both are provided.
189
+ # @param [String] user_ip
190
+ # IP address of the site where the request originates. Use this if you want to
191
+ # enforce per-user limits.
192
+ # @param [Google::Apis::RequestOptions] options
193
+ # Request-specific options
194
+ #
195
+ # @yield [result, err] Result & error if block supplied
196
+ # @yieldparam result [Google::Apis::AdsenseV1_4::AdUnit] parsed result object
197
+ # @yieldparam err [StandardError] error object if request failed
198
+ #
199
+ # @return [Google::Apis::AdsenseV1_4::AdUnit]
200
+ #
201
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
202
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
203
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
204
+ def get_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
205
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', options)
206
+ command.response_representation = Google::Apis::AdsenseV1_4::AdUnit::Representation
207
+ command.response_class = Google::Apis::AdsenseV1_4::AdUnit
208
+ command.params['accountId'] = account_id unless account_id.nil?
209
+ command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
210
+ command.params['adUnitId'] = ad_unit_id unless ad_unit_id.nil?
211
+ command.query['fields'] = fields unless fields.nil?
212
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
213
+ command.query['userIp'] = user_ip unless user_ip.nil?
214
+ execute_or_queue_command(command, &block)
215
+ end
216
+
217
+ # Get ad code for the specified ad unit.
218
+ # @param [String] account_id
219
+ # Account which contains the ad client.
220
+ # @param [String] ad_client_id
221
+ # Ad client with contains the ad unit.
222
+ # @param [String] ad_unit_id
223
+ # Ad unit to get the code for.
224
+ # @param [String] fields
225
+ # Selector specifying which fields to include in a partial response.
226
+ # @param [String] quota_user
227
+ # Available to use for quota purposes for server-side applications. Can be any
228
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
229
+ # Overrides userIp if both are provided.
230
+ # @param [String] user_ip
231
+ # IP address of the site where the request originates. Use this if you want to
232
+ # enforce per-user limits.
233
+ # @param [Google::Apis::RequestOptions] options
234
+ # Request-specific options
235
+ #
236
+ # @yield [result, err] Result & error if block supplied
237
+ # @yieldparam result [Google::Apis::AdsenseV1_4::AdCode] parsed result object
238
+ # @yieldparam err [StandardError] error object if request failed
239
+ #
240
+ # @return [Google::Apis::AdsenseV1_4::AdCode]
241
+ #
242
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
243
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
244
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
245
+ def get_account_ad_unit_ad_code(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
246
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', options)
247
+ command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation
248
+ command.response_class = Google::Apis::AdsenseV1_4::AdCode
249
+ command.params['accountId'] = account_id unless account_id.nil?
250
+ command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
251
+ command.params['adUnitId'] = ad_unit_id unless ad_unit_id.nil?
252
+ command.query['fields'] = fields unless fields.nil?
253
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
254
+ command.query['userIp'] = user_ip unless user_ip.nil?
255
+ execute_or_queue_command(command, &block)
256
+ end
257
+
258
+ # List all ad units in the specified ad client for the specified account.
259
+ # @param [String] account_id
260
+ # Account to which the ad client belongs.
261
+ # @param [String] ad_client_id
262
+ # Ad client for which to list ad units.
263
+ # @param [Boolean] include_inactive
264
+ # Whether to include inactive ad units. Default: true.
265
+ # @param [Fixnum] max_results
266
+ # The maximum number of ad units to include in the response, used for paging.
267
+ # @param [String] page_token
268
+ # A continuation token, used to page through ad units. To retrieve the next page,
269
+ # set this parameter to the value of "nextPageToken" from the previous response.
270
+ # @param [String] fields
271
+ # Selector specifying which fields to include in a partial response.
272
+ # @param [String] quota_user
273
+ # Available to use for quota purposes for server-side applications. Can be any
274
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
275
+ # Overrides userIp if both are provided.
276
+ # @param [String] user_ip
277
+ # IP address of the site where the request originates. Use this if you want to
278
+ # enforce per-user limits.
279
+ # @param [Google::Apis::RequestOptions] options
280
+ # Request-specific options
281
+ #
282
+ # @yield [result, err] Result & error if block supplied
283
+ # @yieldparam result [Google::Apis::AdsenseV1_4::AdUnits] parsed result object
284
+ # @yieldparam err [StandardError] error object if request failed
285
+ #
286
+ # @return [Google::Apis::AdsenseV1_4::AdUnits]
287
+ #
288
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
289
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
290
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
291
+ def list_account_ad_units(account_id, ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
292
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
293
+ command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
294
+ command.response_class = Google::Apis::AdsenseV1_4::AdUnits
295
+ command.params['accountId'] = account_id unless account_id.nil?
296
+ command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
297
+ command.query['includeInactive'] = include_inactive unless include_inactive.nil?
298
+ command.query['maxResults'] = max_results unless max_results.nil?
299
+ command.query['pageToken'] = page_token unless page_token.nil?
300
+ command.query['fields'] = fields unless fields.nil?
301
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
302
+ command.query['userIp'] = user_ip unless user_ip.nil?
303
+ execute_or_queue_command(command, &block)
304
+ end
305
+
306
+ # List all custom channels which the specified ad unit belongs to.
307
+ # @param [String] account_id
308
+ # Account to which the ad client belongs.
309
+ # @param [String] ad_client_id
310
+ # Ad client which contains the ad unit.
311
+ # @param [String] ad_unit_id
312
+ # Ad unit for which to list custom channels.
313
+ # @param [Fixnum] max_results
314
+ # The maximum number of custom channels to include in the response, used for
315
+ # paging.
316
+ # @param [String] page_token
317
+ # A continuation token, used to page through custom channels. To retrieve the
318
+ # next page, set this parameter to the value of "nextPageToken" from the
319
+ # previous response.
320
+ # @param [String] fields
321
+ # Selector specifying which fields to include in a partial response.
322
+ # @param [String] quota_user
323
+ # Available to use for quota purposes for server-side applications. Can be any
324
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
325
+ # Overrides userIp if both are provided.
326
+ # @param [String] user_ip
327
+ # IP address of the site where the request originates. Use this if you want to
328
+ # enforce per-user limits.
329
+ # @param [Google::Apis::RequestOptions] options
330
+ # Request-specific options
331
+ #
332
+ # @yield [result, err] Result & error if block supplied
333
+ # @yieldparam result [Google::Apis::AdsenseV1_4::CustomChannels] parsed result object
334
+ # @yieldparam err [StandardError] error object if request failed
335
+ #
336
+ # @return [Google::Apis::AdsenseV1_4::CustomChannels]
337
+ #
338
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
339
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
340
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
341
+ def list_account_ad_unit_custom_channels(account_id, ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
342
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels', options)
343
+ command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
344
+ command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
345
+ command.params['accountId'] = account_id unless account_id.nil?
346
+ command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
347
+ command.params['adUnitId'] = ad_unit_id unless ad_unit_id.nil?
348
+ command.query['maxResults'] = max_results unless max_results.nil?
349
+ command.query['pageToken'] = page_token unless page_token.nil?
350
+ command.query['fields'] = fields unless fields.nil?
351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
352
+ command.query['userIp'] = user_ip unless user_ip.nil?
353
+ execute_or_queue_command(command, &block)
354
+ end
355
+
356
+ # Dismiss (delete) the specified alert from the specified publisher AdSense
357
+ # account.
358
+ # @param [String] account_id
359
+ # Account which contains the ad unit.
360
+ # @param [String] alert_id
361
+ # Alert to delete.
362
+ # @param [String] fields
363
+ # Selector specifying which fields to include in a partial response.
364
+ # @param [String] quota_user
365
+ # Available to use for quota purposes for server-side applications. Can be any
366
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
367
+ # Overrides userIp if both are provided.
368
+ # @param [String] user_ip
369
+ # IP address of the site where the request originates. Use this if you want to
370
+ # enforce per-user limits.
371
+ # @param [Google::Apis::RequestOptions] options
372
+ # Request-specific options
373
+ #
374
+ # @yield [result, err] Result & error if block supplied
375
+ # @yieldparam result [NilClass] No result returned for this method
376
+ # @yieldparam err [StandardError] error object if request failed
377
+ #
378
+ # @return [void]
379
+ #
380
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
381
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
382
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
383
+ def delete_account_alert(account_id, alert_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
384
+ command = make_simple_command(:delete, 'accounts/{accountId}/alerts/{alertId}', options)
385
+ command.params['accountId'] = account_id unless account_id.nil?
386
+ command.params['alertId'] = alert_id unless alert_id.nil?
387
+ command.query['fields'] = fields unless fields.nil?
388
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
389
+ command.query['userIp'] = user_ip unless user_ip.nil?
390
+ execute_or_queue_command(command, &block)
391
+ end
392
+
393
+ # List the alerts for the specified AdSense account.
394
+ # @param [String] account_id
395
+ # Account for which to retrieve the alerts.
396
+ # @param [String] locale
397
+ # The locale to use for translating alert messages. The account locale will be
398
+ # used if this is not supplied. The AdSense default (English) will be used if
399
+ # the supplied locale is invalid or unsupported.
400
+ # @param [String] fields
401
+ # Selector specifying which fields to include in a partial response.
402
+ # @param [String] quota_user
403
+ # Available to use for quota purposes for server-side applications. Can be any
404
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
405
+ # Overrides userIp if both are provided.
406
+ # @param [String] user_ip
407
+ # IP address of the site where the request originates. Use this if you want to
408
+ # enforce per-user limits.
409
+ # @param [Google::Apis::RequestOptions] options
410
+ # Request-specific options
411
+ #
412
+ # @yield [result, err] Result & error if block supplied
413
+ # @yieldparam result [Google::Apis::AdsenseV1_4::Alerts] parsed result object
414
+ # @yieldparam err [StandardError] error object if request failed
415
+ #
416
+ # @return [Google::Apis::AdsenseV1_4::Alerts]
417
+ #
418
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
419
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
420
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
421
+ def list_account_alerts(account_id, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
422
+ command = make_simple_command(:get, 'accounts/{accountId}/alerts', options)
423
+ command.response_representation = Google::Apis::AdsenseV1_4::Alerts::Representation
424
+ command.response_class = Google::Apis::AdsenseV1_4::Alerts
425
+ command.params['accountId'] = account_id unless account_id.nil?
426
+ command.query['locale'] = locale unless locale.nil?
427
+ command.query['fields'] = fields unless fields.nil?
428
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
429
+ command.query['userIp'] = user_ip unless user_ip.nil?
430
+ execute_or_queue_command(command, &block)
431
+ end
432
+
433
+ # Get the specified custom channel from the specified ad client for the
434
+ # specified account.
435
+ # @param [String] account_id
436
+ # Account to which the ad client belongs.
437
+ # @param [String] ad_client_id
438
+ # Ad client which contains the custom channel.
439
+ # @param [String] custom_channel_id
440
+ # Custom channel to retrieve.
441
+ # @param [String] fields
442
+ # Selector specifying which fields to include in a partial response.
443
+ # @param [String] quota_user
444
+ # Available to use for quota purposes for server-side applications. Can be any
445
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
446
+ # Overrides userIp if both are provided.
447
+ # @param [String] user_ip
448
+ # IP address of the site where the request originates. Use this if you want to
449
+ # enforce per-user limits.
450
+ # @param [Google::Apis::RequestOptions] options
451
+ # Request-specific options
452
+ #
453
+ # @yield [result, err] Result & error if block supplied
454
+ # @yieldparam result [Google::Apis::AdsenseV1_4::CustomChannel] parsed result object
455
+ # @yieldparam err [StandardError] error object if request failed
456
+ #
457
+ # @return [Google::Apis::AdsenseV1_4::CustomChannel]
458
+ #
459
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
460
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
461
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
462
+ def get_account_custom_channel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
463
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', options)
464
+ command.response_representation = Google::Apis::AdsenseV1_4::CustomChannel::Representation
465
+ command.response_class = Google::Apis::AdsenseV1_4::CustomChannel
466
+ command.params['accountId'] = account_id unless account_id.nil?
467
+ command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
468
+ command.params['customChannelId'] = custom_channel_id unless custom_channel_id.nil?
469
+ command.query['fields'] = fields unless fields.nil?
470
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
471
+ command.query['userIp'] = user_ip unless user_ip.nil?
472
+ execute_or_queue_command(command, &block)
473
+ end
474
+
475
+ # List all custom channels in the specified ad client for the specified account.
476
+ # @param [String] account_id
477
+ # Account to which the ad client belongs.
478
+ # @param [String] ad_client_id
479
+ # Ad client for which to list custom channels.
480
+ # @param [Fixnum] max_results
481
+ # The maximum number of custom channels to include in the response, used for
482
+ # paging.
483
+ # @param [String] page_token
484
+ # A continuation token, used to page through custom channels. To retrieve the
485
+ # next page, set this parameter to the value of "nextPageToken" from the
486
+ # previous response.
487
+ # @param [String] fields
488
+ # Selector specifying which fields to include in a partial response.
489
+ # @param [String] quota_user
490
+ # Available to use for quota purposes for server-side applications. Can be any
491
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
492
+ # Overrides userIp if both are provided.
493
+ # @param [String] user_ip
494
+ # IP address of the site where the request originates. Use this if you want to
495
+ # enforce per-user limits.
496
+ # @param [Google::Apis::RequestOptions] options
497
+ # Request-specific options
498
+ #
499
+ # @yield [result, err] Result & error if block supplied
500
+ # @yieldparam result [Google::Apis::AdsenseV1_4::CustomChannels] parsed result object
501
+ # @yieldparam err [StandardError] error object if request failed
502
+ #
503
+ # @return [Google::Apis::AdsenseV1_4::CustomChannels]
504
+ #
505
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
506
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
507
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
508
+ def list_account_custom_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
509
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels', options)
510
+ command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
511
+ command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
512
+ command.params['accountId'] = account_id unless account_id.nil?
513
+ command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
514
+ command.query['maxResults'] = max_results unless max_results.nil?
515
+ command.query['pageToken'] = page_token unless page_token.nil?
516
+ command.query['fields'] = fields unless fields.nil?
517
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
518
+ command.query['userIp'] = user_ip unless user_ip.nil?
519
+ execute_or_queue_command(command, &block)
520
+ end
521
+
522
+ # List all ad units in the specified custom channel.
523
+ # @param [String] account_id
524
+ # Account to which the ad client belongs.
525
+ # @param [String] ad_client_id
526
+ # Ad client which contains the custom channel.
527
+ # @param [String] custom_channel_id
528
+ # Custom channel for which to list ad units.
529
+ # @param [Boolean] include_inactive
530
+ # Whether to include inactive ad units. Default: true.
531
+ # @param [Fixnum] max_results
532
+ # The maximum number of ad units to include in the response, used for paging.
533
+ # @param [String] page_token
534
+ # A continuation token, used to page through ad units. To retrieve the next page,
535
+ # set this parameter to the value of "nextPageToken" from the previous response.
536
+ # @param [String] fields
537
+ # Selector specifying which fields to include in a partial response.
538
+ # @param [String] quota_user
539
+ # Available to use for quota purposes for server-side applications. Can be any
540
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
541
+ # Overrides userIp if both are provided.
542
+ # @param [String] user_ip
543
+ # IP address of the site where the request originates. Use this if you want to
544
+ # enforce per-user limits.
545
+ # @param [Google::Apis::RequestOptions] options
546
+ # Request-specific options
547
+ #
548
+ # @yield [result, err] Result & error if block supplied
549
+ # @yieldparam result [Google::Apis::AdsenseV1_4::AdUnits] parsed result object
550
+ # @yieldparam err [StandardError] error object if request failed
551
+ #
552
+ # @return [Google::Apis::AdsenseV1_4::AdUnits]
553
+ #
554
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
555
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
556
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
557
+ def list_account_custom_channel_ad_units(account_id, ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
558
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits', options)
559
+ command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
560
+ command.response_class = Google::Apis::AdsenseV1_4::AdUnits
561
+ command.params['accountId'] = account_id unless account_id.nil?
562
+ command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
563
+ command.params['customChannelId'] = custom_channel_id unless custom_channel_id.nil?
564
+ command.query['includeInactive'] = include_inactive unless include_inactive.nil?
565
+ command.query['maxResults'] = max_results unless max_results.nil?
566
+ command.query['pageToken'] = page_token unless page_token.nil?
567
+ command.query['fields'] = fields unless fields.nil?
568
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
569
+ command.query['userIp'] = user_ip unless user_ip.nil?
570
+ execute_or_queue_command(command, &block)
571
+ end
572
+
573
+ # List the payments for the specified AdSense account.
574
+ # @param [String] account_id
575
+ # Account for which to retrieve the payments.
576
+ # @param [String] fields
577
+ # Selector specifying which fields to include in a partial response.
578
+ # @param [String] quota_user
579
+ # Available to use for quota purposes for server-side applications. Can be any
580
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
581
+ # Overrides userIp if both are provided.
582
+ # @param [String] user_ip
583
+ # IP address of the site where the request originates. Use this if you want to
584
+ # enforce per-user limits.
585
+ # @param [Google::Apis::RequestOptions] options
586
+ # Request-specific options
587
+ #
588
+ # @yield [result, err] Result & error if block supplied
589
+ # @yieldparam result [Google::Apis::AdsenseV1_4::Payments] parsed result object
590
+ # @yieldparam err [StandardError] error object if request failed
591
+ #
592
+ # @return [Google::Apis::AdsenseV1_4::Payments]
593
+ #
594
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
595
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
596
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
597
+ def list_account_payments(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
598
+ command = make_simple_command(:get, 'accounts/{accountId}/payments', options)
599
+ command.response_representation = Google::Apis::AdsenseV1_4::Payments::Representation
600
+ command.response_class = Google::Apis::AdsenseV1_4::Payments
601
+ command.params['accountId'] = account_id unless account_id.nil?
602
+ command.query['fields'] = fields unless fields.nil?
603
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
604
+ command.query['userIp'] = user_ip unless user_ip.nil?
605
+ execute_or_queue_command(command, &block)
606
+ end
607
+
608
+ # Generate an AdSense report based on the report request sent in the query
609
+ # parameters. Returns the result as JSON; to retrieve output in CSV format
610
+ # specify "alt=csv" as a query parameter.
611
+ # @param [String] account_id
612
+ # Account upon which to report.
613
+ # @param [String] start_date
614
+ # Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
615
+ # @param [String] end_date
616
+ # End of the date range to report on in "YYYY-MM-DD" format, inclusive.
617
+ # @param [String] currency
618
+ # Optional currency to use when reporting on monetary metrics. Defaults to the
619
+ # account's currency if not set.
620
+ # @param [Array<String>, String] dimension
621
+ # Dimensions to base the report on.
622
+ # @param [Array<String>, String] filter
623
+ # Filters to be run on the report.
624
+ # @param [String] locale
625
+ # Optional locale to use for translating report output to a local language.
626
+ # Defaults to "en_US" if not specified.
627
+ # @param [Fixnum] max_results
628
+ # The maximum number of rows of report data to return.
629
+ # @param [Array<String>, String] metric
630
+ # Numeric columns to include in the report.
631
+ # @param [Array<String>, String] sort
632
+ # The name of a dimension or metric to sort the resulting report on, optionally
633
+ # prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is
634
+ # specified, the column is sorted ascending.
635
+ # @param [Fixnum] start_index
636
+ # Index of the first row of report data to return.
637
+ # @param [Boolean] use_timezone_reporting
638
+ # Whether the report should be generated in the AdSense account's local timezone.
639
+ # If false default PST/PDT timezone will be used.
640
+ # @param [String] fields
641
+ # Selector specifying which fields to include in a partial response.
642
+ # @param [String] quota_user
643
+ # Available to use for quota purposes for server-side applications. Can be any
644
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
645
+ # Overrides userIp if both are provided.
646
+ # @param [String] user_ip
647
+ # IP address of the site where the request originates. Use this if you want to
648
+ # enforce per-user limits.
649
+ # @param [IO, String] download_dest
650
+ # IO stream or filename to receive content download
651
+ # @param [Google::Apis::RequestOptions] options
652
+ # Request-specific options
653
+ #
654
+ # @yield [result, err] Result & error if block supplied
655
+ # @yieldparam result [Google::Apis::AdsenseV1_4::GenerateReportResponse] parsed result object
656
+ # @yieldparam err [StandardError] error object if request failed
657
+ #
658
+ # @return [Google::Apis::AdsenseV1_4::GenerateReportResponse]
659
+ #
660
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
661
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
662
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
663
+ def generate_account_report(account_id, start_date, end_date, currency: nil, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, use_timezone_reporting: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
664
+ if download_dest.nil?
665
+ command = make_simple_command(:get, 'accounts/{accountId}/reports', options)
666
+ else
667
+ command = make_download_command(:get, 'accounts/{accountId}/reports', options)
668
+ command.download_dest = download_dest
669
+ end
670
+ command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
671
+ command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse
672
+ command.params['accountId'] = account_id unless account_id.nil?
673
+ command.query['currency'] = currency unless currency.nil?
674
+ command.query['dimension'] = dimension unless dimension.nil?
675
+ command.query['endDate'] = end_date unless end_date.nil?
676
+ command.query['filter'] = filter unless filter.nil?
677
+ command.query['locale'] = locale unless locale.nil?
678
+ command.query['maxResults'] = max_results unless max_results.nil?
679
+ command.query['metric'] = metric unless metric.nil?
680
+ command.query['sort'] = sort unless sort.nil?
681
+ command.query['startDate'] = start_date unless start_date.nil?
682
+ command.query['startIndex'] = start_index unless start_index.nil?
683
+ command.query['useTimezoneReporting'] = use_timezone_reporting unless use_timezone_reporting.nil?
684
+ command.query['fields'] = fields unless fields.nil?
685
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
686
+ command.query['userIp'] = user_ip unless user_ip.nil?
687
+ execute_or_queue_command(command, &block)
688
+ end
689
+
690
+ # Generate an AdSense report based on the saved report ID sent in the query
691
+ # parameters.
692
+ # @param [String] account_id
693
+ # Account to which the saved reports belong.
694
+ # @param [String] saved_report_id
695
+ # The saved report to retrieve.
696
+ # @param [String] locale
697
+ # Optional locale to use for translating report output to a local language.
698
+ # Defaults to "en_US" if not specified.
699
+ # @param [Fixnum] max_results
700
+ # The maximum number of rows of report data to return.
701
+ # @param [Fixnum] start_index
702
+ # Index of the first row of report data to return.
703
+ # @param [String] fields
704
+ # Selector specifying which fields to include in a partial response.
705
+ # @param [String] quota_user
706
+ # Available to use for quota purposes for server-side applications. Can be any
707
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
708
+ # Overrides userIp if both are provided.
709
+ # @param [String] user_ip
710
+ # IP address of the site where the request originates. Use this if you want to
711
+ # enforce per-user limits.
712
+ # @param [Google::Apis::RequestOptions] options
713
+ # Request-specific options
714
+ #
715
+ # @yield [result, err] Result & error if block supplied
716
+ # @yieldparam result [Google::Apis::AdsenseV1_4::GenerateReportResponse] parsed result object
717
+ # @yieldparam err [StandardError] error object if request failed
718
+ #
719
+ # @return [Google::Apis::AdsenseV1_4::GenerateReportResponse]
720
+ #
721
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
722
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
723
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
724
+ def generate_account_saved_report(account_id, saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
725
+ command = make_simple_command(:get, 'accounts/{accountId}/reports/{savedReportId}', options)
726
+ command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
727
+ command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse
728
+ command.params['accountId'] = account_id unless account_id.nil?
729
+ command.params['savedReportId'] = saved_report_id unless saved_report_id.nil?
730
+ command.query['locale'] = locale unless locale.nil?
731
+ command.query['maxResults'] = max_results unless max_results.nil?
732
+ command.query['startIndex'] = start_index unless start_index.nil?
733
+ command.query['fields'] = fields unless fields.nil?
734
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
735
+ command.query['userIp'] = user_ip unless user_ip.nil?
736
+ execute_or_queue_command(command, &block)
737
+ end
738
+
739
+ # List all saved reports in the specified AdSense account.
740
+ # @param [String] account_id
741
+ # Account to which the saved reports belong.
742
+ # @param [Fixnum] max_results
743
+ # The maximum number of saved reports to include in the response, used for
744
+ # paging.
745
+ # @param [String] page_token
746
+ # A continuation token, used to page through saved reports. To retrieve the next
747
+ # page, set this parameter to the value of "nextPageToken" from the previous
748
+ # response.
749
+ # @param [String] fields
750
+ # Selector specifying which fields to include in a partial response.
751
+ # @param [String] quota_user
752
+ # Available to use for quota purposes for server-side applications. Can be any
753
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
754
+ # Overrides userIp if both are provided.
755
+ # @param [String] user_ip
756
+ # IP address of the site where the request originates. Use this if you want to
757
+ # enforce per-user limits.
758
+ # @param [Google::Apis::RequestOptions] options
759
+ # Request-specific options
760
+ #
761
+ # @yield [result, err] Result & error if block supplied
762
+ # @yieldparam result [Google::Apis::AdsenseV1_4::SavedReports] parsed result object
763
+ # @yieldparam err [StandardError] error object if request failed
764
+ #
765
+ # @return [Google::Apis::AdsenseV1_4::SavedReports]
766
+ #
767
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
768
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
769
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
770
+ def list_account_saved_reports(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
771
+ command = make_simple_command(:get, 'accounts/{accountId}/reports/saved', options)
772
+ command.response_representation = Google::Apis::AdsenseV1_4::SavedReports::Representation
773
+ command.response_class = Google::Apis::AdsenseV1_4::SavedReports
774
+ command.params['accountId'] = account_id unless account_id.nil?
775
+ command.query['maxResults'] = max_results unless max_results.nil?
776
+ command.query['pageToken'] = page_token unless page_token.nil?
777
+ command.query['fields'] = fields unless fields.nil?
778
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
779
+ command.query['userIp'] = user_ip unless user_ip.nil?
780
+ execute_or_queue_command(command, &block)
781
+ end
782
+
783
+ # List a specific saved ad style for the specified account.
784
+ # @param [String] account_id
785
+ # Account for which to get the saved ad style.
786
+ # @param [String] saved_ad_style_id
787
+ # Saved ad style to retrieve.
788
+ # @param [String] fields
789
+ # Selector specifying which fields to include in a partial response.
790
+ # @param [String] quota_user
791
+ # Available to use for quota purposes for server-side applications. Can be any
792
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
793
+ # Overrides userIp if both are provided.
794
+ # @param [String] user_ip
795
+ # IP address of the site where the request originates. Use this if you want to
796
+ # enforce per-user limits.
797
+ # @param [Google::Apis::RequestOptions] options
798
+ # Request-specific options
799
+ #
800
+ # @yield [result, err] Result & error if block supplied
801
+ # @yieldparam result [Google::Apis::AdsenseV1_4::SavedAdStyle] parsed result object
802
+ # @yieldparam err [StandardError] error object if request failed
803
+ #
804
+ # @return [Google::Apis::AdsenseV1_4::SavedAdStyle]
805
+ #
806
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
807
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
808
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
809
+ def get_account_saved_ad_style(account_id, saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
810
+ command = make_simple_command(:get, 'accounts/{accountId}/savedadstyles/{savedAdStyleId}', options)
811
+ command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyle::Representation
812
+ command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyle
813
+ command.params['accountId'] = account_id unless account_id.nil?
814
+ command.params['savedAdStyleId'] = saved_ad_style_id unless saved_ad_style_id.nil?
815
+ command.query['fields'] = fields unless fields.nil?
816
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
817
+ command.query['userIp'] = user_ip unless user_ip.nil?
818
+ execute_or_queue_command(command, &block)
819
+ end
820
+
821
+ # List all saved ad styles in the specified account.
822
+ # @param [String] account_id
823
+ # Account for which to list saved ad styles.
824
+ # @param [Fixnum] max_results
825
+ # The maximum number of saved ad styles to include in the response, used for
826
+ # paging.
827
+ # @param [String] page_token
828
+ # A continuation token, used to page through saved ad styles. To retrieve the
829
+ # next page, set this parameter to the value of "nextPageToken" from the
830
+ # previous response.
831
+ # @param [String] fields
832
+ # Selector specifying which fields to include in a partial response.
833
+ # @param [String] quota_user
834
+ # Available to use for quota purposes for server-side applications. Can be any
835
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
836
+ # Overrides userIp if both are provided.
837
+ # @param [String] user_ip
838
+ # IP address of the site where the request originates. Use this if you want to
839
+ # enforce per-user limits.
840
+ # @param [Google::Apis::RequestOptions] options
841
+ # Request-specific options
842
+ #
843
+ # @yield [result, err] Result & error if block supplied
844
+ # @yieldparam result [Google::Apis::AdsenseV1_4::SavedAdStyles] parsed result object
845
+ # @yieldparam err [StandardError] error object if request failed
846
+ #
847
+ # @return [Google::Apis::AdsenseV1_4::SavedAdStyles]
848
+ #
849
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
850
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
851
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
852
+ def list_account_saved_ad_styles(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
853
+ command = make_simple_command(:get, 'accounts/{accountId}/savedadstyles', options)
854
+ command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyles::Representation
855
+ command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyles
856
+ command.params['accountId'] = account_id unless account_id.nil?
857
+ command.query['maxResults'] = max_results unless max_results.nil?
858
+ command.query['pageToken'] = page_token unless page_token.nil?
859
+ command.query['fields'] = fields unless fields.nil?
860
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
861
+ command.query['userIp'] = user_ip unless user_ip.nil?
862
+ execute_or_queue_command(command, &block)
863
+ end
864
+
865
+ # List all URL channels in the specified ad client for the specified account.
866
+ # @param [String] account_id
867
+ # Account to which the ad client belongs.
868
+ # @param [String] ad_client_id
869
+ # Ad client for which to list URL channels.
870
+ # @param [Fixnum] max_results
871
+ # The maximum number of URL channels to include in the response, used for paging.
872
+ # @param [String] page_token
873
+ # A continuation token, used to page through URL channels. To retrieve the next
874
+ # page, set this parameter to the value of "nextPageToken" from the previous
875
+ # response.
876
+ # @param [String] fields
877
+ # Selector specifying which fields to include in a partial response.
878
+ # @param [String] quota_user
879
+ # Available to use for quota purposes for server-side applications. Can be any
880
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
881
+ # Overrides userIp if both are provided.
882
+ # @param [String] user_ip
883
+ # IP address of the site where the request originates. Use this if you want to
884
+ # enforce per-user limits.
885
+ # @param [Google::Apis::RequestOptions] options
886
+ # Request-specific options
887
+ #
888
+ # @yield [result, err] Result & error if block supplied
889
+ # @yieldparam result [Google::Apis::AdsenseV1_4::UrlChannels] parsed result object
890
+ # @yieldparam err [StandardError] error object if request failed
891
+ #
892
+ # @return [Google::Apis::AdsenseV1_4::UrlChannels]
893
+ #
894
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
895
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
896
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
897
+ def list_account_url_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
898
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/urlchannels', options)
899
+ command.response_representation = Google::Apis::AdsenseV1_4::UrlChannels::Representation
900
+ command.response_class = Google::Apis::AdsenseV1_4::UrlChannels
901
+ command.params['accountId'] = account_id unless account_id.nil?
902
+ command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
903
+ command.query['maxResults'] = max_results unless max_results.nil?
904
+ command.query['pageToken'] = page_token unless page_token.nil?
905
+ command.query['fields'] = fields unless fields.nil?
906
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
907
+ command.query['userIp'] = user_ip unless user_ip.nil?
908
+ execute_or_queue_command(command, &block)
909
+ end
910
+
911
+ # List all ad clients in this AdSense account.
912
+ # @param [Fixnum] max_results
913
+ # The maximum number of ad clients to include in the response, used for paging.
914
+ # @param [String] page_token
915
+ # A continuation token, used to page through ad clients. To retrieve the next
916
+ # page, set this parameter to the value of "nextPageToken" from the previous
917
+ # response.
918
+ # @param [String] fields
919
+ # Selector specifying which fields to include in a partial response.
920
+ # @param [String] quota_user
921
+ # Available to use for quota purposes for server-side applications. Can be any
922
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
923
+ # Overrides userIp if both are provided.
924
+ # @param [String] user_ip
925
+ # IP address of the site where the request originates. Use this if you want to
926
+ # enforce per-user limits.
927
+ # @param [Google::Apis::RequestOptions] options
928
+ # Request-specific options
929
+ #
930
+ # @yield [result, err] Result & error if block supplied
931
+ # @yieldparam result [Google::Apis::AdsenseV1_4::AdClients] parsed result object
932
+ # @yieldparam err [StandardError] error object if request failed
933
+ #
934
+ # @return [Google::Apis::AdsenseV1_4::AdClients]
935
+ #
936
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
937
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
938
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
939
+ def list_ad_clients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
940
+ command = make_simple_command(:get, 'adclients', options)
941
+ command.response_representation = Google::Apis::AdsenseV1_4::AdClients::Representation
942
+ command.response_class = Google::Apis::AdsenseV1_4::AdClients
943
+ command.query['maxResults'] = max_results unless max_results.nil?
944
+ command.query['pageToken'] = page_token unless page_token.nil?
945
+ command.query['fields'] = fields unless fields.nil?
946
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
947
+ command.query['userIp'] = user_ip unless user_ip.nil?
948
+ execute_or_queue_command(command, &block)
949
+ end
950
+
951
+ # Gets the specified ad unit in the specified ad client.
952
+ # @param [String] ad_client_id
953
+ # Ad client for which to get the ad unit.
954
+ # @param [String] ad_unit_id
955
+ # Ad unit to retrieve.
956
+ # @param [String] fields
957
+ # Selector specifying which fields to include in a partial response.
958
+ # @param [String] quota_user
959
+ # Available to use for quota purposes for server-side applications. Can be any
960
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
961
+ # Overrides userIp if both are provided.
962
+ # @param [String] user_ip
963
+ # IP address of the site where the request originates. Use this if you want to
964
+ # enforce per-user limits.
965
+ # @param [Google::Apis::RequestOptions] options
966
+ # Request-specific options
967
+ #
968
+ # @yield [result, err] Result & error if block supplied
969
+ # @yieldparam result [Google::Apis::AdsenseV1_4::AdUnit] parsed result object
970
+ # @yieldparam err [StandardError] error object if request failed
971
+ #
972
+ # @return [Google::Apis::AdsenseV1_4::AdUnit]
973
+ #
974
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
975
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
976
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
977
+ def get_ad_unit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
978
+ command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}', options)
979
+ command.response_representation = Google::Apis::AdsenseV1_4::AdUnit::Representation
980
+ command.response_class = Google::Apis::AdsenseV1_4::AdUnit
981
+ command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
982
+ command.params['adUnitId'] = ad_unit_id unless ad_unit_id.nil?
983
+ command.query['fields'] = fields unless fields.nil?
984
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
985
+ command.query['userIp'] = user_ip unless user_ip.nil?
986
+ execute_or_queue_command(command, &block)
987
+ end
988
+
989
+ # Get ad code for the specified ad unit.
990
+ # @param [String] ad_client_id
991
+ # Ad client with contains the ad unit.
992
+ # @param [String] ad_unit_id
993
+ # Ad unit to get the code for.
994
+ # @param [String] fields
995
+ # Selector specifying which fields to include in a partial response.
996
+ # @param [String] quota_user
997
+ # Available to use for quota purposes for server-side applications. Can be any
998
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
999
+ # Overrides userIp if both are provided.
1000
+ # @param [String] user_ip
1001
+ # IP address of the site where the request originates. Use this if you want to
1002
+ # enforce per-user limits.
1003
+ # @param [Google::Apis::RequestOptions] options
1004
+ # Request-specific options
1005
+ #
1006
+ # @yield [result, err] Result & error if block supplied
1007
+ # @yieldparam result [Google::Apis::AdsenseV1_4::AdCode] parsed result object
1008
+ # @yieldparam err [StandardError] error object if request failed
1009
+ #
1010
+ # @return [Google::Apis::AdsenseV1_4::AdCode]
1011
+ #
1012
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1013
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1014
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1015
+ def get_ad_code_ad_unit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1016
+ command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}/adcode', options)
1017
+ command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation
1018
+ command.response_class = Google::Apis::AdsenseV1_4::AdCode
1019
+ command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
1020
+ command.params['adUnitId'] = ad_unit_id unless ad_unit_id.nil?
1021
+ command.query['fields'] = fields unless fields.nil?
1022
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1023
+ command.query['userIp'] = user_ip unless user_ip.nil?
1024
+ execute_or_queue_command(command, &block)
1025
+ end
1026
+
1027
+ # List all ad units in the specified ad client for this AdSense account.
1028
+ # @param [String] ad_client_id
1029
+ # Ad client for which to list ad units.
1030
+ # @param [Boolean] include_inactive
1031
+ # Whether to include inactive ad units. Default: true.
1032
+ # @param [Fixnum] max_results
1033
+ # The maximum number of ad units to include in the response, used for paging.
1034
+ # @param [String] page_token
1035
+ # A continuation token, used to page through ad units. To retrieve the next page,
1036
+ # set this parameter to the value of "nextPageToken" from the previous response.
1037
+ # @param [String] fields
1038
+ # Selector specifying which fields to include in a partial response.
1039
+ # @param [String] quota_user
1040
+ # Available to use for quota purposes for server-side applications. Can be any
1041
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1042
+ # Overrides userIp if both are provided.
1043
+ # @param [String] user_ip
1044
+ # IP address of the site where the request originates. Use this if you want to
1045
+ # enforce per-user limits.
1046
+ # @param [Google::Apis::RequestOptions] options
1047
+ # Request-specific options
1048
+ #
1049
+ # @yield [result, err] Result & error if block supplied
1050
+ # @yieldparam result [Google::Apis::AdsenseV1_4::AdUnits] parsed result object
1051
+ # @yieldparam err [StandardError] error object if request failed
1052
+ #
1053
+ # @return [Google::Apis::AdsenseV1_4::AdUnits]
1054
+ #
1055
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1056
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1057
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1058
+ def list_ad_units(ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1059
+ command = make_simple_command(:get, 'adclients/{adClientId}/adunits', options)
1060
+ command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
1061
+ command.response_class = Google::Apis::AdsenseV1_4::AdUnits
1062
+ command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
1063
+ command.query['includeInactive'] = include_inactive unless include_inactive.nil?
1064
+ command.query['maxResults'] = max_results unless max_results.nil?
1065
+ command.query['pageToken'] = page_token unless page_token.nil?
1066
+ command.query['fields'] = fields unless fields.nil?
1067
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1068
+ command.query['userIp'] = user_ip unless user_ip.nil?
1069
+ execute_or_queue_command(command, &block)
1070
+ end
1071
+
1072
+ # List all custom channels which the specified ad unit belongs to.
1073
+ # @param [String] ad_client_id
1074
+ # Ad client which contains the ad unit.
1075
+ # @param [String] ad_unit_id
1076
+ # Ad unit for which to list custom channels.
1077
+ # @param [Fixnum] max_results
1078
+ # The maximum number of custom channels to include in the response, used for
1079
+ # paging.
1080
+ # @param [String] page_token
1081
+ # A continuation token, used to page through custom channels. To retrieve the
1082
+ # next page, set this parameter to the value of "nextPageToken" from the
1083
+ # previous response.
1084
+ # @param [String] fields
1085
+ # Selector specifying which fields to include in a partial response.
1086
+ # @param [String] quota_user
1087
+ # Available to use for quota purposes for server-side applications. Can be any
1088
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1089
+ # Overrides userIp if both are provided.
1090
+ # @param [String] user_ip
1091
+ # IP address of the site where the request originates. Use this if you want to
1092
+ # enforce per-user limits.
1093
+ # @param [Google::Apis::RequestOptions] options
1094
+ # Request-specific options
1095
+ #
1096
+ # @yield [result, err] Result & error if block supplied
1097
+ # @yieldparam result [Google::Apis::AdsenseV1_4::CustomChannels] parsed result object
1098
+ # @yieldparam err [StandardError] error object if request failed
1099
+ #
1100
+ # @return [Google::Apis::AdsenseV1_4::CustomChannels]
1101
+ #
1102
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1103
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1104
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1105
+ def list_ad_unit_custom_channels(ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1106
+ command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', options)
1107
+ command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
1108
+ command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
1109
+ command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
1110
+ command.params['adUnitId'] = ad_unit_id unless ad_unit_id.nil?
1111
+ command.query['maxResults'] = max_results unless max_results.nil?
1112
+ command.query['pageToken'] = page_token unless page_token.nil?
1113
+ command.query['fields'] = fields unless fields.nil?
1114
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1115
+ command.query['userIp'] = user_ip unless user_ip.nil?
1116
+ execute_or_queue_command(command, &block)
1117
+ end
1118
+
1119
+ # Dismiss (delete) the specified alert from the publisher's AdSense account.
1120
+ # @param [String] alert_id
1121
+ # Alert to delete.
1122
+ # @param [String] fields
1123
+ # Selector specifying which fields to include in a partial response.
1124
+ # @param [String] quota_user
1125
+ # Available to use for quota purposes for server-side applications. Can be any
1126
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1127
+ # Overrides userIp if both are provided.
1128
+ # @param [String] user_ip
1129
+ # IP address of the site where the request originates. Use this if you want to
1130
+ # enforce per-user limits.
1131
+ # @param [Google::Apis::RequestOptions] options
1132
+ # Request-specific options
1133
+ #
1134
+ # @yield [result, err] Result & error if block supplied
1135
+ # @yieldparam result [NilClass] No result returned for this method
1136
+ # @yieldparam err [StandardError] error object if request failed
1137
+ #
1138
+ # @return [void]
1139
+ #
1140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1143
+ def delete_alert(alert_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1144
+ command = make_simple_command(:delete, 'alerts/{alertId}', options)
1145
+ command.params['alertId'] = alert_id unless alert_id.nil?
1146
+ command.query['fields'] = fields unless fields.nil?
1147
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1148
+ command.query['userIp'] = user_ip unless user_ip.nil?
1149
+ execute_or_queue_command(command, &block)
1150
+ end
1151
+
1152
+ # List the alerts for this AdSense account.
1153
+ # @param [String] locale
1154
+ # The locale to use for translating alert messages. The account locale will be
1155
+ # used if this is not supplied. The AdSense default (English) will be used if
1156
+ # the supplied locale is invalid or unsupported.
1157
+ # @param [String] fields
1158
+ # Selector specifying which fields to include in a partial response.
1159
+ # @param [String] quota_user
1160
+ # Available to use for quota purposes for server-side applications. Can be any
1161
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1162
+ # Overrides userIp if both are provided.
1163
+ # @param [String] user_ip
1164
+ # IP address of the site where the request originates. Use this if you want to
1165
+ # enforce per-user limits.
1166
+ # @param [Google::Apis::RequestOptions] options
1167
+ # Request-specific options
1168
+ #
1169
+ # @yield [result, err] Result & error if block supplied
1170
+ # @yieldparam result [Google::Apis::AdsenseV1_4::Alerts] parsed result object
1171
+ # @yieldparam err [StandardError] error object if request failed
1172
+ #
1173
+ # @return [Google::Apis::AdsenseV1_4::Alerts]
1174
+ #
1175
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1176
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1177
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1178
+ def list_alerts(locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1179
+ command = make_simple_command(:get, 'alerts', options)
1180
+ command.response_representation = Google::Apis::AdsenseV1_4::Alerts::Representation
1181
+ command.response_class = Google::Apis::AdsenseV1_4::Alerts
1182
+ command.query['locale'] = locale unless locale.nil?
1183
+ command.query['fields'] = fields unless fields.nil?
1184
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1185
+ command.query['userIp'] = user_ip unless user_ip.nil?
1186
+ execute_or_queue_command(command, &block)
1187
+ end
1188
+
1189
+ # Get the specified custom channel from the specified ad client.
1190
+ # @param [String] ad_client_id
1191
+ # Ad client which contains the custom channel.
1192
+ # @param [String] custom_channel_id
1193
+ # Custom channel to retrieve.
1194
+ # @param [String] fields
1195
+ # Selector specifying which fields to include in a partial response.
1196
+ # @param [String] quota_user
1197
+ # Available to use for quota purposes for server-side applications. Can be any
1198
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1199
+ # Overrides userIp if both are provided.
1200
+ # @param [String] user_ip
1201
+ # IP address of the site where the request originates. Use this if you want to
1202
+ # enforce per-user limits.
1203
+ # @param [Google::Apis::RequestOptions] options
1204
+ # Request-specific options
1205
+ #
1206
+ # @yield [result, err] Result & error if block supplied
1207
+ # @yieldparam result [Google::Apis::AdsenseV1_4::CustomChannel] parsed result object
1208
+ # @yieldparam err [StandardError] error object if request failed
1209
+ #
1210
+ # @return [Google::Apis::AdsenseV1_4::CustomChannel]
1211
+ #
1212
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1213
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1214
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1215
+ def get_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1216
+ command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}', options)
1217
+ command.response_representation = Google::Apis::AdsenseV1_4::CustomChannel::Representation
1218
+ command.response_class = Google::Apis::AdsenseV1_4::CustomChannel
1219
+ command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
1220
+ command.params['customChannelId'] = custom_channel_id unless custom_channel_id.nil?
1221
+ command.query['fields'] = fields unless fields.nil?
1222
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1223
+ command.query['userIp'] = user_ip unless user_ip.nil?
1224
+ execute_or_queue_command(command, &block)
1225
+ end
1226
+
1227
+ # List all custom channels in the specified ad client for this AdSense account.
1228
+ # @param [String] ad_client_id
1229
+ # Ad client for which to list custom channels.
1230
+ # @param [Fixnum] max_results
1231
+ # The maximum number of custom channels to include in the response, used for
1232
+ # paging.
1233
+ # @param [String] page_token
1234
+ # A continuation token, used to page through custom channels. To retrieve the
1235
+ # next page, set this parameter to the value of "nextPageToken" from the
1236
+ # previous response.
1237
+ # @param [String] fields
1238
+ # Selector specifying which fields to include in a partial response.
1239
+ # @param [String] quota_user
1240
+ # Available to use for quota purposes for server-side applications. Can be any
1241
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1242
+ # Overrides userIp if both are provided.
1243
+ # @param [String] user_ip
1244
+ # IP address of the site where the request originates. Use this if you want to
1245
+ # enforce per-user limits.
1246
+ # @param [Google::Apis::RequestOptions] options
1247
+ # Request-specific options
1248
+ #
1249
+ # @yield [result, err] Result & error if block supplied
1250
+ # @yieldparam result [Google::Apis::AdsenseV1_4::CustomChannels] parsed result object
1251
+ # @yieldparam err [StandardError] error object if request failed
1252
+ #
1253
+ # @return [Google::Apis::AdsenseV1_4::CustomChannels]
1254
+ #
1255
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1256
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1257
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1258
+ def list_custom_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1259
+ command = make_simple_command(:get, 'adclients/{adClientId}/customchannels', options)
1260
+ command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
1261
+ command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
1262
+ command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
1263
+ command.query['maxResults'] = max_results unless max_results.nil?
1264
+ command.query['pageToken'] = page_token unless page_token.nil?
1265
+ command.query['fields'] = fields unless fields.nil?
1266
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1267
+ command.query['userIp'] = user_ip unless user_ip.nil?
1268
+ execute_or_queue_command(command, &block)
1269
+ end
1270
+
1271
+ # List all ad units in the specified custom channel.
1272
+ # @param [String] ad_client_id
1273
+ # Ad client which contains the custom channel.
1274
+ # @param [String] custom_channel_id
1275
+ # Custom channel for which to list ad units.
1276
+ # @param [Boolean] include_inactive
1277
+ # Whether to include inactive ad units. Default: true.
1278
+ # @param [Fixnum] max_results
1279
+ # The maximum number of ad units to include in the response, used for paging.
1280
+ # @param [String] page_token
1281
+ # A continuation token, used to page through ad units. To retrieve the next page,
1282
+ # set this parameter to the value of "nextPageToken" from the previous response.
1283
+ # @param [String] fields
1284
+ # Selector specifying which fields to include in a partial response.
1285
+ # @param [String] quota_user
1286
+ # Available to use for quota purposes for server-side applications. Can be any
1287
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1288
+ # Overrides userIp if both are provided.
1289
+ # @param [String] user_ip
1290
+ # IP address of the site where the request originates. Use this if you want to
1291
+ # enforce per-user limits.
1292
+ # @param [Google::Apis::RequestOptions] options
1293
+ # Request-specific options
1294
+ #
1295
+ # @yield [result, err] Result & error if block supplied
1296
+ # @yieldparam result [Google::Apis::AdsenseV1_4::AdUnits] parsed result object
1297
+ # @yieldparam err [StandardError] error object if request failed
1298
+ #
1299
+ # @return [Google::Apis::AdsenseV1_4::AdUnits]
1300
+ #
1301
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1302
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1303
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1304
+ def list_custom_channel_ad_units(ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1305
+ command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', options)
1306
+ command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
1307
+ command.response_class = Google::Apis::AdsenseV1_4::AdUnits
1308
+ command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
1309
+ command.params['customChannelId'] = custom_channel_id unless custom_channel_id.nil?
1310
+ command.query['includeInactive'] = include_inactive unless include_inactive.nil?
1311
+ command.query['maxResults'] = max_results unless max_results.nil?
1312
+ command.query['pageToken'] = page_token unless page_token.nil?
1313
+ command.query['fields'] = fields unless fields.nil?
1314
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1315
+ command.query['userIp'] = user_ip unless user_ip.nil?
1316
+ execute_or_queue_command(command, &block)
1317
+ end
1318
+
1319
+ # List the metadata for the dimensions available to this AdSense account.
1320
+ # @param [String] fields
1321
+ # Selector specifying which fields to include in a partial response.
1322
+ # @param [String] quota_user
1323
+ # Available to use for quota purposes for server-side applications. Can be any
1324
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1325
+ # Overrides userIp if both are provided.
1326
+ # @param [String] user_ip
1327
+ # IP address of the site where the request originates. Use this if you want to
1328
+ # enforce per-user limits.
1329
+ # @param [Google::Apis::RequestOptions] options
1330
+ # Request-specific options
1331
+ #
1332
+ # @yield [result, err] Result & error if block supplied
1333
+ # @yieldparam result [Google::Apis::AdsenseV1_4::Metadata] parsed result object
1334
+ # @yieldparam err [StandardError] error object if request failed
1335
+ #
1336
+ # @return [Google::Apis::AdsenseV1_4::Metadata]
1337
+ #
1338
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1339
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1340
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1341
+ def list_metadata_dimensions(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1342
+ command = make_simple_command(:get, 'metadata/dimensions', options)
1343
+ command.response_representation = Google::Apis::AdsenseV1_4::Metadata::Representation
1344
+ command.response_class = Google::Apis::AdsenseV1_4::Metadata
1345
+ command.query['fields'] = fields unless fields.nil?
1346
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1347
+ command.query['userIp'] = user_ip unless user_ip.nil?
1348
+ execute_or_queue_command(command, &block)
1349
+ end
1350
+
1351
+ # List the metadata for the metrics available to this AdSense account.
1352
+ # @param [String] fields
1353
+ # Selector specifying which fields to include in a partial response.
1354
+ # @param [String] quota_user
1355
+ # Available to use for quota purposes for server-side applications. Can be any
1356
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1357
+ # Overrides userIp if both are provided.
1358
+ # @param [String] user_ip
1359
+ # IP address of the site where the request originates. Use this if you want to
1360
+ # enforce per-user limits.
1361
+ # @param [Google::Apis::RequestOptions] options
1362
+ # Request-specific options
1363
+ #
1364
+ # @yield [result, err] Result & error if block supplied
1365
+ # @yieldparam result [Google::Apis::AdsenseV1_4::Metadata] parsed result object
1366
+ # @yieldparam err [StandardError] error object if request failed
1367
+ #
1368
+ # @return [Google::Apis::AdsenseV1_4::Metadata]
1369
+ #
1370
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1371
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1372
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1373
+ def list_metadata_metrics(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1374
+ command = make_simple_command(:get, 'metadata/metrics', options)
1375
+ command.response_representation = Google::Apis::AdsenseV1_4::Metadata::Representation
1376
+ command.response_class = Google::Apis::AdsenseV1_4::Metadata
1377
+ command.query['fields'] = fields unless fields.nil?
1378
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1379
+ command.query['userIp'] = user_ip unless user_ip.nil?
1380
+ execute_or_queue_command(command, &block)
1381
+ end
1382
+
1383
+ # List the payments for this AdSense account.
1384
+ # @param [String] fields
1385
+ # Selector specifying which fields to include in a partial response.
1386
+ # @param [String] quota_user
1387
+ # Available to use for quota purposes for server-side applications. Can be any
1388
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1389
+ # Overrides userIp if both are provided.
1390
+ # @param [String] user_ip
1391
+ # IP address of the site where the request originates. Use this if you want to
1392
+ # enforce per-user limits.
1393
+ # @param [Google::Apis::RequestOptions] options
1394
+ # Request-specific options
1395
+ #
1396
+ # @yield [result, err] Result & error if block supplied
1397
+ # @yieldparam result [Google::Apis::AdsenseV1_4::Payments] parsed result object
1398
+ # @yieldparam err [StandardError] error object if request failed
1399
+ #
1400
+ # @return [Google::Apis::AdsenseV1_4::Payments]
1401
+ #
1402
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1403
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1404
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1405
+ def list_payments(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1406
+ command = make_simple_command(:get, 'payments', options)
1407
+ command.response_representation = Google::Apis::AdsenseV1_4::Payments::Representation
1408
+ command.response_class = Google::Apis::AdsenseV1_4::Payments
1409
+ command.query['fields'] = fields unless fields.nil?
1410
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1411
+ command.query['userIp'] = user_ip unless user_ip.nil?
1412
+ execute_or_queue_command(command, &block)
1413
+ end
1414
+
1415
+ # Generate an AdSense report based on the report request sent in the query
1416
+ # parameters. Returns the result as JSON; to retrieve output in CSV format
1417
+ # specify "alt=csv" as a query parameter.
1418
+ # @param [String] start_date
1419
+ # Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
1420
+ # @param [String] end_date
1421
+ # End of the date range to report on in "YYYY-MM-DD" format, inclusive.
1422
+ # @param [Array<String>, String] account_id
1423
+ # Accounts upon which to report.
1424
+ # @param [String] currency
1425
+ # Optional currency to use when reporting on monetary metrics. Defaults to the
1426
+ # account's currency if not set.
1427
+ # @param [Array<String>, String] dimension
1428
+ # Dimensions to base the report on.
1429
+ # @param [Array<String>, String] filter
1430
+ # Filters to be run on the report.
1431
+ # @param [String] locale
1432
+ # Optional locale to use for translating report output to a local language.
1433
+ # Defaults to "en_US" if not specified.
1434
+ # @param [Fixnum] max_results
1435
+ # The maximum number of rows of report data to return.
1436
+ # @param [Array<String>, String] metric
1437
+ # Numeric columns to include in the report.
1438
+ # @param [Array<String>, String] sort
1439
+ # The name of a dimension or metric to sort the resulting report on, optionally
1440
+ # prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is
1441
+ # specified, the column is sorted ascending.
1442
+ # @param [Fixnum] start_index
1443
+ # Index of the first row of report data to return.
1444
+ # @param [Boolean] use_timezone_reporting
1445
+ # Whether the report should be generated in the AdSense account's local timezone.
1446
+ # If false default PST/PDT timezone will be used.
1447
+ # @param [String] fields
1448
+ # Selector specifying which fields to include in a partial response.
1449
+ # @param [String] quota_user
1450
+ # Available to use for quota purposes for server-side applications. Can be any
1451
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1452
+ # Overrides userIp if both are provided.
1453
+ # @param [String] user_ip
1454
+ # IP address of the site where the request originates. Use this if you want to
1455
+ # enforce per-user limits.
1456
+ # @param [IO, String] download_dest
1457
+ # IO stream or filename to receive content download
1458
+ # @param [Google::Apis::RequestOptions] options
1459
+ # Request-specific options
1460
+ #
1461
+ # @yield [result, err] Result & error if block supplied
1462
+ # @yieldparam result [Google::Apis::AdsenseV1_4::GenerateReportResponse] parsed result object
1463
+ # @yieldparam err [StandardError] error object if request failed
1464
+ #
1465
+ # @return [Google::Apis::AdsenseV1_4::GenerateReportResponse]
1466
+ #
1467
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1468
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1469
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1470
+ def generate_report(start_date, end_date, account_id: nil, currency: nil, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, use_timezone_reporting: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1471
+ if download_dest.nil?
1472
+ command = make_simple_command(:get, 'reports', options)
1473
+ else
1474
+ command = make_download_command(:get, 'reports', options)
1475
+ command.download_dest = download_dest
1476
+ end
1477
+ command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
1478
+ command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse
1479
+ command.query['accountId'] = account_id unless account_id.nil?
1480
+ command.query['currency'] = currency unless currency.nil?
1481
+ command.query['dimension'] = dimension unless dimension.nil?
1482
+ command.query['endDate'] = end_date unless end_date.nil?
1483
+ command.query['filter'] = filter unless filter.nil?
1484
+ command.query['locale'] = locale unless locale.nil?
1485
+ command.query['maxResults'] = max_results unless max_results.nil?
1486
+ command.query['metric'] = metric unless metric.nil?
1487
+ command.query['sort'] = sort unless sort.nil?
1488
+ command.query['startDate'] = start_date unless start_date.nil?
1489
+ command.query['startIndex'] = start_index unless start_index.nil?
1490
+ command.query['useTimezoneReporting'] = use_timezone_reporting unless use_timezone_reporting.nil?
1491
+ command.query['fields'] = fields unless fields.nil?
1492
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1493
+ command.query['userIp'] = user_ip unless user_ip.nil?
1494
+ execute_or_queue_command(command, &block)
1495
+ end
1496
+
1497
+ # Generate an AdSense report based on the saved report ID sent in the query
1498
+ # parameters.
1499
+ # @param [String] saved_report_id
1500
+ # The saved report to retrieve.
1501
+ # @param [String] locale
1502
+ # Optional locale to use for translating report output to a local language.
1503
+ # Defaults to "en_US" if not specified.
1504
+ # @param [Fixnum] max_results
1505
+ # The maximum number of rows of report data to return.
1506
+ # @param [Fixnum] start_index
1507
+ # Index of the first row of report data to return.
1508
+ # @param [String] fields
1509
+ # Selector specifying which fields to include in a partial response.
1510
+ # @param [String] quota_user
1511
+ # Available to use for quota purposes for server-side applications. Can be any
1512
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1513
+ # Overrides userIp if both are provided.
1514
+ # @param [String] user_ip
1515
+ # IP address of the site where the request originates. Use this if you want to
1516
+ # enforce per-user limits.
1517
+ # @param [Google::Apis::RequestOptions] options
1518
+ # Request-specific options
1519
+ #
1520
+ # @yield [result, err] Result & error if block supplied
1521
+ # @yieldparam result [Google::Apis::AdsenseV1_4::GenerateReportResponse] parsed result object
1522
+ # @yieldparam err [StandardError] error object if request failed
1523
+ #
1524
+ # @return [Google::Apis::AdsenseV1_4::GenerateReportResponse]
1525
+ #
1526
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1527
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1528
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1529
+ def generate_saved_report(saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1530
+ command = make_simple_command(:get, 'reports/{savedReportId}', options)
1531
+ command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
1532
+ command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse
1533
+ command.params['savedReportId'] = saved_report_id unless saved_report_id.nil?
1534
+ command.query['locale'] = locale unless locale.nil?
1535
+ command.query['maxResults'] = max_results unless max_results.nil?
1536
+ command.query['startIndex'] = start_index unless start_index.nil?
1537
+ command.query['fields'] = fields unless fields.nil?
1538
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1539
+ command.query['userIp'] = user_ip unless user_ip.nil?
1540
+ execute_or_queue_command(command, &block)
1541
+ end
1542
+
1543
+ # List all saved reports in this AdSense account.
1544
+ # @param [Fixnum] max_results
1545
+ # The maximum number of saved reports to include in the response, used for
1546
+ # paging.
1547
+ # @param [String] page_token
1548
+ # A continuation token, used to page through saved reports. To retrieve the next
1549
+ # page, set this parameter to the value of "nextPageToken" from the previous
1550
+ # response.
1551
+ # @param [String] fields
1552
+ # Selector specifying which fields to include in a partial response.
1553
+ # @param [String] quota_user
1554
+ # Available to use for quota purposes for server-side applications. Can be any
1555
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1556
+ # Overrides userIp if both are provided.
1557
+ # @param [String] user_ip
1558
+ # IP address of the site where the request originates. Use this if you want to
1559
+ # enforce per-user limits.
1560
+ # @param [Google::Apis::RequestOptions] options
1561
+ # Request-specific options
1562
+ #
1563
+ # @yield [result, err] Result & error if block supplied
1564
+ # @yieldparam result [Google::Apis::AdsenseV1_4::SavedReports] parsed result object
1565
+ # @yieldparam err [StandardError] error object if request failed
1566
+ #
1567
+ # @return [Google::Apis::AdsenseV1_4::SavedReports]
1568
+ #
1569
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1570
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1571
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1572
+ def list_saved_reports(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1573
+ command = make_simple_command(:get, 'reports/saved', options)
1574
+ command.response_representation = Google::Apis::AdsenseV1_4::SavedReports::Representation
1575
+ command.response_class = Google::Apis::AdsenseV1_4::SavedReports
1576
+ command.query['maxResults'] = max_results unless max_results.nil?
1577
+ command.query['pageToken'] = page_token unless page_token.nil?
1578
+ command.query['fields'] = fields unless fields.nil?
1579
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1580
+ command.query['userIp'] = user_ip unless user_ip.nil?
1581
+ execute_or_queue_command(command, &block)
1582
+ end
1583
+
1584
+ # Get a specific saved ad style from the user's account.
1585
+ # @param [String] saved_ad_style_id
1586
+ # Saved ad style to retrieve.
1587
+ # @param [String] fields
1588
+ # Selector specifying which fields to include in a partial response.
1589
+ # @param [String] quota_user
1590
+ # Available to use for quota purposes for server-side applications. Can be any
1591
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1592
+ # Overrides userIp if both are provided.
1593
+ # @param [String] user_ip
1594
+ # IP address of the site where the request originates. Use this if you want to
1595
+ # enforce per-user limits.
1596
+ # @param [Google::Apis::RequestOptions] options
1597
+ # Request-specific options
1598
+ #
1599
+ # @yield [result, err] Result & error if block supplied
1600
+ # @yieldparam result [Google::Apis::AdsenseV1_4::SavedAdStyle] parsed result object
1601
+ # @yieldparam err [StandardError] error object if request failed
1602
+ #
1603
+ # @return [Google::Apis::AdsenseV1_4::SavedAdStyle]
1604
+ #
1605
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1606
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1607
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1608
+ def get_saved_ad_style(saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1609
+ command = make_simple_command(:get, 'savedadstyles/{savedAdStyleId}', options)
1610
+ command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyle::Representation
1611
+ command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyle
1612
+ command.params['savedAdStyleId'] = saved_ad_style_id unless saved_ad_style_id.nil?
1613
+ command.query['fields'] = fields unless fields.nil?
1614
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1615
+ command.query['userIp'] = user_ip unless user_ip.nil?
1616
+ execute_or_queue_command(command, &block)
1617
+ end
1618
+
1619
+ # List all saved ad styles in the user's account.
1620
+ # @param [Fixnum] max_results
1621
+ # The maximum number of saved ad styles to include in the response, used for
1622
+ # paging.
1623
+ # @param [String] page_token
1624
+ # A continuation token, used to page through saved ad styles. To retrieve the
1625
+ # next page, set this parameter to the value of "nextPageToken" from the
1626
+ # previous response.
1627
+ # @param [String] fields
1628
+ # Selector specifying which fields to include in a partial response.
1629
+ # @param [String] quota_user
1630
+ # Available to use for quota purposes for server-side applications. Can be any
1631
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1632
+ # Overrides userIp if both are provided.
1633
+ # @param [String] user_ip
1634
+ # IP address of the site where the request originates. Use this if you want to
1635
+ # enforce per-user limits.
1636
+ # @param [Google::Apis::RequestOptions] options
1637
+ # Request-specific options
1638
+ #
1639
+ # @yield [result, err] Result & error if block supplied
1640
+ # @yieldparam result [Google::Apis::AdsenseV1_4::SavedAdStyles] parsed result object
1641
+ # @yieldparam err [StandardError] error object if request failed
1642
+ #
1643
+ # @return [Google::Apis::AdsenseV1_4::SavedAdStyles]
1644
+ #
1645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1647
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1648
+ def list_saved_ad_styles(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1649
+ command = make_simple_command(:get, 'savedadstyles', options)
1650
+ command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyles::Representation
1651
+ command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyles
1652
+ command.query['maxResults'] = max_results unless max_results.nil?
1653
+ command.query['pageToken'] = page_token unless page_token.nil?
1654
+ command.query['fields'] = fields unless fields.nil?
1655
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1656
+ command.query['userIp'] = user_ip unless user_ip.nil?
1657
+ execute_or_queue_command(command, &block)
1658
+ end
1659
+
1660
+ # List all URL channels in the specified ad client for this AdSense account.
1661
+ # @param [String] ad_client_id
1662
+ # Ad client for which to list URL channels.
1663
+ # @param [Fixnum] max_results
1664
+ # The maximum number of URL channels to include in the response, used for paging.
1665
+ # @param [String] page_token
1666
+ # A continuation token, used to page through URL channels. To retrieve the next
1667
+ # page, set this parameter to the value of "nextPageToken" from the previous
1668
+ # response.
1669
+ # @param [String] fields
1670
+ # Selector specifying which fields to include in a partial response.
1671
+ # @param [String] quota_user
1672
+ # Available to use for quota purposes for server-side applications. Can be any
1673
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1674
+ # Overrides userIp if both are provided.
1675
+ # @param [String] user_ip
1676
+ # IP address of the site where the request originates. Use this if you want to
1677
+ # enforce per-user limits.
1678
+ # @param [Google::Apis::RequestOptions] options
1679
+ # Request-specific options
1680
+ #
1681
+ # @yield [result, err] Result & error if block supplied
1682
+ # @yieldparam result [Google::Apis::AdsenseV1_4::UrlChannels] parsed result object
1683
+ # @yieldparam err [StandardError] error object if request failed
1684
+ #
1685
+ # @return [Google::Apis::AdsenseV1_4::UrlChannels]
1686
+ #
1687
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1688
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1689
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1690
+ def list_url_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1691
+ command = make_simple_command(:get, 'adclients/{adClientId}/urlchannels', options)
1692
+ command.response_representation = Google::Apis::AdsenseV1_4::UrlChannels::Representation
1693
+ command.response_class = Google::Apis::AdsenseV1_4::UrlChannels
1694
+ command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
1695
+ command.query['maxResults'] = max_results unless max_results.nil?
1696
+ command.query['pageToken'] = page_token unless page_token.nil?
1697
+ command.query['fields'] = fields unless fields.nil?
1698
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1699
+ command.query['userIp'] = user_ip unless user_ip.nil?
1700
+ execute_or_queue_command(command, &block)
1701
+ end
1702
+
1703
+ protected
1704
+
1705
+ def apply_command_defaults(command)
1706
+ command.query['key'] = key unless key.nil?
1707
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1708
+ command.query['userIp'] = user_ip unless user_ip.nil?
1709
+ end
1710
+ end
1711
+ end
1712
+ end
1713
+ end