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