google-adwords-api 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (324) hide show
  1. data/ChangeLog +9 -0
  2. data/README +26 -10
  3. data/Rakefile +1 -1
  4. data/examples/v200909/add_ad_group.rb +2 -2
  5. data/examples/v200909/add_ads.rb +4 -4
  6. data/examples/v200909/add_campaign.rb +2 -2
  7. data/examples/v200909/check_campaigns.rb +4 -4
  8. data/examples/v201003/add_ad_group.rb +2 -2
  9. data/examples/v201003/add_ads.rb +6 -6
  10. data/examples/v201003/add_campaign.rb +2 -2
  11. data/examples/v201003/add_keywords_performance_report_definition.rb +2 -2
  12. data/examples/v201003/check_campaigns.rb +4 -4
  13. data/examples/v201008/add_ad_group.rb +2 -2
  14. data/examples/v201008/add_ads.rb +7 -7
  15. data/examples/v201008/add_campaign.rb +2 -2
  16. data/examples/v201008/add_experiment.rb +5 -5
  17. data/examples/v201008/add_keywords_performance_report_definition.rb +2 -2
  18. data/examples/v201008/add_user_list.rb +2 -2
  19. data/examples/v201008/check_campaigns.rb +4 -4
  20. data/examples/v201008/get_account_hierarchy.rb +8 -11
  21. data/examples/v201101/add_ad_group.rb +2 -2
  22. data/examples/v201101/add_ads.rb +6 -6
  23. data/examples/v201101/add_campaign.rb +2 -2
  24. data/examples/v201101/add_conversion.rb +4 -4
  25. data/examples/v201101/add_experiment.rb +5 -5
  26. data/examples/v201101/add_keywords_performance_report_definition.rb +2 -2
  27. data/examples/v201101/add_user_list.rb +3 -3
  28. data/examples/v201101/check_campaigns.rb +4 -4
  29. data/examples/v201101/get_account_hierarchy.rb +7 -9
  30. data/examples/v201109/add_ad_extension_override.rb +82 -0
  31. data/examples/v201109/add_ad_group.rb +89 -0
  32. data/examples/v201109/add_ad_group_criteria.rb +109 -0
  33. data/examples/v201109/add_ads.rb +174 -0
  34. data/examples/v201109/add_campaign.rb +99 -0
  35. data/examples/v201109/add_campaign_ad_extension.rb +121 -0
  36. data/examples/v201109/add_campaign_targeting_criteria.rb +102 -0
  37. data/examples/{v201101/add_mcc_report_definition.rb → v201109/add_conversion.rb} +26 -28
  38. data/examples/v201109/add_experiment.rb +153 -0
  39. data/examples/v201109/add_negative_campaign_criterion.rb +87 -0
  40. data/examples/v201109/add_user_list.rb +113 -0
  41. data/examples/v201109/check_campaigns.rb +123 -0
  42. data/examples/v201109/delete_ad.rb +85 -0
  43. data/examples/v201109/delete_ad_group.rb +77 -0
  44. data/examples/v201109/delete_ad_group_criterion.rb +86 -0
  45. data/examples/v201109/delete_bulk_mutate_job.rb +87 -0
  46. data/examples/v201109/delete_campaign.rb +78 -0
  47. data/examples/v201109/delete_experiment.rb +78 -0
  48. data/examples/v201109/delete_user_list.rb +78 -0
  49. data/examples/v201109/download_adhoc_report.rb +79 -0
  50. data/examples/v201109/download_report.rb +67 -0
  51. data/examples/v201109/get_account_hierarchy.rb +93 -0
  52. data/examples/v201109/get_ad_group_bid_landscape.rb +94 -0
  53. data/examples/v201109/get_all_account_changes.rb +137 -0
  54. data/examples/v201109/get_all_active_ad_group_criteria.rb +98 -0
  55. data/examples/v201109/get_all_ad_extension_overrides.rb +82 -0
  56. data/examples/v201109/get_all_ad_group_criteria.rb +90 -0
  57. data/examples/v201109/get_all_ad_groups.rb +85 -0
  58. data/examples/v201109/get_all_ad_params.rb +86 -0
  59. data/examples/v201109/get_all_ads.rb +90 -0
  60. data/examples/v201109/get_all_campaign_ad_extensions.rb +87 -0
  61. data/examples/v201109/get_all_campaign_targets.rb +74 -0
  62. data/examples/v201109/get_all_campaigns.rb +77 -0
  63. data/examples/v201109/get_all_carriers.rb +72 -0
  64. data/examples/v201109/get_all_conversions.rb +79 -0
  65. data/examples/v201109/get_all_disapproved_ads.rb +93 -0
  66. data/examples/v201109/get_all_experiments.rb +89 -0
  67. data/examples/v201109/get_all_images.rb +82 -0
  68. data/examples/v201109/get_all_languages.rb +73 -0
  69. data/examples/v201109/get_all_paused_campaigns.rb +83 -0
  70. data/examples/v201109/get_all_report_definitions.rb +75 -0
  71. data/examples/v201109/get_all_user_lists.rb +78 -0
  72. data/examples/v201109/get_all_videos.rb +78 -0
  73. data/examples/v201109/get_bulk_mutate_job.rb +97 -0
  74. data/examples/v201109/get_campaign_alerts.rb +95 -0
  75. data/examples/v201109/get_client_customer_id.rb +87 -0
  76. data/examples/v201109/get_conversion_optimizer_eligibility.rb +93 -0
  77. data/examples/v201109/get_criterion_bid_landscape.rb +93 -0
  78. data/examples/v201109/get_geo_location_info.rb +99 -0
  79. data/examples/v201109/get_keyword_opportunities.rb +95 -0
  80. data/examples/v201109/get_location_criteria.rb +103 -0
  81. data/examples/v201109/get_method_cost.rb +87 -0
  82. data/examples/v201109/get_operation_count.rb +79 -0
  83. data/examples/v201109/get_related_keywords.rb +108 -0
  84. data/examples/v201109/get_related_placements.rb +107 -0
  85. data/examples/v201109/get_report_fields.rb +72 -0
  86. data/examples/v201109/get_total_usage_units_per_month.rb +74 -0
  87. data/examples/v201109/get_traffic_estimates.rb +129 -0
  88. data/examples/v201109/get_unit_count.rb +81 -0
  89. data/examples/v201109/handle_partial_failures.rb +127 -0
  90. data/examples/v201109/handle_policy_violation_error.rb +138 -0
  91. data/examples/v201109/handle_second_factor.rb +87 -0
  92. data/examples/v201109/oauth_handling.rb +95 -0
  93. data/examples/v201109/perform_bulk_mutate_job.rb +212 -0
  94. data/examples/v201109/perform_mutate_job.rb +177 -0
  95. data/examples/v201109/promote_experiment.rb +79 -0
  96. data/examples/v201109/set_ad_params.rb +115 -0
  97. data/examples/v201109/update_ad.rb +86 -0
  98. data/examples/v201109/update_ad_group.rb +81 -0
  99. data/examples/v201109/update_ad_group_criterion.rb +99 -0
  100. data/examples/v201109/update_campaign.rb +84 -0
  101. data/examples/v201109/update_conversion.rb +87 -0
  102. data/examples/v201109/update_user_list.rb +82 -0
  103. data/examples/v201109/upload_image.rb +90 -0
  104. data/lib/adwords_api.rb +54 -50
  105. data/lib/adwords_api/api_config.rb +70 -14
  106. data/lib/adwords_api/credential_handler.rb +32 -13
  107. data/lib/adwords_api/errors.rb +12 -0
  108. data/lib/adwords_api/extensions.rb +8 -118
  109. data/lib/adwords_api/report_utils.rb +198 -0
  110. data/lib/adwords_api/utils.rb +5 -2
  111. data/lib/adwords_api/v13/account_service.rb +11 -11
  112. data/lib/adwords_api/v13/account_service_registry.rb +5 -3
  113. data/lib/adwords_api/v13/report_service.rb +15 -15
  114. data/lib/adwords_api/v13/report_service_registry.rb +5 -3
  115. data/lib/adwords_api/v200909/ad_extension_override_service.rb +5 -5
  116. data/lib/adwords_api/v200909/ad_extension_override_service_registry.rb +5 -3
  117. data/lib/adwords_api/v200909/ad_group_ad_service.rb +5 -5
  118. data/lib/adwords_api/v200909/ad_group_ad_service_registry.rb +5 -3
  119. data/lib/adwords_api/v200909/ad_group_criterion_service.rb +5 -5
  120. data/lib/adwords_api/v200909/ad_group_criterion_service_registry.rb +5 -3
  121. data/lib/adwords_api/v200909/ad_group_service.rb +5 -5
  122. data/lib/adwords_api/v200909/ad_group_service_registry.rb +5 -3
  123. data/lib/adwords_api/v200909/ad_param_service.rb +5 -5
  124. data/lib/adwords_api/v200909/ad_param_service_registry.rb +5 -3
  125. data/lib/adwords_api/v200909/bulk_mutate_job_service.rb +5 -5
  126. data/lib/adwords_api/v200909/bulk_mutate_job_service_registry.rb +5 -3
  127. data/lib/adwords_api/v200909/campaign_ad_extension_service.rb +5 -5
  128. data/lib/adwords_api/v200909/campaign_ad_extension_service_registry.rb +5 -3
  129. data/lib/adwords_api/v200909/campaign_criterion_service.rb +5 -5
  130. data/lib/adwords_api/v200909/campaign_criterion_service_registry.rb +5 -3
  131. data/lib/adwords_api/v200909/campaign_service.rb +5 -5
  132. data/lib/adwords_api/v200909/campaign_service_registry.rb +5 -3
  133. data/lib/adwords_api/v200909/campaign_target_service.rb +5 -5
  134. data/lib/adwords_api/v200909/campaign_target_service_registry.rb +5 -3
  135. data/lib/adwords_api/v200909/geo_location_service.rb +3 -3
  136. data/lib/adwords_api/v200909/geo_location_service_registry.rb +5 -3
  137. data/lib/adwords_api/v200909/info_service.rb +3 -3
  138. data/lib/adwords_api/v200909/info_service_registry.rb +5 -3
  139. data/lib/adwords_api/v200909/targeting_idea_service.rb +5 -5
  140. data/lib/adwords_api/v200909/targeting_idea_service_registry.rb +5 -3
  141. data/lib/adwords_api/v201003/ad_extension_override_service.rb +5 -5
  142. data/lib/adwords_api/v201003/ad_extension_override_service_registry.rb +5 -3
  143. data/lib/adwords_api/v201003/ad_group_ad_service.rb +5 -5
  144. data/lib/adwords_api/v201003/ad_group_ad_service_registry.rb +5 -3
  145. data/lib/adwords_api/v201003/ad_group_criterion_service.rb +5 -5
  146. data/lib/adwords_api/v201003/ad_group_criterion_service_registry.rb +5 -3
  147. data/lib/adwords_api/v201003/ad_group_service.rb +5 -5
  148. data/lib/adwords_api/v201003/ad_group_service_registry.rb +5 -3
  149. data/lib/adwords_api/v201003/ad_param_service.rb +5 -5
  150. data/lib/adwords_api/v201003/ad_param_service_registry.rb +5 -3
  151. data/lib/adwords_api/v201003/bid_landscape_service.rb +3 -3
  152. data/lib/adwords_api/v201003/bid_landscape_service_registry.rb +5 -3
  153. data/lib/adwords_api/v201003/bulk_mutate_job_service.rb +5 -5
  154. data/lib/adwords_api/v201003/bulk_mutate_job_service_registry.rb +5 -3
  155. data/lib/adwords_api/v201003/campaign_ad_extension_service.rb +5 -5
  156. data/lib/adwords_api/v201003/campaign_ad_extension_service_registry.rb +5 -3
  157. data/lib/adwords_api/v201003/campaign_criterion_service.rb +5 -5
  158. data/lib/adwords_api/v201003/campaign_criterion_service_registry.rb +5 -3
  159. data/lib/adwords_api/v201003/campaign_service.rb +5 -5
  160. data/lib/adwords_api/v201003/campaign_service_registry.rb +5 -3
  161. data/lib/adwords_api/v201003/campaign_target_service.rb +5 -5
  162. data/lib/adwords_api/v201003/campaign_target_service_registry.rb +5 -3
  163. data/lib/adwords_api/v201003/geo_location_service.rb +3 -3
  164. data/lib/adwords_api/v201003/geo_location_service_registry.rb +5 -3
  165. data/lib/adwords_api/v201003/info_service.rb +3 -3
  166. data/lib/adwords_api/v201003/info_service_registry.rb +5 -3
  167. data/lib/adwords_api/v201003/media_service.rb +5 -5
  168. data/lib/adwords_api/v201003/media_service_registry.rb +5 -3
  169. data/lib/adwords_api/v201003/report_definition_service.rb +7 -7
  170. data/lib/adwords_api/v201003/report_definition_service_registry.rb +5 -3
  171. data/lib/adwords_api/v201003/targeting_idea_service.rb +5 -5
  172. data/lib/adwords_api/v201003/targeting_idea_service_registry.rb +5 -3
  173. data/lib/adwords_api/v201008/ad_extension_override_service.rb +5 -5
  174. data/lib/adwords_api/v201008/ad_extension_override_service_registry.rb +5 -3
  175. data/lib/adwords_api/v201008/ad_group_ad_service.rb +5 -5
  176. data/lib/adwords_api/v201008/ad_group_ad_service_registry.rb +5 -3
  177. data/lib/adwords_api/v201008/ad_group_criterion_service.rb +5 -5
  178. data/lib/adwords_api/v201008/ad_group_criterion_service_registry.rb +5 -3
  179. data/lib/adwords_api/v201008/ad_group_service.rb +5 -5
  180. data/lib/adwords_api/v201008/ad_group_service_registry.rb +5 -3
  181. data/lib/adwords_api/v201008/ad_param_service.rb +5 -5
  182. data/lib/adwords_api/v201008/ad_param_service_registry.rb +5 -3
  183. data/lib/adwords_api/v201008/alert_service.rb +3 -3
  184. data/lib/adwords_api/v201008/alert_service_registry.rb +5 -3
  185. data/lib/adwords_api/v201008/bid_landscape_service.rb +3 -3
  186. data/lib/adwords_api/v201008/bid_landscape_service_registry.rb +5 -3
  187. data/lib/adwords_api/v201008/bulk_mutate_job_service.rb +5 -5
  188. data/lib/adwords_api/v201008/bulk_mutate_job_service_registry.rb +5 -3
  189. data/lib/adwords_api/v201008/campaign_ad_extension_service.rb +5 -5
  190. data/lib/adwords_api/v201008/campaign_ad_extension_service_registry.rb +5 -3
  191. data/lib/adwords_api/v201008/campaign_criterion_service.rb +5 -5
  192. data/lib/adwords_api/v201008/campaign_criterion_service_registry.rb +5 -3
  193. data/lib/adwords_api/v201008/campaign_service.rb +5 -5
  194. data/lib/adwords_api/v201008/campaign_service_registry.rb +5 -3
  195. data/lib/adwords_api/v201008/campaign_target_service.rb +5 -5
  196. data/lib/adwords_api/v201008/campaign_target_service_registry.rb +5 -3
  197. data/lib/adwords_api/v201008/customer_sync_service.rb +3 -3
  198. data/lib/adwords_api/v201008/customer_sync_service_registry.rb +5 -3
  199. data/lib/adwords_api/v201008/experiment_service.rb +5 -5
  200. data/lib/adwords_api/v201008/experiment_service_registry.rb +5 -3
  201. data/lib/adwords_api/v201008/geo_location_service.rb +3 -3
  202. data/lib/adwords_api/v201008/geo_location_service_registry.rb +5 -3
  203. data/lib/adwords_api/v201008/info_service.rb +3 -3
  204. data/lib/adwords_api/v201008/info_service_registry.rb +5 -3
  205. data/lib/adwords_api/v201008/media_service.rb +5 -5
  206. data/lib/adwords_api/v201008/media_service_registry.rb +5 -3
  207. data/lib/adwords_api/v201008/report_definition_service.rb +7 -7
  208. data/lib/adwords_api/v201008/report_definition_service_registry.rb +5 -3
  209. data/lib/adwords_api/v201008/serviced_account_service.rb +3 -3
  210. data/lib/adwords_api/v201008/serviced_account_service_registry.rb +5 -3
  211. data/lib/adwords_api/v201008/targeting_idea_service.rb +5 -5
  212. data/lib/adwords_api/v201008/targeting_idea_service_registry.rb +5 -3
  213. data/lib/adwords_api/v201008/traffic_estimator_service.rb +3 -3
  214. data/lib/adwords_api/v201008/traffic_estimator_service_registry.rb +5 -3
  215. data/lib/adwords_api/v201008/user_list_service.rb +5 -5
  216. data/lib/adwords_api/v201008/user_list_service_registry.rb +5 -3
  217. data/lib/adwords_api/v201101/ad_extension_override_service.rb +5 -5
  218. data/lib/adwords_api/v201101/ad_extension_override_service_registry.rb +5 -3
  219. data/lib/adwords_api/v201101/ad_group_ad_service.rb +5 -5
  220. data/lib/adwords_api/v201101/ad_group_ad_service_registry.rb +5 -3
  221. data/lib/adwords_api/v201101/ad_group_criterion_service.rb +5 -5
  222. data/lib/adwords_api/v201101/ad_group_criterion_service_registry.rb +5 -3
  223. data/lib/adwords_api/v201101/ad_group_service.rb +5 -5
  224. data/lib/adwords_api/v201101/ad_group_service_registry.rb +5 -3
  225. data/lib/adwords_api/v201101/ad_param_service.rb +5 -5
  226. data/lib/adwords_api/v201101/ad_param_service_registry.rb +5 -3
  227. data/lib/adwords_api/v201101/alert_service.rb +3 -3
  228. data/lib/adwords_api/v201101/alert_service_registry.rb +5 -3
  229. data/lib/adwords_api/v201101/bulk_mutate_job_service.rb +5 -5
  230. data/lib/adwords_api/v201101/bulk_mutate_job_service_registry.rb +5 -3
  231. data/lib/adwords_api/v201101/bulk_opportunity_service.rb +3 -3
  232. data/lib/adwords_api/v201101/bulk_opportunity_service_registry.rb +5 -3
  233. data/lib/adwords_api/v201101/campaign_ad_extension_service.rb +5 -5
  234. data/lib/adwords_api/v201101/campaign_ad_extension_service_registry.rb +5 -3
  235. data/lib/adwords_api/v201101/campaign_criterion_service.rb +5 -5
  236. data/lib/adwords_api/v201101/campaign_criterion_service_registry.rb +5 -3
  237. data/lib/adwords_api/v201101/campaign_service.rb +5 -5
  238. data/lib/adwords_api/v201101/campaign_service_registry.rb +5 -3
  239. data/lib/adwords_api/v201101/campaign_target_service.rb +5 -5
  240. data/lib/adwords_api/v201101/campaign_target_service_registry.rb +5 -3
  241. data/lib/adwords_api/v201101/conversion_tracker_service.rb +5 -5
  242. data/lib/adwords_api/v201101/conversion_tracker_service_registry.rb +5 -3
  243. data/lib/adwords_api/v201101/customer_sync_service.rb +3 -3
  244. data/lib/adwords_api/v201101/customer_sync_service_registry.rb +5 -3
  245. data/lib/adwords_api/v201101/data_service.rb +5 -5
  246. data/lib/adwords_api/v201101/data_service_registry.rb +5 -3
  247. data/lib/adwords_api/v201101/experiment_service.rb +5 -5
  248. data/lib/adwords_api/v201101/experiment_service_registry.rb +5 -3
  249. data/lib/adwords_api/v201101/geo_location_service.rb +3 -3
  250. data/lib/adwords_api/v201101/geo_location_service_registry.rb +5 -3
  251. data/lib/adwords_api/v201101/info_service.rb +3 -3
  252. data/lib/adwords_api/v201101/info_service_registry.rb +5 -3
  253. data/lib/adwords_api/v201101/media_service.rb +5 -5
  254. data/lib/adwords_api/v201101/media_service_registry.rb +5 -3
  255. data/lib/adwords_api/v201101/report_definition_service.rb +7 -15
  256. data/lib/adwords_api/v201101/report_definition_service_registry.rb +5 -3
  257. data/lib/adwords_api/v201101/serviced_account_service.rb +3 -3
  258. data/lib/adwords_api/v201101/serviced_account_service_registry.rb +5 -3
  259. data/lib/adwords_api/v201101/targeting_idea_service.rb +5 -5
  260. data/lib/adwords_api/v201101/targeting_idea_service_registry.rb +5 -3
  261. data/lib/adwords_api/v201101/traffic_estimator_service.rb +3 -3
  262. data/lib/adwords_api/v201101/traffic_estimator_service_registry.rb +5 -3
  263. data/lib/adwords_api/v201101/user_list_service.rb +5 -5
  264. data/lib/adwords_api/v201101/user_list_service_registry.rb +5 -3
  265. data/lib/adwords_api/v201109/ad_extension_override_service.rb +36 -0
  266. data/lib/adwords_api/v201109/ad_extension_override_service_registry.rb +44 -0
  267. data/lib/adwords_api/v201109/ad_group_ad_service.rb +36 -0
  268. data/lib/adwords_api/v201109/ad_group_ad_service_registry.rb +44 -0
  269. data/lib/adwords_api/v201109/ad_group_criterion_service.rb +36 -0
  270. data/lib/adwords_api/v201109/ad_group_criterion_service_registry.rb +44 -0
  271. data/lib/adwords_api/v201109/ad_group_service.rb +36 -0
  272. data/lib/adwords_api/v201109/ad_group_service_registry.rb +44 -0
  273. data/lib/adwords_api/v201109/ad_param_service.rb +36 -0
  274. data/lib/adwords_api/v201109/ad_param_service_registry.rb +44 -0
  275. data/lib/adwords_api/v201109/alert_service.rb +32 -0
  276. data/lib/adwords_api/v201109/alert_service_registry.rb +44 -0
  277. data/lib/adwords_api/v201109/bulk_mutate_job_service.rb +36 -0
  278. data/lib/adwords_api/v201109/bulk_mutate_job_service_registry.rb +44 -0
  279. data/lib/adwords_api/v201109/bulk_opportunity_service.rb +32 -0
  280. data/lib/adwords_api/v201109/bulk_opportunity_service_registry.rb +44 -0
  281. data/lib/adwords_api/v201109/campaign_ad_extension_service.rb +36 -0
  282. data/lib/adwords_api/v201109/campaign_ad_extension_service_registry.rb +44 -0
  283. data/lib/adwords_api/v201109/campaign_criterion_service.rb +36 -0
  284. data/lib/adwords_api/v201109/campaign_criterion_service_registry.rb +44 -0
  285. data/lib/adwords_api/v201109/campaign_service.rb +36 -0
  286. data/lib/adwords_api/v201109/campaign_service_registry.rb +44 -0
  287. data/lib/adwords_api/v201109/campaign_target_service.rb +36 -0
  288. data/lib/adwords_api/v201109/campaign_target_service_registry.rb +44 -0
  289. data/lib/adwords_api/v201109/constant_data_service.rb +36 -0
  290. data/lib/adwords_api/v201109/constant_data_service_registry.rb +44 -0
  291. data/lib/adwords_api/v201109/conversion_tracker_service.rb +36 -0
  292. data/lib/adwords_api/v201109/conversion_tracker_service_registry.rb +44 -0
  293. data/lib/adwords_api/v201109/customer_sync_service.rb +32 -0
  294. data/lib/adwords_api/v201109/customer_sync_service_registry.rb +45 -0
  295. data/lib/adwords_api/v201109/data_service.rb +36 -0
  296. data/lib/adwords_api/v201109/data_service_registry.rb +44 -0
  297. data/lib/adwords_api/v201109/experiment_service.rb +36 -0
  298. data/lib/adwords_api/v201109/experiment_service_registry.rb +44 -0
  299. data/lib/adwords_api/v201109/geo_location_service.rb +32 -0
  300. data/lib/adwords_api/v201109/geo_location_service_registry.rb +44 -0
  301. data/lib/adwords_api/v201109/info_service.rb +32 -0
  302. data/lib/adwords_api/v201109/info_service_registry.rb +44 -0
  303. data/lib/adwords_api/v201109/location_criterion_service.rb +32 -0
  304. data/lib/adwords_api/v201109/location_criterion_service_registry.rb +44 -0
  305. data/lib/adwords_api/v201109/media_service.rb +36 -0
  306. data/lib/adwords_api/v201109/media_service_registry.rb +44 -0
  307. data/lib/adwords_api/v201109/mutate_job_service.rb +40 -0
  308. data/lib/adwords_api/v201109/mutate_job_service_registry.rb +44 -0
  309. data/lib/adwords_api/v201109/report_definition_service.rb +45 -0
  310. data/lib/adwords_api/v201109/report_definition_service_registry.rb +44 -0
  311. data/lib/adwords_api/v201109/serviced_account_service.rb +32 -0
  312. data/lib/adwords_api/v201109/serviced_account_service_registry.rb +44 -0
  313. data/lib/adwords_api/v201109/targeting_idea_service.rb +36 -0
  314. data/lib/adwords_api/v201109/targeting_idea_service_registry.rb +44 -0
  315. data/lib/adwords_api/v201109/traffic_estimator_service.rb +32 -0
  316. data/lib/adwords_api/v201109/traffic_estimator_service_registry.rb +44 -0
  317. data/lib/adwords_api/v201109/user_list_service.rb +36 -0
  318. data/lib/adwords_api/v201109/user_list_service_registry.rb +44 -0
  319. data/test/bugs/test_issue_00000031.rb +78 -0
  320. metadata +467 -342
  321. data/examples/v201101/download_mcc_report.rb +0 -113
  322. data/examples/v201101/download_mcc_report_as_file.rb +0 -114
  323. data/lib/adwords_api/v13/traffic_estimator_service.rb +0 -44
  324. data/lib/adwords_api/v13/traffic_estimator_service_registry.rb +0 -39
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:46:14.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:34:54.
7
+
8
+ require 'adwords_api/errors'
7
9
 
