adwords4r 13.0.1 → 15.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. data/Authors.txt +2 -1
  2. data/ChangeLog.txt +28 -0
  3. data/Copying.txt +1 -1
  4. data/{Licence.txt → License.txt} +1 -1
  5. data/Rakefile +49 -54
  6. data/Readme.txt +78 -24
  7. data/adwords.properties +1 -1
  8. data/examples/account_info.rb +20 -26
  9. data/examples/create_all.rb +51 -53
  10. data/examples/create_all_v200902.rb +204 -0
  11. data/examples/keyword_suggestions.rb +35 -38
  12. data/examples/multiple_versions.rb +167 -0
  13. data/examples/reports.rb +37 -75
  14. data/lib/adwords4r.rb +123 -123
  15. data/lib/adwords4r/adwordslogger.rb +56 -0
  16. data/lib/adwords4r/apiextensions.rb +79 -0
  17. data/lib/adwords4r/authtoken.rb +56 -0
  18. data/lib/adwords4r/credentials.rb +115 -19
  19. data/lib/adwords4r/services.rb +139 -14
  20. data/lib/adwords4r/soap4rpatches.rb +129 -0
  21. data/lib/adwords4r/v13/AccountService.rb +11 -11
  22. data/lib/adwords4r/v13/AccountServiceDriver.rb +7 -5
  23. data/lib/adwords4r/v13/AccountServiceMappingRegistry.rb +56 -56
  24. data/lib/adwords4r/v13/AdGroupService.rb +9 -9
  25. data/lib/adwords4r/v13/AdGroupServiceDriver.rb +11 -9
  26. data/lib/adwords4r/v13/AdGroupServiceMappingRegistry.rb +47 -47
  27. data/lib/adwords4r/v13/AdService.rb +37 -37
  28. data/lib/adwords4r/v13/AdServiceDriver.rb +12 -10
  29. data/lib/adwords4r/v13/AdServiceMappingRegistry.rb +148 -148
  30. data/lib/adwords4r/v13/CampaignService.rb +46 -25
  31. data/lib/adwords4r/v13/CampaignServiceDriver.rb +23 -13
  32. data/lib/adwords4r/v13/CampaignServiceMappingRegistry.rb +169 -135
  33. data/lib/adwords4r/v13/CriterionService.rb +19 -19
  34. data/lib/adwords4r/v13/CriterionServiceDriver.rb +11 -9
  35. data/lib/adwords4r/v13/CriterionServiceMappingRegistry.rb +90 -90
  36. data/lib/adwords4r/v13/InfoService.rb +3 -3
  37. data/lib/adwords4r/v13/InfoServiceDriver.rb +10 -8
  38. data/lib/adwords4r/v13/InfoServiceMappingRegistry.rb +29 -29
  39. data/lib/adwords4r/v13/KeywordToolService.rb +10 -10
  40. data/lib/adwords4r/v13/KeywordToolServiceDriver.rb +4 -2
  41. data/lib/adwords4r/v13/KeywordToolServiceMappingRegistry.rb +37 -37
  42. data/lib/adwords4r/v13/ReportService.rb +13 -13
  43. data/lib/adwords4r/v13/ReportServiceDriver.rb +9 -7
  44. data/lib/adwords4r/v13/ReportServiceMappingRegistry.rb +54 -54
  45. data/lib/adwords4r/v13/SiteSuggestionService.rb +15 -15
  46. data/lib/adwords4r/v13/SiteSuggestionServiceDriver.rb +6 -4
  47. data/lib/adwords4r/v13/SiteSuggestionServiceMappingRegistry.rb +57 -57
  48. data/lib/adwords4r/v13/TrafficEstimatorService.rb +17 -17
  49. data/lib/adwords4r/v13/TrafficEstimatorServiceDriver.rb +6 -4
  50. data/lib/adwords4r/v13/TrafficEstimatorServiceMappingRegistry.rb +96 -96
  51. data/lib/adwords4r/v200902/AdGroupAdService.rb +2021 -0
  52. data/lib/adwords4r/v200902/AdGroupAdServiceDriver.rb +63 -0
  53. data/lib/adwords4r/v200902/AdGroupAdServiceMappingRegistry.rb +2234 -0
  54. data/lib/adwords4r/v200902/AdGroupCriterionService.rb +1209 -0
  55. data/lib/adwords4r/v200902/AdGroupCriterionServiceDriver.rb +63 -0
  56. data/lib/adwords4r/v200902/AdGroupCriterionServiceMappingRegistry.rb +1434 -0
  57. data/lib/adwords4r/v200902/AdGroupService.rb +968 -0
  58. data/lib/adwords4r/{v12/KeywordToolServiceDriver.rb → v200902/AdGroupServiceDriver.rb} +15 -13
  59. data/lib/adwords4r/v200902/AdGroupServiceMappingRegistry.rb +1114 -0
  60. data/lib/adwords4r/v200902/CampaignCriterionService.rb +741 -0
  61. data/lib/adwords4r/v200902/CampaignCriterionServiceDriver.rb +63 -0
  62. data/lib/adwords4r/v200902/CampaignCriterionServiceMappingRegistry.rb +904 -0
  63. data/lib/adwords4r/v200902/CampaignService.rb +1249 -0
  64. data/lib/adwords4r/v200902/CampaignServiceDriver.rb +63 -0
  65. data/lib/adwords4r/v200902/CampaignServiceMappingRegistry.rb +1466 -0
  66. data/lib/adwords4r/v200902/CampaignTargetService.rb +1156 -0
  67. data/lib/adwords4r/v200902/CampaignTargetServiceDriver.rb +63 -0
  68. data/lib/adwords4r/v200902/CampaignTargetServiceMappingRegistry.rb +1304 -0
  69. data/setup.rb +0 -0
  70. metadata +57 -65
  71. data/lib/adwords4r/v12/AccountService.rb +0 -215
  72. data/lib/adwords4r/v12/AccountServiceDriver.rb +0 -69
  73. data/lib/adwords4r/v12/AccountServiceMappingRegistry.rb +0 -243
  74. data/lib/adwords4r/v12/AdGroupService.rb +0 -263
  75. data/lib/adwords4r/v12/AdGroupServiceDriver.rb +0 -109
  76. data/lib/adwords4r/v12/AdGroupServiceMappingRegistry.rb +0 -280
  77. data/lib/adwords4r/v12/AdService.rb +0 -769
  78. data/lib/adwords4r/v12/AdServiceDriver.rb +0 -125
  79. data/lib/adwords4r/v12/AdServiceMappingRegistry.rb +0 -813
  80. data/lib/adwords4r/v12/CampaignService.rb +0 -498
  81. data/lib/adwords4r/v12/CampaignServiceDriver.rb +0 -133
  82. data/lib/adwords4r/v12/CampaignServiceMappingRegistry.rb +0 -642
  83. data/lib/adwords4r/v12/CriterionService.rb +0 -445
  84. data/lib/adwords4r/v12/CriterionServiceDriver.rb +0 -117
  85. data/lib/adwords4r/v12/CriterionServiceMappingRegistry.rb +0 -509
  86. data/lib/adwords4r/v12/InfoService.rb +0 -242
  87. data/lib/adwords4r/v12/InfoServiceDriver.rb +0 -109
  88. data/lib/adwords4r/v12/InfoServiceMappingRegistry.rb +0 -228
  89. data/lib/adwords4r/v12/KeywordToolService.rb +0 -205
  90. data/lib/adwords4r/v12/KeywordToolServiceMappingRegistry.rb +0 -227
  91. data/lib/adwords4r/v12/ReportService.rb +0 -322
  92. data/lib/adwords4r/v12/ReportServiceDriver.rb +0 -101
  93. data/lib/adwords4r/v12/ReportServiceMappingRegistry.rb +0 -298
  94. data/lib/adwords4r/v12/SiteSuggestionService.rb +0 -242
  95. data/lib/adwords4r/v12/SiteSuggestionServiceDriver.rb +0 -77
  96. data/lib/adwords4r/v12/SiteSuggestionServiceMappingRegistry.rb +0 -271
  97. data/lib/adwords4r/v12/TrafficEstimatorService.rb +0 -312
  98. data/lib/adwords4r/v12/TrafficEstimatorServiceDriver.rb +0 -77
  99. data/lib/adwords4r/v12/TrafficEstimatorServiceMappingRegistry.rb +0 -483
