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,378 @@
1
+ # This file was automatically generated during the "rake generate" step of
2
+ # library setup.
3
+ require 'adwords_api/v201003/ReportDefinitionServiceDriver.rb'
4
+
5
+ module AdwordsApi
6
+ module V201003
7
+ module ReportDefinitionService
8
+
9
+ # Wrapper class for the v201003 ReportDefinitionService service.
10
+ # This class is automatically generated.
11
+ class ReportDefinitionServiceWrapper
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::V201003::ReportDefinitionService::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/cm/v201003'
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::V201003::ReportDefinitionService::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 ReportDefinitionServiceWrapper.
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::V201003::ReportDefinitionService
51
+ @version = :v201003
52
+ @service = :ReportDefinitionService
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::V201003::\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/v201003/ReportDefinitionService.html#get] method of the ReportDefinitionService service.
272
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201003/ReportDefinitionService.html#get].
273
+ #
274
+ # Args:
275
+ # - selector: AdwordsApi::V201003::ReportDefinitionService::ReportDefinitionSelector
276
+ #
277
+ # Returns:
278
+ # - rval: AdwordsApi::V201003::ReportDefinitionService::ReportDefinitionPage
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::V201003::ReportDefinitionService::ReportDefinitionSelector)
287
+ arg_array << convert_to_object(selector, AdwordsApi::V201003::ReportDefinitionService::Get,
288
+ 'selector')
289
+ # Construct request object and make API call
290
+ obj = AdwordsApi::V201003::ReportDefinitionService::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 {getReportFields}[http://code.google.com/apis/adwords/docs/reference/v201003/ReportDefinitionService.html#getReportFields] method of the ReportDefinitionService service.
301
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201003/ReportDefinitionService.html#getReportFields].
302
+ #
303
+ # Args:
304
+ # - reportType: AdwordsApi::V201003::ReportDefinitionService::ReportDefinitionReportType
305
+ #
306
+ # Returns:
307
+ # - rval: SOAP::SOAPArray of AdwordsApi::V201003::ReportDefinitionService::ReportDefinitionField
308
+ #
309
+ # Raises:
310
+ # Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
311
+ #
312
+ def getReportFields(reportType)
313
+ begin
314
+ arg_array = []
315
+ validate_object(reportType, AdwordsApi::V201003::ReportDefinitionService::ReportDefinitionReportType)
316
+ arg_array << convert_to_object(reportType, AdwordsApi::V201003::ReportDefinitionService::GetReportFields,
317
+ 'reportType')
318
+ # Construct request object and make API call
319
+ obj = AdwordsApi::V201003::ReportDefinitionService::GetReportFields.new(*arg_array)
320
+ reply = convert_from_object(@driver.getReportFields(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_report_fields getReportFields
330
+
331
+
332
+ # Calls the {mutate}[http://code.google.com/apis/adwords/docs/reference/v201003/ReportDefinitionService.html#mutate] method of the ReportDefinitionService service.
333
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v201003/ReportDefinitionService.html#mutate].
334
+ #
335
+ # Args:
336
+ # - operations: SOAP::SOAPArray of AdwordsApi::V201003::ReportDefinitionService::ReportDefinitionOperation
337
+ #
338
+ # Returns:
339
+ # - rval: SOAP::SOAPArray of AdwordsApi::V201003::ReportDefinitionService::ReportDefinition
340
+ #
341
+ # Raises:
342
+ # Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
343
+ #
344
+ def mutate(operations)
345
+ begin
346
+ arg_array = []
347
+ validate_object(operations, SOAP::SOAPArray)
348
+ arg_array << convert_to_object(operations, AdwordsApi::V201003::ReportDefinitionService::Mutate,
349
+ 'operations')
350
+ # Construct request object and make API call
351
+ obj = AdwordsApi::V201003::ReportDefinitionService::Mutate.new(*arg_array)
352
+ reply = convert_from_object(@driver.mutate(obj))
353
+ reply = reply[:rval] if reply.include?(:rval)
354
+ return reply
355
+ rescue SOAP::FaultError => fault
356
+ raise AdwordsApi::Errors.create_api_exception(fault,
357
+ self)
358
+ end
359
+ end
360
+
361
+ # <i>Extension method</i> -- Calls the
362
+ # AdwordsApi::Extensions.download_report method with +self+ as the
363
+ # first parameter.
364
+ def download_report(report_definition_id)
365
+ return AdwordsApi::Extensions.download_report(self, report_definition_id)
366
+ end
367
+
368
+ # <i>Extension method</i> -- Calls the
369
+ # AdwordsApi::Extensions.download_report_as_file method with +self+ as the
370
+ # first parameter.
371
+ def download_report_as_file(report_definition_id, path)
372
+ return AdwordsApi::Extensions.download_report_as_file(self, report_definition_id, path)
373
+ end
374
+
375
+ end
376
+ end
377
+ end
378
+ end
@@ -0,0 +1,2517 @@
1
+ require 'xsd/qname'
2
+
3
+ module AdwordsApi; module V201003; module TargetingIdeaService
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
+ # Paging
48
+ # - startIndex - SOAP::SOAPInt
49
+ # - numberResults - SOAP::SOAPInt
50
+ class Paging
51
+ attr_accessor :startIndex
52
+ attr_accessor :numberResults
53
+
54
+ def initialize(startIndex = nil, numberResults = nil)
55
+ @startIndex = startIndex
56
+ @numberResults = numberResults
57
+ end
58
+ end
59
+
60
+ # PolicyViolationError.Part
61
+ # - index - SOAP::SOAPInt
62
+ # - length - SOAP::SOAPInt
63
+ class PolicyViolationErrorPart
64
+ attr_accessor :index
65
+ attr_accessor :length
66
+
67
+ def initialize(index = nil, length = nil)
68
+ @index = index
69
+ @length = length
70
+ end
71
+ end
72
+
73
+ # PolicyViolationKey
74
+ # - policyName - SOAP::SOAPString
75
+ # - violatingText - SOAP::SOAPString
76
+ class PolicyViolationKey
77
+ attr_accessor :policyName
78
+ attr_accessor :violatingText
79
+
80
+ def initialize(policyName = nil, violatingText = nil)
81
+ @policyName = policyName
82
+ @violatingText = violatingText
83
+ end
84
+ end
85
+
86
+ # SoapHeader
87
+ # - authToken - SOAP::SOAPString
88
+ # - clientCustomerId - SOAP::SOAPString
89
+ # - clientEmail - SOAP::SOAPString
90
+ # - developerToken - SOAP::SOAPString
91
+ # - userAgent - SOAP::SOAPString
92
+ # - validateOnly - SOAP::SOAPBoolean
93
+ class SoapHeader
94
+ attr_accessor :authToken
95
+ attr_accessor :clientCustomerId
96
+ attr_accessor :clientEmail
97
+ attr_accessor :developerToken
98
+ attr_accessor :userAgent
99
+ attr_accessor :validateOnly
100
+
101
+ def initialize(authToken = nil, clientCustomerId = nil, clientEmail = nil, developerToken = nil, userAgent = nil, validateOnly = nil)
102
+ @authToken = authToken
103
+ @clientCustomerId = clientCustomerId
104
+ @clientEmail = clientEmail
105
+ @developerToken = developerToken
106
+ @userAgent = userAgent
107
+ @validateOnly = validateOnly
108
+ end
109
+ end
110
+
111
+ # SoapResponseHeader
112
+ # - requestId - SOAP::SOAPString
113
+ # - operations - SOAP::SOAPLong
114
+ # - responseTime - SOAP::SOAPLong
115
+ # - units - SOAP::SOAPLong
116
+ class SoapResponseHeader
117
+ attr_accessor :requestId
118
+ attr_accessor :operations
119
+ attr_accessor :responseTime
120
+ attr_accessor :units
121
+
122
+ def initialize(requestId = nil, operations = nil, responseTime = nil, units = nil)
123
+ @requestId = requestId
124
+ @operations = operations
125
+ @responseTime = responseTime
126
+ @units = units
127
+ end
128
+ end
129
+
130
+ # ComparableValue
131
+ # abstract
132
+ # - comparableValue_Type - SOAP::SOAPString
133
+ class ComparableValue
134
+ attr_accessor :comparableValue_Type
135
+
136
+ def initialize(comparableValue_Type = nil)
137
+ @comparableValue_Type = comparableValue_Type
138
+ end
139
+ end
140
+
141
+ # Money
142
+ # - comparableValue_Type - SOAP::SOAPString
143
+ # - microAmount - SOAP::SOAPLong
144
+ class Money < ComparableValue
145
+ attr_accessor :comparableValue_Type
146
+ attr_accessor :microAmount
147
+
148
+ def initialize(comparableValue_Type = nil, microAmount = nil)
149
+ @comparableValue_Type = comparableValue_Type
150
+ @microAmount = microAmount
151
+ end
152
+ end
153
+
154
+ # NumberValue
155
+ # abstract
156
+ # - comparableValue_Type - SOAP::SOAPString
157
+ class NumberValue < ComparableValue
158
+ attr_accessor :comparableValue_Type
159
+
160
+ def initialize(comparableValue_Type = nil)
161
+ @comparableValue_Type = comparableValue_Type
162
+ end
163
+ end
164
+
165
+ # DoubleValue
166
+ # - comparableValue_Type - SOAP::SOAPString
167
+ # - number - SOAP::SOAPDouble
168
+ class DoubleValue < NumberValue
169
+ attr_accessor :comparableValue_Type
170
+ attr_accessor :number
171
+
172
+ def initialize(comparableValue_Type = nil, number = nil)
173
+ @comparableValue_Type = comparableValue_Type
174
+ @number = number
175
+ end
176
+ end
177
+
178
+ # LongValue
179
+ # - comparableValue_Type - SOAP::SOAPString
180
+ # - number - SOAP::SOAPLong
181
+ class LongValue < NumberValue
182
+ attr_accessor :comparableValue_Type
183
+ attr_accessor :number
184
+
185
+ def initialize(comparableValue_Type = nil, number = nil)
186
+ @comparableValue_Type = comparableValue_Type
187
+ @number = number
188
+ end
189
+ end
190
+
191
+ # Target
192
+ # abstract
193
+ # - target_Type - SOAP::SOAPString
194
+ class Target
195
+ attr_accessor :target_Type
196
+
197
+ def initialize(target_Type = nil)
198
+ @target_Type = target_Type
199
+ end
200
+ end
201
+
202
+ # AdScheduleTarget
203
+ # - target_Type - SOAP::SOAPString
204
+ # - dayOfWeek - AdwordsApi::V201003::TargetingIdeaService::DayOfWeek
205
+ # - startHour - SOAP::SOAPInt
206
+ # - startMinute - AdwordsApi::V201003::TargetingIdeaService::MinuteOfHour
207
+ # - endHour - SOAP::SOAPInt
208
+ # - endMinute - AdwordsApi::V201003::TargetingIdeaService::MinuteOfHour
209
+ # - bidMultiplier - SOAP::SOAPDouble
210
+ class AdScheduleTarget < Target
211
+ attr_accessor :target_Type
212
+ attr_accessor :dayOfWeek
213
+ attr_accessor :startHour
214
+ attr_accessor :startMinute
215
+ attr_accessor :endHour
216
+ attr_accessor :endMinute
217
+ attr_accessor :bidMultiplier
218
+
219
+ def initialize(target_Type = nil, dayOfWeek = nil, startHour = nil, startMinute = nil, endHour = nil, endMinute = nil, bidMultiplier = nil)
220
+ @target_Type = target_Type
221
+ @dayOfWeek = dayOfWeek
222
+ @startHour = startHour
223
+ @startMinute = startMinute
224
+ @endHour = endHour
225
+ @endMinute = endMinute
226
+ @bidMultiplier = bidMultiplier
227
+ end
228
+ end
229
+
230
+ # LanguageTarget
231
+ # - target_Type - SOAP::SOAPString
232
+ # - languageCode - SOAP::SOAPString
233
+ class LanguageTarget < Target
234
+ attr_accessor :target_Type
235
+ attr_accessor :languageCode
236
+
237
+ def initialize(target_Type = nil, languageCode = nil)
238
+ @target_Type = target_Type
239
+ @languageCode = languageCode
240
+ end
241
+ end
242
+
243
+ # MobileTarget
244
+ # abstract
245
+ # - target_Type - SOAP::SOAPString
246
+ class MobileTarget < Target
247
+ attr_accessor :target_Type
248
+
249
+ def initialize(target_Type = nil)
250
+ @target_Type = target_Type
251
+ end
252
+ end
253
+
254
+ # MobileCarrierTarget
255
+ # - target_Type - SOAP::SOAPString
256
+ # - carrierName - SOAP::SOAPString
257
+ # - countryCode - SOAP::SOAPString
258
+ class MobileCarrierTarget < MobileTarget
259
+ attr_accessor :target_Type
260
+ attr_accessor :carrierName
261
+ attr_accessor :countryCode
262
+
263
+ def initialize(target_Type = nil, carrierName = nil, countryCode = nil)
264
+ @target_Type = target_Type
265
+ @carrierName = carrierName
266
+ @countryCode = countryCode
267
+ end
268
+ end
269
+
270
+ # MobilePlatformTarget
271
+ # - target_Type - SOAP::SOAPString
272
+ # - platformName - SOAP::SOAPString
273
+ class MobilePlatformTarget < MobileTarget
274
+ attr_accessor :target_Type
275
+ attr_accessor :platformName
276
+
277
+ def initialize(target_Type = nil, platformName = nil)
278
+ @target_Type = target_Type
279
+ @platformName = platformName
280
+ end
281
+ end
282
+
283
+ # NetworkTarget
284
+ # - target_Type - SOAP::SOAPString
285
+ # - networkCoverageType - AdwordsApi::V201003::TargetingIdeaService::NetworkCoverageType
286
+ class NetworkTarget < Target
287
+ attr_accessor :target_Type
288
+ attr_accessor :networkCoverageType
289
+
290
+ def initialize(target_Type = nil, networkCoverageType = nil)
291
+ @target_Type = target_Type
292
+ @networkCoverageType = networkCoverageType
293
+ end
294
+ end
295
+
296
+ # PlatformTarget
297
+ # - target_Type - SOAP::SOAPString
298
+ # - platformType - AdwordsApi::V201003::TargetingIdeaService::PlatformType
299
+ class PlatformTarget < Target
300
+ attr_accessor :target_Type
301
+ attr_accessor :platformType
302
+
303
+ def initialize(target_Type = nil, platformType = nil)
304
+ @target_Type = target_Type
305
+ @platformType = platformType
306
+ end
307
+ end
308
+
309
+ # DemographicTarget
310
+ # abstract
311
+ # - target_Type - SOAP::SOAPString
312
+ # - bidModifier - SOAP::SOAPInt
313
+ class DemographicTarget < Target
314
+ attr_accessor :target_Type
315
+ attr_accessor :bidModifier
316
+
317
+ def initialize(target_Type = nil, bidModifier = nil)
318
+ @target_Type = target_Type
319
+ @bidModifier = bidModifier
320
+ end
321
+ end
322
+
323
+ # AgeTarget
324
+ # - target_Type - SOAP::SOAPString
325
+ # - bidModifier - SOAP::SOAPInt
326
+ # - age - AdwordsApi::V201003::TargetingIdeaService::AgeTargetAge
327
+ class AgeTarget < DemographicTarget
328
+ attr_accessor :target_Type
329
+ attr_accessor :bidModifier
330
+ attr_accessor :age
331
+
332
+ def initialize(target_Type = nil, bidModifier = nil, age = nil)
333
+ @target_Type = target_Type
334
+ @bidModifier = bidModifier
335
+ @age = age
336
+ end
337
+ end
338
+
339
+ # GenderTarget
340
+ # - target_Type - SOAP::SOAPString
341
+ # - bidModifier - SOAP::SOAPInt
342
+ # - gender - AdwordsApi::V201003::TargetingIdeaService::GenderTargetGender
343
+ class GenderTarget < DemographicTarget
344
+ attr_accessor :target_Type
345
+ attr_accessor :bidModifier
346
+ attr_accessor :gender
347
+
348
+ def initialize(target_Type = nil, bidModifier = nil, gender = nil)
349
+ @target_Type = target_Type
350
+ @bidModifier = bidModifier
351
+ @gender = gender
352
+ end
353
+ end
354
+
355
+ # GeoTarget
356
+ # abstract
357
+ # - target_Type - SOAP::SOAPString
358
+ # - excluded - SOAP::SOAPBoolean
359
+ class GeoTarget < Target
360
+ attr_accessor :target_Type
361
+ attr_accessor :excluded
362
+
363
+ def initialize(target_Type = nil, excluded = nil)
364
+ @target_Type = target_Type
365
+ @excluded = excluded
366
+ end
367
+ end
368
+
369
+ # CityTarget
370
+ # - target_Type - SOAP::SOAPString
371
+ # - excluded - SOAP::SOAPBoolean
372
+ # - cityName - SOAP::SOAPString
373
+ # - provinceCode - SOAP::SOAPString
374
+ # - countryCode - SOAP::SOAPString
375
+ class CityTarget < GeoTarget
376
+ attr_accessor :target_Type
377
+ attr_accessor :excluded
378
+ attr_accessor :cityName
379
+ attr_accessor :provinceCode
380
+ attr_accessor :countryCode
381
+
382
+ def initialize(target_Type = nil, excluded = nil, cityName = nil, provinceCode = nil, countryCode = nil)
383
+ @target_Type = target_Type
384
+ @excluded = excluded
385
+ @cityName = cityName
386
+ @provinceCode = provinceCode
387
+ @countryCode = countryCode
388
+ end
389
+ end
390
+
391
+ # CountryTarget
392
+ # - target_Type - SOAP::SOAPString
393
+ # - excluded - SOAP::SOAPBoolean
394
+ # - countryCode - SOAP::SOAPString
395
+ class CountryTarget < GeoTarget
396
+ attr_accessor :target_Type
397
+ attr_accessor :excluded
398
+ attr_accessor :countryCode
399
+
400
+ def initialize(target_Type = nil, excluded = nil, countryCode = nil)
401
+ @target_Type = target_Type
402
+ @excluded = excluded
403
+ @countryCode = countryCode
404
+ end
405
+ end
406
+
407
+ # MetroTarget
408
+ # - target_Type - SOAP::SOAPString
409
+ # - excluded - SOAP::SOAPBoolean
410
+ # - metroCode - SOAP::SOAPString
411
+ class MetroTarget < GeoTarget
412
+ attr_accessor :target_Type
413
+ attr_accessor :excluded
414
+ attr_accessor :metroCode
415
+
416
+ def initialize(target_Type = nil, excluded = nil, metroCode = nil)
417
+ @target_Type = target_Type
418
+ @excluded = excluded
419
+ @metroCode = metroCode
420
+ end
421
+ end
422
+
423
+ # PolygonTarget
424
+ # - target_Type - SOAP::SOAPString
425
+ # - excluded - SOAP::SOAPBoolean
426
+ # - vertices - AdwordsApi::V201003::TargetingIdeaService::GeoPoint
427
+ class PolygonTarget < GeoTarget
428
+ attr_accessor :target_Type
429
+ attr_accessor :excluded
430
+ attr_accessor :vertices
431
+
432
+ def initialize(target_Type = nil, excluded = nil, vertices = [])
433
+ @target_Type = target_Type
434
+ @excluded = excluded
435
+ @vertices = vertices
436
+ end
437
+ end
438
+
439
+ # ProvinceTarget
440
+ # - target_Type - SOAP::SOAPString
441
+ # - excluded - SOAP::SOAPBoolean
442
+ # - provinceCode - SOAP::SOAPString
443
+ class ProvinceTarget < GeoTarget
444
+ attr_accessor :target_Type
445
+ attr_accessor :excluded
446
+ attr_accessor :provinceCode
447
+
448
+ def initialize(target_Type = nil, excluded = nil, provinceCode = nil)
449
+ @target_Type = target_Type
450
+ @excluded = excluded
451
+ @provinceCode = provinceCode
452
+ end
453
+ end
454
+
455
+ # ProximityTarget
456
+ # - target_Type - SOAP::SOAPString
457
+ # - excluded - SOAP::SOAPBoolean
458
+ # - geoPoint - AdwordsApi::V201003::TargetingIdeaService::GeoPoint
459
+ # - radiusDistanceUnits - AdwordsApi::V201003::TargetingIdeaService::ProximityTargetDistanceUnits
460
+ # - radiusInUnits - SOAP::SOAPDouble
461
+ # - address - AdwordsApi::V201003::TargetingIdeaService::Address
462
+ # - allowServiceOfAddress - SOAP::SOAPBoolean
463
+ class ProximityTarget < GeoTarget
464
+ attr_accessor :target_Type
465
+ attr_accessor :excluded
466
+ attr_accessor :geoPoint
467
+ attr_accessor :radiusDistanceUnits
468
+ attr_accessor :radiusInUnits
469
+ attr_accessor :address
470
+ attr_accessor :allowServiceOfAddress
471
+
472
+ def initialize(target_Type = nil, excluded = nil, geoPoint = nil, radiusDistanceUnits = nil, radiusInUnits = nil, address = nil, allowServiceOfAddress = nil)
473
+ @target_Type = target_Type
474
+ @excluded = excluded
475
+ @geoPoint = geoPoint
476
+ @radiusDistanceUnits = radiusDistanceUnits
477
+ @radiusInUnits = radiusInUnits
478
+ @address = address
479
+ @allowServiceOfAddress = allowServiceOfAddress
480
+ end
481
+ end
482
+
483
+ # ApiError
484
+ # abstract
485
+ # - fieldPath - SOAP::SOAPString
486
+ # - trigger - SOAP::SOAPString
487
+ # - errorString - SOAP::SOAPString
488
+ # - apiError_Type - SOAP::SOAPString
489
+ class ApiError
490
+ attr_accessor :fieldPath
491
+ attr_accessor :trigger
492
+ attr_accessor :errorString
493
+ attr_accessor :apiError_Type
494
+
495
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil)
496
+ @fieldPath = fieldPath
497
+ @trigger = trigger
498
+ @errorString = errorString
499
+ @apiError_Type = apiError_Type
500
+ end
501
+ end
502
+
503
+ # AdGroupCriterionError
504
+ # - fieldPath - SOAP::SOAPString
505
+ # - trigger - SOAP::SOAPString
506
+ # - errorString - SOAP::SOAPString
507
+ # - apiError_Type - SOAP::SOAPString
508
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::AdGroupCriterionErrorReason
509
+ class AdGroupCriterionError < ApiError
510
+ attr_accessor :fieldPath
511
+ attr_accessor :trigger
512
+ attr_accessor :errorString
513
+ attr_accessor :apiError_Type
514
+ attr_accessor :reason
515
+
516
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
517
+ @fieldPath = fieldPath
518
+ @trigger = trigger
519
+ @errorString = errorString
520
+ @apiError_Type = apiError_Type
521
+ @reason = reason
522
+ end
523
+ end
524
+
525
+ # AuthenticationError
526
+ # - fieldPath - SOAP::SOAPString
527
+ # - trigger - SOAP::SOAPString
528
+ # - errorString - SOAP::SOAPString
529
+ # - apiError_Type - SOAP::SOAPString
530
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::AuthenticationErrorReason
531
+ class AuthenticationError < ApiError
532
+ attr_accessor :fieldPath
533
+ attr_accessor :trigger
534
+ attr_accessor :errorString
535
+ attr_accessor :apiError_Type
536
+ attr_accessor :reason
537
+
538
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
539
+ @fieldPath = fieldPath
540
+ @trigger = trigger
541
+ @errorString = errorString
542
+ @apiError_Type = apiError_Type
543
+ @reason = reason
544
+ end
545
+ end
546
+
547
+ # AuthorizationError
548
+ # - fieldPath - SOAP::SOAPString
549
+ # - trigger - SOAP::SOAPString
550
+ # - errorString - SOAP::SOAPString
551
+ # - apiError_Type - SOAP::SOAPString
552
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::AuthorizationErrorReason
553
+ class AuthorizationError < ApiError
554
+ attr_accessor :fieldPath
555
+ attr_accessor :trigger
556
+ attr_accessor :errorString
557
+ attr_accessor :apiError_Type
558
+ attr_accessor :reason
559
+
560
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
561
+ @fieldPath = fieldPath
562
+ @trigger = trigger
563
+ @errorString = errorString
564
+ @apiError_Type = apiError_Type
565
+ @reason = reason
566
+ end
567
+ end
568
+
569
+ # BiddingError
570
+ # - fieldPath - SOAP::SOAPString
571
+ # - trigger - SOAP::SOAPString
572
+ # - errorString - SOAP::SOAPString
573
+ # - apiError_Type - SOAP::SOAPString
574
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::BiddingErrorReason
575
+ class BiddingError < ApiError
576
+ attr_accessor :fieldPath
577
+ attr_accessor :trigger
578
+ attr_accessor :errorString
579
+ attr_accessor :apiError_Type
580
+ attr_accessor :reason
581
+
582
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
583
+ @fieldPath = fieldPath
584
+ @trigger = trigger
585
+ @errorString = errorString
586
+ @apiError_Type = apiError_Type
587
+ @reason = reason
588
+ end
589
+ end
590
+
591
+ # BudgetError
592
+ # - fieldPath - SOAP::SOAPString
593
+ # - trigger - SOAP::SOAPString
594
+ # - errorString - SOAP::SOAPString
595
+ # - apiError_Type - SOAP::SOAPString
596
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::BudgetErrorReason
597
+ class BudgetError < ApiError
598
+ attr_accessor :fieldPath
599
+ attr_accessor :trigger
600
+ attr_accessor :errorString
601
+ attr_accessor :apiError_Type
602
+ attr_accessor :reason
603
+
604
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
605
+ @fieldPath = fieldPath
606
+ @trigger = trigger
607
+ @errorString = errorString
608
+ @apiError_Type = apiError_Type
609
+ @reason = reason
610
+ end
611
+ end
612
+
613
+ # ClientTermsError
614
+ # - fieldPath - SOAP::SOAPString
615
+ # - trigger - SOAP::SOAPString
616
+ # - errorString - SOAP::SOAPString
617
+ # - apiError_Type - SOAP::SOAPString
618
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::ClientTermsErrorReason
619
+ class ClientTermsError < ApiError
620
+ attr_accessor :fieldPath
621
+ attr_accessor :trigger
622
+ attr_accessor :errorString
623
+ attr_accessor :apiError_Type
624
+ attr_accessor :reason
625
+
626
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
627
+ @fieldPath = fieldPath
628
+ @trigger = trigger
629
+ @errorString = errorString
630
+ @apiError_Type = apiError_Type
631
+ @reason = reason
632
+ end
633
+ end
634
+
635
+ # DateError
636
+ # - fieldPath - SOAP::SOAPString
637
+ # - trigger - SOAP::SOAPString
638
+ # - errorString - SOAP::SOAPString
639
+ # - apiError_Type - SOAP::SOAPString
640
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::DateErrorReason
641
+ class DateError < ApiError
642
+ attr_accessor :fieldPath
643
+ attr_accessor :trigger
644
+ attr_accessor :errorString
645
+ attr_accessor :apiError_Type
646
+ attr_accessor :reason
647
+
648
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
649
+ @fieldPath = fieldPath
650
+ @trigger = trigger
651
+ @errorString = errorString
652
+ @apiError_Type = apiError_Type
653
+ @reason = reason
654
+ end
655
+ end
656
+
657
+ # DistinctError
658
+ # - fieldPath - SOAP::SOAPString
659
+ # - trigger - SOAP::SOAPString
660
+ # - errorString - SOAP::SOAPString
661
+ # - apiError_Type - SOAP::SOAPString
662
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::DistinctErrorReason
663
+ class DistinctError < ApiError
664
+ attr_accessor :fieldPath
665
+ attr_accessor :trigger
666
+ attr_accessor :errorString
667
+ attr_accessor :apiError_Type
668
+ attr_accessor :reason
669
+
670
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
671
+ @fieldPath = fieldPath
672
+ @trigger = trigger
673
+ @errorString = errorString
674
+ @apiError_Type = apiError_Type
675
+ @reason = reason
676
+ end
677
+ end
678
+
679
+ # EntityCountLimitExceeded
680
+ # - fieldPath - SOAP::SOAPString
681
+ # - trigger - SOAP::SOAPString
682
+ # - errorString - SOAP::SOAPString
683
+ # - apiError_Type - SOAP::SOAPString
684
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::EntityCountLimitExceededReason
685
+ # - enclosingId - SOAP::SOAPString
686
+ # - limit - SOAP::SOAPInt
687
+ class EntityCountLimitExceeded < ApiError
688
+ attr_accessor :fieldPath
689
+ attr_accessor :trigger
690
+ attr_accessor :errorString
691
+ attr_accessor :apiError_Type
692
+ attr_accessor :reason
693
+ attr_accessor :enclosingId
694
+ attr_accessor :limit
695
+
696
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, enclosingId = nil, limit = nil)
697
+ @fieldPath = fieldPath
698
+ @trigger = trigger
699
+ @errorString = errorString
700
+ @apiError_Type = apiError_Type
701
+ @reason = reason
702
+ @enclosingId = enclosingId
703
+ @limit = limit
704
+ end
705
+ end
706
+
707
+ # AdGroupCriterionLimitExceeded
708
+ # - fieldPath - SOAP::SOAPString
709
+ # - trigger - SOAP::SOAPString
710
+ # - errorString - SOAP::SOAPString
711
+ # - apiError_Type - SOAP::SOAPString
712
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::EntityCountLimitExceededReason
713
+ # - enclosingId - SOAP::SOAPString
714
+ # - limit - SOAP::SOAPInt
715
+ # - limitType - AdwordsApi::V201003::TargetingIdeaService::AdGroupCriterionLimitExceededCriteriaLimitType
716
+ class AdGroupCriterionLimitExceeded < EntityCountLimitExceeded
717
+ attr_accessor :fieldPath
718
+ attr_accessor :trigger
719
+ attr_accessor :errorString
720
+ attr_accessor :apiError_Type
721
+ attr_accessor :reason
722
+ attr_accessor :enclosingId
723
+ attr_accessor :limit
724
+ attr_accessor :limitType
725
+
726
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, enclosingId = nil, limit = nil, limitType = nil)
727
+ @fieldPath = fieldPath
728
+ @trigger = trigger
729
+ @errorString = errorString
730
+ @apiError_Type = apiError_Type
731
+ @reason = reason
732
+ @enclosingId = enclosingId
733
+ @limit = limit
734
+ @limitType = limitType
735
+ end
736
+ end
737
+
738
+ # EntityNotFound
739
+ # - fieldPath - SOAP::SOAPString
740
+ # - trigger - SOAP::SOAPString
741
+ # - errorString - SOAP::SOAPString
742
+ # - apiError_Type - SOAP::SOAPString
743
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::EntityNotFoundReason
744
+ class EntityNotFound < ApiError
745
+ attr_accessor :fieldPath
746
+ attr_accessor :trigger
747
+ attr_accessor :errorString
748
+ attr_accessor :apiError_Type
749
+ attr_accessor :reason
750
+
751
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
752
+ @fieldPath = fieldPath
753
+ @trigger = trigger
754
+ @errorString = errorString
755
+ @apiError_Type = apiError_Type
756
+ @reason = reason
757
+ end
758
+ end
759
+
760
+ # InternalApiError
761
+ # - fieldPath - SOAP::SOAPString
762
+ # - trigger - SOAP::SOAPString
763
+ # - errorString - SOAP::SOAPString
764
+ # - apiError_Type - SOAP::SOAPString
765
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::InternalApiErrorReason
766
+ class InternalApiError < ApiError
767
+ attr_accessor :fieldPath
768
+ attr_accessor :trigger
769
+ attr_accessor :errorString
770
+ attr_accessor :apiError_Type
771
+ attr_accessor :reason
772
+
773
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
774
+ @fieldPath = fieldPath
775
+ @trigger = trigger
776
+ @errorString = errorString
777
+ @apiError_Type = apiError_Type
778
+ @reason = reason
779
+ end
780
+ end
781
+
782
+ # NotEmptyError
783
+ # - fieldPath - SOAP::SOAPString
784
+ # - trigger - SOAP::SOAPString
785
+ # - errorString - SOAP::SOAPString
786
+ # - apiError_Type - SOAP::SOAPString
787
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::NotEmptyErrorReason
788
+ class NotEmptyError < ApiError
789
+ attr_accessor :fieldPath
790
+ attr_accessor :trigger
791
+ attr_accessor :errorString
792
+ attr_accessor :apiError_Type
793
+ attr_accessor :reason
794
+
795
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
796
+ @fieldPath = fieldPath
797
+ @trigger = trigger
798
+ @errorString = errorString
799
+ @apiError_Type = apiError_Type
800
+ @reason = reason
801
+ end
802
+ end
803
+
804
+ # NotWhitelistedError
805
+ # - fieldPath - SOAP::SOAPString
806
+ # - trigger - SOAP::SOAPString
807
+ # - errorString - SOAP::SOAPString
808
+ # - apiError_Type - SOAP::SOAPString
809
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::NotWhitelistedErrorReason
810
+ class NotWhitelistedError < ApiError
811
+ attr_accessor :fieldPath
812
+ attr_accessor :trigger
813
+ attr_accessor :errorString
814
+ attr_accessor :apiError_Type
815
+ attr_accessor :reason
816
+
817
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
818
+ @fieldPath = fieldPath
819
+ @trigger = trigger
820
+ @errorString = errorString
821
+ @apiError_Type = apiError_Type
822
+ @reason = reason
823
+ end
824
+ end
825
+
826
+ # NullError
827
+ # - fieldPath - SOAP::SOAPString
828
+ # - trigger - SOAP::SOAPString
829
+ # - errorString - SOAP::SOAPString
830
+ # - apiError_Type - SOAP::SOAPString
831
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::NullErrorReason
832
+ class NullError < ApiError
833
+ attr_accessor :fieldPath
834
+ attr_accessor :trigger
835
+ attr_accessor :errorString
836
+ attr_accessor :apiError_Type
837
+ attr_accessor :reason
838
+
839
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
840
+ @fieldPath = fieldPath
841
+ @trigger = trigger
842
+ @errorString = errorString
843
+ @apiError_Type = apiError_Type
844
+ @reason = reason
845
+ end
846
+ end
847
+
848
+ # QuotaCheckError
849
+ # - fieldPath - SOAP::SOAPString
850
+ # - trigger - SOAP::SOAPString
851
+ # - errorString - SOAP::SOAPString
852
+ # - apiError_Type - SOAP::SOAPString
853
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::QuotaCheckErrorReason
854
+ class QuotaCheckError < ApiError
855
+ attr_accessor :fieldPath
856
+ attr_accessor :trigger
857
+ attr_accessor :errorString
858
+ attr_accessor :apiError_Type
859
+ attr_accessor :reason
860
+
861
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
862
+ @fieldPath = fieldPath
863
+ @trigger = trigger
864
+ @errorString = errorString
865
+ @apiError_Type = apiError_Type
866
+ @reason = reason
867
+ end
868
+ end
869
+
870
+ # RangeError
871
+ # - fieldPath - SOAP::SOAPString
872
+ # - trigger - SOAP::SOAPString
873
+ # - errorString - SOAP::SOAPString
874
+ # - apiError_Type - SOAP::SOAPString
875
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::RangeErrorReason
876
+ class C_RangeError < ApiError
877
+ attr_accessor :fieldPath
878
+ attr_accessor :trigger
879
+ attr_accessor :errorString
880
+ attr_accessor :apiError_Type
881
+ attr_accessor :reason
882
+
883
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
884
+ @fieldPath = fieldPath
885
+ @trigger = trigger
886
+ @errorString = errorString
887
+ @apiError_Type = apiError_Type
888
+ @reason = reason
889
+ end
890
+ end
891
+
892
+ # RateExceededError
893
+ # - fieldPath - SOAP::SOAPString
894
+ # - trigger - SOAP::SOAPString
895
+ # - errorString - SOAP::SOAPString
896
+ # - apiError_Type - SOAP::SOAPString
897
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::RateExceededErrorReason
898
+ # - rateName - SOAP::SOAPString
899
+ # - rateScope - SOAP::SOAPString
900
+ # - retryAfterSeconds - SOAP::SOAPInt
901
+ class RateExceededError < ApiError
902
+ attr_accessor :fieldPath
903
+ attr_accessor :trigger
904
+ attr_accessor :errorString
905
+ attr_accessor :apiError_Type
906
+ attr_accessor :reason
907
+ attr_accessor :rateName
908
+ attr_accessor :rateScope
909
+ attr_accessor :retryAfterSeconds
910
+
911
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil, rateName = nil, rateScope = nil, retryAfterSeconds = nil)
912
+ @fieldPath = fieldPath
913
+ @trigger = trigger
914
+ @errorString = errorString
915
+ @apiError_Type = apiError_Type
916
+ @reason = reason
917
+ @rateName = rateName
918
+ @rateScope = rateScope
919
+ @retryAfterSeconds = retryAfterSeconds
920
+ end
921
+ end
922
+
923
+ # ReadOnlyError
924
+ # - fieldPath - SOAP::SOAPString
925
+ # - trigger - SOAP::SOAPString
926
+ # - errorString - SOAP::SOAPString
927
+ # - apiError_Type - SOAP::SOAPString
928
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::ReadOnlyErrorReason
929
+ class ReadOnlyError < ApiError
930
+ attr_accessor :fieldPath
931
+ attr_accessor :trigger
932
+ attr_accessor :errorString
933
+ attr_accessor :apiError_Type
934
+ attr_accessor :reason
935
+
936
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
937
+ @fieldPath = fieldPath
938
+ @trigger = trigger
939
+ @errorString = errorString
940
+ @apiError_Type = apiError_Type
941
+ @reason = reason
942
+ end
943
+ end
944
+
945
+ # RegionCodeError
946
+ # - fieldPath - SOAP::SOAPString
947
+ # - trigger - SOAP::SOAPString
948
+ # - errorString - SOAP::SOAPString
949
+ # - apiError_Type - SOAP::SOAPString
950
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::RegionCodeErrorReason
951
+ class RegionCodeError < ApiError
952
+ attr_accessor :fieldPath
953
+ attr_accessor :trigger
954
+ attr_accessor :errorString
955
+ attr_accessor :apiError_Type
956
+ attr_accessor :reason
957
+
958
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
959
+ @fieldPath = fieldPath
960
+ @trigger = trigger
961
+ @errorString = errorString
962
+ @apiError_Type = apiError_Type
963
+ @reason = reason
964
+ end
965
+ end
966
+
967
+ # RequestError
968
+ # - fieldPath - SOAP::SOAPString
969
+ # - trigger - SOAP::SOAPString
970
+ # - errorString - SOAP::SOAPString
971
+ # - apiError_Type - SOAP::SOAPString
972
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::RequestErrorReason
973
+ class RequestError < ApiError
974
+ attr_accessor :fieldPath
975
+ attr_accessor :trigger
976
+ attr_accessor :errorString
977
+ attr_accessor :apiError_Type
978
+ attr_accessor :reason
979
+
980
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
981
+ @fieldPath = fieldPath
982
+ @trigger = trigger
983
+ @errorString = errorString
984
+ @apiError_Type = apiError_Type
985
+ @reason = reason
986
+ end
987
+ end
988
+
989
+ # RequiredError
990
+ # - fieldPath - SOAP::SOAPString
991
+ # - trigger - SOAP::SOAPString
992
+ # - errorString - SOAP::SOAPString
993
+ # - apiError_Type - SOAP::SOAPString
994
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::RequiredErrorReason
995
+ class RequiredError < ApiError
996
+ attr_accessor :fieldPath
997
+ attr_accessor :trigger
998
+ attr_accessor :errorString
999
+ attr_accessor :apiError_Type
1000
+ attr_accessor :reason
1001
+
1002
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1003
+ @fieldPath = fieldPath
1004
+ @trigger = trigger
1005
+ @errorString = errorString
1006
+ @apiError_Type = apiError_Type
1007
+ @reason = reason
1008
+ end
1009
+ end
1010
+
1011
+ # SizeLimitError
1012
+ # - fieldPath - SOAP::SOAPString
1013
+ # - trigger - SOAP::SOAPString
1014
+ # - errorString - SOAP::SOAPString
1015
+ # - apiError_Type - SOAP::SOAPString
1016
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::SizeLimitErrorReason
1017
+ class SizeLimitError < ApiError
1018
+ attr_accessor :fieldPath
1019
+ attr_accessor :trigger
1020
+ attr_accessor :errorString
1021
+ attr_accessor :apiError_Type
1022
+ attr_accessor :reason
1023
+
1024
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1025
+ @fieldPath = fieldPath
1026
+ @trigger = trigger
1027
+ @errorString = errorString
1028
+ @apiError_Type = apiError_Type
1029
+ @reason = reason
1030
+ end
1031
+ end
1032
+
1033
+ # StatsQueryError
1034
+ # - fieldPath - SOAP::SOAPString
1035
+ # - trigger - SOAP::SOAPString
1036
+ # - errorString - SOAP::SOAPString
1037
+ # - apiError_Type - SOAP::SOAPString
1038
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::StatsQueryErrorReason
1039
+ class StatsQueryError < ApiError
1040
+ attr_accessor :fieldPath
1041
+ attr_accessor :trigger
1042
+ attr_accessor :errorString
1043
+ attr_accessor :apiError_Type
1044
+ attr_accessor :reason
1045
+
1046
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1047
+ @fieldPath = fieldPath
1048
+ @trigger = trigger
1049
+ @errorString = errorString
1050
+ @apiError_Type = apiError_Type
1051
+ @reason = reason
1052
+ end
1053
+ end
1054
+
1055
+ # StringLengthError
1056
+ # - fieldPath - SOAP::SOAPString
1057
+ # - trigger - SOAP::SOAPString
1058
+ # - errorString - SOAP::SOAPString
1059
+ # - apiError_Type - SOAP::SOAPString
1060
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::StringLengthErrorReason
1061
+ class StringLengthError < ApiError
1062
+ attr_accessor :fieldPath
1063
+ attr_accessor :trigger
1064
+ attr_accessor :errorString
1065
+ attr_accessor :apiError_Type
1066
+ attr_accessor :reason
1067
+
1068
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1069
+ @fieldPath = fieldPath
1070
+ @trigger = trigger
1071
+ @errorString = errorString
1072
+ @apiError_Type = apiError_Type
1073
+ @reason = reason
1074
+ end
1075
+ end
1076
+
1077
+ # TargetError
1078
+ # - fieldPath - SOAP::SOAPString
1079
+ # - trigger - SOAP::SOAPString
1080
+ # - errorString - SOAP::SOAPString
1081
+ # - apiError_Type - SOAP::SOAPString
1082
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::TargetErrorReason
1083
+ class TargetError < ApiError
1084
+ attr_accessor :fieldPath
1085
+ attr_accessor :trigger
1086
+ attr_accessor :errorString
1087
+ attr_accessor :apiError_Type
1088
+ attr_accessor :reason
1089
+
1090
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1091
+ @fieldPath = fieldPath
1092
+ @trigger = trigger
1093
+ @errorString = errorString
1094
+ @apiError_Type = apiError_Type
1095
+ @reason = reason
1096
+ end
1097
+ end
1098
+
1099
+ # DatabaseError
1100
+ # - fieldPath - SOAP::SOAPString
1101
+ # - trigger - SOAP::SOAPString
1102
+ # - errorString - SOAP::SOAPString
1103
+ # - apiError_Type - SOAP::SOAPString
1104
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::DatabaseErrorReason
1105
+ class DatabaseError < ApiError
1106
+ attr_accessor :fieldPath
1107
+ attr_accessor :trigger
1108
+ attr_accessor :errorString
1109
+ attr_accessor :apiError_Type
1110
+ attr_accessor :reason
1111
+
1112
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1113
+ @fieldPath = fieldPath
1114
+ @trigger = trigger
1115
+ @errorString = errorString
1116
+ @apiError_Type = apiError_Type
1117
+ @reason = reason
1118
+ end
1119
+ end
1120
+
1121
+ # PolicyViolationError
1122
+ # - fieldPath - SOAP::SOAPString
1123
+ # - trigger - SOAP::SOAPString
1124
+ # - errorString - SOAP::SOAPString
1125
+ # - apiError_Type - SOAP::SOAPString
1126
+ # - key - AdwordsApi::V201003::TargetingIdeaService::PolicyViolationKey
1127
+ # - externalPolicyName - SOAP::SOAPString
1128
+ # - externalPolicyUrl - SOAP::SOAPString
1129
+ # - externalPolicyDescription - SOAP::SOAPString
1130
+ # - isExemptable - SOAP::SOAPBoolean
1131
+ # - violatingParts - AdwordsApi::V201003::TargetingIdeaService::PolicyViolationErrorPart
1132
+ class PolicyViolationError < ApiError
1133
+ attr_accessor :fieldPath
1134
+ attr_accessor :trigger
1135
+ attr_accessor :errorString
1136
+ attr_accessor :apiError_Type
1137
+ attr_accessor :key
1138
+ attr_accessor :externalPolicyName
1139
+ attr_accessor :externalPolicyUrl
1140
+ attr_accessor :externalPolicyDescription
1141
+ attr_accessor :isExemptable
1142
+ attr_accessor :violatingParts
1143
+
1144
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, key = nil, externalPolicyName = nil, externalPolicyUrl = nil, externalPolicyDescription = nil, isExemptable = nil, violatingParts = [])
1145
+ @fieldPath = fieldPath
1146
+ @trigger = trigger
1147
+ @errorString = errorString
1148
+ @apiError_Type = apiError_Type
1149
+ @key = key
1150
+ @externalPolicyName = externalPolicyName
1151
+ @externalPolicyUrl = externalPolicyUrl
1152
+ @externalPolicyDescription = externalPolicyDescription
1153
+ @isExemptable = isExemptable
1154
+ @violatingParts = violatingParts
1155
+ end
1156
+ end
1157
+
1158
+ # CriterionPolicyError
1159
+ # - fieldPath - SOAP::SOAPString
1160
+ # - trigger - SOAP::SOAPString
1161
+ # - errorString - SOAP::SOAPString
1162
+ # - apiError_Type - SOAP::SOAPString
1163
+ # - key - AdwordsApi::V201003::TargetingIdeaService::PolicyViolationKey
1164
+ # - externalPolicyName - SOAP::SOAPString
1165
+ # - externalPolicyUrl - SOAP::SOAPString
1166
+ # - externalPolicyDescription - SOAP::SOAPString
1167
+ # - isExemptable - SOAP::SOAPBoolean
1168
+ # - violatingParts - AdwordsApi::V201003::TargetingIdeaService::PolicyViolationErrorPart
1169
+ class CriterionPolicyError < PolicyViolationError
1170
+ attr_accessor :fieldPath
1171
+ attr_accessor :trigger
1172
+ attr_accessor :errorString
1173
+ attr_accessor :apiError_Type
1174
+ attr_accessor :key
1175
+ attr_accessor :externalPolicyName
1176
+ attr_accessor :externalPolicyUrl
1177
+ attr_accessor :externalPolicyDescription
1178
+ attr_accessor :isExemptable
1179
+ attr_accessor :violatingParts
1180
+
1181
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, key = nil, externalPolicyName = nil, externalPolicyUrl = nil, externalPolicyDescription = nil, isExemptable = nil, violatingParts = [])
1182
+ @fieldPath = fieldPath
1183
+ @trigger = trigger
1184
+ @errorString = errorString
1185
+ @apiError_Type = apiError_Type
1186
+ @key = key
1187
+ @externalPolicyName = externalPolicyName
1188
+ @externalPolicyUrl = externalPolicyUrl
1189
+ @externalPolicyDescription = externalPolicyDescription
1190
+ @isExemptable = isExemptable
1191
+ @violatingParts = violatingParts
1192
+ end
1193
+ end
1194
+
1195
+ # CollectionSizeError
1196
+ # - fieldPath - SOAP::SOAPString
1197
+ # - trigger - SOAP::SOAPString
1198
+ # - errorString - SOAP::SOAPString
1199
+ # - apiError_Type - SOAP::SOAPString
1200
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::CollectionSizeErrorReason
1201
+ class CollectionSizeError < ApiError
1202
+ attr_accessor :fieldPath
1203
+ attr_accessor :trigger
1204
+ attr_accessor :errorString
1205
+ attr_accessor :apiError_Type
1206
+ attr_accessor :reason
1207
+
1208
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1209
+ @fieldPath = fieldPath
1210
+ @trigger = trigger
1211
+ @errorString = errorString
1212
+ @apiError_Type = apiError_Type
1213
+ @reason = reason
1214
+ end
1215
+ end
1216
+
1217
+ # TargetingIdeaError
1218
+ # - fieldPath - SOAP::SOAPString
1219
+ # - trigger - SOAP::SOAPString
1220
+ # - errorString - SOAP::SOAPString
1221
+ # - apiError_Type - SOAP::SOAPString
1222
+ # - reason - AdwordsApi::V201003::TargetingIdeaService::TargetingIdeaErrorReason
1223
+ class TargetingIdeaError < ApiError
1224
+ attr_accessor :fieldPath
1225
+ attr_accessor :trigger
1226
+ attr_accessor :errorString
1227
+ attr_accessor :apiError_Type
1228
+ attr_accessor :reason
1229
+
1230
+ def initialize(fieldPath = nil, trigger = nil, errorString = nil, apiError_Type = nil, reason = nil)
1231
+ @fieldPath = fieldPath
1232
+ @trigger = trigger
1233
+ @errorString = errorString
1234
+ @apiError_Type = apiError_Type
1235
+ @reason = reason
1236
+ end
1237
+ end
1238
+
1239
+ # ApplicationException
1240
+ # - message - SOAP::SOAPString
1241
+ # - applicationException_Type - SOAP::SOAPString
1242
+ class ApplicationException
1243
+ attr_accessor :message
1244
+ attr_accessor :applicationException_Type
1245
+
1246
+ def initialize(message = nil, applicationException_Type = nil)
1247
+ @message = message
1248
+ @applicationException_Type = applicationException_Type
1249
+ end
1250
+ end
1251
+
1252
+ # ApiException
1253
+ # - message - SOAP::SOAPString
1254
+ # - applicationException_Type - SOAP::SOAPString
1255
+ # - errors - AdwordsApi::V201003::TargetingIdeaService::ApiError
1256
+ class ApiException < ApplicationException
1257
+ attr_accessor :message
1258
+ attr_accessor :applicationException_Type
1259
+ attr_accessor :errors
1260
+
1261
+ def initialize(message = nil, applicationException_Type = nil, errors = [])
1262
+ @message = message
1263
+ @applicationException_Type = applicationException_Type
1264
+ @errors = errors
1265
+ end
1266
+ end
1267
+
1268
+ # Criterion
1269
+ # - id - SOAP::SOAPLong
1270
+ # - criterion_Type - SOAP::SOAPString
1271
+ class Criterion
1272
+ attr_accessor :id
1273
+ attr_accessor :criterion_Type
1274
+
1275
+ def initialize(id = nil, criterion_Type = nil)
1276
+ @id = id
1277
+ @criterion_Type = criterion_Type
1278
+ end
1279
+ end
1280
+
1281
+ # Keyword
1282
+ # - id - SOAP::SOAPLong
1283
+ # - criterion_Type - SOAP::SOAPString
1284
+ # - text - SOAP::SOAPString
1285
+ # - matchType - AdwordsApi::V201003::TargetingIdeaService::KeywordMatchType
1286
+ class Keyword < Criterion
1287
+ attr_accessor :id
1288
+ attr_accessor :criterion_Type
1289
+ attr_accessor :text
1290
+ attr_accessor :matchType
1291
+
1292
+ def initialize(id = nil, criterion_Type = nil, text = nil, matchType = nil)
1293
+ @id = id
1294
+ @criterion_Type = criterion_Type
1295
+ @text = text
1296
+ @matchType = matchType
1297
+ end
1298
+ end
1299
+
1300
+ # Placement
1301
+ # - id - SOAP::SOAPLong
1302
+ # - criterion_Type - SOAP::SOAPString
1303
+ # - url - SOAP::SOAPString
1304
+ class Placement < Criterion
1305
+ attr_accessor :id
1306
+ attr_accessor :criterion_Type
1307
+ attr_accessor :url
1308
+
1309
+ def initialize(id = nil, criterion_Type = nil, url = nil)
1310
+ @id = id
1311
+ @criterion_Type = criterion_Type
1312
+ @url = url
1313
+ end
1314
+ end
1315
+
1316
+ # Vertical
1317
+ # - id - SOAP::SOAPLong
1318
+ # - criterion_Type - SOAP::SOAPString
1319
+ # - path - SOAP::SOAPString
1320
+ class Vertical < Criterion
1321
+ attr_accessor :id
1322
+ attr_accessor :criterion_Type
1323
+ attr_accessor :path
1324
+
1325
+ def initialize(id = nil, criterion_Type = nil, path = [])
1326
+ @id = id
1327
+ @criterion_Type = criterion_Type
1328
+ @path = path
1329
+ end
1330
+ end
1331
+
1332
+ # AdFormatSpec
1333
+ # - format - AdwordsApi::V201003::TargetingIdeaService::SiteConstantsAdFormat
1334
+ class AdFormatSpec
1335
+ attr_accessor :format
1336
+
1337
+ def initialize(format = nil)
1338
+ @format = format
1339
+ end
1340
+ end
1341
+
1342
+ # DoubleComparisonOperation
1343
+ # - minimum - SOAP::SOAPDouble
1344
+ # - maximum - SOAP::SOAPDouble
1345
+ # - excludes - SOAP::SOAPDouble
1346
+ class DoubleComparisonOperation
1347
+ attr_accessor :minimum
1348
+ attr_accessor :maximum
1349
+ attr_accessor :excludes
1350
+
1351
+ def initialize(minimum = nil, maximum = nil, excludes = [])
1352
+ @minimum = minimum
1353
+ @maximum = maximum
1354
+ @excludes = excludes
1355
+ end
1356
+ end
1357
+
1358
+ # InStreamAdInfo
1359
+ # - maxAdDuration - SOAP::SOAPInt
1360
+ # - minAdDuration - SOAP::SOAPInt
1361
+ # - medianAdDuration - SOAP::SOAPInt
1362
+ # - preRollPercent - SOAP::SOAPDouble
1363
+ # - midRollPercent - SOAP::SOAPDouble
1364
+ # - postRollPercent - SOAP::SOAPDouble
1365
+ class InStreamAdInfo
1366
+ attr_accessor :maxAdDuration
1367
+ attr_accessor :minAdDuration
1368
+ attr_accessor :medianAdDuration
1369
+ attr_accessor :preRollPercent
1370
+ attr_accessor :midRollPercent
1371
+ attr_accessor :postRollPercent
1372
+
1373
+ def initialize(maxAdDuration = nil, minAdDuration = nil, medianAdDuration = nil, preRollPercent = nil, midRollPercent = nil, postRollPercent = nil)
1374
+ @maxAdDuration = maxAdDuration
1375
+ @minAdDuration = minAdDuration
1376
+ @medianAdDuration = medianAdDuration
1377
+ @preRollPercent = preRollPercent
1378
+ @midRollPercent = midRollPercent
1379
+ @postRollPercent = postRollPercent
1380
+ end
1381
+ end
1382
+
1383
+ # LongComparisonOperation
1384
+ # - minimum - SOAP::SOAPLong
1385
+ # - maximum - SOAP::SOAPLong
1386
+ # - excludes - SOAP::SOAPLong
1387
+ class LongComparisonOperation
1388
+ attr_accessor :minimum
1389
+ attr_accessor :maximum
1390
+ attr_accessor :excludes
1391
+
1392
+ def initialize(minimum = nil, maximum = nil, excludes = [])
1393
+ @minimum = minimum
1394
+ @maximum = maximum
1395
+ @excludes = excludes
1396
+ end
1397
+ end
1398
+
1399
+ # MonthlySearchVolume
1400
+ # - year - SOAP::SOAPInt
1401
+ # - month - SOAP::SOAPInt
1402
+ # - count - SOAP::SOAPLong
1403
+ class MonthlySearchVolume
1404
+ attr_accessor :year
1405
+ attr_accessor :month
1406
+ attr_accessor :count
1407
+
1408
+ def initialize(year = nil, month = nil, count = nil)
1409
+ @year = year
1410
+ @month = month
1411
+ @count = count
1412
+ end
1413
+ end
1414
+
1415
+ # WebpageDescriptor
1416
+ # - url - SOAP::SOAPString
1417
+ # - title - SOAP::SOAPString
1418
+ class WebpageDescriptor
1419
+ attr_accessor :url
1420
+ attr_accessor :title
1421
+
1422
+ def initialize(url = nil, title = nil)
1423
+ @url = url
1424
+ @title = title
1425
+ end
1426
+ end
1427
+
1428
+ # Range
1429
+ # - min - AdwordsApi::V201003::TargetingIdeaService::ComparableValue
1430
+ # - max - AdwordsApi::V201003::TargetingIdeaService::ComparableValue
1431
+ class C_Range
1432
+ attr_accessor :min
1433
+ attr_accessor :max
1434
+
1435
+ def initialize(min = nil, max = nil)
1436
+ @min = min
1437
+ @max = max
1438
+ end
1439
+ end
1440
+
1441
+ # SearchParameter
1442
+ # abstract
1443
+ # - searchParameter_Type - SOAP::SOAPString
1444
+ class SearchParameter
1445
+ attr_accessor :searchParameter_Type
1446
+
1447
+ def initialize(searchParameter_Type = nil)
1448
+ @searchParameter_Type = searchParameter_Type
1449
+ end
1450
+ end
1451
+
1452
+ # AdTypeSearchParameter
1453
+ # - searchParameter_Type - SOAP::SOAPString
1454
+ # - adTypes - AdwordsApi::V201003::TargetingIdeaService::SiteConstantsAdType
1455
+ class AdTypeSearchParameter < SearchParameter
1456
+ attr_accessor :searchParameter_Type
1457
+ attr_accessor :adTypes
1458
+
1459
+ def initialize(searchParameter_Type = nil, adTypes = [])
1460
+ @searchParameter_Type = searchParameter_Type
1461
+ @adTypes = adTypes
1462
+ end
1463
+ end
1464
+
1465
+ # CompetitionSearchParameter
1466
+ # - searchParameter_Type - SOAP::SOAPString
1467
+ # - levels - AdwordsApi::V201003::TargetingIdeaService::CompetitionSearchParameterLevel
1468
+ class CompetitionSearchParameter < SearchParameter
1469
+ attr_accessor :searchParameter_Type
1470
+ attr_accessor :levels
1471
+
1472
+ def initialize(searchParameter_Type = nil, levels = [])
1473
+ @searchParameter_Type = searchParameter_Type
1474
+ @levels = levels
1475
+ end
1476
+ end
1477
+
1478
+ # IdeaTextMatchesSearchParameter
1479
+ # - searchParameter_Type - SOAP::SOAPString
1480
+ # - included - SOAP::SOAPString
1481
+ # - excluded - SOAP::SOAPString
1482
+ # - priorityAction - AdwordsApi::V201003::TargetingIdeaService::MatchAction
1483
+ class IdeaTextMatchesSearchParameter < SearchParameter
1484
+ attr_accessor :searchParameter_Type
1485
+ attr_accessor :included
1486
+ attr_accessor :excluded
1487
+ attr_accessor :priorityAction
1488
+
1489
+ def initialize(searchParameter_Type = nil, included = [], excluded = [], priorityAction = nil)
1490
+ @searchParameter_Type = searchParameter_Type
1491
+ @included = included
1492
+ @excluded = excluded
1493
+ @priorityAction = priorityAction
1494
+ end
1495
+ end
1496
+
1497
+ # IncludeAdultContentSearchParameter
1498
+ # - searchParameter_Type - SOAP::SOAPString
1499
+ class IncludeAdultContentSearchParameter < SearchParameter
1500
+ attr_accessor :searchParameter_Type
1501
+
1502
+ def initialize(searchParameter_Type = nil)
1503
+ @searchParameter_Type = searchParameter_Type
1504
+ end
1505
+ end
1506
+
1507
+ # KeywordCategoryIdSearchParameter
1508
+ # - searchParameter_Type - SOAP::SOAPString
1509
+ # - categoryId - SOAP::SOAPInt
1510
+ class KeywordCategoryIdSearchParameter < SearchParameter
1511
+ attr_accessor :searchParameter_Type
1512
+ attr_accessor :categoryId
1513
+
1514
+ def initialize(searchParameter_Type = nil, categoryId = nil)
1515
+ @searchParameter_Type = searchParameter_Type
1516
+ @categoryId = categoryId
1517
+ end
1518
+ end
1519
+
1520
+ # KeywordMatchTypeSearchParameter
1521
+ # - searchParameter_Type - SOAP::SOAPString
1522
+ # - keywordMatchTypes - AdwordsApi::V201003::TargetingIdeaService::KeywordMatchType
1523
+ class KeywordMatchTypeSearchParameter < SearchParameter
1524
+ attr_accessor :searchParameter_Type
1525
+ attr_accessor :keywordMatchTypes
1526
+
1527
+ def initialize(searchParameter_Type = nil, keywordMatchTypes = [])
1528
+ @searchParameter_Type = searchParameter_Type
1529
+ @keywordMatchTypes = keywordMatchTypes
1530
+ end
1531
+ end
1532
+
1533
+ # MobileSearchParameter
1534
+ # - searchParameter_Type - SOAP::SOAPString
1535
+ class MobileSearchParameter < SearchParameter
1536
+ attr_accessor :searchParameter_Type
1537
+
1538
+ def initialize(searchParameter_Type = nil)
1539
+ @searchParameter_Type = searchParameter_Type
1540
+ end
1541
+ end
1542
+
1543
+ # PlacementTypeSearchParameter
1544
+ # - searchParameter_Type - SOAP::SOAPString
1545
+ # - placementTypes - AdwordsApi::V201003::TargetingIdeaService::SiteConstantsPlacementType
1546
+ class PlacementTypeSearchParameter < SearchParameter
1547
+ attr_accessor :searchParameter_Type
1548
+ attr_accessor :placementTypes
1549
+
1550
+ def initialize(searchParameter_Type = nil, placementTypes = [])
1551
+ @searchParameter_Type = searchParameter_Type
1552
+ @placementTypes = placementTypes
1553
+ end
1554
+ end
1555
+
1556
+ # RelatedToUrlSearchParameter
1557
+ # - searchParameter_Type - SOAP::SOAPString
1558
+ # - urls - SOAP::SOAPString
1559
+ # - includeSubUrls - SOAP::SOAPBoolean
1560
+ class RelatedToUrlSearchParameter < SearchParameter
1561
+ attr_accessor :searchParameter_Type
1562
+ attr_accessor :urls
1563
+ attr_accessor :includeSubUrls
1564
+
1565
+ def initialize(searchParameter_Type = nil, urls = [], includeSubUrls = nil)
1566
+ @searchParameter_Type = searchParameter_Type
1567
+ @urls = urls
1568
+ @includeSubUrls = includeSubUrls
1569
+ end
1570
+ end
1571
+
1572
+ # SearchShareSearchParameter
1573
+ # - searchParameter_Type - SOAP::SOAPString
1574
+ # - operation - AdwordsApi::V201003::TargetingIdeaService::DoubleComparisonOperation
1575
+ class SearchShareSearchParameter < SearchParameter
1576
+ attr_accessor :searchParameter_Type
1577
+ attr_accessor :operation
1578
+
1579
+ def initialize(searchParameter_Type = nil, operation = nil)
1580
+ @searchParameter_Type = searchParameter_Type
1581
+ @operation = operation
1582
+ end
1583
+ end
1584
+
1585
+ # SeedAdGroupIdSearchParameter
1586
+ # - searchParameter_Type - SOAP::SOAPString
1587
+ # - adGroupId - SOAP::SOAPLong
1588
+ class SeedAdGroupIdSearchParameter < SearchParameter
1589
+ attr_accessor :searchParameter_Type
1590
+ attr_accessor :adGroupId
1591
+
1592
+ def initialize(searchParameter_Type = nil, adGroupId = nil)
1593
+ @searchParameter_Type = searchParameter_Type
1594
+ @adGroupId = adGroupId
1595
+ end
1596
+ end
1597
+
1598
+ # AdShareSearchParameter
1599
+ # - searchParameter_Type - SOAP::SOAPString
1600
+ # - operation - AdwordsApi::V201003::TargetingIdeaService::DoubleComparisonOperation
1601
+ class AdShareSearchParameter < SearchParameter
1602
+ attr_accessor :searchParameter_Type
1603
+ attr_accessor :operation
1604
+
1605
+ def initialize(searchParameter_Type = nil, operation = nil)
1606
+ @searchParameter_Type = searchParameter_Type
1607
+ @operation = operation
1608
+ end
1609
+ end
1610
+
1611
+ # AverageTargetedMonthlySearchesSearchParameter
1612
+ # - searchParameter_Type - SOAP::SOAPString
1613
+ # - operation - AdwordsApi::V201003::TargetingIdeaService::LongComparisonOperation
1614
+ class AverageTargetedMonthlySearchesSearchParameter < SearchParameter
1615
+ attr_accessor :searchParameter_Type
1616
+ attr_accessor :operation
1617
+
1618
+ def initialize(searchParameter_Type = nil, operation = nil)
1619
+ @searchParameter_Type = searchParameter_Type
1620
+ @operation = operation
1621
+ end
1622
+ end
1623
+
1624
+ # GlobalMonthlySearchesSearchParameter
1625
+ # - searchParameter_Type - SOAP::SOAPString
1626
+ # - operation - AdwordsApi::V201003::TargetingIdeaService::LongComparisonOperation
1627
+ class GlobalMonthlySearchesSearchParameter < SearchParameter
1628
+ attr_accessor :searchParameter_Type
1629
+ attr_accessor :operation
1630
+
1631
+ def initialize(searchParameter_Type = nil, operation = nil)
1632
+ @searchParameter_Type = searchParameter_Type
1633
+ @operation = operation
1634
+ end
1635
+ end
1636
+
1637
+ # CountryTargetSearchParameter
1638
+ # - searchParameter_Type - SOAP::SOAPString
1639
+ # - countryTargets - AdwordsApi::V201003::TargetingIdeaService::CountryTarget
1640
+ class CountryTargetSearchParameter < SearchParameter
1641
+ attr_accessor :searchParameter_Type
1642
+ attr_accessor :countryTargets
1643
+
1644
+ def initialize(searchParameter_Type = nil, countryTargets = [])
1645
+ @searchParameter_Type = searchParameter_Type
1646
+ @countryTargets = countryTargets
1647
+ end
1648
+ end
1649
+
1650
+ # LanguageTargetSearchParameter
1651
+ # - searchParameter_Type - SOAP::SOAPString
1652
+ # - languageTargets - AdwordsApi::V201003::TargetingIdeaService::LanguageTarget
1653
+ class LanguageTargetSearchParameter < SearchParameter
1654
+ attr_accessor :searchParameter_Type
1655
+ attr_accessor :languageTargets
1656
+
1657
+ def initialize(searchParameter_Type = nil, languageTargets = [])
1658
+ @searchParameter_Type = searchParameter_Type
1659
+ @languageTargets = languageTargets
1660
+ end
1661
+ end
1662
+
1663
+ # ExcludedKeywordSearchParameter
1664
+ # - searchParameter_Type - SOAP::SOAPString
1665
+ # - keywords - AdwordsApi::V201003::TargetingIdeaService::Keyword
1666
+ class ExcludedKeywordSearchParameter < SearchParameter
1667
+ attr_accessor :searchParameter_Type
1668
+ attr_accessor :keywords
1669
+
1670
+ def initialize(searchParameter_Type = nil, keywords = [])
1671
+ @searchParameter_Type = searchParameter_Type
1672
+ @keywords = keywords
1673
+ end
1674
+ end
1675
+
1676
+ # RelatedToKeywordSearchParameter
1677
+ # - searchParameter_Type - SOAP::SOAPString
1678
+ # - keywords - AdwordsApi::V201003::TargetingIdeaService::Keyword
1679
+ class RelatedToKeywordSearchParameter < SearchParameter
1680
+ attr_accessor :searchParameter_Type
1681
+ attr_accessor :keywords
1682
+
1683
+ def initialize(searchParameter_Type = nil, keywords = [])
1684
+ @searchParameter_Type = searchParameter_Type
1685
+ @keywords = keywords
1686
+ end
1687
+ end
1688
+
1689
+ # TargetingIdeaSelector
1690
+ # - searchParameters - AdwordsApi::V201003::TargetingIdeaService::SearchParameter
1691
+ # - ideaType - AdwordsApi::V201003::TargetingIdeaService::IdeaType
1692
+ # - requestType - AdwordsApi::V201003::TargetingIdeaService::RequestType
1693
+ # - requestedAttributeTypes - AdwordsApi::V201003::TargetingIdeaService::AttributeType
1694
+ # - paging - AdwordsApi::V201003::TargetingIdeaService::Paging
1695
+ # - localeCode - SOAP::SOAPString
1696
+ # - currencyCode - SOAP::SOAPString
1697
+ class TargetingIdeaSelector
1698
+ attr_accessor :searchParameters
1699
+ attr_accessor :ideaType
1700
+ attr_accessor :requestType
1701
+ attr_accessor :requestedAttributeTypes
1702
+ attr_accessor :paging
1703
+ attr_accessor :localeCode
1704
+ attr_accessor :currencyCode
1705
+
1706
+ def initialize(searchParameters = [], ideaType = nil, requestType = nil, requestedAttributeTypes = [], paging = nil, localeCode = nil, currencyCode = nil)
1707
+ @searchParameters = searchParameters
1708
+ @ideaType = ideaType
1709
+ @requestType = requestType
1710
+ @requestedAttributeTypes = requestedAttributeTypes
1711
+ @paging = paging
1712
+ @localeCode = localeCode
1713
+ @currencyCode = currencyCode
1714
+ end
1715
+ end
1716
+
1717
+ # Attribute
1718
+ # abstract
1719
+ # - attribute_Type - SOAP::SOAPString
1720
+ class Attribute
1721
+ attr_accessor :attribute_Type
1722
+
1723
+ def initialize(attribute_Type = nil)
1724
+ @attribute_Type = attribute_Type
1725
+ end
1726
+ end
1727
+
1728
+ # AdFormatSpecListAttribute
1729
+ # - attribute_Type - SOAP::SOAPString
1730
+ # - value - AdwordsApi::V201003::TargetingIdeaService::AdFormatSpec
1731
+ class AdFormatSpecListAttribute < Attribute
1732
+ attr_accessor :attribute_Type
1733
+ attr_accessor :value
1734
+
1735
+ def initialize(attribute_Type = nil, value = [])
1736
+ @attribute_Type = attribute_Type
1737
+ @value = value
1738
+ end
1739
+ end
1740
+
1741
+ # BooleanAttribute
1742
+ # - attribute_Type - SOAP::SOAPString
1743
+ # - value - SOAP::SOAPBoolean
1744
+ class BooleanAttribute < Attribute
1745
+ attr_accessor :attribute_Type
1746
+ attr_accessor :value
1747
+
1748
+ def initialize(attribute_Type = nil, value = nil)
1749
+ @attribute_Type = attribute_Type
1750
+ @value = value
1751
+ end
1752
+ end
1753
+
1754
+ # DoubleAttribute
1755
+ # - attribute_Type - SOAP::SOAPString
1756
+ # - value - SOAP::SOAPDouble
1757
+ class DoubleAttribute < Attribute
1758
+ attr_accessor :attribute_Type
1759
+ attr_accessor :value
1760
+
1761
+ def initialize(attribute_Type = nil, value = nil)
1762
+ @attribute_Type = attribute_Type
1763
+ @value = value
1764
+ end
1765
+ end
1766
+
1767
+ # IdeaTypeAttribute
1768
+ # - attribute_Type - SOAP::SOAPString
1769
+ # - value - AdwordsApi::V201003::TargetingIdeaService::IdeaType
1770
+ class IdeaTypeAttribute < Attribute
1771
+ attr_accessor :attribute_Type
1772
+ attr_accessor :value
1773
+
1774
+ def initialize(attribute_Type = nil, value = nil)
1775
+ @attribute_Type = attribute_Type
1776
+ @value = value
1777
+ end
1778
+ end
1779
+
1780
+ # InStreamAdInfoAttribute
1781
+ # - attribute_Type - SOAP::SOAPString
1782
+ # - value - AdwordsApi::V201003::TargetingIdeaService::InStreamAdInfo
1783
+ class InStreamAdInfoAttribute < Attribute
1784
+ attr_accessor :attribute_Type
1785
+ attr_accessor :value
1786
+
1787
+ def initialize(attribute_Type = nil, value = nil)
1788
+ @attribute_Type = attribute_Type
1789
+ @value = value
1790
+ end
1791
+ end
1792
+
1793
+ # IntegerAttribute
1794
+ # - attribute_Type - SOAP::SOAPString
1795
+ # - value - SOAP::SOAPInt
1796
+ class IntegerAttribute < Attribute
1797
+ attr_accessor :attribute_Type
1798
+ attr_accessor :value
1799
+
1800
+ def initialize(attribute_Type = nil, value = nil)
1801
+ @attribute_Type = attribute_Type
1802
+ @value = value
1803
+ end
1804
+ end
1805
+
1806
+ # IntegerSetAttribute
1807
+ # - attribute_Type - SOAP::SOAPString
1808
+ # - value - SOAP::SOAPInt
1809
+ class IntegerSetAttribute < Attribute
1810
+ attr_accessor :attribute_Type
1811
+ attr_accessor :value
1812
+
1813
+ def initialize(attribute_Type = nil, value = [])
1814
+ @attribute_Type = attribute_Type
1815
+ @value = value
1816
+ end
1817
+ end
1818
+
1819
+ # LongAttribute
1820
+ # - attribute_Type - SOAP::SOAPString
1821
+ # - value - SOAP::SOAPLong
1822
+ class LongAttribute < Attribute
1823
+ attr_accessor :attribute_Type
1824
+ attr_accessor :value
1825
+
1826
+ def initialize(attribute_Type = nil, value = nil)
1827
+ @attribute_Type = attribute_Type
1828
+ @value = value
1829
+ end
1830
+ end
1831
+
1832
+ # MonthlySearchVolumeAttribute
1833
+ # - attribute_Type - SOAP::SOAPString
1834
+ # - value - AdwordsApi::V201003::TargetingIdeaService::MonthlySearchVolume
1835
+ class MonthlySearchVolumeAttribute < Attribute
1836
+ attr_accessor :attribute_Type
1837
+ attr_accessor :value
1838
+
1839
+ def initialize(attribute_Type = nil, value = [])
1840
+ @attribute_Type = attribute_Type
1841
+ @value = value
1842
+ end
1843
+ end
1844
+
1845
+ # PlacementTypeAttribute
1846
+ # - attribute_Type - SOAP::SOAPString
1847
+ # - value - AdwordsApi::V201003::TargetingIdeaService::SiteConstantsPlacementType
1848
+ class PlacementTypeAttribute < Attribute
1849
+ attr_accessor :attribute_Type
1850
+ attr_accessor :value
1851
+
1852
+ def initialize(attribute_Type = nil, value = nil)
1853
+ @attribute_Type = attribute_Type
1854
+ @value = value
1855
+ end
1856
+ end
1857
+
1858
+ # StringAttribute
1859
+ # - attribute_Type - SOAP::SOAPString
1860
+ # - value - SOAP::SOAPString
1861
+ class StringAttribute < Attribute
1862
+ attr_accessor :attribute_Type
1863
+ attr_accessor :value
1864
+
1865
+ def initialize(attribute_Type = nil, value = nil)
1866
+ @attribute_Type = attribute_Type
1867
+ @value = value
1868
+ end
1869
+ end
1870
+
1871
+ # WebpageDescriptorAttribute
1872
+ # - attribute_Type - SOAP::SOAPString
1873
+ # - value - AdwordsApi::V201003::TargetingIdeaService::WebpageDescriptor
1874
+ class WebpageDescriptorAttribute < Attribute
1875
+ attr_accessor :attribute_Type
1876
+ attr_accessor :value
1877
+
1878
+ def initialize(attribute_Type = nil, value = nil)
1879
+ @attribute_Type = attribute_Type
1880
+ @value = value
1881
+ end
1882
+ end
1883
+
1884
+ # MoneyAttribute
1885
+ # - attribute_Type - SOAP::SOAPString
1886
+ # - value - AdwordsApi::V201003::TargetingIdeaService::Money
1887
+ class MoneyAttribute < Attribute
1888
+ attr_accessor :attribute_Type
1889
+ attr_accessor :value
1890
+
1891
+ def initialize(attribute_Type = nil, value = nil)
1892
+ @attribute_Type = attribute_Type
1893
+ @value = value
1894
+ end
1895
+ end
1896
+
1897
+ # LongRangeAttribute
1898
+ # - attribute_Type - SOAP::SOAPString
1899
+ # - value - AdwordsApi::V201003::TargetingIdeaService::C_Range
1900
+ class LongRangeAttribute < Attribute
1901
+ attr_accessor :attribute_Type
1902
+ attr_accessor :value
1903
+
1904
+ def initialize(attribute_Type = nil, value = nil)
1905
+ @attribute_Type = attribute_Type
1906
+ @value = value
1907
+ end
1908
+ end
1909
+
1910
+ # KeywordAttribute
1911
+ # - attribute_Type - SOAP::SOAPString
1912
+ # - value - AdwordsApi::V201003::TargetingIdeaService::Keyword
1913
+ class KeywordAttribute < Attribute
1914
+ attr_accessor :attribute_Type
1915
+ attr_accessor :value
1916
+
1917
+ def initialize(attribute_Type = nil, value = nil)
1918
+ @attribute_Type = attribute_Type
1919
+ @value = value
1920
+ end
1921
+ end
1922
+
1923
+ # PlacementAttribute
1924
+ # - attribute_Type - SOAP::SOAPString
1925
+ # - value - AdwordsApi::V201003::TargetingIdeaService::Placement
1926
+ class PlacementAttribute < Attribute
1927
+ attr_accessor :attribute_Type
1928
+ attr_accessor :value
1929
+
1930
+ def initialize(attribute_Type = nil, value = nil)
1931
+ @attribute_Type = attribute_Type
1932
+ @value = value
1933
+ end
1934
+ end
1935
+
1936
+ # Type_AttributeMapEntry
1937
+ # - key - AdwordsApi::V201003::TargetingIdeaService::AttributeType
1938
+ # - value - AdwordsApi::V201003::TargetingIdeaService::Attribute
1939
+ class Type_AttributeMapEntry
1940
+ attr_accessor :key
1941
+ attr_accessor :value
1942
+
1943
+ def initialize(key = nil, value = nil)
1944
+ @key = key
1945
+ @value = value
1946
+ end
1947
+ end
1948
+
1949
+ # TargetingIdea
1950
+ # - data - AdwordsApi::V201003::TargetingIdeaService::Type_AttributeMapEntry
1951
+ class TargetingIdea
1952
+ attr_accessor :data
1953
+
1954
+ def initialize(data = [])
1955
+ @data = data
1956
+ end
1957
+ end
1958
+
1959
+ # TargetingIdeaPage
1960
+ # - totalNumEntries - SOAP::SOAPInt
1961
+ # - entries - AdwordsApi::V201003::TargetingIdeaService::TargetingIdea
1962
+ class TargetingIdeaPage
1963
+ attr_accessor :totalNumEntries
1964
+ attr_accessor :entries
1965
+
1966
+ def initialize(totalNumEntries = nil, entries = [])
1967
+ @totalNumEntries = totalNumEntries
1968
+ @entries = entries
1969
+ end
1970
+ end
1971
+
1972
+ # AdGroupCriterionError.Reason
1973
+ class AdGroupCriterionErrorReason < ::String
1974
+ BID_INCOMPATIBLE_WITH_ADGROUP = AdGroupCriterionErrorReason.new("BID_INCOMPATIBLE_WITH_ADGROUP")
1975
+ CANNOT_ADD_CRITERIA_TYPE = AdGroupCriterionErrorReason.new("CANNOT_ADD_CRITERIA_TYPE")
1976
+ CANNOT_TARGET_AND_EXCLUDE = AdGroupCriterionErrorReason.new("CANNOT_TARGET_AND_EXCLUDE")
1977
+ CANT_UPDATE_NEGATIVE = AdGroupCriterionErrorReason.new("CANT_UPDATE_NEGATIVE")
1978
+ CONCRETE_TYPE_REQUIRED = AdGroupCriterionErrorReason.new("CONCRETE_TYPE_REQUIRED")
1979
+ CRITERION_NOT_TARGETED = AdGroupCriterionErrorReason.new("CRITERION_NOT_TARGETED")
1980
+ CURRENCY_MISMATCH = AdGroupCriterionErrorReason.new("CURRENCY_MISMATCH")
1981
+ ID_FILTERS_HAVE_DIFF_FIELDS_SET = AdGroupCriterionErrorReason.new("ID_FILTERS_HAVE_DIFF_FIELDS_SET")
1982
+ ILLEGAL_URL = AdGroupCriterionErrorReason.new("ILLEGAL_URL")
1983
+ INAPPLICABLE_FILTER_SPECIFIED = AdGroupCriterionErrorReason.new("INAPPLICABLE_FILTER_SPECIFIED")
1984
+ INAPPLICABLE_FOR_NEGATIVE = AdGroupCriterionErrorReason.new("INAPPLICABLE_FOR_NEGATIVE")
1985
+ INVALID_DESTINATION_URL = AdGroupCriterionErrorReason.new("INVALID_DESTINATION_URL")
1986
+ INVALID_ID_FILTER_TYPE = AdGroupCriterionErrorReason.new("INVALID_ID_FILTER_TYPE")
1987
+ INVALID_KEYWORD_TEXT = AdGroupCriterionErrorReason.new("INVALID_KEYWORD_TEXT")
1988
+ INVALID_USER_STATUS = AdGroupCriterionErrorReason.new("INVALID_USER_STATUS")
1989
+ INVALID_VERTICAL_PATH = AdGroupCriterionErrorReason.new("INVALID_VERTICAL_PATH")
1990
+ KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM = AdGroupCriterionErrorReason.new("KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM")
1991
+ NETWORK_NOT_OVERRIDABLE = AdGroupCriterionErrorReason.new("NETWORK_NOT_OVERRIDABLE")
1992
+ NO_EFFECTIVE_BID_FOR_THIS_CRITERION = AdGroupCriterionErrorReason.new("NO_EFFECTIVE_BID_FOR_THIS_CRITERION")
1993
+ TOO_MANY_OPERTAIONS = AdGroupCriterionErrorReason.new("TOO_MANY_OPERTAIONS")
1994
+ TYPE_MISMATCH = AdGroupCriterionErrorReason.new("TYPE_MISMATCH")
1995
+ UNKNOWN = AdGroupCriterionErrorReason.new("UNKNOWN")
1996
+ end
1997
+
1998
+ # AdGroupCriterionLimitExceeded.CriteriaLimitType
1999
+ class AdGroupCriterionLimitExceededCriteriaLimitType < ::String
2000
+ ADGROUP_KEYWORD = AdGroupCriterionLimitExceededCriteriaLimitType.new("ADGROUP_KEYWORD")
2001
+ ADGROUP_WEBSITE = AdGroupCriterionLimitExceededCriteriaLimitType.new("ADGROUP_WEBSITE")
2002
+ end
2003
+
2004
+ # AgeTarget.Age
2005
+ class AgeTargetAge < ::String
2006
+ AGE_0_17 = AgeTargetAge.new("AGE_0_17")
2007
+ AGE_18_24 = AgeTargetAge.new("AGE_18_24")
2008
+ AGE_25_34 = AgeTargetAge.new("AGE_25_34")
2009
+ AGE_35_44 = AgeTargetAge.new("AGE_35_44")
2010
+ AGE_45_54 = AgeTargetAge.new("AGE_45_54")
2011
+ AGE_55_64 = AgeTargetAge.new("AGE_55_64")
2012
+ AGE_65_PLUS = AgeTargetAge.new("AGE_65_PLUS")
2013
+ end
2014
+
2015
+ # AuthenticationError.Reason
2016
+ class AuthenticationErrorReason < ::String
2017
+ AUTHENTICATION_FAILED = AuthenticationErrorReason.new("AUTHENTICATION_FAILED")
2018
+ CLIENT_CUSTOMER_ID_INVALID = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_INVALID")
2019
+ CLIENT_CUSTOMER_ID_IS_REQUIRED = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_IS_REQUIRED")
2020
+ CLIENT_EMAIL_FAILED_TO_AUTHENTICATE = AuthenticationErrorReason.new("CLIENT_EMAIL_FAILED_TO_AUTHENTICATE")
2021
+ CLIENT_EMAIL_INVALID = AuthenticationErrorReason.new("CLIENT_EMAIL_INVALID")
2022
+ CLIENT_EMAIL_REQUIRED = AuthenticationErrorReason.new("CLIENT_EMAIL_REQUIRED")
2023
+ CUSTOMER_NOT_FOUND = AuthenticationErrorReason.new("CUSTOMER_NOT_FOUND")
2024
+ FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT = AuthenticationErrorReason.new("FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT")
2025
+ FAILED_TO_RETRIEVE_LOGIN_COOKIE = AuthenticationErrorReason.new("FAILED_TO_RETRIEVE_LOGIN_COOKIE")
2026
+ GOOGLE_ACCOUNT_COOKIE_INVALID = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_COOKIE_INVALID")
2027
+ GOOGLE_ACCOUNT_DELETED = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_DELETED")
2028
+ GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH")
2029
+ LOGIN_COOKIE_INVALID = AuthenticationErrorReason.new("LOGIN_COOKIE_INVALID")
2030
+ LOGIN_COOKIE_REQUIRED = AuthenticationErrorReason.new("LOGIN_COOKIE_REQUIRED")
2031
+ NOT_ADS_USER = AuthenticationErrorReason.new("NOT_ADS_USER")
2032
+ OAUTH_TOKEN_DISABLED = AuthenticationErrorReason.new("OAUTH_TOKEN_DISABLED")
2033
+ OAUTH_TOKEN_EXPIRED = AuthenticationErrorReason.new("OAUTH_TOKEN_EXPIRED")
2034
+ OAUTH_TOKEN_HEADER_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_HEADER_INVALID")
2035
+ OAUTH_TOKEN_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_INVALID")
2036
+ OAUTH_TOKEN_REVOKED = AuthenticationErrorReason.new("OAUTH_TOKEN_REVOKED")
2037
+ USER_ID_INVALID = AuthenticationErrorReason.new("USER_ID_INVALID")
2038
+ end
2039
+
2040
+ # AuthorizationError.Reason
2041
+ class AuthorizationErrorReason < ::String
2042
+ EFFECTIVE_USER_PERMISSION_DENIED = AuthorizationErrorReason.new("EFFECTIVE_USER_PERMISSION_DENIED")
2043
+ NO_ADWORDS_ACCOUNT_FOR_CUSTOMER = AuthorizationErrorReason.new("NO_ADWORDS_ACCOUNT_FOR_CUSTOMER")
2044
+ NO_CUSTOMER_FOUND = AuthorizationErrorReason.new("NO_CUSTOMER_FOUND")
2045
+ UNABLE_TO_AUTHORIZE = AuthorizationErrorReason.new("UNABLE_TO_AUTHORIZE")
2046
+ USER_HAS_READONLY_PERMISSION = AuthorizationErrorReason.new("USER_HAS_READONLY_PERMISSION")
2047
+ USER_PERMISSION_DENIED = AuthorizationErrorReason.new("USER_PERMISSION_DENIED")
2048
+ end
2049
+
2050
+ # BiddingError.Reason
2051
+ class BiddingErrorReason < ::String
2052
+ ADGROUPS_DO_NOT_MATCH_CONSTRAINT = BiddingErrorReason.new("ADGROUPS_DO_NOT_MATCH_CONSTRAINT")
2053
+ AUCTION_STRATEGY_INCOMPATIBLE_WITH_PROXY_BIDDER = BiddingErrorReason.new("AUCTION_STRATEGY_INCOMPATIBLE_WITH_PROXY_BIDDER")
2054
+ BAD_BID_COMBINATION = BiddingErrorReason.new("BAD_BID_COMBINATION")
2055
+ BIDS_DO_NOT_FULFILL_SPEC = BiddingErrorReason.new("BIDS_DO_NOT_FULFILL_SPEC")
2056
+ BID_AMOUNT_REQUIRED = BiddingErrorReason.new("BID_AMOUNT_REQUIRED")
2057
+ BID_ERROR = BiddingErrorReason.new("BID_ERROR")
2058
+ BID_INCOMPATIBLE_WITH_ADGROUP = BiddingErrorReason.new("BID_INCOMPATIBLE_WITH_ADGROUP")
2059
+ BID_TOO_BIG = BiddingErrorReason.new("BID_TOO_BIG")
2060
+ BID_TOO_HIGH_FOR_DAILY_BUDGET = BiddingErrorReason.new("BID_TOO_HIGH_FOR_DAILY_BUDGET")
2061
+ BID_TOO_HIGH_FOR_MONTHLY_BUDGET = BiddingErrorReason.new("BID_TOO_HIGH_FOR_MONTHLY_BUDGET")
2062
+ BID_TOO_MANY_FRACTIONAL_DIGITS = BiddingErrorReason.new("BID_TOO_MANY_FRACTIONAL_DIGITS")
2063
+ BID_TOO_SMALL = BiddingErrorReason.new("BID_TOO_SMALL")
2064
+ BID_TO_POSITION_NOT_ENABLED = BiddingErrorReason.new("BID_TO_POSITION_NOT_ENABLED")
2065
+ BID_UNIVERSAL_CRITERIA_EXPECTED = BiddingErrorReason.new("BID_UNIVERSAL_CRITERIA_EXPECTED")
2066
+ BOTTOM_POSITION_OUT_OF_RANGE = BiddingErrorReason.new("BOTTOM_POSITION_OUT_OF_RANGE")
2067
+ CAMPAIGN_ALREADY_SET = BiddingErrorReason.new("CAMPAIGN_ALREADY_SET")
2068
+ CAMPAIGN_MUST_HAVE_A_BUDGET_TO_ENABLE_BUDGET_OPTIMIZER = BiddingErrorReason.new("CAMPAIGN_MUST_HAVE_A_BUDGET_TO_ENABLE_BUDGET_OPTIMIZER")
2069
+ CANNOT_CREATE_CAMPAIGN_WITH_CONVERSION_OPTIMIZER = BiddingErrorReason.new("CANNOT_CREATE_CAMPAIGN_WITH_CONVERSION_OPTIMIZER")
2070
+ CANNOT_EXCLUDE_DEFAULT = BiddingErrorReason.new("CANNOT_EXCLUDE_DEFAULT")
2071
+ CANNOT_SET_CONTENT_BID_WITHOUT_SETTING_KEYWORD_MAX_CPC_AS_WELL = BiddingErrorReason.new("CANNOT_SET_CONTENT_BID_WITHOUT_SETTING_KEYWORD_MAX_CPC_AS_WELL")
2072
+ CANNOT_SET_SITE_MAX_CPC = BiddingErrorReason.new("CANNOT_SET_SITE_MAX_CPC")
2073
+ CANNOT_TARGET_AND_EXCLUDE = BiddingErrorReason.new("CANNOT_TARGET_AND_EXCLUDE")
2074
+ CANNOT_TARGET_UNIVERSE = BiddingErrorReason.new("CANNOT_TARGET_UNIVERSE")
2075
+ CANNOT_UPDATE_SITE_BIDS_WHILE_PROXY_BIDDING = BiddingErrorReason.new("CANNOT_UPDATE_SITE_BIDS_WHILE_PROXY_BIDDING")
2076
+ CRITERION_NOT_TARGETED = BiddingErrorReason.new("CRITERION_NOT_TARGETED")
2077
+ CURRENCY_MISMATCH = BiddingErrorReason.new("CURRENCY_MISMATCH")
2078
+ GOAL_DOES_NOT_FULFILL_SPEC = BiddingErrorReason.new("GOAL_DOES_NOT_FULFILL_SPEC")
2079
+ GOAL_VALIDATION_FAILED = BiddingErrorReason.new("GOAL_VALIDATION_FAILED")
2080
+ ILLEGAL_URL = BiddingErrorReason.new("ILLEGAL_URL")
2081
+ MANY_PER_CLICK_NOT_AVAILABLE_FOR_CUSTOMER = BiddingErrorReason.new("MANY_PER_CLICK_NOT_AVAILABLE_FOR_CUSTOMER")
2082
+ MUST_EXCLUDE_0_TO_17_WITH_OTHER_AGE_EXCLUSIONS = BiddingErrorReason.new("MUST_EXCLUDE_0_TO_17_WITH_OTHER_AGE_EXCLUSIONS")
2083
+ NETWORK_NOT_OVERRIDEABLE = BiddingErrorReason.new("NETWORK_NOT_OVERRIDEABLE")
2084
+ NETWORK_SETTINGS_DO_NOT_SUPPORT_TRANSITION = BiddingErrorReason.new("NETWORK_SETTINGS_DO_NOT_SUPPORT_TRANSITION")
2085
+ NON_POSITIVE_BID = BiddingErrorReason.new("NON_POSITIVE_BID")
2086
+ NO_DESTINATION_URL_SPECIFIED = BiddingErrorReason.new("NO_DESTINATION_URL_SPECIFIED")
2087
+ NO_EFFECTIVE_BID = BiddingErrorReason.new("NO_EFFECTIVE_BID")
2088
+ PAY_PER_CONVERSION_NOT_ALLOWED_WITH_MANY_PER_CLICK = BiddingErrorReason.new("PAY_PER_CONVERSION_NOT_ALLOWED_WITH_MANY_PER_CLICK")
2089
+ PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA = BiddingErrorReason.new("PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA")
2090
+ PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER = BiddingErrorReason.new("PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER")
2091
+ POSITION_PREFERENCE_NOT_ENABLED = BiddingErrorReason.new("POSITION_PREFERENCE_NOT_ENABLED")
2092
+ POSITION_PREFERENCE_NOT_SUPPORTED_FOR_CRITERIA_TYPE = BiddingErrorReason.new("POSITION_PREFERENCE_NOT_SUPPORTED_FOR_CRITERIA_TYPE")
2093
+ PREFERRED_POSITION_CANNOT_BE_HIGHER_THAN_BOTTOM = BiddingErrorReason.new("PREFERRED_POSITION_CANNOT_BE_HIGHER_THAN_BOTTOM")
2094
+ PREFERRED_POSITION_OUT_OF_RANGE = BiddingErrorReason.new("PREFERRED_POSITION_OUT_OF_RANGE")
2095
+ PROXY_BIDDER_STRATEGY_INCOMPATIBLE_WITH_STYLE = BiddingErrorReason.new("PROXY_BIDDER_STRATEGY_INCOMPATIBLE_WITH_STYLE")
2096
+ PROXY_NOT_ENABLED = BiddingErrorReason.new("PROXY_NOT_ENABLED")
2097
+ TARGET_CPA_NOT_AVAILABLE_FOR_CUSTOMER = BiddingErrorReason.new("TARGET_CPA_NOT_AVAILABLE_FOR_CUSTOMER")
2098
+ TRANSITION_DOES_NOT_SUPPORT_GOAL = BiddingErrorReason.new("TRANSITION_DOES_NOT_SUPPORT_GOAL")
2099
+ TRANSITION_DOES_NOT_SUPPORT_OPTION = BiddingErrorReason.new("TRANSITION_DOES_NOT_SUPPORT_OPTION")
2100
+ UNSUPPORTED_PROXY_BIDDER_STRATEGY_TRANSITION = BiddingErrorReason.new("UNSUPPORTED_PROXY_BIDDER_STRATEGY_TRANSITION")
2101
+ UNSUPPORTED_STYLE = BiddingErrorReason.new("UNSUPPORTED_STYLE")
2102
+ UNSUPPORTED_STYLE_TRANSITION = BiddingErrorReason.new("UNSUPPORTED_STYLE_TRANSITION")
2103
+ end
2104
+
2105
+ # BudgetError.Reason
2106
+ class BudgetErrorReason < ::String
2107
+ BUDGET_ERROR = BudgetErrorReason.new("BUDGET_ERROR")
2108
+ BUDGET_PERIOD_NOT_AVAILABLE = BudgetErrorReason.new("BUDGET_PERIOD_NOT_AVAILABLE")
2109
+ INVALID_BUDGET_SCHEDULE = BudgetErrorReason.new("INVALID_BUDGET_SCHEDULE")
2110
+ MONEY_AMOUNT_IN_WRONG_CURRENCY = BudgetErrorReason.new("MONEY_AMOUNT_IN_WRONG_CURRENCY")
2111
+ MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC = BudgetErrorReason.new("MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC")
2112
+ MONEY_AMOUNT_LESS_THAN_MAXIMUM_AD_GROUP_CPM = BudgetErrorReason.new("MONEY_AMOUNT_LESS_THAN_MAXIMUM_AD_GROUP_CPM")
2113
+ MONEY_AMOUNT_LESS_THAN_MAXIMUM_SITE_CPM = BudgetErrorReason.new("MONEY_AMOUNT_LESS_THAN_MAXIMUM_SITE_CPM")
2114
+ MONEY_AMOUNT_LESS_THAN_MINIMUM_AD_GROUP_CPC = BudgetErrorReason.new("MONEY_AMOUNT_LESS_THAN_MINIMUM_AD_GROUP_CPC")
2115
+ MONEY_AMOUNT_LESS_THAN_MINIMUM_CRITERIA_CPC = BudgetErrorReason.new("MONEY_AMOUNT_LESS_THAN_MINIMUM_CRITERIA_CPC")
2116
+ MONEY_AMOUNT_TOO_LARGE = BudgetErrorReason.new("MONEY_AMOUNT_TOO_LARGE")
2117
+ NEGATIVE_MONEY_AMOUNT = BudgetErrorReason.new("NEGATIVE_MONEY_AMOUNT")
2118
+ NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT = BudgetErrorReason.new("NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT")
2119
+ end
2120
+
2121
+ # ClientTermsError.Reason
2122
+ class ClientTermsErrorReason < ::String
2123
+ INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED = ClientTermsErrorReason.new("INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED")
2124
+ end
2125
+
2126
+ # DatabaseError.Reason
2127
+ class DatabaseErrorReason < ::String
2128
+ CAMPAIGN_PRODUCT_NOT_SUPPORTED = DatabaseErrorReason.new("CAMPAIGN_PRODUCT_NOT_SUPPORTED")
2129
+ CONCURRENT_MODIFICATION = DatabaseErrorReason.new("CONCURRENT_MODIFICATION")
2130
+ DATABASE_ERROR = DatabaseErrorReason.new("DATABASE_ERROR")
2131
+ DUPLICATE_KEY = DatabaseErrorReason.new("DUPLICATE_KEY")
2132
+ PERMISSION_DENIED = DatabaseErrorReason.new("PERMISSION_DENIED")
2133
+ UNKNOWN = DatabaseErrorReason.new("UNKNOWN")
2134
+ end
2135
+
2136
+ # DateError.Reason
2137
+ class DateErrorReason < ::String
2138
+ DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = DateErrorReason.new("DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL")
2139
+ DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = DateErrorReason.new("DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE")
2140
+ EARLIER_THAN_MINIMUM_DATE = DateErrorReason.new("EARLIER_THAN_MINIMUM_DATE")
2141
+ INVALID_FIELD_VALUES_IN_DATE = DateErrorReason.new("INVALID_FIELD_VALUES_IN_DATE")
2142
+ INVALID_STRING_DATE = DateErrorReason.new("INVALID_STRING_DATE")
2143
+ INVALID_STRING_DATE_RANGE = DateErrorReason.new("INVALID_STRING_DATE_RANGE")
2144
+ INVALID_STRING_DATE_TIME = DateErrorReason.new("INVALID_STRING_DATE_TIME")
2145
+ LATER_THAN_MAXIMUM_DATE = DateErrorReason.new("LATER_THAN_MAXIMUM_DATE")
2146
+ end
2147
+
2148
+ # DayOfWeek
2149
+ class DayOfWeek < ::String
2150
+ FRIDAY = DayOfWeek.new("FRIDAY")
2151
+ MONDAY = DayOfWeek.new("MONDAY")
2152
+ SATURDAY = DayOfWeek.new("SATURDAY")
2153
+ SUNDAY = DayOfWeek.new("SUNDAY")
2154
+ THURSDAY = DayOfWeek.new("THURSDAY")
2155
+ TUESDAY = DayOfWeek.new("TUESDAY")
2156
+ WEDNESDAY = DayOfWeek.new("WEDNESDAY")
2157
+ end
2158
+
2159
+ # DistinctError.Reason
2160
+ class DistinctErrorReason < ::String
2161
+ DUPLICATE_ELEMENT = DistinctErrorReason.new("DUPLICATE_ELEMENT")
2162
+ end
2163
+
2164
+ # EntityCountLimitExceeded.Reason
2165
+ class EntityCountLimitExceededReason < ::String
2166
+ ACCOUNT_LIMIT = EntityCountLimitExceededReason.new("ACCOUNT_LIMIT")
2167
+ ADGROUP_LIMIT = EntityCountLimitExceededReason.new("ADGROUP_LIMIT")
2168
+ CAMPAIGN_LIMIT = EntityCountLimitExceededReason.new("CAMPAIGN_LIMIT")
2169
+ end
2170
+
2171
+ # EntityNotFound.Reason
2172
+ class EntityNotFoundReason < ::String
2173
+ INVALID_ID = EntityNotFoundReason.new("INVALID_ID")
2174
+ end
2175
+
2176
+ # GenderTarget.Gender
2177
+ class GenderTargetGender < ::String
2178
+ FEMALE = GenderTargetGender.new("FEMALE")
2179
+ MALE = GenderTargetGender.new("MALE")
2180
+ end
2181
+
2182
+ # InternalApiError.Reason
2183
+ class InternalApiErrorReason < ::String
2184
+ UNEXPECTED_INTERNAL_API_ERROR = InternalApiErrorReason.new("UNEXPECTED_INTERNAL_API_ERROR")
2185
+ UNKNOWN = InternalApiErrorReason.new("UNKNOWN")
2186
+ end
2187
+
2188
+ # KeywordMatchType
2189
+ class KeywordMatchType < ::String
2190
+ BROAD = KeywordMatchType.new("BROAD")
2191
+ EXACT = KeywordMatchType.new("EXACT")
2192
+ PHRASE = KeywordMatchType.new("PHRASE")
2193
+ end
2194
+
2195
+ # MinuteOfHour
2196
+ class MinuteOfHour < ::String
2197
+ FIFTEEN = MinuteOfHour.new("FIFTEEN")
2198
+ FORTY_FIVE = MinuteOfHour.new("FORTY_FIVE")
2199
+ THIRTY = MinuteOfHour.new("THIRTY")
2200
+ ZERO = MinuteOfHour.new("ZERO")
2201
+ end
2202
+
2203
+ # NetworkCoverageType
2204
+ class NetworkCoverageType < ::String
2205
+ CONTENT_CONTEXTUAL = NetworkCoverageType.new("CONTENT_CONTEXTUAL")
2206
+ CONTENT_NETWORK = NetworkCoverageType.new("CONTENT_NETWORK")
2207
+ CPA_REFERRAL = NetworkCoverageType.new("CPA_REFERRAL")
2208
+ GOOGLE_SEARCH = NetworkCoverageType.new("GOOGLE_SEARCH")
2209
+ SEARCH_NETWORK = NetworkCoverageType.new("SEARCH_NETWORK")
2210
+ end
2211
+
2212
+ # NotEmptyError.Reason
2213
+ class NotEmptyErrorReason < ::String
2214
+ EMPTY_LIST = NotEmptyErrorReason.new("EMPTY_LIST")
2215
+ end
2216
+
2217
+ # NotWhitelistedError.Reason
2218
+ class NotWhitelistedErrorReason < ::String
2219
+ CUSTOMER_NOT_WHITELISTED_FOR_API = NotWhitelistedErrorReason.new("CUSTOMER_NOT_WHITELISTED_FOR_API")
2220
+ end
2221
+
2222
+ # NullError.Reason
2223
+ class NullErrorReason < ::String
2224
+ NULL_CONTENT = NullErrorReason.new("NULL_CONTENT")
2225
+ end
2226
+
2227
+ # PlatformType
2228
+ class PlatformType < ::String
2229
+ DESKTOP = PlatformType.new("DESKTOP")
2230
+ HIGH_END_MOBILE = PlatformType.new("HIGH_END_MOBILE")
2231
+ end
2232
+
2233
+ # ProximityTarget.DistanceUnits
2234
+ class ProximityTargetDistanceUnits < ::String
2235
+ KILOMETERS = ProximityTargetDistanceUnits.new("KILOMETERS")
2236
+ MILES = ProximityTargetDistanceUnits.new("MILES")
2237
+ end
2238
+
2239
+ # QuotaCheckError.Reason
2240
+ class QuotaCheckErrorReason < ::String
2241
+ ACCOUNT_DELINQUENT = QuotaCheckErrorReason.new("ACCOUNT_DELINQUENT")
2242
+ ACCOUNT_INACCESSIBLE = QuotaCheckErrorReason.new("ACCOUNT_INACCESSIBLE")
2243
+ ACCOUNT_INACTIVE = QuotaCheckErrorReason.new("ACCOUNT_INACTIVE")
2244
+ INCOMPLETE_SIGNUP = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP")
2245
+ INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED")
2246
+ INCOMPLETE_SIGNUP_NO_BILLING_INFO = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_NO_BILLING_INFO")
2247
+ INCOMPLETE_SIGNUP_USER_INFO_MISSING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_MISSING")
2248
+ INCOMPLETE_SIGNUP_USER_INFO_PENDING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_PENDING")
2249
+ INCOMPLETE_SIGNUP_USER_INFO_REJECTED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_REJECTED")
2250
+ INVALID_TOKEN_HEADER = QuotaCheckErrorReason.new("INVALID_TOKEN_HEADER")
2251
+ MONTHLY_BUDGET_REACHED = QuotaCheckErrorReason.new("MONTHLY_BUDGET_REACHED")
2252
+ QUOTA_EXCEEDED = QuotaCheckErrorReason.new("QUOTA_EXCEEDED")
2253
+ end
2254
+
2255
+ # RangeError.Reason
2256
+ class RangeErrorReason < ::String
2257
+ TOO_HIGH = RangeErrorReason.new("TOO_HIGH")
2258
+ TOO_LOW = RangeErrorReason.new("TOO_LOW")
2259
+ end
2260
+
2261
+ # RateExceededError.Reason
2262
+ class RateExceededErrorReason < ::String
2263
+ RATE_EXCEEDED = RateExceededErrorReason.new("RATE_EXCEEDED")
2264
+ end
2265
+
2266
+ # ReadOnlyError.Reason
2267
+ class ReadOnlyErrorReason < ::String
2268
+ READ_ONLY = ReadOnlyErrorReason.new("READ_ONLY")
2269
+ end
2270
+
2271
+ # RegionCodeError.Reason
2272
+ class RegionCodeErrorReason < ::String
2273
+ INVALID_REGION_CODE = RegionCodeErrorReason.new("INVALID_REGION_CODE")
2274
+ end
2275
+
2276
+ # RequestError.Reason
2277
+ class RequestErrorReason < ::String
2278
+ INVALID_INPUT = RequestErrorReason.new("INVALID_INPUT")
2279
+ UNKNOWN = RequestErrorReason.new("UNKNOWN")
2280
+ end
2281
+
2282
+ # RequiredError.Reason
2283
+ class RequiredErrorReason < ::String
2284
+ REQUIRED = RequiredErrorReason.new("REQUIRED")
2285
+ end
2286
+
2287
+ # SizeLimitError.Reason
2288
+ class SizeLimitErrorReason < ::String
2289
+ REQUEST_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("REQUEST_SIZE_LIMIT_EXCEEDED")
2290
+ RESPONSE_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("RESPONSE_SIZE_LIMIT_EXCEEDED")
2291
+ UNKNOWN = SizeLimitErrorReason.new("UNKNOWN")
2292
+ end
2293
+
2294
+ # StatsQueryError.Reason
2295
+ class StatsQueryErrorReason < ::String
2296
+ DATE_NOT_IN_VALID_RANGE = StatsQueryErrorReason.new("DATE_NOT_IN_VALID_RANGE")
2297
+ end
2298
+
2299
+ # StringLengthError.Reason
2300
+ class StringLengthErrorReason < ::String
2301
+ TOO_LONG = StringLengthErrorReason.new("TOO_LONG")
2302
+ TOO_SHORT = StringLengthErrorReason.new("TOO_SHORT")
2303
+ end
2304
+
2305
+ # TargetError.Reason
2306
+ class TargetErrorReason < ::String
2307
+ AD_SCHEDULE_ADVANCED_INCOMPATIBLE_WITH_CONVERSION_OPTIMIZER = TargetErrorReason.new("AD_SCHEDULE_ADVANCED_INCOMPATIBLE_WITH_CONVERSION_OPTIMIZER")
2308
+ AD_SCHEDULE_BID_MULTIPLIER_MALFORMED = TargetErrorReason.new("AD_SCHEDULE_BID_MULTIPLIER_MALFORMED")
2309
+ AD_SCHEDULE_BID_MULTIPLIER_TOO_BIG = TargetErrorReason.new("AD_SCHEDULE_BID_MULTIPLIER_TOO_BIG")
2310
+ AD_SCHEDULE_BID_MULTIPLIER_TOO_MANY_FRACTION_DIGITS = TargetErrorReason.new("AD_SCHEDULE_BID_MULTIPLIER_TOO_MANY_FRACTION_DIGITS")
2311
+ AD_SCHEDULE_BID_MULTIPLIER_TOO_SMALL = TargetErrorReason.new("AD_SCHEDULE_BID_MULTIPLIER_TOO_SMALL")
2312
+ AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT = TargetErrorReason.new("AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT")
2313
+ AD_SCHEDULE_EXCEEDS_PAST_END_OF_WEEK = TargetErrorReason.new("AD_SCHEDULE_EXCEEDS_PAST_END_OF_WEEK")
2314
+ AD_SCHEDULE_INCOMPATIBILITY = TargetErrorReason.new("AD_SCHEDULE_INCOMPATIBILITY")
2315
+ AD_SCHEDULE_INCOMPATIBLE_WITH_BUDGET_OPTIMIZER = TargetErrorReason.new("AD_SCHEDULE_INCOMPATIBLE_WITH_BUDGET_OPTIMIZER")
2316
+ AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS = TargetErrorReason.new("AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS")
2317
+ AD_SCHEDULE_INVALID_DAY_OF_THE_WEEK = TargetErrorReason.new("AD_SCHEDULE_INVALID_DAY_OF_THE_WEEK")
2318
+ AD_SCHEDULE_INVALID_TIME_INTERVAL = TargetErrorReason.new("AD_SCHEDULE_INVALID_TIME_INTERVAL")
2319
+ AD_SCHEDULE_NOT_MULTIPLE_OF_15_MINUTES = TargetErrorReason.new("AD_SCHEDULE_NOT_MULTIPLE_OF_15_MINUTES")
2320
+ AD_SCHEDULE_NO_INTERVALS_WHILE_ENABLED = TargetErrorReason.new("AD_SCHEDULE_NO_INTERVALS_WHILE_ENABLED")
2321
+ AD_SCHEDULE_TIME_INTERVALS_OVERLAP = TargetErrorReason.new("AD_SCHEDULE_TIME_INTERVALS_OVERLAP")
2322
+ CANNOT_EXCLUDE_CITY = TargetErrorReason.new("CANNOT_EXCLUDE_CITY")
2323
+ CANNOT_EXCLUDE_IF_NOT_TARGETED = TargetErrorReason.new("CANNOT_EXCLUDE_IF_NOT_TARGETED")
2324
+ CANNOT_EXCLUDE_METRO = TargetErrorReason.new("CANNOT_EXCLUDE_METRO")
2325
+ CANNOT_EXCLUDE_PROVINCE = TargetErrorReason.new("CANNOT_EXCLUDE_PROVINCE")
2326
+ CANNOT_OPT_OUT_GOOGLE_SEARCH_WHILE_BID_TO_POSITION_ENABLE = TargetErrorReason.new("CANNOT_OPT_OUT_GOOGLE_SEARCH_WHILE_BID_TO_POSITION_ENABLE")
2327
+ CANNOT_TARGET_AGE_WITHOUT_GENDER = TargetErrorReason.new("CANNOT_TARGET_AGE_WITHOUT_GENDER")
2328
+ CANNOT_TARGET_CITY = TargetErrorReason.new("CANNOT_TARGET_CITY")
2329
+ CANNOT_TARGET_COUNTRY = TargetErrorReason.new("CANNOT_TARGET_COUNTRY")
2330
+ CANNOT_TARGET_COVERAGE = TargetErrorReason.new("CANNOT_TARGET_COVERAGE")
2331
+ CANNOT_TARGET_GENDER_WITHOUT_AGE = TargetErrorReason.new("CANNOT_TARGET_GENDER_WITHOUT_AGE")
2332
+ CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN = TargetErrorReason.new("CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN")
2333
+ CANNOT_TARGET_LANGUAGE = TargetErrorReason.new("CANNOT_TARGET_LANGUAGE")
2334
+ CANNOT_TARGET_METRO = TargetErrorReason.new("CANNOT_TARGET_METRO")
2335
+ CANNOT_TARGET_MOBILE_CARRIER = TargetErrorReason.new("CANNOT_TARGET_MOBILE_CARRIER")
2336
+ CANNOT_TARGET_PROVINCE = TargetErrorReason.new("CANNOT_TARGET_PROVINCE")
2337
+ CANNOT_TARGET_SEARCH_SYNDICATION_WITHOUT_GOOGLE_SEARCH = TargetErrorReason.new("CANNOT_TARGET_SEARCH_SYNDICATION_WITHOUT_GOOGLE_SEARCH")
2338
+ CANNOT_TARGET_SYNDICATABLE_TYPES = TargetErrorReason.new("CANNOT_TARGET_SYNDICATABLE_TYPES")
2339
+ CANNOT_TARGET_THE_SAME_TARGET_LIST_TYPE_MULTIPLE_TIMES = TargetErrorReason.new("CANNOT_TARGET_THE_SAME_TARGET_LIST_TYPE_MULTIPLE_TIMES")
2340
+ DEMOGRAPHIC_BID_MODIFIER_SHOULD_BE_IN_BETWEEN_0_AND_500 = TargetErrorReason.new("DEMOGRAPHIC_BID_MODIFIER_SHOULD_BE_IN_BETWEEN_0_AND_500")
2341
+ INVALID_CITYNAME_LENGTH = TargetErrorReason.new("INVALID_CITYNAME_LENGTH")
2342
+ INVALID_CITY_CODE = TargetErrorReason.new("INVALID_CITY_CODE")
2343
+ INVALID_LANGUAGE_CODE = TargetErrorReason.new("INVALID_LANGUAGE_CODE")
2344
+ INVALID_LATITUDE = TargetErrorReason.new("INVALID_LATITUDE")
2345
+ INVALID_LONGITUDE = TargetErrorReason.new("INVALID_LONGITUDE")
2346
+ INVALID_METRO_CODE = TargetErrorReason.new("INVALID_METRO_CODE")
2347
+ INVALID_MOBILE_CARRIER = TargetErrorReason.new("INVALID_MOBILE_CARRIER")
2348
+ INVALID_MOBILE_PLATFORM = TargetErrorReason.new("INVALID_MOBILE_PLATFORM")
2349
+ INVALID_POSTALCODE_LENGTH = TargetErrorReason.new("INVALID_POSTALCODE_LENGTH")
2350
+ INVALID_PROVINCE_CODE = TargetErrorReason.new("INVALID_PROVINCE_CODE")
2351
+ INVALID_PROXIMITY_RADIUS = TargetErrorReason.new("INVALID_PROXIMITY_RADIUS")
2352
+ INVALID_REGIONCODE_LENGTH = TargetErrorReason.new("INVALID_REGIONCODE_LENGTH")
2353
+ INVALID_REGIONNAME_LENGTH = TargetErrorReason.new("INVALID_REGIONNAME_LENGTH")
2354
+ INVALID_STREETADDRESS_LENGTH = TargetErrorReason.new("INVALID_STREETADDRESS_LENGTH")
2355
+ MULTIPLE_OCCURRENCES_OF_SAME_TARGET = TargetErrorReason.new("MULTIPLE_OCCURRENCES_OF_SAME_TARGET")
2356
+ POLYGON_DUPLICATE_VERTICES = TargetErrorReason.new("POLYGON_DUPLICATE_VERTICES")
2357
+ POLYGON_EDGES_INTERSECT = TargetErrorReason.new("POLYGON_EDGES_INTERSECT")
2358
+ POLYGON_TOO_FEW_VERTICES = TargetErrorReason.new("POLYGON_TOO_FEW_VERTICES")
2359
+ POLYGON_TOO_LARGE = TargetErrorReason.new("POLYGON_TOO_LARGE")
2360
+ POLYGON_TOO_MANY_VERTICES = TargetErrorReason.new("POLYGON_TOO_MANY_VERTICES")
2361
+ TARGETING_CROSS_COUNTRY_REGIONAL = TargetErrorReason.new("TARGETING_CROSS_COUNTRY_REGIONAL")
2362
+ TARGETING_EXCLUSION_NOT_SUPPORTED = TargetErrorReason.new("TARGETING_EXCLUSION_NOT_SUPPORTED")
2363
+ TARGETING_INCOMPATIBLE_LOCATION_TYPES = TargetErrorReason.new("TARGETING_INCOMPATIBLE_LOCATION_TYPES")
2364
+ TARGETING_NOT_SUPPORTED = TargetErrorReason.new("TARGETING_NOT_SUPPORTED")
2365
+ TARGETING_TOO_MANY_REGIONS = TargetErrorReason.new("TARGETING_TOO_MANY_REGIONS")
2366
+ TARGETING_VALIDATION_FAILED = TargetErrorReason.new("TARGETING_VALIDATION_FAILED")
2367
+ TARGET_ERROR = TargetErrorReason.new("TARGET_ERROR")
2368
+ TARGET_IS_ENCLOSED_BY_ANOTHER_TARGET = TargetErrorReason.new("TARGET_IS_ENCLOSED_BY_ANOTHER_TARGET")
2369
+ TARGET_IS_EXCLUDED_BY_ANOTHER_TARGET = TargetErrorReason.new("TARGET_IS_EXCLUDED_BY_ANOTHER_TARGET")
2370
+ TOO_MANY_EXCLUDED_LOCATIONS = TargetErrorReason.new("TOO_MANY_EXCLUDED_LOCATIONS")
2371
+ TOO_MANY_TARGETED_LOCATIONS = TargetErrorReason.new("TOO_MANY_TARGETED_LOCATIONS")
2372
+ WARNING_MAY_NOW_REQUIRE_CHINESE_APPROVAL = TargetErrorReason.new("WARNING_MAY_NOW_REQUIRE_CHINESE_APPROVAL")
2373
+ WARNING_NOW_REQUIRES_CHINESE_APPROVAL = TargetErrorReason.new("WARNING_NOW_REQUIRES_CHINESE_APPROVAL")
2374
+ WARNING_NOW_TARGETS_CHINA = TargetErrorReason.new("WARNING_NOW_TARGETS_CHINA")
2375
+ WARNING_NOW_TARGETS_CHINESE = TargetErrorReason.new("WARNING_NOW_TARGETS_CHINESE")
2376
+ end
2377
+
2378
+ # AttributeType
2379
+ class AttributeType < ::String
2380
+ AD_SHARE = AttributeType.new("AD_SHARE")
2381
+ APPROX_CONTENT_IMPRESSIONS_PER_DAY = AttributeType.new("APPROX_CONTENT_IMPRESSIONS_PER_DAY")
2382
+ AVERAGE_TARGETED_MONTHLY_SEARCHES = AttributeType.new("AVERAGE_TARGETED_MONTHLY_SEARCHES")
2383
+ COMPETITION = AttributeType.new("COMPETITION")
2384
+ EXTRACTED_FROM_WEBPAGE = AttributeType.new("EXTRACTED_FROM_WEBPAGE")
2385
+ FORMATS = AttributeType.new("FORMATS")
2386
+ GLOBAL_MONTHLY_SEARCHES = AttributeType.new("GLOBAL_MONTHLY_SEARCHES")
2387
+ IDEA_TYPE = AttributeType.new("IDEA_TYPE")
2388
+ IN_STREAM_AD_INFO = AttributeType.new("IN_STREAM_AD_INFO")
2389
+ KEYWORD = AttributeType.new("KEYWORD")
2390
+ KEYWORD_CATEGORY = AttributeType.new("KEYWORD_CATEGORY")
2391
+ NGRAM_GROUP = AttributeType.new("NGRAM_GROUP")
2392
+ PLACEMENT = AttributeType.new("PLACEMENT")
2393
+ PLACEMENT_CATEGORY = AttributeType.new("PLACEMENT_CATEGORY")
2394
+ PLACEMENT_NAME = AttributeType.new("PLACEMENT_NAME")
2395
+ PLACEMENT_TYPE = AttributeType.new("PLACEMENT_TYPE")
2396
+ SAMPLE_URL = AttributeType.new("SAMPLE_URL")
2397
+ SEARCH_SHARE = AttributeType.new("SEARCH_SHARE")
2398
+ TARGETED_MONTHLY_SEARCHES = AttributeType.new("TARGETED_MONTHLY_SEARCHES")
2399
+ UNKNOWN = AttributeType.new("UNKNOWN")
2400
+ end
2401
+
2402
+ # CollectionSizeError.Reason
2403
+ class CollectionSizeErrorReason < ::String
2404
+ TOO_FEW = CollectionSizeErrorReason.new("TOO_FEW")
2405
+ TOO_MANY = CollectionSizeErrorReason.new("TOO_MANY")
2406
+ end
2407
+
2408
+ # CompetitionSearchParameter.Level
2409
+ class CompetitionSearchParameterLevel < ::String
2410
+ HIGH = CompetitionSearchParameterLevel.new("HIGH")
2411
+ LOW = CompetitionSearchParameterLevel.new("LOW")
2412
+ MEDIUM = CompetitionSearchParameterLevel.new("MEDIUM")
2413
+ end
2414
+
2415
+ # IdeaType
2416
+ class IdeaType < ::String
2417
+ KEYWORD = IdeaType.new("KEYWORD")
2418
+ PLACEMENT = IdeaType.new("PLACEMENT")
2419
+ end
2420
+
2421
+ # MatchAction
2422
+ class MatchAction < ::String
2423
+ EXCLUDE = MatchAction.new("EXCLUDE")
2424
+ INCLUDE = MatchAction.new("INCLUDE")
2425
+ end
2426
+
2427
+ # RequestType
2428
+ class RequestType < ::String
2429
+ IDEAS = RequestType.new("IDEAS")
2430
+ STATS = RequestType.new("STATS")
2431
+ end
2432
+
2433
+ # SiteConstants.AdFormat
2434
+ class SiteConstantsAdFormat < ::String
2435
+ AUDIO = SiteConstantsAdFormat.new("AUDIO")
2436
+ IMAGE = SiteConstantsAdFormat.new("IMAGE")
2437
+ INSTREAM = SiteConstantsAdFormat.new("INSTREAM")
2438
+ TEXT = SiteConstantsAdFormat.new("TEXT")
2439
+ UNKNOWN = SiteConstantsAdFormat.new("UNKNOWN")
2440
+ VIDEO = SiteConstantsAdFormat.new("VIDEO")
2441
+ end
2442
+
2443
+ # SiteConstants.AdType
2444
+ class SiteConstantsAdType < ::String
2445
+ AUDIO = SiteConstantsAdType.new("AUDIO")
2446
+ DISPLAY = SiteConstantsAdType.new("DISPLAY")
2447
+ INSTREAM = SiteConstantsAdType.new("INSTREAM")
2448
+ TEXT = SiteConstantsAdType.new("TEXT")
2449
+ UNKNOWN = SiteConstantsAdType.new("UNKNOWN")
2450
+ end
2451
+
2452
+ # SiteConstants.PlacementType
2453
+ class SiteConstantsPlacementType < ::String
2454
+ AUDIO = SiteConstantsPlacementType.new("AUDIO")
2455
+ FEED = SiteConstantsPlacementType.new("FEED")
2456
+ GAME = SiteConstantsPlacementType.new("GAME")
2457
+ MOBILE = SiteConstantsPlacementType.new("MOBILE")
2458
+ SITE = SiteConstantsPlacementType.new("SITE")
2459
+ UNKNOWN = SiteConstantsPlacementType.new("UNKNOWN")
2460
+ VIDEO = SiteConstantsPlacementType.new("VIDEO")
2461
+ end
2462
+
2463
+ # TargetingIdeaError.Reason
2464
+ class TargetingIdeaErrorReason < ::String
2465
+ DUPLICATE_SEARCH_FILTER_TYPES_PRESENT = TargetingIdeaErrorReason.new("DUPLICATE_SEARCH_FILTER_TYPES_PRESENT")
2466
+ INSUFFICIENT_SEARCH_PARAMETERS = TargetingIdeaErrorReason.new("INSUFFICIENT_SEARCH_PARAMETERS")
2467
+ INVALID_ATTRIBUTE_TYPE = TargetingIdeaErrorReason.new("INVALID_ATTRIBUTE_TYPE")
2468
+ INVALID_SEARCH_PARAMETERS = TargetingIdeaErrorReason.new("INVALID_SEARCH_PARAMETERS")
2469
+ INVALID_URL_IN_SEARCH_PARAMETER = TargetingIdeaErrorReason.new("INVALID_URL_IN_SEARCH_PARAMETER")
2470
+ MUTUALLY_EXCLUSIVE_SEARCH_PARAMETERS_IN_QUERY = TargetingIdeaErrorReason.new("MUTUALLY_EXCLUSIVE_SEARCH_PARAMETERS_IN_QUERY")
2471
+ NO_PAGING_IN_SELECTOR = TargetingIdeaErrorReason.new("NO_PAGING_IN_SELECTOR")
2472
+ SERVICE_UNAVAILABLE = TargetingIdeaErrorReason.new("SERVICE_UNAVAILABLE")
2473
+ TOO_MANY_RESULTS_REQUESTED = TargetingIdeaErrorReason.new("TOO_MANY_RESULTS_REQUESTED")
2474
+ end
2475
+
2476
+ # get
2477
+ # - selector - AdwordsApi::V201003::TargetingIdeaService::TargetingIdeaSelector
2478
+ class Get #:nodoc: all
2479
+ attr_accessor :selector
2480
+
2481
+ def initialize(selector = nil)
2482
+ @selector = selector
2483
+ end
2484
+ end
2485
+
2486
+ # getResponse
2487
+ # - rval - AdwordsApi::V201003::TargetingIdeaService::TargetingIdeaPage
2488
+ class GetResponse #:nodoc: all
2489
+ attr_accessor :rval
2490
+
2491
+ def initialize(rval = nil)
2492
+ @rval = rval
2493
+ end
2494
+ end
2495
+
2496
+ # getBulkKeywordIdeas
2497
+ # - selector - AdwordsApi::V201003::TargetingIdeaService::TargetingIdeaSelector
2498
+ class GetBulkKeywordIdeas #:nodoc: all
2499
+ attr_accessor :selector
2500
+
2501
+ def initialize(selector = nil)
2502
+ @selector = selector
2503
+ end
2504
+ end
2505
+
2506
+ # getBulkKeywordIdeasResponse
2507
+ # - rval - AdwordsApi::V201003::TargetingIdeaService::TargetingIdeaPage
2508
+ class GetBulkKeywordIdeasResponse #:nodoc: all
2509
+ attr_accessor :rval
2510
+
2511
+ def initialize(rval = nil)
2512
+ @rval = rval
2513
+ end
2514
+ end
2515
+
2516
+
2517
+ end; end; end