8
10
  module AdwordsApi; module V201101; module AdGroupCriterionService
9
11
  class AdGroupCriterionServiceRegistry
10
- ADGROUPCRITERIONSERVICE_METHODS = {:get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :name=>:service_selector, :min_occurs=>0}], :output=>{:fields=>[{:type=>"AdGroupCriterionPage", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"AdGroupCriterionOperation", :max_occurs=>:unbounded, :name=>:operations, :min_occurs=>0}], :output=>{:fields=>[{:type=>"AdGroupCriterionReturnValue", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"mutate_response"}}}
11
- ADGROUPCRITERIONSERVICE_TYPES = {:ProductCondition=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:argument, :min_occurs=>0}, {:type=>"ProductConditionOperand", :max_occurs=>1, :name=>:operand, :min_occurs=>0}]}, :Product=>{:fields=>[{:type=>"ProductCondition", :max_occurs=>:unbounded, :name=>:conditions, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:text, :min_occurs=>0}], :base=>"Criterion"}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:micro_amount, :min_occurs=>0}], :base=>"ComparableValue"}, :ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:list_return_value_type, :min_occurs=>0}], :abstract=>true}, :ExemptionRequest=>{:fields=>[{:type=>"PolicyViolationKey", :max_occurs=>1, :name=>:key, :min_occurs=>0}]}, :AdGroupCriterionOperation=>{:fields=>[{:type=>"AdGroupCriterion", :max_occurs=>1, :name=>:operand, :min_occurs=>0}, {:type=>"ExemptionRequest", :max_occurs=>:unbounded, :name=>:exemption_requests, :min_occurs=>0}], :base=>"Operation"}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :BiddableAdGroupCriterionExperimentData=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:experiment_id, :min_occurs=>0}, {:type=>"ExperimentDeltaStatus", :max_occurs=>1, :name=>:experiment_delta_status, :min_occurs=>0}, {:type=>"ExperimentDataStatus", :max_occurs=>1, :name=>:experiment_data_status, :min_occurs=>0}, {:type=>"AdGroupCriterionExperimentBidMultiplier", :max_occurs=>1, :name=>:experiment_bid_multiplier, :min_occurs=>0}]}, :Predicate=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:field, :min_occurs=>0}, {:type=>"Predicate.Operator", :max_occurs=>1, :name=>:operator, :min_occurs=>0}, {:type=>"string", :max_occurs=>:unbounded, :name=>:values, :min_occurs=>0}]}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :name=>:operator, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:operation_type, :min_occurs=>0}], :abstract=>true}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :ManualCPCAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:max_cpc, :min_occurs=>0}, {:type=>"BidSource", :max_occurs=>1, :name=>:bid_source, :min_occurs=>0}, {:type=>"PositionPreferenceAdGroupCriterionBids", :max_occurs=>1, :name=>:position_preference_bids, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:enhanced_cpc_enabled, :min_occurs=>0}], :base=>"AdGroupCriterionBids"}, :AdGroupCriterionPage=>{:fields=>[{:type=>"AdGroupCriterion", :max_occurs=>:unbounded, :name=>:entries, :min_occurs=>0}], :base=>"Page"}, :PolicyViolationKey=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:policy_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:violating_text, :min_occurs=>0}]}, :Criterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:criterion_type, :min_occurs=>0}]}, :BudgetOptimizerAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:proxy_bid, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:enhanced_cpc_enabled, :min_occurs=>0}], :base=>"AdGroupCriterionBids"}, :AdGroupCriterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:ad_group_id, :min_occurs=>0}, {:type=>"CriterionUse", :max_occurs=>1, :name=>:criterion_use, :min_occurs=>0}, {:type=>"Criterion", :max_occurs=>1, :name=>:criterion, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:ad_group_criterion_type, :min_occurs=>0}]}, :CriterionUserInterest=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:user_interest_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_interest_name, :min_occurs=>0}], :base=>"Criterion"}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:total_num_entries, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:page_type, :min_occurs=>0}], :abstract=>true}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :ManualCPCAdGroupCriterionExperimentBidMultiplier=>{:fields=>[{:type=>"BidMultiplier", :max_occurs=>1, :name=>:max_cpc_multiplier, :min_occurs=>0}, {:type=>"MultiplierSource", :max_occurs=>1, :name=>:multiplier_source, :min_occurs=>0}], :base=>"AdGroupCriterionExperimentBidMultiplier"}, :AdGroupCriterionReturnValue=>{:fields=>[{:type=>"AdGroupCriterion", :max_occurs=>:unbounded, :name=>:value, :min_occurs=>0}, {:type=>"ApiError", :max_occurs=>:unbounded, :name=>:partial_failure_errors, :min_occurs=>0}], :base=>"ListReturnValue"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:auth_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_customer_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_email, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:developer_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_agent, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:validate_only, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:partial_failure, :min_occurs=>0}]}, :PositionPreferenceAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:proxy_max_cpc, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:preferred_position, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:bottom_position, :min_occurs=>0}]}, :ConversionOptimizerAdGroupCriterionBids=>{:fields=>[], :base=>"AdGroupCriterionBids"}, :AdGroupCriterionBids=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:ad_group_criterion_bids_type, :min_occurs=>0}], :abstract=>true}, :CriterionUserList=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:user_list_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_list_name, :min_occurs=>0}, {:type=>"CriterionUserList.MembershipStatus", :max_occurs=>1, :name=>:user_list_membership_status, :min_occurs=>0}], :base=>"Criterion"}, :Selector=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :name=>:fields, :min_occurs=>0}, {:type=>"Predicate", :max_occurs=>:unbounded, :name=>:predicates, :min_occurs=>0}, {:type=>"DateRange", :max_occurs=>1, :name=>:date_range, :min_occurs=>0}, {:type=>"OrderBy", :max_occurs=>:unbounded, :name=>:ordering, :min_occurs=>0}, {:type=>"Paging", :max_occurs=>1, :name=>:paging, :min_occurs=>0}]}, :OrderBy=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:field, :min_occurs=>0}, {:type=>"SortOrder", :max_occurs=>1, :name=>:sort_order, :min_occurs=>0}]}, :ManualCPMAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:max_cpm, :min_occurs=>0}, {:type=>"BidSource", :max_occurs=>1, :name=>:bid_source, :min_occurs=>0}], :base=>"AdGroupCriterionBids"}, :Bid=>{:fields=>[{:type=>"Money", :max_occurs=>1, :name=>:amount, :min_occurs=>0}]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:request_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:operations, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:response_time, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:units, :min_occurs=>0}]}, :QualityInfo=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:is_keyword_ad_relevance_acceptable, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:is_landing_page_quality_acceptable, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:is_landing_page_latency_acceptable, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:quality_score, :min_occurs=>0}]}, :"PolicyViolationError.Part"=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:index, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:length, :min_occurs=>0}]}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:number, :min_occurs=>0}], :base=>"NumberValue"}, :Keyword=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:text, :min_occurs=>0}, {:type=>"KeywordMatchType", :max_occurs=>1, :name=>:match_type, :min_occurs=>0}], :base=>"Criterion"}, :EntityAccessDenied=>{:fields=>[{:type=>"EntityAccessDenied.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :AdGroupCriterionExperimentBidMultiplier=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:ad_group_criterion_experiment_bid_multiplier_type, :min_occurs=>0}], :abstract=>true}, :Vertical=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :name=>:path, :min_occurs=>0}], :base=>"Criterion"}, :Stats=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:start_date, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:end_date, :min_occurs=>0}, {:type=>"Stats.Network", :max_occurs=>1, :name=>:network, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:clicks, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:impressions, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:average_position, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:average_cpc, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:average_cpm, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:ctr, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:conversions, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:conversion_rate, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost_per_conversion, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:conversions_many_per_click, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:conversion_rate_many_per_click, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost_per_conversion_many_per_click, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:view_through_conversions, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:total_conv_value, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:value_per_conv, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:value_per_conv_many_per_click, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:invalid_clicks, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:invalid_click_rate, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:stats_type, :min_occurs=>0}]}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:start_index, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:number_results, :min_occurs=>0}]}, :NegativeAdGroupCriterion=>{:fields=>[], :base=>"AdGroupCriterion"}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:min, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:max, :min_occurs=>0}]}, :BidMultiplier=>{:fields=>[{:type=>"double", :max_occurs=>1, :name=>:multiplier, :min_occurs=>0}, {:type=>"Bid", :max_occurs=>1, :name=>:multiplied_bid, :min_occurs=>0}]}, :Placement=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:url, :min_occurs=>0}], :base=>"Criterion"}, :EntityCountLimitExceeded=>{:fields=>[{:type=>"EntityCountLimitExceeded.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:enclosing_id, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:limit, :min_occurs=>0}], :base=>"ApiError"}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:comparable_value_type, :min_occurs=>0}], :abstract=>true}, :AdGroupCriterionLimitExceeded=>{:fields=>[{:type=>"AdGroupCriterionLimitExceeded.CriteriaLimitType", :max_occurs=>1, :name=>:limit_type, :min_occurs=>0}], :base=>"EntityCountLimitExceeded"}, :ProductConditionOperand=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:operand, :min_occurs=>0}]}, :PercentCPAAdGroupCriterionBids=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:percent_cpa, :min_occurs=>0}, {:type=>"BidSource", :max_occurs=>1, :name=>:source, :min_occurs=>0}], :base=>"AdGroupCriterionBids"}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :name=>:number, :min_occurs=>0}], :base=>"NumberValue"}, :BiddableAdGroupCriterion=>{:fields=>[{:type=>"UserStatus", :max_occurs=>1, :name=>:user_status, :min_occurs=>0}, {:type=>"SystemServingStatus", :max_occurs=>1, :name=>:system_serving_status, :min_occurs=>0}, {:type=>"ApprovalStatus", :max_occurs=>1, :name=>:approval_status, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:destination_url, :min_occurs=>0}, {:type=>"AdGroupCriterionBids", :max_occurs=>1, :name=>:bids, :min_occurs=>0}, {:type=>"BiddableAdGroupCriterionExperimentData", :max_occurs=>1, :name=>:experiment_data, :min_occurs=>0}, {:type=>"Bid", :max_occurs=>1, :name=>:first_page_cpc, :min_occurs=>0}, {:type=>"QualityInfo", :max_occurs=>1, :name=>:quality_info, :min_occurs=>0}, {:type=>"Stats", :max_occurs=>1, :name=>:stats, :min_occurs=>0}], :base=>"AdGroupCriterion"}}
12
+ ADGROUPCRITERIONSERVICE_METHODS = {:get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :min_occurs=>0, :name=>:service_selector}], :output=>{:fields=>[{:type=>"AdGroupCriterionPage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"AdGroupCriterionOperation", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:operations}], :output=>{:fields=>[{:type=>"AdGroupCriterionReturnValue", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"mutate_response"}}}
13
+ ADGROUPCRITERIONSERVICE_TYPES = {:ManualCPCAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:max_cpc}, {:type=>"BidSource", :max_occurs=>1, :min_occurs=>0, :name=>:bid_source}, {:type=>"PositionPreferenceAdGroupCriterionBids", :max_occurs=>1, :min_occurs=>0, :name=>:position_preference_bids}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupCriterionBids"}, :Selector=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:fields}, {:type=>"Predicate", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:predicates}, {:type=>"DateRange", :max_occurs=>1, :min_occurs=>0, :name=>:date_range}, {:type=>"OrderBy", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:ordering}, {:type=>"Paging", :max_occurs=>1, :min_occurs=>0, :name=>:paging}]}, :ExemptionRequest=>{:fields=>[{:type=>"PolicyViolationKey", :max_occurs=>1, :min_occurs=>0, :name=>:key}]}, :EntityCountLimitExceeded=>{:fields=>[{:type=>"EntityCountLimitExceeded.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:enclosing_id}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:limit}], :base=>"ApiError"}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:min}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:max}]}, :AdGroupCriterionReturnValue=>{:fields=>[{:type=>"AdGroupCriterion", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:value}, {:type=>"ApiError", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:partial_failure_errors}], :base=>"ListReturnValue"}, :PositionPreferenceAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:proxy_max_cpc}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:preferred_position}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:bottom_position}]}, :ProductCondition=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:argument}, {:type=>"ProductConditionOperand", :max_occurs=>1, :min_occurs=>0, :name=>:operand}]}, :PolicyViolationKey=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:policy_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:violating_text}]}, :AdGroupCriterionBids=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_criterion_bids_type}], :abstract=>true}, :Bid=>{:fields=>[{:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:amount}]}, :Stats=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:start_date}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:end_date}, {:type=>"Stats.Network", :max_occurs=>1, :min_occurs=>0, :name=>:network}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:clicks}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:impressions}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:average_position}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:average_cpc}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:average_cpm}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:ctr}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:conversions}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_rate}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost_per_conversion}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:conversions_many_per_click}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_rate_many_per_click}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost_per_conversion_many_per_click}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:view_through_conversions}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:total_conv_value}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:value_per_conv}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:value_per_conv_many_per_click}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:invalid_clicks}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:invalid_click_rate}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:stats_type}]}, :Keyword=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:text}, {:type=>"KeywordMatchType", :max_occurs=>1, :min_occurs=>0, :name=>:match_type}], :base=>"Criterion"}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}, :ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:list_return_value_type}], :abstract=>true}, :Product=>{:fields=>[{:type=>"ProductCondition", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:conditions}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:text}], :base=>"Criterion"}, :QualityInfo=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:is_keyword_ad_relevance_acceptable}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:is_landing_page_quality_acceptable}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:is_landing_page_latency_acceptable}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:quality_score}]}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :BiddableAdGroupCriterion=>{:fields=>[{:type=>"UserStatus", :max_occurs=>1, :min_occurs=>0, :name=>:user_status}, {:type=>"SystemServingStatus", :max_occurs=>1, :min_occurs=>0, :name=>:system_serving_status}, {:type=>"ApprovalStatus", :max_occurs=>1, :min_occurs=>0, :name=>:approval_status}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:destination_url}, {:type=>"AdGroupCriterionBids", :max_occurs=>1, :min_occurs=>0, :name=>:bids}, {:type=>"BiddableAdGroupCriterionExperimentData", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_data}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:first_page_cpc}, {:type=>"QualityInfo", :max_occurs=>1, :min_occurs=>0, :name=>:quality_info}, {:type=>"Stats", :max_occurs=>1, :min_occurs=>0, :name=>:stats}], :base=>"AdGroupCriterion"}, :BidMultiplier=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:multiplier}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:multiplied_bid}]}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_email}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:partial_failure}]}, :OrderBy=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"SortOrder", :max_occurs=>1, :min_occurs=>0, :name=>:sort_order}]}, :NegativeAdGroupCriterion=>{:fields=>[], :base=>"AdGroupCriterion"}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operation_type}], :abstract=>true}, :AdGroupCriterionExperimentBidMultiplier=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_criterion_experiment_bid_multiplier_type}], :abstract=>true}, :CriterionUserInterest=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:user_interest_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_interest_name}], :base=>"Criterion"}, :"PolicyViolationError.Part"=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:length}]}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :AdGroupCriterionLimitExceeded=>{:fields=>[{:type=>"AdGroupCriterionLimitExceeded.CriteriaLimitType", :max_occurs=>1, :min_occurs=>0, :name=>:limit_type}], :base=>"EntityCountLimitExceeded"}, :AdGroupCriterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_id}, {:type=>"CriterionUse", :max_occurs=>1, :min_occurs=>0, :name=>:criterion_use}, {:type=>"Criterion", :max_occurs=>1, :min_occurs=>0, :name=>:criterion}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_criterion_type}]}, :BudgetOptimizerAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:proxy_bid}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupCriterionBids"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}]}, :PercentCPAAdGroupCriterionBids=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:percent_cpa}, {:type=>"BidSource", :max_occurs=>1, :min_occurs=>0, :name=>:source}], :base=>"AdGroupCriterionBids"}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:total_num_entries}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:page_type}], :abstract=>true}, :BiddableAdGroupCriterionExperimentData=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_id}, {:type=>"ExperimentDeltaStatus", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_delta_status}, {:type=>"ExperimentDataStatus", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_data_status}, {:type=>"AdGroupCriterionExperimentBidMultiplier", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_bid_multiplier}]}, :CriterionUserList=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:user_list_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_list_name}, {:type=>"CriterionUserList.MembershipStatus", :max_occurs=>1, :min_occurs=>0, :name=>:user_list_membership_status}], :base=>"Criterion"}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:number_results}]}, :ConversionOptimizerAdGroupCriterionBids=>{:fields=>[], :base=>"AdGroupCriterionBids"}, :AdGroupCriterionOperation=>{:fields=>[{:type=>"AdGroupCriterion", :max_occurs=>1, :min_occurs=>0, :name=>:operand}, {:type=>"ExemptionRequest", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:exemption_requests}], :base=>"Operation"}, :ManualCPCAdGroupCriterionExperimentBidMultiplier=>{:fields=>[{:type=>"BidMultiplier", :max_occurs=>1, :min_occurs=>0, :name=>:max_cpc_multiplier}, {:type=>"MultiplierSource", :max_occurs=>1, :min_occurs=>0, :name=>:multiplier_source}], :base=>"AdGroupCriterionExperimentBidMultiplier"}, :Placement=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:url}], :base=>"Criterion"}, :Criterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:criterion_type}]}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:comparable_value_type}], :abstract=>true}, :Vertical=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:path}], :base=>"Criterion"}, :ProductConditionOperand=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operand}]}, :Predicate=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"Predicate.Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:values}]}, :EntityAccessDenied=>{:fields=>[{:type=>"EntityAccessDenied.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :AdGroupCriterionPage=>{:fields=>[{:type=>"AdGroupCriterion", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}], :base=>"Page"}, :ManualCPMAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:max_cpm}, {:type=>"BidSource", :max_occurs=>1, :min_occurs=>0, :name=>:bid_source}], :base=>"AdGroupCriterionBids"}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:micro_amount}], :base=>"ComparableValue"}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}}
12
14
  ADGROUPCRITERIONSERVICE_NAMESPACES = []
13
15
 
14
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:46:30.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:35:09.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'adwords_api/v201101/ad_group_service_registry'
@@ -15,12 +15,12 @@ module AdwordsApi; module V201101; module AdGroupService
15
15
  super(api, endpoint, namespace, :v201101)
16
16
  end
17
17
 
18
- def get(*args)
19
- return execute_action('get', args)
18
+ def get(*args, &block)
19
+ return execute_action('get', args, &block)
20
20
  end
21
21
 
22
- def mutate(*args)
23
- return execute_action('mutate', args)
22
+ def mutate(*args, &block)
23
+ return execute_action('mutate', args, &block)
24
24
  end
25
25
 
26
26
  private
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:46:30.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:35:09.
7
+
8
+ require 'adwords_api/errors'
7
9
 
8
10
  module AdwordsApi; module V201101; module AdGroupService
9
11
  class AdGroupServiceRegistry
10
- ADGROUPSERVICE_METHODS = {:get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :name=>:service_selector, :min_occurs=>0}], :output=>{:fields=>[{:type=>"AdGroupPage", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"AdGroupOperation", :max_occurs=>:unbounded, :name=>:operations, :min_occurs=>0}], :output=>{:fields=>[{:type=>"AdGroupReturnValue", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"mutate_response"}}}
11
- ADGROUPSERVICE_TYPES = {:ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:list_return_value_type, :min_occurs=>0}], :abstract=>true}, :ManualCPCAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:keyword_max_cpc, :min_occurs=>0}, {:type=>"Bid", :max_occurs=>1, :name=>:keyword_content_max_cpc, :min_occurs=>0}, {:type=>"Bid", :max_occurs=>1, :name=>:site_max_cpc, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:enhanced_cpc_enabled, :min_occurs=>0}], :base=>"AdGroupBids"}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:micro_amount, :min_occurs=>0}], :base=>"ComparableValue"}, :AdGroupExperimentData=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:experiment_id, :min_occurs=>0}, {:type=>"ExperimentDeltaStatus", :max_occurs=>1, :name=>:experiment_delta_status, :min_occurs=>0}, {:type=>"ExperimentDataStatus", :max_occurs=>1, :name=>:experiment_data_status, :min_occurs=>0}, {:type=>"AdGroupExperimentBidMultipliers", :max_occurs=>1, :name=>:experiment_bid_multipliers, :min_occurs=>0}]}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :name=>:operator, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:operation_type, :min_occurs=>0}], :abstract=>true}, :ManualCPCAdGroupExperimentBidMultipliers=>{:fields=>[{:type=>"BidMultiplier", :max_occurs=>1, :name=>:max_cpc_multiplier, :min_occurs=>0}, {:type=>"BidMultiplier", :max_occurs=>1, :name=>:max_content_cpc_multiplier, :min_occurs=>0}], :base=>"AdGroupExperimentBidMultipliers"}, :Predicate=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:field, :min_occurs=>0}, {:type=>"Predicate.Operator", :max_occurs=>1, :name=>:operator, :min_occurs=>0}, {:type=>"string", :max_occurs=>:unbounded, :name=>:values, :min_occurs=>0}]}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :AdGroup=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:campaign_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:campaign_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:name, :min_occurs=>0}, {:type=>"AdGroup.Status", :max_occurs=>1, :name=>:status, :min_occurs=>0}, {:type=>"AdGroupBids", :max_occurs=>1, :name=>:bids, :min_occurs=>0}, {:type=>"AdGroupExperimentData", :max_occurs=>1, :name=>:experiment_data, :min_occurs=>0}, {:type=>"Stats", :max_occurs=>1, :name=>:stats, :min_occurs=>0}]}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:total_num_entries, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:page_type, :min_occurs=>0}], :abstract=>true}, :ManualCPMAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:max_cpm, :min_occurs=>0}], :base=>"AdGroupBids"}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :AdGroupOperation=>{:fields=>[{:type=>"AdGroup", :max_occurs=>1, :name=>:operand, :min_occurs=>0}], :base=>"Operation"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:auth_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_customer_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_email, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:developer_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_agent, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:validate_only, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:partial_failure, :min_occurs=>0}]}, :PercentCPAAdGroupBids=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:percent_cpa, :min_occurs=>0}], :base=>"AdGroupBids"}, :ManualCPMAdGroupExperimentBidMultipliers=>{:fields=>[{:type=>"BidMultiplier", :max_occurs=>1, :name=>:max_cpm_multiplier, :min_occurs=>0}], :base=>"AdGroupExperimentBidMultipliers"}, :Bid=>{:fields=>[{:type=>"Money", :max_occurs=>1, :name=>:amount, :min_occurs=>0}]}, :Selector=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :name=>:fields, :min_occurs=>0}, {:type=>"Predicate", :max_occurs=>:unbounded, :name=>:predicates, :min_occurs=>0}, {:type=>"DateRange", :max_occurs=>1, :name=>:date_range, :min_occurs=>0}, {:type=>"OrderBy", :max_occurs=>:unbounded, :name=>:ordering, :min_occurs=>0}, {:type=>"Paging", :max_occurs=>1, :name=>:paging, :min_occurs=>0}]}, :OrderBy=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:field, :min_occurs=>0}, {:type=>"SortOrder", :max_occurs=>1, :name=>:sort_order, :min_occurs=>0}]}, :AdGroupPage=>{:fields=>[{:type=>"AdGroup", :max_occurs=>:unbounded, :name=>:entries, :min_occurs=>0}], :base=>"Page"}, :BudgetOptimizerAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:proxy_keyword_max_cpc, :min_occurs=>0}, {:type=>"Bid", :max_occurs=>1, :name=>:proxy_site_max_cpc, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:enhanced_cpc_enabled, :min_occurs=>0}], :base=>"AdGroupBids"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:request_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:operations, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:response_time, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:units, :min_occurs=>0}]}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:number, :min_occurs=>0}], :base=>"NumberValue"}, :AdGroupBids=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:ad_group_bids_type, :min_occurs=>0}], :abstract=>true}, :BidMultiplier=>{:fields=>[{:type=>"double", :max_occurs=>1, :name=>:multiplier, :min_occurs=>0}, {:type=>"Bid", :max_occurs=>1, :name=>:multiplied_bid, :min_occurs=>0}]}, :Stats=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:start_date, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:end_date, :min_occurs=>0}, {:type=>"Stats.Network", :max_occurs=>1, :name=>:network, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:clicks, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:impressions, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:average_position, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:average_cpc, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:average_cpm, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:ctr, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:conversions, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:conversion_rate, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost_per_conversion, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:conversions_many_per_click, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:conversion_rate_many_per_click, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost_per_conversion_many_per_click, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:view_through_conversions, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:total_conv_value, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:value_per_conv, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:value_per_conv_many_per_click, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:invalid_clicks, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:invalid_click_rate, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:stats_type, :min_occurs=>0}]}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:start_index, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:number_results, :min_occurs=>0}]}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:min, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:max, :min_occurs=>0}]}, :AdGroupReturnValue=>{:fields=>[{:type=>"AdGroup", :max_occurs=>:unbounded, :name=>:value, :min_occurs=>0}], :base=>"ListReturnValue"}, :ConversionOptimizerAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:target_cpa, :min_occurs=>0}, {:type=>"ConversionOptimizerBidType", :max_occurs=>1, :name=>:conversion_optimizer_bid_type, :min_occurs=>0}, {:type=>"ConversionDeduplicationMode", :max_occurs=>1, :name=>:deduplication_mode, :min_occurs=>0}], :base=>"AdGroupBids"}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:comparable_value_type, :min_occurs=>0}], :abstract=>true}, :AdGroupExperimentBidMultipliers=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:ad_group_experiment_bid_multipliers_type, :min_occurs=>0}], :abstract=>true}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :name=>:number, :min_occurs=>0}], :base=>"NumberValue"}}
12
+ ADGROUPSERVICE_METHODS = {:get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :min_occurs=>0, :name=>:service_selector}], :output=>{:fields=>[{:type=>"AdGroupPage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"AdGroupOperation", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:operations}], :output=>{:fields=>[{:type=>"AdGroupReturnValue", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"mutate_response"}}}
13
+ ADGROUPSERVICE_TYPES = {:AdGroupExperimentData=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_id}, {:type=>"ExperimentDeltaStatus", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_delta_status}, {:type=>"ExperimentDataStatus", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_data_status}, {:type=>"AdGroupExperimentBidMultipliers", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_bid_multipliers}]}, :Selector=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:fields}, {:type=>"Predicate", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:predicates}, {:type=>"DateRange", :max_occurs=>1, :min_occurs=>0, :name=>:date_range}, {:type=>"OrderBy", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:ordering}, {:type=>"Paging", :max_occurs=>1, :min_occurs=>0, :name=>:paging}]}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:min}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:max}]}, :ManualCPCAdGroupExperimentBidMultipliers=>{:fields=>[{:type=>"BidMultiplier", :max_occurs=>1, :min_occurs=>0, :name=>:max_cpc_multiplier}, {:type=>"BidMultiplier", :max_occurs=>1, :min_occurs=>0, :name=>:max_content_cpc_multiplier}], :base=>"AdGroupExperimentBidMultipliers"}, :Bid=>{:fields=>[{:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:amount}]}, :Stats=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:start_date}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:end_date}, {:type=>"Stats.Network", :max_occurs=>1, :min_occurs=>0, :name=>:network}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:clicks}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:impressions}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:average_position}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:average_cpc}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:average_cpm}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:ctr}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:conversions}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_rate}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost_per_conversion}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:conversions_many_per_click}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_rate_many_per_click}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost_per_conversion_many_per_click}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:view_through_conversions}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:total_conv_value}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:value_per_conv}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:value_per_conv_many_per_click}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:invalid_clicks}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:invalid_click_rate}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:stats_type}]}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}, :ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:list_return_value_type}], :abstract=>true}, :ManualCPMAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:max_cpm}], :base=>"AdGroupBids"}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :AdGroup=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"AdGroup.Status", :max_occurs=>1, :min_occurs=>0, :name=>:status}, {:type=>"AdGroupBids", :max_occurs=>1, :min_occurs=>0, :name=>:bids}, {:type=>"AdGroupExperimentData", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_data}, {:type=>"Stats", :max_occurs=>1, :min_occurs=>0, :name=>:stats}]}, :BidMultiplier=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:multiplier}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:multiplied_bid}]}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_email}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:partial_failure}]}, :PercentCPAAdGroupBids=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:percent_cpa}], :base=>"AdGroupBids"}, :OrderBy=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"SortOrder", :max_occurs=>1, :min_occurs=>0, :name=>:sort_order}]}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operation_type}], :abstract=>true}, :ManualCPMAdGroupExperimentBidMultipliers=>{:fields=>[{:type=>"BidMultiplier", :max_occurs=>1, :min_occurs=>0, :name=>:max_cpm_multiplier}], :base=>"AdGroupExperimentBidMultipliers"}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :AdGroupOperation=>{:fields=>[{:type=>"AdGroup", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :BudgetOptimizerAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:proxy_keyword_max_cpc}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:proxy_site_max_cpc}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupBids"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}]}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:total_num_entries}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:page_type}], :abstract=>true}, :AdGroupBids=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_bids_type}], :abstract=>true}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:number_results}]}, :AdGroupPage=>{:fields=>[{:type=>"AdGroup", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}], :base=>"Page"}, :ConversionOptimizerAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:target_cpa}, {:type=>"ConversionOptimizerBidType", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_optimizer_bid_type}, {:type=>"ConversionDeduplicationMode", :max_occurs=>1, :min_occurs=>0, :name=>:deduplication_mode}], :base=>"AdGroupBids"}, :AdGroupExperimentBidMultipliers=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_experiment_bid_multipliers_type}], :abstract=>true}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:comparable_value_type}], :abstract=>true}, :Predicate=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"Predicate.Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:values}]}, :AdGroupReturnValue=>{:fields=>[{:type=>"AdGroup", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:value}], :base=>"ListReturnValue"}, :ManualCPCAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:keyword_max_cpc}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:keyword_content_max_cpc}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:site_max_cpc}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupBids"}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:micro_amount}], :base=>"ComparableValue"}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}}
12
14
  ADGROUPSERVICE_NAMESPACES = []