data/setup.rb CHANGED
File without changes
metadata CHANGED
@@ -1,30 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adwords4r
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.0.1
5
- platform: ruby
4
+ version: 15.0.1
5
+ platform: ""
6
6
  authors:
7
- - Jeffrey Posnick, Patrick Chanezon, Ryan Leavengood
7
+ - Sergio Gomes, Jeffrey Posnick, Patrick Chanezon, Ryan Leavengood
8
8
  autorequire: adwords4r
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-23 00:00:00 -04:00
12
+ date: 2009-05-14 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: soap4r
17
- type: :runtime
18
17
  version_requirement:
19
18
  version_requirements: !ruby/object:Gem::Requirement
20
19
  requirements:
21
- - - ">="
20
+ - - "="
22
21
  - !ruby/object:Gem::Version
23
22
  version: 1.5.8
24
23
  version:
25
24
  - !ruby/object:Gem::Dependency
26
25
  name: httpclient
27
- type: :runtime
28
26
  version_requirement:
29
27
  version_requirements: !ruby/object:Gem::Requirement
30
28
  requirements:
@@ -32,8 +30,8 @@ dependencies:
32
30
  - !ruby/object:Gem::Version
33
31
  version: 2.1.2
34
32
  version:
35
- description: Adwords4r provides an easy to use way to access the AdWords API in ruby.Currently the following AdWords API versions are supported:* V12* V13
36
- email: jeffy@google.com
33
+ description: Adwords4r provides an easy to use way to access the AdWords API in Ruby.Currently the following AdWords API versions are supported:* V13* V200902 (sandbox)
34
+ email: api.sgomes@gmail.com
37
35
  executables: []
