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