13
15
 
14
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:46:22.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:35:01.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'adwords_api/v201101/ad_param_service_registry'
@@ -15,12 +15,12 @@ module AdwordsApi; module V201101; module AdParamService
15
15
  super(api, endpoint, namespace, :v201101)
16
16
  end
17
17
 
18
- def get(*args)
19
- return execute_action('get', args)
18
+ def get(*args, &block)
19
+ return execute_action('get', args, &block)
20
20
  end
21
21
 
22
- def mutate(*args)
23
- return execute_action('mutate', args)
22
+ def mutate(*args, &block)
23
+ return execute_action('mutate', args, &block)
24
24
  end
25
25
 
26
26
  private
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:46:22.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:35:01.
7
+
8
+ require 'adwords_api/errors'
7
9
 
8
10
  module AdwordsApi; module V201101; module AdParamService
9
11
  class AdParamServiceRegistry
10
- ADPARAMSERVICE_METHODS = {:get=>{:input=>[{:type=>"AdParamSelector", :max_occurs=>1, :name=>:selector, :min_occurs=>0}], :output=>{:fields=>[{:type=>"AdParamPage", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"AdParamOperation", :max_occurs=>:unbounded, :name=>:operations, :min_occurs=>0}], :output=>{:fields=>[{:type=>"AdParam", :max_occurs=>:unbounded, :name=>:rval, :min_occurs=>0}], :name=>"mutate_response"}}}
11
- ADPARAMSERVICE_TYPES = {:Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :name=>:operator, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:operation_type, :min_occurs=>0}], :abstract=>true}, :PolicyViolationKey=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:policy_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:violating_text, :min_occurs=>0}]}, :AdParam=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:ad_group_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:criterion_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:insertion_text, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:param_index, :min_occurs=>0}]}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:auth_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_customer_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_email, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:developer_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_agent, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:validate_only, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:partial_failure, :min_occurs=>0}]}, :AdParamOperation=>{:fields=>[{:type=>"AdParam", :max_occurs=>1, :name=>:operand, :min_occurs=>0}], :base=>"Operation"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:request_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:operations, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:response_time, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:units, :min_occurs=>0}]}, :"PolicyViolationError.Part"=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:index, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:length, :min_occurs=>0}]}, :AdParamPage=>{:fields=>[{:type=>"AdParam", :max_occurs=>:unbounded, :name=>:entries, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:total_num_entries, :min_occurs=>0}]}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:start_index, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:number_results, :min_occurs=>0}]}, :AdParamSelector=>{:fields=>[{:type=>"long", :max_occurs=>:unbounded, :name=>:ad_group_ids, :min_occurs=>0}, {:type=>"long", :max_occurs=>:unbounded, :name=>:criteria_id, :min_occurs=>0}, {:type=>"Paging", :max_occurs=>1, :name=>:paging, :min_occurs=>0}]}}
12
+ ADPARAMSERVICE_METHODS = {:get=>{:input=>[{:type=>"AdParamSelector", :max_occurs=>1, :min_occurs=>0, :name=>:selector}], :output=>{:fields=>[{:type=>"AdParamPage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"AdParamOperation", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:operations}], :output=>{:fields=>[{:type=>"AdParam", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:rval}], :name=>"mutate_response"}}}
13
+ ADPARAMSERVICE_TYPES = {:PolicyViolationKey=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:policy_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:violating_text}]}, :AdParam=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:criterion_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:insertion_text}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:param_index}]}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_email}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:partial_failure}]}, :"PolicyViolationError.Part"=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:length}]}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operation_type}], :abstract=>true}, :AdParamOperation=>{:fields=>[{:type=>"AdParam", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}]}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:number_results}]}, :AdParamPage=>{:fields=>[{:type=>"AdParam", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:total_num_entries}]}, :AdParamSelector=>{:fields=>[{:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:ad_group_ids}, {:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:criteria_id}, {:type=>"Paging", :max_occurs=>1, :min_occurs=>0, :name=>:paging}]}}
12
14
  ADPARAMSERVICE_NAMESPACES = []
13
15
 
14
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:47:14.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:35:50.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'adwords_api/v201101/alert_service_registry'
@@ -15,8 +15,8 @@ module AdwordsApi; module V201101; module AlertService
15
15
  super(api, endpoint, namespace, :v201101)
16
16
  end
17
17
 
18
- def get(*args)
19
- return execute_action('get', args)
18
+ def get(*args, &block)
19
+ return execute_action('get', args, &block)
20
20
  end
21
21
 
22
22
  private
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:47:14.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:35:50.
7
+
8
+ require 'adwords_api/errors'
7
9
 
8
10
  module AdwordsApi; module V201101; module AlertService
9
11
  class AlertServiceRegistry
10
- ALERTSERVICE_METHODS = {:get=>{:input=>[{:type=>"AlertSelector", :max_occurs=>1, :name=>:selector, :min_occurs=>0}], :output=>{:fields=>[{:type=>"AlertPage", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_response"}}}
11
- ALERTSERVICE_TYPES = {:Detail=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:trigger_time, :min_occurs=>0}]}, :Alert=>{:fields=>[{:type=>"AlertSeverity", :max_occurs=>1, :name=>:alert_severity, :min_occurs=>0}, {:type=>"AlertType", :max_occurs=>1, :name=>:alert_type, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:client_customer_id, :min_occurs=>0}, {:type=>"Detail", :max_occurs=>:unbounded, :name=>:details, :min_occurs=>0}]}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:total_num_entries, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:page_type, :min_occurs=>0}], :abstract=>true, :ns=>0}, :AlertPage=>{:fields=>[{:type=>"Alert", :max_occurs=>:unbounded, :name=>:entries, :min_occurs=>0}], :base=>"NoStatsPage"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:auth_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_customer_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_email, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:developer_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_agent, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:validate_only, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:partial_failure, :min_occurs=>0}], :ns=>0}, :NoStatsPage=>{:fields=>[], :abstract=>true, :base=>"Page"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:request_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:operations, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:response_time, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:units, :min_occurs=>0}], :ns=>0}, :AlertQuery=>{:fields=>[{:type=>"ClientSpec", :max_occurs=>1, :name=>:client_spec, :min_occurs=>0}, {:type=>"FilterSpec", :max_occurs=>1, :name=>:filter_spec, :min_occurs=>0}, {:type=>"AlertType", :max_occurs=>:unbounded, :name=>:types, :min_occurs=>0}, {:type=>"AlertSeverity", :max_occurs=>:unbounded, :name=>:severities, :min_occurs=>0}, {:type=>"TriggerTimeSpec", :max_occurs=>1, :name=>:trigger_time_spec, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:trigger_time, :min_occurs=>0}, {:type=>"long", :max_occurs=>:unbounded, :name=>:client_customer_ids, :min_occurs=>0}]}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:start_index, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:number_results, :min_occurs=>0}], :ns=>0}, :AlertSelector=>{:fields=>[{:type=>"AlertQuery", :max_occurs=>1, :name=>:query, :min_occurs=>0}, {:type=>"Paging", :max_occurs=>1, :name=>:paging, :min_occurs=>0}]}}
12
+ ALERTSERVICE_METHODS = {:get=>{:input=>[{:type=>"AlertSelector", :max_occurs=>1, :min_occurs=>0, :name=>:selector}], :output=>{:fields=>[{:type=>"AlertPage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}}
13
+ ALERTSERVICE_TYPES = {:AlertQuery=>{:fields=>[{:type=>"ClientSpec", :max_occurs=>1, :min_occurs=>0, :name=>:client_spec}, {:type=>"FilterSpec", :max_occurs=>1, :min_occurs=>0, :name=>:filter_spec}, {:type=>"AlertType", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:types}, {:type=>"AlertSeverity", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:severities}, {:type=>"TriggerTimeSpec", :max_occurs=>1, :min_occurs=>0, :name=>:trigger_time_spec}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:trigger_time}, {:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:client_customer_ids}]}, :AlertSelector=>{:fields=>[{:type=>"AlertQuery", :max_occurs=>1, :min_occurs=>0, :name=>:query}, {:type=>"Paging", :max_occurs=>1, :min_occurs=>0, :name=>:paging}]}, :Detail=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:trigger_time}]}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_email}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:partial_failure}], :ns=>0}, :Alert=>{:fields=>[{:type=>"AlertSeverity", :max_occurs=>1, :min_occurs=>0, :name=>:alert_severity}, {:type=>"AlertType", :max_occurs=>1, :min_occurs=>0, :name=>:alert_type}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"Detail", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:details}]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}], :ns=>0}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:total_num_entries}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:page_type}], :ns=>0, :abstract=>true}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:number_results}], :ns=>0}, :AlertPage=>{:fields=>[{:type=>"Alert", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}], :base=>"NoStatsPage"}, :NoStatsPage=>{:fields=>[], :abstract=>true, :base=>"Page"}}
12
14
  ALERTSERVICE_NAMESPACES = ["https://adwords.google.com/api/adwords/cm/v201101"]
13
15
 
14
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:47:00.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:35:38.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'adwords_api/v201101/bulk_mutate_job_service_registry'
@@ -15,12 +15,12 @@ module AdwordsApi; module V201101; module BulkMutateJobService
15
15
  super(api, endpoint, namespace, :v201101)
16
16
  end
17
17
 
18
- def get(*args)
19
- return execute_action('get', args)
18
+ def get(*args, &block)
19
+ return execute_action('get', args, &block)
20
20
  end
21
21
 
22
- def mutate(*args)
23
- return execute_action('mutate', args)
22
+ def mutate(*args, &block)
23
+ return execute_action('mutate', args, &block)
24
24
  end
25
25
 
26
26
  private
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:47:00.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:35:38.
7
+
8
+ require 'adwords_api/errors'
7
9
 
8
10
  module AdwordsApi; module V201101; module BulkMutateJobService
9
11
  class BulkMutateJobServiceRegistry