38
36
 
39
37
  extensions: []
@@ -41,7 +39,7 @@ extensions: []
41
39
  extra_rdoc_files: []
42
40
 
43
41
  files:
44
- - Licence.txt
42
+ - License.txt
45
43
  - setup.rb
46
44
  - Authors.txt
47
45
  - ChangeLog.txt
@@ -50,74 +48,68 @@ files:
50
48
  - adwords.properties
51
49
  - Rakefile
52
50
  - lib/adwords4r/v13/AccountService.rb
51
+ - lib/adwords4r/v13/KeywordToolServiceDriver.rb
52
+ - lib/adwords4r/v13/CriterionService.rb
53
+ - lib/adwords4r/v13/InfoServiceMappingRegistry.rb
54
+ - lib/adwords4r/v13/AdServiceDriver.rb
53
55
  - lib/adwords4r/v13/AccountServiceMappingRegistry.rb
54
- - lib/adwords4r/v13/AccountServiceDriver.rb
55
56
  - lib/adwords4r/v13/AdGroupService.rb
56
- - lib/adwords4r/v13/AdGroupServiceMappingRegistry.rb
57
- - lib/adwords4r/v13/AdGroupServiceDriver.rb
58
- - lib/adwords4r/v13/AdService.rb
59
- - lib/adwords4r/v13/AdServiceMappingRegistry.rb
60
- - lib/adwords4r/v13/AdServiceDriver.rb
61
- - lib/adwords4r/v13/InfoService.rb
62
- - lib/adwords4r/v13/CampaignService.rb
63
- - lib/adwords4r/v13/CampaignServiceMappingRegistry.rb
64
- - lib/adwords4r/v13/CampaignServiceDriver.rb
65
- - lib/adwords4r/v13/CriterionService.rb
66
57
  - lib/adwords4r/v13/CriterionServiceMappingRegistry.rb
