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,332 @@
1
+ # This file was automatically generated during the "rake generate" step of
2
+ # library setup.
3
+ require 'adwords_api/v200909/AdExtensionOverrideServiceDriver.rb'
4
+
5
+ module AdwordsApi
6
+ module V200909
7
+ module AdExtensionOverrideService
8
+
9
+ # Wrapper class for the v200909 AdExtensionOverrideService service.
10
+ # This class is automatically generated.
11
+ class AdExtensionOverrideServiceWrapper
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::V200909::AdExtensionOverrideService::DefaultMappingRegistry::LiteralRegistry
20
+ # This takes advantage of the code generated by soap4r to get the
21
+ # correct namespace for a given service. It accesses one of the fields
22
+ # in the description of the service's methods, which indicates the
23
+ # namespace.
24
+ # Since we're using a fixed version of soap4r (1.5.8), and this is
25
+ # automatically generated as part of the stub generation, it will
26
+ # always point to what we want.
27
+ NAMESPACE = 'https://adwords.google.com/api/adwords/cm/v200909'
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::V200909::AdExtensionOverrideService::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 AdExtensionOverrideServiceWrapper.
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::V200909::AdExtensionOverrideService
51
+ @version = :v200909
52
+ @service = :AdExtensionOverrideService
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::V200909::\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/v200909/AdExtensionOverrideService.html#get] method of the AdExtensionOverrideService service.
272
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v200909/AdExtensionOverrideService.html#get].
273
+ #
274
+ # Args:
275
+ # - selector: AdwordsApi::V200909::AdExtensionOverrideService::AdExtensionOverrideSelector
276
+ #
277
+ # Returns:
278
+ # - rval: AdwordsApi::V200909::AdExtensionOverrideService::AdExtensionOverridePage
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::V200909::AdExtensionOverrideService::AdExtensionOverrideSelector)
287
+ arg_array << convert_to_object(selector, AdwordsApi::V200909::AdExtensionOverrideService::Get,
288
+ 'selector')
289
+ # Construct request object and make API call
290
+ obj = AdwordsApi::V200909::AdExtensionOverrideService::Get.new(*arg_array)
291
+ reply = convert_from_object(@driver.get(obj))
292
+ reply = reply[:rval] if reply.include?(:rval)
293
+ return reply
294
+ rescue SOAP::FaultError => fault
295
+ raise AdwordsApi::Errors.create_api_exception(fault,
296
+ self)
297
+ end
298
+ end
299
+
300
+ # Calls the {mutate}[http://code.google.com/apis/adwords/docs/reference/v200909/AdExtensionOverrideService.html#mutate] method of the AdExtensionOverrideService service.
301
+ # Check {the online documentation for this method}[http://code.google.com/apis/adwords/docs/reference/v200909/AdExtensionOverrideService.html#mutate].
302
+ #
303
+ # Args:
304
+ # - operations: SOAP::SOAPArray of AdwordsApi::V200909::AdExtensionOverrideService::AdExtensionOverrideOperation
305
+ #
306
+ # Returns:
307
+ # - rval: AdwordsApi::V200909::AdExtensionOverrideService::AdExtensionOverrideReturnValue
308
+ #
309
+ # Raises:
310
+ # Error::ApiError (or a subclass thereof) if a SOAP fault occurs.
311
+ #
312
+ def mutate(operations)
313
+ begin
314
+ arg_array = []
315
+ validate_object(operations, SOAP::SOAPArray)
316
+ arg_array << convert_to_object(operations, AdwordsApi::V200909::AdExtensionOverrideService::Mutate,
317
+ 'operations')
318
+ # Construct request object and make API call
319
+ obj = AdwordsApi::V200909::AdExtensionOverrideService::Mutate.new(*arg_array)
320
+ reply = convert_from_object(@driver.mutate(obj))
321
+ reply = reply[:rval] if reply.include?(:rval)
322
+ return reply
323
+ rescue SOAP::FaultError => fault
324
+ raise AdwordsApi::Errors.create_api_exception(fault,
325
+ self)
326
+ end
327
+ end
328
+
329
+ end
330
+ end
331
+ end
332
+ end
@@ -0,0 +1,2603 @@
1
+ require 'xsd/qname'
2
+
3
+ module AdwordsApi; module V200909; module AdGroupAdService
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
+ # DateRange
35
+ # - min - SOAP::SOAPString
36
+ # - max - SOAP::SOAPString
37
+ class DateRange
38
+ attr_accessor :min
39
+ attr_accessor :max
40
+
41
+ def initialize(min = nil, max = nil)
42
+ @min = min
43
+ @max = max
44
+ end
45
+ end
46
+
47
+ # Dimensions
48
+ # - width - SOAP::SOAPInt
49
+ # - height - SOAP::SOAPInt
50
+ class Dimensions
51
+ attr_accessor :width
52
+ attr_accessor :height
53
+
54
+ def initialize(width = nil, height = nil)
55
+ @width = width
56
+ @height = height
57
+ end
58
+ end
59
+
60
+ # GeoPoint
61
+ # - latitudeInMicroDegrees - SOAP::SOAPInt
62
+ # - longitudeInMicroDegrees - SOAP::SOAPInt
63
+ class GeoPoint
64
+ attr_accessor :latitudeInMicroDegrees
65
+ attr_accessor :longitudeInMicroDegrees
66
+
67
+ def initialize(latitudeInMicroDegrees = nil, longitudeInMicroDegrees = nil)
68
+ @latitudeInMicroDegrees = latitudeInMicroDegrees
69
+ @longitudeInMicroDegrees = longitudeInMicroDegrees
70
+ end
71
+ end
72
+
73
+ # Media_MediaExtendedCapabilityType_Media_MediaExtendedCapabilityStateMapEntry
74
+ # - key - AdwordsApi::V200909::AdGroupAdService::MediaMediaExtendedCapabilityType
75
+ # - value - AdwordsApi::V200909::AdGroupAdService::MediaMediaExtendedCapabilityState
76
+ class Media_MediaExtendedCapabilityType_Media_MediaExtendedCapabilityStateMapEntry
77
+ attr_accessor :key
78
+ attr_accessor :value
79
+
80
+ def initialize(key = nil, value = nil)
81
+ @key = key
82
+ @value = value
83
+ end
84
+ end
85
+
86
+ # Media_Size_DimensionsMapEntry
87
+ # - key - AdwordsApi::V200909::AdGroupAdService::MediaSize
88
+ # - value - AdwordsApi::V200909::AdGroupAdService::Dimensions
89
+ class Media_Size_DimensionsMapEntry
90
+ attr_accessor :key
91
+ attr_accessor :value
92
+
93
+ def initialize(key = nil, value = nil)
94
+ @key = key
95
+ @value = value
96
+ end
97
+ end
98
+
99
+ # Media_Size_StringMapEntry
100
+ # - key - AdwordsApi::V200909::AdGroupAdService::MediaSize
101
+ # - value - SOAP::SOAPString
102
+ class Media_Size_StringMapEntry
103
+ attr_accessor :key
104
+ attr_accessor :value
105
+
106
+ def initialize(key = nil, value = nil)
107
+ @key = key
108
+ @value = value
109
+ end
110
+ end
111
+
112
+ # Paging
113
+ # - startIndex - SOAP::SOAPInt
114
+ # - numberResults - SOAP::SOAPInt
115
+ class Paging
116
+ attr_accessor :startIndex
117
+ attr_accessor :numberResults
118
+
119
+ def initialize(startIndex = nil, numberResults = nil)
120
+ @startIndex = startIndex
121
+ @numberResults = numberResults
122
+ end
123
+ end
124
+
125
+ # PolicyViolationError.Part
126
+ # - index - SOAP::SOAPInt
127
+ # - length - SOAP::SOAPInt
128
+ class PolicyViolationErrorPart
129
+ attr_accessor :index
130
+ attr_accessor :length
131
+
132
+ def initialize(index = nil, length = nil)
133
+ @index = index
134
+ @length = length
135
+ end
136
+ end
137
+
138
+ # PolicyViolationKey
139
+ # - policyName - SOAP::SOAPString
140
+ # - violatingText - SOAP::SOAPString
141
+ class PolicyViolationKey
142
+ attr_accessor :policyName
143
+ attr_accessor :violatingText
144
+
145
+ def initialize(policyName = nil, violatingText = nil)
146
+ @policyName = policyName
147
+ @violatingText = violatingText
148
+ end
149
+ end
150
+
151
+ # SoapHeader
152
+ # - applicationToken - SOAP::SOAPString
153
+ # - authToken - SOAP::SOAPString
154
+ # - clientCustomerId - SOAP::SOAPString
155
+ # - clientEmail - SOAP::SOAPString
156
+ # - developerToken - SOAP::SOAPString
157
+ # - userAgent - SOAP::SOAPString
158
+ # - validateOnly - SOAP::SOAPBoolean
159
+ class SoapHeader
160
+ attr_accessor :applicationToken
161
+ attr_accessor :authToken
162
+ attr_accessor :clientCustomerId
163
+ attr_accessor :clientEmail
164
+ attr_accessor :developerToken
165
+ attr_accessor :userAgent
166
+ attr_accessor :validateOnly
167
+
168
+ def initialize(applicationToken = nil, authToken = nil, clientCustomerId = nil, clientEmail = nil, developerToken = nil, userAgent = nil, validateOnly = nil)
169
+ @applicationToken = applicationToken
170
+ @authToken = authToken
171
+ @clientCustomerId = clientCustomerId
172
+ @clientEmail = clientEmail
173
+ @developerToken = developerToken
174
+ @userAgent = userAgent
175
+ @validateOnly = validateOnly
176
+ end
177
+ end
178
+
179
+ # SoapResponseHeader
180
+ # - requestId - SOAP::SOAPString
181
+ # - operations - SOAP::SOAPLong
182
+ # - responseTime - SOAP::SOAPLong
183
+ # - units - SOAP::SOAPLong
184
+ class SoapResponseHeader
185
+ attr_accessor :requestId
186
+ attr_accessor :operations
187
+ attr_accessor :responseTime
188
+ attr_accessor :units
189
+
190
+ def initialize(requestId = nil, operations = nil, responseTime = nil, units = nil)
191
+ @requestId = requestId
192
+ @operations = operations
193
+ @responseTime = responseTime
194
+ @units = units
195
+ end
196
+ end
197
+
198
+ # StatsSelector
199
+ # - dateRange - AdwordsApi::V200909::AdGroupAdService::DateRange
200
+ # - statsSelector_Type - SOAP::SOAPString
201
+ class StatsSelector
202
+ attr_accessor :dateRange
203
+ attr_accessor :statsSelector_Type
204
+
205
+ def initialize(dateRange = nil, statsSelector_Type = nil)
206
+ @dateRange = dateRange
207
+ @statsSelector_Type = statsSelector_Type
208
+ end
209
+ end
210
+
211
+ # AdStatsSelector
212
+ # - dateRange - AdwordsApi::V200909::AdGroupAdService::DateRange
213
+ # - statsSelector_Type - SOAP::SOAPString
214
+ class AdStatsSelector < StatsSelector
215
+ attr_accessor :dateRange
216
+ attr_accessor :statsSelector_Type
217
+
218
+ def initialize(dateRange = nil, statsSelector_Type = nil)
219
+ @dateRange = dateRange
220
+ @statsSelector_Type = statsSelector_Type
221
+ end
222
+ end
223
+
224
+ # AdUnionId
225
+ # - id - SOAP::SOAPLong
226
+ # - adUnionId_Type - SOAP::SOAPString
227
+ class AdUnionId
228
+ attr_accessor :id
229
+ attr_accessor :adUnionId_Type
230
+
231
+ def initialize(id = nil, adUnionId_Type = nil)
232
+ @id = id
233
+ @adUnionId_Type = adUnionId_Type
234
+ end
235
+ end
236
+
237
+ # TempAdUnionId
238
+ # - id - SOAP::SOAPLong
239
+ # - adUnionId_Type - SOAP::SOAPString
240
+ class TempAdUnionId < AdUnionId
241
+ attr_accessor :id
242
+ attr_accessor :adUnionId_Type
243
+
244
+ def initialize(id = nil, adUnionId_Type = nil)
245
+ @id = id
246
+ @adUnionId_Type = adUnionId_Type
247
+ end
248
+ end
249
+
250
+ # ComparableValue
251
+ # abstract
252
+ # - comparableValue_Type - SOAP::SOAPString
253
+ class ComparableValue
254
+ attr_accessor :comparableValue_Type
255
+
256
+ def initialize(comparableValue_Type = nil)
257
+ @comparableValue_Type = comparableValue_Type
258
+ end
259
+ end
260
+
261
+ # Money
262
+ # - comparableValue_Type - SOAP::SOAPString
263
+ # - microAmount - SOAP::SOAPLong
264
+ class Money < ComparableValue
265
+ attr_accessor :comparableValue_Type
266
+ attr_accessor :microAmount
267
+
268
+ def initialize(comparableValue_Type = nil, microAmount = nil)
269
+ @comparableValue_Type = comparableValue_Type
270
+ @microAmount = microAmount
271
+ end
272
+ end
273
+
274
+ # NumberValue
275
+ # abstract
276
+ # - comparableValue_Type - SOAP::SOAPString
277
+ class NumberValue < ComparableValue
278
+ attr_accessor :comparableValue_Type
279
+
280
+ def initialize(comparableValue_Type = nil)
281
+ @comparableValue_Type = comparableValue_Type
282
+ end
283
+ end
284
+
285
+ # DoubleValue
286
+ # - comparableValue_Type - SOAP::SOAPString
287
+ # - number - SOAP::SOAPDouble
288
+ class DoubleValue < NumberValue
289
+ attr_accessor :comparableValue_Type
290
+ attr_accessor :number
291
+
292
+ def initialize(comparableValue_Type = nil, number = nil)
293
+ @comparableValue_Type = comparableValue_Type
294
+ @number = number
295
+ end
296
+ end
297
+
298
+ # LongValue
299
+ # - comparableValue_Type - SOAP::SOAPString
300
+ # - number - SOAP::SOAPLong
301
+ class LongValue < NumberValue
302
+ attr_accessor :comparableValue_Type
303
+ attr_accessor :number
304
+
305
+ def initialize(comparableValue_Type = nil, number = nil)
306
+ @comparableValue_Type = comparableValue_Type
307
+ @number = number
308
+ end
309
+ end
310
+
311
+ # ExemptionRequest
312
+ # - key - AdwordsApi::V200909::AdGroupAdService::PolicyViolationKey
313
+ class ExemptionRequest
314
+ attr_accessor :key
315
+
316
+ def initialize(key = nil)
317
+ @key = key
318
+ end
319
+ end
320
+
321
+ # Media
322
+ # - mediaId - SOAP::SOAPLong
323
+ # - mediaTypeDb - AdwordsApi::V200909::AdGroupAdService::MediaMediaType
324
+ # - referenceId - SOAP::SOAPLong
325
+ # - dimensions - AdwordsApi::V200909::AdGroupAdService::Media_Size_DimensionsMapEntry
326
+ # - urls - AdwordsApi::V200909::AdGroupAdService::Media_Size_StringMapEntry
327
+ # - mimeType - AdwordsApi::V200909::AdGroupAdService::MediaMimeType
328
+ # - sourceUrl - SOAP::SOAPString
329
+ # - mediaSubType - AdwordsApi::V200909::AdGroupAdService::MediaMediaSubType
330
+ # - name - SOAP::SOAPString
331
+ # - fileSize - SOAP::SOAPLong
332
+ # - extendedCapabilities - AdwordsApi::V200909::AdGroupAdService::Media_MediaExtendedCapabilityType_Media_MediaExtendedCapabilityStateMapEntry
333
+ # - creationTime - SOAP::SOAPString
334
+ # - media_Type - SOAP::SOAPString
335
+ class Media
336
+ attr_accessor :mediaId
337
+ attr_accessor :mediaTypeDb
338
+ attr_accessor :referenceId
339
+ attr_accessor :dimensions
340
+ attr_accessor :urls
341
+ attr_accessor :mimeType
342
+ attr_accessor :sourceUrl
343
+ attr_accessor :mediaSubType
344
+ attr_accessor :name
345
+ attr_accessor :fileSize
346
+ attr_accessor :extendedCapabilities
347
+ attr_accessor :creationTime
348
+ attr_accessor :media_Type
349
+
350
+ def initialize(mediaId = nil, mediaTypeDb = nil, referenceId = nil, dimensions = [], urls = [], mimeType = nil, sourceUrl = nil, mediaSubType = nil, name = nil, fileSize = nil, extendedCapabilities = [], creationTime = nil, media_Type = nil)
351
+ @mediaId = mediaId
352
+ @mediaTypeDb = mediaTypeDb
353
+ @referenceId = referenceId
354
+ @dimensions = dimensions
355
+ @urls = urls
356
+ @mimeType = mimeType
357
+ @sourceUrl = sourceUrl
358
+ @mediaSubType = mediaSubType
359
+ @name = name
360
+ @fileSize = fileSize
361
+ @extendedCapabilities = extendedCapabilities
362
+ @creationTime = creationTime
363
+ @media_Type = media_Type
364
+ end
365
+ end
366
+
367
+ # Audio
368
+ # - mediaId - SOAP::SOAPLong
369
+ # - mediaTypeDb - AdwordsApi::V200909::AdGroupAdService::MediaMediaType
370
+ # - referenceId - SOAP::SOAPLong
371
+ # - dimensions - AdwordsApi::V200909::AdGroupAdService::Media_Size_DimensionsMapEntry
372
+ # - urls - AdwordsApi::V200909::AdGroupAdService::Media_Size_StringMapEntry
373
+ # - mimeType - AdwordsApi::V200909::AdGroupAdService::MediaMimeType
374
+ # - sourceUrl - SOAP::SOAPString
375
+ # - mediaSubType - AdwordsApi::V200909::AdGroupAdService::MediaMediaSubType
376
+ # - name - SOAP::SOAPString
377
+ # - fileSize - SOAP::SOAPLong
378
+ # - extendedCapabilities - AdwordsApi::V200909::AdGroupAdService::Media_MediaExtendedCapabilityType_Media_MediaExtendedCapabilityStateMapEntry
379
+ # - creationTime - SOAP::SOAPString
380
+ # - media_Type - SOAP::SOAPString
381
+ # - durationMillis - SOAP::SOAPLong
382
+ # - streamingUrl - SOAP::SOAPString
383
+ # - readyToPlayOnTheWeb - SOAP::SOAPBoolean
384
+ class Audio < Media
385
+ attr_accessor :mediaId
386
+ attr_accessor :mediaTypeDb
387
+ attr_accessor :referenceId
388
+ attr_accessor :dimensions
389
+ attr_accessor :urls
390
+ attr_accessor :mimeType
391
+ attr_accessor :sourceUrl
392
+ attr_accessor :mediaSubType
393
+ attr_accessor :name
394
+ attr_accessor :fileSize
395
+ attr_accessor :extendedCapabilities
396
+ attr_accessor :creationTime
397
+ attr_accessor :media_Type
398
+ attr_accessor :durationMillis
399
+ attr_accessor :streamingUrl
400
+ attr_accessor :readyToPlayOnTheWeb
401
+
402
+ def initialize(mediaId = nil, mediaTypeDb = nil, referenceId = nil, dimensions = [], urls = [], mimeType = nil, sourceUrl = nil, mediaSubType = nil, name = nil, fileSize = nil, extendedCapabilities = [], creationTime = nil, media_Type = nil, durationMillis = nil, streamingUrl = nil, readyToPlayOnTheWeb = nil)
403
+ @mediaId = mediaId
404
+ @mediaTypeDb = mediaTypeDb
405
+ @referenceId = referenceId
406
+ @dimensions = dimensions
407
+ @urls = urls
408
+ @mimeType = mimeType
409
+ @sourceUrl = sourceUrl
410
+ @mediaSubType = mediaSubType
411
+ @name = name
412
+ @fileSize = fileSize
413
+ @extendedCapabilities = extendedCapabilities
414
+ @creationTime = creationTime
415
+ @media_Type = media_Type
416
+ @durationMillis = durationMillis
417
+ @streamingUrl = streamingUrl
418
+ @readyToPlayOnTheWeb = readyToPlayOnTheWeb
419
+ end
420
+ end
421
+
422
+ # Image
423
+ # - mediaId - SOAP::SOAPLong
424
+ # - mediaTypeDb - AdwordsApi::V200909::AdGroupAdService::MediaMediaType
425
+ # - referenceId - SOAP::SOAPLong
426
+ # - dimensions - AdwordsApi::V200909::AdGroupAdService::Media_Size_DimensionsMapEntry
427
+ # - urls - AdwordsApi::V200909::AdGroupAdService::Media_Size_StringMapEntry
428
+ # - mimeType - AdwordsApi::V200909::AdGroupAdService::MediaMimeType
429
+ # - sourceUrl - SOAP::SOAPString
430
+ # - mediaSubType - AdwordsApi::V200909::AdGroupAdService::MediaMediaSubType
431
+ # - name - SOAP::SOAPString
432
+ # - fileSize - SOAP::SOAPLong
433
+ # - extendedCapabilities - AdwordsApi::V200909::AdGroupAdService::Media_MediaExtendedCapabilityType_Media_MediaExtendedCapabilityStateMapEntry
434
+ # - creationTime - SOAP::SOAPString
435
+ # - media_Type - SOAP::SOAPString
436
+ # - data - SOAP::SOAPBase64
437
+ class Image < Media
438
+ attr_accessor :mediaId
439
+ attr_accessor :mediaTypeDb
440
+ attr_accessor :referenceId
441
+ attr_accessor :dimensions
442
+ attr_accessor :urls
443
+ attr_accessor :mimeType
444
+ attr_accessor :sourceUrl
445
+ attr_accessor :mediaSubType
446
+ attr_accessor :name
447
+ attr_accessor :fileSize
448
+ attr_accessor :extendedCapabilities
449
+ attr_accessor :creationTime
450
+ attr_accessor :media_Type
451
+ attr_accessor :data
452
+
453
+ def initialize(mediaId = nil, mediaTypeDb = nil, referenceId = nil, dimensions = [], urls = [], mimeType = nil, sourceUrl = nil, mediaSubType = nil, name = nil, fileSize = nil, extendedCapabilities = [], creationTime = nil, media_Type = nil, data = nil)
454
+ @mediaId = mediaId
455
+ @mediaTypeDb = mediaTypeDb
456
+ @referenceId = referenceId
457
+ @dimensions = dimensions
458
+ @urls = urls
459
+ @mimeType = mimeType
460
+ @sourceUrl = sourceUrl
461
+ @mediaSubType = mediaSubType
462
+ @name = name
463
+ @fileSize = fileSize
464
+ @extendedCapabilities = extendedCapabilities
465
+ @creationTime = creationTime
466
+ @media_Type = media_Type
467
+ @data = data
468
+ end
469
+ end
470
+
471
+ # Video
472
+ # - mediaId - SOAP::SOAPLong
473
+ # - mediaTypeDb - AdwordsApi::V200909::AdGroupAdService::MediaMediaType
474
+ # - referenceId - SOAP::SOAPLong
475
+ # - dimensions - AdwordsApi::V200909::AdGroupAdService::Media_Size_DimensionsMapEntry
476
+ # - urls - AdwordsApi::V200909::AdGroupAdService::Media_Size_StringMapEntry
477
+ # - mimeType - AdwordsApi::V200909::AdGroupAdService::MediaMimeType
478
+ # - sourceUrl - SOAP::SOAPString
479
+ # - mediaSubType - AdwordsApi::V200909::AdGroupAdService::MediaMediaSubType
480
+ # - name - SOAP::SOAPString
481
+ # - fileSize - SOAP::SOAPLong
482
+ # - extendedCapabilities - AdwordsApi::V200909::AdGroupAdService::Media_MediaExtendedCapabilityType_Media_MediaExtendedCapabilityStateMapEntry
483
+ # - creationTime - SOAP::SOAPString
484
+ # - media_Type - SOAP::SOAPString
485
+ # - durationMillis - SOAP::SOAPLong
486
+ # - streamingUrl - SOAP::SOAPString
487
+ # - readyToPlayOnTheWeb - SOAP::SOAPBoolean
488
+ # - industryStandardCommercialIdentifier - SOAP::SOAPString
489
+ # - advertisingId - SOAP::SOAPString
490
+ class Video < Media
491
+ attr_accessor :mediaId
492
+ attr_accessor :mediaTypeDb
493
+ attr_accessor :referenceId
494
+ attr_accessor :dimensions
495
+ attr_accessor :urls
496
+ attr_accessor :mimeType
497
+ attr_accessor :sourceUrl
498
+ attr_accessor :mediaSubType
499
+ attr_accessor :name
500
+ attr_accessor :fileSize
501
+ attr_accessor :extendedCapabilities
502
+ attr_accessor :creationTime
503
+ attr_accessor :media_Type
504
+ attr_accessor :durationMillis
505
+ attr_accessor :streamingUrl
506
+ attr_accessor :readyToPlayOnTheWeb
507
+ attr_accessor :industryStandardCommercialIdentifier
508
+ attr_accessor :advertisingId
509
+
510
+ def initialize(mediaId = nil, mediaTypeDb = nil, referenceId = nil, dimensions = [], urls = [], mimeType = nil, sourceUrl = nil, mediaSubType = nil, name = nil, fileSize = nil, extendedCapabilities = [], creationTime = nil, media_Type = nil, durationMillis = nil, streamingUrl = nil, readyToPlayOnTheWeb = nil, industryStandardCommercialIdentifier = nil, advertisingId = nil)
511
+ @mediaId = mediaId
512
+ @mediaTypeDb = mediaTypeDb
513
+ @referenceId = referenceId
514
+ @dimensions = dimensions
515
+ @urls = urls
516
+ @mimeType = mimeType
517
+ @sourceUrl = sourceUrl
518
+ @mediaSubType = mediaSubType
519
+ @name = name
520
+ @fileSize = fileSize
521
+ @extendedCapabilities = extendedCapabilities
522
+ @creationTime = creationTime
523
+ @media_Type = media_Type
524
+ @durationMillis = durationMillis
525
+ @streamingUrl = streamingUrl
526
+ @readyToPlayOnTheWeb = readyToPlayOnTheWeb
527
+ @industryStandardCommercialIdentifier = industryStandardCommercialIdentifier
528
+ @advertisingId = advertisingId
529
+ end
530
+ end
531
+
532
+ # Stats
533
+ # - startDate - SOAP::SOAPString
534
+ # - endDate - SOAP::SOAPString
535
+ # - network - AdwordsApi::V200909::AdGroupAdService::StatsNetwork
536
+ # - clicks - SOAP::SOAPLong
537
+ # - impressions - SOAP::SOAPLong
538
+ # - cost - AdwordsApi::V200909::AdGroupAdService::Money
539
+ # - averagePosition - SOAP::SOAPDouble
540
+ # - averageCpc - AdwordsApi::V200909::AdGroupAdService::Money
541
+ # - averageCpm - AdwordsApi::V200909::AdGroupAdService::Money
542
+ # - ctr - SOAP::SOAPDouble
543
+ # - conversions - SOAP::SOAPLong
544
+ # - conversionRate - SOAP::SOAPDouble
545
+ # - costPerConversion - AdwordsApi::V200909::AdGroupAdService::Money
546
+ # - conversionsManyPerClick - SOAP::SOAPLong
547
+ # - conversionRateManyPerClick - SOAP::SOAPDouble
548
+ # - costPerConversionManyPerClick - AdwordsApi::V200909::AdGroupAdService::Money
549
+ # - stats_Type - SOAP::SOAPString
550
+ class Stats
551
+ attr_accessor :startDate
552
+ attr_accessor :endDate
553
+ attr_accessor :network
554
+ attr_accessor :clicks
555
+ attr_accessor :impressions
556
+ attr_accessor :cost
557
+ attr_accessor :averagePosition
558
+ attr_accessor :averageCpc
559
+ attr_accessor :averageCpm
560
+ attr_accessor :ctr
561
+ attr_accessor :conversions
562
+ attr_accessor :conversionRate
563
+ attr_accessor :costPerConversion
564
+ attr_accessor :conversionsManyPerClick
565
+ attr_accessor :conversionRateManyPerClick
566
+ attr_accessor :costPerConversionManyPerClick
567
+ attr_accessor :stats_Type
568
+
569
+ def initialize(startDate = nil, endDate = nil, network = nil, clicks = nil, impressions = nil, cost = nil, averagePosition = nil, averageCpc = nil, averageCpm = nil, ctr = nil, conversions = nil, conversionRate = nil, costPerConversion = nil, conversionsManyPerClick = nil, conversionRateManyPerClick = nil, costPerConversionManyPerClick = nil, stats_Type = nil)
570
+ @startDate = startDate
571
+ @endDate = endDate
572
+ @network = network
573
+ @clicks = clicks
574
+ @impressions = impressions
575
+ @cost = cost
576
+ @averagePosition = averagePosition
577
+ @averageCpc = averageCpc
578
+ @averageCpm = averageCpm
579
+ @ctr = ctr
580
+ @conversions = conversions
581
+ @conversionRate = conversionRate
582
+ @costPerConversion = costPerConversion
583
+ @conversionsManyPerClick = conversionsManyPerClick
584
+ @conversionRateManyPerClick = conversionRateManyPerClick
585
+ @costPerConversionManyPerClick = costPerConversionManyPerClick
586
+ @stats_Type = stats_Type
587
+ end
588
+ end
589
+
590
+ # AdExtensionOverrideStats
591
+ # - startDate - SOAP::SOAPString
592
+ # - endDate - SOAP::SOAPString
593
+ # - network - AdwordsApi::V200909::AdGroupAdService::StatsNetwork
594
+ # - clicks - SOAP::SOAPLong
595
+ # - impressions - SOAP::SOAPLong
596
+ # - cost - AdwordsApi::V200909::AdGroupAdService::Money
597
+ # - averagePosition - SOAP::SOAPDouble
598
+ # - averageCpc - AdwordsApi::V200909::AdGroupAdService::Money
599
+ # - averageCpm - AdwordsApi::V200909::AdGroupAdService::Money
600
+ # - ctr - SOAP::SOAPDouble
601
+ # - conversions - SOAP::SOAPLong
602
+ # - conversionRate - SOAP::SOAPDouble
603
+ # - costPerConversion - AdwordsApi::V200909::AdGroupAdService::Money
604
+ # - conversionsManyPerClick - SOAP::SOAPLong
605
+ # - conversionRateManyPerClick - SOAP::SOAPDouble
606
+ # - costPerConversionManyPerClick - AdwordsApi::V200909::AdGroupAdService::Money
607
+ # - stats_Type - SOAP::SOAPString
608
+ class AdExtensionOverrideStats < Stats
609
+ attr_accessor :startDate
610
+ attr_accessor :endDate
611
+ attr_accessor :network
612
+ attr_accessor :clicks
613
+ attr_accessor :impressions
614
+ attr_accessor :cost
615
+ attr_accessor :averagePosition
616
+ attr_accessor :averageCpc
617
+ attr_accessor :averageCpm
618
+ attr_accessor :ctr
619
+ attr_accessor :conversions
620
+ attr_accessor :conversionRate
621
+ attr_accessor :costPerConversion
622
+ attr_accessor :conversionsManyPerClick
623
+ attr_accessor :conversionRateManyPerClick
624
+ attr_accessor :costPerConversionManyPerClick
625
+ attr_accessor :stats_Type
626
+
627
+ def initialize(startDate = nil, endDate = nil, network = nil, clicks = nil, impressions = nil, cost = nil, averagePosition = nil, averageCpc = nil, averageCpm = nil, ctr = nil, conversions = nil, conversionRate = nil, costPerConversion = nil, conversionsManyPerClick = nil, conversionRateManyPerClick = nil, costPerConversionManyPerClick = nil, stats_Type = nil)
628
+ @startDate = startDate
629
+ @endDate = endDate
630
+ @network = network
631
+ @clicks = clicks
632
+ @impressions = impressions
633
+ @cost = cost
634
+ @averagePosition = averagePosition
635
+ @averageCpc = averageCpc
636
+ @averageCpm = averageCpm
637
+ @ctr = ctr
638
+ @conversions = conversions
639
+ @conversionRate = conversionRate
640
+ @costPerConversion = costPerConversion
641
+ @conversionsManyPerClick = conversionsManyPerClick
642
+ @conversionRateManyPerClick = conversionRateManyPerClick
643
+ @costPerConversionManyPerClick = costPerConversionManyPerClick
644
+ @stats_Type = stats_Type
645
+ end
646
+ end
647
+
648
+ # AdStats
649
+ # - startDate - SOAP::SOAPString
650
+ # - endDate - SOAP::SOAPString
651
+ # - network - AdwordsApi::V200909::AdGroupAdService::StatsNetwork
652
+ # - clicks - SOAP::SOAPLong
653
+ # - impressions - SOAP::SOAPLong
654
+ # - cost - AdwordsApi::V200909::AdGroupAdService::Money
655
+ # - averagePosition - SOAP::SOAPDouble
656
+ # - averageCpc - AdwordsApi::V200909::AdGroupAdService::Money
657
+ # - averageCpm - AdwordsApi::V200909::AdGroupAdService::Money
658
+ # - ctr - SOAP::SOAPDouble
659
+ # - conversions - SOAP::SOAPLong
660
+ # - conversionRate - SOAP::SOAPDouble
661
+ # - costPerConversion - AdwordsApi::V200909::AdGroupAdService::Money
662
+ # - conversionsManyPerClick - SOAP::SOAPLong
663
+ # - conversionRateManyPerClick - SOAP::SOAPDouble
664
+ # - costPerConversionManyPerClick - AdwordsApi::V200909::AdGroupAdService::Money
665
+ # - stats_Type - SOAP::SOAPString
666
+ # - percentServed - SOAP::SOAPDouble
667
+ class AdStats < Stats
668
+ attr_accessor :startDate
669
+ attr_accessor :endDate
670
+ attr_accessor :network
671
+ attr_accessor :clicks
672
+ attr_accessor :impressions
673
+ attr_accessor :cost
674
+ attr_accessor :averagePosition
675
+ attr_accessor :averageCpc
676
+ attr_accessor :averageCpm
677
+ attr_accessor :ctr
678
+ attr_accessor :conversions
679
+ attr_accessor :conversionRate
680
+ attr_accessor :costPerConversion
681
+ attr_accessor :conversionsManyPerClick
682
+ attr_accessor :conversionRateManyPerClick
683
+ attr_accessor :costPerConversionManyPerClick
684
+ attr_accessor :stats_Type
685
+ attr_accessor :percentServed
686
+
687
+ def initialize(startDate = nil, endDate = nil, network = nil, clicks = nil, impressions = nil, cost = nil, averagePosition = nil, averageCpc = nil, averageCpm = nil, ctr = nil, conversions = nil, conversionRate = nil, costPerConversion = nil, conversionsManyPerClick = nil, conversionRateManyPerClick = nil, costPerConversionManyPerClick = nil, stats_Type = nil, percentServed = nil)
688
+ @startDate = startDate
689
+ @endDate = endDate
690
+ @network = network
691
+ @clicks = clicks
692
+ @impressions = impressions
693
+ @cost = cost
694
+ @averagePosition = averagePosition
695
+ @averageCpc = averageCpc
696
+ @averageCpm = averageCpm
697
+ @ctr = ctr
698
+ @conversions = conversions
699
+ @conversionRate = conversionRate
700
+ @costPerConversion = costPerConversion
701
+ @conversionsManyPerClick = conversionsManyPerClick
702
+ @conversionRateManyPerClick = conversionRateManyPerClick
703
+ @costPerConversionManyPerClick = costPerConversionManyPerClick
704
+ @stats_Type = stats_Type
705
+ @percentServed = percentServed
706
+ end
707
+ end
708
+
709
+ # Target
710
+ # abstract
711
+ # - target_Type - SOAP::SOAPString
712
+ class Target
713
+ attr_accessor :target_Type
714
+
715
+ def initialize(target_Type = nil)
716
+ @target_Type = target_Type
717
+ end
718
+ end
719
+
720
+ # AdScheduleTarget
721
+ # - target_Type - SOAP::SOAPString
722
+ # - dayOfWeek - AdwordsApi::V200909::AdGroupAdService::DayOfWeek
723
+ # - startHour - SOAP::SOAPInt
724
+ # - startMinute - AdwordsApi::V200909::AdGroupAdService::MinuteOfHour
725
+ # - endHour - SOAP::SOAPInt
726
+ # - endMinute - AdwordsApi::V200909::AdGroupAdService::MinuteOfHour
727
+ # - bidMultiplier - SOAP::SOAPDouble
728
+ class AdScheduleTarget < Target
729
+ attr_accessor :target_Type
730
+ attr_accessor :dayOfWeek
731
+ attr_accessor :startHour
732
+ attr_accessor :startMinute
733
+ attr_accessor :endHour
734
+ attr_accessor :endMinute
735
+ attr_accessor :bidMultiplier
736
+
737
+ def initialize(target_Type = nil, dayOfWeek = nil, startHour = nil, startMinute = nil, endHour = nil, endMinute = nil, bidMultiplier = nil)
738
+ @target_Type = target_Type
739
+ @dayOfWeek = dayOfWeek
740
+ @startHour = startHour
741
+ @startMinute = startMinute
742
+ @endHour = endHour
743
+ @endMinute = endMinute
744
+ @bidMultiplier = bidMultiplier
745
+ end
746
+ end
747
+
748
+ # LanguageTarget
749
+ # - target_Type - SOAP::SOAPString
750
+ # - languageCode - SOAP::SOAPString
751
+ class LanguageTarget < Target
752
+ attr_accessor :target_Type
753
+ attr_accessor :languageCode
754
+
755
+ def initialize(target_Type = nil, languageCode = nil)
756
+ @target_Type = target_Type
757
+ @languageCode = languageCode
758
+ end
759
+ end
760
+
761
+ # NetworkTarget
762
+ # - target_Type - SOAP::SOAPString
763
+ # - networkCoverageType - AdwordsApi::V200909::AdGroupAdService::NetworkCoverageType
764
+ class NetworkTarget < Target
765
+ attr_accessor :target_Type
766
+ attr_accessor :networkCoverageType
767
+
768
+ def initialize(target_Type = nil, networkCoverageType = nil)
769
+ @target_Type = target_Type
770
+ @networkCoverageType = networkCoverageType
771
+ end
772
+ end
773
+
774
+ # PlatformTarget
775
+ # - target_Type - SOAP::SOAPString
776
+ # - platformType - AdwordsApi::V200909::AdGroupAdService::PlatformType
777
+ class PlatformTarget < Target
778
+ attr_accessor :target_Type
779
+ attr_accessor :platformType
780
+
781
+ def initialize(target_Type = nil, platformType = nil)
782
+ @target_Type = target_Type
783
+ @platformType = platformType
784
+ end
785
+ end
786
+
787
+ # DemographicTarget
788
+ # abstract
789
+ # - target_Type - SOAP::SOAPString
790
+ # - bidModifier - SOAP::SOAPInt
791
+ class DemographicTarget < Target
792
+ attr_accessor :target_Type
793
+ attr_accessor :bidModifier
794
+
795
+ def initialize(target_Type = nil, bidModifier = nil)
796
+ @target_Type = target_Type
797
+ @bidModifier = bidModifier
798
+ end
799
+ end
800
+
801
+ # AgeTarget
802
+ # - target_Type - SOAP::SOAPString
803
+ # - bidModifier - SOAP::SOAPInt
804
+ # - age - AdwordsApi::V200909::AdGroupAdService::AgeTargetAge
805
+ class AgeTarget < DemographicTarget
806
+ attr_accessor :target_Type
807
+ attr_accessor :bidModifier
808
+ attr_accessor :age
809
+
810
+ def initialize(target_Type = nil, bidModifier = nil, age = nil)
811
+ @target_Type = target_Type
812
+ @bidModifier = bidModifier
813
+ @age = age
814
+ end
815
+ end
816
+
817
+ # GenderTarget
818
+ # - target_Type - SOAP::SOAPString
819
+ # - bidModifier - SOAP::SOAPInt
820
+ # - gender - AdwordsApi::V200909::AdGroupAdService::GenderTargetGender
821
+ class GenderTarget < DemographicTarget
822
+ attr_accessor :target_Type
823
+ attr_accessor :bidModifier
824
+ attr_accessor :gender
825
+
826
+ def initialize(target_Type = nil, bidModifier = nil, gender = nil)
827
+ @target_Type = target_Type
828
+ @bidModifier = bidModifier
829
+ @gender = gender
830
+ end
831
+ end
832
+
833
+ # GeoTarget
834
+ # abstract
835
+ # - target_Type - SOAP::SOAPString
836
+ # - excluded - SOAP::SOAPBoolean
837
+ class GeoTarget < Target
838
+ attr_accessor :target_Type
839
+ attr_accessor :excluded
840
+
841
+ def initialize(target_Type = nil, excluded = nil)
842
+ @target_Type = target_Type
843
+ @excluded = excluded
844
+ end
845
+ end
846
+
847
+ # CityTarget
848
+ # - target_Type - SOAP::SOAPString
849
+ # - excluded - SOAP::SOAPBoolean
850
+ # - cityName - SOAP::SOAPString
851
+ # - provinceCode - SOAP::SOAPString
852
+ # - countryCode - SOAP::SOAPString
853
+ class CityTarget < GeoTarget
854
+ attr_accessor :target_Type
855
+ attr_accessor :excluded
856
+ attr_accessor :cityName
857
+ attr_accessor :provinceCode
858
+ attr_accessor :countryCode
859
+
860
+ def initialize(target_Type = nil, excluded = nil, cityName = nil, provinceCode = nil, countryCode = nil)
861
+ @target_Type = target_Type
862
+ @excluded = excluded
863
+ @cityName = cityName
864
+ @provinceCode = provinceCode
865
+ @countryCode = countryCode
866
+ end
867
+ end
868
+
869
+ # CountryTarget
870
+ # - target_Type - SOAP::SOAPString
871
+ # - excluded - SOAP::SOAPBoolean
872
+ # - countryCode - SOAP::SOAPString
873
+ class CountryTarget < GeoTarget
874
+ attr_accessor :target_Type
875
+ attr_accessor :excluded
876
+ attr_accessor :countryCode
877
+
878
+ def initialize(target_Type = nil, excluded = nil, countryCode = nil)
879
+ @target_Type = target_Type
880
+ @excluded = excluded
881
+ @countryCode = countryCode
882
+ end
883
+ end
884
+
885
+ # MetroTarget
886
+ # - target_Type - SOAP::SOAPString
887
+ # - excluded - SOAP::SOAPBoolean
888
+ # - metroCode - SOAP::SOAPString
889
+ class MetroTarget < GeoTarget
890
+ attr_accessor :target_Type
891
+ attr_accessor :excluded
892
+ attr_accessor :metroCode
893
+
894
+ def initialize(target_Type = nil, excluded = nil, metroCode = nil)
895
+ @target_Type = target_Type
896
+ @excluded = excluded
897
+ @metroCode = metroCode
898
+ end
899
+ end
900
+
901
+ # PolygonTarget
902
+ # - target_Type - SOAP::SOAPString
903
+ # - excluded - SOAP::SOAPBoolean
904
+ # - vertices - AdwordsApi::V200909::AdGroupAdService::GeoPoint
905
+ class PolygonTarget < GeoTarget
906
+ attr_accessor :target_Type
907
+ attr_accessor :excluded
908
+ attr_accessor :vertices
909
+
910
+ def initialize(target_Type = nil, excluded = nil, vertices = [])
911
+ @target_Type = target_Type
912
+ @excluded = excluded
913
+ @vertices = vertices
914
+ end
915
+ end
916
+
917
+ # ProvinceTarget
918
+ # - target_Type - SOAP::SOAPString
919
+ # - excluded - SOAP::SOAPBoolean
920
+ # - provinceCode - SOAP::SOAPString
921
+ class ProvinceTarget < GeoTarget
922
+ attr_accessor :target_Type
923
+ attr_accessor :excluded
924
+ attr_accessor :provinceCode
925
+
926
+ def initialize(target_Type = nil, excluded = nil, provinceCode = nil)
927
+ @target_Type = target_Type
928
+ @excluded = excluded
929
+ @provinceCode = provinceCode
930
+ end
931
+ end
932
+
933
+ # ProximityTarget
934
+ # - target_Type - SOAP::SOAPString
935
+ # - excluded - SOAP::SOAPBoolean
936
+ # - geoPoint - AdwordsApi::V200909::AdGroupAdService::GeoPoint
937
+ # - radiusDistanceUnits - AdwordsApi::V200909::AdGroupAdService::ProximityTargetDistanceUnits
938
+ # - radiusInUnits - SOAP::SOAPDouble
939
+ # - address - AdwordsApi::V200909::AdGroupAdService::Address
940
+ # - allowServiceOfAddress - SOAP::SOAPBoolean
941
+ class ProximityTarget < GeoTarget
942
+ attr_accessor :target_Type
943
+ attr_accessor :excluded
944
+ attr_accessor :geoPoint
945
+ attr_accessor :radiusDistanceUnits
946
+ attr_accessor :radiusInUnits
947
+ attr_accessor :address
948
+ attr_accessor :allowServiceOfAddress
949
+
950
+ def initialize(target_Type = nil, excluded = nil, geoPoint = nil, radiusDistanceUnits = nil, radiusInUnits = nil, address = nil, allowServiceOfAddress = nil)
951
+ @target_Type = target_Type
952
+ @excluded = excluded
953
+ @geoPoint = geoPoint
954
+ @radiusDistanceUnits = radiusDistanceUnits
955
+ @radiusInUnits = radiusInUnits
956
+ @address = address
957
+ @allowServiceOfAddress = allowServiceOfAddress
958
+ end
959
+ end
960
+
961
+ # TemplateElementField
962
+ # - name - SOAP::SOAPString
963
+ # - type - AdwordsApi::V200909::AdGroupAdService::TemplateElementFieldType
964
+ # - fieldText - SOAP::SOAPString
965
+ # - fieldMedia - AdwordsApi::V200909::AdGroupAdService::Media
966
+ class TemplateElementField
967
+ attr_accessor :name
968
+ attr_accessor :type
969
+ attr_accessor :fieldText
970
+ attr_accessor :fieldMedia
971
+
972
+ def initialize(name = nil, type = nil, fieldText = nil, fieldMedia = nil)
973
+ @name = name
974
+ @type = type
975
+ @fieldText = fieldText
976
+ @fieldMedia = fieldMedia
977
+ end
978
+ end
979
+
980
+ # ApiError
981
+ # abstract
982
+ # - fieldPath - SOAP::SOAPString
983
+ # - trigger - SOAP::SOAPString
984
+ # - apiError_Type - SOAP::SOAPString
985
+ class ApiError
986
+ attr_accessor :fieldPath
987
+ attr_accessor :trigger
988
+ attr_accessor :apiError_Type
989
+
990
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil)
991
+ @fieldPath = fieldPath
992
+ @trigger = trigger
993
+ @apiError_Type = apiError_Type
994
+ end
995
+ end
996
+
997
+ # AdError
998
+ # - fieldPath - SOAP::SOAPString
999
+ # - trigger - SOAP::SOAPString
1000
+ # - apiError_Type - SOAP::SOAPString
1001
+ # - reason - AdwordsApi::V200909::AdGroupAdService::AdErrorReason
1002
+ class AdError < ApiError
1003
+ attr_accessor :fieldPath
1004
+ attr_accessor :trigger
1005
+ attr_accessor :apiError_Type
1006
+ attr_accessor :reason
1007
+
1008
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1009
+ @fieldPath = fieldPath
1010
+ @trigger = trigger
1011
+ @apiError_Type = apiError_Type
1012
+ @reason = reason
1013
+ end
1014
+ end
1015
+
1016
+ # AdGroupAdError
1017
+ # - fieldPath - SOAP::SOAPString
1018
+ # - trigger - SOAP::SOAPString
1019
+ # - apiError_Type - SOAP::SOAPString
1020
+ # - reason - AdwordsApi::V200909::AdGroupAdService::AdGroupAdErrorReason
1021
+ class AdGroupAdError < ApiError
1022
+ attr_accessor :fieldPath
1023
+ attr_accessor :trigger
1024
+ attr_accessor :apiError_Type
1025
+ attr_accessor :reason
1026
+
1027
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1028
+ @fieldPath = fieldPath
1029
+ @trigger = trigger
1030
+ @apiError_Type = apiError_Type
1031
+ @reason = reason
1032
+ end
1033
+ end
1034
+
1035
+ # AuthenticationError
1036
+ # - fieldPath - SOAP::SOAPString
1037
+ # - trigger - SOAP::SOAPString
1038
+ # - apiError_Type - SOAP::SOAPString
1039
+ # - reason - AdwordsApi::V200909::AdGroupAdService::AuthenticationErrorReason
1040
+ class AuthenticationError < ApiError
1041
+ attr_accessor :fieldPath
1042
+ attr_accessor :trigger
1043
+ attr_accessor :apiError_Type
1044
+ attr_accessor :reason
1045
+
1046
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1047
+ @fieldPath = fieldPath
1048
+ @trigger = trigger
1049
+ @apiError_Type = apiError_Type
1050
+ @reason = reason
1051
+ end
1052
+ end
1053
+
1054
+ # AuthorizationError
1055
+ # - fieldPath - SOAP::SOAPString
1056
+ # - trigger - SOAP::SOAPString
1057
+ # - apiError_Type - SOAP::SOAPString
1058
+ # - reason - AdwordsApi::V200909::AdGroupAdService::AuthorizationErrorReason
1059
+ class AuthorizationError < ApiError
1060
+ attr_accessor :fieldPath
1061
+ attr_accessor :trigger
1062
+ attr_accessor :apiError_Type
1063
+ attr_accessor :reason
1064
+
1065
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1066
+ @fieldPath = fieldPath
1067
+ @trigger = trigger
1068
+ @apiError_Type = apiError_Type
1069
+ @reason = reason
1070
+ end
1071
+ end
1072
+
1073
+ # ClientTermsError
1074
+ # - fieldPath - SOAP::SOAPString
1075
+ # - trigger - SOAP::SOAPString
1076
+ # - apiError_Type - SOAP::SOAPString
1077
+ # - reason - AdwordsApi::V200909::AdGroupAdService::ClientTermsErrorReason
1078
+ class ClientTermsError < ApiError
1079
+ attr_accessor :fieldPath
1080
+ attr_accessor :trigger
1081
+ attr_accessor :apiError_Type
1082
+ attr_accessor :reason
1083
+
1084
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1085
+ @fieldPath = fieldPath
1086
+ @trigger = trigger
1087
+ @apiError_Type = apiError_Type
1088
+ @reason = reason
1089
+ end
1090
+ end
1091
+
1092
+ # DateError
1093
+ # - fieldPath - SOAP::SOAPString
1094
+ # - trigger - SOAP::SOAPString
1095
+ # - apiError_Type - SOAP::SOAPString
1096
+ # - reason - AdwordsApi::V200909::AdGroupAdService::DateErrorReason
1097
+ class DateError < ApiError
1098
+ attr_accessor :fieldPath
1099
+ attr_accessor :trigger
1100
+ attr_accessor :apiError_Type
1101
+ attr_accessor :reason
1102
+
1103
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1104
+ @fieldPath = fieldPath
1105
+ @trigger = trigger
1106
+ @apiError_Type = apiError_Type
1107
+ @reason = reason
1108
+ end
1109
+ end
1110
+
1111
+ # DistinctError
1112
+ # - fieldPath - SOAP::SOAPString
1113
+ # - trigger - SOAP::SOAPString
1114
+ # - apiError_Type - SOAP::SOAPString
1115
+ # - reason - AdwordsApi::V200909::AdGroupAdService::DistinctErrorReason
1116
+ class DistinctError < ApiError
1117
+ attr_accessor :fieldPath
1118
+ attr_accessor :trigger
1119
+ attr_accessor :apiError_Type
1120
+ attr_accessor :reason
1121
+
1122
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1123
+ @fieldPath = fieldPath
1124
+ @trigger = trigger
1125
+ @apiError_Type = apiError_Type
1126
+ @reason = reason
1127
+ end
1128
+ end
1129
+
1130
+ # EntityCountLimitExceeded
1131
+ # - fieldPath - SOAP::SOAPString
1132
+ # - trigger - SOAP::SOAPString
1133
+ # - apiError_Type - SOAP::SOAPString
1134
+ # - reason - AdwordsApi::V200909::AdGroupAdService::EntityCountLimitExceededReason
1135
+ # - enclosingId - SOAP::SOAPString
1136
+ # - limit - SOAP::SOAPInt
1137
+ class EntityCountLimitExceeded < ApiError
1138
+ attr_accessor :fieldPath
1139
+ attr_accessor :trigger
1140
+ attr_accessor :apiError_Type
1141
+ attr_accessor :reason
1142
+ attr_accessor :enclosingId
1143
+ attr_accessor :limit
1144
+
1145
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil, enclosingId = nil, limit = nil)
1146
+ @fieldPath = fieldPath
1147
+ @trigger = trigger
1148
+ @apiError_Type = apiError_Type
1149
+ @reason = reason
1150
+ @enclosingId = enclosingId
1151
+ @limit = limit
1152
+ end
1153
+ end
1154
+
1155
+ # AdGroupAdCountLimitExceeded
1156
+ # - fieldPath - SOAP::SOAPString
1157
+ # - trigger - SOAP::SOAPString
1158
+ # - apiError_Type - SOAP::SOAPString
1159
+ # - reason - AdwordsApi::V200909::AdGroupAdService::EntityCountLimitExceededReason
1160
+ # - enclosingId - SOAP::SOAPString
1161
+ # - limit - SOAP::SOAPInt
1162
+ class AdGroupAdCountLimitExceeded < EntityCountLimitExceeded
1163
+ attr_accessor :fieldPath
1164
+ attr_accessor :trigger
1165
+ attr_accessor :apiError_Type
1166
+ attr_accessor :reason
1167
+ attr_accessor :enclosingId
1168
+ attr_accessor :limit
1169
+
1170
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil, enclosingId = nil, limit = nil)
1171
+ @fieldPath = fieldPath
1172
+ @trigger = trigger
1173
+ @apiError_Type = apiError_Type
1174
+ @reason = reason
1175
+ @enclosingId = enclosingId
1176
+ @limit = limit
1177
+ end
1178
+ end
1179
+
1180
+ # EntityNotFound
1181
+ # - fieldPath - SOAP::SOAPString
1182
+ # - trigger - SOAP::SOAPString
1183
+ # - apiError_Type - SOAP::SOAPString
1184
+ # - reason - AdwordsApi::V200909::AdGroupAdService::EntityNotFoundReason
1185
+ class EntityNotFound < ApiError
1186
+ attr_accessor :fieldPath
1187
+ attr_accessor :trigger
1188
+ attr_accessor :apiError_Type
1189
+ attr_accessor :reason
1190
+
1191
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1192
+ @fieldPath = fieldPath
1193
+ @trigger = trigger
1194
+ @apiError_Type = apiError_Type
1195
+ @reason = reason
1196
+ end
1197
+ end
1198
+
1199
+ # IdError
1200
+ # - fieldPath - SOAP::SOAPString
1201
+ # - trigger - SOAP::SOAPString
1202
+ # - apiError_Type - SOAP::SOAPString
1203
+ # - reason - AdwordsApi::V200909::AdGroupAdService::IdErrorReason
1204
+ class IdError < ApiError
1205
+ attr_accessor :fieldPath
1206
+ attr_accessor :trigger
1207
+ attr_accessor :apiError_Type
1208
+ attr_accessor :reason
1209
+
1210
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1211
+ @fieldPath = fieldPath
1212
+ @trigger = trigger
1213
+ @apiError_Type = apiError_Type
1214
+ @reason = reason
1215
+ end
1216
+ end
1217
+
1218
+ # ImageError
1219
+ # - fieldPath - SOAP::SOAPString
1220
+ # - trigger - SOAP::SOAPString
1221
+ # - apiError_Type - SOAP::SOAPString
1222
+ # - reason - AdwordsApi::V200909::AdGroupAdService::ImageErrorReason
1223
+ class ImageError < ApiError
1224
+ attr_accessor :fieldPath
1225
+ attr_accessor :trigger
1226
+ attr_accessor :apiError_Type
1227
+ attr_accessor :reason
1228
+
1229
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1230
+ @fieldPath = fieldPath
1231
+ @trigger = trigger
1232
+ @apiError_Type = apiError_Type
1233
+ @reason = reason
1234
+ end
1235
+ end
1236
+
1237
+ # InternalApiError
1238
+ # - fieldPath - SOAP::SOAPString
1239
+ # - trigger - SOAP::SOAPString
1240
+ # - apiError_Type - SOAP::SOAPString
1241
+ # - reason - AdwordsApi::V200909::AdGroupAdService::InternalApiErrorReason
1242
+ class InternalApiError < ApiError
1243
+ attr_accessor :fieldPath
1244
+ attr_accessor :trigger
1245
+ attr_accessor :apiError_Type
1246
+ attr_accessor :reason
1247
+
1248
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1249
+ @fieldPath = fieldPath
1250
+ @trigger = trigger
1251
+ @apiError_Type = apiError_Type
1252
+ @reason = reason
1253
+ end
1254
+ end
1255
+
1256
+ # MediaError
1257
+ # - fieldPath - SOAP::SOAPString
1258
+ # - trigger - SOAP::SOAPString
1259
+ # - apiError_Type - SOAP::SOAPString
1260
+ # - reason - AdwordsApi::V200909::AdGroupAdService::MediaErrorReason
1261
+ class MediaError < ApiError
1262
+ attr_accessor :fieldPath
1263
+ attr_accessor :trigger
1264
+ attr_accessor :apiError_Type
1265
+ attr_accessor :reason
1266
+
1267
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1268
+ @fieldPath = fieldPath
1269
+ @trigger = trigger
1270
+ @apiError_Type = apiError_Type
1271
+ @reason = reason
1272
+ end
1273
+ end
1274
+
1275
+ # NewEntityCreationError
1276
+ # - fieldPath - SOAP::SOAPString
1277
+ # - trigger - SOAP::SOAPString
1278
+ # - apiError_Type - SOAP::SOAPString
1279
+ # - reason - AdwordsApi::V200909::AdGroupAdService::NewEntityCreationErrorReason
1280
+ class NewEntityCreationError < ApiError
1281
+ attr_accessor :fieldPath
1282
+ attr_accessor :trigger
1283
+ attr_accessor :apiError_Type
1284
+ attr_accessor :reason
1285
+
1286
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1287
+ @fieldPath = fieldPath
1288
+ @trigger = trigger
1289
+ @apiError_Type = apiError_Type
1290
+ @reason = reason
1291
+ end
1292
+ end
1293
+
1294
+ # NotEmptyError
1295
+ # - fieldPath - SOAP::SOAPString
1296
+ # - trigger - SOAP::SOAPString
1297
+ # - apiError_Type - SOAP::SOAPString
1298
+ # - reason - AdwordsApi::V200909::AdGroupAdService::NotEmptyErrorReason
1299
+ class NotEmptyError < ApiError
1300
+ attr_accessor :fieldPath
1301
+ attr_accessor :trigger
1302
+ attr_accessor :apiError_Type
1303
+ attr_accessor :reason
1304
+
1305
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1306
+ @fieldPath = fieldPath
1307
+ @trigger = trigger
1308
+ @apiError_Type = apiError_Type
1309
+ @reason = reason
1310
+ end
1311
+ end
1312
+
1313
+ # NotWhitelistedError
1314
+ # - fieldPath - SOAP::SOAPString
1315
+ # - trigger - SOAP::SOAPString
1316
+ # - apiError_Type - SOAP::SOAPString
1317
+ # - reason - AdwordsApi::V200909::AdGroupAdService::NotWhitelistedErrorReason
1318
+ class NotWhitelistedError < ApiError
1319
+ attr_accessor :fieldPath
1320
+ attr_accessor :trigger
1321
+ attr_accessor :apiError_Type
1322
+ attr_accessor :reason
1323
+
1324
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1325
+ @fieldPath = fieldPath
1326
+ @trigger = trigger
1327
+ @apiError_Type = apiError_Type
1328
+ @reason = reason
1329
+ end
1330
+ end
1331
+
1332
+ # NullError
1333
+ # - fieldPath - SOAP::SOAPString
1334
+ # - trigger - SOAP::SOAPString
1335
+ # - apiError_Type - SOAP::SOAPString
1336
+ # - reason - AdwordsApi::V200909::AdGroupAdService::NullErrorReason
1337
+ class NullError < ApiError
1338
+ attr_accessor :fieldPath
1339
+ attr_accessor :trigger
1340
+ attr_accessor :apiError_Type
1341
+ attr_accessor :reason
1342
+
1343
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1344
+ @fieldPath = fieldPath
1345
+ @trigger = trigger
1346
+ @apiError_Type = apiError_Type
1347
+ @reason = reason
1348
+ end
1349
+ end
1350
+
1351
+ # OperationAccessDenied
1352
+ # - fieldPath - SOAP::SOAPString
1353
+ # - trigger - SOAP::SOAPString
1354
+ # - apiError_Type - SOAP::SOAPString
1355
+ # - reason - AdwordsApi::V200909::AdGroupAdService::OperationAccessDeniedReason
1356
+ class OperationAccessDenied < ApiError
1357
+ attr_accessor :fieldPath
1358
+ attr_accessor :trigger
1359
+ attr_accessor :apiError_Type
1360
+ attr_accessor :reason
1361
+
1362
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1363
+ @fieldPath = fieldPath
1364
+ @trigger = trigger
1365
+ @apiError_Type = apiError_Type
1366
+ @reason = reason
1367
+ end
1368
+ end
1369
+
1370
+ # PagingError
1371
+ # - fieldPath - SOAP::SOAPString
1372
+ # - trigger - SOAP::SOAPString
1373
+ # - apiError_Type - SOAP::SOAPString
1374
+ # - reason - AdwordsApi::V200909::AdGroupAdService::PagingErrorReason
1375
+ class PagingError < ApiError
1376
+ attr_accessor :fieldPath
1377
+ attr_accessor :trigger
1378
+ attr_accessor :apiError_Type
1379
+ attr_accessor :reason
1380
+
1381
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1382
+ @fieldPath = fieldPath
1383
+ @trigger = trigger
1384
+ @apiError_Type = apiError_Type
1385
+ @reason = reason
1386
+ end
1387
+ end
1388
+
1389
+ # QuotaCheckError
1390
+ # - fieldPath - SOAP::SOAPString
1391
+ # - trigger - SOAP::SOAPString
1392
+ # - apiError_Type - SOAP::SOAPString
1393
+ # - reason - AdwordsApi::V200909::AdGroupAdService::QuotaCheckErrorReason
1394
+ class QuotaCheckError < ApiError
1395
+ attr_accessor :fieldPath
1396
+ attr_accessor :trigger
1397
+ attr_accessor :apiError_Type
1398
+ attr_accessor :reason
1399
+
1400
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1401
+ @fieldPath = fieldPath
1402
+ @trigger = trigger
1403
+ @apiError_Type = apiError_Type
1404
+ @reason = reason
1405
+ end
1406
+ end
1407
+
1408
+ # QuotaExceededError
1409
+ # - fieldPath - SOAP::SOAPString
1410
+ # - trigger - SOAP::SOAPString
1411
+ # - apiError_Type - SOAP::SOAPString
1412
+ # - reason - AdwordsApi::V200909::AdGroupAdService::QuotaExceededErrorReason
1413
+ class QuotaExceededError < ApiError
1414
+ attr_accessor :fieldPath
1415
+ attr_accessor :trigger
1416
+ attr_accessor :apiError_Type
1417
+ attr_accessor :reason
1418
+
1419
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1420
+ @fieldPath = fieldPath
1421
+ @trigger = trigger
1422
+ @apiError_Type = apiError_Type
1423
+ @reason = reason
1424
+ end
1425
+ end
1426
+
1427
+ # RangeError
1428
+ # - fieldPath - SOAP::SOAPString
1429
+ # - trigger - SOAP::SOAPString
1430
+ # - apiError_Type - SOAP::SOAPString
1431
+ # - reason - AdwordsApi::V200909::AdGroupAdService::RangeErrorReason
1432
+ class C_RangeError < ApiError
1433
+ attr_accessor :fieldPath
1434
+ attr_accessor :trigger
1435
+ attr_accessor :apiError_Type
1436
+ attr_accessor :reason
1437
+
1438
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1439
+ @fieldPath = fieldPath
1440
+ @trigger = trigger
1441
+ @apiError_Type = apiError_Type
1442
+ @reason = reason
1443
+ end
1444
+ end
1445
+
1446
+ # ReadOnlyError
1447
+ # - fieldPath - SOAP::SOAPString
1448
+ # - trigger - SOAP::SOAPString
1449
+ # - apiError_Type - SOAP::SOAPString
1450
+ # - reason - AdwordsApi::V200909::AdGroupAdService::ReadOnlyErrorReason
1451
+ class ReadOnlyError < ApiError
1452
+ attr_accessor :fieldPath
1453
+ attr_accessor :trigger
1454
+ attr_accessor :apiError_Type
1455
+ attr_accessor :reason
1456
+
1457
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1458
+ @fieldPath = fieldPath
1459
+ @trigger = trigger
1460
+ @apiError_Type = apiError_Type
1461
+ @reason = reason
1462
+ end
1463
+ end
1464
+
1465
+ # RequiredError
1466
+ # - fieldPath - SOAP::SOAPString
1467
+ # - trigger - SOAP::SOAPString
1468
+ # - apiError_Type - SOAP::SOAPString
1469
+ # - reason - AdwordsApi::V200909::AdGroupAdService::RequiredErrorReason
1470
+ class RequiredError < ApiError
1471
+ attr_accessor :fieldPath
1472
+ attr_accessor :trigger
1473
+ attr_accessor :apiError_Type
1474
+ attr_accessor :reason
1475
+
1476
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1477
+ @fieldPath = fieldPath
1478
+ @trigger = trigger
1479
+ @apiError_Type = apiError_Type
1480
+ @reason = reason
1481
+ end
1482
+ end
1483
+
1484
+ # SizeLimitError
1485
+ # - fieldPath - SOAP::SOAPString
1486
+ # - trigger - SOAP::SOAPString
1487
+ # - apiError_Type - SOAP::SOAPString
1488
+ # - reason - AdwordsApi::V200909::AdGroupAdService::SizeLimitErrorReason
1489
+ class SizeLimitError < ApiError
1490
+ attr_accessor :fieldPath
1491
+ attr_accessor :trigger
1492
+ attr_accessor :apiError_Type
1493
+ attr_accessor :reason
1494
+
1495
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1496
+ @fieldPath = fieldPath
1497
+ @trigger = trigger
1498
+ @apiError_Type = apiError_Type
1499
+ @reason = reason
1500
+ end
1501
+ end
1502
+
1503
+ # StatsQueryError
1504
+ # - fieldPath - SOAP::SOAPString
1505
+ # - trigger - SOAP::SOAPString
1506
+ # - apiError_Type - SOAP::SOAPString
1507
+ # - reason - AdwordsApi::V200909::AdGroupAdService::StatsQueryErrorReason
1508
+ class StatsQueryError < ApiError
1509
+ attr_accessor :fieldPath
1510
+ attr_accessor :trigger
1511
+ attr_accessor :apiError_Type
1512
+ attr_accessor :reason
1513
+
1514
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1515
+ @fieldPath = fieldPath
1516
+ @trigger = trigger
1517
+ @apiError_Type = apiError_Type
1518
+ @reason = reason
1519
+ end
1520
+ end
1521
+
1522
+ # DatabaseError
1523
+ # - fieldPath - SOAP::SOAPString
1524
+ # - trigger - SOAP::SOAPString
1525
+ # - apiError_Type - SOAP::SOAPString
1526
+ # - reason - AdwordsApi::V200909::AdGroupAdService::DatabaseErrorReason
1527
+ class DatabaseError < ApiError
1528
+ attr_accessor :fieldPath
1529
+ attr_accessor :trigger
1530
+ attr_accessor :apiError_Type
1531
+ attr_accessor :reason
1532
+
1533
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
1534
+ @fieldPath = fieldPath
1535
+ @trigger = trigger
1536
+ @apiError_Type = apiError_Type
1537
+ @reason = reason
1538
+ end
1539
+ end
1540
+
1541
+ # PolicyViolationError
1542
+ # - fieldPath - SOAP::SOAPString
1543
+ # - trigger - SOAP::SOAPString
1544
+ # - apiError_Type - SOAP::SOAPString
1545
+ # - key - AdwordsApi::V200909::AdGroupAdService::PolicyViolationKey
1546
+ # - externalPolicyName - SOAP::SOAPString
1547
+ # - externalPolicyUrl - SOAP::SOAPString
1548
+ # - externalPolicyDescription - SOAP::SOAPString
1549
+ # - isExemptable - SOAP::SOAPBoolean
1550
+ # - violatingParts - AdwordsApi::V200909::AdGroupAdService::PolicyViolationErrorPart
1551
+ class PolicyViolationError < ApiError
1552
+ attr_accessor :fieldPath
1553
+ attr_accessor :trigger
1554
+ attr_accessor :apiError_Type
1555
+ attr_accessor :key
1556
+ attr_accessor :externalPolicyName
1557
+ attr_accessor :externalPolicyUrl
1558
+ attr_accessor :externalPolicyDescription
1559
+ attr_accessor :isExemptable
1560
+ attr_accessor :violatingParts
1561
+
1562
+ def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, key = nil, externalPolicyName = nil, externalPolicyUrl = nil, externalPolicyDescription = nil, isExemptable = nil, violatingParts = [])
1563
+ @fieldPath = fieldPath
1564
+ @trigger = trigger
1565
+ @apiError_Type = apiError_Type
1566
+ @key = key
1567
+ @externalPolicyName = externalPolicyName
1568
+ @externalPolicyUrl = externalPolicyUrl
1569
+ @externalPolicyDescription = externalPolicyDescription
1570
+ @isExemptable = isExemptable
1571
+ @violatingParts = violatingParts
1572
+ end
1573
+ end
1574
+
1575
+ # ApplicationException
1576
+ # - message - SOAP::SOAPString
1577
+ # - applicationException_Type - SOAP::SOAPString
1578
+ class ApplicationException
1579
+ attr_accessor :message
1580
+ attr_accessor :applicationException_Type
1581
+
1582
+ def initialize(message = nil, applicationException_Type = nil)
1583
+ @message = message
1584
+ @applicationException_Type = applicationException_Type
1585
+ end
1586
+ end
1587
+
1588
+ # ApiException
1589
+ # - message - SOAP::SOAPString
1590
+ # - applicationException_Type - SOAP::SOAPString
1591
+ # - errors - AdwordsApi::V200909::AdGroupAdService::ApiError
1592
+ class ApiException < ApplicationException
1593
+ attr_accessor :message
1594
+ attr_accessor :applicationException_Type
1595
+ attr_accessor :errors
1596
+
1597
+ def initialize(message = nil, applicationException_Type = nil, errors = [])
1598
+ @message = message
1599
+ @applicationException_Type = applicationException_Type
1600
+ @errors = errors
1601
+ end
1602
+ end
1603
+
1604
+ # TemplateElement
1605
+ # - uniqueName - SOAP::SOAPString
1606
+ # - fields - AdwordsApi::V200909::AdGroupAdService::TemplateElementField
1607
+ class TemplateElement
1608
+ attr_accessor :uniqueName
1609
+ attr_accessor :fields
1610
+
1611
+ def initialize(uniqueName = nil, fields = [])
1612
+ @uniqueName = uniqueName
1613
+ @fields = fields
1614
+ end
1615
+ end
1616
+
1617
+ # AdGroupAdSelector
1618
+ # - campaignIds - SOAP::SOAPLong
1619
+ # - adGroupIds - SOAP::SOAPLong
1620
+ # - adIds - SOAP::SOAPLong
1621
+ # - statsSelector - AdwordsApi::V200909::AdGroupAdService::AdStatsSelector
1622
+ # - paging - AdwordsApi::V200909::AdGroupAdService::Paging
1623
+ class AdGroupAdSelector
1624
+ attr_accessor :campaignIds
1625
+ attr_accessor :adGroupIds
1626
+ attr_accessor :adIds
1627
+ attr_accessor :statsSelector
1628
+ attr_accessor :paging
1629
+
1630
+ def initialize(campaignIds = [], adGroupIds = [], adIds = [], statsSelector = nil, paging = nil)
1631
+ @campaignIds = campaignIds
1632
+ @adGroupIds = adGroupIds
1633
+ @adIds = adIds
1634
+ @statsSelector = statsSelector
1635
+ @paging = paging
1636
+ end
1637
+ end
1638
+
1639
+ # Ad
1640
+ # - id - SOAP::SOAPLong
1641
+ # - url - SOAP::SOAPString
1642
+ # - displayUrl - SOAP::SOAPString
1643
+ # - approvalStatus - AdwordsApi::V200909::AdGroupAdService::AdApprovalStatus
1644
+ # - disapprovalReasons - SOAP::SOAPString
1645
+ # - ad_Type - SOAP::SOAPString
1646
+ class Ad
1647
+ attr_accessor :id
1648
+ attr_accessor :url
1649
+ attr_accessor :displayUrl
1650
+ attr_accessor :approvalStatus
1651
+ attr_accessor :disapprovalReasons
1652
+ attr_accessor :ad_Type
1653
+
1654
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], ad_Type = nil)
1655
+ @id = id
1656
+ @url = url
1657
+ @displayUrl = displayUrl
1658
+ @approvalStatus = approvalStatus
1659
+ @disapprovalReasons = disapprovalReasons
1660
+ @ad_Type = ad_Type
1661
+ end
1662
+ end
1663
+
1664
+ # DeprecatedAd
1665
+ # - id - SOAP::SOAPLong
1666
+ # - url - SOAP::SOAPString
1667
+ # - displayUrl - SOAP::SOAPString
1668
+ # - approvalStatus - AdwordsApi::V200909::AdGroupAdService::AdApprovalStatus
1669
+ # - disapprovalReasons - SOAP::SOAPString
1670
+ # - ad_Type - SOAP::SOAPString
1671
+ # - name - SOAP::SOAPString
1672
+ # - type - AdwordsApi::V200909::AdGroupAdService::DeprecatedAdType
1673
+ class DeprecatedAd < Ad
1674
+ attr_accessor :id
1675
+ attr_accessor :url
1676
+ attr_accessor :displayUrl
1677
+ attr_accessor :approvalStatus
1678
+ attr_accessor :disapprovalReasons
1679
+ attr_accessor :ad_Type
1680
+ attr_accessor :name
1681
+ attr_accessor :type
1682
+
1683
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], ad_Type = nil, name = nil, type = nil)
1684
+ @id = id
1685
+ @url = url
1686
+ @displayUrl = displayUrl
1687
+ @approvalStatus = approvalStatus
1688
+ @disapprovalReasons = disapprovalReasons
1689
+ @ad_Type = ad_Type
1690
+ @name = name
1691
+ @type = type
1692
+ end
1693
+ end
1694
+
1695
+ # MobileAd
1696
+ # - id - SOAP::SOAPLong
1697
+ # - url - SOAP::SOAPString
1698
+ # - displayUrl - SOAP::SOAPString
1699
+ # - approvalStatus - AdwordsApi::V200909::AdGroupAdService::AdApprovalStatus
1700
+ # - disapprovalReasons - SOAP::SOAPString
1701
+ # - ad_Type - SOAP::SOAPString
1702
+ # - headline - SOAP::SOAPString
1703
+ # - description - SOAP::SOAPString
1704
+ # - markupLanguages - AdwordsApi::V200909::AdGroupAdService::MarkupLanguageType
1705
+ # - mobileCarriers - SOAP::SOAPString
1706
+ # - businessName - SOAP::SOAPString
1707
+ # - countryCode - SOAP::SOAPString
1708
+ # - phoneNumber - SOAP::SOAPString
1709
+ class MobileAd < Ad
1710
+ attr_accessor :id
1711
+ attr_accessor :url
1712
+ attr_accessor :displayUrl
1713
+ attr_accessor :approvalStatus
1714
+ attr_accessor :disapprovalReasons
1715
+ attr_accessor :ad_Type
1716
+ attr_accessor :headline
1717
+ attr_accessor :description
1718
+ attr_accessor :markupLanguages
1719
+ attr_accessor :mobileCarriers
1720
+ attr_accessor :businessName
1721
+ attr_accessor :countryCode
1722
+ attr_accessor :phoneNumber
1723
+
1724
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], ad_Type = nil, headline = nil, description = nil, markupLanguages = [], mobileCarriers = [], businessName = nil, countryCode = nil, phoneNumber = nil)
1725
+ @id = id
1726
+ @url = url
1727
+ @displayUrl = displayUrl
1728
+ @approvalStatus = approvalStatus
1729
+ @disapprovalReasons = disapprovalReasons
1730
+ @ad_Type = ad_Type
1731
+ @headline = headline
1732
+ @description = description
1733
+ @markupLanguages = markupLanguages
1734
+ @mobileCarriers = mobileCarriers
1735
+ @businessName = businessName
1736
+ @countryCode = countryCode
1737
+ @phoneNumber = phoneNumber
1738
+ end
1739
+ end
1740
+
1741
+ # TextAd
1742
+ # - id - SOAP::SOAPLong
1743
+ # - url - SOAP::SOAPString
1744
+ # - displayUrl - SOAP::SOAPString
1745
+ # - approvalStatus - AdwordsApi::V200909::AdGroupAdService::AdApprovalStatus
1746
+ # - disapprovalReasons - SOAP::SOAPString
1747
+ # - ad_Type - SOAP::SOAPString
1748
+ # - headline - SOAP::SOAPString
1749
+ # - description1 - SOAP::SOAPString
1750
+ # - description2 - SOAP::SOAPString
1751
+ class TextAd < Ad
1752
+ attr_accessor :id
1753
+ attr_accessor :url
1754
+ attr_accessor :displayUrl
1755
+ attr_accessor :approvalStatus
1756
+ attr_accessor :disapprovalReasons
1757
+ attr_accessor :ad_Type
1758
+ attr_accessor :headline
1759
+ attr_accessor :description1
1760
+ attr_accessor :description2
1761
+
1762
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], ad_Type = nil, headline = nil, description1 = nil, description2 = nil)
1763
+ @id = id
1764
+ @url = url
1765
+ @displayUrl = displayUrl
1766
+ @approvalStatus = approvalStatus
1767
+ @disapprovalReasons = disapprovalReasons
1768
+ @ad_Type = ad_Type
1769
+ @headline = headline
1770
+ @description1 = description1
1771
+ @description2 = description2
1772
+ end
1773
+ end
1774
+
1775
+ # MobileImageAd
1776
+ # - id - SOAP::SOAPLong
1777
+ # - url - SOAP::SOAPString
1778
+ # - displayUrl - SOAP::SOAPString
1779
+ # - approvalStatus - AdwordsApi::V200909::AdGroupAdService::AdApprovalStatus
1780
+ # - disapprovalReasons - SOAP::SOAPString
1781
+ # - ad_Type - SOAP::SOAPString
1782
+ # - markupLanguages - AdwordsApi::V200909::AdGroupAdService::MarkupLanguageType
1783
+ # - mobileCarriers - SOAP::SOAPString
1784
+ # - image - AdwordsApi::V200909::AdGroupAdService::Image
1785
+ class MobileImageAd < Ad
1786
+ attr_accessor :id
1787
+ attr_accessor :url
1788
+ attr_accessor :displayUrl
1789
+ attr_accessor :approvalStatus
1790
+ attr_accessor :disapprovalReasons
1791
+ attr_accessor :ad_Type
1792
+ attr_accessor :markupLanguages
1793
+ attr_accessor :mobileCarriers
1794
+ attr_accessor :image
1795
+
1796
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], ad_Type = nil, markupLanguages = [], mobileCarriers = [], image = nil)
1797
+ @id = id
1798
+ @url = url
1799
+ @displayUrl = displayUrl
1800
+ @approvalStatus = approvalStatus
1801
+ @disapprovalReasons = disapprovalReasons
1802
+ @ad_Type = ad_Type
1803
+ @markupLanguages = markupLanguages
1804
+ @mobileCarriers = mobileCarriers
1805
+ @image = image
1806
+ end
1807
+ end
1808
+
1809
+ # ImageAd
1810
+ # - id - SOAP::SOAPLong
1811
+ # - url - SOAP::SOAPString
1812
+ # - displayUrl - SOAP::SOAPString
1813
+ # - approvalStatus - AdwordsApi::V200909::AdGroupAdService::AdApprovalStatus
1814
+ # - disapprovalReasons - SOAP::SOAPString
1815
+ # - ad_Type - SOAP::SOAPString
1816
+ # - image - AdwordsApi::V200909::AdGroupAdService::Image
1817
+ # - name - SOAP::SOAPString
1818
+ class ImageAd < Ad
1819
+ attr_accessor :id
1820
+ attr_accessor :url
1821
+ attr_accessor :displayUrl
1822
+ attr_accessor :approvalStatus
1823
+ attr_accessor :disapprovalReasons
1824
+ attr_accessor :ad_Type
1825
+ attr_accessor :image
1826
+ attr_accessor :name
1827
+
1828
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], ad_Type = nil, image = nil, name = nil)
1829
+ @id = id
1830
+ @url = url
1831
+ @displayUrl = displayUrl
1832
+ @approvalStatus = approvalStatus
1833
+ @disapprovalReasons = disapprovalReasons
1834
+ @ad_Type = ad_Type
1835
+ @image = image
1836
+ @name = name
1837
+ end
1838
+ end
1839
+
1840
+ # LocalBusinessAd
1841
+ # - id - SOAP::SOAPLong
1842
+ # - url - SOAP::SOAPString
1843
+ # - displayUrl - SOAP::SOAPString
1844
+ # - approvalStatus - AdwordsApi::V200909::AdGroupAdService::AdApprovalStatus
1845
+ # - disapprovalReasons - SOAP::SOAPString
1846
+ # - ad_Type - SOAP::SOAPString
1847
+ # - fullBusinessName - SOAP::SOAPString
1848
+ # - phoneNumber - SOAP::SOAPString
1849
+ # - streetAddress - SOAP::SOAPString
1850
+ # - city - SOAP::SOAPString
1851
+ # - region - SOAP::SOAPString
1852
+ # - regionCode - SOAP::SOAPString
1853
+ # - postalCode - SOAP::SOAPString
1854
+ # - countryCode - SOAP::SOAPString
1855
+ # - businessName - SOAP::SOAPString
1856
+ # - description1 - SOAP::SOAPString
1857
+ # - description2 - SOAP::SOAPString
1858
+ # - target - AdwordsApi::V200909::AdGroupAdService::ProximityTarget
1859
+ # - businessImage - AdwordsApi::V200909::AdGroupAdService::Image
1860
+ # - icon - AdwordsApi::V200909::AdGroupAdService::Image
1861
+ class LocalBusinessAd < Ad
1862
+ attr_accessor :id
1863
+ attr_accessor :url
1864
+ attr_accessor :displayUrl
1865
+ attr_accessor :approvalStatus
1866
+ attr_accessor :disapprovalReasons
1867
+ attr_accessor :ad_Type
1868
+ attr_accessor :fullBusinessName
1869
+ attr_accessor :phoneNumber
1870
+ attr_accessor :streetAddress
1871
+ attr_accessor :city
1872
+ attr_accessor :region
1873
+ attr_accessor :regionCode
1874
+ attr_accessor :postalCode
1875
+ attr_accessor :countryCode
1876
+ attr_accessor :businessName
1877
+ attr_accessor :description1
1878
+ attr_accessor :description2
1879
+ attr_accessor :target
1880
+ attr_accessor :businessImage
1881
+ attr_accessor :icon
1882
+
1883
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], ad_Type = nil, fullBusinessName = nil, phoneNumber = nil, streetAddress = nil, city = nil, region = nil, regionCode = nil, postalCode = nil, countryCode = nil, businessName = nil, description1 = nil, description2 = nil, target = nil, businessImage = nil, icon = nil)
1884
+ @id = id
1885
+ @url = url
1886
+ @displayUrl = displayUrl
1887
+ @approvalStatus = approvalStatus
1888
+ @disapprovalReasons = disapprovalReasons
1889
+ @ad_Type = ad_Type
1890
+ @fullBusinessName = fullBusinessName
1891
+ @phoneNumber = phoneNumber
1892
+ @streetAddress = streetAddress
1893
+ @city = city
1894
+ @region = region
1895
+ @regionCode = regionCode
1896
+ @postalCode = postalCode
1897
+ @countryCode = countryCode
1898
+ @businessName = businessName
1899
+ @description1 = description1
1900
+ @description2 = description2
1901
+ @target = target
1902
+ @businessImage = businessImage
1903
+ @icon = icon
1904
+ end
1905
+ end
1906
+
1907
+ # TemplateAd
1908
+ # - id - SOAP::SOAPLong
1909
+ # - url - SOAP::SOAPString
1910
+ # - displayUrl - SOAP::SOAPString
1911
+ # - approvalStatus - AdwordsApi::V200909::AdGroupAdService::AdApprovalStatus
1912
+ # - disapprovalReasons - SOAP::SOAPString
1913
+ # - ad_Type - SOAP::SOAPString
1914
+ # - templateId - SOAP::SOAPLong
1915
+ # - adUnionId - AdwordsApi::V200909::AdGroupAdService::AdUnionId
1916
+ # - templateElements - AdwordsApi::V200909::AdGroupAdService::TemplateElement
1917
+ # - dimensions - AdwordsApi::V200909::AdGroupAdService::Dimensions
1918
+ # - name - SOAP::SOAPString
1919
+ # - duration - SOAP::SOAPInt
1920
+ class TemplateAd < Ad
1921
+ attr_accessor :id
1922
+ attr_accessor :url
1923
+ attr_accessor :displayUrl
1924
+ attr_accessor :approvalStatus
1925
+ attr_accessor :disapprovalReasons
1926
+ attr_accessor :ad_Type
1927
+ attr_accessor :templateId
1928
+ attr_accessor :adUnionId
1929
+ attr_accessor :templateElements
1930
+ attr_accessor :dimensions
1931
+ attr_accessor :name
1932
+ attr_accessor :duration
1933
+
1934
+ def initialize(id = nil, url = nil, displayUrl = nil, approvalStatus = nil, disapprovalReasons = [], ad_Type = nil, templateId = nil, adUnionId = nil, templateElements = [], dimensions = nil, name = nil, duration = nil)
1935
+ @id = id
1936
+ @url = url
1937
+ @displayUrl = displayUrl
1938
+ @approvalStatus = approvalStatus
1939
+ @disapprovalReasons = disapprovalReasons
1940
+ @ad_Type = ad_Type
1941
+ @templateId = templateId
1942
+ @adUnionId = adUnionId
1943
+ @templateElements = templateElements
1944
+ @dimensions = dimensions
1945
+ @name = name
1946
+ @duration = duration
1947
+ end
1948
+ end
1949
+
1950
+ # AdGroupAd
1951
+ # - adGroupId - SOAP::SOAPLong
1952
+ # - ad - AdwordsApi::V200909::AdGroupAdService::Ad
1953
+ # - status - AdwordsApi::V200909::AdGroupAdService::AdGroupAdStatus
1954
+ # - stats - AdwordsApi::V200909::AdGroupAdService::AdStats
1955
+ class AdGroupAd
1956
+ attr_accessor :adGroupId
1957
+ attr_accessor :ad
1958
+ attr_accessor :status
1959
+ attr_accessor :stats
1960
+
1961
+ def initialize(adGroupId = nil, ad = nil, status = nil, stats = nil)
1962
+ @adGroupId = adGroupId
1963
+ @ad = ad
1964
+ @status = status
1965
+ @stats = stats
1966
+ end
1967
+ end
1968
+
1969
+ # ListReturnValue
1970
+ # abstract
1971
+ # - listReturnValue_Type - SOAP::SOAPString
1972
+ class ListReturnValue
1973
+ attr_accessor :listReturnValue_Type
1974
+
1975
+ def initialize(listReturnValue_Type = nil)
1976
+ @listReturnValue_Type = listReturnValue_Type
1977
+ end
1978
+ end
1979
+
1980
+ # AdGroupAdReturnValue
1981
+ # - listReturnValue_Type - SOAP::SOAPString
1982
+ # - value - AdwordsApi::V200909::AdGroupAdService::AdGroupAd
1983
+ class AdGroupAdReturnValue < ListReturnValue
1984
+ attr_accessor :listReturnValue_Type
1985
+ attr_accessor :value
1986
+
1987
+ def initialize(listReturnValue_Type = nil, value = [])
1988
+ @listReturnValue_Type = listReturnValue_Type
1989
+ @value = value
1990
+ end
1991
+ end
1992
+
1993
+ # Operation
1994
+ # abstract
1995
+ # - operator - AdwordsApi::V200909::AdGroupAdService::Operator
1996
+ # - operation_Type - SOAP::SOAPString
1997
+ class Operation
1998
+ attr_accessor :operator
1999
+ attr_accessor :operation_Type
2000
+
2001
+ def initialize(operator = nil, operation_Type = nil)
2002
+ @operator = operator
2003
+ @operation_Type = operation_Type
2004
+ end
2005
+ end
2006
+
2007
+ # AdGroupAdOperation
2008
+ # - operator - AdwordsApi::V200909::AdGroupAdService::Operator
2009
+ # - operation_Type - SOAP::SOAPString
2010
+ # - operand - AdwordsApi::V200909::AdGroupAdService::AdGroupAd
2011
+ # - exemptionRequests - AdwordsApi::V200909::AdGroupAdService::ExemptionRequest
2012
+ class AdGroupAdOperation < Operation
2013
+ attr_accessor :operator
2014
+ attr_accessor :operation_Type
2015
+ attr_accessor :operand
2016
+ attr_accessor :exemptionRequests
2017
+
2018
+ def initialize(operator = nil, operation_Type = nil, operand = nil, exemptionRequests = [])
2019
+ @operator = operator
2020
+ @operation_Type = operation_Type
2021
+ @operand = operand
2022
+ @exemptionRequests = exemptionRequests
2023
+ end
2024
+ end
2025
+
2026
+ # Page
2027
+ # abstract
2028
+ # - totalNumEntries - SOAP::SOAPInt
2029
+ # - page_Type - SOAP::SOAPString
2030
+ class Page
2031
+ attr_accessor :totalNumEntries
2032
+ attr_accessor :page_Type
2033
+
2034
+ def initialize(totalNumEntries = nil, page_Type = nil)
2035
+ @totalNumEntries = totalNumEntries
2036
+ @page_Type = page_Type
2037
+ end
2038
+ end
2039
+
2040
+ # AdGroupAdPage
2041
+ # - totalNumEntries - SOAP::SOAPInt
2042
+ # - page_Type - SOAP::SOAPString
2043
+ # - entries - AdwordsApi::V200909::AdGroupAdService::AdGroupAd
2044
+ class AdGroupAdPage < Page
2045
+ attr_accessor :totalNumEntries
2046
+ attr_accessor :page_Type
2047
+ attr_accessor :entries
2048
+
2049
+ def initialize(totalNumEntries = nil, page_Type = nil, entries = [])
2050
+ @totalNumEntries = totalNumEntries
2051
+ @page_Type = page_Type
2052
+ @entries = entries
2053
+ end
2054
+ end
2055
+
2056
+ # Ad.ApprovalStatus
2057
+ class AdApprovalStatus < ::String
2058
+ APPROVED = AdApprovalStatus.new("APPROVED")
2059
+ DISAPPROVED = AdApprovalStatus.new("DISAPPROVED")
2060
+ FAMILY_SAFE = AdApprovalStatus.new("FAMILY_SAFE")
2061
+ NON_FAMILY_SAFE = AdApprovalStatus.new("NON_FAMILY_SAFE")
2062
+ PORN = AdApprovalStatus.new("PORN")
2063
+ UNCHECKED = AdApprovalStatus.new("UNCHECKED")
2064
+ end
2065
+
2066
+ # AdError.Reason
2067
+ class AdErrorReason < ::String
2068
+ ADDRESS_INVALID = AdErrorReason.new("ADDRESS_INVALID")
2069
+ ADDRESS_NOT_COMPLETE = AdErrorReason.new("ADDRESS_NOT_COMPLETE")
2070
+ APPROXIMATELY_TOO_LONG = AdErrorReason.new("APPROXIMATELY_TOO_LONG")
2071
+ APPROXIMATELY_TOO_SHORT = AdErrorReason.new("APPROXIMATELY_TOO_SHORT")
2072
+ AUDIO_ERROR = AdErrorReason.new("AUDIO_ERROR")
2073
+ CANNOT_SET_BUSINESS_NAME_IF_URL_SET = AdErrorReason.new("CANNOT_SET_BUSINESS_NAME_IF_URL_SET")
2074
+ CUSTOMER_NOT_APPROVED_MOBILEADS = AdErrorReason.new("CUSTOMER_NOT_APPROVED_MOBILEADS")
2075
+ CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS = AdErrorReason.new("CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS")
2076
+ CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS = AdErrorReason.new("CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS")
2077
+ CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL = AdErrorReason.new("CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL")
2078
+ DIMENSION_ALREADY_IN_UNION = AdErrorReason.new("DIMENSION_ALREADY_IN_UNION")
2079
+ DIMENSION_MUST_BE_SET = AdErrorReason.new("DIMENSION_MUST_BE_SET")
2080
+ DIMENSION_NOT_IN_UNION = AdErrorReason.new("DIMENSION_NOT_IN_UNION")
2081
+ DOMESTIC_PHONE_NUMBER_FORMAT = AdErrorReason.new("DOMESTIC_PHONE_NUMBER_FORMAT")
2082
+ ELEMENT_NOT_PRESENT = AdErrorReason.new("ELEMENT_NOT_PRESENT")
2083
+ EMERGENCY_PHONE_NUMBER = AdErrorReason.new("EMERGENCY_PHONE_NUMBER")
2084
+ EMPTY_FIELD = AdErrorReason.new("EMPTY_FIELD")
2085
+ FIELD_NOT_PRESENT = AdErrorReason.new("FIELD_NOT_PRESENT")
2086
+ IMAGE_ERROR = AdErrorReason.new("IMAGE_ERROR")
2087
+ INCONSISTENT_STATUS_IN_TEMPLATE_UNION = AdErrorReason.new("INCONSISTENT_STATUS_IN_TEMPLATE_UNION")
2088
+ INCORRECT_LENGTH = AdErrorReason.new("INCORRECT_LENGTH")
2089
+ INVALID_AD_ADDRESS_CAMPAIGN_TARGET = AdErrorReason.new("INVALID_AD_ADDRESS_CAMPAIGN_TARGET")
2090
+ INVALID_AD_TYPE = AdErrorReason.new("INVALID_AD_TYPE")
2091
+ INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE = AdErrorReason.new("INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE")
2092
+ INVALID_ATTRIBUTES_FOR_MOBILE_TEXT = AdErrorReason.new("INVALID_ATTRIBUTES_FOR_MOBILE_TEXT")
2093
+ INVALID_COUNTRY_CODE = AdErrorReason.new("INVALID_COUNTRY_CODE")
2094
+ INVALID_FORMAT = AdErrorReason.new("INVALID_FORMAT")
2095
+ INVALID_INPUT = AdErrorReason.new("INVALID_INPUT")
2096
+ INVALID_MARKUP_LANGUAGE = AdErrorReason.new("INVALID_MARKUP_LANGUAGE")
2097
+ INVALID_MOBILE_CARRIER = AdErrorReason.new("INVALID_MOBILE_CARRIER")
2098
+ INVALID_MOBILE_CARRIER_TARGET = AdErrorReason.new("INVALID_MOBILE_CARRIER_TARGET")
2099
+ INVALID_NUMBER_OF_ELEMENTS = AdErrorReason.new("INVALID_NUMBER_OF_ELEMENTS")
2100
+ INVALID_PHONE_NUMBER_FORMAT = AdErrorReason.new("INVALID_PHONE_NUMBER_FORMAT")
2101
+ INVALID_TEMPLATE_DATA = AdErrorReason.new("INVALID_TEMPLATE_DATA")
2102
+ INVALID_TEMPLATE_ELEMENT_FIELD_TYPE = AdErrorReason.new("INVALID_TEMPLATE_ELEMENT_FIELD_TYPE")
2103
+ INVALID_TEMPLATE_ID = AdErrorReason.new("INVALID_TEMPLATE_ID")
2104
+ INVALID_YOUTUBE_DISPLAY_URL = AdErrorReason.new("INVALID_YOUTUBE_DISPLAY_URL")
2105
+ LINE_TOO_WIDE = AdErrorReason.new("LINE_TOO_WIDE")
2106
+ MARKUP_LANGUAGES_PRESENT = AdErrorReason.new("MARKUP_LANGUAGES_PRESENT")
2107
+ MISSING_ADDRESS_COMPONENT = AdErrorReason.new("MISSING_ADDRESS_COMPONENT")
2108
+ MISSING_ADVERTISEMENT_NAME = AdErrorReason.new("MISSING_ADVERTISEMENT_NAME")
2109
+ MISSING_BUSINESS_NAME = AdErrorReason.new("MISSING_BUSINESS_NAME")
2110
+ MISSING_DESCRIPTION1 = AdErrorReason.new("MISSING_DESCRIPTION1")
2111
+ MISSING_DESCRIPTION2 = AdErrorReason.new("MISSING_DESCRIPTION2")
2112
+ MISSING_DESTINATION_URL = AdErrorReason.new("MISSING_DESTINATION_URL")
2113
+ MISSING_DIMENSION = AdErrorReason.new("MISSING_DIMENSION")
2114
+ MISSING_DISPLAY_URL = AdErrorReason.new("MISSING_DISPLAY_URL")
2115
+ MISSING_HEADLINE = AdErrorReason.new("MISSING_HEADLINE")
2116
+ MISSING_HEIGHT = AdErrorReason.new("MISSING_HEIGHT")
2117
+ MISSING_IMAGE = AdErrorReason.new("MISSING_IMAGE")
2118
+ MISSING_MARKUP_LANGUAGES = AdErrorReason.new("MISSING_MARKUP_LANGUAGES")
2119
+ MISSING_MOBILE_CARRIER = AdErrorReason.new("MISSING_MOBILE_CARRIER")
2120
+ MISSING_PHONE = AdErrorReason.new("MISSING_PHONE")
2121
+ MISSING_REQUIRED_TEMPLATE_FIELDS = AdErrorReason.new("MISSING_REQUIRED_TEMPLATE_FIELDS")
2122
+ MISSING_TEMPLATE_FIELD_VALUE = AdErrorReason.new("MISSING_TEMPLATE_FIELD_VALUE")
2123
+ MISSING_TEXT = AdErrorReason.new("MISSING_TEXT")
2124
+ MISSING_URL_AND_PHONE = AdErrorReason.new("MISSING_URL_AND_PHONE")
2125
+ MISSING_VISIBLE_URL = AdErrorReason.new("MISSING_VISIBLE_URL")
2126
+ MISSING_WIDTH = AdErrorReason.new("MISSING_WIDTH")
2127
+ MUST_USE_TEMP_AD_UNION_ID_ON_ADD = AdErrorReason.new("MUST_USE_TEMP_AD_UNION_ID_ON_ADD")
2128
+ TOO_LONG = AdErrorReason.new("TOO_LONG")
2129
+ TOO_SHORT = AdErrorReason.new("TOO_SHORT")
2130
+ UNION_DIMENSIONS_CANNOT_CHANGE = AdErrorReason.new("UNION_DIMENSIONS_CANNOT_CHANGE")
2131
+ UNKNOWN_ADDRESS_COMPONENT = AdErrorReason.new("UNKNOWN_ADDRESS_COMPONENT")
2132
+ UNKNOWN_FIELD_NAME = AdErrorReason.new("UNKNOWN_FIELD_NAME")
2133
+ UNKNOWN_UNIQUE_NAME = AdErrorReason.new("UNKNOWN_UNIQUE_NAME")
2134
+ UNSUPPORTED_DIMENSIONS = AdErrorReason.new("UNSUPPORTED_DIMENSIONS")
2135
+ URL_INVALID_TOP_LEVEL_DOMAIN = AdErrorReason.new("URL_INVALID_TOP_LEVEL_DOMAIN")
2136
+ URL_MALFORMED = AdErrorReason.new("URL_MALFORMED")
2137
+ URL_NO_HOST = AdErrorReason.new("URL_NO_HOST")
2138
+ URL_NO_SCHEME = AdErrorReason.new("URL_NO_SCHEME")
2139
+ URL_NO_TOP_LEVEL_DOMAIN = AdErrorReason.new("URL_NO_TOP_LEVEL_DOMAIN")
2140
+ URL_PATH_NOT_ALLOWED = AdErrorReason.new("URL_PATH_NOT_ALLOWED")
2141
+ URL_PORT_NOT_ALLOWED = AdErrorReason.new("URL_PORT_NOT_ALLOWED")
2142
+ URL_QUERY_NOT_ALLOWED = AdErrorReason.new("URL_QUERY_NOT_ALLOWED")
2143
+ USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE = AdErrorReason.new("USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE")
2144
+ VALUE_NOT_IN_RANGE = AdErrorReason.new("VALUE_NOT_IN_RANGE")
2145
+ VIDEO_RETRIEVAL_ERROR = AdErrorReason.new("VIDEO_RETRIEVAL_ERROR")
2146
+ end
2147
+
2148
+ # AdGroupAd.Status
2149
+ class AdGroupAdStatus < ::String
2150
+ DISABLED = AdGroupAdStatus.new("DISABLED")
2151
+ ENABLED = AdGroupAdStatus.new("ENABLED")
2152
+ PAUSED = AdGroupAdStatus.new("PAUSED")
2153
+ end
2154
+
2155
+ # AdGroupAdError.Reason
2156
+ class AdGroupAdErrorReason < ::String
2157
+ AD_NOT_UNDER_ADGROUP = AdGroupAdErrorReason.new("AD_NOT_UNDER_ADGROUP")
2158
+ CANNOT_CREATE_DEPRECATED_ADS = AdGroupAdErrorReason.new("CANNOT_CREATE_DEPRECATED_ADS")
2159
+ CANNOT_OPERATE_ON_DELETED_ADGROUPAD = AdGroupAdErrorReason.new("CANNOT_OPERATE_ON_DELETED_ADGROUPAD")
2160
+ EMPTY_FIELD = AdGroupAdErrorReason.new("EMPTY_FIELD")
2161
+ ENTITY_REFERENCED_IN_MULTIPLE_OPS = AdGroupAdErrorReason.new("ENTITY_REFERENCED_IN_MULTIPLE_OPS")
2162
+ UNSUPPORTED_OPERATION = AdGroupAdErrorReason.new("UNSUPPORTED_OPERATION")
2163
+ end
2164
+
2165
+ # AgeTarget.Age
2166
+ class AgeTargetAge < ::String
2167
+ AGE_0_17 = AgeTargetAge.new("AGE_0_17")
2168
+ AGE_18_24 = AgeTargetAge.new("AGE_18_24")
2169
+ AGE_25_34 = AgeTargetAge.new("AGE_25_34")
2170
+ AGE_35_44 = AgeTargetAge.new("AGE_35_44")
2171
+ AGE_45_54 = AgeTargetAge.new("AGE_45_54")
2172
+ AGE_55_64 = AgeTargetAge.new("AGE_55_64")
2173
+ AGE_65_PLUS = AgeTargetAge.new("AGE_65_PLUS")
2174
+ end
2175
+
2176
+ # AuthenticationError.Reason
2177
+ class AuthenticationErrorReason < ::String
2178
+ AUTHENTICATION_FAILED = AuthenticationErrorReason.new("AUTHENTICATION_FAILED")
2179
+ CLIENT_CUSTOMER_ID_INVALID = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_INVALID")
2180
+ CLIENT_CUSTOMER_ID_IS_REQUIRED = AuthenticationErrorReason.new("CLIENT_CUSTOMER_ID_IS_REQUIRED")
2181
+ CLIENT_EMAIL_FAILED_TO_AUTHENTICATE = AuthenticationErrorReason.new("CLIENT_EMAIL_FAILED_TO_AUTHENTICATE")
2182
+ CLIENT_EMAIL_INVALID = AuthenticationErrorReason.new("CLIENT_EMAIL_INVALID")
2183
+ CLIENT_EMAIL_REQUIRED = AuthenticationErrorReason.new("CLIENT_EMAIL_REQUIRED")
2184
+ CUSTOMER_NOT_FOUND = AuthenticationErrorReason.new("CUSTOMER_NOT_FOUND")
2185
+ FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT = AuthenticationErrorReason.new("FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT")
2186
+ FAILED_TO_RETRIEVE_LOGIN_COOKIE = AuthenticationErrorReason.new("FAILED_TO_RETRIEVE_LOGIN_COOKIE")
2187
+ GOOGLE_ACCOUNT_COOKIE_INVALID = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_COOKIE_INVALID")
2188
+ GOOGLE_ACCOUNT_DELETED = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_DELETED")
2189
+ GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = AuthenticationErrorReason.new("GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH")
2190
+ LOGIN_COOKIE_INVALID = AuthenticationErrorReason.new("LOGIN_COOKIE_INVALID")
2191
+ LOGIN_COOKIE_REQUIRED = AuthenticationErrorReason.new("LOGIN_COOKIE_REQUIRED")
2192
+ NOT_ADS_USER = AuthenticationErrorReason.new("NOT_ADS_USER")
2193
+ OAUTH_TOKEN_DISABLED = AuthenticationErrorReason.new("OAUTH_TOKEN_DISABLED")
2194
+ OAUTH_TOKEN_EXPIRED = AuthenticationErrorReason.new("OAUTH_TOKEN_EXPIRED")
2195
+ OAUTH_TOKEN_HEADER_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_HEADER_INVALID")
2196
+ OAUTH_TOKEN_INVALID = AuthenticationErrorReason.new("OAUTH_TOKEN_INVALID")
2197
+ OAUTH_TOKEN_REVOKED = AuthenticationErrorReason.new("OAUTH_TOKEN_REVOKED")
2198
+ USER_ID_INVALID = AuthenticationErrorReason.new("USER_ID_INVALID")
2199
+ end
2200
+
2201
+ # AuthorizationError.Reason
2202
+ class AuthorizationErrorReason < ::String
2203
+ EFFECTIVE_USER_PERMISSION_DENIED = AuthorizationErrorReason.new("EFFECTIVE_USER_PERMISSION_DENIED")
2204
+ NO_ADWORDS_ACCOUNT_FOR_CUSTOMER = AuthorizationErrorReason.new("NO_ADWORDS_ACCOUNT_FOR_CUSTOMER")
2205
+ NO_CUSTOMER_FOUND = AuthorizationErrorReason.new("NO_CUSTOMER_FOUND")
2206
+ UNABLE_TO_AUTHORIZE = AuthorizationErrorReason.new("UNABLE_TO_AUTHORIZE")
2207
+ USER_HAS_READONLY_PERMISSION = AuthorizationErrorReason.new("USER_HAS_READONLY_PERMISSION")
2208
+ USER_PERMISSION_DENIED = AuthorizationErrorReason.new("USER_PERMISSION_DENIED")
2209
+ end
2210
+
2211
+ # ClientTermsError.Reason
2212
+ class ClientTermsErrorReason < ::String
2213
+ INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED = ClientTermsErrorReason.new("INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED")
2214
+ end
2215
+
2216
+ # DatabaseError.Reason
2217
+ class DatabaseErrorReason < ::String
2218
+ CAMPAIGN_PRODUCT_NOT_SUPPORTED = DatabaseErrorReason.new("CAMPAIGN_PRODUCT_NOT_SUPPORTED")
2219
+ CONCURRENT_MODIFICATION = DatabaseErrorReason.new("CONCURRENT_MODIFICATION")
2220
+ PERMISSION_DENIED = DatabaseErrorReason.new("PERMISSION_DENIED")
2221
+ end
2222
+
2223
+ # DateError.Reason
2224
+ class DateErrorReason < ::String
2225
+ DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = DateErrorReason.new("DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL")
2226
+ DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = DateErrorReason.new("DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE")
2227
+ EARLIER_THAN_MINIMUM_DATE = DateErrorReason.new("EARLIER_THAN_MINIMUM_DATE")
2228
+ INVALID_FIELD_VALUES_IN_DATE = DateErrorReason.new("INVALID_FIELD_VALUES_IN_DATE")
2229
+ INVALID_STRING_DATE = DateErrorReason.new("INVALID_STRING_DATE")
2230
+ INVALID_STRING_DATE_RANGE = DateErrorReason.new("INVALID_STRING_DATE_RANGE")
2231
+ INVALID_STRING_DATE_TIME = DateErrorReason.new("INVALID_STRING_DATE_TIME")
2232
+ LATER_THAN_MAXIMUM_DATE = DateErrorReason.new("LATER_THAN_MAXIMUM_DATE")
2233
+ end
2234
+
2235
+ # DayOfWeek
2236
+ class DayOfWeek < ::String
2237
+ FRIDAY = DayOfWeek.new("FRIDAY")
2238
+ MONDAY = DayOfWeek.new("MONDAY")
2239
+ SATURDAY = DayOfWeek.new("SATURDAY")
2240
+ SUNDAY = DayOfWeek.new("SUNDAY")
2241
+ THURSDAY = DayOfWeek.new("THURSDAY")
2242
+ TUESDAY = DayOfWeek.new("TUESDAY")
2243
+ WEDNESDAY = DayOfWeek.new("WEDNESDAY")
2244
+ end
2245
+
2246
+ # DeprecatedAd.Type
2247
+ class DeprecatedAdType < ::String
2248
+ AUDIO = DeprecatedAdType.new("AUDIO")
2249
+ CLICK_TO_CALL = DeprecatedAdType.new("CLICK_TO_CALL")
2250
+ FROOGLE = DeprecatedAdType.new("FROOGLE")
2251
+ GADGET = DeprecatedAdType.new("GADGET")
2252
+ GADGET_TEMPLATE = DeprecatedAdType.new("GADGET_TEMPLATE")
2253
+ IN_STREAM_VIDEO = DeprecatedAdType.new("IN_STREAM_VIDEO")
2254
+ PRINT = DeprecatedAdType.new("PRINT")
2255
+ TEXT_LINK = DeprecatedAdType.new("TEXT_LINK")
2256
+ TEXT_WIDE = DeprecatedAdType.new("TEXT_WIDE")
2257
+ TEXT_WITH_VIDEO = DeprecatedAdType.new("TEXT_WITH_VIDEO")
2258
+ VIDEO = DeprecatedAdType.new("VIDEO")
2259
+ end
2260
+
2261
+ # DistinctError.Reason
2262
+ class DistinctErrorReason < ::String
2263
+ DUPLICATE_ELEMENT = DistinctErrorReason.new("DUPLICATE_ELEMENT")
2264
+ end
2265
+
2266
+ # EntityCountLimitExceeded.Reason
2267
+ class EntityCountLimitExceededReason < ::String
2268
+ ACCOUNT_LIMIT = EntityCountLimitExceededReason.new("ACCOUNT_LIMIT")
2269
+ ADGROUP_LIMIT = EntityCountLimitExceededReason.new("ADGROUP_LIMIT")
2270
+ CAMPAIGN_LIMIT = EntityCountLimitExceededReason.new("CAMPAIGN_LIMIT")
2271
+ end
2272
+
2273
+ # EntityNotFound.Reason
2274
+ class EntityNotFoundReason < ::String
2275
+ INVALID_ID = EntityNotFoundReason.new("INVALID_ID")
2276
+ end
2277
+
2278
+ # GenderTarget.Gender
2279
+ class GenderTargetGender < ::String
2280
+ FEMALE = GenderTargetGender.new("FEMALE")
2281
+ MALE = GenderTargetGender.new("MALE")
2282
+ end
2283
+
2284
+ # IdError.Reason
2285
+ class IdErrorReason < ::String
2286
+ NOT_FOUND = IdErrorReason.new("NOT_FOUND")
2287
+ end
2288
+
2289
+ # ImageError.Reason
2290
+ class ImageErrorReason < ::String
2291
+ ANIMATED_NOT_ALLOWED = ImageErrorReason.new("ANIMATED_NOT_ALLOWED")
2292
+ ANIMATED_VISUAL_EFFECT = ImageErrorReason.new("ANIMATED_VISUAL_EFFECT")
2293
+ ANIMATION_TOO_LONG = ImageErrorReason.new("ANIMATION_TOO_LONG")
2294
+ BAD_REQUEST = ImageErrorReason.new("BAD_REQUEST")
2295
+ CMYK_JPEG_NOT_ALLOWED = ImageErrorReason.new("CMYK_JPEG_NOT_ALLOWED")
2296
+ ERROR_STORING_IMAGE = ImageErrorReason.new("ERROR_STORING_IMAGE")
2297
+ FILE_TOO_LARGE = ImageErrorReason.new("FILE_TOO_LARGE")
2298
+ FLASH_BAD_GETURL_TARGET = ImageErrorReason.new("FLASH_BAD_GETURL_TARGET")
2299
+ FLASH_ERROR = ImageErrorReason.new("FLASH_ERROR")
2300
+ FLASH_HAS_MOUSE_TRACKING = ImageErrorReason.new("FLASH_HAS_MOUSE_TRACKING")
2301
+ FLASH_HAS_NETWORK_METHODS = ImageErrorReason.new("FLASH_HAS_NETWORK_METHODS")
2302
+ FLASH_HAS_NETWORK_OBJECTS = ImageErrorReason.new("FLASH_HAS_NETWORK_OBJECTS")
2303
+ FLASH_HAS_RANDOM_NUM = ImageErrorReason.new("FLASH_HAS_RANDOM_NUM")
2304
+ FLASH_HAS_URL = ImageErrorReason.new("FLASH_HAS_URL")
2305
+ FLASH_NOT_ALLOWED = ImageErrorReason.new("FLASH_NOT_ALLOWED")
2306
+ FLASH_SELF_TARGETS = ImageErrorReason.new("FLASH_SELF_TARGETS")
2307
+ FLASH_VERSION_NOT_SUPPORTED = ImageErrorReason.new("FLASH_VERSION_NOT_SUPPORTED")
2308
+ FLASH_WITHOUT_CLICKTAG = ImageErrorReason.new("FLASH_WITHOUT_CLICKTAG")
2309
+ IMAGE_DATA_TOO_LARGE = ImageErrorReason.new("IMAGE_DATA_TOO_LARGE")
2310
+ IMAGE_PROCESSING_ERROR = ImageErrorReason.new("IMAGE_PROCESSING_ERROR")
2311
+ IMAGE_TOO_SMALL = ImageErrorReason.new("IMAGE_TOO_SMALL")
2312
+ INVALID_IMAGE = ImageErrorReason.new("INVALID_IMAGE")
2313
+ INVALID_INPUT = ImageErrorReason.new("INVALID_INPUT")
2314
+ LAYOUT_PROBLEM = ImageErrorReason.new("LAYOUT_PROBLEM")
2315
+ PROBLEM_READING_FILE = ImageErrorReason.new("PROBLEM_READING_FILE")
2316
+ PROBLEM_READING_IMAGE_FILE = ImageErrorReason.new("PROBLEM_READING_IMAGE_FILE")
2317
+ SERVER_ERROR = ImageErrorReason.new("SERVER_ERROR")
2318
+ STORAGE_ERROR = ImageErrorReason.new("STORAGE_ERROR")
2319
+ UNEXPECTED_SIZE = ImageErrorReason.new("UNEXPECTED_SIZE")
2320
+ end
2321
+
2322
+ # InternalApiError.Reason
2323
+ class InternalApiErrorReason < ::String
2324
+ UNEXPECTED_INTERNAL_API_ERROR = InternalApiErrorReason.new("UNEXPECTED_INTERNAL_API_ERROR")
2325
+ end
2326
+
2327
+ # MarkupLanguageType
2328
+ class MarkupLanguageType < ::String
2329
+ CHTML = MarkupLanguageType.new("CHTML")
2330
+ HTML = MarkupLanguageType.new("HTML")
2331
+ WML = MarkupLanguageType.new("WML")
2332
+ XHTML = MarkupLanguageType.new("XHTML")
2333
+ end
2334
+
2335
+ # Media.MediaExtendedCapabilityState
2336
+ class MediaMediaExtendedCapabilityState < ::String
2337
+ FAILED_PREREQ = MediaMediaExtendedCapabilityState.new("FAILED_PREREQ")
2338
+ MEETS_CRITERIA = MediaMediaExtendedCapabilityState.new("MEETS_CRITERIA")
2339
+ NOT_SUPPORTED = MediaMediaExtendedCapabilityState.new("NOT_SUPPORTED")
2340
+ PASSED_PREREQ = MediaMediaExtendedCapabilityState.new("PASSED_PREREQ")
2341
+ SUPPORTED = MediaMediaExtendedCapabilityState.new("SUPPORTED")
2342
+ UNKNOWN = MediaMediaExtendedCapabilityState.new("UNKNOWN")
2343
+ end
2344
+
2345
+ # Media.MediaExtendedCapabilityType
2346
+ class MediaMediaExtendedCapabilityType < ::String
2347
+ FLV_320 = MediaMediaExtendedCapabilityType.new("FLV_320")
2348
+ GXF_SD = MediaMediaExtendedCapabilityType.new("GXF_SD")
2349
+ MPEG2_PROGRAM_STREAM_SD = MediaMediaExtendedCapabilityType.new("MPEG2_PROGRAM_STREAM_SD")
2350
+ MPEG2_PROGRAM_STREAM_SD_WITH_BLACK = MediaMediaExtendedCapabilityType.new("MPEG2_PROGRAM_STREAM_SD_WITH_BLACK")
2351
+ MPEG2_TRANSPORT_STREAM_SD = MediaMediaExtendedCapabilityType.new("MPEG2_TRANSPORT_STREAM_SD")
2352
+ end
2353
+
2354
+ # Media.MediaSubType
2355
+ class MediaMediaSubType < ::String
2356
+ ADS_DB_STORED = MediaMediaSubType.new("ADS_DB_STORED")
2357
+ AMS_STORED = MediaMediaSubType.new("AMS_STORED")
2358
+ GOOGLE_HOSTED = MediaMediaSubType.new("GOOGLE_HOSTED")
2359
+ IRS_STORED = MediaMediaSubType.new("IRS_STORED")
2360
+ YOU_TUBE_HOSTED = MediaMediaSubType.new("YOU_TUBE_HOSTED")
2361
+ end
2362
+
2363
+ # Media.MediaType
2364
+ class MediaMediaType < ::String
2365
+ AUDIO = MediaMediaType.new("AUDIO")
2366
+ DYNAMIC_IMAGE = MediaMediaType.new("DYNAMIC_IMAGE")
2367
+ HTML = MediaMediaType.new("HTML")
2368
+ ICON = MediaMediaType.new("ICON")
2369
+ IMAGE = MediaMediaType.new("IMAGE")
2370
+ STANDARD_ICON = MediaMediaType.new("STANDARD_ICON")
2371
+ VIDEO = MediaMediaType.new("VIDEO")
2372
+ VIDEO_IMAGE = MediaMediaType.new("VIDEO_IMAGE")
2373
+ end
2374
+
2375
+ # Media.MimeType
2376
+ class MediaMimeType < ::String
2377
+ AUDIO_MP3 = MediaMimeType.new("AUDIO_MP3")
2378
+ AUDIO_WAV = MediaMimeType.new("AUDIO_WAV")
2379
+ FLASH = MediaMimeType.new("FLASH")
2380
+ IMAGE_GIF = MediaMimeType.new("IMAGE_GIF")
2381
+ IMAGE_JPEG = MediaMimeType.new("IMAGE_JPEG")
2382
+ IMAGE_PNG = MediaMimeType.new("IMAGE_PNG")
2383
+ MSEXCEL = MediaMimeType.new("MSEXCEL")
2384
+ MSWORD = MediaMimeType.new("MSWORD")
2385
+ PDF = MediaMimeType.new("PDF")
2386
+ RTF = MediaMimeType.new("RTF")
2387
+ TEXT_HTML = MediaMimeType.new("TEXT_HTML")
2388
+ end
2389
+
2390
+ # Media.Size
2391
+ class MediaSize < ::String
2392
+ FULL = MediaSize.new("FULL")
2393
+ PREVIEW = MediaSize.new("PREVIEW")
2394
+ SHRUNKEN = MediaSize.new("SHRUNKEN")
2395
+ VIDEO_THUMBNAIL = MediaSize.new("VIDEO_THUMBNAIL")
2396
+ end
2397
+
2398
+ # MediaError.Reason
2399
+ class MediaErrorReason < ::String
2400
+ CANNOT_ADD_STANDARD_ICON = MediaErrorReason.new("CANNOT_ADD_STANDARD_ICON")
2401
+ DUPLICATE_MEDIA = MediaErrorReason.new("DUPLICATE_MEDIA")
2402
+ EMPTY_FIELD = MediaErrorReason.new("EMPTY_FIELD")
2403
+ ENTITY_REFERENCED_IN_MULTIPLE_OPS = MediaErrorReason.new("ENTITY_REFERENCED_IN_MULTIPLE_OPS")
2404
+ FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE = MediaErrorReason.new("FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE")
2405
+ INVALID_MEDIA_ID = MediaErrorReason.new("INVALID_MEDIA_ID")
2406
+ INVALID_MEDIA_SUB_TYPE = MediaErrorReason.new("INVALID_MEDIA_SUB_TYPE")
2407
+ INVALID_MEDIA_TYPE = MediaErrorReason.new("INVALID_MEDIA_TYPE")
2408
+ INVALID_REFERENCE_ID = MediaErrorReason.new("INVALID_REFERENCE_ID")
2409
+ MEDIA_FAILED_TRANSCODING = MediaErrorReason.new("MEDIA_FAILED_TRANSCODING")
2410
+ MEDIA_TYPE_DOES_NOT_MATCH_OBJECT_TYPE = MediaErrorReason.new("MEDIA_TYPE_DOES_NOT_MATCH_OBJECT_TYPE")
2411
+ NO_FIELDS_SPECIFIED = MediaErrorReason.new("NO_FIELDS_SPECIFIED")
2412
+ NULL_REFERENCE_ID_AND_MEDIA_ID = MediaErrorReason.new("NULL_REFERENCE_ID_AND_MEDIA_ID")
2413
+ TOO_LONG = MediaErrorReason.new("TOO_LONG")
2414
+ UNSUPPORTED_OPERATION = MediaErrorReason.new("UNSUPPORTED_OPERATION")
2415
+ UNSUPPORTED_TYPE = MediaErrorReason.new("UNSUPPORTED_TYPE")
2416
+ end
2417
+
2418
+ # MinuteOfHour
2419
+ class MinuteOfHour < ::String
2420
+ FIFTEEN = MinuteOfHour.new("FIFTEEN")
2421
+ FORTY_FIVE = MinuteOfHour.new("FORTY_FIVE")
2422
+ THIRTY = MinuteOfHour.new("THIRTY")
2423
+ ZERO = MinuteOfHour.new("ZERO")
2424
+ end
2425
+
2426
+ # NetworkCoverageType
2427
+ class NetworkCoverageType < ::String
2428
+ CONTENT_CONTEXTUAL = NetworkCoverageType.new("CONTENT_CONTEXTUAL")
2429
+ CONTENT_NETWORK = NetworkCoverageType.new("CONTENT_NETWORK")
2430
+ CPA_REFERRAL = NetworkCoverageType.new("CPA_REFERRAL")
2431
+ GOOGLE_SEARCH = NetworkCoverageType.new("GOOGLE_SEARCH")
2432
+ SEARCH_NETWORK = NetworkCoverageType.new("SEARCH_NETWORK")
2433
+ end
2434
+
2435
+ # NewEntityCreationError.Reason
2436
+ class NewEntityCreationErrorReason < ::String
2437
+ CANNOT_SET_ID_FOR_ADD = NewEntityCreationErrorReason.new("CANNOT_SET_ID_FOR_ADD")
2438
+ end
2439
+
2440
+ # NotEmptyError.Reason
2441
+ class NotEmptyErrorReason < ::String
2442
+ EMPTY_LIST = NotEmptyErrorReason.new("EMPTY_LIST")
2443
+ end
2444
+
2445
+ # NotWhitelistedError.Reason
2446
+ class NotWhitelistedErrorReason < ::String
2447
+ CUSTOMER_NOT_WHITELISTED_FOR_API = NotWhitelistedErrorReason.new("CUSTOMER_NOT_WHITELISTED_FOR_API")
2448
+ end
2449
+
2450
+ # NullError.Reason
2451
+ class NullErrorReason < ::String
2452
+ NULL_CONTENT = NullErrorReason.new("NULL_CONTENT")
2453
+ end
2454
+
2455
+ # OperationAccessDenied.Reason
2456
+ class OperationAccessDeniedReason < ::String
2457
+ ACTION_NOT_PERMITTED = OperationAccessDeniedReason.new("ACTION_NOT_PERMITTED")
2458
+ ADD_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("ADD_OPERATION_NOT_PERMITTED")
2459
+ REMOVE_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("REMOVE_OPERATION_NOT_PERMITTED")
2460
+ SET_OPERATION_NOT_PERMITTED = OperationAccessDeniedReason.new("SET_OPERATION_NOT_PERMITTED")
2461
+ end
2462
+
2463
+ # Operator
2464
+ class Operator < ::String
2465
+ ADD = Operator.new("ADD")
2466
+ REMOVE = Operator.new("REMOVE")
2467
+ SET = Operator.new("SET")
2468
+ end
2469
+
2470
+ # PagingError.Reason
2471
+ class PagingErrorReason < ::String
2472
+ NUMBER_OF_RESULTS_CANNOT_BE_NEGATIVE = PagingErrorReason.new("NUMBER_OF_RESULTS_CANNOT_BE_NEGATIVE")
2473
+ START_INDEX_CANNOT_BE_NEGATIVE = PagingErrorReason.new("START_INDEX_CANNOT_BE_NEGATIVE")
2474
+ end
2475
+
2476
+ # PlatformType
2477
+ class PlatformType < ::String
2478
+ DESKTOP = PlatformType.new("DESKTOP")
2479
+ HIGH_END_MOBILE = PlatformType.new("HIGH_END_MOBILE")
2480
+ end
2481
+
2482
+ # ProximityTarget.DistanceUnits
2483
+ class ProximityTargetDistanceUnits < ::String
2484
+ KILOMETERS = ProximityTargetDistanceUnits.new("KILOMETERS")
2485
+ MILES = ProximityTargetDistanceUnits.new("MILES")
2486
+ end
2487
+
2488
+ # QuotaCheckError.Reason
2489
+ class QuotaCheckErrorReason < ::String
2490
+ ACCOUNT_DELINQUENT = QuotaCheckErrorReason.new("ACCOUNT_DELINQUENT")
2491
+ ACCOUNT_INACCESSIBLE = QuotaCheckErrorReason.new("ACCOUNT_INACCESSIBLE")
2492
+ ACCOUNT_INACTIVE = QuotaCheckErrorReason.new("ACCOUNT_INACTIVE")
2493
+ INCOMPLETE_SIGNUP = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP")
2494
+ INCOMPLETE_SIGNUP_APP_INFO_MISSING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_APP_INFO_MISSING")
2495
+ INCOMPLETE_SIGNUP_APP_INFO_PENDING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_APP_INFO_PENDING")
2496
+ INCOMPLETE_SIGNUP_APP_INFO_REJECTED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_APP_INFO_REJECTED")
2497
+ INCOMPLETE_SIGNUP_LATEST_NETAPI_TNC_NOT_AGREED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_LATEST_NETAPI_TNC_NOT_AGREED")
2498
+ INCOMPLETE_SIGNUP_NO_BILLING_INFO = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_NO_BILLING_INFO")
2499
+ INCOMPLETE_SIGNUP_USER_INFO_MISSING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_MISSING")
2500
+ INCOMPLETE_SIGNUP_USER_INFO_PENDING = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_PENDING")
2501
+ INCOMPLETE_SIGNUP_USER_INFO_REJECTED = QuotaCheckErrorReason.new("INCOMPLETE_SIGNUP_USER_INFO_REJECTED")
2502
+ INVALID_TOKEN_HEADER = QuotaCheckErrorReason.new("INVALID_TOKEN_HEADER")
2503
+ MONTHLY_BUDGET_REACHED = QuotaCheckErrorReason.new("MONTHLY_BUDGET_REACHED")
2504
+ QUOTA_EXCEEDED = QuotaCheckErrorReason.new("QUOTA_EXCEEDED")
2505
+ end
2506
+
2507
+ # QuotaExceededError.Reason
2508
+ class QuotaExceededErrorReason < ::String
2509
+ QUOTA_EXCEEDED = QuotaExceededErrorReason.new("QUOTA_EXCEEDED")
2510
+ end
2511
+
2512
+ # RangeError.Reason
2513
+ class RangeErrorReason < ::String
2514
+ TOO_HIGH = RangeErrorReason.new("TOO_HIGH")
2515
+ TOO_LOW = RangeErrorReason.new("TOO_LOW")
2516
+ end
2517
+
2518
+ # ReadOnlyError.Reason
2519
+ class ReadOnlyErrorReason < ::String
2520
+ READ_ONLY = ReadOnlyErrorReason.new("READ_ONLY")
2521
+ end
2522
+
2523
+ # RequiredError.Reason
2524
+ class RequiredErrorReason < ::String
2525
+ REQUIRED = RequiredErrorReason.new("REQUIRED")
2526
+ end
2527
+
2528
+ # SizeLimitError.Reason
2529
+ class SizeLimitErrorReason < ::String
2530
+ REQUEST_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("REQUEST_SIZE_LIMIT_EXCEEDED")
2531
+ RESPONSE_SIZE_LIMIT_EXCEEDED = SizeLimitErrorReason.new("RESPONSE_SIZE_LIMIT_EXCEEDED")
2532
+ end
2533
+
2534
+ # Stats.Network
2535
+ class StatsNetwork < ::String
2536
+ ALL = StatsNetwork.new("ALL")
2537
+ CONTENT = StatsNetwork.new("CONTENT")
2538
+ CONTENT_KEYWORD_BID = StatsNetwork.new("CONTENT_KEYWORD_BID")
2539
+ CONTENT_PLACEMENT_BID = StatsNetwork.new("CONTENT_PLACEMENT_BID")
2540
+ GOOGLE_SEARCH = StatsNetwork.new("GOOGLE_SEARCH")
2541
+ SEARCH = StatsNetwork.new("SEARCH")
2542
+ SEARCH_NETWORK = StatsNetwork.new("SEARCH_NETWORK")
2543
+ end
2544
+
2545
+ # StatsQueryError.Reason
2546
+ class StatsQueryErrorReason < ::String
2547
+ DATE_NOT_IN_VALID_RANGE = StatsQueryErrorReason.new("DATE_NOT_IN_VALID_RANGE")
2548
+ end
2549
+
2550
+ # TemplateElementField.Type
2551
+ class TemplateElementFieldType < ::String
2552
+ ADDRESS = TemplateElementFieldType.new("ADDRESS")
2553
+ AUDIO = TemplateElementFieldType.new("AUDIO")
2554
+ ENUM = TemplateElementFieldType.new("ENUM")
2555
+ IMAGE = TemplateElementFieldType.new("IMAGE")
2556
+ TEXT = TemplateElementFieldType.new("TEXT")
2557
+ URL = TemplateElementFieldType.new("URL")
2558
+ VIDEO = TemplateElementFieldType.new("VIDEO")
2559
+ VISIBLE_URL = TemplateElementFieldType.new("VISIBLE_URL")
2560
+ end
2561
+
2562
+ # get
2563
+ # - selector - AdwordsApi::V200909::AdGroupAdService::AdGroupAdSelector
2564
+ class Get #:nodoc: all
2565
+ attr_accessor :selector
2566
+
2567
+ def initialize(selector = nil)
2568
+ @selector = selector
2569
+ end
2570
+ end
2571
+
2572
+ # getResponse
2573
+ # - rval - AdwordsApi::V200909::AdGroupAdService::AdGroupAdPage
2574
+ class GetResponse #:nodoc: all
2575
+ attr_accessor :rval
2576
+
2577
+ def initialize(rval = nil)
2578
+ @rval = rval
2579
+ end
2580
+ end
2581
+
2582
+ # mutate
2583
+ # - operations - AdwordsApi::V200909::AdGroupAdService::AdGroupAdOperation
2584
+ class Mutate #:nodoc: all
2585
+ attr_accessor :operations
2586
+
2587
+ def initialize(operations = [])
2588
+ @operations = operations
2589
+ end
2590
+ end
2591
+
2592
+ # mutateResponse
2593
+ # - rval - AdwordsApi::V200909::AdGroupAdService::AdGroupAdReturnValue
2594
+ class MutateResponse #:nodoc: all
2595
+ attr_accessor :rval
2596
+
2597
+ def initialize(rval = nil)
2598
+ @rval = rval
2599
+ end
2600
+ end
2601
+
2602
+
2603
+ end; end; end