10
- BULKMUTATEJOBSERVICE_METHODS = {:get=>{:input=>[{:type=>"BulkMutateJobSelector", :max_occurs=>1, :name=>:selector, :min_occurs=>0}], :output=>{:fields=>[{:type=>"BulkMutateJob", :max_occurs=>:unbounded, :name=>:rval, :min_occurs=>0}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"JobOperation", :max_occurs=>1, :name=>:operation, :min_occurs=>0}], :output=>{:fields=>[{:type=>"BulkMutateJob", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"mutate_response"}}}
11
- BULKMUTATEJOBSERVICE_TYPES = {:GeoPoint=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:latitude_in_micro_degrees, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:longitude_in_micro_degrees, :min_occurs=>0}]}, :ManualCPCAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:max_cpc, :min_occurs=>0}, {:type=>"BidSource", :max_occurs=>1, :name=>:bid_source, :min_occurs=>0}, {:type=>"PositionPreferenceAdGroupCriterionBids", :max_occurs=>1, :name=>:position_preference_bids, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:enhanced_cpc_enabled, :min_occurs=>0}], :base=>"AdGroupCriterionBids"}, :BiddingTransition=>{:fields=>[{:type=>"BiddingStrategy", :max_occurs=>1, :name=>:target_bidding_strategy, :min_occurs=>0}, {:type=>"AdGroupBids", :max_occurs=>1, :name=>:explicit_ad_group_bids, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:bidding_transition_type, :min_occurs=>0}]}, :ImageAd=>{:fields=>[{:type=>"Image", :max_occurs=>1, :name=>:image, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:name, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:ad_to_copy_image_from, :min_occurs=>0}], :base=>"Ad"}, :JobOperation=>{:fields=>[{:type=>"Job", :max_occurs=>1, :name=>:operand, :min_occurs=>0}], :base=>"Operation"}, :Keyword=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:text, :min_occurs=>0}, {:type=>"KeywordMatchType", :max_occurs=>1, :name=>:match_type, :min_occurs=>0}], :base=>"Criterion"}, :DeprecatedAd=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:name, :min_occurs=>0}, {:type=>"DeprecatedAd.Type", :max_occurs=>1, :name=>:type, :min_occurs=>0}], :base=>"Ad"}, :LocationSyncExtension=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:email, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:auth_token, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:icon_media_id, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:should_sync_url, :min_occurs=>0}], :base=>"AdExtension"}, :BulkMutateJobPolicy=>{:fields=>[{:type=>"long", :max_occurs=>:unbounded, :name=>:prerequisite_job_ids, :min_occurs=>0}]}, :NegativeAdGroupCriterion=>{:fields=>[], :base=>"AdGroupCriterion"}, :MobileExtension=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:phone_number, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:country_code, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:is_call_only, :min_occurs=>0}], :base=>"AdExtension"}, :CityTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:city_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:province_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:country_code, :min_occurs=>0}], :base=>"GeoTarget"}, :Ad=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:url, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:display_url, :min_occurs=>0}, {:type=>"Ad.ApprovalStatus", :max_occurs=>1, :name=>:approval_status, :min_occurs=>0}, {:type=>"string", :max_occurs=>:unbounded, :name=>:disapproval_reasons, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:trademark_disapproved, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:ad_type, :min_occurs=>0}]}, :LanguageTargetList=>{:fields=>[{:type=>"LanguageTarget", :max_occurs=>:unbounded, :name=>:targets, :min_occurs=>0}], :base=>"TargetList"}, :AdGroupCriterionExperimentBidMultiplier=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:ad_group_criterion_experiment_bid_multiplier_type, :min_occurs=>0}], :abstract=>true}, :ConversionOptimizer=>{:fields=>[{:type=>"PricingModel", :max_occurs=>1, :name=>:pricing_model, :min_occurs=>0}, {:type=>"ConversionOptimizerBidType", :max_occurs=>1, :name=>:conversion_optimizer_bid_type, :min_occurs=>0}, {:type=>"ConversionDeduplicationMode", :max_occurs=>1, :name=>:deduplication_mode, :min_occurs=>0}], :base=>"BiddingStrategy"}, :ConversionOptimizerAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:target_cpa, :min_occurs=>0}, {:type=>"ConversionOptimizerBidType", :max_occurs=>1, :name=>:conversion_optimizer_bid_type, :min_occurs=>0}, {:type=>"ConversionDeduplicationMode", :max_occurs=>1, :name=>:deduplication_mode, :min_occurs=>0}], :base=>"AdGroupBids"}, :Media_Size_DimensionsMapEntry=>{:fields=>[{:type=>"Media.Size", :max_occurs=>1, :name=>:key, :min_occurs=>0}, {:type=>"Dimensions", :max_occurs=>1, :name=>:value, :min_occurs=>0}]}, :CampaignAdExtensionOperation=>{:fields=>[{:type=>"CampaignAdExtension", :max_occurs=>1, :name=>:operand, :min_occurs=>0}], :base=>"Operation"}, :BulkMutateRequest=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:part_index, :min_occurs=>0}, {:type=>"OperationStream", :max_occurs=>:unbounded, :name=>:operation_streams, :min_occurs=>0}]}, :PolicyViolationKey=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:policy_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:violating_text, :min_occurs=>0}]}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :MobileTargetList=>{:fields=>[{:type=>"MobileTarget", :max_occurs=>:unbounded, :name=>:targets, :min_occurs=>0}], :base=>"TargetList"}, :GenderTarget=>{:fields=>[{:type=>"GenderTarget.Gender", :max_occurs=>1, :name=>:gender, :min_occurs=>0}], :base=>"DemographicTarget"}, :Vertical=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :name=>:path, :min_occurs=>0}], :base=>"Criterion"}, :ProductAd=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:promotion_line, :min_occurs=>0}], :base=>"Ad"}, :FrequencyCap=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:impressions, :min_occurs=>0}, {:type=>"TimeUnit", :max_occurs=>1, :name=>:time_unit, :min_occurs=>0}, {:type=>"Level", :max_occurs=>1, :name=>:level, :min_occurs=>0}]}, :ManualCPMAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:max_cpm, :min_occurs=>0}], :base=>"AdGroupBids"}, :CampaignCriterionLimitExceeded=>{:fields=>[{:type=>"CampaignCriterionLimitExceeded.CriteriaLimitType", :max_occurs=>1, :name=>:limit_type, :min_occurs=>0}], :base=>"EntityCountLimitExceeded"}, :ProductConditionOperand=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:operand, :min_occurs=>0}]}, :OperationResult=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:operation_result_type, :min_occurs=>0}], :abstract=>true}, :MetroTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:metro_code, :min_occurs=>0}], :base=>"GeoTarget"}, :ThirdPartyRedirectAd=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:is_cookie_targeted, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:is_user_interest_targeted, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:is_tagged, :min_occurs=>0}, {:type=>"VideoType", :max_occurs=>:unbounded, :name=>:video_types, :min_occurs=>0}], :base=>"RichMediaAd"}, :ContentLabel=>{:fields=>[{:type=>"ContentLabelType", :max_occurs=>1, :name=>:content_label_type, :min_occurs=>0}], :base=>"Criterion"}, :BidMultiplier=>{:fields=>[{:type=>"double", :max_occurs=>1, :name=>:multiplier, :min_occurs=>0}, {:type=>"Bid", :max_occurs=>1, :name=>:multiplied_bid, :min_occurs=>0}]}, :ManualCPM=>{:fields=>[], :base=>"BiddingStrategy"}, :AdGroupExperimentBidMultipliers=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:ad_group_experiment_bid_multipliers_type, :min_occurs=>0}], :abstract=>true}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:auth_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_customer_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_email, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:developer_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_agent, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:validate_only, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:partial_failure, :min_occurs=>0}]}, :OverrideInfo=>{:fields=>[]}, :MobileTarget=>{:fields=>[], :abstract=>true, :base=>"Target"}, :AdExtensionOverride=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:ad_id, :min_occurs=>0}, {:type=>"AdExtension", :max_occurs=>1, :name=>:ad_extension, :min_occurs=>0}, {:type=>"OverrideInfo", :max_occurs=>1, :name=>:override_info, :min_occurs=>0}, {:type=>"AdExtensionOverride.Status", :max_occurs=>1, :name=>:status, :min_occurs=>0}, {:type=>"AdExtensionOverride.ApprovalStatus", :max_occurs=>1, :name=>:approval_status, :min_occurs=>0}, {:type=>"AdExtensionOverrideStats", :max_occurs=>1, :name=>:stats, :min_occurs=>0}]}, :RealTimeBiddingSetting=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:opt_in, :min_occurs=>0}], :base=>"Setting"}, :Address=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:street_address, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:street_address2, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:city_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:province_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:province_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:postal_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:country_code, :min_occurs=>0}]}, :BudgetOptimizerAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:proxy_bid, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:enhanced_cpc_enabled, :min_occurs=>0}], :base=>"AdGroupCriterionBids"}, :AdGroupOperation=>{:fields=>[{:type=>"AdGroup", :max_occurs=>1, :name=>:operand, :min_occurs=>0}], :base=>"Operation"}, :AdUnionId=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:ad_union_id_type, :min_occurs=>0}]}, :FailureResult=>{:fields=>[{:type=>"ApiException", :max_occurs=>1, :name=>:cause, :min_occurs=>0}], :base=>"OperationResult"}, :TargetList=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:campaign_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:target_list_type, :min_occurs=>0}], :abstract=>true}, :ProvinceTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:province_code, :min_occurs=>0}], :base=>"GeoTarget"}, :ProductCondition=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:argument, :min_occurs=>0}, {:type=>"ProductConditionOperand", :max_occurs=>1, :name=>:operand, :min_occurs=>0}]}, :ApiErrorReason=>{:fields=>[]}, :MobileImageAd=>{:fields=>[{:type=>"MarkupLanguageType", :max_occurs=>:unbounded, :name=>:markup_languages, :min_occurs=>0}, {:type=>"string", :max_occurs=>:unbounded, :name=>:mobile_carriers, :min_occurs=>0}, {:type=>"Image", :max_occurs=>1, :name=>:image, :min_occurs=>0}], :base=>"Ad"}, :JobContext=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:authenticated_user_email, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:effective_customer_id, :min_occurs=>0}]}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :name=>:number, :min_occurs=>0}], :base=>"NumberValue"}, :EntityCountLimitExceeded=>{:fields=>[{:type=>"EntityCountLimitExceeded.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:enclosing_id, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:limit, :min_occurs=>0}], :base=>"ApiError"}, :BudgetOptimizer=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:enhanced_cpc_enabled, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:bid_ceiling, :min_occurs=>0}], :base=>"BiddingStrategy"}, :Criterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:criterion_type, :min_occurs=>0}]}, :AdStats=>{:fields=>[{:type=>"double", :max_occurs=>1, :name=>:percent_served, :min_occurs=>0}], :base=>"Stats"}, :BulkMutateJob=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"BulkMutateJobPolicy", :max_occurs=>1, :name=>:policy, :min_occurs=>0}, {:type=>"BulkMutateRequest", :max_occurs=>1, :name=>:request, :min_occurs=>0}, {:type=>"BasicJobStatus", :max_occurs=>1, :name=>:status, :min_occurs=>0}, {:type=>"BulkMutateJobEvent", :max_occurs=>:unbounded, :name=>:history, :min_occurs=>0}, {:type=>"BulkMutateResult", :max_occurs=>1, :name=>:result, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:num_request_parts, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:num_request_parts_received, :min_occurs=>0}], :base=>"Job"}, :TemplateElement=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:unique_name, :min_occurs=>0}, {:type=>"TemplateElementField", :max_occurs=>:unbounded, :name=>:fields, :min_occurs=>0}]}, :JobSelector=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:include_history, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:include_stats, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:job_selector_type, :min_occurs=>0}], :abstract=>true}, :LocationExtension=>{:fields=>[{:type=>"Address", :max_occurs=>1, :name=>:address, :min_occurs=>0}, {:type=>"GeoPoint", :max_occurs=>1, :name=>:geo_point, :min_occurs=>0}, {:type=>"base64Binary", :max_occurs=>1, :name=>:encoded_location, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:company_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:phone_number, :min_occurs=>0}, {:type=>"LocationExtension.Source", :max_occurs=>1, :name=>:source, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:icon_media_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:image_media_id, :min_occurs=>0}], :base=>"AdExtension"}, :ManualCPCAdGroupCriterionExperimentBidMultiplier=>{:fields=>[{:type=>"BidMultiplier", :max_occurs=>1, :name=>:max_cpc_multiplier, :min_occurs=>0}, {:type=>"MultiplierSource", :max_occurs=>1, :name=>:multiplier_source, :min_occurs=>0}], :base=>"AdGroupCriterionExperimentBidMultiplier"}, :Campaign=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:name, :min_occurs=>0}, {:type=>"CampaignStatus", :max_occurs=>1, :name=>:status, :min_occurs=>0}, {:type=>"ServingStatus", :max_occurs=>1, :name=>:serving_status, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:start_date, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:end_date, :min_occurs=>0}, {:type=>"Budget", :max_occurs=>1, :name=>:budget, :min_occurs=>0}, {:type=>"BiddingStrategy", :max_occurs=>1, :name=>:bidding_strategy, :min_occurs=>0}, {:type=>"ConversionOptimizerEligibility", :max_occurs=>1, :name=>:conversion_optimizer_eligibility, :min_occurs=>0}, {:type=>"CampaignStats", :max_occurs=>1, :name=>:campaign_stats, :min_occurs=>0}, {:type=>"AdServingOptimizationStatus", :max_occurs=>1, :name=>:ad_serving_optimization_status, :min_occurs=>0}, {:type=>"FrequencyCap", :max_occurs=>1, :name=>:frequency_cap, :min_occurs=>0}, {:type=>"Setting", :max_occurs=>:unbounded, :name=>:settings, :min_occurs=>0}, {:type=>"NetworkSetting", :max_occurs=>1, :name=>:network_setting, :min_occurs=>0}]}, :AdScheduleTarget=>{:fields=>[{:type=>"DayOfWeek", :max_occurs=>1, :name=>:day_of_week, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:start_hour, :min_occurs=>0}, {:type=>"MinuteOfHour", :max_occurs=>1, :name=>:start_minute, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:end_hour, :min_occurs=>0}, {:type=>"MinuteOfHour", :max_occurs=>1, :name=>:end_minute, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:bid_multiplier, :min_occurs=>0}], :base=>"Target"}, :Placement=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:url, :min_occurs=>0}], :base=>"Criterion"}, :PercentCPAAdGroupBids=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:percent_cpa, :min_occurs=>0}], :base=>"AdGroupBids"}, :Dimensions=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:width, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:height, :min_occurs=>0}]}, :AdExtension=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:ad_extension_type, :min_occurs=>0}]}, :BulkMutateJobSelector=>{:fields=>[{:type=>"long", :max_occurs=>:unbounded, :name=>:job_ids, :min_occurs=>0}, {:type=>"BasicJobStatus", :max_occurs=>:unbounded, :name=>:job_statuses, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:result_part_index, :min_occurs=>0}], :base=>"JobSelector"}, :AdGroupCriterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:ad_group_id, :min_occurs=>0}, {:type=>"CriterionUse", :max_occurs=>1, :name=>:criterion_use, :min_occurs=>0}, {:type=>"Criterion", :max_occurs=>1, :name=>:criterion, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:ad_group_criterion_type, :min_occurs=>0}]}, :PercentCPAAdGroupCriterionBids=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:percent_cpa, :min_occurs=>0}, {:type=>"BidSource", :max_occurs=>1, :name=>:source, :min_occurs=>0}], :base=>"AdGroupCriterionBids"}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:micro_amount, :min_occurs=>0}], :base=>"ComparableValue"}, :CountryTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:country_code, :min_occurs=>0}], :base=>"GeoTarget"}, :AdGroupAd=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:ad_group_id, :min_occurs=>0}, {:type=>"Ad", :max_occurs=>1, :name=>:ad, :min_occurs=>0}, {:type=>"AdGroupAdExperimentData", :max_occurs=>1, :name=>:experiment_data, :min_occurs=>0}, {:type=>"AdGroupAd.Status", :max_occurs=>1, :name=>:status, :min_occurs=>0}, {:type=>"AdStats", :max_occurs=>1, :name=>:stats, :min_occurs=>0}]}, :LocationOverrideInfo=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:radius, :min_occurs=>0}, {:type=>"LocationOverrideInfo.RadiusUnits", :max_occurs=>1, :name=>:radius_units, :min_occurs=>0}]}, :CriterionUserInterest=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:user_interest_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_interest_name, :min_occurs=>0}], :base=>"Criterion"}, :Media_Size_StringMapEntry=>{:fields=>[{:type=>"Media.Size", :max_occurs=>1, :name=>:key, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:value, :min_occurs=>0}]}, :BulkMutateResult=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:part_index, :min_occurs=>0}, {:type=>"OperationStreamResult", :max_occurs=>:unbounded, :name=>:operation_stream_results, :min_occurs=>0}]}, :AdGroupCriterionLimitExceeded=>{:fields=>[{:type=>"AdGroupCriterionLimitExceeded.CriteriaLimitType", :max_occurs=>1, :name=>:limit_type, :min_occurs=>0}], :base=>"EntityCountLimitExceeded"}, :ConversionOptimizerBiddingTransition=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:use_saved_bids, :min_occurs=>0}], :base=>"BiddingTransition"}, :ManualCPCAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:keyword_max_cpc, :min_occurs=>0}, {:type=>"Bid", :max_occurs=>1, :name=>:keyword_content_max_cpc, :min_occurs=>0}, {:type=>"Bid", :max_occurs=>1, :name=>:site_max_cpc, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:enhanced_cpc_enabled, :min_occurs=>0}], :base=>"AdGroupBids"}, :PositionPreferenceAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:proxy_max_cpc, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:preferred_position, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:bottom_position, :min_occurs=>0}]}, :NegativeCampaignCriterion=>{:fields=>[], :base=>"CampaignCriterion"}, :GeoTarget=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:excluded, :min_occurs=>0}], :abstract=>true, :base=>"Target"}, :TempAdUnionId=>{:fields=>[], :base=>"AdUnionId"}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :name=>:operator, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:operation_type, :min_occurs=>0}], :abstract=>true}, :GeoTargetTypeSetting=>{:fields=>[{:type=>"GeoTargetTypeSetting.PositiveGeoTargetType", :max_occurs=>1, :name=>:positive_geo_target_type, :min_occurs=>0}, {:type=>"GeoTargetTypeSetting.NegativeGeoTargetType", :max_occurs=>1, :name=>:negative_geo_target_type, :min_occurs=>0}], :base=>"Setting"}, :ManualCPMAdGroupExperimentBidMultipliers=>{:fields=>[{:type=>"BidMultiplier", :max_occurs=>1, :name=>:max_cpm_multiplier, :min_occurs=>0}], :base=>"AdGroupExperimentBidMultipliers"}, :CampaignCriterionOperation=>{:fields=>[{:type=>"CampaignCriterion", :max_occurs=>1, :name=>:operand, :min_occurs=>0}], :base=>"Operation"}, :Sitelink=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:display_text, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:destination_url, :min_occurs=>0}]}, :OperationStream=>{:fields=>[{:type=>"EntityId", :max_occurs=>1, :name=>:scoping_entity_id, :min_occurs=>0}, {:type=>"Operation", :max_occurs=>:unbounded, :name=>:operations, :min_occurs=>0}]}, :MobileCarrierTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:carrier_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:country_code, :min_occurs=>0}], :base=>"MobileTarget"}, :Video=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:duration_millis, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:streaming_url, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:ready_to_play_on_the_web, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:industry_standard_commercial_identifier, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:advertising_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:you_tube_video_id_string, :min_occurs=>0}], :base=>"Media"}, :NetworkSetting=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:target_google_search, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:target_search_network, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:target_content_network, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:target_content_contextual, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:target_partner_search_network, :min_occurs=>0}]}, :AdGroupExperimentData=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:experiment_id, :min_occurs=>0}, {:type=>"ExperimentDeltaStatus", :max_occurs=>1, :name=>:experiment_delta_status, :min_occurs=>0}, {:type=>"ExperimentDataStatus", :max_occurs=>1, :name=>:experiment_data_status, :min_occurs=>0}, {:type=>"AdGroupExperimentBidMultipliers", :max_occurs=>1, :name=>:experiment_bid_multipliers, :min_occurs=>0}]}, :DemographicTargetList=>{:fields=>[{:type=>"DemographicTarget", :max_occurs=>:unbounded, :name=>:targets, :min_occurs=>0}], :base=>"TargetList"}, :BiddableAdGroupCriterion=>{:fields=>[{:type=>"UserStatus", :max_occurs=>1, :name=>:user_status, :min_occurs=>0}, {:type=>"SystemServingStatus", :max_occurs=>1, :name=>:system_serving_status, :min_occurs=>0}, {:type=>"ApprovalStatus", :max_occurs=>1, :name=>:approval_status, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:destination_url, :min_occurs=>0}, {:type=>"AdGroupCriterionBids", :max_occurs=>1, :name=>:bids, :min_occurs=>0}, {:type=>"BiddableAdGroupCriterionExperimentData", :max_occurs=>1, :name=>:experiment_data, :min_occurs=>0}, {:type=>"Bid", :max_occurs=>1, :name=>:first_page_cpc, :min_occurs=>0}, {:type=>"QualityInfo", :max_occurs=>1, :name=>:quality_info, :min_occurs=>0}, {:type=>"Stats", :max_occurs=>1, :name=>:stats, :min_occurs=>0}], :base=>"AdGroupCriterion"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:request_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:operations, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:response_time, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:units, :min_occurs=>0}]}, :PlatformTargetList=>{:fields=>[{:type=>"PlatformTarget", :max_occurs=>:unbounded, :name=>:targets, :min_occurs=>0}], :base=>"TargetList"}, :PlatformTarget=>{:fields=>[{:type=>"PlatformType", :max_occurs=>1, :name=>:platform_type, :min_occurs=>0}], :base=>"Target"}, :AdExtensionOverrideOperation=>{:fields=>[{:type=>"AdExtensionOverride", :max_occurs=>1, :name=>:operand, :min_occurs=>0}], :base=>"Operation"}, :Setting=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:setting_type, :min_occurs=>0}], :abstract=>true}, :RichMediaAd=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:name, :min_occurs=>0}, {:type=>"Dimensions", :max_occurs=>1, :name=>:dimensions, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:snippet, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:impression_beacon_url, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:certified_vendor_format_id, :min_occurs=>0}], :abstract=>true, :base=>"Ad"}, :"PolicyViolationError.Part"=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:index, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:length, :min_occurs=>0}]}, :GeoTargetList=>{:fields=>[{:type=>"GeoTarget", :max_occurs=>:unbounded, :name=>:targets, :min_occurs=>0}], :base=>"TargetList"}, :CampaignAdExtensionStats=>{:fields=>[], :base=>"Stats"}, :ConversionOptimizerAdGroupCriterionBids=>{:fields=>[], :base=>"AdGroupCriterionBids"}, :UnprocessedResult=>{:fields=>[], :base=>"OperationResult"}, :ProximityTarget=>{:fields=>[{:type=>"GeoPoint", :max_occurs=>1, :name=>:geo_point, :min_occurs=>0}, {:type=>"ProximityTarget.DistanceUnits", :max_occurs=>1, :name=>:radius_distance_units, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:radius_in_units, :min_occurs=>0}, {:type=>"Address", :max_occurs=>1, :name=>:address, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:allow_service_of_address, :min_occurs=>0}], :base=>"GeoTarget"}, :ProductConditionAndGroup=>{:fields=>[{:type=>"ProductCondition", :max_occurs=>:unbounded, :name=>:conditions, :min_occurs=>0}]}, :AdExtensionOverrideStats=>{:fields=>[], :base=>"Stats"}, :BatchFailureResult=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:operation_index_in_batch, :min_occurs=>0}], :base=>"OperationResult"}, :TemplateElementField=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:name, :min_occurs=>0}, {:type=>"TemplateElementField.Type", :max_occurs=>1, :name=>:type, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:field_text, :min_occurs=>0}, {:type=>"Media", :max_occurs=>1, :name=>:field_media, :min_occurs=>0}]}, :ExemptionRequest=>{:fields=>[{:type=>"PolicyViolationKey", :max_occurs=>1, :name=>:key, :min_occurs=>0}]}, :BiddingStrategy=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:bidding_strategy_type, :min_occurs=>0}], :abstract=>true}, :JobEvent=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:date_time, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:job_event_type, :min_occurs=>0}]}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :Stats=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:start_date, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:end_date, :min_occurs=>0}, {:type=>"Stats.Network", :max_occurs=>1, :name=>:network, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:clicks, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:impressions, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:average_position, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:average_cpc, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:average_cpm, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:ctr, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:conversions, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:conversion_rate, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost_per_conversion, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:conversions_many_per_click, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:conversion_rate_many_per_click, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost_per_conversion_many_per_click, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:view_through_conversions, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:total_conv_value, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:value_per_conv, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:value_per_conv_many_per_click, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:invalid_clicks, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:invalid_click_rate, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:stats_type, :min_occurs=>0}]}, :BulkMutateJobEvent=>{:fields=>[{:type=>"BasicJobStatus", :max_occurs=>1, :name=>:status, :min_occurs=>0}], :base=>"JobEvent"}, :Audio=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:duration_millis, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:streaming_url, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:ready_to_play_on_the_web, :min_occurs=>0}], :base=>"Media"}, :TemplateAd=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:template_id, :min_occurs=>0}, {:type=>"AdUnionId", :max_occurs=>1, :name=>:ad_union_id, :min_occurs=>0}, {:type=>"TemplateElement", :max_occurs=>:unbounded, :name=>:template_elements, :min_occurs=>0}, {:type=>"Dimensions", :max_occurs=>1, :name=>:dimensions, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:name, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:duration, :min_occurs=>0}], :base=>"Ad"}, :JobStats=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:progress_percent, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:pending_time_millis, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:processing_time_millis, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:job_stats_type, :min_occurs=>0}]}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:number, :min_occurs=>0}], :base=>"NumberValue"}, :ManualCPMAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:max_cpm, :min_occurs=>0}, {:type=>"BidSource", :max_occurs=>1, :name=>:bid_source, :min_occurs=>0}], :base=>"AdGroupCriterionBids"}, :CampaignOperation=>{:fields=>[{:type=>"BiddingTransition", :max_occurs=>1, :name=>:bidding_transition, :min_occurs=>0}, {:type=>"Campaign", :max_occurs=>1, :name=>:operand, :min_occurs=>0}], :base=>"Operation"}, :AgeTarget=>{:fields=>[{:type=>"AgeTarget.Age", :max_occurs=>1, :name=>:age, :min_occurs=>0}], :base=>"DemographicTarget"}, :Product=>{:fields=>[{:type=>"ProductCondition", :max_occurs=>:unbounded, :name=>:conditions, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:text, :min_occurs=>0}], :base=>"Criterion"}, :AdGroupCriterionBids=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:ad_group_criterion_bids_type, :min_occurs=>0}], :abstract=>true}, :CampaignStats=>{:fields=>[], :base=>"Stats"}, :BudgetOptimizerAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:proxy_keyword_max_cpc, :min_occurs=>0}, {:type=>"Bid", :max_occurs=>1, :name=>:proxy_site_max_cpc, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:enhanced_cpc_enabled, :min_occurs=>0}], :base=>"AdGroupBids"}, :Image=>{:fields=>[{:type=>"base64Binary", :max_occurs=>1, :name=>:data, :min_occurs=>0}], :base=>"Media"}, :CampaignAdExtension=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:campaign_id, :min_occurs=>0}, {:type=>"AdExtension", :max_occurs=>1, :name=>:ad_extension, :min_occurs=>0}, {:type=>"CampaignAdExtension.Status", :max_occurs=>1, :name=>:status, :min_occurs=>0}, {:type=>"CampaignAdExtension.ApprovalStatus", :max_occurs=>1, :name=>:approval_status, :min_occurs=>0}, {:type=>"CampaignAdExtensionStats", :max_occurs=>1, :name=>:stats, :min_occurs=>0}]}, :BulkMutateJobStats=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:num_operations, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:num_failed_operations, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:num_unprocessed_operations, :min_occurs=>0}], :base=>"JobStats"}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :DemographicTarget=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:bid_modifier, :min_occurs=>0}], :abstract=>true, :base=>"Target"}, :AdGroupAdOperation=>{:fields=>[{:type=>"AdGroupAd", :max_occurs=>1, :name=>:operand, :min_occurs=>0}, {:type=>"ExemptionRequest", :max_occurs=>:unbounded, :name=>:exemption_requests, :min_occurs=>0}], :base=>"Operation"}, :LostResult=>{:fields=>[], :base=>"OperationResult"}, :CriterionUserList=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:user_list_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_list_name, :min_occurs=>0}, {:type=>"CriterionUserList.MembershipStatus", :max_occurs=>1, :name=>:user_list_membership_status, :min_occurs=>0}], :base=>"Criterion"}, :ManualCPCAdGroupExperimentBidMultipliers=>{:fields=>[{:type=>"BidMultiplier", :max_occurs=>1, :name=>:max_cpc_multiplier, :min_occurs=>0}, {:type=>"BidMultiplier", :max_occurs=>1, :name=>:max_content_cpc_multiplier, :min_occurs=>0}], :base=>"AdGroupExperimentBidMultipliers"}, :MobileAd=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:headline, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:description, :min_occurs=>0}, {:type=>"MarkupLanguageType", :max_occurs=>:unbounded, :name=>:markup_languages, :min_occurs=>0}, {:type=>"string", :max_occurs=>:unbounded, :name=>:mobile_carriers, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:business_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:country_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:phone_number, :min_occurs=>0}], :base=>"Ad"}, :CampaignCriterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:campaign_id, :min_occurs=>0}, {:type=>"Criterion", :max_occurs=>1, :name=>:criterion, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:campaign_criterion_type, :min_occurs=>0}]}, :AdGroupCriterionOperation=>{:fields=>[{:type=>"AdGroupCriterion", :max_occurs=>1, :name=>:operand, :min_occurs=>0}, {:type=>"ExemptionRequest", :max_occurs=>:unbounded, :name=>:exemption_requests, :min_occurs=>0}], :base=>"Operation"}, :ConversionOptimizerEligibility=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:eligible, :min_occurs=>0}, {:type=>"ConversionOptimizerEligibility.RejectionReason", :max_occurs=>:unbounded, :name=>:rejection_reasons, :min_occurs=>0}]}, :QualityInfo=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:is_keyword_ad_relevance_acceptable, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:is_landing_page_quality_acceptable, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:is_landing_page_latency_acceptable, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:quality_score, :min_occurs=>0}]}, :Operand=>{:fields=>[]}, :LanguageTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:language_code, :min_occurs=>0}], :base=>"Target"}, :TextAd=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:headline, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:description1, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:description2, :min_occurs=>0}], :base=>"Ad"}, :CampaignTargetOperation=>{:fields=>[{:type=>"TargetList", :max_occurs=>1, :name=>:operand, :min_occurs=>0}], :base=>"Operation"}, :Bid=>{:fields=>[{:type=>"Money", :max_occurs=>1, :name=>:amount, :min_occurs=>0}]}, :ManualCPC=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:enhanced_cpc_enabled, :min_occurs=>0}, {:type=>"PositionPreference", :max_occurs=>1, :name=>:position_preference, :min_occurs=>0}], :base=>"BiddingStrategy"}, :AdGroupBids=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:ad_group_bids_type, :min_occurs=>0}], :abstract=>true}, :SitelinksExtension=>{:fields=>[{:type=>"Sitelink", :max_occurs=>:unbounded, :name=>:sitelinks, :min_occurs=>0}], :base=>"AdExtension"}, :OperationStreamResult=>{:fields=>[{:type=>"OperationResult", :max_occurs=>:unbounded, :name=>:operation_results, :min_occurs=>0}]}, :MobilePlatformTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:platform_name, :min_occurs=>0}], :base=>"MobileTarget"}, :PercentCPA=>{:fields=>[], :base=>"BiddingStrategy"}, :AdGroup=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:campaign_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:campaign_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:name, :min_occurs=>0}, {:type=>"AdGroup.Status", :max_occurs=>1, :name=>:status, :min_occurs=>0}, {:type=>"AdGroupBids", :max_occurs=>1, :name=>:bids, :min_occurs=>0}, {:type=>"AdGroupExperimentData", :max_occurs=>1, :name=>:experiment_data, :min_occurs=>0}, {:type=>"Stats", :max_occurs=>1, :name=>:stats, :min_occurs=>0}]}, :AdGroupAdExperimentData=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:experiment_id, :min_occurs=>0}, {:type=>"ExperimentDeltaStatus", :max_occurs=>1, :name=>:experiment_delta_status, :min_occurs=>0}, {:type=>"ExperimentDataStatus", :max_occurs=>1, :name=>:experiment_data_status, :min_occurs=>0}]}, :EntityId=>{:fields=>[{:type=>"EntityId.Type", :max_occurs=>1, :name=>:type, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:value, :min_occurs=>0}]}, :BiddableAdGroupCriterionExperimentData=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:experiment_id, :min_occurs=>0}, {:type=>"ExperimentDeltaStatus", :max_occurs=>1, :name=>:experiment_delta_status, :min_occurs=>0}, {:type=>"ExperimentDataStatus", :max_occurs=>1, :name=>:experiment_data_status, :min_occurs=>0}, {:type=>"AdGroupCriterionExperimentBidMultiplier", :max_occurs=>1, :name=>:experiment_bid_multiplier, :min_occurs=>0}]}, :ReturnValueResult=>{:fields=>[{:type=>"Operand", :max_occurs=>1, :name=>:return_value, :min_occurs=>0}], :base=>"OperationResult"}, :PolygonTarget=>{:fields=>[{:type=>"GeoPoint", :max_occurs=>:unbounded, :name=>:vertices, :min_occurs=>0}], :base=>"GeoTarget"}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:comparable_value_type, :min_occurs=>0}], :abstract=>true}, :AdScheduleTargetList=>{:fields=>[{:type=>"AdScheduleTarget", :max_occurs=>:unbounded, :name=>:targets, :min_occurs=>0}], :base=>"TargetList"}, :Media=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:media_id, :min_occurs=>0}, {:type=>"Media.MediaType", :max_occurs=>1, :name=>:type, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:reference_id, :min_occurs=>0}, {:type=>"Media_Size_DimensionsMapEntry", :max_occurs=>:unbounded, :name=>:dimensions, :min_occurs=>0}, {:type=>"Media_Size_StringMapEntry", :max_occurs=>:unbounded, :name=>:urls, :min_occurs=>0}, {:type=>"Media.MimeType", :max_occurs=>1, :name=>:mime_type, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:source_url, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:name, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:file_size, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:creation_time, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:media_type, :min_occurs=>0}]}, :Job=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:customer_job_key, :min_occurs=>0}, {:type=>"JobContext", :max_occurs=>1, :name=>:context, :min_occurs=>0}, {:type=>"ApiErrorReason", :max_occurs=>1, :name=>:failure_reason, :min_occurs=>0}, {:type=>"JobStats", :max_occurs=>1, :name=>:stats, :min_occurs=>0}, {:type=>"BillingSummary", :max_occurs=>1, :name=>:billing_summary, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:job_type, :min_occurs=>0}], :abstract=>true}, :EntityAccessDenied=>{:fields=>[{:type=>"EntityAccessDenied.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :Budget=>{:fields=>[{:type=>"Budget.BudgetPeriod", :max_occurs=>1, :name=>:period, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:amount, :min_occurs=>0}, {:type=>"Budget.BudgetDeliveryMethod", :max_occurs=>1, :name=>:delivery_method, :min_occurs=>0}]}, :Target=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:target_type, :min_occurs=>0}], :abstract=>true}, :ProductExtension=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:google_base_customer_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:advertiser_name, :min_occurs=>0}, {:type=>"ProductConditionAndGroup", :max_occurs=>:unbounded, :name=>:product_selection, :min_occurs=>0}], :base=>"AdExtension"}, :AdGroupAdCountLimitExceeded=>{:fields=>[], :base=>"EntityCountLimitExceeded"}, :BillingSummary=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:num_operations, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:num_units, :min_occurs=>0}]}}
12
+ BULKMUTATEJOBSERVICE_METHODS = {:get=>{:input=>[{:type=>"BulkMutateJobSelector", :max_occurs=>1, :min_occurs=>0, :name=>:selector}], :output=>{:fields=>[{:type=>"BulkMutateJob", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"JobOperation", :max_occurs=>1, :min_occurs=>0, :name=>:operation}], :output=>{:fields=>[{:type=>"BulkMutateJob", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"mutate_response"}}}
13
+ BULKMUTATEJOBSERVICE_TYPES = {:ProductExtension=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:google_base_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:advertiser_name}, {:type=>"ProductConditionAndGroup", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:product_selection}], :base=>"AdExtension"}, :GeoTargetTypeSetting=>{:fields=>[{:type=>"GeoTargetTypeSetting.PositiveGeoTargetType", :max_occurs=>1, :min_occurs=>0, :name=>:positive_geo_target_type}, {:type=>"GeoTargetTypeSetting.NegativeGeoTargetType", :max_occurs=>1, :min_occurs=>0, :name=>:negative_geo_target_type}], :base=>"Setting"}, :Audio=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:duration_millis}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:streaming_url}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:ready_to_play_on_the_web}], :base=>"Media"}, :CampaignTargetOperation=>{:fields=>[{:type=>"TargetList", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :FrequencyCap=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:impressions}, {:type=>"TimeUnit", :max_occurs=>1, :min_occurs=>0, :name=>:time_unit}, {:type=>"Level", :max_occurs=>1, :min_occurs=>0, :name=>:level}]}, :DemographicTarget=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:bid_modifier}], :abstract=>true, :base=>"Target"}, :OperationStream=>{:fields=>[{:type=>"EntityId", :max_occurs=>1, :min_occurs=>0, :name=>:scoping_entity_id}, {:type=>"Operation", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:operations}]}, :AdGroupCriterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_id}, {:type=>"CriterionUse", :max_occurs=>1, :min_occurs=>0, :name=>:criterion_use}, {:type=>"Criterion", :max_occurs=>1, :min_occurs=>0, :name=>:criterion}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_criterion_type}]}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :CriterionUserInterest=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:user_interest_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_interest_name}], :base=>"Criterion"}, :Setting=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:setting_type}], :abstract=>true}, :PercentCPA=>{:fields=>[], :base=>"BiddingStrategy"}, :LocationSyncExtension=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:email}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:icon_media_id}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:should_sync_url}], :base=>"AdExtension"}, :EntityId=>{:fields=>[{:type=>"EntityId.Type", :max_occurs=>1, :min_occurs=>0, :name=>:type}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:value}]}, :LanguageTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:language_code}], :base=>"Target"}, :Image=>{:fields=>[{:type=>"base64Binary", :max_occurs=>1, :min_occurs=>0, :name=>:data}], :base=>"Media"}, :PlatformTargetList=>{:fields=>[{:type=>"PlatformTarget", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:targets}], :base=>"TargetList"}, :AdGroupAd=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_id}, {:type=>"Ad", :max_occurs=>1, :min_occurs=>0, :name=>:ad}, {:type=>"AdGroupAdExperimentData", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_data}, {:type=>"AdGroupAd.Status", :max_occurs=>1, :min_occurs=>0, :name=>:status}, {:type=>"AdStats", :max_occurs=>1, :min_occurs=>0, :name=>:stats}]}, :AdGroupAdExperimentData=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_id}, {:type=>"ExperimentDeltaStatus", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_delta_status}, {:type=>"ExperimentDataStatus", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_data_status}]}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}, :AdScheduleTargetList=>{:fields=>[{:type=>"AdScheduleTarget", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:targets}], :base=>"TargetList"}, :MobilePlatformTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:platform_name}], :base=>"MobileTarget"}, :BiddingStrategy=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:bidding_strategy_type}], :abstract=>true}, :ExemptionRequest=>{:fields=>[{:type=>"PolicyViolationKey", :max_occurs=>1, :min_occurs=>0, :name=>:key}]}, :MobileAd=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:headline}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:description}, {:type=>"MarkupLanguageType", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:markup_languages}, {:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:mobile_carriers}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:business_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:phone_number}], :base=>"Ad"}, :CampaignAdExtension=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_id}, {:type=>"AdExtension", :max_occurs=>1, :min_occurs=>0, :name=>:ad_extension}, {:type=>"CampaignAdExtension.Status", :max_occurs=>1, :min_occurs=>0, :name=>:status}, {:type=>"CampaignAdExtension.ApprovalStatus", :max_occurs=>1, :min_occurs=>0, :name=>:approval_status}, {:type=>"CampaignAdExtensionStats", :max_occurs=>1, :min_occurs=>0, :name=>:stats}]}, :Job=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:customer_job_key}, {:type=>"JobContext", :max_occurs=>1, :min_occurs=>0, :name=>:context}, {:type=>"ApiErrorReason", :max_occurs=>1, :min_occurs=>0, :name=>:failure_reason}, {:type=>"JobStats", :max_occurs=>1, :min_occurs=>0, :name=>:stats}, {:type=>"BillingSummary", :max_occurs=>1, :min_occurs=>0, :name=>:billing_summary}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:job_type}], :abstract=>true}, :UnprocessedResult=>{:fields=>[], :base=>"OperationResult"}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :BillingSummary=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:num_operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:num_units}]}, :TextAd=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:headline}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:description1}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:description2}], :base=>"Ad"}, :PlatformTarget=>{:fields=>[{:type=>"PlatformType", :max_occurs=>1, :min_occurs=>0, :name=>:platform_type}], :base=>"Target"}, :ConversionOptimizerAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:target_cpa}, {:type=>"ConversionOptimizerBidType", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_optimizer_bid_type}, {:type=>"ConversionDeduplicationMode", :max_occurs=>1, :min_occurs=>0, :name=>:deduplication_mode}], :base=>"AdGroupBids"}, :JobOperation=>{:fields=>[{:type=>"Job", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :CampaignOperation=>{:fields=>[{:type=>"BiddingTransition", :max_occurs=>1, :min_occurs=>0, :name=>:bidding_transition}, {:type=>"Campaign", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :BudgetOptimizerAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:proxy_bid}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupCriterionBids"}, :Sitelink=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:display_text}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:destination_url}]}, :AdGroupCriterionLimitExceeded=>{:fields=>[{:type=>"AdGroupCriterionLimitExceeded.CriteriaLimitType", :max_occurs=>1, :min_occurs=>0, :name=>:limit_type}], :base=>"EntityCountLimitExceeded"}, :BulkMutateJobPolicy=>{:fields=>[{:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:prerequisite_job_ids}]}, :ProximityTarget=>{:fields=>[{:type=>"GeoPoint", :max_occurs=>1, :min_occurs=>0, :name=>:geo_point}, {:type=>"ProximityTarget.DistanceUnits", :max_occurs=>1, :min_occurs=>0, :name=>:radius_distance_units}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:radius_in_units}, {:type=>"Address", :max_occurs=>1, :min_occurs=>0, :name=>:address}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:allow_service_of_address}], :base=>"GeoTarget"}, :PositionPreferenceAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:proxy_max_cpc}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:preferred_position}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:bottom_position}]}, :LanguageTargetList=>{:fields=>[{:type=>"LanguageTarget", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:targets}], :base=>"TargetList"}, :AdUnionId=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_union_id_type}]}, :ManualCPMAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:max_cpm}], :base=>"AdGroupBids"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}]}, :BulkMutateRequest=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:part_index}, {:type=>"OperationStream", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:operation_streams}]}, :EntityCountLimitExceeded=>{:fields=>[{:type=>"EntityCountLimitExceeded.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:enclosing_id}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:limit}], :base=>"ApiError"}, :MobileTargetList=>{:fields=>[{:type=>"MobileTarget", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:targets}], :base=>"TargetList"}, :MobileImageAd=>{:fields=>[{:type=>"MarkupLanguageType", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:markup_languages}, {:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:mobile_carriers}, {:type=>"Image", :max_occurs=>1, :min_occurs=>0, :name=>:image}], :base=>"Ad"}, :BiddableAdGroupCriterionExperimentData=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_id}, {:type=>"ExperimentDeltaStatus", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_delta_status}, {:type=>"ExperimentDataStatus", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_data_status}, {:type=>"AdGroupCriterionExperimentBidMultiplier", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_bid_multiplier}]}, :AdGroupExperimentBidMultipliers=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_experiment_bid_multipliers_type}], :abstract=>true}, :Address=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:street_address}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:street_address2}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:city_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:province_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:province_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:postal_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}]}, :ProductCondition=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:argument}, {:type=>"ProductConditionOperand", :max_occurs=>1, :min_occurs=>0, :name=>:operand}]}, :PercentCPAAdGroupCriterionBids=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:percent_cpa}, {:type=>"BidSource", :max_occurs=>1, :min_occurs=>0, :name=>:source}], :base=>"AdGroupCriterionBids"}, :CampaignCriterionLimitExceeded=>{:fields=>[{:type=>"CampaignCriterionLimitExceeded.CriteriaLimitType", :max_occurs=>1, :min_occurs=>0, :name=>:limit_type}], :base=>"EntityCountLimitExceeded"}, :ConversionOptimizerBiddingTransition=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:use_saved_bids}], :base=>"BiddingTransition"}, :CityTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:city_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:province_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}], :base=>"GeoTarget"}, :AdStats=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:percent_served}], :base=>"Stats"}, :Operand=>{:fields=>[]}, :AdGroup=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"AdGroup.Status", :max_occurs=>1, :min_occurs=>0, :name=>:status}, {:type=>"AdGroupBids", :max_occurs=>1, :min_occurs=>0, :name=>:bids}, {:type=>"AdGroupExperimentData", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_data}, {:type=>"Stats", :max_occurs=>1, :min_occurs=>0, :name=>:stats}]}, :AdGroupCriterionBids=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_criterion_bids_type}], :abstract=>true}, :PolicyViolationKey=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:policy_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:violating_text}]}, :NetworkSetting=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:target_google_search}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:target_search_network}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:target_content_network}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:target_content_contextual}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:target_partner_search_network}]}, :ManualCPC=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}, {:type=>"PositionPreference", :max_occurs=>1, :min_occurs=>0, :name=>:position_preference}], :base=>"BiddingStrategy"}, :GenderTarget=>{:fields=>[{:type=>"GenderTarget.Gender", :max_occurs=>1, :min_occurs=>0, :name=>:gender}], :base=>"DemographicTarget"}, :DeprecatedAd=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"DeprecatedAd.Type", :max_occurs=>1, :min_occurs=>0, :name=>:type}], :base=>"Ad"}, :ContentLabel=>{:fields=>[{:type=>"ContentLabelType", :max_occurs=>1, :min_occurs=>0, :name=>:content_label_type}], :base=>"Criterion"}, :TemplateAd=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:template_id}, {:type=>"AdUnionId", :max_occurs=>1, :min_occurs=>0, :name=>:ad_union_id}, {:type=>"TemplateElement", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:template_elements}, {:type=>"Dimensions", :max_occurs=>1, :min_occurs=>0, :name=>:dimensions}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:duration}], :base=>"Ad"}, :OperationStreamResult=>{:fields=>[{:type=>"OperationResult", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:operation_results}]}, :GeoPoint=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:latitude_in_micro_degrees}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:longitude_in_micro_degrees}]}, :AdExtensionOverride=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:ad_id}, {:type=>"AdExtension", :max_occurs=>1, :min_occurs=>0, :name=>:ad_extension}, {:type=>"OverrideInfo", :max_occurs=>1, :min_occurs=>0, :name=>:override_info}, {:type=>"AdExtensionOverride.Status", :max_occurs=>1, :min_occurs=>0, :name=>:status}, {:type=>"AdExtensionOverride.ApprovalStatus", :max_occurs=>1, :min_occurs=>0, :name=>:approval_status}, {:type=>"AdExtensionOverrideStats", :max_occurs=>1, :min_occurs=>0, :name=>:stats}]}, :AdGroupCriterionOperation=>{:fields=>[{:type=>"AdGroupCriterion", :max_occurs=>1, :min_occurs=>0, :name=>:operand}, {:type=>"ExemptionRequest", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:exemption_requests}], :base=>"Operation"}, :CriterionUserList=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:user_list_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_list_name}, {:type=>"CriterionUserList.MembershipStatus", :max_occurs=>1, :min_occurs=>0, :name=>:user_list_membership_status}], :base=>"Criterion"}, :Stats=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:start_date}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:end_date}, {:type=>"Stats.Network", :max_occurs=>1, :min_occurs=>0, :name=>:network}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:clicks}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:impressions}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:average_position}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:average_cpc}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:average_cpm}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:ctr}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:conversions}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_rate}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost_per_conversion}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:conversions_many_per_click}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_rate_many_per_click}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost_per_conversion_many_per_click}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:view_through_conversions}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:total_conv_value}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:value_per_conv}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:value_per_conv_many_per_click}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:invalid_clicks}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:invalid_click_rate}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:stats_type}]}, :Media_Size_DimensionsMapEntry=>{:fields=>[{:type=>"Media.Size", :max_occurs=>1, :min_occurs=>0, :name=>:key}, {:type=>"Dimensions", :max_occurs=>1, :min_occurs=>0, :name=>:value}]}, :FailureResult=>{:fields=>[{:type=>"ApiException", :max_occurs=>1, :min_occurs=>0, :name=>:cause}], :base=>"OperationResult"}, :Budget=>{:fields=>[{:type=>"Budget.BudgetPeriod", :max_occurs=>1, :min_occurs=>0, :name=>:period}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:amount}, {:type=>"Budget.BudgetDeliveryMethod", :max_occurs=>1, :min_occurs=>0, :name=>:delivery_method}]}, :MetroTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:metro_code}], :base=>"GeoTarget"}, :ReturnValueResult=>{:fields=>[{:type=>"Operand", :max_occurs=>1, :min_occurs=>0, :name=>:return_value}], :base=>"OperationResult"}, :MobileExtension=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:phone_number}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:is_call_only}], :base=>"AdExtension"}, :AdGroupAdOperation=>{:fields=>[{:type=>"AdGroupAd", :max_occurs=>1, :min_occurs=>0, :name=>:operand}, {:type=>"ExemptionRequest", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:exemption_requests}], :base=>"Operation"}, :ApiErrorReason=>{:fields=>[]}, :ProductAd=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:promotion_line}], :base=>"Ad"}, :PercentCPAAdGroupBids=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:percent_cpa}], :base=>"AdGroupBids"}, :MobileTarget=>{:fields=>[], :abstract=>true, :base=>"Target"}, :BiddingTransition=>{:fields=>[{:type=>"BiddingStrategy", :max_occurs=>1, :min_occurs=>0, :name=>:target_bidding_strategy}, {:type=>"AdGroupBids", :max_occurs=>1, :min_occurs=>0, :name=>:explicit_ad_group_bids}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:bidding_transition_type}]}, :Bid=>{:fields=>[{:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:amount}]}, :CampaignAdExtensionOperation=>{:fields=>[{:type=>"CampaignAdExtension", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :JobContext=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:authenticated_user_email}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:effective_customer_id}]}, :BulkMutateJob=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"BulkMutateJobPolicy", :max_occurs=>1, :min_occurs=>0, :name=>:policy}, {:type=>"BulkMutateRequest", :max_occurs=>1, :min_occurs=>0, :name=>:request}, {:type=>"BasicJobStatus", :max_occurs=>1, :min_occurs=>0, :name=>:status}, {:type=>"BulkMutateJobEvent", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:history}, {:type=>"BulkMutateResult", :max_occurs=>1, :min_occurs=>0, :name=>:result}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:num_request_parts}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:num_request_parts_received}], :base=>"Job"}, :ThirdPartyRedirectAd=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:is_cookie_targeted}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:is_user_interest_targeted}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:is_tagged}, {:type=>"VideoType", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:video_types}], :base=>"RichMediaAd"}, :PolygonTarget=>{:fields=>[{:type=>"GeoPoint", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:vertices}], :base=>"GeoTarget"}, :ManualCPCAdGroupCriterionExperimentBidMultiplier=>{:fields=>[{:type=>"BidMultiplier", :max_occurs=>1, :min_occurs=>0, :name=>:max_cpc_multiplier}, {:type=>"MultiplierSource", :max_occurs=>1, :min_occurs=>0, :name=>:multiplier_source}], :base=>"AdGroupCriterionExperimentBidMultiplier"}, :ManualCPCAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:keyword_max_cpc}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:keyword_content_max_cpc}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:site_max_cpc}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupBids"}, :JobSelector=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:include_history}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:include_stats}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:job_selector_type}], :abstract=>true}, :SitelinksExtension=>{:fields=>[{:type=>"Sitelink", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:sitelinks}], :base=>"AdExtension"}, :BulkMutateJobSelector=>{:fields=>[{:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:job_ids}, {:type=>"BasicJobStatus", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:job_statuses}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:result_part_index}], :base=>"JobSelector"}, :ConversionOptimizerAdGroupCriterionBids=>{:fields=>[], :base=>"AdGroupCriterionBids"}, :Target=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:target_type}], :abstract=>true}, :RichMediaAd=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"Dimensions", :max_occurs=>1, :min_occurs=>0, :name=>:dimensions}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:snippet}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:impression_beacon_url}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:certified_vendor_format_id}], :abstract=>true, :base=>"Ad"}, :Product=>{:fields=>[{:type=>"ProductCondition", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:conditions}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:text}], :base=>"Criterion"}, :ManualCPMAdGroupExperimentBidMultipliers=>{:fields=>[{:type=>"BidMultiplier", :max_occurs=>1, :min_occurs=>0, :name=>:max_cpm_multiplier}], :base=>"AdGroupExperimentBidMultipliers"}, :LocationOverrideInfo=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:radius}, {:type=>"LocationOverrideInfo.RadiusUnits", :max_occurs=>1, :min_occurs=>0, :name=>:radius_units}]}, :CampaignStats=>{:fields=>[], :base=>"Stats"}, :AdScheduleTarget=>{:fields=>[{:type=>"DayOfWeek", :max_occurs=>1, :min_occurs=>0, :name=>:day_of_week}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_hour}, {:type=>"MinuteOfHour", :max_occurs=>1, :min_occurs=>0, :name=>:start_minute}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:end_hour}, {:type=>"MinuteOfHour", :max_occurs=>1, :min_occurs=>0, :name=>:end_minute}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:bid_multiplier}], :base=>"Target"}, :Keyword=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:text}, {:type=>"KeywordMatchType", :max_occurs=>1, :min_occurs=>0, :name=>:match_type}], :base=>"Criterion"}, :AdExtensionOverrideStats=>{:fields=>[], :base=>"Stats"}, :BulkMutateResult=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:part_index}, {:type=>"OperationStreamResult", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:operation_stream_results}]}, :TemplateElementField=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"TemplateElementField.Type", :max_occurs=>1, :min_occurs=>0, :name=>:type}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field_text}, {:type=>"Media", :max_occurs=>1, :min_occurs=>0, :name=>:field_media}]}, :NegativeCampaignCriterion=>{:fields=>[], :base=>"CampaignCriterion"}, :CampaignAdExtensionStats=>{:fields=>[], :base=>"Stats"}, :Criterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:criterion_type}]}, :AdGroupExperimentData=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_id}, {:type=>"ExperimentDeltaStatus", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_delta_status}, {:type=>"ExperimentDataStatus", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_data_status}, {:type=>"AdGroupExperimentBidMultipliers", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_bid_multipliers}]}, :ProductConditionAndGroup=>{:fields=>[{:type=>"ProductCondition", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:conditions}]}, :Placement=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:url}], :base=>"Criterion"}, :CampaignCriterionOperation=>{:fields=>[{:type=>"CampaignCriterion", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :ConversionOptimizerEligibility=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:eligible}, {:type=>"ConversionOptimizerEligibility.RejectionReason", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:rejection_reasons}]}, :CountryTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}], :base=>"GeoTarget"}, :TemplateElement=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:unique_name}, {:type=>"TemplateElementField", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:fields}]}, :OperationResult=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operation_result_type}], :abstract=>true}, :BiddableAdGroupCriterion=>{:fields=>[{:type=>"UserStatus", :max_occurs=>1, :min_occurs=>0, :name=>:user_status}, {:type=>"SystemServingStatus", :max_occurs=>1, :min_occurs=>0, :name=>:system_serving_status}, {:type=>"ApprovalStatus", :max_occurs=>1, :min_occurs=>0, :name=>:approval_status}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:destination_url}, {:type=>"AdGroupCriterionBids", :max_occurs=>1, :min_occurs=>0, :name=>:bids}, {:type=>"BiddableAdGroupCriterionExperimentData", :max_occurs=>1, :min_occurs=>0, :name=>:experiment_data}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:first_page_cpc}, {:type=>"QualityInfo", :max_occurs=>1, :min_occurs=>0, :name=>:quality_info}, {:type=>"Stats", :max_occurs=>1, :min_occurs=>0, :name=>:stats}], :base=>"AdGroupCriterion"}, :AdGroupOperation=>{:fields=>[{:type=>"AdGroup", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}, :RealTimeBiddingSetting=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:opt_in}], :base=>"Setting"}, :QualityInfo=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:is_keyword_ad_relevance_acceptable}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:is_landing_page_quality_acceptable}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:is_landing_page_latency_acceptable}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:quality_score}]}, :ManualCPM=>{:fields=>[], :base=>"BiddingStrategy"}, :GeoTarget=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:excluded}], :abstract=>true, :base=>"Target"}, :Dimensions=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:width}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:height}]}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:comparable_value_type}], :abstract=>true}, :DemographicTargetList=>{:fields=>[{:type=>"DemographicTarget", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:targets}], :base=>"TargetList"}, :OverrideInfo=>{:fields=>[]}, :LocationExtension=>{:fields=>[{:type=>"Address", :max_occurs=>1, :min_occurs=>0, :name=>:address}, {:type=>"GeoPoint", :max_occurs=>1, :min_occurs=>0, :name=>:geo_point}, {:type=>"base64Binary", :max_occurs=>1, :min_occurs=>0, :name=>:encoded_location}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:company_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:phone_number}, {:type=>"LocationExtension.Source", :max_occurs=>1, :min_occurs=>0, :name=>:source}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:icon_media_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:image_media_id}], :base=>"AdExtension"}, :AdExtensionOverrideOperation=>{:fields=>[{:type=>"AdExtensionOverride", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :Ad=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:url}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:display_url}, {:type=>"Ad.ApprovalStatus", :max_occurs=>1, :min_occurs=>0, :name=>:approval_status}, {:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:disapproval_reasons}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:trademark_disapproved}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_type}]}, :Vertical=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:path}], :base=>"Criterion"}, :MobileCarrierTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:carrier_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}], :base=>"MobileTarget"}, :Media_Size_StringMapEntry=>{:fields=>[{:type=>"Media.Size", :max_occurs=>1, :min_occurs=>0, :name=>:key}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:value}]}, :AdExtension=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_extension_type}]}, :GeoTargetList=>{:fields=>[{:type=>"GeoTarget", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:targets}], :base=>"TargetList"}, :BudgetOptimizer=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:bid_ceiling}], :base=>"BiddingStrategy"}, :TargetList=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:target_list_type}], :abstract=>true}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :BatchFailureResult=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:operation_index_in_batch}], :base=>"OperationResult"}, :TempAdUnionId=>{:fields=>[], :base=>"AdUnionId"}, :BudgetOptimizerAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:proxy_keyword_max_cpc}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:proxy_site_max_cpc}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupBids"}, :JobEvent=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:date_time}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:job_event_type}]}, :Campaign=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"CampaignStatus", :max_occurs=>1, :min_occurs=>0, :name=>:status}, {:type=>"ServingStatus", :max_occurs=>1, :min_occurs=>0, :name=>:serving_status}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:start_date}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:end_date}, {:type=>"Budget", :max_occurs=>1, :min_occurs=>0, :name=>:budget}, {:type=>"BiddingStrategy", :max_occurs=>1, :min_occurs=>0, :name=>:bidding_strategy}, {:type=>"ConversionOptimizerEligibility", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_optimizer_eligibility}, {:type=>"CampaignStats", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_stats}, {:type=>"AdServingOptimizationStatus", :max_occurs=>1, :min_occurs=>0, :name=>:ad_serving_optimization_status}, {:type=>"FrequencyCap", :max_occurs=>1, :min_occurs=>0, :name=>:frequency_cap}, {:type=>"Setting", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:settings}, {:type=>"NetworkSetting", :max_occurs=>1, :min_occurs=>0, :name=>:network_setting}]}, :BidMultiplier=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:multiplier}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:multiplied_bid}]}, :ProductConditionOperand=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operand}]}, :"PolicyViolationError.Part"=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:length}]}, :BulkMutateJobEvent=>{:fields=>[{:type=>"BasicJobStatus", :max_occurs=>1, :min_occurs=>0, :name=>:status}], :base=>"JobEvent"}, :Video=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:duration_millis}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:streaming_url}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:ready_to_play_on_the_web}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:industry_standard_commercial_identifier}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:advertising_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:you_tube_video_id_string}], :base=>"Media"}, :ProvinceTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:province_code}], :base=>"GeoTarget"}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operation_type}], :abstract=>true}, :ManualCPMAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:max_cpm}, {:type=>"BidSource", :max_occurs=>1, :min_occurs=>0, :name=>:bid_source}], :base=>"AdGroupCriterionBids"}, :ManualCPCAdGroupExperimentBidMultipliers=>{:fields=>[{:type=>"BidMultiplier", :max_occurs=>1, :min_occurs=>0, :name=>:max_cpc_multiplier}, {:type=>"BidMultiplier", :max_occurs=>1, :min_occurs=>0, :name=>:max_content_cpc_multiplier}], :base=>"AdGroupExperimentBidMultipliers"}, :JobStats=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:progress_percent}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:pending_time_millis}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:processing_time_millis}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:job_stats_type}]}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_email}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:partial_failure}]}, :BulkMutateJobStats=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:num_operations}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:num_failed_operations}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:num_unprocessed_operations}], :base=>"JobStats"}, :EntityAccessDenied=>{:fields=>[{:type=>"EntityAccessDenied.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :Media=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:media_id}, {:type=>"Media.MediaType", :max_occurs=>1, :min_occurs=>0, :name=>:type}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:reference_id}, {:type=>"Media_Size_DimensionsMapEntry", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:dimensions}, {:type=>"Media_Size_StringMapEntry", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:urls}, {:type=>"Media.MimeType", :max_occurs=>1, :min_occurs=>0, :name=>:mime_type}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:source_url}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:file_size}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:creation_time}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:media_type}]}, :AdGroupBids=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_bids_type}], :abstract=>true}, :LostResult=>{:fields=>[], :base=>"OperationResult"}, :AdGroupCriterionExperimentBidMultiplier=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_criterion_experiment_bid_multiplier_type}], :abstract=>true}, :NegativeAdGroupCriterion=>{:fields=>[], :base=>"AdGroupCriterion"}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:micro_amount}], :base=>"ComparableValue"}, :ConversionOptimizer=>{:fields=>[{:type=>"PricingModel", :max_occurs=>1, :min_occurs=>0, :name=>:pricing_model}, {:type=>"ConversionOptimizerBidType", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_optimizer_bid_type}, {:type=>"ConversionDeduplicationMode", :max_occurs=>1, :min_occurs=>0, :name=>:deduplication_mode}], :base=>"BiddingStrategy"}, :AgeTarget=>{:fields=>[{:type=>"AgeTarget.Age", :max_occurs=>1, :min_occurs=>0, :name=>:age}], :base=>"DemographicTarget"}, :AdGroupAdCountLimitExceeded=>{:fields=>[], :base=>"EntityCountLimitExceeded"}, :CampaignCriterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_id}, {:type=>"Criterion", :max_occurs=>1, :min_occurs=>0, :name=>:criterion}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_criterion_type}]}, :ManualCPCAdGroupCriterionBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:max_cpc}, {:type=>"BidSource", :max_occurs=>1, :min_occurs=>0, :name=>:bid_source}, {:type=>"PositionPreferenceAdGroupCriterionBids", :max_occurs=>1, :min_occurs=>0, :name=>:position_preference_bids}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupCriterionBids"}, :ImageAd=>{:fields=>[{:type=>"Image", :max_occurs=>1, :min_occurs=>0, :name=>:image}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:ad_to_copy_image_from}], :base=>"Ad"}}
12
14
  BULKMUTATEJOBSERVICE_NAMESPACES = []