67
- - lib/adwords4r/v13/CriterionServiceDriver.rb
68
- - lib/adwords4r/v13/InfoServiceMappingRegistry.rb
58
+ - lib/adwords4r/v13/TrafficEstimatorService.rb
59
+ - lib/adwords4r/v13/AdGroupServiceMappingRegistry.rb
69
60
  - lib/adwords4r/v13/InfoServiceDriver.rb
70
- - lib/adwords4r/v13/KeywordToolService.rb
71
- - lib/adwords4r/v13/KeywordToolServiceMappingRegistry.rb
72
- - lib/adwords4r/v13/KeywordToolServiceDriver.rb
61
+ - lib/adwords4r/v13/AccountServiceDriver.rb
62
+ - lib/adwords4r/v13/CriterionServiceDriver.rb
73
63
  - lib/adwords4r/v13/ReportService.rb
74
- - lib/adwords4r/v13/ReportServiceMappingRegistry.rb
75
- - lib/adwords4r/v13/ReportServiceDriver.rb
64
+ - lib/adwords4r/v13/TrafficEstimatorServiceMappingRegistry.rb
76
65
  - lib/adwords4r/v13/SiteSuggestionService.rb
66
+ - lib/adwords4r/v13/AdGroupServiceDriver.rb
67
+ - lib/adwords4r/v13/CampaignService.rb
68
+ - lib/adwords4r/v13/ReportServiceMappingRegistry.rb
77
69
  - lib/adwords4r/v13/SiteSuggestionServiceMappingRegistry.rb
78
- - lib/adwords4r/v13/SiteSuggestionServiceDriver.rb
79
- - lib/adwords4r/v13/TrafficEstimatorService.rb
80
- - lib/adwords4r/v13/TrafficEstimatorServiceMappingRegistry.rb
70
+ - lib/adwords4r/v13/KeywordToolService.rb
81
71
  - lib/adwords4r/v13/TrafficEstimatorServiceDriver.rb
82
- - lib/adwords4r/v12/AccountService.rb
83
- - lib/adwords4r/v12/CriterionService.rb
84
- - lib/adwords4r/v12/KeywordToolServiceDriver.rb
85
- - lib/adwords4r/v12/AdServiceDriver.rb
86
- - lib/adwords4r/v12/InfoServiceMappingRegistry.rb
87
- - lib/adwords4r/v12/AccountServiceMappingRegistry.rb
88
- - lib/adwords4r/v12/AdGroupService.rb
89
- - lib/adwords4r/v12/CriterionServiceMappingRegistry.rb
90
- - lib/adwords4r/v12/AdGroupServiceMappingRegistry.rb
91
- - lib/adwords4r/v12/TrafficEstimatorService.rb
92
- - lib/adwords4r/v12/InfoServiceDriver.rb
93
- - lib/adwords4r/v12/AccountServiceDriver.rb
94
- - lib/adwords4r/v12/CriterionServiceDriver.rb
95
- - lib/adwords4r/v12/TrafficEstimatorServiceMappingRegistry.rb
96
- - lib/adwords4r/v12/ReportService.rb
97
- - lib/adwords4r/v12/SiteSuggestionService.rb
98
- - lib/adwords4r/v12/AdGroupServiceDriver.rb
99
- - lib/adwords4r/v12/CampaignService.rb
100
- - lib/adwords4r/v12/ReportServiceMappingRegistry.rb
101
- - lib/adwords4r/v12/SiteSuggestionServiceMappingRegistry.rb
102
- - lib/adwords4r/v12/KeywordToolService.rb
103
- - lib/adwords4r/v12/TrafficEstimatorServiceDriver.rb
104
- - lib/adwords4r/v12/AdService.rb
105
- - lib/adwords4r/v12/CampaignServiceMappingRegistry.rb
106
- - lib/adwords4r/v12/KeywordToolServiceMappingRegistry.rb
107
- - lib/adwords4r/v12/ReportServiceDriver.rb
108
- - lib/adwords4r/v12/SiteSuggestionServiceDriver.rb
109
- - lib/adwords4r/v12/AdServiceMappingRegistry.rb
110
- - lib/adwords4r/v12/CampaignServiceDriver.rb
111
- - lib/adwords4r/v12/InfoService.rb
72
+ - lib/adwords4r/v13/CampaignServiceMappingRegistry.rb
73
+ - lib/adwords4r/v13/AdService.rb
74
+ - lib/adwords4r/v13/ReportServiceDriver.rb
75
+ - lib/adwords4r/v13/KeywordToolServiceMappingRegistry.rb
76
+ - lib/adwords4r/v13/SiteSuggestionServiceDriver.rb
77
+ - lib/adwords4r/v13/AdServiceMappingRegistry.rb
78
+ - lib/adwords4r/v13/InfoService.rb
79
+ - lib/adwords4r/v13/CampaignServiceDriver.rb
112
80
  - lib/adwords4r/credentials.rb
