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/v201008/TargetingIdeaServiceDriver.rb'
4
+
5
+ module AdwordsApi
6
+ module V201008
7
+ module TargetingIdeaService
8
+
9
+ # Wrapper class for the v201008 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::V201008::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/v201008'
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::V201008::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::V201008::TargetingIdeaService
51
+ @version = :v201008
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::V201008::\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/v201008/TargetingIdeaService.html#get] method of the TargetingIdeaService service.
272
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201008/TargetingIdeaService.html#get].
273
+ #
274
+ # Args:
275
+ # - selector: AdwordsApi::V201008::TargetingIdeaService::TargetingIdeaSelector
276
+ #
277
+ # Returns:
278
+ # - rval: AdwordsApi::V201008::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::V201008::TargetingIdeaService::TargetingIdeaSelector)
287
+ arg_array << convert_to_object(selector, AdwordsApi::V201008::TargetingIdeaService::Get,
288
+ 'selector')
289
+ # Construct request object and make API call
290
+ obj = AdwordsApi::V201008::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/v201008/TargetingIdeaService.html#getBulkKeywordIdeas] method of the TargetingIdeaService service.
301
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201008/TargetingIdeaService.html#getBulkKeywordIdeas].
302
+ #
303
+ # Args:
304
+ # - selector: AdwordsApi::V201008::TargetingIdeaService::TargetingIdeaSelector
305
+ #
306
+ # Returns:
307
+ # - rval: AdwordsApi::V201008::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::V201008::TargetingIdeaService::TargetingIdeaSelector)
316
+ arg_array << convert_to_object(selector, AdwordsApi::V201008::TargetingIdeaService::GetBulkKeywordIdeas,
317
+ 'selector')
318
+ # Construct request object and make API call
319
+ obj = AdwordsApi::V201008::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,1833 @@
1
+ require 'xsd/qname'
2
+
3
+ module AdwordsApi; module V201008; 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::V201008::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::V201008::TrafficEstimatorService::DayOfWeek
192
+ # - startHour - SOAP::SOAPInt
193
+ # - startMinute - AdwordsApi::V201008::TrafficEstimatorService::MinuteOfHour
194
+ # - endHour - SOAP::SOAPInt
195
+ # - endMinute - AdwordsApi::V201008::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
+ # NetworkTarget
271
+ # - target_Type - SOAP::SOAPString
272
+ # - networkCoverageType - AdwordsApi::V201008::TrafficEstimatorService::NetworkCoverageType
273
+ class NetworkTarget < Target
274
+ attr_accessor :target_Type
275
+ attr_accessor :networkCoverageType
276
+
277
+ def initialize(target_Type = nil, networkCoverageType = nil)
278
+ @target_Type = target_Type
279
+ @networkCoverageType = networkCoverageType
280
+ end
281
+ end
282
+
283
+ # PlatformTarget
284
+ # - target_Type - SOAP::SOAPString
285
+ # - platformType - AdwordsApi::V201008::TrafficEstimatorService::PlatformType
286
+ class PlatformTarget < Target
287
+ attr_accessor :target_Type
288
+ attr_accessor :platformType
289
+
290
+ def initialize(target_Type = nil, platformType = nil)
291
+ @target_Type = target_Type
292
+ @platformType = platformType
293
+ end
294
+ end
295
+
296
+ # DemographicTarget
297
+ # abstract
298
+ # - target_Type - SOAP::SOAPString
299
+ # - bidModifier - SOAP::SOAPInt
300
+ class DemographicTarget < Target
301
+ attr_accessor :target_Type
302
+ attr_accessor :bidModifier
303
+
304
+ def initialize(target_Type = nil, bidModifier = nil)
305
+ @target_Type = target_Type
306
+ @bidModifier = bidModifier
307
+ end
308
+ end
309
+
310
+ # AgeTarget
311
+ # - target_Type - SOAP::SOAPString
312
+ # - bidModifier - SOAP::SOAPInt
313
+ # - age - AdwordsApi::V201008::TrafficEstimatorService::AgeTargetAge
314
+ class AgeTarget < DemographicTarget
315
+ attr_accessor :target_Type
316
+ attr_accessor :bidModifier
317
+ attr_accessor :age
318
+
319
+ def initialize(target_Type = nil, bidModifier = nil, age = nil)
320
+ @target_Type = target_Type
321
+ @bidModifier = bidModifier
322
+ @age = age
323
+ end
324
+ end
325
+
326
+ # GenderTarget
327
+ # - target_Type - SOAP::SOAPString
328
+ # - bidModifier - SOAP::SOAPInt
329
+ # - gender - AdwordsApi::V201008::TrafficEstimatorService::GenderTargetGender
330
+ class GenderTarget < DemographicTarget
331
+ attr_accessor :target_Type
332
+ attr_accessor :bidModifier
333
+ attr_accessor :gender
334
+
335
+ def initialize(target_Type = nil, bidModifier = nil, gender = nil)
336
+ @target_Type = target_Type
337
+ @bidModifier = bidModifier
338
+ @gender = gender
339
+ end
340
+ end
341
+
342
+ # GeoTarget
343
+ # abstract
344
+ # - target_Type - SOAP::SOAPString
345
+ # - excluded - SOAP::SOAPBoolean
346
+ class GeoTarget < Target
347
+ attr_accessor :target_Type
348
+ attr_accessor :excluded
349
+
350
+ def initialize(target_Type = nil, excluded = nil)
351
+ @target_Type = target_Type
352
+ @excluded = excluded
353
+ end
354
+ end
355
+
356
+ # CityTarget
357
+ # - target_Type - SOAP::SOAPString
358
+ # - excluded - SOAP::SOAPBoolean
359
+ # - cityName - SOAP::SOAPString
360
+ # - provinceCode - SOAP::SOAPString
361
+ # - countryCode - SOAP::SOAPString
362
+ class CityTarget < GeoTarget
363
+ attr_accessor :target_Type
364
+ attr_accessor :excluded
365
+ attr_accessor :cityName
366
+ attr_accessor :provinceCode
367
+ attr_accessor :countryCode
368
+
369
+ def initialize(target_Type = nil, excluded = nil, cityName = nil, provinceCode = nil, countryCode = nil)
370
+ @target_Type = target_Type
371
+ @excluded = excluded
372
+ @cityName = cityName
373
+ @provinceCode = provinceCode
374
+ @countryCode = countryCode
375
+ end
376
+ end
377
+
378
+ # CountryTarget
379
+ # - target_Type - SOAP::SOAPString
380
+ # - excluded - SOAP::SOAPBoolean
381
+ # - countryCode - SOAP::SOAPString
382
+ class CountryTarget < GeoTarget
383
+ attr_accessor :target_Type
384
+ attr_accessor :excluded
385
+ attr_accessor :countryCode
386
+
387
+ def initialize(target_Type = nil, excluded = nil, countryCode = nil)
388
+ @target_Type = target_Type
389
+ @excluded = excluded
390
+ @countryCode = countryCode
391
+ end
392
+ end
393
+
394
+ # MetroTarget
395
+ # - target_Type - SOAP::SOAPString
396
+ # - excluded - SOAP::SOAPBoolean
397
+ # - metroCode - SOAP::SOAPString
398
+ class MetroTarget < GeoTarget
399
+ attr_accessor :target_Type
400
+ attr_accessor :excluded
401
+ attr_accessor :metroCode
402
+
403
+ def initialize(target_Type = nil, excluded = nil, metroCode = nil)
404
+ @target_Type = target_Type
405
+ @excluded = excluded
406
+ @metroCode = metroCode
407
+ end
408
+ end
409
+
410
+ # PolygonTarget
411
+ # - target_Type - SOAP::SOAPString
412
+ # - excluded - SOAP::SOAPBoolean
413
+ # - vertices - AdwordsApi::V201008::TrafficEstimatorService::GeoPoint
414
+ class PolygonTarget < GeoTarget
415
+ attr_accessor :target_Type
416
+ attr_accessor :excluded
417
+ attr_accessor :vertices
418
+
419
+ def initialize(target_Type = nil, excluded = nil, vertices = [])
420
+ @target_Type = target_Type
421
+ @excluded = excluded
422
+ @vertices = vertices
423
+ end
424
+ end
425
+
426
+ # ProvinceTarget
427
+ # - target_Type - SOAP::SOAPString
428
+ # - excluded - SOAP::SOAPBoolean
429
+ # - provinceCode - SOAP::SOAPString
430
+ class ProvinceTarget < GeoTarget
431
+ attr_accessor :target_Type
432
+ attr_accessor :excluded
433
+ attr_accessor :provinceCode
434
+
435
+ def initialize(target_Type = nil, excluded = nil, provinceCode = nil)
436
+ @target_Type = target_Type
437
+ @excluded = excluded
438
+ @provinceCode = provinceCode
439
+ end
440
+ end
441
+
442
+ # ProximityTarget
443
+ # - target_Type - SOAP::SOAPString
444
+ # - excluded - SOAP::SOAPBoolean
445
+ # - geoPoint - AdwordsApi::V201008::TrafficEstimatorService::GeoPoint
446
+ # - radiusDistanceUnits - AdwordsApi::V201008::TrafficEstimatorService::ProximityTargetDistanceUnits
447
+ # - radiusInUnits - SOAP::SOAPDouble
448
+ # - address - AdwordsApi::V201008::TrafficEstimatorService::Address
449
+ # - allowServiceOfAddress - SOAP::SOAPBoolean
450
+ class ProximityTarget < GeoTarget
451
+ attr_accessor :target_Type
452
+ attr_accessor :excluded
453
+ attr_accessor :geoPoint
454
+ attr_accessor :radiusDistanceUnits
455
+ attr_accessor :radiusInUnits
456
+ attr_accessor :address
457
+ attr_accessor :allowServiceOfAddress
458
+
459
+ def initialize(target_Type = nil, excluded = nil, geoPoint = nil, radiusDistanceUnits = nil, radiusInUnits = nil, address = nil, allowServiceOfAddress = nil)
460
+ @target_Type = target_Type
461
+ @excluded = excluded
462
+ @geoPoint = geoPoint
463
+ @radiusDistanceUnits = radiusDistanceUnits
464
+ @radiusInUnits = radiusInUnits
465
+ @address = address
466
+ @allowServiceOfAddress = allowServiceOfAddress
467
+ end
468
+ end
469
+
470
+ # ApiError
471
+ # abstract
472
+ # - fieldPath - SOAP::SOAPString
473
+ # - trigger - SOAP::SOAPString
474
+ # - errorString - SOAP::SOAPString
475
+ # - apiError_Type - SOAP::SOAPString
476
+ class ApiError
477
+ attr_accessor :fieldPath
478
+ attr_accessor :trigger
479
+ attr_accessor :errorString
480
+ attr_accessor :apiError_Type
481
+
482
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil)
483
+ @fieldPath = fieldPath
484
+ @trigger = trigger
485
+ @errorString = errorString
486
+ @apiError_Type = apiError_Type
487
+ end
488
+ end
489
+
490
+ # AuthenticationError
491
+ # - fieldPath - SOAP::SOAPString
492
+ # - trigger - SOAP::SOAPString
493
+ # - errorString - SOAP::SOAPString
494
+ # - apiError_Type - SOAP::SOAPString
495
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::AuthenticationErrorReason
496
+ class AuthenticationError < ApiError
497
+ attr_accessor :fieldPath
498
+ attr_accessor :trigger
499
+ attr_accessor :errorString
500
+ attr_accessor :apiError_Type
501
+ attr_accessor :reason
502
+
503
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
504
+ @fieldPath = fieldPath
505
+ @trigger = trigger
506
+ @errorString = errorString
507
+ @apiError_Type = apiError_Type
508
+ @reason = reason
509
+ end
510
+ end
511
+
512
+ # AuthorizationError
513
+ # - fieldPath - SOAP::SOAPString
514
+ # - trigger - SOAP::SOAPString
515
+ # - errorString - SOAP::SOAPString
516
+ # - apiError_Type - SOAP::SOAPString
517
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::AuthorizationErrorReason
518
+ class AuthorizationError < ApiError
519
+ attr_accessor :fieldPath
520
+ attr_accessor :trigger
521
+ attr_accessor :errorString
522
+ attr_accessor :apiError_Type
523
+ attr_accessor :reason
524
+
525
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
526
+ @fieldPath = fieldPath
527
+ @trigger = trigger
528
+ @errorString = errorString
529
+ @apiError_Type = apiError_Type
530
+ @reason = reason
531
+ end
532
+ end
533
+
534
+ # ClientTermsError
535
+ # - fieldPath - SOAP::SOAPString
536
+ # - trigger - SOAP::SOAPString
537
+ # - errorString - SOAP::SOAPString
538
+ # - apiError_Type - SOAP::SOAPString
539
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::ClientTermsErrorReason
540
+ class ClientTermsError < ApiError
541
+ attr_accessor :fieldPath
542
+ attr_accessor :trigger
543
+ attr_accessor :errorString
544
+ attr_accessor :apiError_Type
545
+ attr_accessor :reason
546
+
547
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
548
+ @fieldPath = fieldPath
549
+ @trigger = trigger
550
+ @errorString = errorString
551
+ @apiError_Type = apiError_Type
552
+ @reason = reason
553
+ end
554
+ end
555
+
556
+ # DateError
557
+ # - fieldPath - SOAP::SOAPString
558
+ # - trigger - SOAP::SOAPString
559
+ # - errorString - SOAP::SOAPString
560
+ # - apiError_Type - SOAP::SOAPString
561
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::DateErrorReason
562
+ class DateError < ApiError
563
+ attr_accessor :fieldPath
564
+ attr_accessor :trigger
565
+ attr_accessor :errorString
566
+ attr_accessor :apiError_Type
567
+ attr_accessor :reason
568
+
569
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
570
+ @fieldPath = fieldPath
571
+ @trigger = trigger
572
+ @errorString = errorString
573
+ @apiError_Type = apiError_Type
574
+ @reason = reason
575
+ end
576
+ end
577
+
578
+ # DistinctError
579
+ # - fieldPath - SOAP::SOAPString
580
+ # - trigger - SOAP::SOAPString
581
+ # - errorString - SOAP::SOAPString
582
+ # - apiError_Type - SOAP::SOAPString
583
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::DistinctErrorReason
584
+ class DistinctError < ApiError
585
+ attr_accessor :fieldPath
586
+ attr_accessor :trigger
587
+ attr_accessor :errorString
588
+ attr_accessor :apiError_Type
589
+ attr_accessor :reason
590
+
591
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
592
+ @fieldPath = fieldPath
593
+ @trigger = trigger
594
+ @errorString = errorString
595
+ @apiError_Type = apiError_Type
596
+ @reason = reason
597
+ end
598
+ end
599
+
600
+ # EntityAccessDenied
601
+ # - fieldPath - SOAP::SOAPString
602
+ # - trigger - SOAP::SOAPString
603
+ # - errorString - SOAP::SOAPString
604
+ # - apiError_Type - SOAP::SOAPString
605
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::EntityAccessDeniedReason
606
+ class EntityAccessDenied < ApiError
607
+ attr_accessor :fieldPath
608
+ attr_accessor :trigger
609
+ attr_accessor :errorString
610
+ attr_accessor :apiError_Type
611
+ attr_accessor :reason
612
+
613
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
614
+ @fieldPath = fieldPath
615
+ @trigger = trigger
616
+ @errorString = errorString
617
+ @apiError_Type = apiError_Type
618
+ @reason = reason
619
+ end
620
+ end
621
+
622
+ # EntityNotFound
623
+ # - fieldPath - SOAP::SOAPString
624
+ # - trigger - SOAP::SOAPString
625
+ # - errorString - SOAP::SOAPString
626
+ # - apiError_Type - SOAP::SOAPString
627
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::EntityNotFoundReason
628
+ class EntityNotFound < ApiError
629
+ attr_accessor :fieldPath
630
+ attr_accessor :trigger
631
+ attr_accessor :errorString
632
+ attr_accessor :apiError_Type
633
+ attr_accessor :reason
634
+
635
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
636
+ @fieldPath = fieldPath
637
+ @trigger = trigger
638
+ @errorString = errorString
639
+ @apiError_Type = apiError_Type
640
+ @reason = reason
641
+ end
642
+ end
643
+
644
+ # IdError
645
+ # - fieldPath - SOAP::SOAPString
646
+ # - trigger - SOAP::SOAPString
647
+ # - errorString - SOAP::SOAPString
648
+ # - apiError_Type - SOAP::SOAPString
649
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::IdErrorReason
650
+ class IdError < ApiError
651
+ attr_accessor :fieldPath
652
+ attr_accessor :trigger
653
+ attr_accessor :errorString
654
+ attr_accessor :apiError_Type
655
+ attr_accessor :reason
656
+
657
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
658
+ @fieldPath = fieldPath
659
+ @trigger = trigger
660
+ @errorString = errorString
661
+ @apiError_Type = apiError_Type
662
+ @reason = reason
663
+ end
664
+ end
665
+
666
+ # InternalApiError
667
+ # - fieldPath - SOAP::SOAPString
668
+ # - trigger - SOAP::SOAPString
669
+ # - errorString - SOAP::SOAPString
670
+ # - apiError_Type - SOAP::SOAPString
671
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::InternalApiErrorReason
672
+ class InternalApiError < ApiError
673
+ attr_accessor :fieldPath
674
+ attr_accessor :trigger
675
+ attr_accessor :errorString
676
+ attr_accessor :apiError_Type
677
+ attr_accessor :reason
678
+
679
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
680
+ @fieldPath = fieldPath
681
+ @trigger = trigger
682
+ @errorString = errorString
683
+ @apiError_Type = apiError_Type
684
+ @reason = reason
685
+ end
686
+ end
687
+
688
+ # NotEmptyError
689
+ # - fieldPath - SOAP::SOAPString
690
+ # - trigger - SOAP::SOAPString
691
+ # - errorString - SOAP::SOAPString
692
+ # - apiError_Type - SOAP::SOAPString
693
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::NotEmptyErrorReason
694
+ class NotEmptyError < ApiError
695
+ attr_accessor :fieldPath
696
+ attr_accessor :trigger
697
+ attr_accessor :errorString
698
+ attr_accessor :apiError_Type
699
+ attr_accessor :reason
700
+
701
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
702
+ @fieldPath = fieldPath
703
+ @trigger = trigger
704
+ @errorString = errorString
705
+ @apiError_Type = apiError_Type
706
+ @reason = reason
707
+ end
708
+ end
709
+
710
+ # NotWhitelistedError
711
+ # - fieldPath - SOAP::SOAPString
712
+ # - trigger - SOAP::SOAPString
713
+ # - errorString - SOAP::SOAPString
714
+ # - apiError_Type - SOAP::SOAPString
715
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::NotWhitelistedErrorReason
716
+ class NotWhitelistedError < ApiError
717
+ attr_accessor :fieldPath
718
+ attr_accessor :trigger
719
+ attr_accessor :errorString
720
+ attr_accessor :apiError_Type
721
+ attr_accessor :reason
722
+
723
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
724
+ @fieldPath = fieldPath
725
+ @trigger = trigger
726
+ @errorString = errorString
727
+ @apiError_Type = apiError_Type
728
+ @reason = reason
729
+ end
730
+ end
731
+
732
+ # NullError
733
+ # - fieldPath - SOAP::SOAPString
734
+ # - trigger - SOAP::SOAPString
735
+ # - errorString - SOAP::SOAPString
736
+ # - apiError_Type - SOAP::SOAPString
737
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::NullErrorReason
738
+ class NullError < ApiError
739
+ attr_accessor :fieldPath
740
+ attr_accessor :trigger
741
+ attr_accessor :errorString
742
+ attr_accessor :apiError_Type
743
+ attr_accessor :reason
744
+
745
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
746
+ @fieldPath = fieldPath
747
+ @trigger = trigger
748
+ @errorString = errorString
749
+ @apiError_Type = apiError_Type
750
+ @reason = reason
751
+ end
752
+ end
753
+
754
+ # OperationAccessDenied
755
+ # - fieldPath - SOAP::SOAPString
756
+ # - trigger - SOAP::SOAPString
757
+ # - errorString - SOAP::SOAPString
758
+ # - apiError_Type - SOAP::SOAPString
759
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::OperationAccessDeniedReason
760
+ class OperationAccessDenied < ApiError
761
+ attr_accessor :fieldPath
762
+ attr_accessor :trigger
763
+ attr_accessor :errorString
764
+ attr_accessor :apiError_Type
765
+ attr_accessor :reason
766
+
767
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
768
+ @fieldPath = fieldPath
769
+ @trigger = trigger
770
+ @errorString = errorString
771
+ @apiError_Type = apiError_Type
772
+ @reason = reason
773
+ end
774
+ end
775
+
776
+ # OperatorError
777
+ # - fieldPath - SOAP::SOAPString
778
+ # - trigger - SOAP::SOAPString
779
+ # - errorString - SOAP::SOAPString
780
+ # - apiError_Type - SOAP::SOAPString
781
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::OperatorErrorReason
782
+ class OperatorError < ApiError
783
+ attr_accessor :fieldPath
784
+ attr_accessor :trigger
785
+ attr_accessor :errorString
786
+ attr_accessor :apiError_Type
787
+ attr_accessor :reason
788
+
789
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
790
+ @fieldPath = fieldPath
791
+ @trigger = trigger
792
+ @errorString = errorString
793
+ @apiError_Type = apiError_Type
794
+ @reason = reason
795
+ end
796
+ end
797
+
798
+ # QuotaCheckError
799
+ # - fieldPath - SOAP::SOAPString
800
+ # - trigger - SOAP::SOAPString
801
+ # - errorString - SOAP::SOAPString
802
+ # - apiError_Type - SOAP::SOAPString
803
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::QuotaCheckErrorReason
804
+ class QuotaCheckError < ApiError
805
+ attr_accessor :fieldPath
806
+ attr_accessor :trigger
807
+ attr_accessor :errorString
808
+ attr_accessor :apiError_Type
809
+ attr_accessor :reason
810
+
811
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
812
+ @fieldPath = fieldPath
813
+ @trigger = trigger
814
+ @errorString = errorString
815
+ @apiError_Type = apiError_Type
816
+ @reason = reason
817
+ end
818
+ end
819
+
820
+ # RangeError
821
+ # - fieldPath - SOAP::SOAPString
822
+ # - trigger - SOAP::SOAPString
823
+ # - errorString - SOAP::SOAPString
824
+ # - apiError_Type - SOAP::SOAPString
825
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::RangeErrorReason
826
+ class C_RangeError < ApiError
827
+ attr_accessor :fieldPath
828
+ attr_accessor :trigger
829
+ attr_accessor :errorString
830
+ attr_accessor :apiError_Type
831
+ attr_accessor :reason
832
+
833
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
834
+ @fieldPath = fieldPath
835
+ @trigger = trigger
836
+ @errorString = errorString
837
+ @apiError_Type = apiError_Type
838
+ @reason = reason
839
+ end
840
+ end
841
+
842
+ # RateExceededError
843
+ # - fieldPath - SOAP::SOAPString
844
+ # - trigger - SOAP::SOAPString
845
+ # - errorString - SOAP::SOAPString
846
+ # - apiError_Type - SOAP::SOAPString
847
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::RateExceededErrorReason
848
+ # - rateName - SOAP::SOAPString
849
+ # - rateScope - SOAP::SOAPString
850
+ # - retryAfterSeconds - SOAP::SOAPInt
851
+ class RateExceededError < ApiError
852
+ attr_accessor :fieldPath
853
+ attr_accessor :trigger
854
+ attr_accessor :errorString
855
+ attr_accessor :apiError_Type
856
+ attr_accessor :reason
857
+ attr_accessor :rateName
858
+ attr_accessor :rateScope
859
+ attr_accessor :retryAfterSeconds
860
+
861
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, rateName = nil, rateScope = nil, retryAfterSeconds = nil)
862
+ @fieldPath = fieldPath
863
+ @trigger = trigger
864
+ @errorString = errorString
865
+ @apiError_Type = apiError_Type
866
+ @reason = reason
867
+ @rateName = rateName
868
+ @rateScope = rateScope
869
+ @retryAfterSeconds = retryAfterSeconds
870
+ end
871
+ end
872
+
873
+ # ReadOnlyError
874
+ # - fieldPath - SOAP::SOAPString
875
+ # - trigger - SOAP::SOAPString
876
+ # - errorString - SOAP::SOAPString
877
+ # - apiError_Type - SOAP::SOAPString
878
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::ReadOnlyErrorReason
879
+ class ReadOnlyError < ApiError
880
+ attr_accessor :fieldPath
881
+ attr_accessor :trigger
882
+ attr_accessor :errorString
883
+ attr_accessor :apiError_Type
884
+ attr_accessor :reason
885
+
886
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
887
+ @fieldPath = fieldPath
888
+ @trigger = trigger
889
+ @errorString = errorString
890
+ @apiError_Type = apiError_Type
891
+ @reason = reason
892
+ end
893
+ end
894
+
895
+ # RegionCodeError
896
+ # - fieldPath - SOAP::SOAPString
897
+ # - trigger - SOAP::SOAPString
898
+ # - errorString - SOAP::SOAPString
899
+ # - apiError_Type - SOAP::SOAPString
900
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::RegionCodeErrorReason
901
+ class RegionCodeError < ApiError
902
+ attr_accessor :fieldPath
903
+ attr_accessor :trigger
904
+ attr_accessor :errorString
905
+ attr_accessor :apiError_Type
906
+ attr_accessor :reason
907
+
908
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
909
+ @fieldPath = fieldPath
910
+ @trigger = trigger
911
+ @errorString = errorString
912
+ @apiError_Type = apiError_Type
913
+ @reason = reason
914
+ end
915
+ end
916
+
917
+ # RejectedError
918
+ # - fieldPath - SOAP::SOAPString
919
+ # - trigger - SOAP::SOAPString
920
+ # - errorString - SOAP::SOAPString
921
+ # - apiError_Type - SOAP::SOAPString
922
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::RejectedErrorReason
923
+ class RejectedError < ApiError
924
+ attr_accessor :fieldPath
925
+ attr_accessor :trigger
926
+ attr_accessor :errorString
927
+ attr_accessor :apiError_Type
928
+ attr_accessor :reason
929
+
930
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
931
+ @fieldPath = fieldPath
932
+ @trigger = trigger
933
+ @errorString = errorString
934
+ @apiError_Type = apiError_Type
935
+ @reason = reason
936
+ end
937
+ end
938
+
939
+ # RequestError
940
+ # - fieldPath - SOAP::SOAPString
941
+ # - trigger - SOAP::SOAPString
942
+ # - errorString - SOAP::SOAPString
943
+ # - apiError_Type - SOAP::SOAPString
944
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::RequestErrorReason
945
+ class RequestError < ApiError
946
+ attr_accessor :fieldPath
947
+ attr_accessor :trigger
948
+ attr_accessor :errorString
949
+ attr_accessor :apiError_Type
950
+ attr_accessor :reason
951
+
952
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
953
+ @fieldPath = fieldPath
954
+ @trigger = trigger
955
+ @errorString = errorString
956
+ @apiError_Type = apiError_Type
957
+ @reason = reason
958
+ end
959
+ end
960
+
961
+ # RequiredError
962
+ # - fieldPath - SOAP::SOAPString
963
+ # - trigger - SOAP::SOAPString
964
+ # - errorString - SOAP::SOAPString
965
+ # - apiError_Type - SOAP::SOAPString
966
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::RequiredErrorReason
967
+ class RequiredError < ApiError
968
+ attr_accessor :fieldPath
969
+ attr_accessor :trigger
970
+ attr_accessor :errorString
971
+ attr_accessor :apiError_Type
972
+ attr_accessor :reason
973
+
974
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
975
+ @fieldPath = fieldPath
976
+ @trigger = trigger
977
+ @errorString = errorString
978
+ @apiError_Type = apiError_Type
979
+ @reason = reason
980
+ end
981
+ end
982
+
983
+ # SizeLimitError
984
+ # - fieldPath - SOAP::SOAPString
985
+ # - trigger - SOAP::SOAPString
986
+ # - errorString - SOAP::SOAPString
987
+ # - apiError_Type - SOAP::SOAPString
988
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::SizeLimitErrorReason
989
+ class SizeLimitError < ApiError
990
+ attr_accessor :fieldPath
991
+ attr_accessor :trigger
992
+ attr_accessor :errorString
993
+ attr_accessor :apiError_Type
994
+ attr_accessor :reason
995
+
996
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
997
+ @fieldPath = fieldPath
998
+ @trigger = trigger
999
+ @errorString = errorString
1000
+ @apiError_Type = apiError_Type
1001
+ @reason = reason
1002
+ end
1003
+ end
1004
+
1005
+ # StringLengthError
1006
+ # - fieldPath - SOAP::SOAPString
1007
+ # - trigger - SOAP::SOAPString
1008
+ # - errorString - SOAP::SOAPString
1009
+ # - apiError_Type - SOAP::SOAPString
1010
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::StringLengthErrorReason
1011
+ class StringLengthError < ApiError
1012
+ attr_accessor :fieldPath
1013
+ attr_accessor :trigger
1014
+ attr_accessor :errorString
1015
+ attr_accessor :apiError_Type
1016
+ attr_accessor :reason
1017
+
1018
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1019
+ @fieldPath = fieldPath
1020
+ @trigger = trigger
1021
+ @errorString = errorString
1022
+ @apiError_Type = apiError_Type
1023
+ @reason = reason
1024
+ end
1025
+ end
1026
+
1027
+ # TargetError
1028
+ # - fieldPath - SOAP::SOAPString
1029
+ # - trigger - SOAP::SOAPString
1030
+ # - errorString - SOAP::SOAPString
1031
+ # - apiError_Type - SOAP::SOAPString
1032
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::TargetErrorReason
1033
+ class TargetError < ApiError
1034
+ attr_accessor :fieldPath
1035
+ attr_accessor :trigger
1036
+ attr_accessor :errorString
1037
+ attr_accessor :apiError_Type
1038
+ attr_accessor :reason
1039
+
1040
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1041
+ @fieldPath = fieldPath
1042
+ @trigger = trigger
1043
+ @errorString = errorString
1044
+ @apiError_Type = apiError_Type
1045
+ @reason = reason
1046
+ end
1047
+ end
1048
+
1049
+ # DatabaseError
1050
+ # - fieldPath - SOAP::SOAPString
1051
+ # - trigger - SOAP::SOAPString
1052
+ # - errorString - SOAP::SOAPString
1053
+ # - apiError_Type - SOAP::SOAPString
1054
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::DatabaseErrorReason
1055
+ class DatabaseError < ApiError
1056
+ attr_accessor :fieldPath
1057
+ attr_accessor :trigger
1058
+ attr_accessor :errorString
1059
+ attr_accessor :apiError_Type
1060
+ attr_accessor :reason
1061
+
1062
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1063
+ @fieldPath = fieldPath
1064
+ @trigger = trigger
1065
+ @errorString = errorString
1066
+ @apiError_Type = apiError_Type
1067
+ @reason = reason
1068
+ end
1069
+ end
1070
+
1071
+ # CollectionSizeError
1072
+ # - fieldPath - SOAP::SOAPString
1073
+ # - trigger - SOAP::SOAPString
1074
+ # - errorString - SOAP::SOAPString
1075
+ # - apiError_Type - SOAP::SOAPString
1076
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::CollectionSizeErrorReason
1077
+ class CollectionSizeError < ApiError
1078
+ attr_accessor :fieldPath
1079
+ attr_accessor :trigger
1080
+ attr_accessor :errorString
1081
+ attr_accessor :apiError_Type
1082
+ attr_accessor :reason
1083
+
1084
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1085
+ @fieldPath = fieldPath
1086
+ @trigger = trigger
1087
+ @errorString = errorString
1088
+ @apiError_Type = apiError_Type
1089
+ @reason = reason
1090
+ end
1091
+ end
1092
+
1093
+ # MatchesRegexError
1094
+ # - fieldPath - SOAP::SOAPString
1095
+ # - trigger - SOAP::SOAPString
1096
+ # - errorString - SOAP::SOAPString
1097
+ # - apiError_Type - SOAP::SOAPString
1098
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::MatchesRegexErrorReason
1099
+ class MatchesRegexError < ApiError
1100
+ attr_accessor :fieldPath
1101
+ attr_accessor :trigger
1102
+ attr_accessor :errorString
1103
+ attr_accessor :apiError_Type
1104
+ attr_accessor :reason
1105
+
1106
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1107
+ @fieldPath = fieldPath
1108
+ @trigger = trigger
1109
+ @errorString = errorString
1110
+ @apiError_Type = apiError_Type
1111
+ @reason = reason
1112
+ end
1113
+ end
1114
+
1115
+ # TrafficEstimatorError
1116
+ # - fieldPath - SOAP::SOAPString
1117
+ # - trigger - SOAP::SOAPString
1118
+ # - errorString - SOAP::SOAPString
1119
+ # - apiError_Type - SOAP::SOAPString
1120
+ # - reason - AdwordsApi::V201008::TrafficEstimatorService::TrafficEstimatorErrorReason
1121
+ class TrafficEstimatorError < ApiError
1122
+ attr_accessor :fieldPath
1123
+ attr_accessor :trigger
1124
+ attr_accessor :errorString
1125
+ attr_accessor :apiError_Type
1126
+ attr_accessor :reason
1127
+
1128
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1129
+ @fieldPath = fieldPath
1130
+ @trigger = trigger
1131
+ @errorString = errorString
1132
+ @apiError_Type = apiError_Type
1133
+ @reason = reason
1134
+ end
1135
+ end
1136
+
1137
+ # ApplicationException
1138
+ # - message - SOAP::SOAPString
1139
+ # - applicationException_Type - SOAP::SOAPString
1140
+ class ApplicationException
1141
+ attr_accessor :message
1142
+ attr_accessor :applicationException_Type
1143
+
1144
+ def initialize(message = nil, applicationException_Type = nil)
1145
+ @message = message
1146
+ @applicationException_Type = applicationException_Type
1147
+ end
1148
+ end
1149
+
1150
+ # ApiException
1151
+ # - message - SOAP::SOAPString
1152
+ # - applicationException_Type - SOAP::SOAPString
1153
+ # - errors - AdwordsApi::V201008::TrafficEstimatorService::ApiError
1154
+ class ApiException < ApplicationException
1155
+ attr_accessor :message
1156
+ attr_accessor :applicationException_Type
1157
+ attr_accessor :errors
1158
+
1159
+ def initialize(message = nil, applicationException_Type = nil, errors = [])
1160
+ @message = message
1161
+ @applicationException_Type = applicationException_Type
1162
+ @errors = errors
1163
+ end
1164
+ end
1165
+
1166
+ # Criterion
1167
+ # - id - SOAP::SOAPLong
1168
+ # - criterion_Type - SOAP::SOAPString
1169
+ class Criterion
1170
+ attr_accessor :id
1171
+ attr_accessor :criterion_Type
1172
+
1173
+ def initialize(id = nil, criterion_Type = nil)
1174
+ @id = id
1175
+ @criterion_Type = criterion_Type
1176
+ end
1177
+ end
1178
+
1179
+ # Keyword
1180
+ # - id - SOAP::SOAPLong
1181
+ # - criterion_Type - SOAP::SOAPString
1182
+ # - text - SOAP::SOAPString
1183
+ # - matchType - AdwordsApi::V201008::TrafficEstimatorService::KeywordMatchType
1184
+ class Keyword < Criterion
1185
+ attr_accessor :id
1186
+ attr_accessor :criterion_Type
1187
+ attr_accessor :text
1188
+ attr_accessor :matchType
1189
+
1190
+ def initialize(id = nil, criterion_Type = nil, text = nil, matchType = nil)
1191
+ @id = id
1192
+ @criterion_Type = criterion_Type
1193
+ @text = text
1194
+ @matchType = matchType
1195
+ end
1196
+ end
1197
+
1198
+ # Placement
1199
+ # - id - SOAP::SOAPLong
1200
+ # - criterion_Type - SOAP::SOAPString
1201
+ # - url - SOAP::SOAPString
1202
+ class Placement < Criterion
1203
+ attr_accessor :id
1204
+ attr_accessor :criterion_Type
1205
+ attr_accessor :url
1206
+
1207
+ def initialize(id = nil, criterion_Type = nil, url = nil)
1208
+ @id = id
1209
+ @criterion_Type = criterion_Type
1210
+ @url = url
1211
+ end
1212
+ end
1213
+
1214
+ # CriterionUserInterest
1215
+ # - id - SOAP::SOAPLong
1216
+ # - criterion_Type - SOAP::SOAPString
1217
+ # - userInterestId - SOAP::SOAPLong
1218
+ # - userInterestName - SOAP::SOAPString
1219
+ class CriterionUserInterest < Criterion
1220
+ attr_accessor :id
1221
+ attr_accessor :criterion_Type
1222
+ attr_accessor :userInterestId
1223
+ attr_accessor :userInterestName
1224
+
1225
+ def initialize(id = nil, criterion_Type = nil, userInterestId = nil, userInterestName = nil)
1226
+ @id = id
1227
+ @criterion_Type = criterion_Type
1228
+ @userInterestId = userInterestId
1229
+ @userInterestName = userInterestName
1230
+ end
1231
+ end
1232
+
1233
+ # CriterionUserList
1234
+ # - id - SOAP::SOAPLong
1235
+ # - criterion_Type - SOAP::SOAPString
1236
+ # - userListId - SOAP::SOAPLong
1237
+ # - userListName - SOAP::SOAPString
1238
+ # - userListMembershipStatus - AdwordsApi::V201008::TrafficEstimatorService::CriterionUserListMembershipStatus
1239
+ # - userListSize - SOAP::SOAPLong
1240
+ class CriterionUserList < Criterion
1241
+ attr_accessor :id
1242
+ attr_accessor :criterion_Type
1243
+ attr_accessor :userListId
1244
+ attr_accessor :userListName
1245
+ attr_accessor :userListMembershipStatus
1246
+ attr_accessor :userListSize
1247
+
1248
+ def initialize(id = nil, criterion_Type = nil, userListId = nil, userListName = nil, userListMembershipStatus = nil, userListSize = nil)
1249
+ @id = id
1250
+ @criterion_Type = criterion_Type
1251
+ @userListId = userListId
1252
+ @userListName = userListName
1253
+ @userListMembershipStatus = userListMembershipStatus
1254
+ @userListSize = userListSize
1255
+ end
1256
+ end
1257
+
1258
+ # Vertical
1259
+ # - id - SOAP::SOAPLong
1260
+ # - criterion_Type - SOAP::SOAPString
1261
+ # - path - SOAP::SOAPString
1262
+ class Vertical < Criterion
1263
+ attr_accessor :id
1264
+ attr_accessor :criterion_Type
1265
+ attr_accessor :path
1266
+
1267
+ def initialize(id = nil, criterion_Type = nil, path = [])
1268
+ @id = id
1269
+ @criterion_Type = criterion_Type
1270
+ @path = path
1271
+ end
1272
+ end
1273
+
1274
+ # Product
1275
+ # - id - SOAP::SOAPLong
1276
+ # - criterion_Type - SOAP::SOAPString
1277
+ # - conditions - AdwordsApi::V201008::TrafficEstimatorService::ProductCondition
1278
+ # - text - SOAP::SOAPString
1279
+ class Product < Criterion
1280
+ attr_accessor :id
1281
+ attr_accessor :criterion_Type
1282
+ attr_accessor :conditions
1283
+ attr_accessor :text
1284
+
1285
+ def initialize(id = nil, criterion_Type = nil, conditions = [], text = nil)
1286
+ @id = id
1287
+ @criterion_Type = criterion_Type
1288
+ @conditions = conditions
1289
+ @text = text
1290
+ end
1291
+ end
1292
+
1293
+ # Estimate
1294
+ # - estimate_Type - SOAP::SOAPString
1295
+ class Estimate
1296
+ attr_accessor :estimate_Type
1297
+
1298
+ def initialize(estimate_Type = nil)
1299
+ @estimate_Type = estimate_Type
1300
+ end
1301
+ end
1302
+
1303
+ # AdGroupEstimate
1304
+ # - estimate_Type - SOAP::SOAPString
1305
+ # - adGroupId - SOAP::SOAPLong
1306
+ # - keywordEstimates - AdwordsApi::V201008::TrafficEstimatorService::KeywordEstimate
1307
+ class AdGroupEstimate < Estimate
1308
+ attr_accessor :estimate_Type
1309
+ attr_accessor :adGroupId
1310
+ attr_accessor :keywordEstimates
1311
+
1312
+ def initialize(estimate_Type = nil, adGroupId = nil, keywordEstimates = [])
1313
+ @estimate_Type = estimate_Type
1314
+ @adGroupId = adGroupId
1315
+ @keywordEstimates = keywordEstimates
1316
+ end
1317
+ end
1318
+
1319
+ # CampaignEstimate
1320
+ # - estimate_Type - SOAP::SOAPString
1321
+ # - campaignId - SOAP::SOAPLong
1322
+ # - adGroupEstimates - AdwordsApi::V201008::TrafficEstimatorService::AdGroupEstimate
1323
+ class CampaignEstimate < Estimate
1324
+ attr_accessor :estimate_Type
1325
+ attr_accessor :campaignId
1326
+ attr_accessor :adGroupEstimates
1327
+
1328
+ def initialize(estimate_Type = nil, campaignId = nil, adGroupEstimates = [])
1329
+ @estimate_Type = estimate_Type
1330
+ @campaignId = campaignId
1331
+ @adGroupEstimates = adGroupEstimates
1332
+ end
1333
+ end
1334
+
1335
+ # KeywordEstimate
1336
+ # - estimate_Type - SOAP::SOAPString
1337
+ # - criterionId - SOAP::SOAPLong
1338
+ # - min - AdwordsApi::V201008::TrafficEstimatorService::StatsEstimate
1339
+ # - max - AdwordsApi::V201008::TrafficEstimatorService::StatsEstimate
1340
+ class KeywordEstimate < Estimate
1341
+ attr_accessor :estimate_Type
1342
+ attr_accessor :criterionId
1343
+ attr_accessor :min
1344
+ attr_accessor :max
1345
+
1346
+ def initialize(estimate_Type = nil, criterionId = nil, min = nil, max = nil)
1347
+ @estimate_Type = estimate_Type
1348
+ @criterionId = criterionId
1349
+ @min = min
1350
+ @max = max
1351
+ end
1352
+ end
1353
+
1354
+ # EstimateRequest
1355
+ # abstract
1356
+ # - estimateRequest_Type - SOAP::SOAPString
1357
+ class EstimateRequest
1358
+ attr_accessor :estimateRequest_Type
1359
+
1360
+ def initialize(estimateRequest_Type = nil)
1361
+ @estimateRequest_Type = estimateRequest_Type
1362
+ end
1363
+ end
1364
+
1365
+ # AdGroupEstimateRequest
1366
+ # - estimateRequest_Type - SOAP::SOAPString
1367
+ # - adGroupId - SOAP::SOAPLong
1368
+ # - keywordEstimateRequests - AdwordsApi::V201008::TrafficEstimatorService::KeywordEstimateRequest
1369
+ # - maxCpc - AdwordsApi::V201008::TrafficEstimatorService::Money
1370
+ class AdGroupEstimateRequest < EstimateRequest
1371
+ attr_accessor :estimateRequest_Type
1372
+ attr_accessor :adGroupId
1373
+ attr_accessor :keywordEstimateRequests
1374
+ attr_accessor :maxCpc
1375
+
1376
+ def initialize(estimateRequest_Type = nil, adGroupId = nil, keywordEstimateRequests = [], maxCpc = nil)
1377
+ @estimateRequest_Type = estimateRequest_Type
1378
+ @adGroupId = adGroupId
1379
+ @keywordEstimateRequests = keywordEstimateRequests
1380
+ @maxCpc = maxCpc
1381
+ end
1382
+ end
1383
+
1384
+ # CampaignEstimateRequest
1385
+ # - estimateRequest_Type - SOAP::SOAPString
1386
+ # - campaignId - SOAP::SOAPLong
1387
+ # - adGroupEstimateRequests - AdwordsApi::V201008::TrafficEstimatorService::AdGroupEstimateRequest
1388
+ # - targets - AdwordsApi::V201008::TrafficEstimatorService::Target
1389
+ class CampaignEstimateRequest < EstimateRequest
1390
+ attr_accessor :estimateRequest_Type
1391
+ attr_accessor :campaignId
1392
+ attr_accessor :adGroupEstimateRequests
1393
+ attr_accessor :targets
1394
+
1395
+ def initialize(estimateRequest_Type = nil, campaignId = nil, adGroupEstimateRequests = [], targets = [])
1396
+ @estimateRequest_Type = estimateRequest_Type
1397
+ @campaignId = campaignId
1398
+ @adGroupEstimateRequests = adGroupEstimateRequests
1399
+ @targets = targets
1400
+ end
1401
+ end
1402
+
1403
+ # KeywordEstimateRequest
1404
+ # - estimateRequest_Type - SOAP::SOAPString
1405
+ # - keyword - AdwordsApi::V201008::TrafficEstimatorService::Keyword
1406
+ # - maxCpc - AdwordsApi::V201008::TrafficEstimatorService::Money
1407
+ class KeywordEstimateRequest < EstimateRequest
1408
+ attr_accessor :estimateRequest_Type
1409
+ attr_accessor :keyword
1410
+ attr_accessor :maxCpc
1411
+
1412
+ def initialize(estimateRequest_Type = nil, keyword = nil, maxCpc = nil)
1413
+ @estimateRequest_Type = estimateRequest_Type
1414
+ @keyword = keyword
1415
+ @maxCpc = maxCpc
1416
+ end
1417
+ end
1418
+
1419
+ # StatsEstimate
1420
+ # - averageCpc - AdwordsApi::V201008::TrafficEstimatorService::Money
1421
+ # - averagePosition - SOAP::SOAPDouble
1422
+ # - clicks - SOAP::SOAPLong
1423
+ # - totalCost - AdwordsApi::V201008::TrafficEstimatorService::Money
1424
+ class StatsEstimate
1425
+ attr_accessor :averageCpc
1426
+ attr_accessor :averagePosition
1427
+ attr_accessor :clicks
1428
+ attr_accessor :totalCost
1429
+
1430
+ def initialize(averageCpc = nil, averagePosition = nil, clicks = nil, totalCost = nil)
1431
+ @averageCpc = averageCpc
1432
+ @averagePosition = averagePosition
1433
+ @clicks = clicks
1434
+ @totalCost = totalCost
1435
+ end
1436
+ end
1437
+
1438
+ # TrafficEstimatorResult
1439
+ # - campaignEstimates - AdwordsApi::V201008::TrafficEstimatorService::CampaignEstimate
1440
+ class TrafficEstimatorResult
1441
+ attr_accessor :campaignEstimates
1442
+
1443
+ def initialize(campaignEstimates = [])
1444
+ @campaignEstimates = campaignEstimates
1445
+ end
1446
+ end
1447
+
1448
+ # TrafficEstimatorSelector
1449
+ # - campaignEstimateRequests - AdwordsApi::V201008::TrafficEstimatorService::CampaignEstimateRequest
1450
+ class TrafficEstimatorSelector
1451
+ attr_accessor :campaignEstimateRequests
1452
+
1453
+ def initialize(campaignEstimateRequests = [])
1454
+ @campaignEstimateRequests = campaignEstimateRequests
1455
+ end
1456
+ end
1457
+
1458
+ # AgeTarget.Age
1459
+ class AgeTargetAge < ::String
1460
+ AGE_0_17 = AgeTargetAge.new("AGE_0_17")
1461
+ AGE_18_24 = AgeTargetAge.new("AGE_18_24")
1462
+ AGE_25_34 = AgeTargetAge.new("AGE_25_34")
1463
+ AGE_35_44 = AgeTargetAge.new("AGE_35_44")
1464
+ AGE_45_54 = AgeTargetAge.new("AGE_45_54")
1465
+ AGE_55_64 = AgeTargetAge.new("AGE_55_64")
1466
+ AGE_65_PLUS = AgeTargetAge.new("AGE_65_PLUS")
1467
+ end
1468
+
1469
+ # AuthenticationError.Reason
1470
+ class AuthenticationErrorReason < ::String
1471
+ AUTHENTICATION_FAILED = AuthenticationErrorReason.new("AUTHENTICATION_FAILED")
1472
+ CLIENT_CUSTOMER_ID_INVALID = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_INVALID")
1473
+ CLIENT_CUSTOMER_ID_IS_REQUIRED = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_IS_REQUIRED")
1474
+ CLIENT_EMAIL_FAILED_TO_AUTHENTICATE = AuthenticationErrorReason.new("CLIENT_EMAIL_FAILED_TO_AUTHENTICATE")
1475
+ CLIENT_EMAIL_INVALID = AuthenticationErrorReason.new("CLIENT_EMAIL_INVALID")
1476
+ CLIENT_EMAIL_REQUIRED = AuthenticationErrorReason.new("CLIENT_EMAIL_REQUIRED")
1477
+ CUSTOMER_NOT_FOUND = AuthenticationErrorReason.new("CUSTOMER_NOT_FOUND")
1478
+ FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT = AuthenticationErrorReason.new("FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT")
1479
+ FAILED_TO_RETRIEVE_LOGIN_COOKIE = AuthenticationErrorReason.new("FAILED_TO_RETRIEVE_LOGIN_COOKIE")
1480
+ GOOGLE_ACCOUNT_COOKIE_INVALID = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_COOKIE_INVALID")
1481
+ GOOGLE_ACCOUNT_DELETED = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_DELETED")
1482
+ GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH")
1483
+ LOGIN_COOKIE_INVALID = AuthenticationErrorReason.new("LOGIN_COOKIE_INVALID")
1484
+ LOGIN_COOKIE_REQUIRED = AuthenticationErrorReason.new("LOGIN_COOKIE_REQUIRED")
1485
+ NOT_ADS_USER = AuthenticationErrorReason.new("NOT_ADS_USER")
1486
+ OAUTH_TOKEN_DISABLED = AuthenticationErrorReason.new("OAUTH_TOKEN_DISABLED")
1487
+ OAUTH_TOKEN_EXPIRED = AuthenticationErrorReason.new("OAUTH_TOKEN_EXPIRED")
1488
+ OAUTH_TOKEN_HEADER_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_HEADER_INVALID")
1489
+ OAUTH_TOKEN_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_INVALID")
1490
+ OAUTH_TOKEN_REVOKED = AuthenticationErrorReason.new("OAUTH_TOKEN_REVOKED")
1491
+ USER_ID_INVALID = AuthenticationErrorReason.new("USER_ID_INVALID")
1492
+ end
1493
+
1494
+ # AuthorizationError.Reason
1495
+ class AuthorizationErrorReason < ::String
1496
+ EFFECTIVE_USER_PERMISSION_DENIED = AuthorizationErrorReason.new("EFFECTIVE_USER_PERMISSION_DENIED")
1497
+ NO_ADWORDS_ACCOUNT_FOR_CUSTOMER = AuthorizationErrorReason.new("NO_ADWORDS_ACCOUNT_FOR_CUSTOMER")
1498
+ NO_CUSTOMER_FOUND = AuthorizationErrorReason.new("NO_CUSTOMER_FOUND")
1499
+ UNABLE_TO_AUTHORIZE = AuthorizationErrorReason.new("UNABLE_TO_AUTHORIZE")
1500
+ USER_HAS_READONLY_PERMISSION = AuthorizationErrorReason.new("USER_HAS_READONLY_PERMISSION")
1501
+ USER_PERMISSION_DENIED = AuthorizationErrorReason.new("USER_PERMISSION_DENIED")
1502
+ end
1503
+
1504
+ # ClientTermsError.Reason
1505
+ class ClientTermsErrorReason < ::String
1506
+ INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED = ClientTermsErrorReason.new("INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED")
1507
+ end
1508
+
1509
+ # DatabaseError.Reason
1510
+ class DatabaseErrorReason < ::String
1511
+ CAMPAIGN_PRODUCT_NOT_SUPPORTED = DatabaseErrorReason.new("CAMPAIGN_PRODUCT_NOT_SUPPORTED")
1512
+ CONCURRENT_MODIFICATION = DatabaseErrorReason.new("CONCURRENT_MODIFICATION")
1513
+ DATABASE_ERROR = DatabaseErrorReason.new("DATABASE_ERROR")
1514
+ DUPLICATE_KEY = DatabaseErrorReason.new("DUPLICATE_KEY")
1515
+ PERMISSION_DENIED = DatabaseErrorReason.new("PERMISSION_DENIED")
1516
+ UNKNOWN = DatabaseErrorReason.new("UNKNOWN")
1517
+ end
1518
+
1519
+ # DateError.Reason
1520
+ class DateErrorReason < ::String
1521
+ DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = DateErrorReason.new("DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL")
1522
+ DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = DateErrorReason.new("DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE")
1523
+ EARLIER_THAN_MINIMUM_DATE = DateErrorReason.new("EARLIER_THAN_MINIMUM_DATE")
1524
+ INVALID_FIELD_VALUES_IN_DATE = DateErrorReason.new("INVALID_FIELD_VALUES_IN_DATE")
1525
+ INVALID_STRING_DATE = DateErrorReason.new("INVALID_STRING_DATE")
1526
+ INVALID_STRING_DATE_RANGE = DateErrorReason.new("INVALID_STRING_DATE_RANGE")
1527
+ INVALID_STRING_DATE_TIME = DateErrorReason.new("INVALID_STRING_DATE_TIME")
1528
+ LATER_THAN_MAXIMUM_DATE = DateErrorReason.new("LATER_THAN_MAXIMUM_DATE")
1529
+ end
1530
+
1531
+ # DayOfWeek
1532
+ class DayOfWeek < ::String
1533
+ FRIDAY = DayOfWeek.new("FRIDAY")
1534
+ MONDAY = DayOfWeek.new("MONDAY")
1535
+ SATURDAY = DayOfWeek.new("SATURDAY")
1536
+ SUNDAY = DayOfWeek.new("SUNDAY")
1537
+ THURSDAY = DayOfWeek.new("THURSDAY")
1538
+ TUESDAY = DayOfWeek.new("TUESDAY")
1539
+ WEDNESDAY = DayOfWeek.new("WEDNESDAY")
1540
+ end
1541
+
1542
+ # DistinctError.Reason
1543
+ class DistinctErrorReason < ::String
1544
+ DUPLICATE_ELEMENT = DistinctErrorReason.new("DUPLICATE_ELEMENT")
1545
+ end
1546
+
1547
+ # EntityAccessDenied.Reason
1548
+ class EntityAccessDeniedReason < ::String
1549
+ READ_ACCESS_DENIED = EntityAccessDeniedReason.new("READ_ACCESS_DENIED")
1550
+ WRITE_ACCESS_DENIED = EntityAccessDeniedReason.new("WRITE_ACCESS_DENIED")
1551
+ end
1552
+
1553
+ # EntityNotFound.Reason
1554
+ class EntityNotFoundReason < ::String
1555
+ INVALID_ID = EntityNotFoundReason.new("INVALID_ID")
1556
+ end
1557
+
1558
+ # GenderTarget.Gender
1559
+ class GenderTargetGender < ::String
1560
+ FEMALE = GenderTargetGender.new("FEMALE")
1561
+ MALE = GenderTargetGender.new("MALE")
1562
+ end
1563
+
1564
+ # IdError.Reason
1565
+ class IdErrorReason < ::String
1566
+ NOT_FOUND = IdErrorReason.new("NOT_FOUND")
1567
+ end
1568
+
1569
+ # InternalApiError.Reason
1570
+ class InternalApiErrorReason < ::String
1571
+ UNEXPECTED_INTERNAL_API_ERROR = InternalApiErrorReason.new("UNEXPECTED_INTERNAL_API_ERROR")
1572
+ UNKNOWN = InternalApiErrorReason.new("UNKNOWN")
1573
+ end
1574
+
1575
+ # KeywordMatchType
1576
+ class KeywordMatchType < ::String
1577
+ BROAD = KeywordMatchType.new("BROAD")
1578
+ EXACT = KeywordMatchType.new("EXACT")
1579
+ PHRASE = KeywordMatchType.new("PHRASE")
1580
+ end
1581
+
1582
+ # MinuteOfHour
1583
+ class MinuteOfHour < ::String
1584
+ FIFTEEN = MinuteOfHour.new("FIFTEEN")
1585
+ FORTY_FIVE = MinuteOfHour.new("FORTY_FIVE")
1586
+ THIRTY = MinuteOfHour.new("THIRTY")
1587
+ ZERO = MinuteOfHour.new("ZERO")
1588
+ end
1589
+
1590
+ # NetworkCoverageType
1591
+ class NetworkCoverageType < ::String
1592
+ CONTENT_CONTEXTUAL = NetworkCoverageType.new("CONTENT_CONTEXTUAL")
1593
+ CONTENT_NETWORK = NetworkCoverageType.new("CONTENT_NETWORK")
1594
+ CPA_REFERRAL = NetworkCoverageType.new("CPA_REFERRAL")
1595
+ GOOGLE_SEARCH = NetworkCoverageType.new("GOOGLE_SEARCH")
1596
+ SEARCH_NETWORK = NetworkCoverageType.new("SEARCH_NETWORK")
1597
+ UNKNOWN = NetworkCoverageType.new("UNKNOWN")
1598
+ end
1599
+
1600
+ # NotEmptyError.Reason
1601
+ class NotEmptyErrorReason < ::String
1602
+ EMPTY_LIST = NotEmptyErrorReason.new("EMPTY_LIST")
1603
+ end
1604
+
1605
+ # NotWhitelistedError.Reason
1606
+ class NotWhitelistedErrorReason < ::String
1607
+ CUSTOMER_NOT_WHITELISTED_FOR_API = NotWhitelistedErrorReason.new("CUSTOMER_NOT_WHITELISTED_FOR_API")
1608
+ end
1609
+
1610
+ # NullError.Reason
1611
+ class NullErrorReason < ::String
1612
+ NULL_CONTENT = NullErrorReason.new("NULL_CONTENT")
1613
+ end
1614
+
1615
+ # OperationAccessDenied.Reason
1616
+ class OperationAccessDeniedReason < ::String
1617
+ ACTION_NOT_PERMITTED = OperationAccessDeniedReason.new("ACTION_NOT_PERMITTED")
1618
+ ADD_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("ADD_OPERATION_NOT_PERMITTED")
1619
+ REMOVE_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("REMOVE_OPERATION_NOT_PERMITTED")
1620
+ SET_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("SET_OPERATION_NOT_PERMITTED")
1621
+ UNKNOWN = OperationAccessDeniedReason.new("UNKNOWN")
1622
+ end
1623
+
1624
+ # OperatorError.Reason
1625
+ class OperatorErrorReason < ::String
1626
+ OPERATOR_NOT_SUPPORTED = OperatorErrorReason.new("OPERATOR_NOT_SUPPORTED")
1627
+ end
1628
+
1629
+ # PlatformType
1630
+ class PlatformType < ::String
1631
+ DESKTOP = PlatformType.new("DESKTOP")
1632
+ HIGH_END_MOBILE = PlatformType.new("HIGH_END_MOBILE")
1633
+ UNKNOWN = PlatformType.new("UNKNOWN")
1634
+ end
1635
+
1636
+ # ProximityTarget.DistanceUnits
1637
+ class ProximityTargetDistanceUnits < ::String
1638
+ KILOMETERS = ProximityTargetDistanceUnits.new("KILOMETERS")
1639
+ MILES = ProximityTargetDistanceUnits.new("MILES")
1640
+ end
1641
+
1642
+ # QuotaCheckError.Reason
1643
+ class QuotaCheckErrorReason < ::String
1644
+ ACCOUNT_DELINQUENT = QuotaCheckErrorReason.new("ACCOUNT_DELINQUENT")
1645
+ ACCOUNT_INACCESSIBLE = QuotaCheckErrorReason.new("ACCOUNT_INACCESSIBLE")
1646
+ ACCOUNT_INACTIVE = QuotaCheckErrorReason.new("ACCOUNT_INACTIVE")
1647
+ INCOMPLETE_SIGNUP = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP")
1648
+ INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED")
1649
+ INCOMPLETE_SIGNUP_NO_BILLING_INFO = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_NO_BILLING_INFO")
1650
+ INCOMPLETE_SIGNUP_USER_INFO_MISSING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_MISSING")
1651
+ INCOMPLETE_SIGNUP_USER_INFO_PENDING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_PENDING")
1652
+ INCOMPLETE_SIGNUP_USER_INFO_REJECTED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_REJECTED")
1653
+ INVALID_TOKEN_HEADER = QuotaCheckErrorReason.new("INVALID_TOKEN_HEADER")
1654
+ MONTHLY_BUDGET_REACHED = QuotaCheckErrorReason.new("MONTHLY_BUDGET_REACHED")
1655
+ QUOTA_EXCEEDED = QuotaCheckErrorReason.new("QUOTA_EXCEEDED")
1656
+ end
1657
+
1658
+ # RangeError.Reason
1659
+ class RangeErrorReason < ::String
1660
+ TOO_HIGH = RangeErrorReason.new("TOO_HIGH")
1661
+ TOO_LOW = RangeErrorReason.new("TOO_LOW")
1662
+ end
1663
+
1664
+ # RateExceededError.Reason
1665
+ class RateExceededErrorReason < ::String
1666
+ RATE_EXCEEDED = RateExceededErrorReason.new("RATE_EXCEEDED")
1667
+ end
1668
+
1669
+ # ReadOnlyError.Reason
1670
+ class ReadOnlyErrorReason < ::String
1671
+ READ_ONLY = ReadOnlyErrorReason.new("READ_ONLY")
1672
+ end
1673
+
1674
+ # RegionCodeError.Reason
1675
+ class RegionCodeErrorReason < ::String
1676
+ INVALID_REGION_CODE = RegionCodeErrorReason.new("INVALID_REGION_CODE")
1677
+ end
1678
+
1679
+ # RejectedError.Reason
1680
+ class RejectedErrorReason < ::String
1681
+ UNKNOWN_VALUE = RejectedErrorReason.new("UNKNOWN_VALUE")
1682
+ end
1683
+
1684
+ # RequestError.Reason
1685
+ class RequestErrorReason < ::String
1686
+ INVALID_INPUT = RequestErrorReason.new("INVALID_INPUT")
1687
+ UNKNOWN = RequestErrorReason.new("UNKNOWN")
1688
+ end
1689
+
1690
+ # RequiredError.Reason
1691
+ class RequiredErrorReason < ::String
1692
+ REQUIRED = RequiredErrorReason.new("REQUIRED")
1693
+ end
1694
+
1695
+ # SizeLimitError.Reason
1696
+ class SizeLimitErrorReason < ::String
1697
+ REQUEST_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("REQUEST_SIZE_LIMIT_EXCEEDED")
1698
+ RESPONSE_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("RESPONSE_SIZE_LIMIT_EXCEEDED")
1699
+ UNKNOWN = SizeLimitErrorReason.new("UNKNOWN")
1700
+ end
1701
+
1702
+ # StringLengthError.Reason
1703
+ class StringLengthErrorReason < ::String
1704
+ TOO_LONG = StringLengthErrorReason.new("TOO_LONG")
1705
+ TOO_SHORT = StringLengthErrorReason.new("TOO_SHORT")
1706
+ end
1707
+
1708
+ # TargetError.Reason
1709
+ class TargetErrorReason < ::String
1710
+ AD_SCHEDULE_ADVANCED_INCOMPATIBLE_WITH_CONVERSION_OPTIMIZER = TargetErrorReason.new("AD_SCHEDULE_ADVANCED_INCOMPATIBLE_WITH_CONVERSION_OPTIMIZER")
1711
+ AD_SCHEDULE_BID_MULTIPLIER_MALFORMED = TargetErrorReason.new("AD_SCHEDULE_BID_MULTIPLIER_MALFORMED")
1712
+ AD_SCHEDULE_BID_MULTIPLIER_TOO_BIG = TargetErrorReason.new("AD_SCHEDULE_BID_MULTIPLIER_TOO_BIG")
1713
+ AD_SCHEDULE_BID_MULTIPLIER_TOO_MANY_FRACTION_DIGITS = TargetErrorReason.new("AD_SCHEDULE_BID_MULTIPLIER_TOO_MANY_FRACTION_DIGITS")
1714
+ AD_SCHEDULE_BID_MULTIPLIER_TOO_SMALL = TargetErrorReason.new("AD_SCHEDULE_BID_MULTIPLIER_TOO_SMALL")
1715
+ AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT = TargetErrorReason.new("AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT")
1716
+ AD_SCHEDULE_EXCEEDS_PAST_END_OF_WEEK = TargetErrorReason.new("AD_SCHEDULE_EXCEEDS_PAST_END_OF_WEEK")
1717
+ AD_SCHEDULE_INCOMPATIBILITY = TargetErrorReason.new("AD_SCHEDULE_INCOMPATIBILITY")
1718
+ AD_SCHEDULE_INCOMPATIBLE_WITH_BUDGET_OPTIMIZER = TargetErrorReason.new("AD_SCHEDULE_INCOMPATIBLE_WITH_BUDGET_OPTIMIZER")
1719
+ AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS = TargetErrorReason.new("AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS")
1720
+ AD_SCHEDULE_INVALID_DAY_OF_THE_WEEK = TargetErrorReason.new("AD_SCHEDULE_INVALID_DAY_OF_THE_WEEK")
1721
+ AD_SCHEDULE_INVALID_TIME_INTERVAL = TargetErrorReason.new("AD_SCHEDULE_INVALID_TIME_INTERVAL")
1722
+ AD_SCHEDULE_NOT_MULTIPLE_OF_15_MINUTES = TargetErrorReason.new("AD_SCHEDULE_NOT_MULTIPLE_OF_15_MINUTES")
1723
+ AD_SCHEDULE_NO_INTERVALS_WHILE_ENABLED = TargetErrorReason.new("AD_SCHEDULE_NO_INTERVALS_WHILE_ENABLED")
1724
+ AD_SCHEDULE_TIME_INTERVALS_OVERLAP = TargetErrorReason.new("AD_SCHEDULE_TIME_INTERVALS_OVERLAP")
1725
+ CANNOT_EXCLUDE_CITY = TargetErrorReason.new("CANNOT_EXCLUDE_CITY")
1726
+ CANNOT_EXCLUDE_IF_NOT_TARGETED = TargetErrorReason.new("CANNOT_EXCLUDE_IF_NOT_TARGETED")
1727
+ CANNOT_EXCLUDE_METRO = TargetErrorReason.new("CANNOT_EXCLUDE_METRO")
1728
+ CANNOT_EXCLUDE_PROVINCE = TargetErrorReason.new("CANNOT_EXCLUDE_PROVINCE")
1729
+ CANNOT_OPT_OUT_GOOGLE_SEARCH_WHILE_BID_TO_POSITION_ENABLE = TargetErrorReason.new("CANNOT_OPT_OUT_GOOGLE_SEARCH_WHILE_BID_TO_POSITION_ENABLE")
1730
+ CANNOT_TARGET_AGE_WITHOUT_GENDER = TargetErrorReason.new("CANNOT_TARGET_AGE_WITHOUT_GENDER")
1731
+ CANNOT_TARGET_CITY = TargetErrorReason.new("CANNOT_TARGET_CITY")
1732
+ CANNOT_TARGET_CONTENT_CONTEXTUAL_WITHOUT_CONTENT_NETWORK = TargetErrorReason.new("CANNOT_TARGET_CONTENT_CONTEXTUAL_WITHOUT_CONTENT_NETWORK")
1733
+ CANNOT_TARGET_COUNTRY = TargetErrorReason.new("CANNOT_TARGET_COUNTRY")
1734
+ CANNOT_TARGET_COVERAGE = TargetErrorReason.new("CANNOT_TARGET_COVERAGE")
1735
+ CANNOT_TARGET_GENDER_WITHOUT_AGE = TargetErrorReason.new("CANNOT_TARGET_GENDER_WITHOUT_AGE")
1736
+ CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN = TargetErrorReason.new("CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN")
1737
+ CANNOT_TARGET_LANGUAGE = TargetErrorReason.new("CANNOT_TARGET_LANGUAGE")
1738
+ CANNOT_TARGET_METRO = TargetErrorReason.new("CANNOT_TARGET_METRO")
1739
+ CANNOT_TARGET_MOBILE_CARRIER = TargetErrorReason.new("CANNOT_TARGET_MOBILE_CARRIER")
1740
+ CANNOT_TARGET_PROVINCE = TargetErrorReason.new("CANNOT_TARGET_PROVINCE")
1741
+ CANNOT_TARGET_SEARCH_SYNDICATION_WITHOUT_GOOGLE_SEARCH = TargetErrorReason.new("CANNOT_TARGET_SEARCH_SYNDICATION_WITHOUT_GOOGLE_SEARCH")
1742
+ CANNOT_TARGET_SYNDICATABLE_TYPES = TargetErrorReason.new("CANNOT_TARGET_SYNDICATABLE_TYPES")
1743
+ CANNOT_TARGET_THE_SAME_TARGET_LIST_TYPE_MULTIPLE_TIMES = TargetErrorReason.new("CANNOT_TARGET_THE_SAME_TARGET_LIST_TYPE_MULTIPLE_TIMES")
1744
+ DEMOGRAPHIC_BID_MODIFIER_SHOULD_BE_IN_BETWEEN_0_AND_500 = TargetErrorReason.new("DEMOGRAPHIC_BID_MODIFIER_SHOULD_BE_IN_BETWEEN_0_AND_500")
1745
+ INVALID_CITYNAME_LENGTH = TargetErrorReason.new("INVALID_CITYNAME_LENGTH")
1746
+ INVALID_CITY_CODE = TargetErrorReason.new("INVALID_CITY_CODE")
1747
+ INVALID_EXCLUDED_POLYGON_TARGET = TargetErrorReason.new("INVALID_EXCLUDED_POLYGON_TARGET")
1748
+ INVALID_EXCLUDED_PROXIMITY_TARGET = TargetErrorReason.new("INVALID_EXCLUDED_PROXIMITY_TARGET")
1749
+ INVALID_LANGUAGE_CODE = TargetErrorReason.new("INVALID_LANGUAGE_CODE")
1750
+ INVALID_LATITUDE = TargetErrorReason.new("INVALID_LATITUDE")
1751
+ INVALID_LONGITUDE = TargetErrorReason.new("INVALID_LONGITUDE")
1752
+ INVALID_METRO_CODE = TargetErrorReason.new("INVALID_METRO_CODE")
1753
+ INVALID_MOBILE_CARRIER = TargetErrorReason.new("INVALID_MOBILE_CARRIER")
1754
+ INVALID_MOBILE_PLATFORM = TargetErrorReason.new("INVALID_MOBILE_PLATFORM")
1755
+ INVALID_POSTALCODE_LENGTH = TargetErrorReason.new("INVALID_POSTALCODE_LENGTH")
1756
+ INVALID_PROVINCE_CODE = TargetErrorReason.new("INVALID_PROVINCE_CODE")
1757
+ INVALID_PROXIMITY_RADIUS = TargetErrorReason.new("INVALID_PROXIMITY_RADIUS")
1758
+ INVALID_REGIONCODE_LENGTH = TargetErrorReason.new("INVALID_REGIONCODE_LENGTH")
1759
+ INVALID_REGIONNAME_LENGTH = TargetErrorReason.new("INVALID_REGIONNAME_LENGTH")
1760
+ INVALID_STREETADDRESS_LENGTH = TargetErrorReason.new("INVALID_STREETADDRESS_LENGTH")
1761
+ MULTIPLE_OCCURRENCES_OF_SAME_TARGET = TargetErrorReason.new("MULTIPLE_OCCURRENCES_OF_SAME_TARGET")
1762
+ POLYGON_DUPLICATE_VERTICES = TargetErrorReason.new("POLYGON_DUPLICATE_VERTICES")
1763
+ POLYGON_EDGES_INTERSECT = TargetErrorReason.new("POLYGON_EDGES_INTERSECT")
1764
+ POLYGON_TOO_FEW_VERTICES = TargetErrorReason.new("POLYGON_TOO_FEW_VERTICES")
1765
+ POLYGON_TOO_LARGE = TargetErrorReason.new("POLYGON_TOO_LARGE")
1766
+ POLYGON_TOO_MANY_VERTICES = TargetErrorReason.new("POLYGON_TOO_MANY_VERTICES")
1767
+ TARGETING_CROSS_COUNTRY_REGIONAL = TargetErrorReason.new("TARGETING_CROSS_COUNTRY_REGIONAL")
1768
+ TARGETING_EXCLUSION_NOT_SUPPORTED = TargetErrorReason.new("TARGETING_EXCLUSION_NOT_SUPPORTED")
1769
+ TARGETING_INCOMPATIBLE_LOCATION_TYPES = TargetErrorReason.new("TARGETING_INCOMPATIBLE_LOCATION_TYPES")
1770
+ TARGETING_NOT_SUPPORTED = TargetErrorReason.new("TARGETING_NOT_SUPPORTED")
1771
+ TARGETING_TOO_MANY_REGIONS = TargetErrorReason.new("TARGETING_TOO_MANY_REGIONS")
1772
+ TARGETING_VALIDATION_FAILED = TargetErrorReason.new("TARGETING_VALIDATION_FAILED")
1773
+ TARGET_ERROR = TargetErrorReason.new("TARGET_ERROR")
1774
+ TARGET_IS_ENCLOSED_BY_ANOTHER_TARGET = TargetErrorReason.new("TARGET_IS_ENCLOSED_BY_ANOTHER_TARGET")
1775
+ TARGET_IS_EXCLUDED_BY_ANOTHER_TARGET = TargetErrorReason.new("TARGET_IS_EXCLUDED_BY_ANOTHER_TARGET")
1776
+ TOO_MANY_EXCLUDED_LOCATIONS = TargetErrorReason.new("TOO_MANY_EXCLUDED_LOCATIONS")
1777
+ TOO_MANY_TARGETED_LOCATIONS = TargetErrorReason.new("TOO_MANY_TARGETED_LOCATIONS")
1778
+ WARNING_MAY_NOW_REQUIRE_CHINESE_APPROVAL = TargetErrorReason.new("WARNING_MAY_NOW_REQUIRE_CHINESE_APPROVAL")
1779
+ WARNING_NOW_REQUIRES_CHINESE_APPROVAL = TargetErrorReason.new("WARNING_NOW_REQUIRES_CHINESE_APPROVAL")
1780
+ WARNING_NOW_TARGETS_CHINA = TargetErrorReason.new("WARNING_NOW_TARGETS_CHINA")
1781
+ WARNING_NOW_TARGETS_CHINESE = TargetErrorReason.new("WARNING_NOW_TARGETS_CHINESE")
1782
+ end
1783
+
1784
+ # CriterionUserList.MembershipStatus
1785
+ class CriterionUserListMembershipStatus < ::String
1786
+ CLOSED = CriterionUserListMembershipStatus.new("CLOSED")
1787
+ OPEN = CriterionUserListMembershipStatus.new("OPEN")
1788
+ end
1789
+
1790
+ # CollectionSizeError.Reason
1791
+ class CollectionSizeErrorReason < ::String
1792
+ TOO_FEW = CollectionSizeErrorReason.new("TOO_FEW")
1793
+ TOO_MANY = CollectionSizeErrorReason.new("TOO_MANY")
1794
+ end
1795
+
1796
+ # MatchesRegexError.Reason
1797
+ class MatchesRegexErrorReason < ::String
1798
+ DOES_NOT_MATCH = MatchesRegexErrorReason.new("DOES_NOT_MATCH")
1799
+ UNKNOWN = MatchesRegexErrorReason.new("UNKNOWN")
1800
+ end
1801
+
1802
+ # TrafficEstimatorError.Reason
1803
+ class TrafficEstimatorErrorReason < ::String
1804
+ INVALID_INPUT = TrafficEstimatorErrorReason.new("INVALID_INPUT")
1805
+ NO_AD_GROUP_FOR_KEYWORD_ESTIMATE_REQUEST = TrafficEstimatorErrorReason.new("NO_AD_GROUP_FOR_KEYWORD_ESTIMATE_REQUEST")
1806
+ NO_CAMPAIGN_FOR_AD_GROUP_ESTIMATE_REQUEST = TrafficEstimatorErrorReason.new("NO_CAMPAIGN_FOR_AD_GROUP_ESTIMATE_REQUEST")
1807
+ NO_MAX_CPC_FOR_KEYWORD_ESTIMATE_REQUEST = TrafficEstimatorErrorReason.new("NO_MAX_CPC_FOR_KEYWORD_ESTIMATE_REQUEST")
1808
+ SERVICE_UNAVAILABLE = TrafficEstimatorErrorReason.new("SERVICE_UNAVAILABLE")
1809
+ TOO_MANY_KEYWORD_ESTIMATE_REQUESTS = TrafficEstimatorErrorReason.new("TOO_MANY_KEYWORD_ESTIMATE_REQUESTS")
1810
+ end
1811
+
1812
+ # get
1813
+ # - selector - AdwordsApi::V201008::TrafficEstimatorService::TrafficEstimatorSelector
1814
+ class Get #:nodoc: all
1815
+ attr_accessor :selector
1816
+
1817
+ def initialize(selector = nil)
1818
+ @selector = selector
1819
+ end
1820
+ end
1821
+
1822
+ # getResponse
1823
+ # - rval - AdwordsApi::V201008::TrafficEstimatorService::TrafficEstimatorResult
1824
+ class GetResponse #:nodoc: all
1825
+ attr_accessor :rval
1826
+
1827
+ def initialize(rval = nil)
1828
+ @rval = rval
1829
+ end
1830
+ end
1831
+
1832
+
1833
+ end; end; end