13
15
 
14
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:46:11.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:34:51.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'adwords_api/v201101/bulk_opportunity_service_registry'
@@ -15,8 +15,8 @@ module AdwordsApi; module V201101; module BulkOpportunityService
15
15
  super(api, endpoint, namespace, :v201101)
16
16
  end
17
17
 
18
- def get(*args)
19
- return execute_action('get', args)
18
+ def get(*args, &block)
19
+ return execute_action('get', args, &block)
20
20
  end
21
21
 
22
22
  private
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:46:11.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:34:51.
7
+
8
+ require 'adwords_api/errors'
7
9
 
8
10
  module AdwordsApi; module V201101; module BulkOpportunityService
9
11
  class BulkOpportunityServiceRegistry
10
- BULKOPPORTUNITYSERVICE_METHODS = {:get=>{:input=>[{:type=>"BulkOpportunitySelector", :max_occurs=>1, :name=>:selector, :min_occurs=>0}], :output=>{:fields=>[{:type=>"BulkOpportunityPage", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_response"}}}
11
- BULKOPPORTUNITYSERVICE_TYPES = {:MonthlySearchVolume=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:year, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:month, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:count, :min_occurs=>0}]}, :CriterionAttribute=>{:fields=>[{:type=>"Criterion", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :ProductCondition=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:argument, :min_occurs=>0}, {:type=>"ProductConditionOperand", :max_occurs=>1, :name=>:operand, :min_occurs=>0}], :ns=>0}, :Product=>{:fields=>[{:type=>"ProductCondition", :max_occurs=>:unbounded, :name=>:conditions, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:text, :min_occurs=>0}], :base=>"Criterion", :ns=>0}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:micro_amount, :min_occurs=>0}], :base=>"ComparableValue", :ns=>0}, :PlacementAttribute=>{:fields=>[{:type=>"Placement", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :IntegerSetAttribute=>{:fields=>[{:type=>"int", :max_occurs=>:unbounded, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :AdFormatSpecListAttribute=>{:fields=>[{:type=>"AdFormatSpec", :max_occurs=>:unbounded, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :MonthlySearchVolumeAttribute=>{:fields=>[{:type=>"MonthlySearchVolume", :max_occurs=>:unbounded, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :DoubleAttribute=>{:fields=>[{:type=>"double", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :DataEntry=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:data_entry_type, :min_occurs=>0}], :abstract=>true, :ns=>0}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue", :ns=>0}, :PlacementTypeAttribute=>{:fields=>[{:type=>"SiteConstants.PlacementType", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :KeywordAttribute=>{:fields=>[{:type=>"Keyword", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :BidLandscapeAttribute=>{:fields=>[{:type=>"BidLandscape", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :Criterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:criterion_type, :min_occurs=>0}], :ns=>0}, :Opportunity=>{:fields=>[{:type=>"OpportunityIdea", :max_occurs=>:unbounded, :name=>:opportunity_ideas, :min_occurs=>0}]}, :IdeaTypeAttribute=>{:fields=>[{:type=>"IdeaType", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :CriterionUserInterest=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:user_interest_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_interest_name, :min_occurs=>0}], :base=>"Criterion", :ns=>0}, :StringAttribute=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :LongAttribute=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :BooleanAttribute=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:auth_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_customer_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_email, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:developer_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_agent, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:validate_only, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:partial_failure, :min_occurs=>0}], :ns=>0}, :CriterionBidLandscape=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:criterion_id, :min_occurs=>0}], :base=>"BidLandscape", :ns=>0}, :Range=>{:fields=>[{:type=>"ComparableValue", :max_occurs=>1, :name=>:min, :min_occurs=>0}, {:type=>"ComparableValue", :max_occurs=>1, :name=>:max, :min_occurs=>0}]}, :OpportunityAttribute_AttributeMapEntry=>{:fields=>[{:type=>"OpportunityAttributeType", :max_occurs=>1, :name=>:key, :min_occurs=>0}, {:type=>"Attribute", :max_occurs=>1, :name=>:value, :min_occurs=>0}]}, :InStreamAdInfo=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:max_ad_duration, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:min_ad_duration, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:median_ad_duration, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:pre_roll_percent, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:mid_roll_percent, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:post_roll_percent, :min_occurs=>0}]}, :CriterionUserList=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:user_list_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_list_name, :min_occurs=>0}, {:type=>"CriterionUserList.MembershipStatus", :max_occurs=>1, :name=>:user_list_membership_status, :min_occurs=>0}], :base=>"Criterion", :ns=>0}, :WebpageDescriptor=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:url, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:title, :min_occurs=>0}]}, :LongRangeAttribute=>{:fields=>[{:type=>"Range", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :BulkOpportunityPage=>{:fields=>[{:type=>"Opportunity", :max_occurs=>:unbounded, :name=>:entries, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:total_num_entries, :min_occurs=>0}]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:request_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:operations, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:response_time, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:units, :min_occurs=>0}], :ns=>0}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:number, :min_occurs=>0}], :base=>"NumberValue", :ns=>0}, :Keyword=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:text, :min_occurs=>0}, {:type=>"KeywordMatchType", :max_occurs=>1, :name=>:match_type, :min_occurs=>0}], :base=>"Criterion", :ns=>0}, :"BidLandscape.LandscapePoint"=>{:fields=>[{:type=>"Money", :max_occurs=>1, :name=>:bid, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:clicks, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:marginal_cpc, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:impressions, :min_occurs=>0}], :ns=>0}, :OpportunityIdea=>{:fields=>[{:type=>"OpportunityAttribute_AttributeMapEntry", :max_occurs=>:unbounded, :name=>:data, :min_occurs=>0}]}, :InStreamAdInfoAttribute=>{:fields=>[{:type=>"InStreamAdInfo", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :Vertical=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :name=>:path, :min_occurs=>0}], :base=>"Criterion", :ns=>0}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:start_index, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:number_results, :min_occurs=>0}], :ns=>0}, :AdGroupBidLandscape=>{:fields=>[{:type=>"AdGroupBidLandscape.Type", :max_occurs=>1, :name=>:type, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:landscape_current, :min_occurs=>0}], :base=>"BidLandscape", :ns=>0}, :WebpageDescriptorAttribute=>{:fields=>[{:type=>"WebpageDescriptor", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :MoneyAttribute=>{:fields=>[{:type=>"Money", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :BulkOpportunitySelector=>{:fields=>[{:type=>"OpportunityIdeaType", :max_occurs=>:unbounded, :name=>:idea_types, :min_occurs=>0}, {:type=>"OpportunityAttributeType", :max_occurs=>:unbounded, :name=>:requested_attribute_types, :min_occurs=>0}, {:type=>"Paging", :max_occurs=>1, :name=>:paging, :min_occurs=>0}]}, :Placement=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:url, :min_occurs=>0}], :base=>"Criterion", :ns=>0}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:comparable_value_type, :min_occurs=>0}], :abstract=>true, :ns=>0}, :OpportunityIdeaTypeAttribute=>{:fields=>[{:type=>"OpportunityIdeaType", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :IntegerAttribute=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:value, :min_occurs=>0}], :base=>"Attribute"}, :Attribute=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:attribute_type, :min_occurs=>0}], :abstract=>true}, :AdFormatSpec=>{:fields=>[{:type=>"SiteConstants.AdFormat", :max_occurs=>1, :name=>:format, :min_occurs=>0}]}, :ProductConditionOperand=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:operand, :min_occurs=>0}], :ns=>0}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :name=>:number, :min_occurs=>0}], :base=>"NumberValue", :ns=>0}, :BidLandscape=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:campaign_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:ad_group_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:start_date, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:end_date, :min_occurs=>0}, {:type=>"BidLandscape.LandscapePoint", :max_occurs=>:unbounded, :name=>:landscape_points, :min_occurs=>0}], :abstract=>true, :base=>"DataEntry", :ns=>0}}
12
+ BULKOPPORTUNITYSERVICE_METHODS = {:get=>{:input=>[{:type=>"BulkOpportunitySelector", :max_occurs=>1, :min_occurs=>0, :name=>:selector}], :output=>{:fields=>[{:type=>"BulkOpportunityPage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}}
13
+ BULKOPPORTUNITYSERVICE_TYPES = {:StringAttribute=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :Opportunity=>{:fields=>[{:type=>"OpportunityIdea", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:opportunity_ideas}]}, :MoneyAttribute=>{:fields=>[{:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :BooleanAttribute=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :WebpageDescriptorAttribute=>{:fields=>[{:type=>"WebpageDescriptor", :max_occurs=>1, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :AdFormatSpec=>{:fields=>[{:type=>"SiteConstants.AdFormat", :max_occurs=>1, :min_occurs=>0, :name=>:format}]}, :DataEntry=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:data_entry_type}], :ns=>0, :abstract=>true}, :ProductCondition=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:argument}, {:type=>"ProductConditionOperand", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :ns=>0}, :OpportunityAttribute_AttributeMapEntry=>{:fields=>[{:type=>"OpportunityAttributeType", :max_occurs=>1, :min_occurs=>0, :name=>:key}, {:type=>"Attribute", :max_occurs=>1, :min_occurs=>0, :name=>:value}]}, :MonthlySearchVolume=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:year}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:month}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:count}]}, :IntegerAttribute=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :Keyword=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:text}, {:type=>"KeywordMatchType", :max_occurs=>1, :min_occurs=>0, :name=>:match_type}], :ns=>0, :base=>"Criterion"}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :ns=>0, :base=>"NumberValue"}, :AdGroupBidLandscape=>{:fields=>[{:type=>"AdGroupBidLandscape.Type", :max_occurs=>1, :min_occurs=>0, :name=>:type}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:landscape_current}], :ns=>0, :base=>"BidLandscape"}, :LongAttribute=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :BidLandscapeAttribute=>{:fields=>[{:type=>"BidLandscape", :max_occurs=>1, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :Attribute=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:attribute_type}], :abstract=>true}, :AdFormatSpecListAttribute=>{:fields=>[{:type=>"AdFormatSpec", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :Product=>{:fields=>[{:type=>"ProductCondition", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:conditions}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:text}], :ns=>0, :base=>"Criterion"}, :NumberValue=>{:fields=>[], :ns=>0, :abstract=>true, :base=>"ComparableValue"}, :OpportunityIdea=>{:fields=>[{:type=>"OpportunityAttribute_AttributeMapEntry", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:data}]}, :MonthlySearchVolumeAttribute=>{:fields=>[{:type=>"MonthlySearchVolume", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :IntegerSetAttribute=>{:fields=>[{:type=>"int", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_email}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:partial_failure}], :ns=>0}, :IdeaTypeAttribute=>{:fields=>[{:type=>"IdeaType", :max_occurs=>1, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :BulkOpportunityPage=>{:fields=>[{:type=>"Opportunity", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:total_num_entries}]}, :CriterionUserInterest=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:user_interest_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_interest_name}], :ns=>0, :base=>"Criterion"}, :BidLandscape=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:start_date}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:end_date}, {:type=>"BidLandscape.LandscapePoint", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:landscape_points}], :ns=>0, :abstract=>true, :base=>"DataEntry"}, :Range=>{:fields=>[{:type=>"ComparableValue", :max_occurs=>1, :min_occurs=>0, :name=>:min}, {:type=>"ComparableValue", :max_occurs=>1, :min_occurs=>0, :name=>:max}]}, :PlacementAttribute=>{:fields=>[{:type=>"Placement", :max_occurs=>1, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :OpportunityIdeaTypeAttribute=>{:fields=>[{:type=>"OpportunityIdeaType", :max_occurs=>1, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :KeywordAttribute=>{:fields=>[{:type=>"Keyword", :max_occurs=>1, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :DoubleAttribute=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}], :ns=>0}, :LongRangeAttribute=>{:fields=>[{:type=>"Range", :max_occurs=>1, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :InStreamAdInfo=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:max_ad_duration}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:min_ad_duration}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:median_ad_duration}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:pre_roll_percent}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:mid_roll_percent}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:post_roll_percent}]}, :BulkOpportunitySelector=>{:fields=>[{:type=>"OpportunityIdeaType", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:idea_types}, {:type=>"OpportunityAttributeType", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:requested_attribute_types}, {:type=>"Paging", :max_occurs=>1, :min_occurs=>0, :name=>:paging}]}, :CriterionUserList=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:user_list_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_list_name}, {:type=>"CriterionUserList.MembershipStatus", :max_occurs=>1, :min_occurs=>0, :name=>:user_list_membership_status}], :ns=>0, :base=>"Criterion"}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:number_results}], :ns=>0}, :PlacementTypeAttribute=>{:fields=>[{:type=>"SiteConstants.PlacementType", :max_occurs=>1, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :Placement=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:url}], :ns=>0, :base=>"Criterion"}, :CriterionBidLandscape=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:criterion_id}], :ns=>0, :base=>"BidLandscape"}, :InStreamAdInfoAttribute=>{:fields=>[{:type=>"InStreamAdInfo", :max_occurs=>1, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :CriterionAttribute=>{:fields=>[{:type=>"Criterion", :max_occurs=>1, :min_occurs=>0, :name=>:value}], :base=>"Attribute"}, :Vertical=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:path}], :ns=>0, :base=>"Criterion"}, :ProductConditionOperand=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :ns=>0}, :Criterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:criterion_type}], :ns=>0}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:comparable_value_type}], :ns=>0, :abstract=>true}, :"BidLandscape.LandscapePoint"=>{:fields=>[{:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:bid}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:clicks}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:marginal_cpc}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:impressions}], :ns=>0}, :WebpageDescriptor=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:url}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:title}]}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:micro_amount}], :ns=>0, :base=>"ComparableValue"}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :ns=>0, :base=>"NumberValue"}}
12
14
  BULKOPPORTUNITYSERVICE_NAMESPACES = ["https://adwords.google.com/api/adwords/cm/v201101"]