113
81
  - lib/adwords4r/services.rb
82
+ - lib/adwords4r/adwordslogger.rb
83
+ - lib/adwords4r/apiextensions.rb
84
+ - lib/adwords4r/authtoken.rb
85
+ - lib/adwords4r/soap4rpatches.rb
86
+ - lib/adwords4r/v200902/AdGroupAdService.rb
87
+ - lib/adwords4r/v200902/AdGroupAdServiceDriver.rb
88
+ - lib/adwords4r/v200902/AdGroupAdServiceMappingRegistry.rb
89
+ - lib/adwords4r/v200902/AdGroupCriterionService.rb
90
+ - lib/adwords4r/v200902/AdGroupCriterionServiceDriver.rb
91
+ - lib/adwords4r/v200902/AdGroupCriterionServiceMappingRegistry.rb
92
+ - lib/adwords4r/v200902/AdGroupService.rb
93
+ - lib/adwords4r/v200902/AdGroupServiceDriver.rb
94
+ - lib/adwords4r/v200902/AdGroupServiceMappingRegistry.rb
95
+ - lib/adwords4r/v200902/CampaignCriterionService.rb
96
+ - lib/adwords4r/v200902/CampaignCriterionServiceDriver.rb
97
+ - lib/adwords4r/v200902/CampaignCriterionServiceMappingRegistry.rb
98
+ - lib/adwords4r/v200902/CampaignService.rb
99
+ - lib/adwords4r/v200902/CampaignServiceDriver.rb
100
+ - lib/adwords4r/v200902/CampaignServiceMappingRegistry.rb
101
+ - lib/adwords4r/v200902/CampaignTargetService.rb
102
+ - lib/adwords4r/v200902/CampaignTargetServiceDriver.rb
103
+ - lib/adwords4r/v200902/CampaignTargetServiceMappingRegistry.rb
114
104
  - lib/adwords4r.rb
115
105
  - examples/reports.rb
116
106
  - examples/keyword_suggestions.rb
117
107
  - examples/account_info.rb
118
108
  - examples/create_all.rb
109
+ - examples/create_all_v200902.rb
110
+ - examples/multiple_versions.rb
119
111
  has_rdoc: false
120
- homepage: http://rubyforge.org/projects/google4r/
112
+ homepage: http://code.google.com/p/google-api-adwords-ruby/
121
113
  post_install_message:
122
114
  rdoc_options: []
123
115
 
@@ -136,10 +128,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
128
  version: "0"
137
129
  version:
138
130
  requirements:
139
- - soap4r v1.5.8 or greater
131
+ - soap4r v1.5.8
140
132
  - httpclient v2.1.2 or greater
