google-adwords-api 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (527) hide show
  1. data/README +178 -0
  2. data/Rakefile +117 -0
  3. data/adwords_api.yml +21 -0
  4. data/examples/v200909/add_ad_extension_override.rb +91 -0
  5. data/examples/v200909/add_ad_group.rb +98 -0
  6. data/examples/v200909/add_ad_group_criteria.rb +117 -0
  7. data/examples/v200909/add_ads.rb +129 -0
  8. data/examples/v200909/add_campaign.rb +101 -0
  9. data/examples/v200909/add_campaign_ad_extension.rb +130 -0
  10. data/examples/v200909/add_negative_campaign_criterion.rb +96 -0
  11. data/examples/v200909/check_campaigns.rb +132 -0
  12. data/examples/v200909/delete_ad.rb +94 -0
  13. data/examples/v200909/delete_ad_group.rb +86 -0
  14. data/examples/v200909/delete_ad_group_criterion.rb +95 -0
  15. data/examples/v200909/delete_campaign.rb +87 -0
  16. data/examples/v200909/get_all_active_ad_group_criteria.rb +93 -0
  17. data/examples/v200909/get_all_ad_extension_overrides.rb +91 -0
  18. data/examples/v200909/get_all_ad_group_criteria.rb +91 -0
  19. data/examples/v200909/get_all_ad_groups.rb +88 -0
  20. data/examples/v200909/get_all_ad_params.rb +89 -0
  21. data/examples/v200909/get_all_ads.rb +88 -0
  22. data/examples/v200909/get_all_campaign_ad_extensions.rb +90 -0
  23. data/examples/v200909/get_all_campaign_targets.rb +83 -0
  24. data/examples/v200909/get_all_campaigns.rb +83 -0
  25. data/examples/v200909/get_all_disapproved_ads.rb +94 -0
  26. data/examples/v200909/get_all_paused_campaigns.rb +86 -0
  27. data/examples/v200909/get_conversion_optimizer_eligibility.rb +112 -0
  28. data/examples/v200909/get_geo_location_info.rb +108 -0
  29. data/examples/v200909/get_method_cost.rb +96 -0
  30. data/examples/v200909/get_operation_count.rb +88 -0
  31. data/examples/v200909/get_related_keywords.rb +115 -0
  32. data/examples/v200909/get_related_placements.rb +114 -0
  33. data/examples/v200909/get_total_usage_units_per_month.rb +83 -0
  34. data/examples/v200909/get_unit_count.rb +88 -0
  35. data/examples/v200909/perform_bulk_mutate_job.rb +221 -0
  36. data/examples/v200909/set_ad_params.rb +124 -0
  37. data/examples/v200909/set_campaign_targets.rb +125 -0
  38. data/examples/v200909/update_ad.rb +95 -0
  39. data/examples/v200909/update_ad_group.rb +90 -0
  40. data/examples/v200909/update_ad_group_criterion.rb +108 -0
  41. data/examples/v200909/update_campaign.rb +93 -0
  42. data/examples/v201003/add_ad_extension_override.rb +91 -0
  43. data/examples/v201003/add_ad_group.rb +98 -0
  44. data/examples/v201003/add_ad_group_criteria.rb +117 -0
  45. data/examples/v201003/add_ads.rb +182 -0
  46. data/examples/v201003/add_campaign.rb +101 -0
  47. data/examples/v201003/add_campaign_ad_extension.rb +130 -0
  48. data/examples/v201003/add_keywords_performance_report_definition.rb +108 -0
  49. data/examples/v201003/add_negative_campaign_criterion.rb +96 -0
  50. data/examples/v201003/check_campaigns.rb +132 -0
  51. data/examples/v201003/delete_ad.rb +94 -0
  52. data/examples/v201003/delete_ad_group.rb +86 -0
  53. data/examples/v201003/delete_ad_group_criterion.rb +95 -0
  54. data/examples/v201003/delete_campaign.rb +87 -0
  55. data/examples/v201003/download_report.rb +71 -0
  56. data/examples/v201003/get_all_active_ad_group_criteria.rb +93 -0
  57. data/examples/v201003/get_all_ad_extension_overrides.rb +91 -0
  58. data/examples/v201003/get_all_ad_group_criteria.rb +91 -0
  59. data/examples/v201003/get_all_ad_groups.rb +88 -0
  60. data/examples/v201003/get_all_ad_params.rb +89 -0
  61. data/examples/v201003/get_all_ads.rb +91 -0
  62. data/examples/v201003/get_all_campaign_ad_extensions.rb +90 -0
  63. data/examples/v201003/get_all_campaign_targets.rb +83 -0
  64. data/examples/v201003/get_all_campaigns.rb +83 -0
  65. data/examples/v201003/get_all_disapproved_ads.rb +94 -0
  66. data/examples/v201003/get_all_images.rb +88 -0
  67. data/examples/v201003/get_all_paused_campaigns.rb +86 -0
  68. data/examples/v201003/get_all_report_definitions.rb +84 -0
  69. data/examples/v201003/get_all_videos.rb +85 -0
  70. data/examples/v201003/get_conversion_optimizer_eligibility.rb +112 -0
  71. data/examples/v201003/get_criterion_bid_landscape.rb +105 -0
  72. data/examples/v201003/get_geo_location_info.rb +108 -0
  73. data/examples/v201003/get_method_cost.rb +96 -0
  74. data/examples/v201003/get_operation_count.rb +88 -0
  75. data/examples/v201003/get_related_keywords.rb +115 -0
  76. data/examples/v201003/get_related_placements.rb +114 -0
  77. data/examples/v201003/get_report_fields.rb +81 -0
  78. data/examples/v201003/get_total_usage_units_per_month.rb +83 -0
  79. data/examples/v201003/get_unit_count.rb +88 -0
  80. data/examples/v201003/perform_bulk_mutate_job.rb +221 -0
  81. data/examples/v201003/set_ad_params.rb +124 -0
  82. data/examples/v201003/set_campaign_targets.rb +125 -0
  83. data/examples/v201003/update_ad.rb +95 -0
  84. data/examples/v201003/update_ad_group.rb +90 -0
  85. data/examples/v201003/update_ad_group_criterion.rb +108 -0
  86. data/examples/v201003/update_campaign.rb +92 -0
  87. data/examples/v201003/upload_image.rb +97 -0
  88. data/examples/v201008/add_ad_extension_override.rb +91 -0
  89. data/examples/v201008/add_ad_group.rb +98 -0
  90. data/examples/v201008/add_ad_group_criteria.rb +117 -0
  91. data/examples/v201008/add_ads.rb +182 -0
  92. data/examples/v201008/add_campaign.rb +101 -0
  93. data/examples/v201008/add_campaign_ad_extension.rb +130 -0
  94. data/examples/v201008/add_experiment.rb +162 -0
  95. data/examples/v201008/add_keywords_performance_report_definition.rb +108 -0
  96. data/examples/v201008/add_negative_campaign_criterion.rb +96 -0
  97. data/examples/v201008/add_user_list.rb +96 -0
  98. data/examples/v201008/check_campaigns.rb +132 -0
  99. data/examples/v201008/delete_ad.rb +94 -0
  100. data/examples/v201008/delete_ad_group.rb +86 -0
  101. data/examples/v201008/delete_ad_group_criterion.rb +95 -0
  102. data/examples/v201008/delete_bulk_mutate_job.rb +96 -0
  103. data/examples/v201008/delete_campaign.rb +87 -0
  104. data/examples/v201008/delete_experiment.rb +87 -0
  105. data/examples/v201008/delete_user_list.rb +87 -0
  106. data/examples/v201008/download_report.rb +71 -0
  107. data/examples/v201008/get_account_hierarchy.rb +112 -0
  108. data/examples/v201008/get_all_account_changes.rb +144 -0
  109. data/examples/v201008/get_all_active_ad_group_criteria.rb +93 -0
  110. data/examples/v201008/get_all_ad_extension_overrides.rb +91 -0
  111. data/examples/v201008/get_all_ad_group_criteria.rb +91 -0
  112. data/examples/v201008/get_all_ad_groups.rb +88 -0
  113. data/examples/v201008/get_all_ad_params.rb +89 -0
  114. data/examples/v201008/get_all_ads.rb +91 -0
  115. data/examples/v201008/get_all_campaign_ad_extensions.rb +90 -0
  116. data/examples/v201008/get_all_campaign_targets.rb +83 -0
  117. data/examples/v201008/get_all_campaigns.rb +83 -0
  118. data/examples/v201008/get_all_disapproved_ads.rb +94 -0
  119. data/examples/v201008/get_all_experiments.rb +93 -0
  120. data/examples/v201008/get_all_images.rb +88 -0
  121. data/examples/v201008/get_all_paused_campaigns.rb +86 -0
  122. data/examples/v201008/get_all_report_definitions.rb +84 -0
  123. data/examples/v201008/get_all_user_lists.rb +84 -0
  124. data/examples/v201008/get_all_videos.rb +85 -0
  125. data/examples/v201008/get_bulk_mutate_job.rb +106 -0
  126. data/examples/v201008/get_campaign_alerts.rb +103 -0
  127. data/examples/v201008/get_conversion_optimizer_eligibility.rb +97 -0
  128. data/examples/v201008/get_criterion_bid_landscape.rb +105 -0
  129. data/examples/v201008/get_geo_location_info.rb +108 -0
  130. data/examples/v201008/get_method_cost.rb +96 -0
  131. data/examples/v201008/get_operation_count.rb +88 -0
  132. data/examples/v201008/get_related_keywords.rb +115 -0
  133. data/examples/v201008/get_related_placements.rb +114 -0
  134. data/examples/v201008/get_report_fields.rb +81 -0
  135. data/examples/v201008/get_total_usage_units_per_month.rb +83 -0
  136. data/examples/v201008/get_traffic_estimates.rb +156 -0
  137. data/examples/v201008/get_unit_count.rb +88 -0
  138. data/examples/v201008/handle_partial_failures.rb +135 -0
  139. data/examples/v201008/handle_policy_violation_error.rb +146 -0
  140. data/examples/v201008/perform_bulk_mutate_job.rb +221 -0
  141. data/examples/v201008/promote_experiment.rb +88 -0
  142. data/examples/v201008/set_ad_params.rb +124 -0
  143. data/examples/v201008/set_campaign_targets.rb +125 -0
  144. data/examples/v201008/update_ad.rb +95 -0
  145. data/examples/v201008/update_ad_group.rb +90 -0
  146. data/examples/v201008/update_ad_group_criterion.rb +108 -0
  147. data/examples/v201008/update_campaign.rb +93 -0
  148. data/examples/v201008/update_user_list.rb +91 -0
  149. data/examples/v201008/upload_image.rb +97 -0
  150. data/examples/v201101/add_ad_extension_override.rb +91 -0
  151. data/examples/v201101/add_ad_group.rb +98 -0
  152. data/examples/v201101/add_ad_group_criteria.rb +117 -0
  153. data/examples/v201101/add_ads.rb +182 -0
  154. data/examples/v201101/add_campaign.rb +108 -0
  155. data/examples/v201101/add_campaign_ad_extension.rb +130 -0
  156. data/examples/v201101/add_experiment.rb +162 -0
  157. data/examples/v201101/add_keywords_performance_report_definition.rb +108 -0
  158. data/examples/v201101/add_mcc_report_definition.rb +103 -0
  159. data/examples/v201101/add_negative_campaign_criterion.rb +96 -0
  160. data/examples/v201101/add_user_list.rb +96 -0
  161. data/examples/v201101/check_campaigns.rb +132 -0
  162. data/examples/v201101/delete_ad.rb +94 -0
  163. data/examples/v201101/delete_ad_group.rb +86 -0
  164. data/examples/v201101/delete_ad_group_criterion.rb +95 -0
  165. data/examples/v201101/delete_bulk_mutate_job.rb +96 -0
  166. data/examples/v201101/delete_campaign.rb +87 -0
  167. data/examples/v201101/delete_experiment.rb +87 -0
  168. data/examples/v201101/delete_user_list.rb +87 -0
  169. data/examples/v201101/download_mcc_report.rb +93 -0
  170. data/examples/v201101/download_report.rb +71 -0
  171. data/examples/v201101/get_account_hierarchy.rb +112 -0
  172. data/examples/v201101/get_ad_group_bid_landscape.rb +103 -0
  173. data/examples/v201101/get_all_account_changes.rb +146 -0
  174. data/examples/v201101/get_all_active_ad_group_criteria.rb +106 -0
  175. data/examples/v201101/get_all_ad_extension_overrides.rb +91 -0
  176. data/examples/v201101/get_all_ad_group_criteria.rb +97 -0
  177. data/examples/v201101/get_all_ad_groups.rb +94 -0
  178. data/examples/v201101/get_all_ad_params.rb +89 -0
  179. data/examples/v201101/get_all_ads.rb +99 -0
  180. data/examples/v201101/get_all_campaign_ad_extensions.rb +96 -0
  181. data/examples/v201101/get_all_campaign_targets.rb +83 -0
  182. data/examples/v201101/get_all_campaigns.rb +86 -0
  183. data/examples/v201101/get_all_disapproved_ads.rb +102 -0
  184. data/examples/v201101/get_all_experiments.rb +98 -0
  185. data/examples/v201101/get_all_images.rb +90 -0
  186. data/examples/v201101/get_all_paused_campaigns.rb +92 -0
  187. data/examples/v201101/get_all_report_definitions.rb +84 -0
  188. data/examples/v201101/get_all_user_lists.rb +87 -0
  189. data/examples/v201101/get_all_videos.rb +87 -0
  190. data/examples/v201101/get_bulk_mutate_job.rb +106 -0
  191. data/examples/v201101/get_campaign_alerts.rb +103 -0
  192. data/examples/v201101/get_conversion_optimizer_eligibility.rb +102 -0
  193. data/examples/v201101/get_criterion_bid_landscape.rb +102 -0
  194. data/examples/v201101/get_geo_location_info.rb +108 -0
  195. data/examples/v201101/get_method_cost.rb +96 -0
  196. data/examples/v201101/get_operation_count.rb +88 -0
  197. data/examples/v201101/get_related_keywords.rb +115 -0
  198. data/examples/v201101/get_related_placements.rb +114 -0
  199. data/examples/v201101/get_report_fields.rb +81 -0
  200. data/examples/v201101/get_total_usage_units_per_month.rb +83 -0
  201. data/examples/v201101/get_traffic_estimates.rb +157 -0
  202. data/examples/v201101/get_unit_count.rb +88 -0
  203. data/examples/v201101/handle_partial_failures.rb +135 -0
  204. data/examples/v201101/handle_policy_violation_error.rb +146 -0
  205. data/examples/v201101/perform_bulk_mutate_job.rb +221 -0
  206. data/examples/v201101/promote_experiment.rb +88 -0
  207. data/examples/v201101/set_ad_params.rb +124 -0
  208. data/examples/v201101/set_campaign_targets.rb +111 -0
  209. data/examples/v201101/update_ad.rb +95 -0
  210. data/examples/v201101/update_ad_group.rb +90 -0
  211. data/examples/v201101/update_ad_group_criterion.rb +108 -0
  212. data/examples/v201101/update_campaign.rb +93 -0
  213. data/examples/v201101/update_user_list.rb +91 -0
  214. data/examples/v201101/upload_image.rb +97 -0
  215. data/lib/adwords_api.rb +273 -0
  216. data/lib/adwords_api/api_config.rb +270 -0
  217. data/lib/adwords_api/auth/v13_login_handler.rb +36 -0
  218. data/lib/adwords_api/credential_handler.rb +111 -0
  219. data/lib/adwords_api/errors.rb +85 -0
  220. data/lib/adwords_api/extensions.rb +245 -0
  221. data/lib/adwords_api/soap4r_response_handler.rb +121 -0
  222. data/lib/adwords_api/utils.rb +80 -0
  223. data/lib/adwords_api/v13/AccountService.rb +321 -0
  224. data/lib/adwords_api/v13/AccountServiceDriver.rb +87 -0
  225. data/lib/adwords_api/v13/AccountServiceMappingRegistry.rb +337 -0
  226. data/lib/adwords_api/v13/AccountServiceWrapper.rb +407 -0
  227. data/lib/adwords_api/v13/ReportService.rb +328 -0
  228. data/lib/adwords_api/v13/ReportServiceDriver.rb +103 -0
  229. data/lib/adwords_api/v13/ReportServiceMappingRegistry.rb +298 -0
  230. data/lib/adwords_api/v13/ReportServiceWrapper.rb +500 -0
  231. data/lib/adwords_api/v13/TrafficEstimatorService.rb +414 -0
  232. data/lib/adwords_api/v13/TrafficEstimatorServiceDriver.rb +79 -0
  233. data/lib/adwords_api/v13/TrafficEstimatorServiceMappingRegistry.rb +491 -0
  234. data/lib/adwords_api/v13/TrafficEstimatorServiceWrapper.rb +402 -0
  235. data/lib/adwords_api/v200909/AdExtensionOverrideService.rb +1105 -0
  236. data/lib/adwords_api/v200909/AdExtensionOverrideServiceDriver.rb +63 -0
  237. data/lib/adwords_api/v200909/AdExtensionOverrideServiceMappingRegistry.rb +1265 -0
  238. data/lib/adwords_api/v200909/AdExtensionOverrideServiceWrapper.rb +332 -0
  239. data/lib/adwords_api/v200909/AdGroupAdService.rb +2603 -0
  240. data/lib/adwords_api/v200909/AdGroupAdServiceDriver.rb +63 -0
  241. data/lib/adwords_api/v200909/AdGroupAdServiceMappingRegistry.rb +2755 -0
  242. data/lib/adwords_api/v200909/AdGroupAdServiceWrapper.rb +332 -0
  243. data/lib/adwords_api/v200909/AdGroupCriterionService.rb +1577 -0
  244. data/lib/adwords_api/v200909/AdGroupCriterionServiceDriver.rb +63 -0
  245. data/lib/adwords_api/v200909/AdGroupCriterionServiceMappingRegistry.rb +1821 -0
  246. data/lib/adwords_api/v200909/AdGroupCriterionServiceWrapper.rb +332 -0
  247. data/lib/adwords_api/v200909/AdGroupService.rb +1251 -0
  248. data/lib/adwords_api/v200909/AdGroupServiceDriver.rb +63 -0
  249. data/lib/adwords_api/v200909/AdGroupServiceMappingRegistry.rb +1395 -0
  250. data/lib/adwords_api/v200909/AdGroupServiceWrapper.rb +332 -0
  251. data/lib/adwords_api/v200909/AdParamService.rb +765 -0
  252. data/lib/adwords_api/v200909/AdParamServiceDriver.rb +63 -0
  253. data/lib/adwords_api/v200909/AdParamServiceMappingRegistry.rb +927 -0
  254. data/lib/adwords_api/v200909/AdParamServiceWrapper.rb +332 -0
  255. data/lib/adwords_api/v200909/BulkMutateJobService.rb +4778 -0
  256. data/lib/adwords_api/v200909/BulkMutateJobServiceDriver.rb +63 -0
  257. data/lib/adwords_api/v200909/BulkMutateJobServiceMappingRegistry.rb +5077 -0
  258. data/lib/adwords_api/v200909/BulkMutateJobServiceWrapper.rb +332 -0
  259. data/lib/adwords_api/v200909/CampaignAdExtensionService.rb +1065 -0
  260. data/lib/adwords_api/v200909/CampaignAdExtensionServiceDriver.rb +63 -0
  261. data/lib/adwords_api/v200909/CampaignAdExtensionServiceMappingRegistry.rb +1273 -0
  262. data/lib/adwords_api/v200909/CampaignAdExtensionServiceWrapper.rb +332 -0
  263. data/lib/adwords_api/v200909/CampaignCriterionService.rb +1019 -0
  264. data/lib/adwords_api/v200909/CampaignCriterionServiceDriver.rb +63 -0
  265. data/lib/adwords_api/v200909/CampaignCriterionServiceMappingRegistry.rb +1237 -0
  266. data/lib/adwords_api/v200909/CampaignCriterionServiceWrapper.rb +332 -0
  267. data/lib/adwords_api/v200909/CampaignService.rb +1633 -0
  268. data/lib/adwords_api/v200909/CampaignServiceDriver.rb +63 -0
  269. data/lib/adwords_api/v200909/CampaignServiceMappingRegistry.rb +1785 -0
  270. data/lib/adwords_api/v200909/CampaignServiceWrapper.rb +332 -0
  271. data/lib/adwords_api/v200909/CampaignTargetService.rb +1435 -0
  272. data/lib/adwords_api/v200909/CampaignTargetServiceDriver.rb +63 -0
  273. data/lib/adwords_api/v200909/CampaignTargetServiceMappingRegistry.rb +1569 -0
  274. data/lib/adwords_api/v200909/CampaignTargetServiceWrapper.rb +332 -0
  275. data/lib/adwords_api/v200909/GeoLocationService.rb +611 -0
  276. data/lib/adwords_api/v200909/GeoLocationServiceDriver.rb +55 -0
  277. data/lib/adwords_api/v200909/GeoLocationServiceMappingRegistry.rb +771 -0
  278. data/lib/adwords_api/v200909/GeoLocationServiceWrapper.rb +303 -0
  279. data/lib/adwords_api/v200909/InfoService.rb +605 -0
  280. data/lib/adwords_api/v200909/InfoServiceDriver.rb +55 -0
  281. data/lib/adwords_api/v200909/InfoServiceMappingRegistry.rb +764 -0
  282. data/lib/adwords_api/v200909/InfoServiceWrapper.rb +303 -0
  283. data/lib/adwords_api/v200909/TargetingIdeaService.rb +2253 -0
  284. data/lib/adwords_api/v200909/TargetingIdeaServiceDriver.rb +63 -0
  285. data/lib/adwords_api/v200909/TargetingIdeaServiceMappingRegistry.rb +2688 -0
  286. data/lib/adwords_api/v200909/TargetingIdeaServiceWrapper.rb +335 -0
  287. data/lib/adwords_api/v201003/AdExtensionOverrideService.rb +1301 -0
  288. data/lib/adwords_api/v201003/AdExtensionOverrideServiceDriver.rb +63 -0
  289. data/lib/adwords_api/v201003/AdExtensionOverrideServiceMappingRegistry.rb +1468 -0
  290. data/lib/adwords_api/v201003/AdExtensionOverrideServiceWrapper.rb +332 -0
  291. data/lib/adwords_api/v201003/AdGroupAdService.rb +2909 -0
  292. data/lib/adwords_api/v201003/AdGroupAdServiceDriver.rb +63 -0
  293. data/lib/adwords_api/v201003/AdGroupAdServiceMappingRegistry.rb +2970 -0
  294. data/lib/adwords_api/v201003/AdGroupAdServiceWrapper.rb +332 -0
  295. data/lib/adwords_api/v201003/AdGroupCriterionService.rb +1762 -0
  296. data/lib/adwords_api/v201003/AdGroupCriterionServiceDriver.rb +63 -0
  297. data/lib/adwords_api/v201003/AdGroupCriterionServiceMappingRegistry.rb +1978 -0
  298. data/lib/adwords_api/v201003/AdGroupCriterionServiceWrapper.rb +332 -0
  299. data/lib/adwords_api/v201003/AdGroupService.rb +1421 -0
  300. data/lib/adwords_api/v201003/AdGroupServiceDriver.rb +63 -0
  301. data/lib/adwords_api/v201003/AdGroupServiceMappingRegistry.rb +1546 -0
  302. data/lib/adwords_api/v201003/AdGroupServiceWrapper.rb +332 -0
  303. data/lib/adwords_api/v201003/AdParamService.rb +859 -0
  304. data/lib/adwords_api/v201003/AdParamServiceDriver.rb +63 -0
  305. data/lib/adwords_api/v201003/AdParamServiceMappingRegistry.rb +1002 -0
  306. data/lib/adwords_api/v201003/AdParamServiceWrapper.rb +332 -0
  307. data/lib/adwords_api/v201003/BidLandscapeService.rb +847 -0
  308. data/lib/adwords_api/v201003/BidLandscapeServiceDriver.rb +55 -0
  309. data/lib/adwords_api/v201003/BidLandscapeServiceMappingRegistry.rb +958 -0
  310. data/lib/adwords_api/v201003/BidLandscapeServiceWrapper.rb +306 -0
  311. data/lib/adwords_api/v201003/BulkMutateJobService.rb +5401 -0
  312. data/lib/adwords_api/v201003/BulkMutateJobServiceDriver.rb +63 -0
  313. data/lib/adwords_api/v201003/BulkMutateJobServiceMappingRegistry.rb +5600 -0
  314. data/lib/adwords_api/v201003/BulkMutateJobServiceWrapper.rb +332 -0
  315. data/lib/adwords_api/v201003/CampaignAdExtensionService.rb +1255 -0
  316. data/lib/adwords_api/v201003/CampaignAdExtensionServiceDriver.rb +63 -0
  317. data/lib/adwords_api/v201003/CampaignAdExtensionServiceMappingRegistry.rb +1452 -0
  318. data/lib/adwords_api/v201003/CampaignAdExtensionServiceWrapper.rb +332 -0
  319. data/lib/adwords_api/v201003/CampaignCriterionService.rb +1145 -0
  320. data/lib/adwords_api/v201003/CampaignCriterionServiceDriver.rb +63 -0
  321. data/lib/adwords_api/v201003/CampaignCriterionServiceMappingRegistry.rb +1344 -0
  322. data/lib/adwords_api/v201003/CampaignCriterionServiceWrapper.rb +332 -0
  323. data/lib/adwords_api/v201003/CampaignService.rb +1901 -0
  324. data/lib/adwords_api/v201003/CampaignServiceDriver.rb +63 -0
  325. data/lib/adwords_api/v201003/CampaignServiceMappingRegistry.rb +2010 -0
  326. data/lib/adwords_api/v201003/CampaignServiceWrapper.rb +332 -0
  327. data/lib/adwords_api/v201003/CampaignTargetService.rb +1642 -0
  328. data/lib/adwords_api/v201003/CampaignTargetServiceDriver.rb +63 -0
  329. data/lib/adwords_api/v201003/CampaignTargetServiceMappingRegistry.rb +1754 -0
  330. data/lib/adwords_api/v201003/CampaignTargetServiceWrapper.rb +332 -0
  331. data/lib/adwords_api/v201003/GeoLocationService.rb +692 -0
  332. data/lib/adwords_api/v201003/GeoLocationServiceDriver.rb +55 -0
  333. data/lib/adwords_api/v201003/GeoLocationServiceMappingRegistry.rb +840 -0
  334. data/lib/adwords_api/v201003/GeoLocationServiceWrapper.rb +303 -0
  335. data/lib/adwords_api/v201003/InfoService.rb +687 -0
  336. data/lib/adwords_api/v201003/InfoServiceDriver.rb +55 -0
  337. data/lib/adwords_api/v201003/InfoServiceMappingRegistry.rb +833 -0
  338. data/lib/adwords_api/v201003/InfoServiceWrapper.rb +303 -0
  339. data/lib/adwords_api/v201003/MediaService.rb +1192 -0
  340. data/lib/adwords_api/v201003/MediaServiceDriver.rb +63 -0
  341. data/lib/adwords_api/v201003/MediaServiceMappingRegistry.rb +1290 -0
  342. data/lib/adwords_api/v201003/MediaServiceWrapper.rb +332 -0
  343. data/lib/adwords_api/v201003/ReportDefinitionService.rb +905 -0
  344. data/lib/adwords_api/v201003/ReportDefinitionServiceDriver.rb +71 -0
  345. data/lib/adwords_api/v201003/ReportDefinitionServiceMappingRegistry.rb +1036 -0
  346. data/lib/adwords_api/v201003/ReportDefinitionServiceWrapper.rb +378 -0
  347. data/lib/adwords_api/v201003/TargetingIdeaService.rb +2517 -0
  348. data/lib/adwords_api/v201003/TargetingIdeaServiceDriver.rb +63 -0
  349. data/lib/adwords_api/v201003/TargetingIdeaServiceMappingRegistry.rb +2925 -0
  350. data/lib/adwords_api/v201003/TargetingIdeaServiceWrapper.rb +335 -0
  351. data/lib/adwords_api/v201008/AdExtensionOverrideService.rb +1383 -0
  352. data/lib/adwords_api/v201008/AdExtensionOverrideServiceDriver.rb +63 -0
  353. data/lib/adwords_api/v201008/AdExtensionOverrideServiceMappingRegistry.rb +1563 -0
  354. data/lib/adwords_api/v201008/AdExtensionOverrideServiceWrapper.rb +332 -0
  355. data/lib/adwords_api/v201008/AdGroupAdService.rb +2928 -0
  356. data/lib/adwords_api/v201008/AdGroupAdServiceDriver.rb +63 -0
  357. data/lib/adwords_api/v201008/AdGroupAdServiceMappingRegistry.rb +2969 -0
  358. data/lib/adwords_api/v201008/AdGroupAdServiceWrapper.rb +332 -0
  359. data/lib/adwords_api/v201008/AdGroupCriterionService.rb +1981 -0
  360. data/lib/adwords_api/v201008/AdGroupCriterionServiceDriver.rb +63 -0
  361. data/lib/adwords_api/v201008/AdGroupCriterionServiceMappingRegistry.rb +2229 -0
  362. data/lib/adwords_api/v201008/AdGroupCriterionServiceWrapper.rb +332 -0
  363. data/lib/adwords_api/v201008/AdGroupService.rb +1548 -0
  364. data/lib/adwords_api/v201008/AdGroupServiceDriver.rb +63 -0
  365. data/lib/adwords_api/v201008/AdGroupServiceMappingRegistry.rb +1687 -0
  366. data/lib/adwords_api/v201008/AdGroupServiceWrapper.rb +332 -0
  367. data/lib/adwords_api/v201008/AdParamService.rb +889 -0
  368. data/lib/adwords_api/v201008/AdParamServiceDriver.rb +63 -0
  369. data/lib/adwords_api/v201008/AdParamServiceMappingRegistry.rb +1041 -0
  370. data/lib/adwords_api/v201008/AdParamServiceWrapper.rb +332 -0
  371. data/lib/adwords_api/v201008/AlertService.rb +743 -0
  372. data/lib/adwords_api/v201008/AlertServiceDriver.rb +55 -0
  373. data/lib/adwords_api/v201008/AlertServiceMappingRegistry.rb +836 -0
  374. data/lib/adwords_api/v201008/AlertServiceWrapper.rb +303 -0
  375. data/lib/adwords_api/v201008/BidLandscapeService.rb +928 -0
  376. data/lib/adwords_api/v201008/BidLandscapeServiceDriver.rb +55 -0
  377. data/lib/adwords_api/v201008/BidLandscapeServiceMappingRegistry.rb +1059 -0
  378. data/lib/adwords_api/v201008/BidLandscapeServiceWrapper.rb +306 -0
  379. data/lib/adwords_api/v201008/BulkMutateJobService.rb +6063 -0
  380. data/lib/adwords_api/v201008/BulkMutateJobServiceDriver.rb +63 -0
  381. data/lib/adwords_api/v201008/BulkMutateJobServiceMappingRegistry.rb +6265 -0
  382. data/lib/adwords_api/v201008/BulkMutateJobServiceWrapper.rb +332 -0
  383. data/lib/adwords_api/v201008/CampaignAdExtensionService.rb +1594 -0
  384. data/lib/adwords_api/v201008/CampaignAdExtensionServiceDriver.rb +63 -0
  385. data/lib/adwords_api/v201008/CampaignAdExtensionServiceMappingRegistry.rb +1789 -0
  386. data/lib/adwords_api/v201008/CampaignAdExtensionServiceWrapper.rb +332 -0
  387. data/lib/adwords_api/v201008/CampaignCriterionService.rb +1243 -0
  388. data/lib/adwords_api/v201008/CampaignCriterionServiceDriver.rb +63 -0
  389. data/lib/adwords_api/v201008/CampaignCriterionServiceMappingRegistry.rb +1467 -0
  390. data/lib/adwords_api/v201008/CampaignCriterionServiceWrapper.rb +332 -0
  391. data/lib/adwords_api/v201008/CampaignService.rb +1979 -0
  392. data/lib/adwords_api/v201008/CampaignServiceDriver.rb +63 -0
  393. data/lib/adwords_api/v201008/CampaignServiceMappingRegistry.rb +2089 -0
  394. data/lib/adwords_api/v201008/CampaignServiceWrapper.rb +332 -0
  395. data/lib/adwords_api/v201008/CampaignTargetService.rb +1651 -0
  396. data/lib/adwords_api/v201008/CampaignTargetServiceDriver.rb +63 -0
  397. data/lib/adwords_api/v201008/CampaignTargetServiceMappingRegistry.rb +1757 -0
  398. data/lib/adwords_api/v201008/CampaignTargetServiceWrapper.rb +332 -0
  399. data/lib/adwords_api/v201008/CustomerSyncService.rb +693 -0
  400. data/lib/adwords_api/v201008/CustomerSyncServiceDriver.rb +55 -0
  401. data/lib/adwords_api/v201008/CustomerSyncServiceMappingRegistry.rb +820 -0
  402. data/lib/adwords_api/v201008/CustomerSyncServiceWrapper.rb +303 -0
  403. data/lib/adwords_api/v201008/ExperimentService.rb +1124 -0
  404. data/lib/adwords_api/v201008/ExperimentServiceDriver.rb +63 -0
  405. data/lib/adwords_api/v201008/ExperimentServiceMappingRegistry.rb +1281 -0
  406. data/lib/adwords_api/v201008/ExperimentServiceWrapper.rb +332 -0
  407. data/lib/adwords_api/v201008/GeoLocationService.rb +695 -0
  408. data/lib/adwords_api/v201008/GeoLocationServiceDriver.rb +55 -0
  409. data/lib/adwords_api/v201008/GeoLocationServiceMappingRegistry.rb +843 -0
  410. data/lib/adwords_api/v201008/GeoLocationServiceWrapper.rb +303 -0
  411. data/lib/adwords_api/v201008/InfoService.rb +690 -0
  412. data/lib/adwords_api/v201008/InfoServiceDriver.rb +55 -0
  413. data/lib/adwords_api/v201008/InfoServiceMappingRegistry.rb +836 -0
  414. data/lib/adwords_api/v201008/InfoServiceWrapper.rb +303 -0
  415. data/lib/adwords_api/v201008/MediaService.rb +1144 -0
  416. data/lib/adwords_api/v201008/MediaServiceDriver.rb +63 -0
  417. data/lib/adwords_api/v201008/MediaServiceMappingRegistry.rb +1241 -0
  418. data/lib/adwords_api/v201008/MediaServiceWrapper.rb +332 -0
  419. data/lib/adwords_api/v201008/ReportDefinitionService.rb +976 -0
  420. data/lib/adwords_api/v201008/ReportDefinitionServiceDriver.rb +71 -0
  421. data/lib/adwords_api/v201008/ReportDefinitionServiceMappingRegistry.rb +1115 -0
  422. data/lib/adwords_api/v201008/ReportDefinitionServiceWrapper.rb +378 -0
  423. data/lib/adwords_api/v201008/ServicedAccountService.rb +630 -0
  424. data/lib/adwords_api/v201008/ServicedAccountServiceDriver.rb +55 -0
  425. data/lib/adwords_api/v201008/ServicedAccountServiceMappingRegistry.rb +752 -0
  426. data/lib/adwords_api/v201008/ServicedAccountServiceWrapper.rb +303 -0
  427. data/lib/adwords_api/v201008/TargetingIdeaService.rb +2645 -0
  428. data/lib/adwords_api/v201008/TargetingIdeaServiceDriver.rb +63 -0
  429. data/lib/adwords_api/v201008/TargetingIdeaServiceMappingRegistry.rb +3080 -0
  430. data/lib/adwords_api/v201008/TargetingIdeaServiceWrapper.rb +335 -0
  431. data/lib/adwords_api/v201008/TrafficEstimatorService.rb +1833 -0
  432. data/lib/adwords_api/v201008/TrafficEstimatorServiceDriver.rb +55 -0
  433. data/lib/adwords_api/v201008/TrafficEstimatorServiceMappingRegistry.rb +2124 -0
  434. data/lib/adwords_api/v201008/TrafficEstimatorServiceWrapper.rb +303 -0
  435. data/lib/adwords_api/v201008/UserListService.rb +846 -0
  436. data/lib/adwords_api/v201008/UserListServiceDriver.rb +63 -0
  437. data/lib/adwords_api/v201008/UserListServiceMappingRegistry.rb +915 -0
  438. data/lib/adwords_api/v201008/UserListServiceWrapper.rb +332 -0
  439. data/lib/adwords_api/v201101/AdExtensionOverrideService.rb +1399 -0
  440. data/lib/adwords_api/v201101/AdExtensionOverrideServiceDriver.rb +63 -0
  441. data/lib/adwords_api/v201101/AdExtensionOverrideServiceMappingRegistry.rb +1573 -0
  442. data/lib/adwords_api/v201101/AdExtensionOverrideServiceWrapper.rb +332 -0
  443. data/lib/adwords_api/v201101/AdGroupAdService.rb +2585 -0
  444. data/lib/adwords_api/v201101/AdGroupAdServiceDriver.rb +63 -0
  445. data/lib/adwords_api/v201101/AdGroupAdServiceMappingRegistry.rb +2583 -0
  446. data/lib/adwords_api/v201101/AdGroupAdServiceWrapper.rb +332 -0
  447. data/lib/adwords_api/v201101/AdGroupCriterionService.rb +2099 -0
  448. data/lib/adwords_api/v201101/AdGroupCriterionServiceDriver.rb +63 -0
  449. data/lib/adwords_api/v201101/AdGroupCriterionServiceMappingRegistry.rb +2327 -0
  450. data/lib/adwords_api/v201101/AdGroupCriterionServiceWrapper.rb +332 -0
  451. data/lib/adwords_api/v201101/AdGroupService.rb +1610 -0
  452. data/lib/adwords_api/v201101/AdGroupServiceDriver.rb +63 -0
  453. data/lib/adwords_api/v201101/AdGroupServiceMappingRegistry.rb +1765 -0
  454. data/lib/adwords_api/v201101/AdGroupServiceWrapper.rb +332 -0
  455. data/lib/adwords_api/v201101/AdParamService.rb +922 -0
  456. data/lib/adwords_api/v201101/AdParamServiceDriver.rb +63 -0
  457. data/lib/adwords_api/v201101/AdParamServiceMappingRegistry.rb +1077 -0
  458. data/lib/adwords_api/v201101/AdParamServiceWrapper.rb +332 -0
  459. data/lib/adwords_api/v201101/AlertService.rb +747 -0
  460. data/lib/adwords_api/v201101/AlertServiceDriver.rb +55 -0
  461. data/lib/adwords_api/v201101/AlertServiceMappingRegistry.rb +838 -0
  462. data/lib/adwords_api/v201101/AlertServiceWrapper.rb +303 -0
  463. data/lib/adwords_api/v201101/BulkMutateJobService.rb +6208 -0
  464. data/lib/adwords_api/v201101/BulkMutateJobServiceDriver.rb +63 -0
  465. data/lib/adwords_api/v201101/BulkMutateJobServiceMappingRegistry.rb +6433 -0
  466. data/lib/adwords_api/v201101/BulkMutateJobServiceWrapper.rb +332 -0
  467. data/lib/adwords_api/v201101/CampaignAdExtensionService.rb +1677 -0
  468. data/lib/adwords_api/v201101/CampaignAdExtensionServiceDriver.rb +63 -0
  469. data/lib/adwords_api/v201101/CampaignAdExtensionServiceMappingRegistry.rb +1855 -0
  470. data/lib/adwords_api/v201101/CampaignAdExtensionServiceWrapper.rb +332 -0
  471. data/lib/adwords_api/v201101/CampaignCriterionService.rb +1388 -0
  472. data/lib/adwords_api/v201101/CampaignCriterionServiceDriver.rb +63 -0
  473. data/lib/adwords_api/v201101/CampaignCriterionServiceMappingRegistry.rb +1601 -0
  474. data/lib/adwords_api/v201101/CampaignCriterionServiceWrapper.rb +332 -0
  475. data/lib/adwords_api/v201101/CampaignService.rb +2188 -0
  476. data/lib/adwords_api/v201101/CampaignServiceDriver.rb +63 -0
  477. data/lib/adwords_api/v201101/CampaignServiceMappingRegistry.rb +2301 -0
  478. data/lib/adwords_api/v201101/CampaignServiceWrapper.rb +332 -0
  479. data/lib/adwords_api/v201101/CampaignTargetService.rb +1629 -0
  480. data/lib/adwords_api/v201101/CampaignTargetServiceDriver.rb +63 -0
  481. data/lib/adwords_api/v201101/CampaignTargetServiceMappingRegistry.rb +1725 -0
  482. data/lib/adwords_api/v201101/CampaignTargetServiceWrapper.rb +332 -0
  483. data/lib/adwords_api/v201101/CustomerSyncService.rb +694 -0
  484. data/lib/adwords_api/v201101/CustomerSyncServiceDriver.rb +55 -0
  485. data/lib/adwords_api/v201101/CustomerSyncServiceMappingRegistry.rb +820 -0
  486. data/lib/adwords_api/v201101/CustomerSyncServiceWrapper.rb +303 -0
  487. data/lib/adwords_api/v201101/DataService.rb +1079 -0
  488. data/lib/adwords_api/v201101/DataServiceDriver.rb +63 -0
  489. data/lib/adwords_api/v201101/DataServiceMappingRegistry.rb +1177 -0
  490. data/lib/adwords_api/v201101/DataServiceWrapper.rb +338 -0
  491. data/lib/adwords_api/v201101/ExperimentService.rb +1256 -0
  492. data/lib/adwords_api/v201101/ExperimentServiceDriver.rb +63 -0
  493. data/lib/adwords_api/v201101/ExperimentServiceMappingRegistry.rb +1417 -0
  494. data/lib/adwords_api/v201101/ExperimentServiceWrapper.rb +332 -0
  495. data/lib/adwords_api/v201101/GeoLocationService.rb +695 -0
  496. data/lib/adwords_api/v201101/GeoLocationServiceDriver.rb +55 -0
  497. data/lib/adwords_api/v201101/GeoLocationServiceMappingRegistry.rb +843 -0
  498. data/lib/adwords_api/v201101/GeoLocationServiceWrapper.rb +303 -0
  499. data/lib/adwords_api/v201101/InfoService.rb +690 -0
  500. data/lib/adwords_api/v201101/InfoServiceDriver.rb +55 -0
  501. data/lib/adwords_api/v201101/InfoServiceMappingRegistry.rb +836 -0
  502. data/lib/adwords_api/v201101/InfoServiceWrapper.rb +303 -0
  503. data/lib/adwords_api/v201101/MediaService.rb +1247 -0
  504. data/lib/adwords_api/v201101/MediaServiceDriver.rb +63 -0
  505. data/lib/adwords_api/v201101/MediaServiceMappingRegistry.rb +1357 -0
  506. data/lib/adwords_api/v201101/MediaServiceWrapper.rb +332 -0
  507. data/lib/adwords_api/v201101/ReportDefinitionService.rb +1121 -0
  508. data/lib/adwords_api/v201101/ReportDefinitionServiceDriver.rb +71 -0
  509. data/lib/adwords_api/v201101/ReportDefinitionServiceMappingRegistry.rb +1263 -0
  510. data/lib/adwords_api/v201101/ReportDefinitionServiceWrapper.rb +364 -0
  511. data/lib/adwords_api/v201101/ServicedAccountService.rb +636 -0
  512. data/lib/adwords_api/v201101/ServicedAccountServiceDriver.rb +55 -0
  513. data/lib/adwords_api/v201101/ServicedAccountServiceMappingRegistry.rb +756 -0
  514. data/lib/adwords_api/v201101/ServicedAccountServiceWrapper.rb +303 -0
  515. data/lib/adwords_api/v201101/TargetingIdeaService.rb +2827 -0
  516. data/lib/adwords_api/v201101/TargetingIdeaServiceDriver.rb +63 -0
  517. data/lib/adwords_api/v201101/TargetingIdeaServiceMappingRegistry.rb +3262 -0
  518. data/lib/adwords_api/v201101/TargetingIdeaServiceWrapper.rb +335 -0
  519. data/lib/adwords_api/v201101/TrafficEstimatorService.rb +1839 -0
  520. data/lib/adwords_api/v201101/TrafficEstimatorServiceDriver.rb +55 -0
  521. data/lib/adwords_api/v201101/TrafficEstimatorServiceMappingRegistry.rb +2128 -0
  522. data/lib/adwords_api/v201101/TrafficEstimatorServiceWrapper.rb +303 -0
  523. data/lib/adwords_api/v201101/UserListService.rb +1206 -0
  524. data/lib/adwords_api/v201101/UserListServiceDriver.rb +63 -0
  525. data/lib/adwords_api/v201101/UserListServiceMappingRegistry.rb +1323 -0
  526. data/lib/adwords_api/v201101/UserListServiceWrapper.rb +332 -0
  527. metadata +649 -0