13
15
 
14
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:46:07.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:34:48.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'adwords_api/v201101/campaign_ad_extension_service_registry'
@@ -15,12 +15,12 @@ module AdwordsApi; module V201101; module CampaignAdExtensionService
15
15
  super(api, endpoint, namespace, :v201101)
16
16
  end
17
17
 
18
- def get(*args)
19
- return execute_action('get', args)
18
+ def get(*args, &block)
19
+ return execute_action('get', args, &block)
20
20
  end
21
21
 
22
- def mutate(*args)
23
- return execute_action('mutate', args)
22
+ def mutate(*args, &block)
23
+ return execute_action('mutate', args, &block)
24
24
  end
25
25
 
26
26
  private
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:46:07.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:34:48.
7
+
8
+ require 'adwords_api/errors'
7
9
 
8
10
  module AdwordsApi; module V201101; module CampaignAdExtensionService
9
11
  class CampaignAdExtensionServiceRegistry
10
- CAMPAIGNADEXTENSIONSERVICE_METHODS = {:get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :name=>:service_selector, :min_occurs=>0}], :output=>{:fields=>[{:type=>"CampaignAdExtensionPage", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"CampaignAdExtensionOperation", :max_occurs=>:unbounded, :name=>:operations, :min_occurs=>0}], :output=>{:fields=>[{:type=>"CampaignAdExtensionReturnValue", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"mutate_response"}}}
11
- CAMPAIGNADEXTENSIONSERVICE_TYPES = {:ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:list_return_value_type, :min_occurs=>0}], :abstract=>true}, :ProductCondition=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:argument, :min_occurs=>0}, {:type=>"ProductConditionOperand", :max_occurs=>1, :name=>:operand, :min_occurs=>0}]}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:micro_amount, :min_occurs=>0}], :base=>"ComparableValue"}, :AdExtension=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:ad_extension_type, :min_occurs=>0}]}, :Sitelink=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:display_text, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:destination_url, :min_occurs=>0}]}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :name=>:operator, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:operation_type, :min_occurs=>0}], :abstract=>true}, :ProductConditionAndGroup=>{:fields=>[{:type=>"ProductCondition", :max_occurs=>:unbounded, :name=>:conditions, :min_occurs=>0}]}, :Predicate=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:field, :min_occurs=>0}, {:type=>"Predicate.Operator", :max_occurs=>1, :name=>:operator, :min_occurs=>0}, {:type=>"string", :max_occurs=>:unbounded, :name=>:values, :min_occurs=>0}]}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :CampaignAdExtension=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:campaign_id, :min_occurs=>0}, {:type=>"AdExtension", :max_occurs=>1, :name=>:ad_extension, :min_occurs=>0}, {:type=>"CampaignAdExtension.Status", :max_occurs=>1, :name=>:status, :min_occurs=>0}, {:type=>"CampaignAdExtension.ApprovalStatus", :max_occurs=>1, :name=>:approval_status, :min_occurs=>0}, {:type=>"CampaignAdExtensionStats", :max_occurs=>1, :name=>:stats, :min_occurs=>0}]}, :SitelinksExtension=>{:fields=>[{:type=>"Sitelink", :max_occurs=>:unbounded, :name=>:sitelinks, :min_occurs=>0}], :base=>"AdExtension"}, :GeoPoint=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:latitude_in_micro_degrees, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:longitude_in_micro_degrees, :min_occurs=>0}]}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:total_num_entries, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:page_type, :min_occurs=>0}], :abstract=>true}, :ProductExtension=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:google_base_customer_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:advertiser_name, :min_occurs=>0}, {:type=>"ProductConditionAndGroup", :max_occurs=>:unbounded, :name=>:product_selection, :min_occurs=>0}], :base=>"AdExtension"}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :Address=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:street_address, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:street_address2, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:city_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:province_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:province_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:postal_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:country_code, :min_occurs=>0}]}, :CampaignAdExtensionOperation=>{:fields=>[{:type=>"CampaignAdExtension", :max_occurs=>1, :name=>:operand, :min_occurs=>0}], :base=>"Operation"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:auth_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_customer_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_email, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:developer_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_agent, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:validate_only, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:partial_failure, :min_occurs=>0}]}, :LocationExtension=>{:fields=>[{:type=>"Address", :max_occurs=>1, :name=>:address, :min_occurs=>0}, {:type=>"GeoPoint", :max_occurs=>1, :name=>:geo_point, :min_occurs=>0}, {:type=>"base64Binary", :max_occurs=>1, :name=>:encoded_location, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:company_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:phone_number, :min_occurs=>0}, {:type=>"LocationExtension.Source", :max_occurs=>1, :name=>:source, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:icon_media_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:image_media_id, :min_occurs=>0}], :base=>"AdExtension"}, :Selector=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :name=>:fields, :min_occurs=>0}, {:type=>"Predicate", :max_occurs=>:unbounded, :name=>:predicates, :min_occurs=>0}, {:type=>"DateRange", :max_occurs=>1, :name=>:date_range, :min_occurs=>0}, {:type=>"OrderBy", :max_occurs=>:unbounded, :name=>:ordering, :min_occurs=>0}, {:type=>"Paging", :max_occurs=>1, :name=>:paging, :min_occurs=>0}]}, :OrderBy=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:field, :min_occurs=>0}, {:type=>"SortOrder", :max_occurs=>1, :name=>:sort_order, :min_occurs=>0}]}, :CampaignAdExtensionStats=>{:fields=>[], :base=>"Stats"}, :CampaignAdExtensionPage=>{:fields=>[{:type=>"CampaignAdExtension", :max_occurs=>:unbounded, :name=>:entries, :min_occurs=>0}], :base=>"Page"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:request_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:operations, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:response_time, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:units, :min_occurs=>0}]}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:number, :min_occurs=>0}], :base=>"NumberValue"}, :Stats=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:start_date, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:end_date, :min_occurs=>0}, {:type=>"Stats.Network", :max_occurs=>1, :name=>:network, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:clicks, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:impressions, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:average_position, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:average_cpc, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:average_cpm, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:ctr, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:conversions, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:conversion_rate, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost_per_conversion, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:conversions_many_per_click, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:conversion_rate_many_per_click, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost_per_conversion_many_per_click, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:view_through_conversions, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:total_conv_value, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:value_per_conv, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:value_per_conv_many_per_click, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:invalid_clicks, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:invalid_click_rate, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:stats_type, :min_occurs=>0}]}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:start_index, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:number_results, :min_occurs=>0}]}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:min, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:max, :min_occurs=>0}]}, :CampaignAdExtensionReturnValue=>{:fields=>[{:type=>"CampaignAdExtension", :max_occurs=>:unbounded, :name=>:value, :min_occurs=>0}], :base=>"ListReturnValue"}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:comparable_value_type, :min_occurs=>0}], :abstract=>true}, :MobileExtension=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:phone_number, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:country_code, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:is_call_only, :min_occurs=>0}], :base=>"AdExtension"}, :LocationSyncExtension=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:email, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:auth_token, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:icon_media_id, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:should_sync_url, :min_occurs=>0}], :base=>"AdExtension"}, :ProductConditionOperand=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:operand, :min_occurs=>0}]}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :name=>:number, :min_occurs=>0}], :base=>"NumberValue"}}
12
+ CAMPAIGNADEXTENSIONSERVICE_METHODS = {:get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :min_occurs=>0, :name=>:service_selector}], :output=>{:fields=>[{:type=>"CampaignAdExtensionPage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"CampaignAdExtensionOperation", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:operations}], :output=>{:fields=>[{:type=>"CampaignAdExtensionReturnValue", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"mutate_response"}}}
13
+ CAMPAIGNADEXTENSIONSERVICE_TYPES = {:LocationSyncExtension=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:email}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:icon_media_id}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:should_sync_url}], :base=>"AdExtension"}, :Selector=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:fields}, {:type=>"Predicate", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:predicates}, {:type=>"DateRange", :max_occurs=>1, :min_occurs=>0, :name=>:date_range}, {:type=>"OrderBy", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:ordering}, {:type=>"Paging", :max_occurs=>1, :min_occurs=>0, :name=>:paging}]}, :Sitelink=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:display_text}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:destination_url}]}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:min}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:max}]}, :CampaignAdExtensionReturnValue=>{:fields=>[{:type=>"CampaignAdExtension", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:value}], :base=>"ListReturnValue"}, :ProductCondition=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:argument}, {:type=>"ProductConditionOperand", :max_occurs=>1, :min_occurs=>0, :name=>:operand}]}, :MobileExtension=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:phone_number}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:is_call_only}], :base=>"AdExtension"}, :Stats=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:start_date}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:end_date}, {:type=>"Stats.Network", :max_occurs=>1, :min_occurs=>0, :name=>:network}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:clicks}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:impressions}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:average_position}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:average_cpc}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:average_cpm}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:ctr}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:conversions}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_rate}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost_per_conversion}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:conversions_many_per_click}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_rate_many_per_click}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost_per_conversion_many_per_click}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:view_through_conversions}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:total_conv_value}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:value_per_conv}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:value_per_conv_many_per_click}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:invalid_clicks}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:invalid_click_rate}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:stats_type}]}, :SitelinksExtension=>{:fields=>[{:type=>"Sitelink", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:sitelinks}], :base=>"AdExtension"}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}, :ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:list_return_value_type}], :abstract=>true}, :ProductConditionAndGroup=>{:fields=>[{:type=>"ProductCondition", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:conditions}]}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :AdExtension=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_extension_type}]}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_email}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:partial_failure}]}, :OrderBy=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"SortOrder", :max_occurs=>1, :min_occurs=>0, :name=>:sort_order}]}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operation_type}], :abstract=>true}, :ProductExtension=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:google_base_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:advertiser_name}, {:type=>"ProductConditionAndGroup", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:product_selection}], :base=>"AdExtension"}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :Address=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:street_address}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:street_address2}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:city_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:province_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:province_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:postal_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}]}, :CampaignAdExtension=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_id}, {:type=>"AdExtension", :max_occurs=>1, :min_occurs=>0, :name=>:ad_extension}, {:type=>"CampaignAdExtension.Status", :max_occurs=>1, :min_occurs=>0, :name=>:status}, {:type=>"CampaignAdExtension.ApprovalStatus", :max_occurs=>1, :min_occurs=>0, :name=>:approval_status}, {:type=>"CampaignAdExtensionStats", :max_occurs=>1, :min_occurs=>0, :name=>:stats}]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}]}, :GeoPoint=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:latitude_in_micro_degrees}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:longitude_in_micro_degrees}]}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:total_num_entries}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:page_type}], :abstract=>true}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:number_results}]}, :CampaignAdExtensionStats=>{:fields=>[], :base=>"Stats"}, :CampaignAdExtensionOperation=>{:fields=>[{:type=>"CampaignAdExtension", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :LocationExtension=>{:fields=>[{:type=>"Address", :max_occurs=>1, :min_occurs=>0, :name=>:address}, {:type=>"GeoPoint", :max_occurs=>1, :min_occurs=>0, :name=>:geo_point}, {:type=>"base64Binary", :max_occurs=>1, :min_occurs=>0, :name=>:encoded_location}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:company_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:phone_number}, {:type=>"LocationExtension.Source", :max_occurs=>1, :min_occurs=>0, :name=>:source}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:icon_media_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:image_media_id}], :base=>"AdExtension"}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:comparable_value_type}], :abstract=>true}, :ProductConditionOperand=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operand}]}, :Predicate=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"Predicate.Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:values}]}, :CampaignAdExtensionPage=>{:fields=>[{:type=>"CampaignAdExtension", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}], :base=>"Page"}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:micro_amount}], :base=>"ComparableValue"}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}}
12
14
  CAMPAIGNADEXTENSIONSERVICE_NAMESPACES = []