141
- rubyforge_project: google4r
142
- rubygems_version: 1.2.0
133
+ rubyforge_project:
134
+ rubygems_version: 0.9.5
143
135
  signing_key:
144
136
  specification_version: 2
145
137
  summary: Client library for the AdWords API.
@@ -1,215 +0,0 @@
1
- require 'xsd/qname'
2
-
3
- module AdWords; module AccountService
4
-
5
-
6
- # {https://adwords.google.com/api/adwords/v12}AccountInfo
7
- # billingAddress - AdWords::AccountService::Address
8
- # currencyCode - SOAP::SOAPString
9
- # customerId - SOAP::SOAPLong
10
- # defaultNetworkTargeting - AdWords::AccountService::NetworkTarget
11
- # descriptiveName - SOAP::SOAPString
12
- # emailPromotionsPreferences - AdWords::AccountService::EmailPromotionsPreferences
13
- # languagePreference - SOAP::SOAPString
14
- # primaryAddress - AdWords::AccountService::Address
15
- # primaryBusinessCategory - SOAP::SOAPString
16
- # timeZoneEffectiveDate - SOAP::SOAPLong
17
- # timeZoneId - SOAP::SOAPString
18
- class AccountInfo
19
- attr_accessor :billingAddress
20
- attr_accessor :currencyCode
21
- attr_accessor :customerId
22
- attr_accessor :defaultNetworkTargeting
23
- attr_accessor :descriptiveName
24
- attr_accessor :emailPromotionsPreferences
25
- attr_accessor :languagePreference
26
- attr_accessor :primaryAddress
27
- attr_accessor :primaryBusinessCategory
28
- attr_accessor :timeZoneEffectiveDate
29
- attr_accessor :timeZoneId
30
-
31
- def initialize(billingAddress = nil, currencyCode = nil, customerId = nil, defaultNetworkTargeting = nil, descriptiveName = nil, emailPromotionsPreferences = nil, languagePreference = nil, primaryAddress = nil, primaryBusinessCategory = nil, timeZoneEffectiveDate = nil, timeZoneId = nil)
32
- @billingAddress = billingAddress
33
- @currencyCode = currencyCode
34
- @customerId = customerId
35
- @defaultNetworkTargeting = defaultNetworkTargeting
36
- @descriptiveName = descriptiveName
37
- @emailPromotionsPreferences = emailPromotionsPreferences
38
- @languagePreference = languagePreference
39
- @primaryAddress = primaryAddress
40
- @primaryBusinessCategory = primaryBusinessCategory
41
- @timeZoneEffectiveDate = timeZoneEffectiveDate
42
- @timeZoneId = timeZoneId
43
- end
44
- end
45
-
46
- # {https://adwords.google.com/api/adwords/v12}Address
47
- # addressLine1 - SOAP::SOAPString
48
- # addressLine2 - SOAP::SOAPString
49
- # city - SOAP::SOAPString
50
- # companyName - SOAP::SOAPString
51
- # countryCode - SOAP::SOAPString
52
- # emailAddress - SOAP::SOAPString
53
- # faxNumber - SOAP::SOAPString
54
- # name - SOAP::SOAPString
55
- # phoneNumber - SOAP::SOAPString
56
- # postalCode - SOAP::SOAPString
57
- # state - SOAP::SOAPString
58
- class Address
59
- attr_accessor :addressLine1
60
- attr_accessor :addressLine2
61
- attr_accessor :city
62
- attr_accessor :companyName
63
- attr_accessor :countryCode
64
- attr_accessor :emailAddress
65
- attr_accessor :faxNumber
66
- attr_accessor :name
67
- attr_accessor :phoneNumber
68
- attr_accessor :postalCode
69
- attr_accessor :state
70
-
71
- def initialize(addressLine1 = nil, addressLine2 = nil, city = nil, companyName = nil, countryCode = nil, emailAddress = nil, faxNumber = nil, name = nil, phoneNumber = nil, postalCode = nil, state = nil)
72
- @addressLine1 = addressLine1
73
- @addressLine2 = addressLine2
74
- @city = city
75
- @companyName = companyName
76
- @countryCode = countryCode
77
- @emailAddress = emailAddress
78
- @faxNumber = faxNumber
79
- @name = name
80
- @phoneNumber = phoneNumber
81
- @postalCode = postalCode
82
- @state = state
83
- end
84
- end
85
-
86
- # {https://adwords.google.com/api/adwords/v12}ApiError
87
- # code - SOAP::SOAPInt
88
- # detail - SOAP::SOAPString
89
- # field - SOAP::SOAPString
90
- # index - SOAP::SOAPInt
91
- # isExemptable - SOAP::SOAPBoolean
92
- # textIndex - SOAP::SOAPInt
93
- # textLength - SOAP::SOAPInt
94
- # trigger - SOAP::SOAPString
95
- class ApiError
96
- attr_accessor :code
97
- attr_accessor :detail
98
- attr_accessor :field
99
- attr_accessor :index
100
- attr_accessor :isExemptable
101
- attr_accessor :textIndex
102
- attr_accessor :textLength
103
- attr_accessor :trigger
104
-
105
- def initialize(code = nil, detail = nil, field = nil, index = nil, isExemptable = nil, textIndex = nil, textLength = nil, trigger = nil)
106
- @code = code
107
- @detail = detail
108
- @field = field
109
- @index = index
110
- @isExemptable = isExemptable
111
- @textIndex = textIndex
112
- @textLength = textLength
113
- @trigger = trigger
114
- end
115
- end
116
-
117
- # {https://adwords.google.com/api/adwords/v12}ApiException
118
- # code - SOAP::SOAPInt
119
- # errors - AdWords::AccountService::ApiError
120
- # internal - SOAP::SOAPBoolean
121
- # message - SOAP::SOAPString
122
- # trigger - SOAP::SOAPString
123
- class ApiException
124
- attr_accessor :code
125
- attr_accessor :errors
126
- attr_accessor :internal
127
- attr_accessor :message
128
- attr_accessor :trigger
129
-
130
- def initialize(code = nil, errors = [], internal = nil, message = nil, trigger = nil)
131
- @code = code
132
- @errors = errors
133
- @internal = internal
134
- @message = message
135
- @trigger = trigger
136
- end
137
- end
138
-
139
- # {https://adwords.google.com/api/adwords/v12}EmailPromotionsPreferences
140
- # accountPerformanceEnabled - SOAP::SOAPBoolean
141
- # disapprovedAdsEnabled - SOAP::SOAPBoolean
142
- # marketResearchEnabled - SOAP::SOAPBoolean
143
- # newsletterEnabled - SOAP::SOAPBoolean
144
- # promotionsEnabled - SOAP::SOAPBoolean
145
- class EmailPromotionsPreferences
146
- attr_accessor :accountPerformanceEnabled
147
- attr_accessor :disapprovedAdsEnabled
148
- attr_accessor :marketResearchEnabled
149
- attr_accessor :newsletterEnabled
150
- attr_accessor :promotionsEnabled
151
-
152
- def initialize(accountPerformanceEnabled = nil, disapprovedAdsEnabled = nil, marketResearchEnabled = nil, newsletterEnabled = nil, promotionsEnabled = nil)
153
- @accountPerformanceEnabled = accountPerformanceEnabled
154
- @disapprovedAdsEnabled = disapprovedAdsEnabled
155
- @marketResearchEnabled = marketResearchEnabled
156
- @newsletterEnabled = newsletterEnabled
157
- @promotionsEnabled = promotionsEnabled
158
- end
159
- end
160
-
161
- # {https://adwords.google.com/api/adwords/v12}NetworkTarget
162
- class NetworkTarget < ::Array
163
- end
164
-
165
- # {https://adwords.google.com/api/adwords/v12}NetworkType
166
- class NetworkType < ::String
167
- ContentNetwork = NetworkType.new("ContentNetwork")
168
- GoogleSearch = NetworkType.new("GoogleSearch")
169
- SearchNetwork = NetworkType.new("SearchNetwork")
170
- end
171
-
172
- # {https://adwords.google.com/api/adwords/v12}getAccountInfo
173
- class GetAccountInfo
174
- def initialize
175
- end
176
- end
177
-
178
- # {https://adwords.google.com/api/adwords/v12}getAccountInfoResponse
179
- # getAccountInfoReturn - AdWords::AccountService::AccountInfo
180
- class GetAccountInfoResponse
181
- attr_accessor :getAccountInfoReturn
182
-
183
- def initialize(getAccountInfoReturn = nil)
184
- @getAccountInfoReturn = getAccountInfoReturn
185
- end
186
- end
187
-
188
- # {https://adwords.google.com/api/adwords/v12}getClientAccounts
189
- class GetClientAccounts
190
- def initialize
191
- end
192
- end
193
-
194
- # {https://adwords.google.com/api/adwords/v12}getClientAccountsResponse
195
- class GetClientAccountsResponse < ::Array
196
- end
197
-
198
- # {https://adwords.google.com/api/adwords/v12}updateAccountInfo
199
- # accountInfo - AdWords::AccountService::AccountInfo
200
- class UpdateAccountInfo
201
- attr_accessor :accountInfo
202
-
203
- def initialize(accountInfo = nil)
204
- @accountInfo = accountInfo
205
- end
206
- end
207
-
208
- # {https://adwords.google.com/api/adwords/v12}updateAccountInfoResponse
209
- class UpdateAccountInfoResponse
210
- def initialize
211
- end
212
- end
213
-
214
-
215
- end; end
@@ -1,69 +0,0 @@
1
- require 'adwords4r/v12/AccountService'
2
- require 'adwords4r/v12/AccountServiceMappingRegistry'
3
- require 'soap/rpc/driver'
4
-
5
- module AdWords
6
- module AccountService
7
-
8
- class AccountInterface < ::SOAP::RPC::Driver
9
- DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v12/AccountService"
10
-
11
- Methods = [
12
- [ "",
13
- "getAccountInfo",
14
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getAccountInfo"]],
15
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getAccountInfoResponse"]] ],
16
- { :request_style => :document, :request_use => :literal,
17
- :response_style => :document, :response_use => :literal,
18
- :faults => {"AdWords::AccountService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
19
- ],
20
- [ "",
21
- "getClientAccounts",
22
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getClientAccounts"]],
23
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getClientAccountsResponse"]] ],
24
- { :request_style => :document, :request_use => :literal,
25
- :response_style => :document, :response_use => :literal,
26
- :faults => {"AdWords::AccountService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
27
- ],
28
- [ "",
29
- "updateAccountInfo",
30
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "updateAccountInfo"]],
31
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "updateAccountInfoResponse"]] ],
32
- { :request_style => :document, :request_use => :literal,
33
- :response_style => :document, :response_use => :literal,
34
- :faults => {"AdWords::AccountService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
35
- ]
36
- ]
37
-
38
- def initialize(endpoint_url = nil)
39
- endpoint_url ||= DefaultEndpointUrl
40
- super(endpoint_url, nil)
41
- self.mapping_registry = DefaultMappingRegistry::EncodedRegistry
42
- self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
43
- init_methods
44
- end
45
-
46
- private
47
-
48
- def init_methods
49
- Methods.each do |definitions|
50
- opt = definitions.last
51
- if opt[:request_style] == :document
52
- add_document_operation(*definitions)
53
- else
54
- add_rpc_operation(*definitions)
55
- qname = definitions[0]
56
- name = definitions[2]
57
- if qname.name != name and qname.name.capitalize == name.capitalize
58
- ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
59
- __send__(name, *arg)
60
- end
61
- end
62
- end
63
- end
64
- end
65
- end
66
-
67
-
68
- end
69
- end