@@ -0,0 +1,335 @@
1
+ # This file was automatically generated during the "rake generate" step of
2
+ # library setup.
3
+ require 'adwords_api/v201101/TargetingIdeaServiceDriver.rb'
4
+
5
+ module AdwordsApi
6
+ module V201101
7
+ module TargetingIdeaService
8
+
9
+ # Wrapper class for the v201101 TargetingIdeaService service.
10
+ # This class is automatically generated.
11
+ class TargetingIdeaServiceWrapper
12
+
13
+ # Holds the API object to which the wrapper belongs.
14
+ attr_reader :api
15
+
16
+ # Version and service utility fields.
17
+ attr_reader :version, :service
18
+
19
+ REGISTRY = AdwordsApi::V201101::TargetingIdeaService::DefaultMappingRegistry::LiteralRegistry
20
+ # This takes advantage of the code generated by soap4r to get the
21
+ # correct namespace for a given service. It accesses one of the fields
22
+ # in the description of the service's methods, which indicates the
23
+ # namespace.
24
+ # Since we're using a fixed version of soap4r (1.5.8), and this is
25
+ # automatically generated as part of the stub generation, it will
26
+ # always point to what we want.
27
+ NAMESPACE = 'https://adwords.google.com/api/adwords/o/v201101'
28
+
29
+ # Holds a shortcut to the parent module.
30
+ # Use this to avoid typing the full class name when creating classes
31
+ # belonging to this service, e.g.
32
+ # service_object.module::ClassName
33
+ # instead of
34
+ # AdwordsApi::V201101::TargetingIdeaService::ClassName
35
+ # This will make it easier to migrate your code between API versions.
36
+ attr_reader :module
37
+
38
+ public
39
+
40
+ # Constructor for TargetingIdeaServiceWrapper.
41
+ #
42
+ # Args:
43
+ # - driver: SOAP::RPC::Driver object with the remote SOAP methods for
44
+ # this service
45
+ # - api: the API object to which the wrapper belongs
46
+ #
47
+ def initialize(driver, api)
48
+ @driver = driver
49
+ @api = api
50
+ @module = AdwordsApi::V201101::TargetingIdeaService
51
+ @version = :v201101
52
+ @service = :TargetingIdeaService
53
+ end
54
+
55
+ # Returns the namespace for this service.
56
+ def namespace
57
+ return NAMESPACE
58
+ end
59
+
60
+ private
61
+
62
+ # Converts from underscore_separated names to camelCase names.
63
+ #
64
+ # Args:
65
+ # - text: the text to be converted
66
+ #
67
+ def camel_case(text)
68
+ text.gsub(/_\w/) {|match| match[1..-1].upcase}
69
+ end
70
+
71
+ # Converts from camelCase names to underscore_separated names.
72
+ #
73
+ # Args:
74
+ # - text: the text to be converted
75
+ #
76
+ def underscore(text)
77
+ text.gsub(/[a-z0-9][A-Z]/) do |match|
78
+ match[0,1] + '_' + match[1,1].downcase
79
+ end
80
+ end
81
+
82
+ # Validates whether an object is of the correct type.
83
+ # This method is invoked by the hash to object converter during
84
+ # runtime to check the type validity of every object.
85
+ #
86
+ # Args:
87
+ # - object: the hash "object" being evaluated
88
+ # - type: the expected type (the class object itself)
89
+ #
90
+ # Returns:
91
+ # nil, upon success
92
+ #
93
+ # Raises:
94
+ # - ArgumentError: in case of an unexpected type
95
+ #
96
+ def validate_object(object, type)
97
+ return nil if object.is_a? type
98
+
99
+ wsdl_type_obj = type.new
100
+
101
+ if object.is_a? Hash
102
+ xsi_type = object[:xsi_type] or object['xsi_type']
103
+ if xsi_type
104
+ begin
105
+ subtype = @module.class_eval(xsi_type)
106
+ user_type_obj = subtype.new
107
+ rescue
108
+ raise ArgumentError, "Specified xsi_type '" + xsi_type +
109
+ "' is unknown"
110
+ end
111
+ unless user_type_obj.is_a? type
112
+ raise ArgumentError, "Specified xsi_type '" + xsi_type +
113
+ "' is not a subclass of " + type.to_s
114
+ end
115
+ else
116
+ object.each do |key, value|
117
+ if key.to_s != 'xsi_type'
118
+ if !wsdl_type_obj.respond_to?(camel_case(key.to_s).to_sym)
119
+ raise ArgumentError, "Unknown property '" + key.to_s +
120
+ "' for type " + type.to_s
121
+ end
122
+ end
123
+ end
124
+ end
125
+ end
126
+ return nil
127
+ end
128
+
129
+ # Sets a property on a real (soap4r-generated) object.
130
+ #
131
+ # Args:
132
+ # - object: the object being modified
133
+ # - property: the property being set
134
+ # - value: the value it's being set to
135
+ #
136
+ def set_object_property(object, property, value)
137
+ begin
138
+ object.send(property.to_s + '=', value)
139
+ rescue
140
+ object_class = object.class.name.split('::').last
141
+ error = AdsCommon::Errors::MissingPropertyError.new(
142
+ property, object_class)
143
+ message = "'Missing property `" + property.to_s +
144
+ "' for object class `" + object_class + "'"
145
+ raise(error, message)
146
+ end
147
+ end
148
+
149
+ public
150
+
151
+ # Converts dynamic objects (property hashes) into real soap4r objects.
152
+ # This is meant to be called when setting properties on a class, so
153
+ # the method receives an optional parameter specifying the class and
154
+ # property. This way, it's possible to determine the default type for
155
+ # the object if none is provided.
156
+ #
157
+ # Args:
158
+ # - object: the object being converted
159
+ # - parent_class: the class whose property is being set
160
+ # - property: the property being set
161
+ #
162
+ def convert_to_object(object, parent_class = nil, property = nil)
163
+ property = camel_case(property.to_s) if property
164
+ if object.is_a? Hash
165
+ # Process a hash.
166
+ specified_class = object[:xsi_type] or object['xsi_type']
167
+ default_class = nil
168
+ # Determine default class for this object, given the property
169
+ # being set.
170
+ if parent_class and property
171
+ parent = REGISTRY.schema_definition_from_class(parent_class)
172
+ element = parent.elements.entries.find do |entry|
173
+ entry.varname.to_s == property.to_s
174
+ end
175
+ default_class = element.mapped_class if element
176
+ end
177
+ validate_object(object, default_class)
178
+ real_class = nil
179
+ if specified_class
180
+ real_class = @module.class_eval(specified_class)
181
+ else
182
+ real_class = default_class
183
+ end
184
+ # Instance real object.
185
+ real_object = real_class.new
186
+ # Set each of its properties.
187
+ object.each do |entry, value|
188
+ entry = entry.to_s
189
+ unless entry == 'xsi_type'
190
+ if @api.config.read('service.use_ruby_names')
191
+ entry = camel_case(entry)
192
+ end
193
+ if value.is_a? Hash
194
+ # Recurse.
195
+ set_object_property(real_object, entry,
196
+ convert_to_object(value, real_class, entry))
197
+ elsif value.is_a? Array
198
+ set_object_property(real_object, entry,
199
+ value.map do |item|
200
+ # Recurse.
201
+ convert_to_object(item, real_class, entry)
202
+ end
203
+ )
204
+ else
205
+ set_object_property(real_object, entry, value)
206
+ end
207
+ end
208
+ end
209
+ return real_object
210
+ elsif object.is_a? Array
211
+ # Process an array
212
+ return object.map do |entry|
213
+ # Recurse.
214
+ convert_to_object(entry, parent_class, property)
215
+ end
216
+ else
217
+ return object
218
+ end
219
+ end
220
+
221
+ # Converts real soap4r objects into dynamic ones (property hashes).
222
+ # This is meant to be called for return objects of remote calls.
223
+ #
224
+ # Args:
225
+ # - object: the object being converted
226
+ #
227
+ def convert_from_object(object)
228
+ if object.class.name =~
229
+ /AdwordsApi::V201101::\w+::\w+/
230
+ # Handle soap4r object
231
+ object_class = REGISTRY.schema_definition_from_class(object.class)
232
+ if object_class.elements and !object_class.elements.entries.empty?
233
+ # Process complex object.
234
+ hash = {}
235
+ hash[:xsi_type] = object.class.name.split('::').last
236
+ object_class.elements.entries.each do |entry|
237
+ property = entry.varname.to_s
238
+ if object.respond_to? property and !property.include?('_Type')
239
+ value = object.send(property)
240
+ property_name = nil
241
+ if @api.config.read('service.use_ruby_names')
242
+ property_name = underscore(property).to_sym
243
+ else
244
+ property_name = property.to_sym
245
+ end
246
+ # Recurse.
247
+ hash[property_name] = convert_from_object(value) if value
248
+ end
249
+ end
250
+ return hash
251
+ else
252
+ # Process simple object.
253
+ parent = object.class.superclass
254
+ return parent.new(object)
255
+ end
256
+ elsif object.is_a? Array
257
+ # Handle arrays
258
+ return object.map do |entry|
259
+ # Recurse.
260
+ convert_from_object(entry)
261
+ end
262
+ else
263
+ # Handle native objects
264
+ return object
265
+ end
266
+ end
267
+
268
+
269
+ public
270
+
271
+ # Calls the {get}[http://code.google.com/apis/adwords/docs/reference/v201101/TargetingIdeaService.html#get] method of the TargetingIdeaService service.
272
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201101/TargetingIdeaService.html#get].
273
+ #
274
+ # Args:
275
+ # - selector: AdwordsApi::V201101::TargetingIdeaService::TargetingIdeaSelector
276
+ #
277
+ # Returns:
278
+ # - rval: AdwordsApi::V201101::TargetingIdeaService::TargetingIdeaPage
279
+ #
280
+ # Raises:
281
+ # Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
282
+ #
283
+ def get(selector)
284
+ begin
285
+ arg_array = []
286
+ validate_object(selector, AdwordsApi::V201101::TargetingIdeaService::TargetingIdeaSelector)
287
+ arg_array << convert_to_object(selector, AdwordsApi::V201101::TargetingIdeaService::Get,
288
+ 'selector')
289
+ # Construct request object and make API call
290
+ obj = AdwordsApi::V201101::TargetingIdeaService::Get.new(*arg_array)
291
+ reply = convert_from_object(@driver.get(obj))
292
+ reply = reply[:rval] if reply.include?(:rval)
293
+ return reply
294
+ rescue SOAP::FaultError => fault
295
+ raise AdwordsApi::Errors.create_api_exception(fault,
296
+ self)
297
+ end
298
+ end
299
+
300
+ # Calls the {getBulkKeywordIdeas}[http://code.google.com/apis/adwords/docs/reference/v201101/TargetingIdeaService.html#getBulkKeywordIdeas] method of the TargetingIdeaService service.
301
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201101/TargetingIdeaService.html#getBulkKeywordIdeas].
302
+ #
303
+ # Args:
304
+ # - selector: AdwordsApi::V201101::TargetingIdeaService::TargetingIdeaSelector
305
+ #
306
+ # Returns:
307
+ # - rval: AdwordsApi::V201101::TargetingIdeaService::TargetingIdeaPage
308
+ #
309
+ # Raises:
310
+ # Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
311
+ #
312
+ def getBulkKeywordIdeas(selector)
313
+ begin
314
+ arg_array = []
315
+ validate_object(selector, AdwordsApi::V201101::TargetingIdeaService::TargetingIdeaSelector)
316
+ arg_array << convert_to_object(selector, AdwordsApi::V201101::TargetingIdeaService::GetBulkKeywordIdeas,
317
+ 'selector')
318
+ # Construct request object and make API call
319
+ obj = AdwordsApi::V201101::TargetingIdeaService::GetBulkKeywordIdeas.new(*arg_array)
320
+ reply = convert_from_object(@driver.getBulkKeywordIdeas(obj))
321
+ reply = reply[:rval] if reply.include?(:rval)
322
+ return reply
323
+ rescue SOAP::FaultError => fault
324
+ raise AdwordsApi::Errors.create_api_exception(fault,
325
+ self)
326
+ end
327
+ end
328
+
329
+ alias get_bulk_keyword_ideas getBulkKeywordIdeas
330
+
331
+
332
+ end
333
+ end
334
+ end
335
+ end
@@ -0,0 +1,1839 @@
1
+ require 'xsd/qname'
2
+
3
+ module AdwordsApi; module V201101; module TrafficEstimatorService
4
+
5
+
6
+ # Address
7
+ # - streetAddress - SOAP::SOAPString
8
+ # - streetAddress2 - SOAP::SOAPString
9
+ # - cityName - SOAP::SOAPString
10
+ # - provinceCode - SOAP::SOAPString
11
+ # - provinceName - SOAP::SOAPString
12
+ # - postalCode - SOAP::SOAPString
13
+ # - countryCode - SOAP::SOAPString
14
+ class Address
15
+ attr_accessor :streetAddress
16
+ attr_accessor :streetAddress2
17
+ attr_accessor :cityName
18
+ attr_accessor :provinceCode
19
+ attr_accessor :provinceName
20
+ attr_accessor :postalCode
21
+ attr_accessor :countryCode
22
+
23
+ def initialize(streetAddress = nil, streetAddress2 = nil, cityName = nil, provinceCode = nil, provinceName = nil, postalCode = nil, countryCode = nil)
24
+ @streetAddress = streetAddress
25
+ @streetAddress2 = streetAddress2
26
+ @cityName = cityName
27
+ @provinceCode = provinceCode
28
+ @provinceName = provinceName
29
+ @postalCode = postalCode
30
+ @countryCode = countryCode
31
+ end
32
+ end
33
+
34
+ # GeoPoint
35
+ # - latitudeInMicroDegrees - SOAP::SOAPInt
36
+ # - longitudeInMicroDegrees - SOAP::SOAPInt
37
+ class GeoPoint
38
+ attr_accessor :latitudeInMicroDegrees
39
+ attr_accessor :longitudeInMicroDegrees
40
+
41
+ def initialize(latitudeInMicroDegrees = nil, longitudeInMicroDegrees = nil)
42
+ @latitudeInMicroDegrees = latitudeInMicroDegrees
43
+ @longitudeInMicroDegrees = longitudeInMicroDegrees
44
+ end
45
+ end
46
+
47
+ # ProductConditionOperand
48
+ # - operand - SOAP::SOAPString
49
+ class ProductConditionOperand
50
+ attr_accessor :operand
51
+
52
+ def initialize(operand = nil)
53
+ @operand = operand
54
+ end
55
+ end
56
+
57
+ # SoapHeader
58
+ # - authToken - SOAP::SOAPString
59
+ # - clientCustomerId - SOAP::SOAPString
60
+ # - clientEmail - SOAP::SOAPString
61
+ # - developerToken - SOAP::SOAPString
62
+ # - userAgent - SOAP::SOAPString
63
+ # - validateOnly - SOAP::SOAPBoolean
64
+ # - partialFailure - SOAP::SOAPBoolean
65
+ class SoapHeader
66
+ attr_accessor :authToken
67
+ attr_accessor :clientCustomerId
68
+ attr_accessor :clientEmail
69
+ attr_accessor :developerToken
70
+ attr_accessor :userAgent
71
+ attr_accessor :validateOnly
72
+ attr_accessor :partialFailure
73
+
74
+ def initialize(authToken = nil, clientCustomerId = nil, clientEmail = nil, developerToken = nil, userAgent = nil, validateOnly = nil, partialFailure = nil)
75
+ @authToken = authToken
76
+ @clientCustomerId = clientCustomerId
77
+ @clientEmail = clientEmail
78
+ @developerToken = developerToken
79
+ @userAgent = userAgent
80
+ @validateOnly = validateOnly
81
+ @partialFailure = partialFailure
82
+ end
83
+ end
84
+
85
+ # SoapResponseHeader
86
+ # - requestId - SOAP::SOAPString
87
+ # - operations - SOAP::SOAPLong
88
+ # - responseTime - SOAP::SOAPLong
89
+ # - units - SOAP::SOAPLong
90
+ class SoapResponseHeader
91
+ attr_accessor :requestId
92
+ attr_accessor :operations
93
+ attr_accessor :responseTime
94
+ attr_accessor :units
95
+
96
+ def initialize(requestId = nil, operations = nil, responseTime = nil, units = nil)
97
+ @requestId = requestId
98
+ @operations = operations
99
+ @responseTime = responseTime
100
+ @units = units
101
+ end
102
+ end
103
+
104
+ # ComparableValue
105
+ # abstract
106
+ # - comparableValue_Type - SOAP::SOAPString
107
+ class ComparableValue
108
+ attr_accessor :comparableValue_Type
109
+
110
+ def initialize(comparableValue_Type = nil)
111
+ @comparableValue_Type = comparableValue_Type
112
+ end
113
+ end
114
+
115
+ # Money
116
+ # - comparableValue_Type - SOAP::SOAPString
117
+ # - microAmount - SOAP::SOAPLong
118
+ class Money < ComparableValue
119
+ attr_accessor :comparableValue_Type
120
+ attr_accessor :microAmount
121
+
122
+ def initialize(comparableValue_Type = nil, microAmount = nil)
123
+ @comparableValue_Type = comparableValue_Type
124
+ @microAmount = microAmount
125
+ end
126
+ end
127
+
128
+ # NumberValue
129
+ # abstract
130
+ # - comparableValue_Type - SOAP::SOAPString
131
+ class NumberValue < ComparableValue
132
+ attr_accessor :comparableValue_Type
133
+
134
+ def initialize(comparableValue_Type = nil)
135
+ @comparableValue_Type = comparableValue_Type
136
+ end
137
+ end
138
+
139
+ # DoubleValue
140
+ # - comparableValue_Type - SOAP::SOAPString
141
+ # - number - SOAP::SOAPDouble
142
+ class DoubleValue < NumberValue
143
+ attr_accessor :comparableValue_Type
144
+ attr_accessor :number
145
+
146
+ def initialize(comparableValue_Type = nil, number = nil)
147
+ @comparableValue_Type = comparableValue_Type
148
+ @number = number
149
+ end
150
+ end
151
+
152
+ # LongValue
153
+ # - comparableValue_Type - SOAP::SOAPString
154
+ # - number - SOAP::SOAPLong
155
+ class LongValue < NumberValue
156
+ attr_accessor :comparableValue_Type
157
+ attr_accessor :number
158
+
159
+ def initialize(comparableValue_Type = nil, number = nil)
160
+ @comparableValue_Type = comparableValue_Type
161
+ @number = number
162
+ end
163
+ end
164
+
165
+ # ProductCondition
166
+ # - argument - SOAP::SOAPString
167
+ # - operand - AdwordsApi::V201101::TrafficEstimatorService::ProductConditionOperand
168
+ class ProductCondition
169
+ attr_accessor :argument
170
+ attr_accessor :operand
171
+
172
+ def initialize(argument = nil, operand = nil)
173
+ @argument = argument
174
+ @operand = operand
175
+ end
176
+ end
177
+
178
+ # Target
179
+ # abstract
180
+ # - target_Type - SOAP::SOAPString
181
+ class Target
182
+ attr_accessor :target_Type
183
+
184
+ def initialize(target_Type = nil)
185
+ @target_Type = target_Type
186
+ end
187
+ end
188
+
189
+ # AdScheduleTarget
190
+ # - target_Type - SOAP::SOAPString
191
+ # - dayOfWeek - AdwordsApi::V201101::TrafficEstimatorService::DayOfWeek
192
+ # - startHour - SOAP::SOAPInt
193
+ # - startMinute - AdwordsApi::V201101::TrafficEstimatorService::MinuteOfHour
194
+ # - endHour - SOAP::SOAPInt
195
+ # - endMinute - AdwordsApi::V201101::TrafficEstimatorService::MinuteOfHour
196
+ # - bidMultiplier - SOAP::SOAPDouble
197
+ class AdScheduleTarget < Target
198
+ attr_accessor :target_Type
199
+ attr_accessor :dayOfWeek
200
+ attr_accessor :startHour
201
+ attr_accessor :startMinute
202
+ attr_accessor :endHour
203
+ attr_accessor :endMinute
204
+ attr_accessor :bidMultiplier
205
+
206
+ def initialize(target_Type = nil, dayOfWeek = nil, startHour = nil, startMinute = nil, endHour = nil, endMinute = nil, bidMultiplier = nil)
207
+ @target_Type = target_Type
208
+ @dayOfWeek = dayOfWeek
209
+ @startHour = startHour
210
+ @startMinute = startMinute
211
+ @endHour = endHour
212
+ @endMinute = endMinute
213
+ @bidMultiplier = bidMultiplier
214
+ end
215
+ end
216
+
217
+ # LanguageTarget
218
+ # - target_Type - SOAP::SOAPString
219
+ # - languageCode - SOAP::SOAPString
220
+ class LanguageTarget < Target
221
+ attr_accessor :target_Type
222
+ attr_accessor :languageCode
223
+
224
+ def initialize(target_Type = nil, languageCode = nil)
225
+ @target_Type = target_Type
226
+ @languageCode = languageCode
227
+ end
228
+ end
229
+
230
+ # MobileTarget
231
+ # abstract
232
+ # - target_Type - SOAP::SOAPString
233
+ class MobileTarget < Target
234
+ attr_accessor :target_Type
235
+
236
+ def initialize(target_Type = nil)
237
+ @target_Type = target_Type
238
+ end
239
+ end
240
+
241
+ # MobileCarrierTarget
242
+ # - target_Type - SOAP::SOAPString
243
+ # - carrierName - SOAP::SOAPString
244
+ # - countryCode - SOAP::SOAPString
245
+ class MobileCarrierTarget < MobileTarget
246
+ attr_accessor :target_Type
247
+ attr_accessor :carrierName
248
+ attr_accessor :countryCode
249
+
250
+ def initialize(target_Type = nil, carrierName = nil, countryCode = nil)
251
+ @target_Type = target_Type
252
+ @carrierName = carrierName
253
+ @countryCode = countryCode
254
+ end
255
+ end
256
+
257
+ # MobilePlatformTarget
258
+ # - target_Type - SOAP::SOAPString
259
+ # - platformName - SOAP::SOAPString
260
+ class MobilePlatformTarget < MobileTarget
261
+ attr_accessor :target_Type
262
+ attr_accessor :platformName
263
+
264
+ def initialize(target_Type = nil, platformName = nil)
265
+ @target_Type = target_Type
266
+ @platformName = platformName
267
+ end
268
+ end
269
+
270
+ # PlatformTarget
271
+ # - target_Type - SOAP::SOAPString
272
+ # - platformType - AdwordsApi::V201101::TrafficEstimatorService::PlatformType
273
+ class PlatformTarget < Target
274
+ attr_accessor :target_Type
275
+ attr_accessor :platformType
276
+
277
+ def initialize(target_Type = nil, platformType = nil)
278
+ @target_Type = target_Type
279
+ @platformType = platformType
280
+ end
281
+ end
282
+
283
+ # DemographicTarget
284
+ # abstract
285
+ # - target_Type - SOAP::SOAPString
286
+ # - bidModifier - SOAP::SOAPInt
287
+ class DemographicTarget < Target
288
+ attr_accessor :target_Type
289
+ attr_accessor :bidModifier
290
+
291
+ def initialize(target_Type = nil, bidModifier = nil)
292
+ @target_Type = target_Type
293
+ @bidModifier = bidModifier
294
+ end
295
+ end
296
+
297
+ # AgeTarget
298
+ # - target_Type - SOAP::SOAPString
299
+ # - bidModifier - SOAP::SOAPInt
300
+ # - age - AdwordsApi::V201101::TrafficEstimatorService::AgeTargetAge
301
+ class AgeTarget < DemographicTarget
302
+ attr_accessor :target_Type
303
+ attr_accessor :bidModifier
304
+ attr_accessor :age
305
+
306
+ def initialize(target_Type = nil, bidModifier = nil, age = nil)
307
+ @target_Type = target_Type
308
+ @bidModifier = bidModifier
309
+ @age = age
310
+ end
311
+ end
312
+
313
+ # GenderTarget
314
+ # - target_Type - SOAP::SOAPString
315
+ # - bidModifier - SOAP::SOAPInt
316
+ # - gender - AdwordsApi::V201101::TrafficEstimatorService::GenderTargetGender
317
+ class GenderTarget < DemographicTarget
318
+ attr_accessor :target_Type
319
+ attr_accessor :bidModifier
320
+ attr_accessor :gender
321
+
322
+ def initialize(target_Type = nil, bidModifier = nil, gender = nil)
323
+ @target_Type = target_Type
324
+ @bidModifier = bidModifier
325
+ @gender = gender
326
+ end
327
+ end
328
+
329
+ # GeoTarget
330
+ # abstract
331
+ # - target_Type - SOAP::SOAPString
332
+ # - excluded - SOAP::SOAPBoolean
333
+ class GeoTarget < Target
334
+ attr_accessor :target_Type
335
+ attr_accessor :excluded
336
+
337
+ def initialize(target_Type = nil, excluded = nil)
338
+ @target_Type = target_Type
339
+ @excluded = excluded
340
+ end
341
+ end
342
+
343
+ # CityTarget
344
+ # - target_Type - SOAP::SOAPString
345
+ # - excluded - SOAP::SOAPBoolean
346
+ # - cityName - SOAP::SOAPString
347
+ # - provinceCode - SOAP::SOAPString
348
+ # - countryCode - SOAP::SOAPString
349
+ class CityTarget < GeoTarget
350
+ attr_accessor :target_Type
351
+ attr_accessor :excluded
352
+ attr_accessor :cityName
353
+ attr_accessor :provinceCode
354
+ attr_accessor :countryCode
355
+
356
+ def initialize(target_Type = nil, excluded = nil, cityName = nil, provinceCode = nil, countryCode = nil)
357
+ @target_Type = target_Type
358
+ @excluded = excluded
359
+ @cityName = cityName
360
+ @provinceCode = provinceCode
361
+ @countryCode = countryCode
362
+ end
363
+ end
364
+
365
+ # CountryTarget
366
+ # - target_Type - SOAP::SOAPString
367
+ # - excluded - SOAP::SOAPBoolean
368
+ # - countryCode - SOAP::SOAPString
369
+ class CountryTarget < GeoTarget
370
+ attr_accessor :target_Type
371
+ attr_accessor :excluded
372
+ attr_accessor :countryCode
373
+
374
+ def initialize(target_Type = nil, excluded = nil, countryCode = nil)
375
+ @target_Type = target_Type
376
+ @excluded = excluded
377
+ @countryCode = countryCode
378
+ end
379
+ end
380
+
381
+ # MetroTarget
382
+ # - target_Type - SOAP::SOAPString
383
+ # - excluded - SOAP::SOAPBoolean
384
+ # - metroCode - SOAP::SOAPString
385
+ class MetroTarget < GeoTarget
386
+ attr_accessor :target_Type
387
+ attr_accessor :excluded
388
+ attr_accessor :metroCode
389
+
390
+ def initialize(target_Type = nil, excluded = nil, metroCode = nil)
391
+ @target_Type = target_Type
392
+ @excluded = excluded
393
+ @metroCode = metroCode
394
+ end
395
+ end
396
+
397
+ # PolygonTarget
398
+ # - target_Type - SOAP::SOAPString
399
+ # - excluded - SOAP::SOAPBoolean
400
+ # - vertices - AdwordsApi::V201101::TrafficEstimatorService::GeoPoint
401
+ class PolygonTarget < GeoTarget
402
+ attr_accessor :target_Type
403
+ attr_accessor :excluded
404
+ attr_accessor :vertices
405
+
406
+ def initialize(target_Type = nil, excluded = nil, vertices = [])
407
+ @target_Type = target_Type
408
+ @excluded = excluded
409
+ @vertices = vertices
410
+ end
411
+ end
412
+
413
+ # ProvinceTarget
414
+ # - target_Type - SOAP::SOAPString
415
+ # - excluded - SOAP::SOAPBoolean
416
+ # - provinceCode - SOAP::SOAPString
417
+ class ProvinceTarget < GeoTarget
418
+ attr_accessor :target_Type
419
+ attr_accessor :excluded
420
+ attr_accessor :provinceCode
421
+
422
+ def initialize(target_Type = nil, excluded = nil, provinceCode = nil)
423
+ @target_Type = target_Type
424
+ @excluded = excluded
425
+ @provinceCode = provinceCode
426
+ end
427
+ end
428
+
429
+ # ProximityTarget
430
+ # - target_Type - SOAP::SOAPString
431
+ # - excluded - SOAP::SOAPBoolean
432
+ # - geoPoint - AdwordsApi::V201101::TrafficEstimatorService::GeoPoint
433
+ # - radiusDistanceUnits - AdwordsApi::V201101::TrafficEstimatorService::ProximityTargetDistanceUnits
434
+ # - radiusInUnits - SOAP::SOAPDouble
435
+ # - address - AdwordsApi::V201101::TrafficEstimatorService::Address
436
+ # - allowServiceOfAddress - SOAP::SOAPBoolean
437
+ class ProximityTarget < GeoTarget
438
+ attr_accessor :target_Type
439
+ attr_accessor :excluded
440
+ attr_accessor :geoPoint
441
+ attr_accessor :radiusDistanceUnits
442
+ attr_accessor :radiusInUnits
443
+ attr_accessor :address
444
+ attr_accessor :allowServiceOfAddress
445
+
446
+ def initialize(target_Type = nil, excluded = nil, geoPoint = nil, radiusDistanceUnits = nil, radiusInUnits = nil, address = nil, allowServiceOfAddress = nil)
447
+ @target_Type = target_Type
448
+ @excluded = excluded
449
+ @geoPoint = geoPoint
450
+ @radiusDistanceUnits = radiusDistanceUnits
451
+ @radiusInUnits = radiusInUnits
452
+ @address = address
453
+ @allowServiceOfAddress = allowServiceOfAddress
454
+ end
455
+ end
456
+
457
+ # ApiError
458
+ # abstract
459
+ # - fieldPath - SOAP::SOAPString
460
+ # - trigger - SOAP::SOAPString
461
+ # - errorString - SOAP::SOAPString
462
+ # - apiError_Type - SOAP::SOAPString
463
+ class ApiError
464
+ attr_accessor :fieldPath
465
+ attr_accessor :trigger
466
+ attr_accessor :errorString
467
+ attr_accessor :apiError_Type
468
+
469
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil)
470
+ @fieldPath = fieldPath
471
+ @trigger = trigger
472
+ @errorString = errorString
473
+ @apiError_Type = apiError_Type
474
+ end
475
+ end
476
+
477
+ # AuthenticationError
478
+ # - fieldPath - SOAP::SOAPString
479
+ # - trigger - SOAP::SOAPString
480
+ # - errorString - SOAP::SOAPString
481
+ # - apiError_Type - SOAP::SOAPString
482
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::AuthenticationErrorReason
483
+ class AuthenticationError < ApiError
484
+ attr_accessor :fieldPath
485
+ attr_accessor :trigger
486
+ attr_accessor :errorString
487
+ attr_accessor :apiError_Type
488
+ attr_accessor :reason
489
+
490
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
491
+ @fieldPath = fieldPath
492
+ @trigger = trigger
493
+ @errorString = errorString
494
+ @apiError_Type = apiError_Type
495
+ @reason = reason
496
+ end
497
+ end
498
+
499
+ # AuthorizationError
500
+ # - fieldPath - SOAP::SOAPString
501
+ # - trigger - SOAP::SOAPString
502
+ # - errorString - SOAP::SOAPString
503
+ # - apiError_Type - SOAP::SOAPString
504
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::AuthorizationErrorReason
505
+ class AuthorizationError < ApiError
506
+ attr_accessor :fieldPath
507
+ attr_accessor :trigger
508
+ attr_accessor :errorString
509
+ attr_accessor :apiError_Type
510
+ attr_accessor :reason
511
+
512
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
513
+ @fieldPath = fieldPath
514
+ @trigger = trigger
515
+ @errorString = errorString
516
+ @apiError_Type = apiError_Type
517
+ @reason = reason
518
+ end
519
+ end
520
+
521
+ # ClientTermsError
522
+ # - fieldPath - SOAP::SOAPString
523
+ # - trigger - SOAP::SOAPString
524
+ # - errorString - SOAP::SOAPString
525
+ # - apiError_Type - SOAP::SOAPString
526
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::ClientTermsErrorReason
527
+ class ClientTermsError < ApiError
528
+ attr_accessor :fieldPath
529
+ attr_accessor :trigger
530
+ attr_accessor :errorString
531
+ attr_accessor :apiError_Type
532
+ attr_accessor :reason
533
+
534
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
535
+ @fieldPath = fieldPath
536
+ @trigger = trigger
537
+ @errorString = errorString
538
+ @apiError_Type = apiError_Type
539
+ @reason = reason
540
+ end
541
+ end
542
+
543
+ # DateError
544
+ # - fieldPath - SOAP::SOAPString
545
+ # - trigger - SOAP::SOAPString
546
+ # - errorString - SOAP::SOAPString
547
+ # - apiError_Type - SOAP::SOAPString
548
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::DateErrorReason
549
+ class DateError < ApiError
550
+ attr_accessor :fieldPath
551
+ attr_accessor :trigger
552
+ attr_accessor :errorString
553
+ attr_accessor :apiError_Type
554
+ attr_accessor :reason
555
+
556
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
557
+ @fieldPath = fieldPath
558
+ @trigger = trigger
559
+ @errorString = errorString
560
+ @apiError_Type = apiError_Type
561
+ @reason = reason
562
+ end
563
+ end
564
+
565
+ # DistinctError
566
+ # - fieldPath - SOAP::SOAPString
567
+ # - trigger - SOAP::SOAPString
568
+ # - errorString - SOAP::SOAPString
569
+ # - apiError_Type - SOAP::SOAPString
570
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::DistinctErrorReason
571
+ class DistinctError < ApiError
572
+ attr_accessor :fieldPath
573
+ attr_accessor :trigger
574
+ attr_accessor :errorString
575
+ attr_accessor :apiError_Type
576
+ attr_accessor :reason
577
+
578
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
579
+ @fieldPath = fieldPath
580
+ @trigger = trigger
581
+ @errorString = errorString
582
+ @apiError_Type = apiError_Type
583
+ @reason = reason
584
+ end
585
+ end
586
+
587
+ # EntityAccessDenied
588
+ # - fieldPath - SOAP::SOAPString
589
+ # - trigger - SOAP::SOAPString
590
+ # - errorString - SOAP::SOAPString
591
+ # - apiError_Type - SOAP::SOAPString
592
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::EntityAccessDeniedReason
593
+ class EntityAccessDenied < ApiError
594
+ attr_accessor :fieldPath
595
+ attr_accessor :trigger
596
+ attr_accessor :errorString
597
+ attr_accessor :apiError_Type
598
+ attr_accessor :reason
599
+
600
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
601
+ @fieldPath = fieldPath
602
+ @trigger = trigger
603
+ @errorString = errorString
604
+ @apiError_Type = apiError_Type
605
+ @reason = reason
606
+ end
607
+ end
608
+
609
+ # EntityNotFound
610
+ # - fieldPath - SOAP::SOAPString
611
+ # - trigger - SOAP::SOAPString
612
+ # - errorString - SOAP::SOAPString
613
+ # - apiError_Type - SOAP::SOAPString
614
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::EntityNotFoundReason
615
+ class EntityNotFound < ApiError
616
+ attr_accessor :fieldPath
617
+ attr_accessor :trigger
618
+ attr_accessor :errorString
619
+ attr_accessor :apiError_Type
620
+ attr_accessor :reason
621
+
622
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
623
+ @fieldPath = fieldPath
624
+ @trigger = trigger
625
+ @errorString = errorString
626
+ @apiError_Type = apiError_Type
627
+ @reason = reason
628
+ end
629
+ end
630
+
631
+ # IdError
632
+ # - fieldPath - SOAP::SOAPString
633
+ # - trigger - SOAP::SOAPString
634
+ # - errorString - SOAP::SOAPString
635
+ # - apiError_Type - SOAP::SOAPString
636
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::IdErrorReason
637
+ class IdError < ApiError
638
+ attr_accessor :fieldPath
639
+ attr_accessor :trigger
640
+ attr_accessor :errorString
641
+ attr_accessor :apiError_Type
642
+ attr_accessor :reason
643
+
644
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
645
+ @fieldPath = fieldPath
646
+ @trigger = trigger
647
+ @errorString = errorString
648
+ @apiError_Type = apiError_Type
649
+ @reason = reason
650
+ end
651
+ end
652
+
653
+ # InternalApiError
654
+ # - fieldPath - SOAP::SOAPString
655
+ # - trigger - SOAP::SOAPString
656
+ # - errorString - SOAP::SOAPString
657
+ # - apiError_Type - SOAP::SOAPString
658
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::InternalApiErrorReason
659
+ class InternalApiError < ApiError
660
+ attr_accessor :fieldPath
661
+ attr_accessor :trigger
662
+ attr_accessor :errorString
663
+ attr_accessor :apiError_Type
664
+ attr_accessor :reason
665
+
666
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
667
+ @fieldPath = fieldPath
668
+ @trigger = trigger
669
+ @errorString = errorString
670
+ @apiError_Type = apiError_Type
671
+ @reason = reason
672
+ end
673
+ end
674
+
675
+ # NotEmptyError
676
+ # - fieldPath - SOAP::SOAPString
677
+ # - trigger - SOAP::SOAPString
678
+ # - errorString - SOAP::SOAPString
679
+ # - apiError_Type - SOAP::SOAPString
680
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::NotEmptyErrorReason
681
+ class NotEmptyError < ApiError
682
+ attr_accessor :fieldPath
683
+ attr_accessor :trigger
684
+ attr_accessor :errorString
685
+ attr_accessor :apiError_Type
686
+ attr_accessor :reason
687
+
688
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
689
+ @fieldPath = fieldPath
690
+ @trigger = trigger
691
+ @errorString = errorString
692
+ @apiError_Type = apiError_Type
693
+ @reason = reason
694
+ end
695
+ end
696
+
697
+ # NotWhitelistedError
698
+ # - fieldPath - SOAP::SOAPString
699
+ # - trigger - SOAP::SOAPString
700
+ # - errorString - SOAP::SOAPString
701
+ # - apiError_Type - SOAP::SOAPString
702
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::NotWhitelistedErrorReason
703
+ class NotWhitelistedError < ApiError
704
+ attr_accessor :fieldPath
705
+ attr_accessor :trigger
706
+ attr_accessor :errorString
707
+ attr_accessor :apiError_Type
708
+ attr_accessor :reason
709
+
710
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
711
+ @fieldPath = fieldPath
712
+ @trigger = trigger
713
+ @errorString = errorString
714
+ @apiError_Type = apiError_Type
715
+ @reason = reason
716
+ end
717
+ end
718
+
719
+ # NullError
720
+ # - fieldPath - SOAP::SOAPString
721
+ # - trigger - SOAP::SOAPString
722
+ # - errorString - SOAP::SOAPString
723
+ # - apiError_Type - SOAP::SOAPString
724
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::NullErrorReason
725
+ class NullError < ApiError
726
+ attr_accessor :fieldPath
727
+ attr_accessor :trigger
728
+ attr_accessor :errorString
729
+ attr_accessor :apiError_Type
730
+ attr_accessor :reason
731
+
732
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
733
+ @fieldPath = fieldPath
734
+ @trigger = trigger
735
+ @errorString = errorString
736
+ @apiError_Type = apiError_Type
737
+ @reason = reason
738
+ end
739
+ end
740
+
741
+ # OperationAccessDenied
742
+ # - fieldPath - SOAP::SOAPString
743
+ # - trigger - SOAP::SOAPString
744
+ # - errorString - SOAP::SOAPString
745
+ # - apiError_Type - SOAP::SOAPString
746
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::OperationAccessDeniedReason
747
+ class OperationAccessDenied < ApiError
748
+ attr_accessor :fieldPath
749
+ attr_accessor :trigger
750
+ attr_accessor :errorString
751
+ attr_accessor :apiError_Type
752
+ attr_accessor :reason
753
+
754
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
755
+ @fieldPath = fieldPath
756
+ @trigger = trigger
757
+ @errorString = errorString
758
+ @apiError_Type = apiError_Type
759
+ @reason = reason
760
+ end
761
+ end
762
+
763
+ # OperatorError
764
+ # - fieldPath - SOAP::SOAPString
765
+ # - trigger - SOAP::SOAPString
766
+ # - errorString - SOAP::SOAPString
767
+ # - apiError_Type - SOAP::SOAPString
768
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::OperatorErrorReason
769
+ class OperatorError < ApiError
770
+ attr_accessor :fieldPath
771
+ attr_accessor :trigger
772
+ attr_accessor :errorString
773
+ attr_accessor :apiError_Type
774
+ attr_accessor :reason
775
+
776
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
777
+ @fieldPath = fieldPath
778
+ @trigger = trigger
779
+ @errorString = errorString
780
+ @apiError_Type = apiError_Type
781
+ @reason = reason
782
+ end
783
+ end
784
+
785
+ # QuotaCheckError
786
+ # - fieldPath - SOAP::SOAPString
787
+ # - trigger - SOAP::SOAPString
788
+ # - errorString - SOAP::SOAPString
789
+ # - apiError_Type - SOAP::SOAPString
790
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::QuotaCheckErrorReason
791
+ class QuotaCheckError < ApiError
792
+ attr_accessor :fieldPath
793
+ attr_accessor :trigger
794
+ attr_accessor :errorString
795
+ attr_accessor :apiError_Type
796
+ attr_accessor :reason
797
+
798
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
799
+ @fieldPath = fieldPath
800
+ @trigger = trigger
801
+ @errorString = errorString
802
+ @apiError_Type = apiError_Type
803
+ @reason = reason
804
+ end
805
+ end
806
+
807
+ # RangeError
808
+ # - fieldPath - SOAP::SOAPString
809
+ # - trigger - SOAP::SOAPString
810
+ # - errorString - SOAP::SOAPString
811
+ # - apiError_Type - SOAP::SOAPString
812
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::RangeErrorReason
813
+ class C_RangeError < ApiError
814
+ attr_accessor :fieldPath
815
+ attr_accessor :trigger
816
+ attr_accessor :errorString
817
+ attr_accessor :apiError_Type
818
+ attr_accessor :reason
819
+
820
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
821
+ @fieldPath = fieldPath
822
+ @trigger = trigger
823
+ @errorString = errorString
824
+ @apiError_Type = apiError_Type
825
+ @reason = reason
826
+ end
827
+ end
828
+
829
+ # RateExceededError
830
+ # - fieldPath - SOAP::SOAPString
831
+ # - trigger - SOAP::SOAPString
832
+ # - errorString - SOAP::SOAPString
833
+ # - apiError_Type - SOAP::SOAPString
834
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::RateExceededErrorReason
835
+ # - rateName - SOAP::SOAPString
836
+ # - rateScope - SOAP::SOAPString
837
+ # - retryAfterSeconds - SOAP::SOAPInt
838
+ class RateExceededError < ApiError
839
+ attr_accessor :fieldPath
840
+ attr_accessor :trigger
841
+ attr_accessor :errorString
842
+ attr_accessor :apiError_Type
843
+ attr_accessor :reason
844
+ attr_accessor :rateName
845
+ attr_accessor :rateScope
846
+ attr_accessor :retryAfterSeconds
847
+
848
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, rateName = nil, rateScope = nil, retryAfterSeconds = nil)
849
+ @fieldPath = fieldPath
850
+ @trigger = trigger
851
+ @errorString = errorString
852
+ @apiError_Type = apiError_Type
853
+ @reason = reason
854
+ @rateName = rateName
855
+ @rateScope = rateScope
856
+ @retryAfterSeconds = retryAfterSeconds
857
+ end
858
+ end
859
+
860
+ # ReadOnlyError
861
+ # - fieldPath - SOAP::SOAPString
862
+ # - trigger - SOAP::SOAPString
863
+ # - errorString - SOAP::SOAPString
864
+ # - apiError_Type - SOAP::SOAPString
865
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::ReadOnlyErrorReason
866
+ class ReadOnlyError < ApiError
867
+ attr_accessor :fieldPath
868
+ attr_accessor :trigger
869
+ attr_accessor :errorString
870
+ attr_accessor :apiError_Type
871
+ attr_accessor :reason
872
+
873
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
874
+ @fieldPath = fieldPath
875
+ @trigger = trigger
876
+ @errorString = errorString
877
+ @apiError_Type = apiError_Type
878
+ @reason = reason
879
+ end
880
+ end
881
+
882
+ # RegionCodeError
883
+ # - fieldPath - SOAP::SOAPString
884
+ # - trigger - SOAP::SOAPString
885
+ # - errorString - SOAP::SOAPString
886
+ # - apiError_Type - SOAP::SOAPString
887
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::RegionCodeErrorReason
888
+ class RegionCodeError < ApiError
889
+ attr_accessor :fieldPath
890
+ attr_accessor :trigger
891
+ attr_accessor :errorString
892
+ attr_accessor :apiError_Type
893
+ attr_accessor :reason
894
+
895
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
896
+ @fieldPath = fieldPath
897
+ @trigger = trigger
898
+ @errorString = errorString
899
+ @apiError_Type = apiError_Type
900
+ @reason = reason
901
+ end
902
+ end
903
+
904
+ # RejectedError
905
+ # - fieldPath - SOAP::SOAPString
906
+ # - trigger - SOAP::SOAPString
907
+ # - errorString - SOAP::SOAPString
908
+ # - apiError_Type - SOAP::SOAPString
909
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::RejectedErrorReason
910
+ class RejectedError < ApiError
911
+ attr_accessor :fieldPath
912
+ attr_accessor :trigger
913
+ attr_accessor :errorString
914
+ attr_accessor :apiError_Type
915
+ attr_accessor :reason
916
+
917
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
918
+ @fieldPath = fieldPath
919
+ @trigger = trigger
920
+ @errorString = errorString
921
+ @apiError_Type = apiError_Type
922
+ @reason = reason
923
+ end
924
+ end
925
+
926
+ # RequestError
927
+ # - fieldPath - SOAP::SOAPString
928
+ # - trigger - SOAP::SOAPString
929
+ # - errorString - SOAP::SOAPString
930
+ # - apiError_Type - SOAP::SOAPString
931
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::RequestErrorReason
932
+ class RequestError < ApiError
933
+ attr_accessor :fieldPath
934
+ attr_accessor :trigger
935
+ attr_accessor :errorString
936
+ attr_accessor :apiError_Type
937
+ attr_accessor :reason
938
+
939
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
940
+ @fieldPath = fieldPath
941
+ @trigger = trigger
942
+ @errorString = errorString
943
+ @apiError_Type = apiError_Type
944
+ @reason = reason
945
+ end
946
+ end
947
+
948
+ # RequiredError
949
+ # - fieldPath - SOAP::SOAPString
950
+ # - trigger - SOAP::SOAPString
951
+ # - errorString - SOAP::SOAPString
952
+ # - apiError_Type - SOAP::SOAPString
953
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::RequiredErrorReason
954
+ class RequiredError < ApiError
955
+ attr_accessor :fieldPath
956
+ attr_accessor :trigger
957
+ attr_accessor :errorString
958
+ attr_accessor :apiError_Type
959
+ attr_accessor :reason
960
+
961
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
962
+ @fieldPath = fieldPath
963
+ @trigger = trigger
964
+ @errorString = errorString
965
+ @apiError_Type = apiError_Type
966
+ @reason = reason
967
+ end
968
+ end
969
+
970
+ # SizeLimitError
971
+ # - fieldPath - SOAP::SOAPString
972
+ # - trigger - SOAP::SOAPString
973
+ # - errorString - SOAP::SOAPString
974
+ # - apiError_Type - SOAP::SOAPString
975
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::SizeLimitErrorReason
976
+ class SizeLimitError < ApiError
977
+ attr_accessor :fieldPath
978
+ attr_accessor :trigger
979
+ attr_accessor :errorString
980
+ attr_accessor :apiError_Type
981
+ attr_accessor :reason
982
+
983
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
984
+ @fieldPath = fieldPath
985
+ @trigger = trigger
986
+ @errorString = errorString
987
+ @apiError_Type = apiError_Type
988
+ @reason = reason
989
+ end
990
+ end
991
+
992
+ # StringLengthError
993
+ # - fieldPath - SOAP::SOAPString
994
+ # - trigger - SOAP::SOAPString
995
+ # - errorString - SOAP::SOAPString
996
+ # - apiError_Type - SOAP::SOAPString
997
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::StringLengthErrorReason
998
+ class StringLengthError < ApiError
999
+ attr_accessor :fieldPath
1000
+ attr_accessor :trigger
1001
+ attr_accessor :errorString
1002
+ attr_accessor :apiError_Type
1003
+ attr_accessor :reason
1004
+
1005
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1006
+ @fieldPath = fieldPath
1007
+ @trigger = trigger
1008
+ @errorString = errorString
1009
+ @apiError_Type = apiError_Type
1010
+ @reason = reason
1011
+ end
1012
+ end
1013
+
1014
+ # TargetError
1015
+ # - fieldPath - SOAP::SOAPString
1016
+ # - trigger - SOAP::SOAPString
1017
+ # - errorString - SOAP::SOAPString
1018
+ # - apiError_Type - SOAP::SOAPString
1019
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::TargetErrorReason
1020
+ class TargetError < ApiError
1021
+ attr_accessor :fieldPath
1022
+ attr_accessor :trigger
1023
+ attr_accessor :errorString
1024
+ attr_accessor :apiError_Type
1025
+ attr_accessor :reason
1026
+
1027
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1028
+ @fieldPath = fieldPath
1029
+ @trigger = trigger
1030
+ @errorString = errorString
1031
+ @apiError_Type = apiError_Type
1032
+ @reason = reason
1033
+ end
1034
+ end
1035
+
1036
+ # DatabaseError
1037
+ # - fieldPath - SOAP::SOAPString
1038
+ # - trigger - SOAP::SOAPString
1039
+ # - errorString - SOAP::SOAPString
1040
+ # - apiError_Type - SOAP::SOAPString
1041
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::DatabaseErrorReason
1042
+ class DatabaseError < ApiError
1043
+ attr_accessor :fieldPath
1044
+ attr_accessor :trigger
1045
+ attr_accessor :errorString
1046
+ attr_accessor :apiError_Type
1047
+ attr_accessor :reason
1048
+
1049
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1050
+ @fieldPath = fieldPath
1051
+ @trigger = trigger
1052
+ @errorString = errorString
1053
+ @apiError_Type = apiError_Type
1054
+ @reason = reason
1055
+ end
1056
+ end
1057
+
1058
+ # CollectionSizeError
1059
+ # - fieldPath - SOAP::SOAPString
1060
+ # - trigger - SOAP::SOAPString
1061
+ # - errorString - SOAP::SOAPString
1062
+ # - apiError_Type - SOAP::SOAPString
1063
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::CollectionSizeErrorReason
1064
+ class CollectionSizeError < ApiError
1065
+ attr_accessor :fieldPath
1066
+ attr_accessor :trigger
1067
+ attr_accessor :errorString
1068
+ attr_accessor :apiError_Type
1069
+ attr_accessor :reason
1070
+
1071
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1072
+ @fieldPath = fieldPath
1073
+ @trigger = trigger
1074
+ @errorString = errorString
1075
+ @apiError_Type = apiError_Type
1076
+ @reason = reason
1077
+ end
1078
+ end
1079
+
1080
+ # CurrencyCodeError
1081
+ # - fieldPath - SOAP::SOAPString
1082
+ # - trigger - SOAP::SOAPString
1083
+ # - errorString - SOAP::SOAPString
1084
+ # - apiError_Type - SOAP::SOAPString
1085
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::CurrencyCodeErrorReason
1086
+ class CurrencyCodeError < ApiError
1087
+ attr_accessor :fieldPath
1088
+ attr_accessor :trigger
1089
+ attr_accessor :errorString
1090
+ attr_accessor :apiError_Type
1091
+ attr_accessor :reason
1092
+
1093
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1094
+ @fieldPath = fieldPath
1095
+ @trigger = trigger
1096
+ @errorString = errorString
1097
+ @apiError_Type = apiError_Type
1098
+ @reason = reason
1099
+ end
1100
+ end
1101
+
1102
+ # MatchesRegexError
1103
+ # - fieldPath - SOAP::SOAPString
1104
+ # - trigger - SOAP::SOAPString
1105
+ # - errorString - SOAP::SOAPString
1106
+ # - apiError_Type - SOAP::SOAPString
1107
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::MatchesRegexErrorReason
1108
+ class MatchesRegexError < ApiError
1109
+ attr_accessor :fieldPath
1110
+ attr_accessor :trigger
1111
+ attr_accessor :errorString
1112
+ attr_accessor :apiError_Type
1113
+ attr_accessor :reason
1114
+
1115
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1116
+ @fieldPath = fieldPath
1117
+ @trigger = trigger
1118
+ @errorString = errorString
1119
+ @apiError_Type = apiError_Type
1120
+ @reason = reason
1121
+ end
1122
+ end
1123
+
1124
+ # TrafficEstimatorError
1125
+ # - fieldPath - SOAP::SOAPString
1126
+ # - trigger - SOAP::SOAPString
1127
+ # - errorString - SOAP::SOAPString
1128
+ # - apiError_Type - SOAP::SOAPString
1129
+ # - reason - AdwordsApi::V201101::TrafficEstimatorService::TrafficEstimatorErrorReason
1130
+ class TrafficEstimatorError < ApiError
1131
+ attr_accessor :fieldPath
1132
+ attr_accessor :trigger
1133
+ attr_accessor :errorString
1134
+ attr_accessor :apiError_Type
1135
+ attr_accessor :reason
1136
+
1137
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1138
+ @fieldPath = fieldPath
1139
+ @trigger = trigger
1140
+ @errorString = errorString
1141
+ @apiError_Type = apiError_Type
1142
+ @reason = reason
1143
+ end
1144
+ end
1145
+
1146
+ # ApplicationException
1147
+ # - message - SOAP::SOAPString
1148
+ # - applicationException_Type - SOAP::SOAPString
1149
+ class ApplicationException
1150
+ attr_accessor :message
1151
+ attr_accessor :applicationException_Type
1152
+
1153
+ def initialize(message = nil, applicationException_Type = nil)
1154
+ @message = message
1155
+ @applicationException_Type = applicationException_Type
1156
+ end
1157
+ end
1158
+
1159
+ # ApiException
1160
+ # - message - SOAP::SOAPString
1161
+ # - applicationException_Type - SOAP::SOAPString
1162
+ # - errors - AdwordsApi::V201101::TrafficEstimatorService::ApiError
1163
+ class ApiException < ApplicationException
1164
+ attr_accessor :message
1165
+ attr_accessor :applicationException_Type
1166
+ attr_accessor :errors
1167
+
1168
+ def initialize(message = nil, applicationException_Type = nil, errors = [])
1169
+ @message = message
1170
+ @applicationException_Type = applicationException_Type
1171
+ @errors = errors
1172
+ end
1173
+ end
1174
+
1175
+ # Criterion
1176
+ # - id - SOAP::SOAPLong
1177
+ # - criterion_Type - SOAP::SOAPString
1178
+ class Criterion
1179
+ attr_accessor :id
1180
+ attr_accessor :criterion_Type
1181
+
1182
+ def initialize(id = nil, criterion_Type = nil)
1183
+ @id = id
1184
+ @criterion_Type = criterion_Type
1185
+ end
1186
+ end
1187
+
1188
+ # Keyword
1189
+ # - id - SOAP::SOAPLong
1190
+ # - criterion_Type - SOAP::SOAPString
1191
+ # - text - SOAP::SOAPString
1192
+ # - matchType - AdwordsApi::V201101::TrafficEstimatorService::KeywordMatchType
1193
+ class Keyword < Criterion
1194
+ attr_accessor :id
1195
+ attr_accessor :criterion_Type
1196
+ attr_accessor :text
1197
+ attr_accessor :matchType
1198
+
1199
+ def initialize(id = nil, criterion_Type = nil, text = nil, matchType = nil)
1200
+ @id = id
1201
+ @criterion_Type = criterion_Type
1202
+ @text = text
1203
+ @matchType = matchType
1204
+ end
1205
+ end
1206
+
1207
+ # Placement
1208
+ # - id - SOAP::SOAPLong
1209
+ # - criterion_Type - SOAP::SOAPString
1210
+ # - url - SOAP::SOAPString
1211
+ class Placement < Criterion
1212
+ attr_accessor :id
1213
+ attr_accessor :criterion_Type
1214
+ attr_accessor :url
1215
+
1216
+ def initialize(id = nil, criterion_Type = nil, url = nil)
1217
+ @id = id
1218
+ @criterion_Type = criterion_Type
1219
+ @url = url
1220
+ end
1221
+ end
1222
+
1223
+ # CriterionUserInterest
1224
+ # - id - SOAP::SOAPLong
1225
+ # - criterion_Type - SOAP::SOAPString
1226
+ # - userInterestId - SOAP::SOAPLong
1227
+ # - userInterestName - SOAP::SOAPString
1228
+ class CriterionUserInterest < Criterion
1229
+ attr_accessor :id
1230
+ attr_accessor :criterion_Type
1231
+ attr_accessor :userInterestId
1232
+ attr_accessor :userInterestName
1233
+
1234
+ def initialize(id = nil, criterion_Type = nil, userInterestId = nil, userInterestName = nil)
1235
+ @id = id
1236
+ @criterion_Type = criterion_Type
1237
+ @userInterestId = userInterestId
1238
+ @userInterestName = userInterestName
1239
+ end
1240
+ end
1241
+
1242
+ # CriterionUserList
1243
+ # - id - SOAP::SOAPLong
1244
+ # - criterion_Type - SOAP::SOAPString
1245
+ # - userListId - SOAP::SOAPLong
1246
+ # - userListName - SOAP::SOAPString
1247
+ # - userListMembershipStatus - AdwordsApi::V201101::TrafficEstimatorService::CriterionUserListMembershipStatus
1248
+ class CriterionUserList < Criterion
1249
+ attr_accessor :id
1250
+ attr_accessor :criterion_Type
1251
+ attr_accessor :userListId
1252
+ attr_accessor :userListName
1253
+ attr_accessor :userListMembershipStatus
1254
+
1255
+ def initialize(id = nil, criterion_Type = nil, userListId = nil, userListName = nil, userListMembershipStatus = nil)
1256
+ @id = id
1257
+ @criterion_Type = criterion_Type
1258
+ @userListId = userListId
1259
+ @userListName = userListName
1260
+ @userListMembershipStatus = userListMembershipStatus
1261
+ end
1262
+ end
1263
+
1264
+ # Vertical
1265
+ # - id - SOAP::SOAPLong
1266
+ # - criterion_Type - SOAP::SOAPString
1267
+ # - path - SOAP::SOAPString
1268
+ class Vertical < Criterion
1269
+ attr_accessor :id
1270
+ attr_accessor :criterion_Type
1271
+ attr_accessor :path
1272
+
1273
+ def initialize(id = nil, criterion_Type = nil, path = [])
1274
+ @id = id
1275
+ @criterion_Type = criterion_Type
1276
+ @path = path
1277
+ end
1278
+ end
1279
+
1280
+ # Product
1281
+ # - id - SOAP::SOAPLong
1282
+ # - criterion_Type - SOAP::SOAPString
1283
+ # - conditions - AdwordsApi::V201101::TrafficEstimatorService::ProductCondition
1284
+ # - text - SOAP::SOAPString
1285
+ class Product < Criterion
1286
+ attr_accessor :id
1287
+ attr_accessor :criterion_Type
1288
+ attr_accessor :conditions
1289
+ attr_accessor :text
1290
+
1291
+ def initialize(id = nil, criterion_Type = nil, conditions = [], text = nil)
1292
+ @id = id
1293
+ @criterion_Type = criterion_Type
1294
+ @conditions = conditions
1295
+ @text = text
1296
+ end
1297
+ end
1298
+
1299
+ # Estimate
1300
+ # - estimate_Type - SOAP::SOAPString
1301
+ class Estimate
1302
+ attr_accessor :estimate_Type
1303
+
1304
+ def initialize(estimate_Type = nil)
1305
+ @estimate_Type = estimate_Type
1306
+ end
1307
+ end
1308
+
1309
+ # AdGroupEstimate
1310
+ # - estimate_Type - SOAP::SOAPString
1311
+ # - adGroupId - SOAP::SOAPLong
1312
+ # - keywordEstimates - AdwordsApi::V201101::TrafficEstimatorService::KeywordEstimate
1313
+ class AdGroupEstimate < Estimate
1314
+ attr_accessor :estimate_Type
1315
+ attr_accessor :adGroupId
1316
+ attr_accessor :keywordEstimates
1317
+
1318
+ def initialize(estimate_Type = nil, adGroupId = nil, keywordEstimates = [])
1319
+ @estimate_Type = estimate_Type
1320
+ @adGroupId = adGroupId
1321
+ @keywordEstimates = keywordEstimates
1322
+ end
1323
+ end
1324
+
1325
+ # CampaignEstimate
1326
+ # - estimate_Type - SOAP::SOAPString
1327
+ # - campaignId - SOAP::SOAPLong
1328
+ # - adGroupEstimates - AdwordsApi::V201101::TrafficEstimatorService::AdGroupEstimate
1329
+ class CampaignEstimate < Estimate
1330
+ attr_accessor :estimate_Type
1331
+ attr_accessor :campaignId
1332
+ attr_accessor :adGroupEstimates
1333
+
1334
+ def initialize(estimate_Type = nil, campaignId = nil, adGroupEstimates = [])
1335
+ @estimate_Type = estimate_Type
1336
+ @campaignId = campaignId
1337
+ @adGroupEstimates = adGroupEstimates
1338
+ end
1339
+ end
1340
+
1341
+ # KeywordEstimate
1342
+ # - estimate_Type - SOAP::SOAPString
1343
+ # - criterionId - SOAP::SOAPLong
1344
+ # - min - AdwordsApi::V201101::TrafficEstimatorService::StatsEstimate
1345
+ # - max - AdwordsApi::V201101::TrafficEstimatorService::StatsEstimate
1346
+ class KeywordEstimate < Estimate
1347
+ attr_accessor :estimate_Type
1348
+ attr_accessor :criterionId
1349
+ attr_accessor :min
1350
+ attr_accessor :max
1351
+
1352
+ def initialize(estimate_Type = nil, criterionId = nil, min = nil, max = nil)
1353
+ @estimate_Type = estimate_Type
1354
+ @criterionId = criterionId
1355
+ @min = min
1356
+ @max = max
1357
+ end
1358
+ end
1359
+
1360
+ # EstimateRequest
1361
+ # abstract
1362
+ # - estimateRequest_Type - SOAP::SOAPString
1363
+ class EstimateRequest
1364
+ attr_accessor :estimateRequest_Type
1365
+
1366
+ def initialize(estimateRequest_Type = nil)
1367
+ @estimateRequest_Type = estimateRequest_Type
1368
+ end
1369
+ end
1370
+
1371
+ # AdGroupEstimateRequest
1372
+ # - estimateRequest_Type - SOAP::SOAPString
1373
+ # - adGroupId - SOAP::SOAPLong
1374
+ # - keywordEstimateRequests - AdwordsApi::V201101::TrafficEstimatorService::KeywordEstimateRequest
1375
+ # - maxCpc - AdwordsApi::V201101::TrafficEstimatorService::Money
1376
+ class AdGroupEstimateRequest < EstimateRequest
1377
+ attr_accessor :estimateRequest_Type
1378
+ attr_accessor :adGroupId
1379
+ attr_accessor :keywordEstimateRequests
1380
+ attr_accessor :maxCpc
1381
+
1382
+ def initialize(estimateRequest_Type = nil, adGroupId = nil, keywordEstimateRequests = [], maxCpc = nil)
1383
+ @estimateRequest_Type = estimateRequest_Type
1384
+ @adGroupId = adGroupId
1385
+ @keywordEstimateRequests = keywordEstimateRequests
1386
+ @maxCpc = maxCpc
1387
+ end
1388
+ end
1389
+
1390
+ # CampaignEstimateRequest
1391
+ # - estimateRequest_Type - SOAP::SOAPString
1392
+ # - campaignId - SOAP::SOAPLong
1393
+ # - adGroupEstimateRequests - AdwordsApi::V201101::TrafficEstimatorService::AdGroupEstimateRequest
1394
+ # - targets - AdwordsApi::V201101::TrafficEstimatorService::Target
1395
+ class CampaignEstimateRequest < EstimateRequest
1396
+ attr_accessor :estimateRequest_Type
1397
+ attr_accessor :campaignId
1398
+ attr_accessor :adGroupEstimateRequests
1399
+ attr_accessor :targets
1400
+
1401
+ def initialize(estimateRequest_Type = nil, campaignId = nil, adGroupEstimateRequests = [], targets = [])
1402
+ @estimateRequest_Type = estimateRequest_Type
1403
+ @campaignId = campaignId
1404
+ @adGroupEstimateRequests = adGroupEstimateRequests
1405
+ @targets = targets
1406
+ end
1407
+ end
1408
+
1409
+ # KeywordEstimateRequest
1410
+ # - estimateRequest_Type - SOAP::SOAPString
1411
+ # - keyword - AdwordsApi::V201101::TrafficEstimatorService::Keyword
1412
+ # - maxCpc - AdwordsApi::V201101::TrafficEstimatorService::Money
1413
+ class KeywordEstimateRequest < EstimateRequest
1414
+ attr_accessor :estimateRequest_Type
1415
+ attr_accessor :keyword
1416
+ attr_accessor :maxCpc
1417
+
1418
+ def initialize(estimateRequest_Type = nil, keyword = nil, maxCpc = nil)
1419
+ @estimateRequest_Type = estimateRequest_Type
1420
+ @keyword = keyword
1421
+ @maxCpc = maxCpc
1422
+ end
1423
+ end
1424
+
1425
+ # StatsEstimate
1426
+ # - averageCpc - AdwordsApi::V201101::TrafficEstimatorService::Money
1427
+ # - averagePosition - SOAP::SOAPDouble
1428
+ # - clicksPerDay - SOAP::SOAPFloat
1429
+ # - totalCost - AdwordsApi::V201101::TrafficEstimatorService::Money
1430
+ class StatsEstimate
1431
+ attr_accessor :averageCpc
1432
+ attr_accessor :averagePosition
1433
+ attr_accessor :clicksPerDay
1434
+ attr_accessor :totalCost
1435
+
1436
+ def initialize(averageCpc = nil, averagePosition = nil, clicksPerDay = nil, totalCost = nil)
1437
+ @averageCpc = averageCpc
1438
+ @averagePosition = averagePosition
1439
+ @clicksPerDay = clicksPerDay
1440
+ @totalCost = totalCost
1441
+ end
1442
+ end
1443
+
1444
+ # TrafficEstimatorResult
1445
+ # - campaignEstimates - AdwordsApi::V201101::TrafficEstimatorService::CampaignEstimate
1446
+ class TrafficEstimatorResult
1447
+ attr_accessor :campaignEstimates
1448
+
1449
+ def initialize(campaignEstimates = [])
1450
+ @campaignEstimates = campaignEstimates
1451
+ end
1452
+ end
1453
+
1454
+ # TrafficEstimatorSelector
1455
+ # - campaignEstimateRequests - AdwordsApi::V201101::TrafficEstimatorService::CampaignEstimateRequest
1456
+ class TrafficEstimatorSelector
1457
+ attr_accessor :campaignEstimateRequests
1458
+
1459
+ def initialize(campaignEstimateRequests = [])
1460
+ @campaignEstimateRequests = campaignEstimateRequests
1461
+ end
1462
+ end
1463
+
1464
+ # AgeTarget.Age
1465
+ class AgeTargetAge < ::String
1466
+ AGE_0_17 = AgeTargetAge.new("AGE_0_17")
1467
+ AGE_18_24 = AgeTargetAge.new("AGE_18_24")
1468
+ AGE_25_34 = AgeTargetAge.new("AGE_25_34")
1469
+ AGE_35_44 = AgeTargetAge.new("AGE_35_44")
1470
+ AGE_45_54 = AgeTargetAge.new("AGE_45_54")
1471
+ AGE_55_64 = AgeTargetAge.new("AGE_55_64")
1472
+ AGE_65_PLUS = AgeTargetAge.new("AGE_65_PLUS")
1473
+ end
1474
+
1475
+ # AuthenticationError.Reason
1476
+ class AuthenticationErrorReason < ::String
1477
+ AUTHENTICATION_FAILED = AuthenticationErrorReason.new("AUTHENTICATION_FAILED")
1478
+ CLIENT_CUSTOMER_ID_INVALID = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_INVALID")
1479
+ CLIENT_CUSTOMER_ID_IS_REQUIRED = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_IS_REQUIRED")
1480
+ CLIENT_EMAIL_FAILED_TO_AUTHENTICATE = AuthenticationErrorReason.new("CLIENT_EMAIL_FAILED_TO_AUTHENTICATE")
1481
+ CLIENT_EMAIL_INVALID = AuthenticationErrorReason.new("CLIENT_EMAIL_INVALID")
1482
+ CLIENT_EMAIL_REQUIRED = AuthenticationErrorReason.new("CLIENT_EMAIL_REQUIRED")
1483
+ CUSTOMER_NOT_FOUND = AuthenticationErrorReason.new("CUSTOMER_NOT_FOUND")
1484
+ FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT = AuthenticationErrorReason.new("FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT")
1485
+ FAILED_TO_RETRIEVE_LOGIN_COOKIE = AuthenticationErrorReason.new("FAILED_TO_RETRIEVE_LOGIN_COOKIE")
1486
+ GOOGLE_ACCOUNT_COOKIE_INVALID = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_COOKIE_INVALID")
1487
+ GOOGLE_ACCOUNT_DELETED = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_DELETED")
1488
+ GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH")
1489
+ LOGIN_COOKIE_INVALID = AuthenticationErrorReason.new("LOGIN_COOKIE_INVALID")
1490
+ LOGIN_COOKIE_REQUIRED = AuthenticationErrorReason.new("LOGIN_COOKIE_REQUIRED")
1491
+ NOT_ADS_USER = AuthenticationErrorReason.new("NOT_ADS_USER")
1492
+ OAUTH_TOKEN_DISABLED = AuthenticationErrorReason.new("OAUTH_TOKEN_DISABLED")
1493
+ OAUTH_TOKEN_EXPIRED = AuthenticationErrorReason.new("OAUTH_TOKEN_EXPIRED")
1494
+ OAUTH_TOKEN_HEADER_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_HEADER_INVALID")
1495
+ OAUTH_TOKEN_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_INVALID")
1496
+ OAUTH_TOKEN_REVOKED = AuthenticationErrorReason.new("OAUTH_TOKEN_REVOKED")
1497
+ USER_ID_INVALID = AuthenticationErrorReason.new("USER_ID_INVALID")
1498
+ end
1499
+
1500
+ # AuthorizationError.Reason
1501
+ class AuthorizationErrorReason < ::String
1502
+ EFFECTIVE_USER_PERMISSION_DENIED = AuthorizationErrorReason.new("EFFECTIVE_USER_PERMISSION_DENIED")
1503
+ NO_ADWORDS_ACCOUNT_FOR_CUSTOMER = AuthorizationErrorReason.new("NO_ADWORDS_ACCOUNT_FOR_CUSTOMER")
1504
+ NO_CUSTOMER_FOUND = AuthorizationErrorReason.new("NO_CUSTOMER_FOUND")
1505
+ UNABLE_TO_AUTHORIZE = AuthorizationErrorReason.new("UNABLE_TO_AUTHORIZE")
1506
+ USER_HAS_READONLY_PERMISSION = AuthorizationErrorReason.new("USER_HAS_READONLY_PERMISSION")
1507
+ USER_PERMISSION_DENIED = AuthorizationErrorReason.new("USER_PERMISSION_DENIED")
1508
+ end
1509
+
1510
+ # ClientTermsError.Reason
1511
+ class ClientTermsErrorReason < ::String
1512
+ INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED = ClientTermsErrorReason.new("INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED")
1513
+ end
1514
+
1515
+ # DatabaseError.Reason
1516
+ class DatabaseErrorReason < ::String
1517
+ CAMPAIGN_PRODUCT_NOT_SUPPORTED = DatabaseErrorReason.new("CAMPAIGN_PRODUCT_NOT_SUPPORTED")
1518
+ CONCURRENT_MODIFICATION = DatabaseErrorReason.new("CONCURRENT_MODIFICATION")
1519
+ DATABASE_ERROR = DatabaseErrorReason.new("DATABASE_ERROR")
1520
+ DUPLICATE_KEY = DatabaseErrorReason.new("DUPLICATE_KEY")
1521
+ PERMISSION_DENIED = DatabaseErrorReason.new("PERMISSION_DENIED")
1522
+ UNKNOWN = DatabaseErrorReason.new("UNKNOWN")
1523
+ end
1524
+
1525
+ # DateError.Reason
1526
+ class DateErrorReason < ::String
1527
+ DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = DateErrorReason.new("DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL")
1528
+ DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = DateErrorReason.new("DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE")
1529
+ EARLIER_THAN_MINIMUM_DATE = DateErrorReason.new("EARLIER_THAN_MINIMUM_DATE")
1530
+ INVALID_FIELD_VALUES_IN_DATE = DateErrorReason.new("INVALID_FIELD_VALUES_IN_DATE")
1531
+ INVALID_STRING_DATE = DateErrorReason.new("INVALID_STRING_DATE")
1532
+ INVALID_STRING_DATE_RANGE = DateErrorReason.new("INVALID_STRING_DATE_RANGE")
1533
+ INVALID_STRING_DATE_TIME = DateErrorReason.new("INVALID_STRING_DATE_TIME")
1534
+ LATER_THAN_MAXIMUM_DATE = DateErrorReason.new("LATER_THAN_MAXIMUM_DATE")
1535
+ end
1536
+
1537
+ # DayOfWeek
1538
+ class DayOfWeek < ::String
1539
+ FRIDAY = DayOfWeek.new("FRIDAY")
1540
+ MONDAY = DayOfWeek.new("MONDAY")
1541
+ SATURDAY = DayOfWeek.new("SATURDAY")
1542
+ SUNDAY = DayOfWeek.new("SUNDAY")
1543
+ THURSDAY = DayOfWeek.new("THURSDAY")
1544
+ TUESDAY = DayOfWeek.new("TUESDAY")
1545
+ WEDNESDAY = DayOfWeek.new("WEDNESDAY")
1546
+ end
1547
+
1548
+ # DistinctError.Reason
1549
+ class DistinctErrorReason < ::String
1550
+ DUPLICATE_ELEMENT = DistinctErrorReason.new("DUPLICATE_ELEMENT")
1551
+ DUPLICATE_TYPE = DistinctErrorReason.new("DUPLICATE_TYPE")
1552
+ end
1553
+
1554
+ # EntityAccessDenied.Reason
1555
+ class EntityAccessDeniedReason < ::String
1556
+ READ_ACCESS_DENIED = EntityAccessDeniedReason.new("READ_ACCESS_DENIED")
1557
+ WRITE_ACCESS_DENIED = EntityAccessDeniedReason.new("WRITE_ACCESS_DENIED")
1558
+ end
1559
+
1560
+ # EntityNotFound.Reason
1561
+ class EntityNotFoundReason < ::String
1562
+ INVALID_ID = EntityNotFoundReason.new("INVALID_ID")
1563
+ end
1564
+
1565
+ # GenderTarget.Gender
1566
+ class GenderTargetGender < ::String
1567
+ FEMALE = GenderTargetGender.new("FEMALE")
1568
+ MALE = GenderTargetGender.new("MALE")
1569
+ end
1570
+
1571
+ # IdError.Reason
1572
+ class IdErrorReason < ::String
1573
+ NOT_FOUND = IdErrorReason.new("NOT_FOUND")
1574
+ end
1575
+
1576
+ # InternalApiError.Reason
1577
+ class InternalApiErrorReason < ::String
1578
+ UNEXPECTED_INTERNAL_API_ERROR = InternalApiErrorReason.new("UNEXPECTED_INTERNAL_API_ERROR")
1579
+ UNKNOWN = InternalApiErrorReason.new("UNKNOWN")
1580
+ end
1581
+
1582
+ # KeywordMatchType
1583
+ class KeywordMatchType < ::String
1584
+ BROAD = KeywordMatchType.new("BROAD")
1585
+ EXACT = KeywordMatchType.new("EXACT")
1586
+ PHRASE = KeywordMatchType.new("PHRASE")
1587
+ end
1588
+
1589
+ # MinuteOfHour
1590
+ class MinuteOfHour < ::String
1591
+ FIFTEEN = MinuteOfHour.new("FIFTEEN")
1592
+ FORTY_FIVE = MinuteOfHour.new("FORTY_FIVE")
1593
+ THIRTY = MinuteOfHour.new("THIRTY")
1594
+ ZERO = MinuteOfHour.new("ZERO")
1595
+ end
1596
+
1597
+ # NotEmptyError.Reason
1598
+ class NotEmptyErrorReason < ::String
1599
+ EMPTY_LIST = NotEmptyErrorReason.new("EMPTY_LIST")
1600
+ end
1601
+
1602
+ # NotWhitelistedError.Reason
1603
+ class NotWhitelistedErrorReason < ::String
1604
+ CUSTOMER_NOT_WHITELISTED_FOR_API = NotWhitelistedErrorReason.new("CUSTOMER_NOT_WHITELISTED_FOR_API")
1605
+ end
1606
+
1607
+ # NullError.Reason
1608
+ class NullErrorReason < ::String
1609
+ NULL_CONTENT = NullErrorReason.new("NULL_CONTENT")
1610
+ end
1611
+
1612
+ # OperationAccessDenied.Reason
1613
+ class OperationAccessDeniedReason < ::String
1614
+ ACTION_NOT_PERMITTED = OperationAccessDeniedReason.new("ACTION_NOT_PERMITTED")
1615
+ ADD_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("ADD_OPERATION_NOT_PERMITTED")
1616
+ MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT = OperationAccessDeniedReason.new("MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT")
1617
+ REMOVE_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("REMOVE_OPERATION_NOT_PERMITTED")
1618
+ SET_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("SET_OPERATION_NOT_PERMITTED")
1619
+ UNKNOWN = OperationAccessDeniedReason.new("UNKNOWN")
1620
+ end
1621
+
1622
+ # OperatorError.Reason
1623
+ class OperatorErrorReason < ::String
1624
+ OPERATOR_NOT_SUPPORTED = OperatorErrorReason.new("OPERATOR_NOT_SUPPORTED")
1625
+ end
1626
+
1627
+ # PlatformType
1628
+ class PlatformType < ::String
1629
+ DESKTOP = PlatformType.new("DESKTOP")
1630
+ HIGH_END_MOBILE = PlatformType.new("HIGH_END_MOBILE")
1631
+ UNKNOWN = PlatformType.new("UNKNOWN")
1632
+ end
1633
+
1634
+ # ProximityTarget.DistanceUnits
1635
+ class ProximityTargetDistanceUnits < ::String
1636
+ KILOMETERS = ProximityTargetDistanceUnits.new("KILOMETERS")
1637
+ MILES = ProximityTargetDistanceUnits.new("MILES")
1638
+ end
1639
+
1640
+ # QuotaCheckError.Reason
1641
+ class QuotaCheckErrorReason < ::String
1642
+ ACCOUNT_DELINQUENT = QuotaCheckErrorReason.new("ACCOUNT_DELINQUENT")
1643
+ ACCOUNT_INACCESSIBLE = QuotaCheckErrorReason.new("ACCOUNT_INACCESSIBLE")
1644
+ ACCOUNT_INACTIVE = QuotaCheckErrorReason.new("ACCOUNT_INACTIVE")
1645
+ INCOMPLETE_SIGNUP = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP")
1646
+ INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED")
1647
+ INCOMPLETE_SIGNUP_NO_BILLING_INFO = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_NO_BILLING_INFO")
1648
+ INCOMPLETE_SIGNUP_USER_INFO_MISSING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_MISSING")
1649
+ INCOMPLETE_SIGNUP_USER_INFO_PENDING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_PENDING")
1650
+ INCOMPLETE_SIGNUP_USER_INFO_REJECTED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_REJECTED")
1651
+ INVALID_TOKEN_HEADER = QuotaCheckErrorReason.new("INVALID_TOKEN_HEADER")
1652
+ MONTHLY_BUDGET_REACHED = QuotaCheckErrorReason.new("MONTHLY_BUDGET_REACHED")
1653
+ QUOTA_EXCEEDED = QuotaCheckErrorReason.new("QUOTA_EXCEEDED")
1654
+ end
1655
+
1656
+ # RangeError.Reason
1657
+ class RangeErrorReason < ::String
1658
+ TOO_HIGH = RangeErrorReason.new("TOO_HIGH")
1659
+ TOO_LOW = RangeErrorReason.new("TOO_LOW")
1660
+ end
1661
+
1662
+ # RateExceededError.Reason
1663
+ class RateExceededErrorReason < ::String
1664
+ RATE_EXCEEDED = RateExceededErrorReason.new("RATE_EXCEEDED")
1665
+ end
1666
+
1667
+ # ReadOnlyError.Reason
1668
+ class ReadOnlyErrorReason < ::String
1669
+ READ_ONLY = ReadOnlyErrorReason.new("READ_ONLY")
1670
+ end
1671
+
1672
+ # RegionCodeError.Reason
1673
+ class RegionCodeErrorReason < ::String
1674
+ INVALID_REGION_CODE = RegionCodeErrorReason.new("INVALID_REGION_CODE")
1675
+ end
1676
+
1677
+ # RejectedError.Reason
1678
+ class RejectedErrorReason < ::String
1679
+ UNKNOWN_VALUE = RejectedErrorReason.new("UNKNOWN_VALUE")
1680
+ end
1681
+
1682
+ # RequestError.Reason
1683
+ class RequestErrorReason < ::String
1684
+ INVALID_INPUT = RequestErrorReason.new("INVALID_INPUT")
1685
+ UNKNOWN = RequestErrorReason.new("UNKNOWN")
1686
+ end
1687
+
1688
+ # RequiredError.Reason
1689
+ class RequiredErrorReason < ::String
1690
+ REQUIRED = RequiredErrorReason.new("REQUIRED")
1691
+ end
1692
+
1693
+ # SizeLimitError.Reason
1694
+ class SizeLimitErrorReason < ::String
1695
+ REQUEST_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("REQUEST_SIZE_LIMIT_EXCEEDED")
1696
+ RESPONSE_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("RESPONSE_SIZE_LIMIT_EXCEEDED")
1697
+ UNKNOWN = SizeLimitErrorReason.new("UNKNOWN")
1698
+ end
1699
+
1700
+ # StringLengthError.Reason
1701
+ class StringLengthErrorReason < ::String
1702
+ TOO_LONG = StringLengthErrorReason.new("TOO_LONG")
1703
+ TOO_SHORT = StringLengthErrorReason.new("TOO_SHORT")
1704
+ end
1705
+
1706
+ # TargetError.Reason
1707
+ class TargetErrorReason < ::String
1708
+ AD_SCHEDULE_ADVANCED_INCOMPATIBLE_WITH_CONVERSION_OPTIMIZER = TargetErrorReason.new("AD_SCHEDULE_ADVANCED_INCOMPATIBLE_WITH_CONVERSION_OPTIMIZER")
1709
+ AD_SCHEDULE_BID_MULTIPLIER_MALFORMED = TargetErrorReason.new("AD_SCHEDULE_BID_MULTIPLIER_MALFORMED")
1710
+ AD_SCHEDULE_BID_MULTIPLIER_TOO_BIG = TargetErrorReason.new("AD_SCHEDULE_BID_MULTIPLIER_TOO_BIG")
1711
+ AD_SCHEDULE_BID_MULTIPLIER_TOO_MANY_FRACTION_DIGITS = TargetErrorReason.new("AD_SCHEDULE_BID_MULTIPLIER_TOO_MANY_FRACTION_DIGITS")
1712
+ AD_SCHEDULE_BID_MULTIPLIER_TOO_SMALL = TargetErrorReason.new("AD_SCHEDULE_BID_MULTIPLIER_TOO_SMALL")
1713
+ AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT = TargetErrorReason.new("AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT")
1714
+ AD_SCHEDULE_EXCEEDS_PAST_END_OF_WEEK = TargetErrorReason.new("AD_SCHEDULE_EXCEEDS_PAST_END_OF_WEEK")
1715
+ AD_SCHEDULE_INCOMPATIBILITY = TargetErrorReason.new("AD_SCHEDULE_INCOMPATIBILITY")
1716
+ AD_SCHEDULE_INCOMPATIBLE_WITH_BUDGET_OPTIMIZER = TargetErrorReason.new("AD_SCHEDULE_INCOMPATIBLE_WITH_BUDGET_OPTIMIZER")
1717
+ AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS = TargetErrorReason.new("AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS")
1718
+ AD_SCHEDULE_INVALID_DAY_OF_THE_WEEK = TargetErrorReason.new("AD_SCHEDULE_INVALID_DAY_OF_THE_WEEK")
1719
+ AD_SCHEDULE_INVALID_TIME_INTERVAL = TargetErrorReason.new("AD_SCHEDULE_INVALID_TIME_INTERVAL")
1720
+ AD_SCHEDULE_NOT_MULTIPLE_OF_15_MINUTES = TargetErrorReason.new("AD_SCHEDULE_NOT_MULTIPLE_OF_15_MINUTES")
1721
+ AD_SCHEDULE_NO_INTERVALS_WHILE_ENABLED = TargetErrorReason.new("AD_SCHEDULE_NO_INTERVALS_WHILE_ENABLED")
1722
+ AD_SCHEDULE_TIME_INTERVALS_OVERLAP = TargetErrorReason.new("AD_SCHEDULE_TIME_INTERVALS_OVERLAP")
1723
+ CANNOT_EXCLUDE_CITY = TargetErrorReason.new("CANNOT_EXCLUDE_CITY")
1724
+ CANNOT_EXCLUDE_IF_NOT_TARGETED = TargetErrorReason.new("CANNOT_EXCLUDE_IF_NOT_TARGETED")
1725
+ CANNOT_EXCLUDE_METRO = TargetErrorReason.new("CANNOT_EXCLUDE_METRO")
1726
+ CANNOT_EXCLUDE_PROVINCE = TargetErrorReason.new("CANNOT_EXCLUDE_PROVINCE")
1727
+ CANNOT_OPT_OUT_GOOGLE_SEARCH_WHILE_BID_TO_POSITION_ENABLE = TargetErrorReason.new("CANNOT_OPT_OUT_GOOGLE_SEARCH_WHILE_BID_TO_POSITION_ENABLE")
1728
+ CANNOT_TARGET_AGE_WITHOUT_GENDER = TargetErrorReason.new("CANNOT_TARGET_AGE_WITHOUT_GENDER")
1729
+ CANNOT_TARGET_CITY = TargetErrorReason.new("CANNOT_TARGET_CITY")
1730
+ CANNOT_TARGET_CONTENT_CONTEXTUAL_WITHOUT_CONTENT_NETWORK = TargetErrorReason.new("CANNOT_TARGET_CONTENT_CONTEXTUAL_WITHOUT_CONTENT_NETWORK")
1731
+ CANNOT_TARGET_COUNTRY = TargetErrorReason.new("CANNOT_TARGET_COUNTRY")
1732
+ CANNOT_TARGET_COVERAGE = TargetErrorReason.new("CANNOT_TARGET_COVERAGE")
1733
+ CANNOT_TARGET_GENDER_WITHOUT_AGE = TargetErrorReason.new("CANNOT_TARGET_GENDER_WITHOUT_AGE")
1734
+ CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN = TargetErrorReason.new("CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN")
1735
+ CANNOT_TARGET_LANGUAGE = TargetErrorReason.new("CANNOT_TARGET_LANGUAGE")
1736
+ CANNOT_TARGET_METRO = TargetErrorReason.new("CANNOT_TARGET_METRO")
1737
+ CANNOT_TARGET_MOBILE_CARRIER = TargetErrorReason.new("CANNOT_TARGET_MOBILE_CARRIER")
1738
+ CANNOT_TARGET_PROVINCE = TargetErrorReason.new("CANNOT_TARGET_PROVINCE")
1739
+ CANNOT_TARGET_SEARCH_SYNDICATION_WITHOUT_GOOGLE_SEARCH = TargetErrorReason.new("CANNOT_TARGET_SEARCH_SYNDICATION_WITHOUT_GOOGLE_SEARCH")
1740
+ CANNOT_TARGET_SYNDICATABLE_TYPES = TargetErrorReason.new("CANNOT_TARGET_SYNDICATABLE_TYPES")
1741
+ CANNOT_TARGET_THE_SAME_TARGET_LIST_TYPE_MULTIPLE_TIMES = TargetErrorReason.new("CANNOT_TARGET_THE_SAME_TARGET_LIST_TYPE_MULTIPLE_TIMES")
1742
+ DEMOGRAPHIC_BID_MODIFIER_SHOULD_BE_IN_BETWEEN_0_AND_500 = TargetErrorReason.new("DEMOGRAPHIC_BID_MODIFIER_SHOULD_BE_IN_BETWEEN_0_AND_500")
1743
+ INVALID_CITYNAME_LENGTH = TargetErrorReason.new("INVALID_CITYNAME_LENGTH")
1744
+ INVALID_CITY_CODE = TargetErrorReason.new("INVALID_CITY_CODE")
1745
+ INVALID_EXCLUDED_POLYGON_TARGET = TargetErrorReason.new("INVALID_EXCLUDED_POLYGON_TARGET")
1746
+ INVALID_EXCLUDED_PROXIMITY_TARGET = TargetErrorReason.new("INVALID_EXCLUDED_PROXIMITY_TARGET")
1747
+ INVALID_LANGUAGE_CODE = TargetErrorReason.new("INVALID_LANGUAGE_CODE")
1748
+ INVALID_LATITUDE = TargetErrorReason.new("INVALID_LATITUDE")
1749
+ INVALID_LONGITUDE = TargetErrorReason.new("INVALID_LONGITUDE")
1750
+ INVALID_METRO_CODE = TargetErrorReason.new("INVALID_METRO_CODE")
1751
+ INVALID_MOBILE_CARRIER = TargetErrorReason.new("INVALID_MOBILE_CARRIER")
1752
+ INVALID_MOBILE_PLATFORM = TargetErrorReason.new("INVALID_MOBILE_PLATFORM")
1753
+ INVALID_POSTALCODE_LENGTH = TargetErrorReason.new("INVALID_POSTALCODE_LENGTH")
1754
+ INVALID_PROVINCE_CODE = TargetErrorReason.new("INVALID_PROVINCE_CODE")
1755
+ INVALID_PROXIMITY_RADIUS = TargetErrorReason.new("INVALID_PROXIMITY_RADIUS")
1756
+ INVALID_REGIONCODE_LENGTH = TargetErrorReason.new("INVALID_REGIONCODE_LENGTH")
1757
+ INVALID_REGIONNAME_LENGTH = TargetErrorReason.new("INVALID_REGIONNAME_LENGTH")
1758
+ INVALID_STREETADDRESS_LENGTH = TargetErrorReason.new("INVALID_STREETADDRESS_LENGTH")
1759
+ MULTIPLE_OCCURRENCES_OF_SAME_TARGET = TargetErrorReason.new("MULTIPLE_OCCURRENCES_OF_SAME_TARGET")
1760
+ POLYGON_DUPLICATE_VERTICES = TargetErrorReason.new("POLYGON_DUPLICATE_VERTICES")
1761
+ POLYGON_EDGES_INTERSECT = TargetErrorReason.new("POLYGON_EDGES_INTERSECT")
1762
+ POLYGON_TOO_FEW_VERTICES = TargetErrorReason.new("POLYGON_TOO_FEW_VERTICES")
1763
+ POLYGON_TOO_LARGE = TargetErrorReason.new("POLYGON_TOO_LARGE")
1764
+ POLYGON_TOO_MANY_VERTICES = TargetErrorReason.new("POLYGON_TOO_MANY_VERTICES")
1765
+ TARGETING_CROSS_COUNTRY_REGIONAL = TargetErrorReason.new("TARGETING_CROSS_COUNTRY_REGIONAL")
1766
+ TARGETING_EXCLUSION_NOT_SUPPORTED = TargetErrorReason.new("TARGETING_EXCLUSION_NOT_SUPPORTED")
1767
+ TARGETING_INCOMPATIBLE_LOCATION_TYPES = TargetErrorReason.new("TARGETING_INCOMPATIBLE_LOCATION_TYPES")
1768
+ TARGETING_NOT_SUPPORTED = TargetErrorReason.new("TARGETING_NOT_SUPPORTED")
1769
+ TARGETING_TOO_MANY_REGIONS = TargetErrorReason.new("TARGETING_TOO_MANY_REGIONS")
1770
+ TARGETING_VALIDATION_FAILED = TargetErrorReason.new("TARGETING_VALIDATION_FAILED")
1771
+ TARGET_ERROR = TargetErrorReason.new("TARGET_ERROR")
1772
+ TARGET_IS_ENCLOSED_BY_ANOTHER_TARGET = TargetErrorReason.new("TARGET_IS_ENCLOSED_BY_ANOTHER_TARGET")
1773
+ TARGET_IS_EXCLUDED_BY_ANOTHER_TARGET = TargetErrorReason.new("TARGET_IS_EXCLUDED_BY_ANOTHER_TARGET")
1774
+ TOO_MANY_EXCLUDED_LOCATIONS = TargetErrorReason.new("TOO_MANY_EXCLUDED_LOCATIONS")
1775
+ TOO_MANY_TARGETED_LOCATIONS = TargetErrorReason.new("TOO_MANY_TARGETED_LOCATIONS")
1776
+ WARNING_MAY_NOW_REQUIRE_CHINESE_APPROVAL = TargetErrorReason.new("WARNING_MAY_NOW_REQUIRE_CHINESE_APPROVAL")
1777
+ WARNING_NOW_REQUIRES_CHINESE_APPROVAL = TargetErrorReason.new("WARNING_NOW_REQUIRES_CHINESE_APPROVAL")
1778
+ WARNING_NOW_TARGETS_CHINA = TargetErrorReason.new("WARNING_NOW_TARGETS_CHINA")
1779
+ WARNING_NOW_TARGETS_CHINESE = TargetErrorReason.new("WARNING_NOW_TARGETS_CHINESE")
1780
+ end
1781
+
1782
+ # CriterionUserList.MembershipStatus
1783
+ class CriterionUserListMembershipStatus < ::String
1784
+ CLOSED = CriterionUserListMembershipStatus.new("CLOSED")
1785
+ OPEN = CriterionUserListMembershipStatus.new("OPEN")
1786
+ end
1787
+
1788
+ # CollectionSizeError.Reason
1789
+ class CollectionSizeErrorReason < ::String
1790
+ TOO_FEW = CollectionSizeErrorReason.new("TOO_FEW")
1791
+ TOO_MANY = CollectionSizeErrorReason.new("TOO_MANY")
1792
+ end
1793
+
1794
+ # CurrencyCodeError.Reason
1795
+ class CurrencyCodeErrorReason < ::String
1796
+ UNSUPPORTED_CURRENCY_CODE = CurrencyCodeErrorReason.new("UNSUPPORTED_CURRENCY_CODE")
1797
+ end
1798
+
1799
+ # MatchesRegexError.Reason
1800
+ class MatchesRegexErrorReason < ::String
1801
+ DOES_NOT_MATCH = MatchesRegexErrorReason.new("DOES_NOT_MATCH")
1802
+ UNKNOWN = MatchesRegexErrorReason.new("UNKNOWN")
1803
+ end
1804
+
1805
+ # TrafficEstimatorError.Reason
1806
+ class TrafficEstimatorErrorReason < ::String
1807
+ INVALID_INPUT = TrafficEstimatorErrorReason.new("INVALID_INPUT")
1808
+ NO_AD_GROUP_FOR_KEYWORD_ESTIMATE_REQUEST = TrafficEstimatorErrorReason.new("NO_AD_GROUP_FOR_KEYWORD_ESTIMATE_REQUEST")
1809
+ NO_CAMPAIGN_FOR_AD_GROUP_ESTIMATE_REQUEST = TrafficEstimatorErrorReason.new("NO_CAMPAIGN_FOR_AD_GROUP_ESTIMATE_REQUEST")
1810
+ NO_MAX_CPC_FOR_KEYWORD_ESTIMATE_REQUEST = TrafficEstimatorErrorReason.new("NO_MAX_CPC_FOR_KEYWORD_ESTIMATE_REQUEST")
1811
+ SERVICE_UNAVAILABLE = TrafficEstimatorErrorReason.new("SERVICE_UNAVAILABLE")
1812
+ TOO_MANY_ADGROUP_ESTIMATE_REQUESTS = TrafficEstimatorErrorReason.new("TOO_MANY_ADGROUP_ESTIMATE_REQUESTS")
1813
+ TOO_MANY_CAMPAIGN_ESTIMATE_REQUESTS = TrafficEstimatorErrorReason.new("TOO_MANY_CAMPAIGN_ESTIMATE_REQUESTS")
1814
+ TOO_MANY_KEYWORD_ESTIMATE_REQUESTS = TrafficEstimatorErrorReason.new("TOO_MANY_KEYWORD_ESTIMATE_REQUESTS")
1815
+ TOO_MANY_TARGETS = TrafficEstimatorErrorReason.new("TOO_MANY_TARGETS")
1816
+ end
1817
+
1818
+ # get
1819
+ # - selector - AdwordsApi::V201101::TrafficEstimatorService::TrafficEstimatorSelector
1820
+ class Get #:nodoc: all
1821
+ attr_accessor :selector
1822
+
1823
+ def initialize(selector = nil)
1824
+ @selector = selector
1825
+ end
1826
+ end
1827
+
1828
+ # getResponse
1829
+ # - rval - AdwordsApi::V201101::TrafficEstimatorService::TrafficEstimatorResult
1830
+ class GetResponse #:nodoc: all
1831
+ attr_accessor :rval
1832
+
1833
+ def initialize(rval = nil)
1834
+ @rval = rval
1835
+ end
1836
+ end
1837
+
1838
+
1839
+ end; end; end