13
15
 
14
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:47:20.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:35:56.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'adwords_api/v201101/campaign_criterion_service_registry'
@@ -15,12 +15,12 @@ module AdwordsApi; module V201101; module CampaignCriterionService
15
15
  super(api, endpoint, namespace, :v201101)
16
16
  end
17
17
 
18
- def get(*args)
19
- return execute_action('get', args)
18
+ def get(*args, &block)
19
+ return execute_action('get', args, &block)
20
20
  end
21
21
 
22
- def mutate(*args)
23
- return execute_action('mutate', args)
22
+ def mutate(*args, &block)
23
+ return execute_action('mutate', args, &block)
24
24
  end
25
25
 
26
26
  private
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:47:20.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:35:56.
7
+
8
+ require 'adwords_api/errors'
7
9
 
8
10
  module AdwordsApi; module V201101; module CampaignCriterionService
9
11
  class CampaignCriterionServiceRegistry
10
- CAMPAIGNCRITERIONSERVICE_METHODS = {:get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :name=>:service_selector, :min_occurs=>0}], :output=>{:fields=>[{:type=>"CampaignCriterionPage", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"CampaignCriterionOperation", :max_occurs=>:unbounded, :name=>:operations, :min_occurs=>0}], :output=>{:fields=>[{:type=>"CampaignCriterionReturnValue", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"mutate_response"}}}
11
- CAMPAIGNCRITERIONSERVICE_TYPES = {:ProductCondition=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:argument, :min_occurs=>0}, {:type=>"ProductConditionOperand", :max_occurs=>1, :name=>:operand, :min_occurs=>0}]}, :Product=>{:fields=>[{:type=>"ProductCondition", :max_occurs=>:unbounded, :name=>:conditions, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:text, :min_occurs=>0}], :base=>"Criterion"}, :ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:list_return_value_type, :min_occurs=>0}], :abstract=>true}, :CampaignCriterionReturnValue=>{:fields=>[{:type=>"CampaignCriterion", :max_occurs=>:unbounded, :name=>:value, :min_occurs=>0}], :base=>"ListReturnValue"}, :CampaignCriterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:campaign_id, :min_occurs=>0}, {:type=>"Criterion", :max_occurs=>1, :name=>:criterion, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:campaign_criterion_type, :min_occurs=>0}]}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :Predicate=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:field, :min_occurs=>0}, {:type=>"Predicate.Operator", :max_occurs=>1, :name=>:operator, :min_occurs=>0}, {:type=>"string", :max_occurs=>:unbounded, :name=>:values, :min_occurs=>0}]}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :name=>:operator, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:operation_type, :min_occurs=>0}], :abstract=>true}, :CampaignCriterionLimitExceeded=>{:fields=>[{:type=>"CampaignCriterionLimitExceeded.CriteriaLimitType", :max_occurs=>1, :name=>:limit_type, :min_occurs=>0}], :base=>"EntityCountLimitExceeded"}, :Criterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:criterion_type, :min_occurs=>0}]}, :CriterionUserInterest=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:user_interest_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_interest_name, :min_occurs=>0}], :base=>"Criterion"}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:total_num_entries, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:page_type, :min_occurs=>0}], :abstract=>true}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :CampaignCriterionOperation=>{:fields=>[{:type=>"CampaignCriterion", :max_occurs=>1, :name=>:operand, :min_occurs=>0}], :base=>"Operation"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:auth_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_customer_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_email, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:developer_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_agent, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:validate_only, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:partial_failure, :min_occurs=>0}]}, :NegativeCampaignCriterion=>{:fields=>[], :base=>"CampaignCriterion"}, :CriterionUserList=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:user_list_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_list_name, :min_occurs=>0}, {:type=>"CriterionUserList.MembershipStatus", :max_occurs=>1, :name=>:user_list_membership_status, :min_occurs=>0}], :base=>"Criterion"}, :Selector=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :name=>:fields, :min_occurs=>0}, {:type=>"Predicate", :max_occurs=>:unbounded, :name=>:predicates, :min_occurs=>0}, {:type=>"DateRange", :max_occurs=>1, :name=>:date_range, :min_occurs=>0}, {:type=>"OrderBy", :max_occurs=>:unbounded, :name=>:ordering, :min_occurs=>0}, {:type=>"Paging", :max_occurs=>1, :name=>:paging, :min_occurs=>0}]}, :OrderBy=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:field, :min_occurs=>0}, {:type=>"SortOrder", :max_occurs=>1, :name=>:sort_order, :min_occurs=>0}]}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:request_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:operations, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:response_time, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:units, :min_occurs=>0}]}, :Keyword=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:text, :min_occurs=>0}, {:type=>"KeywordMatchType", :max_occurs=>1, :name=>:match_type, :min_occurs=>0}], :base=>"Criterion"}, :Vertical=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :name=>:path, :min_occurs=>0}], :base=>"Criterion"}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:start_index, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:number_results, :min_occurs=>0}]}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:min, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:max, :min_occurs=>0}]}, :ContentLabel=>{:fields=>[{:type=>"ContentLabelType", :max_occurs=>1, :name=>:content_label_type, :min_occurs=>0}], :base=>"Criterion"}, :Placement=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:url, :min_occurs=>0}], :base=>"Criterion"}, :EntityCountLimitExceeded=>{:fields=>[{:type=>"EntityCountLimitExceeded.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:enclosing_id, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:limit, :min_occurs=>0}], :base=>"ApiError"}, :CampaignCriterionPage=>{:fields=>[{:type=>"CampaignCriterion", :max_occurs=>:unbounded, :name=>:entries, :min_occurs=>0}], :base=>"Page"}, :ProductConditionOperand=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:operand, :min_occurs=>0}]}}
12
+ CAMPAIGNCRITERIONSERVICE_METHODS = {:get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :min_occurs=>0, :name=>:service_selector}], :output=>{:fields=>[{:type=>"CampaignCriterionPage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"CampaignCriterionOperation", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:operations}], :output=>{:fields=>[{:type=>"CampaignCriterionReturnValue", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"mutate_response"}}}
13
+ CAMPAIGNCRITERIONSERVICE_TYPES = {:Selector=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:fields}, {:type=>"Predicate", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:predicates}, {:type=>"DateRange", :max_occurs=>1, :min_occurs=>0, :name=>:date_range}, {:type=>"OrderBy", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:ordering}, {:type=>"Paging", :max_occurs=>1, :min_occurs=>0, :name=>:paging}]}, :EntityCountLimitExceeded=>{:fields=>[{:type=>"EntityCountLimitExceeded.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:enclosing_id}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:limit}], :base=>"ApiError"}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:min}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:max}]}, :ProductCondition=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:argument}, {:type=>"ProductConditionOperand", :max_occurs=>1, :min_occurs=>0, :name=>:operand}]}, :CampaignCriterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_id}, {:type=>"Criterion", :max_occurs=>1, :min_occurs=>0, :name=>:criterion}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_criterion_type}]}, :Keyword=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:text}, {:type=>"KeywordMatchType", :max_occurs=>1, :min_occurs=>0, :name=>:match_type}], :base=>"Criterion"}, :Product=>{:fields=>[{:type=>"ProductCondition", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:conditions}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:text}], :base=>"Criterion"}, :ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:list_return_value_type}], :abstract=>true}, :CampaignCriterionLimitExceeded=>{:fields=>[{:type=>"CampaignCriterionLimitExceeded.CriteriaLimitType", :max_occurs=>1, :min_occurs=>0, :name=>:limit_type}], :base=>"EntityCountLimitExceeded"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_email}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:partial_failure}]}, :OrderBy=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"SortOrder", :max_occurs=>1, :min_occurs=>0, :name=>:sort_order}]}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :CriterionUserInterest=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:user_interest_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_interest_name}], :base=>"Criterion"}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operation_type}], :abstract=>true}, :CampaignCriterionOperation=>{:fields=>[{:type=>"CampaignCriterion", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}]}, :NegativeCampaignCriterion=>{:fields=>[], :base=>"CampaignCriterion"}, :CampaignCriterionPage=>{:fields=>[{:type=>"CampaignCriterion", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}], :base=>"Page"}, :CriterionUserList=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:user_list_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_list_name}, {:type=>"CriterionUserList.MembershipStatus", :max_occurs=>1, :min_occurs=>0, :name=>:user_list_membership_status}], :base=>"Criterion"}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:number_results}]}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:total_num_entries}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:page_type}], :abstract=>true}, :Placement=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:url}], :base=>"Criterion"}, :CampaignCriterionReturnValue=>{:fields=>[{:type=>"CampaignCriterion", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:value}], :base=>"ListReturnValue"}, :Vertical=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:path}], :base=>"Criterion"}, :ProductConditionOperand=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operand}]}, :Predicate=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"Predicate.Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:values}]}, :Criterion=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:criterion_type}]}, :ContentLabel=>{:fields=>[{:type=>"ContentLabelType", :max_occurs=>1, :min_occurs=>0, :name=>:content_label_type}], :base=>"Criterion"}}
12
14
  CAMPAIGNCRITERIONSERVICE_NAMESPACES = []
13
15
 
14
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:46:54.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:35:31.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'adwords_api/v201101/campaign_service_registry'
@@ -15,12 +15,12 @@ module AdwordsApi; module V201101; module CampaignService
15
15
  super(api, endpoint, namespace, :v201101)
16
16
  end
17
17
 
18
- def get(*args)
19
- return execute_action('get', args)
18
+ def get(*args, &block)
19
+ return execute_action('get', args, &block)
20
20
  end
21
21
 
22
- def mutate(*args)
23
- return execute_action('mutate', args)
22
+ def mutate(*args, &block)
23
+ return execute_action('mutate', args, &block)
24
24
  end
25
25
 
26
26
  private
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:46:54.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:35:31.
7
+
8
+ require 'adwords_api/errors'
7
9
 
8
10
  module AdwordsApi; module V201101; module CampaignService
9
11
  class CampaignServiceRegistry
10
- CAMPAIGNSERVICE_METHODS = {:get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :name=>:service_selector, :min_occurs=>0}], :output=>{:fields=>[{:type=>"CampaignPage", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"CampaignOperation", :max_occurs=>:unbounded, :name=>:operations, :min_occurs=>0}], :output=>{:fields=>[{:type=>"CampaignReturnValue", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"mutate_response"}}}
11
- CAMPAIGNSERVICE_TYPES = {:ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:list_return_value_type, :min_occurs=>0}], :abstract=>true}, :ManualCPCAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:keyword_max_cpc, :min_occurs=>0}, {:type=>"Bid", :max_occurs=>1, :name=>:keyword_content_max_cpc, :min_occurs=>0}, {:type=>"Bid", :max_occurs=>1, :name=>:site_max_cpc, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:enhanced_cpc_enabled, :min_occurs=>0}], :base=>"AdGroupBids"}, :Setting=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:setting_type, :min_occurs=>0}], :abstract=>true}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:micro_amount, :min_occurs=>0}], :base=>"ComparableValue"}, :CampaignStats=>{:fields=>[], :base=>"Stats"}, :CampaignOperation=>{:fields=>[{:type=>"BiddingTransition", :max_occurs=>1, :name=>:bidding_transition, :min_occurs=>0}, {:type=>"Campaign", :max_occurs=>1, :name=>:operand, :min_occurs=>0}], :base=>"Operation"}, :ManualCPC=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:enhanced_cpc_enabled, :min_occurs=>0}, {:type=>"PositionPreference", :max_occurs=>1, :name=>:position_preference, :min_occurs=>0}], :base=>"BiddingStrategy"}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :name=>:operator, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:operation_type, :min_occurs=>0}], :abstract=>true}, :Budget=>{:fields=>[{:type=>"Budget.BudgetPeriod", :max_occurs=>1, :name=>:period, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:amount, :min_occurs=>0}, {:type=>"Budget.BudgetDeliveryMethod", :max_occurs=>1, :name=>:delivery_method, :min_occurs=>0}]}, :Predicate=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:field, :min_occurs=>0}, {:type=>"Predicate.Operator", :max_occurs=>1, :name=>:operator, :min_occurs=>0}, {:type=>"string", :max_occurs=>:unbounded, :name=>:values, :min_occurs=>0}]}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :ConversionOptimizer=>{:fields=>[{:type=>"PricingModel", :max_occurs=>1, :name=>:pricing_model, :min_occurs=>0}, {:type=>"ConversionOptimizerBidType", :max_occurs=>1, :name=>:conversion_optimizer_bid_type, :min_occurs=>0}, {:type=>"ConversionDeduplicationMode", :max_occurs=>1, :name=>:deduplication_mode, :min_occurs=>0}], :base=>"BiddingStrategy"}, :CampaignPage=>{:fields=>[{:type=>"Budget", :max_occurs=>1, :name=>:total_budget, :min_occurs=>0}, {:type=>"Campaign", :max_occurs=>:unbounded, :name=>:entries, :min_occurs=>0}], :base=>"Page"}, :ManualCPM=>{:fields=>[], :base=>"BiddingStrategy"}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:total_num_entries, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:page_type, :min_occurs=>0}], :abstract=>true}, :ManualCPMAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:max_cpm, :min_occurs=>0}], :base=>"AdGroupBids"}, :BudgetOptimizer=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:enhanced_cpc_enabled, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:bid_ceiling, :min_occurs=>0}], :base=>"BiddingStrategy"}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :ConversionOptimizerBiddingTransition=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:use_saved_bids, :min_occurs=>0}], :base=>"BiddingTransition"}, :CampaignReturnValue=>{:fields=>[{:type=>"Campaign", :max_occurs=>:unbounded, :name=>:value, :min_occurs=>0}], :base=>"ListReturnValue"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:auth_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_customer_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_email, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:developer_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_agent, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:validate_only, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:partial_failure, :min_occurs=>0}]}, :PercentCPAAdGroupBids=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:percent_cpa, :min_occurs=>0}], :base=>"AdGroupBids"}, :NetworkSetting=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:target_google_search, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:target_search_network, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:target_content_network, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:target_content_contextual, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:target_partner_search_network, :min_occurs=>0}]}, :BiddingStrategy=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:bidding_strategy_type, :min_occurs=>0}], :abstract=>true}, :Bid=>{:fields=>[{:type=>"Money", :max_occurs=>1, :name=>:amount, :min_occurs=>0}]}, :Selector=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :name=>:fields, :min_occurs=>0}, {:type=>"Predicate", :max_occurs=>:unbounded, :name=>:predicates, :min_occurs=>0}, {:type=>"DateRange", :max_occurs=>1, :name=>:date_range, :min_occurs=>0}, {:type=>"OrderBy", :max_occurs=>:unbounded, :name=>:ordering, :min_occurs=>0}, {:type=>"Paging", :max_occurs=>1, :name=>:paging, :min_occurs=>0}]}, :OrderBy=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:field, :min_occurs=>0}, {:type=>"SortOrder", :max_occurs=>1, :name=>:sort_order, :min_occurs=>0}]}, :ConversionOptimizerEligibility=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:eligible, :min_occurs=>0}, {:type=>"ConversionOptimizerEligibility.RejectionReason", :max_occurs=>:unbounded, :name=>:rejection_reasons, :min_occurs=>0}]}, :BudgetOptimizerAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:proxy_keyword_max_cpc, :min_occurs=>0}, {:type=>"Bid", :max_occurs=>1, :name=>:proxy_site_max_cpc, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:enhanced_cpc_enabled, :min_occurs=>0}], :base=>"AdGroupBids"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:request_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:operations, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:response_time, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:units, :min_occurs=>0}]}, :PercentCPA=>{:fields=>[], :base=>"BiddingStrategy"}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:number, :min_occurs=>0}], :base=>"NumberValue"}, :BiddingTransition=>{:fields=>[{:type=>"BiddingStrategy", :max_occurs=>1, :name=>:target_bidding_strategy, :min_occurs=>0}, {:type=>"AdGroupBids", :max_occurs=>1, :name=>:explicit_ad_group_bids, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:bidding_transition_type, :min_occurs=>0}]}, :AdGroupBids=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:ad_group_bids_type, :min_occurs=>0}], :abstract=>true}, :Stats=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:start_date, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:end_date, :min_occurs=>0}, {:type=>"Stats.Network", :max_occurs=>1, :name=>:network, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:clicks, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:impressions, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:average_position, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:average_cpc, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:average_cpm, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:ctr, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:conversions, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:conversion_rate, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost_per_conversion, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:conversions_many_per_click, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:conversion_rate_many_per_click, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:cost_per_conversion_many_per_click, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:view_through_conversions, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:total_conv_value, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:value_per_conv, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:value_per_conv_many_per_click, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:invalid_clicks, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:invalid_click_rate, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:stats_type, :min_occurs=>0}]}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:start_index, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:number_results, :min_occurs=>0}]}, :FrequencyCap=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:impressions, :min_occurs=>0}, {:type=>"TimeUnit", :max_occurs=>1, :name=>:time_unit, :min_occurs=>0}, {:type=>"Level", :max_occurs=>1, :name=>:level, :min_occurs=>0}]}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:min, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:max, :min_occurs=>0}]}, :ConversionOptimizerAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :name=>:target_cpa, :min_occurs=>0}, {:type=>"ConversionOptimizerBidType", :max_occurs=>1, :name=>:conversion_optimizer_bid_type, :min_occurs=>0}, {:type=>"ConversionDeduplicationMode", :max_occurs=>1, :name=>:deduplication_mode, :min_occurs=>0}], :base=>"AdGroupBids"}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:comparable_value_type, :min_occurs=>0}], :abstract=>true}, :RealTimeBiddingSetting=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:opt_in, :min_occurs=>0}], :base=>"Setting"}, :Campaign=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:name, :min_occurs=>0}, {:type=>"CampaignStatus", :max_occurs=>1, :name=>:status, :min_occurs=>0}, {:type=>"ServingStatus", :max_occurs=>1, :name=>:serving_status, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:start_date, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:end_date, :min_occurs=>0}, {:type=>"Budget", :max_occurs=>1, :name=>:budget, :min_occurs=>0}, {:type=>"BiddingStrategy", :max_occurs=>1, :name=>:bidding_strategy, :min_occurs=>0}, {:type=>"ConversionOptimizerEligibility", :max_occurs=>1, :name=>:conversion_optimizer_eligibility, :min_occurs=>0}, {:type=>"CampaignStats", :max_occurs=>1, :name=>:campaign_stats, :min_occurs=>0}, {:type=>"AdServingOptimizationStatus", :max_occurs=>1, :name=>:ad_serving_optimization_status, :min_occurs=>0}, {:type=>"FrequencyCap", :max_occurs=>1, :name=>:frequency_cap, :min_occurs=>0}, {:type=>"Setting", :max_occurs=>:unbounded, :name=>:settings, :min_occurs=>0}, {:type=>"NetworkSetting", :max_occurs=>1, :name=>:network_setting, :min_occurs=>0}]}, :GeoTargetTypeSetting=>{:fields=>[{:type=>"GeoTargetTypeSetting.PositiveGeoTargetType", :max_occurs=>1, :name=>:positive_geo_target_type, :min_occurs=>0}, {:type=>"GeoTargetTypeSetting.NegativeGeoTargetType", :max_occurs=>1, :name=>:negative_geo_target_type, :min_occurs=>0}], :base=>"Setting"}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :name=>:number, :min_occurs=>0}], :base=>"NumberValue"}}
12
+ CAMPAIGNSERVICE_METHODS = {:get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :min_occurs=>0, :name=>:service_selector}], :output=>{:fields=>[{:type=>"CampaignPage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"CampaignOperation", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:operations}], :output=>{:fields=>[{:type=>"CampaignReturnValue", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"mutate_response"}}}
13
+ CAMPAIGNSERVICE_TYPES = {:CampaignPage=>{:fields=>[{:type=>"Budget", :max_occurs=>1, :min_occurs=>0, :name=>:total_budget}, {:type=>"Campaign", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}], :base=>"Page"}, :Selector=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:fields}, {:type=>"Predicate", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:predicates}, {:type=>"DateRange", :max_occurs=>1, :min_occurs=>0, :name=>:date_range}, {:type=>"OrderBy", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:ordering}, {:type=>"Paging", :max_occurs=>1, :min_occurs=>0, :name=>:paging}]}, :GeoTargetTypeSetting=>{:fields=>[{:type=>"GeoTargetTypeSetting.PositiveGeoTargetType", :max_occurs=>1, :min_occurs=>0, :name=>:positive_geo_target_type}, {:type=>"GeoTargetTypeSetting.NegativeGeoTargetType", :max_occurs=>1, :min_occurs=>0, :name=>:negative_geo_target_type}], :base=>"Setting"}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:min}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:max}]}, :ConversionOptimizerEligibility=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:eligible}, {:type=>"ConversionOptimizerEligibility.RejectionReason", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:rejection_reasons}]}, :BudgetOptimizer=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:bid_ceiling}], :base=>"BiddingStrategy"}, :CampaignReturnValue=>{:fields=>[{:type=>"Campaign", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:value}], :base=>"ListReturnValue"}, :Bid=>{:fields=>[{:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:amount}]}, :Stats=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:start_date}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:end_date}, {:type=>"Stats.Network", :max_occurs=>1, :min_occurs=>0, :name=>:network}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:clicks}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:impressions}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:average_position}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:average_cpc}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:average_cpm}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:ctr}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:conversions}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_rate}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost_per_conversion}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:conversions_many_per_click}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_rate_many_per_click}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:cost_per_conversion_many_per_click}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:view_through_conversions}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:total_conv_value}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:value_per_conv}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:value_per_conv_many_per_click}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:invalid_clicks}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:invalid_click_rate}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:stats_type}]}, :NetworkSetting=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:target_google_search}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:target_search_network}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:target_content_network}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:target_content_contextual}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:target_partner_search_network}]}, :FrequencyCap=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:impressions}, {:type=>"TimeUnit", :max_occurs=>1, :min_occurs=>0, :name=>:time_unit}, {:type=>"Level", :max_occurs=>1, :min_occurs=>0, :name=>:level}]}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}, :ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:list_return_value_type}], :abstract=>true}, :BiddingStrategy=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:bidding_strategy_type}], :abstract=>true}, :ManualCPMAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:max_cpm}], :base=>"AdGroupBids"}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_email}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:partial_failure}]}, :RealTimeBiddingSetting=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:opt_in}], :base=>"Setting"}, :PercentCPAAdGroupBids=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:percent_cpa}], :base=>"AdGroupBids"}, :OrderBy=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"SortOrder", :max_occurs=>1, :min_occurs=>0, :name=>:sort_order}]}, :ManualCPC=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}, {:type=>"PositionPreference", :max_occurs=>1, :min_occurs=>0, :name=>:position_preference}], :base=>"BiddingStrategy"}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operation_type}], :abstract=>true}, :BiddingTransition=>{:fields=>[{:type=>"BiddingStrategy", :max_occurs=>1, :min_occurs=>0, :name=>:target_bidding_strategy}, {:type=>"AdGroupBids", :max_occurs=>1, :min_occurs=>0, :name=>:explicit_ad_group_bids}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:bidding_transition_type}]}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :CampaignStats=>{:fields=>[], :base=>"Stats"}, :BudgetOptimizerAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:proxy_keyword_max_cpc}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:proxy_site_max_cpc}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupBids"}, :Setting=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:setting_type}], :abstract=>true}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}]}, :ManualCPM=>{:fields=>[], :base=>"BiddingStrategy"}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:total_num_entries}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:page_type}], :abstract=>true}, :Campaign=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"CampaignStatus", :max_occurs=>1, :min_occurs=>0, :name=>:status}, {:type=>"ServingStatus", :max_occurs=>1, :min_occurs=>0, :name=>:serving_status}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:start_date}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:end_date}, {:type=>"Budget", :max_occurs=>1, :min_occurs=>0, :name=>:budget}, {:type=>"BiddingStrategy", :max_occurs=>1, :min_occurs=>0, :name=>:bidding_strategy}, {:type=>"ConversionOptimizerEligibility", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_optimizer_eligibility}, {:type=>"CampaignStats", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_stats}, {:type=>"AdServingOptimizationStatus", :max_occurs=>1, :min_occurs=>0, :name=>:ad_serving_optimization_status}, {:type=>"FrequencyCap", :max_occurs=>1, :min_occurs=>0, :name=>:frequency_cap}, {:type=>"Setting", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:settings}, {:type=>"NetworkSetting", :max_occurs=>1, :min_occurs=>0, :name=>:network_setting}]}, :AdGroupBids=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:ad_group_bids_type}], :abstract=>true}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:number_results}]}, :ConversionOptimizer=>{:fields=>[{:type=>"PricingModel", :max_occurs=>1, :min_occurs=>0, :name=>:pricing_model}, {:type=>"ConversionOptimizerBidType", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_optimizer_bid_type}, {:type=>"ConversionDeduplicationMode", :max_occurs=>1, :min_occurs=>0, :name=>:deduplication_mode}], :base=>"BiddingStrategy"}, :ConversionOptimizerAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:target_cpa}, {:type=>"ConversionOptimizerBidType", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_optimizer_bid_type}, {:type=>"ConversionDeduplicationMode", :max_occurs=>1, :min_occurs=>0, :name=>:deduplication_mode}], :base=>"AdGroupBids"}, :PercentCPA=>{:fields=>[], :base=>"BiddingStrategy"}, :CampaignOperation=>{:fields=>[{:type=>"BiddingTransition", :max_occurs=>1, :min_occurs=>0, :name=>:bidding_transition}, {:type=>"Campaign", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:comparable_value_type}], :abstract=>true}, :Predicate=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"Predicate.Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:values}]}, :ConversionOptimizerBiddingTransition=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:use_saved_bids}], :base=>"BiddingTransition"}, :ManualCPCAdGroupBids=>{:fields=>[{:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:keyword_max_cpc}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:keyword_content_max_cpc}, {:type=>"Bid", :max_occurs=>1, :min_occurs=>0, :name=>:site_max_cpc}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:enhanced_cpc_enabled}], :base=>"AdGroupBids"}, :Budget=>{:fields=>[{:type=>"Budget.BudgetPeriod", :max_occurs=>1, :min_occurs=>0, :name=>:period}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:amount}, {:type=>"Budget.BudgetDeliveryMethod", :max_occurs=>1, :min_occurs=>0, :name=>:delivery_method}]}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:micro_amount}], :base=>"ComparableValue"}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}}
12
14
  CAMPAIGNSERVICE_NAMESPACES = []
13
15
 
14
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:47:34.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:36:10.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'adwords_api/v201101/campaign_target_service_registry'
@@ -15,12 +15,12 @@ module AdwordsApi; module V201101; module CampaignTargetService
15
15
  super(api, endpoint, namespace, :v201101)
16
16
  end
17
17
 
18
- def get(*args)
19
- return execute_action('get', args)
18
+ def get(*args, &block)
19
+ return execute_action('get', args, &block)
20
20
  end
21
21
 
22
- def mutate(*args)
23
- return execute_action('mutate', args)
22
+ def mutate(*args, &block)
23
+ return execute_action('mutate', args, &block)
24
24
  end
25
25
 
26
26
  private
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:47:34.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:36:10.
7
+
8
+ require 'adwords_api/errors'
7
9
 
8
10
  module AdwordsApi; module V201101; module CampaignTargetService
9
11
  class CampaignTargetServiceRegistry
10
- CAMPAIGNTARGETSERVICE_METHODS = {:get=>{:input=>[{:type=>"CampaignTargetSelector", :max_occurs=>1, :name=>:selector, :min_occurs=>0}], :output=>{:fields=>[{:type=>"CampaignTargetPage", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"CampaignTargetOperation", :max_occurs=>:unbounded, :name=>:operations, :min_occurs=>0}], :output=>{:fields=>[{:type=>"CampaignTargetReturnValue", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"mutate_response"}}}
11
- CAMPAIGNTARGETSERVICE_TYPES = {:ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:list_return_value_type, :min_occurs=>0}], :abstract=>true}, :AdScheduleTargetList=>{:fields=>[{:type=>"AdScheduleTarget", :max_occurs=>:unbounded, :name=>:targets, :min_occurs=>0}], :base=>"TargetList"}, :DemographicTarget=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:bid_modifier, :min_occurs=>0}], :abstract=>true, :base=>"Target"}, :ProximityTarget=>{:fields=>[{:type=>"GeoPoint", :max_occurs=>1, :name=>:geo_point, :min_occurs=>0}, {:type=>"ProximityTarget.DistanceUnits", :max_occurs=>1, :name=>:radius_distance_units, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:radius_in_units, :min_occurs=>0}, {:type=>"Address", :max_occurs=>1, :name=>:address, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:allow_service_of_address, :min_occurs=>0}], :base=>"GeoTarget"}, :MobilePlatformTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:platform_name, :min_occurs=>0}], :base=>"MobileTarget"}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :name=>:operator, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:operation_type, :min_occurs=>0}], :abstract=>true}, :Target=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:target_type, :min_occurs=>0}], :abstract=>true}, :GenderTarget=>{:fields=>[{:type=>"GenderTarget.Gender", :max_occurs=>1, :name=>:gender, :min_occurs=>0}], :base=>"DemographicTarget"}, :MobileTargetList=>{:fields=>[{:type=>"MobileTarget", :max_occurs=>:unbounded, :name=>:targets, :min_occurs=>0}], :base=>"TargetList"}, :CampaignTargetSelector=>{:fields=>[{:type=>"long", :max_occurs=>:unbounded, :name=>:campaign_ids, :min_occurs=>0}]}, :MobileTarget=>{:fields=>[], :abstract=>true, :base=>"Target"}, :GeoPoint=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:latitude_in_micro_degrees, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:longitude_in_micro_degrees, :min_occurs=>0}]}, :AdScheduleTarget=>{:fields=>[{:type=>"DayOfWeek", :max_occurs=>1, :name=>:day_of_week, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:start_hour, :min_occurs=>0}, {:type=>"MinuteOfHour", :max_occurs=>1, :name=>:start_minute, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:end_hour, :min_occurs=>0}, {:type=>"MinuteOfHour", :max_occurs=>1, :name=>:end_minute, :min_occurs=>0}, {:type=>"double", :max_occurs=>1, :name=>:bid_multiplier, :min_occurs=>0}], :base=>"Target"}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:total_num_entries, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:page_type, :min_occurs=>0}], :abstract=>true}, :GeoTarget=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :name=>:excluded, :min_occurs=>0}], :abstract=>true, :base=>"Target"}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :name=>:reason, :min_occurs=>0}], :base=>"ApiError"}, :Address=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:street_address, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:street_address2, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:city_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:province_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:province_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:postal_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:country_code, :min_occurs=>0}]}, :CampaignTargetPage=>{:fields=>[{:type=>"TargetList", :max_occurs=>:unbounded, :name=>:entries, :min_occurs=>0}], :base=>"Page"}, :GeoTargetList=>{:fields=>[{:type=>"GeoTarget", :max_occurs=>:unbounded, :name=>:targets, :min_occurs=>0}], :base=>"TargetList"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:auth_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_customer_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_email, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:developer_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_agent, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:validate_only, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:partial_failure, :min_occurs=>0}]}, :PlatformTarget=>{:fields=>[{:type=>"PlatformType", :max_occurs=>1, :name=>:platform_type, :min_occurs=>0}], :base=>"Target"}, :AgeTarget=>{:fields=>[{:type=>"AgeTarget.Age", :max_occurs=>1, :name=>:age, :min_occurs=>0}], :base=>"DemographicTarget"}, :CampaignTargetOperation=>{:fields=>[{:type=>"TargetList", :max_occurs=>1, :name=>:operand, :min_occurs=>0}], :base=>"Operation"}, :PlatformTargetList=>{:fields=>[{:type=>"PlatformTarget", :max_occurs=>:unbounded, :name=>:targets, :min_occurs=>0}], :base=>"TargetList"}, :LanguageTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:language_code, :min_occurs=>0}], :base=>"Target"}, :CampaignTargetReturnValue=>{:fields=>[{:type=>"TargetList", :max_occurs=>:unbounded, :name=>:value, :min_occurs=>0}], :base=>"ListReturnValue"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:request_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:operations, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:response_time, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:units, :min_occurs=>0}]}, :PolygonTarget=>{:fields=>[{:type=>"GeoPoint", :max_occurs=>:unbounded, :name=>:vertices, :min_occurs=>0}], :base=>"GeoTarget"}, :CityTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:city_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:province_code, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:country_code, :min_occurs=>0}], :base=>"GeoTarget"}, :LanguageTargetList=>{:fields=>[{:type=>"LanguageTarget", :max_occurs=>:unbounded, :name=>:targets, :min_occurs=>0}], :base=>"TargetList"}, :MetroTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:metro_code, :min_occurs=>0}], :base=>"GeoTarget"}, :ProvinceTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:province_code, :min_occurs=>0}], :base=>"GeoTarget"}, :CountryTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:country_code, :min_occurs=>0}], :base=>"GeoTarget"}, :TargetList=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:campaign_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:target_list_type, :min_occurs=>0}], :abstract=>true}, :DemographicTargetList=>{:fields=>[{:type=>"DemographicTarget", :max_occurs=>:unbounded, :name=>:targets, :min_occurs=>0}], :base=>"TargetList"}, :MobileCarrierTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:carrier_name, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:country_code, :min_occurs=>0}], :base=>"MobileTarget"}}
12
+ CAMPAIGNTARGETSERVICE_METHODS = {:get=>{:input=>[{:type=>"CampaignTargetSelector", :max_occurs=>1, :min_occurs=>0, :name=>:selector}], :output=>{:fields=>[{:type=>"CampaignTargetPage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"CampaignTargetOperation", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:operations}], :output=>{:fields=>[{:type=>"CampaignTargetReturnValue", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"mutate_response"}}}
13
+ CAMPAIGNTARGETSERVICE_TYPES = {:DemographicTargetList=>{:fields=>[{:type=>"DemographicTarget", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:targets}], :base=>"TargetList"}, :AgeTarget=>{:fields=>[{:type=>"AgeTarget.Age", :max_occurs=>1, :min_occurs=>0, :name=>:age}], :base=>"DemographicTarget"}, :AdScheduleTargetList=>{:fields=>[{:type=>"AdScheduleTarget", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:targets}], :base=>"TargetList"}, :LanguageTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:language_code}], :base=>"Target"}, :TargetList=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:campaign_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:target_list_type}], :abstract=>true}, :PlatformTarget=>{:fields=>[{:type=>"PlatformType", :max_occurs=>1, :min_occurs=>0, :name=>:platform_type}], :base=>"Target"}, :CityTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:city_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:province_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}], :base=>"GeoTarget"}, :ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:list_return_value_type}], :abstract=>true}, :MetroTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:metro_code}], :base=>"GeoTarget"}, :MobileTargetList=>{:fields=>[{:type=>"MobileTarget", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:targets}], :base=>"TargetList"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_email}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:partial_failure}]}, :PolygonTarget=>{:fields=>[{:type=>"GeoPoint", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:vertices}], :base=>"GeoTarget"}, :EntityNotFound=>{:fields=>[{:type=>"EntityNotFound.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :CountryTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}], :base=>"GeoTarget"}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operation_type}], :abstract=>true}, :CampaignTargetSelector=>{:fields=>[{:type=>"long", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:campaign_ids}]}, :OperationAccessDenied=>{:fields=>[{:type=>"OperationAccessDenied.Reason", :max_occurs=>1, :min_occurs=>0, :name=>:reason}], :base=>"ApiError"}, :MobileCarrierTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:carrier_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}], :base=>"MobileTarget"}, :Address=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:street_address}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:street_address2}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:city_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:province_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:province_name}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:postal_code}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:country_code}]}, :GeoTargetList=>{:fields=>[{:type=>"GeoTarget", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:targets}], :base=>"TargetList"}, :DemographicTarget=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:bid_modifier}], :abstract=>true, :base=>"Target"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}]}, :ProvinceTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:province_code}], :base=>"GeoTarget"}, :GeoPoint=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:latitude_in_micro_degrees}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:longitude_in_micro_degrees}]}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:total_num_entries}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:page_type}], :abstract=>true}, :CampaignTargetPage=>{:fields=>[{:type=>"TargetList", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}], :base=>"Page"}, :CampaignTargetOperation=>{:fields=>[{:type=>"TargetList", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :MobilePlatformTarget=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:platform_name}], :base=>"MobileTarget"}, :ProximityTarget=>{:fields=>[{:type=>"GeoPoint", :max_occurs=>1, :min_occurs=>0, :name=>:geo_point}, {:type=>"ProximityTarget.DistanceUnits", :max_occurs=>1, :min_occurs=>0, :name=>:radius_distance_units}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:radius_in_units}, {:type=>"Address", :max_occurs=>1, :min_occurs=>0, :name=>:address}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:allow_service_of_address}], :base=>"GeoTarget"}, :GenderTarget=>{:fields=>[{:type=>"GenderTarget.Gender", :max_occurs=>1, :min_occurs=>0, :name=>:gender}], :base=>"DemographicTarget"}, :CampaignTargetReturnValue=>{:fields=>[{:type=>"TargetList", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:value}], :base=>"ListReturnValue"}, :PlatformTargetList=>{:fields=>[{:type=>"PlatformTarget", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:targets}], :base=>"TargetList"}, :LanguageTargetList=>{:fields=>[{:type=>"LanguageTarget", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:targets}], :base=>"TargetList"}, :MobileTarget=>{:fields=>[], :abstract=>true, :base=>"Target"}, :AdScheduleTarget=>{:fields=>[{:type=>"DayOfWeek", :max_occurs=>1, :min_occurs=>0, :name=>:day_of_week}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_hour}, {:type=>"MinuteOfHour", :max_occurs=>1, :min_occurs=>0, :name=>:start_minute}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:end_hour}, {:type=>"MinuteOfHour", :max_occurs=>1, :min_occurs=>0, :name=>:end_minute}, {:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:bid_multiplier}], :base=>"Target"}, :Target=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:target_type}], :abstract=>true}, :GeoTarget=>{:fields=>[{:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:excluded}], :abstract=>true, :base=>"Target"}}
12
14
  CAMPAIGNTARGETSERVICE_NAMESPACES = []
13
15
 
14
16
  def self.get_method_signature(method_name)
@@ -3,7 +3,7 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:47:39.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:36:14.
7
7
 
8
8
  require 'ads_common/savon_service'
9
9
  require 'adwords_api/v201101/conversion_tracker_service_registry'
@@ -15,12 +15,12 @@ module AdwordsApi; module V201101; module ConversionTrackerService
15
15
  super(api, endpoint, namespace, :v201101)
16
16
  end
17
17
 
18
- def get(*args)
19
- return execute_action('get', args)
18
+ def get(*args, &block)
19
+ return execute_action('get', args, &block)
20
20
  end
21
21
 
22
- def mutate(*args)
23
- return execute_action('mutate', args)
22
+ def mutate(*args, &block)
23
+ return execute_action('mutate', args, &block)
24
24
  end
25
25
 
26
26
  private
@@ -3,12 +3,14 @@
3
3
  # Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
4
4
  # License:: Licensed under the Apache License,Version 2.0 (the "License").
5
5
  #
6
- # Code generated by AdsCommon library 0.5.0 on 2011-07-19 18:47:39.
6
+ # Code generated by AdsCommon library 0.5.2 on 2011-10-20 20:36:14.
7
+
8
+ require 'adwords_api/errors'
7
9
 
8
10
  module AdwordsApi; module V201101; module ConversionTrackerService
9
11
  class ConversionTrackerServiceRegistry
10
- CONVERSIONTRACKERSERVICE_METHODS = {:get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :name=>:service_selector, :min_occurs=>0}], :output=>{:fields=>[{:type=>"ConversionTrackerPage", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"ConversionTrackerOperation", :max_occurs=>:unbounded, :name=>:operations, :min_occurs=>0}], :output=>{:fields=>[{:type=>"ConversionTrackerReturnValue", :max_occurs=>1, :name=>:rval, :min_occurs=>0}], :name=>"mutate_response"}}}
11
- CONVERSIONTRACKERSERVICE_TYPES = {:ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:list_return_value_type, :min_occurs=>0}], :abstract=>true}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:micro_amount, :min_occurs=>0}], :base=>"ComparableValue"}, :ConversionTrackerOperation=>{:fields=>[{:type=>"ConversionTracker", :max_occurs=>1, :name=>:operand, :min_occurs=>0}], :base=>"Operation"}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :name=>:operator, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:operation_type, :min_occurs=>0}], :abstract=>true}, :Predicate=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:field, :min_occurs=>0}, {:type=>"Predicate.Operator", :max_occurs=>1, :name=>:operator, :min_occurs=>0}, {:type=>"string", :max_occurs=>:unbounded, :name=>:values, :min_occurs=>0}]}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :ConversionTrackerReturnValue=>{:fields=>[{:type=>"ConversionTracker", :max_occurs=>:unbounded, :name=>:value, :min_occurs=>0}], :base=>"ListReturnValue"}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:total_num_entries, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:page_type, :min_occurs=>0}], :abstract=>true}, :ConversionTrackerPage=>{:fields=>[{:type=>"ConversionTracker", :max_occurs=>:unbounded, :name=>:entries, :min_occurs=>0}], :base=>"NoStatsPage"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:auth_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_customer_id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:client_email, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:developer_token, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_agent, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:validate_only, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:partial_failure, :min_occurs=>0}]}, :Selector=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :name=>:fields, :min_occurs=>0}, {:type=>"Predicate", :max_occurs=>:unbounded, :name=>:predicates, :min_occurs=>0}, {:type=>"DateRange", :max_occurs=>1, :name=>:date_range, :min_occurs=>0}, {:type=>"OrderBy", :max_occurs=>:unbounded, :name=>:ordering, :min_occurs=>0}, {:type=>"Paging", :max_occurs=>1, :name=>:paging, :min_occurs=>0}]}, :OrderBy=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:field, :min_occurs=>0}, {:type=>"SortOrder", :max_occurs=>1, :name=>:sort_order, :min_occurs=>0}]}, :AdWordsConversionTracker=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:snippet, :min_occurs=>0}, {:type=>"AdWordsConversionTracker.MarkupLanguage", :max_occurs=>1, :name=>:markup_language, :min_occurs=>0}, {:type=>"AdWordsConversionTracker.HttpProtocol", :max_occurs=>1, :name=>:http_protocol, :min_occurs=>0}, {:type=>"AdWordsConversionTracker.TextFormat", :max_occurs=>1, :name=>:text_format, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:conversion_page_language, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:background_color, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:user_revenue_value, :min_occurs=>0}], :base=>"ConversionTracker"}, :NoStatsPage=>{:fields=>[], :abstract=>true, :base=>"Page"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:request_id, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:operations, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:response_time, :min_occurs=>0}, {:type=>"long", :max_occurs=>1, :name=>:units, :min_occurs=>0}]}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:number, :min_occurs=>0}], :base=>"NumberValue"}, :ConversionTrackerStats=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:num_conversion_events, :min_occurs=>0}, {:type=>"Money", :max_occurs=>1, :name=>:conversion_value, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:most_recent_conversion_date, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:num_converted_clicks, :min_occurs=>0}]}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :name=>:start_index, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:number_results, :min_occurs=>0}]}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:min, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:max, :min_occurs=>0}]}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :name=>:comparable_value_type, :min_occurs=>0}], :abstract=>true}, :ConversionTracker=>{:fields=>[{:type=>"long", :max_occurs=>1, :name=>:id, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:name, :min_occurs=>0}, {:type=>"ConversionTracker.Status", :max_occurs=>1, :name=>:status, :min_occurs=>0}, {:type=>"ConversionTracker.Category", :max_occurs=>1, :name=>:category, :min_occurs=>0}, {:type=>"ConversionTrackerStats", :max_occurs=>1, :name=>:stats, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:viewthrough_lookback_window, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:viewthrough_conversion_de_dup_search, :min_occurs=>0}, {:type=>"boolean", :max_occurs=>1, :name=>:is_product_ads_chargeable, :min_occurs=>0}, {:type=>"int", :max_occurs=>1, :name=>:product_ads_chargeable_conversion_window, :min_occurs=>0}, {:type=>"string", :max_occurs=>1, :name=>:conversion_tracker_type, :min_occurs=>0}], :abstract=>true}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :name=>:number, :min_occurs=>0}], :base=>"NumberValue"}}
12
+ CONVERSIONTRACKERSERVICE_METHODS = {:get=>{:input=>[{:type=>"Selector", :max_occurs=>1, :min_occurs=>0, :name=>:service_selector}], :output=>{:fields=>[{:type=>"ConversionTrackerPage", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"get_response"}}, :mutate=>{:input=>[{:type=>"ConversionTrackerOperation", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:operations}], :output=>{:fields=>[{:type=>"ConversionTrackerReturnValue", :max_occurs=>1, :min_occurs=>0, :name=>:rval}], :name=>"mutate_response"}}}
13
+ CONVERSIONTRACKERSERVICE_TYPES = {:Selector=>{:fields=>[{:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:fields}, {:type=>"Predicate", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:predicates}, {:type=>"DateRange", :max_occurs=>1, :min_occurs=>0, :name=>:date_range}, {:type=>"OrderBy", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:ordering}, {:type=>"Paging", :max_occurs=>1, :min_occurs=>0, :name=>:paging}]}, :ConversionTracker=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:name}, {:type=>"ConversionTracker.Status", :max_occurs=>1, :min_occurs=>0, :name=>:status}, {:type=>"ConversionTracker.Category", :max_occurs=>1, :min_occurs=>0, :name=>:category}, {:type=>"ConversionTrackerStats", :max_occurs=>1, :min_occurs=>0, :name=>:stats}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:viewthrough_lookback_window}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:viewthrough_conversion_de_dup_search}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:is_product_ads_chargeable}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:product_ads_chargeable_conversion_window}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_tracker_type}], :abstract=>true}, :DateRange=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:min}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:max}]}, :ConversionTrackerOperation=>{:fields=>[{:type=>"ConversionTracker", :max_occurs=>1, :min_occurs=>0, :name=>:operand}], :base=>"Operation"}, :DoubleValue=>{:fields=>[{:type=>"double", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}, :ListReturnValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:list_return_value_type}], :abstract=>true}, :NumberValue=>{:fields=>[], :abstract=>true, :base=>"ComparableValue"}, :ConversionTrackerReturnValue=>{:fields=>[{:type=>"ConversionTracker", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:value}], :base=>"ListReturnValue"}, :SoapHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:auth_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_customer_id}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:client_email}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:developer_token}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_agent}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:validate_only}, {:type=>"boolean", :max_occurs=>1, :min_occurs=>0, :name=>:partial_failure}]}, :OrderBy=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"SortOrder", :max_occurs=>1, :min_occurs=>0, :name=>:sort_order}]}, :Operation=>{:fields=>[{:type=>"Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:operation_type}], :abstract=>true}, :ConversionTrackerPage=>{:fields=>[{:type=>"ConversionTracker", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:entries}], :base=>"NoStatsPage"}, :SoapResponseHeader=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:request_id}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:operations}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:response_time}, {:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:units}]}, :Page=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:total_num_entries}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:page_type}], :abstract=>true}, :Paging=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:start_index}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:number_results}]}, :AdWordsConversionTracker=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:snippet}, {:type=>"AdWordsConversionTracker.MarkupLanguage", :max_occurs=>1, :min_occurs=>0, :name=>:markup_language}, {:type=>"AdWordsConversionTracker.HttpProtocol", :max_occurs=>1, :min_occurs=>0, :name=>:http_protocol}, {:type=>"AdWordsConversionTracker.TextFormat", :max_occurs=>1, :min_occurs=>0, :name=>:text_format}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_page_language}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:background_color}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:user_revenue_value}], :base=>"ConversionTracker"}, :ConversionTrackerStats=>{:fields=>[{:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:num_conversion_events}, {:type=>"Money", :max_occurs=>1, :min_occurs=>0, :name=>:conversion_value}, {:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:most_recent_conversion_date}, {:type=>"int", :max_occurs=>1, :min_occurs=>0, :name=>:num_converted_clicks}]}, :ComparableValue=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:comparable_value_type}], :abstract=>true}, :Predicate=>{:fields=>[{:type=>"string", :max_occurs=>1, :min_occurs=>0, :name=>:field}, {:type=>"Predicate.Operator", :max_occurs=>1, :min_occurs=>0, :name=>:operator}, {:type=>"string", :max_occurs=>:unbounded, :min_occurs=>0, :name=>:values}]}, :NoStatsPage=>{:fields=>[], :abstract=>true, :base=>"Page"}, :Money=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:micro_amount}], :base=>"ComparableValue"}, :LongValue=>{:fields=>[{:type=>"long", :max_occurs=>1, :min_occurs=>0, :name=>:number}], :base=>"NumberValue"}}
12
14
  CONVERSIONTRACKERSERVICE_NAMESPACES = []
13
15
 
14
16
  def self.get_method_signature(method_name)