adwords4r 0.5 → 0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.txt +4 -0
- data/Rakefile +10 -10
- data/Readme.txt +78 -74
- data/Todo.txt +12 -0
- data/adwords.properties +2 -0
- data/examples/campaign.rb +1 -2
- data/examples/keyword_tool_demo.rb +27 -0
- data/examples/sandbox.rb +30 -0
- data/lib/adwords4r.rb +7 -1
- data/lib/adwords4r/credentials.rb +5 -3
- data/lib/adwords4r/services.rb +2 -2
- data/lib/adwords4r/v4/CreativeService.rb +0 -33
- data/lib/adwords4r/{v3 → v5}/AccountService.rb +311 -86
- data/lib/adwords4r/{v3 → v5}/AccountServiceDriver.rb +69 -34
- data/lib/adwords4r/{v3 → v5}/AdGroupService.rb +90 -58
- data/lib/adwords4r/{v3 → v5}/AdGroupServiceDriver.rb +18 -18
- data/lib/adwords4r/{v3 → v5}/CampaignService.rb +121 -89
- data/lib/adwords4r/{v3 → v5}/CampaignServiceDriver.rb +22 -22
- data/lib/adwords4r/{v3 → v5}/CreativeService.rb +84 -81
- data/lib/adwords4r/{v2 → v5}/CreativeServiceDriver.rb +20 -20
- data/lib/adwords4r/{v3 → v5}/CriterionService.rb +96 -64
- data/lib/adwords4r/{v3 → v5}/CriterionServiceDriver.rb +18 -18
- data/lib/adwords4r/{v3 → v5}/InfoService.rb +70 -34
- data/lib/adwords4r/{v2 → v5}/InfoServiceDriver.rb +16 -16
- data/lib/adwords4r/{v3 → v5}/KeywordToolService.rb +62 -26
- data/lib/adwords4r/{v3 → v5}/KeywordToolServiceDriver.rb +6 -6
- data/lib/adwords4r/v5/ReportService.rb +788 -0
- data/lib/adwords4r/{v2 → v5}/ReportServiceDriver.rb +14 -14
- data/lib/adwords4r/{v3 → v5}/TrafficEstimatorService.rb +95 -50
- data/lib/adwords4r/{v2 → v5}/TrafficEstimatorServiceDriver.rb +8 -8
- metadata +23 -46
- data/examples/report_demo.rb +0 -42
- data/lib/adwords4r/registry.rb +0 -31
- data/lib/adwords4r/v2/AccountService.rb +0 -628
- data/lib/adwords4r/v2/AccountServiceDriver.rb +0 -153
- data/lib/adwords4r/v2/AdGroupService.rb +0 -317
- data/lib/adwords4r/v2/AdGroupServiceDriver.rb +0 -97
- data/lib/adwords4r/v2/CampaignService.rb +0 -517
- data/lib/adwords4r/v2/CampaignServiceDriver.rb +0 -111
- data/lib/adwords4r/v2/CreativeService.rb +0 -401
- data/lib/adwords4r/v2/CriterionService.rb +0 -415
- data/lib/adwords4r/v2/CriterionServiceDriver.rb +0 -97
- data/lib/adwords4r/v2/InfoService.rb +0 -260
- data/lib/adwords4r/v2/KeywordService.rb +0 -543
- data/lib/adwords4r/v2/KeywordServiceDriver.rb +0 -125
- data/lib/adwords4r/v2/ReportService.rb +0 -569
- data/lib/adwords4r/v2/TrafficEstimatorService.rb +0 -251
- data/lib/adwords4r/v2/default.rb +0 -364
- data/lib/adwords4r/v2/defaultDriver.rb +0 -102
- data/lib/adwords4r/v3/CreativeServiceDriver.rb +0 -104
- data/lib/adwords4r/v3/InfoServiceDriver.rb +0 -90
- data/lib/adwords4r/v3/KeywordService.rb +0 -543
- data/lib/adwords4r/v3/KeywordServiceDriver.rb +0 -125
- data/lib/adwords4r/v3/ReportService.rb +0 -569
- data/lib/adwords4r/v3/ReportServiceDriver.rb +0 -83
- data/lib/adwords4r/v3/TrafficEstimatorServiceDriver.rb +0 -62
- data/scripts/publish.rb +0 -16
@@ -1,122 +1,157 @@
|
|
1
1
|
module AdWords
|
2
|
-
require 'adwords4r/
|
2
|
+
require 'adwords4r/v5/AccountService'
|
3
3
|
|
4
4
|
require 'soap/rpc/driver'
|
5
5
|
|
6
6
|
class AccountService < ::SOAP::RPC::Driver
|
7
|
-
DefaultEndpointUrl = "https://adwords.google.com/api/adwords/
|
7
|
+
DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v5/AccountService"
|
8
8
|
MappingRegistry = ::SOAP::Mapping::Registry.new
|
9
9
|
|
10
10
|
Methods = [
|
11
11
|
[ "",
|
12
12
|
"createAdWordsAccount",
|
13
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
14
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
13
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "createAdWordsAccount"], true],
|
14
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "createAdWordsAccountResponse"], true] ],
|
15
15
|
{ :request_style => :document, :request_use => :literal,
|
16
16
|
:response_style => :document, :response_use => :literal }
|
17
17
|
],
|
18
18
|
[ "",
|
19
19
|
"setLoginInfo",
|
20
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
21
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
20
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "setLoginInfo"], true],
|
21
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "setLoginInfoResponse"], true] ],
|
22
22
|
{ :request_style => :document, :request_use => :literal,
|
23
23
|
:response_style => :document, :response_use => :literal }
|
24
24
|
],
|
25
25
|
[ "",
|
26
26
|
"getAccountCurrency",
|
27
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
28
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
27
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getAccountCurrency"], true],
|
28
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getAccountCurrencyResponse"], true] ],
|
29
29
|
{ :request_style => :document, :request_use => :literal,
|
30
30
|
:response_style => :document, :response_use => :literal }
|
31
31
|
],
|
32
32
|
[ "",
|
33
33
|
"getCreditCard",
|
34
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
35
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
34
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getCreditCard"], true],
|
35
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getCreditCardResponse"], true] ],
|
36
36
|
{ :request_style => :document, :request_use => :literal,
|
37
37
|
:response_style => :document, :response_use => :literal }
|
38
38
|
],
|
39
39
|
[ "",
|
40
40
|
"getBillingAddress",
|
41
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
42
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
41
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getBillingAddress"], true],
|
42
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getBillingAddressResponse"], true] ],
|
43
43
|
{ :request_style => :document, :request_use => :literal,
|
44
44
|
:response_style => :document, :response_use => :literal }
|
45
45
|
],
|
46
46
|
[ "",
|
47
47
|
"setCreditCard",
|
48
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
49
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
48
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "setCreditCard"], true],
|
49
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "setCreditCardResponse"], true] ],
|
50
50
|
{ :request_style => :document, :request_use => :literal,
|
51
51
|
:response_style => :document, :response_use => :literal }
|
52
52
|
],
|
53
53
|
[ "",
|
54
54
|
"getDefaultAdsCoverage",
|
55
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
56
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
55
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getDefaultAdsCoverage"], true],
|
56
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getDefaultAdsCoverageResponse"], true] ],
|
57
57
|
{ :request_style => :document, :request_use => :literal,
|
58
58
|
:response_style => :document, :response_use => :literal }
|
59
59
|
],
|
60
60
|
[ "",
|
61
61
|
"setDefaultAdsCoverage",
|
62
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
63
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
62
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "setDefaultAdsCoverage"], true],
|
63
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "setDefaultAdsCoverageResponse"], true] ],
|
64
64
|
{ :request_style => :document, :request_use => :literal,
|
65
65
|
:response_style => :document, :response_use => :literal }
|
66
66
|
],
|
67
67
|
[ "",
|
68
68
|
"getLanguagePreference",
|
69
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
70
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
69
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getLanguagePreference"], true],
|
70
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getLanguagePreferenceResponse"], true] ],
|
71
71
|
{ :request_style => :document, :request_use => :literal,
|
72
72
|
:response_style => :document, :response_use => :literal }
|
73
73
|
],
|
74
74
|
[ "",
|
75
75
|
"setLanguagePreference",
|
76
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
77
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
76
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "setLanguagePreference"], true],
|
77
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "setLanguagePreferenceResponse"], true] ],
|
78
78
|
{ :request_style => :document, :request_use => :literal,
|
79
79
|
:response_style => :document, :response_use => :literal }
|
80
80
|
],
|
81
81
|
[ "",
|
82
82
|
"getEmailPromotionsPreferences",
|
83
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
84
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
83
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getEmailPromotionsPreferences"], true],
|
84
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getEmailPromotionsPreferencesResponse"], true] ],
|
85
85
|
{ :request_style => :document, :request_use => :literal,
|
86
86
|
:response_style => :document, :response_use => :literal }
|
87
87
|
],
|
88
88
|
[ "",
|
89
89
|
"setEmailPromotionsPreferences",
|
90
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
91
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
90
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "setEmailPromotionsPreferences"], true],
|
91
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "setEmailPromotionsPreferencesResponse"], true] ],
|
92
92
|
{ :request_style => :document, :request_use => :literal,
|
93
93
|
:response_style => :document, :response_use => :literal }
|
94
94
|
],
|
95
95
|
[ "",
|
96
96
|
"getPrimaryBusinessCategory",
|
97
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
98
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
97
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getPrimaryBusinessCategory"], true],
|
98
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getPrimaryBusinessCategoryResponse"], true] ],
|
99
99
|
{ :request_style => :document, :request_use => :literal,
|
100
100
|
:response_style => :document, :response_use => :literal }
|
101
101
|
],
|
102
102
|
[ "",
|
103
103
|
"setPrimaryBusinessCategory",
|
104
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
105
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
104
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "setPrimaryBusinessCategory"], true],
|
105
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "setPrimaryBusinessCategoryResponse"], true] ],
|
106
106
|
{ :request_style => :document, :request_use => :literal,
|
107
107
|
:response_style => :document, :response_use => :literal }
|
108
108
|
],
|
109
109
|
[ "",
|
110
110
|
"getTermsAndConditions",
|
111
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
112
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
111
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getTermsAndConditions"], true],
|
112
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getTermsAndConditionsResponse"], true] ],
|
113
113
|
{ :request_style => :document, :request_use => :literal,
|
114
114
|
:response_style => :document, :response_use => :literal }
|
115
115
|
],
|
116
116
|
[ "",
|
117
117
|
"getClientAccounts",
|
118
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
119
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
118
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getClientAccounts"], true],
|
119
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getClientAccountsResponse"], true] ],
|
120
|
+
{ :request_style => :document, :request_use => :literal,
|
121
|
+
:response_style => :document, :response_use => :literal }
|
122
|
+
],
|
123
|
+
[ "",
|
124
|
+
"getLocalTimezone",
|
125
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getLocalTimezone"], true],
|
126
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getLocalTimezoneResponse"], true] ],
|
127
|
+
{ :request_style => :document, :request_use => :literal,
|
128
|
+
:response_style => :document, :response_use => :literal }
|
129
|
+
],
|
130
|
+
[ "",
|
131
|
+
"setLocalTimezone",
|
132
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "setLocalTimezone"], true],
|
133
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "setLocalTimezoneResponse"], true] ],
|
134
|
+
{ :request_style => :document, :request_use => :literal,
|
135
|
+
:response_style => :document, :response_use => :literal }
|
136
|
+
],
|
137
|
+
[ "",
|
138
|
+
"getTimezoneEffectiveDate",
|
139
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getTimezoneEffectiveDate"], true],
|
140
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getTimezoneEffectiveDateResponse"], true] ],
|
141
|
+
{ :request_style => :document, :request_use => :literal,
|
142
|
+
:response_style => :document, :response_use => :literal }
|
143
|
+
],
|
144
|
+
[ "",
|
145
|
+
"getAccountInfo",
|
146
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getAccountInfo"], true],
|
147
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getAccountInfoResponse"], true] ],
|
148
|
+
{ :request_style => :document, :request_use => :literal,
|
149
|
+
:response_style => :document, :response_use => :literal }
|
150
|
+
],
|
151
|
+
[ "",
|
152
|
+
"updateAccountInfo",
|
153
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "updateAccountInfo"], true],
|
154
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "updateAccountInfoResponse"], true] ],
|
120
155
|
{ :request_style => :document, :request_use => :literal,
|
121
156
|
:response_style => :document, :response_use => :literal }
|
122
157
|
]
|
@@ -1,24 +1,24 @@
|
|
1
1
|
module AdWords
|
2
2
|
require 'xsd/qname'
|
3
3
|
|
4
|
-
# {https://adwords.google.com/api/adwords/
|
4
|
+
# {https://adwords.google.com/api/adwords/v5}getAdGroupList
|
5
5
|
class GetAdGroupList < ::Array
|
6
6
|
@@schema_element = [
|
7
|
-
["adgroupIDs", ["SOAP::SOAPInt[]", XSD::QName.new("https://adwords.google.com/api/adwords/
|
7
|
+
["adgroupIDs", ["SOAP::SOAPInt[]", XSD::QName.new("https://adwords.google.com/api/adwords/v5", "adgroupIDs")]]
|
8
8
|
]
|
9
9
|
end
|
10
10
|
|
11
|
-
# {https://adwords.google.com/api/adwords/
|
11
|
+
# {https://adwords.google.com/api/adwords/v5}getAdGroupListResponse
|
12
12
|
class GetAdGroupListResponse < ::Array
|
13
13
|
@@schema_element = [
|
14
|
-
["getAdGroupListReturn", ["AdGroup[]", XSD::QName.new("https://adwords.google.com/api/adwords/
|
14
|
+
["getAdGroupListReturn", ["AdGroup[]", XSD::QName.new("https://adwords.google.com/api/adwords/v5", "getAdGroupListReturn")]]
|
15
15
|
]
|
16
16
|
end
|
17
17
|
|
18
|
-
# {https://adwords.google.com/api/adwords/
|
18
|
+
# {https://adwords.google.com/api/adwords/v5}getAllAdGroups
|
19
19
|
class GetAllAdGroups
|
20
20
|
@@schema_type = "getAllAdGroups"
|
21
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
21
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
22
22
|
@@schema_qualified = "true"
|
23
23
|
@@schema_element = [
|
24
24
|
["campaignID", "SOAP::SOAPInt"]
|
@@ -31,17 +31,17 @@ class GetAllAdGroups
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
# {https://adwords.google.com/api/adwords/
|
34
|
+
# {https://adwords.google.com/api/adwords/v5}getAllAdGroupsResponse
|
35
35
|
class GetAllAdGroupsResponse < ::Array
|
36
36
|
@@schema_element = [
|
37
|
-
["getAllAdGroupsReturn", ["AdGroup[]", XSD::QName.new("https://adwords.google.com/api/adwords/
|
37
|
+
["getAllAdGroupsReturn", ["AdGroup[]", XSD::QName.new("https://adwords.google.com/api/adwords/v5", "getAllAdGroupsReturn")]]
|
38
38
|
]
|
39
39
|
end
|
40
40
|
|
41
|
-
# {https://adwords.google.com/api/adwords/
|
41
|
+
# {https://adwords.google.com/api/adwords/v5}getAdGroup
|
42
42
|
class GetAdGroup
|
43
43
|
@@schema_type = "getAdGroup"
|
44
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
44
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
45
45
|
@@schema_qualified = "true"
|
46
46
|
@@schema_element = [
|
47
47
|
["adGroupId", "SOAP::SOAPInt"]
|
@@ -54,10 +54,10 @@ class GetAdGroup
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
-
# {https://adwords.google.com/api/adwords/
|
57
|
+
# {https://adwords.google.com/api/adwords/v5}getAdGroupResponse
|
58
58
|
class GetAdGroupResponse
|
59
59
|
@@schema_type = "getAdGroupResponse"
|
60
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
60
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
61
61
|
@@schema_qualified = "true"
|
62
62
|
@@schema_element = [
|
63
63
|
["getAdGroupReturn", "AdGroup"]
|
@@ -70,10 +70,10 @@ class GetAdGroupResponse
|
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
|
-
# {https://adwords.google.com/api/adwords/
|
73
|
+
# {https://adwords.google.com/api/adwords/v5}addAdGroup
|
74
74
|
class AddAdGroup
|
75
75
|
@@schema_type = "addAdGroup"
|
76
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
76
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
77
77
|
@@schema_qualified = "true"
|
78
78
|
@@schema_element = [
|
79
79
|
["campaignID", "SOAP::SOAPInt"],
|
@@ -89,10 +89,10 @@ class AddAdGroup
|
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
92
|
-
# {https://adwords.google.com/api/adwords/
|
92
|
+
# {https://adwords.google.com/api/adwords/v5}addAdGroupResponse
|
93
93
|
class AddAdGroupResponse
|
94
94
|
@@schema_type = "addAdGroupResponse"
|
95
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
95
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
96
96
|
@@schema_qualified = "true"
|
97
97
|
@@schema_element = [
|
98
98
|
["addAdGroupReturn", "AdGroup"]
|
@@ -105,10 +105,10 @@ class AddAdGroupResponse
|
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
108
|
-
# {https://adwords.google.com/api/adwords/
|
108
|
+
# {https://adwords.google.com/api/adwords/v5}addAdGroupList
|
109
109
|
class AddAdGroupList
|
110
110
|
@@schema_type = "addAdGroupList"
|
111
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
111
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
112
112
|
@@schema_qualified = "true"
|
113
113
|
@@schema_element = [
|
114
114
|
["campaignID", "SOAP::SOAPInt"],
|
@@ -124,17 +124,17 @@ class AddAdGroupList
|
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
127
|
-
# {https://adwords.google.com/api/adwords/
|
127
|
+
# {https://adwords.google.com/api/adwords/v5}addAdGroupListResponse
|
128
128
|
class AddAdGroupListResponse < ::Array
|
129
129
|
@@schema_element = [
|
130
|
-
["addAdGroupListReturn", ["AdGroup[]", XSD::QName.new("https://adwords.google.com/api/adwords/
|
130
|
+
["addAdGroupListReturn", ["AdGroup[]", XSD::QName.new("https://adwords.google.com/api/adwords/v5", "addAdGroupListReturn")]]
|
131
131
|
]
|
132
132
|
end
|
133
133
|
|
134
|
-
# {https://adwords.google.com/api/adwords/
|
134
|
+
# {https://adwords.google.com/api/adwords/v5}updateAdGroup
|
135
135
|
class UpdateAdGroup
|
136
136
|
@@schema_type = "updateAdGroup"
|
137
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
137
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
138
138
|
@@schema_qualified = "true"
|
139
139
|
@@schema_element = [
|
140
140
|
["changedData", "AdGroup"]
|
@@ -147,10 +147,10 @@ class UpdateAdGroup
|
|
147
147
|
end
|
148
148
|
end
|
149
149
|
|
150
|
-
# {https://adwords.google.com/api/adwords/
|
150
|
+
# {https://adwords.google.com/api/adwords/v5}updateAdGroupResponse
|
151
151
|
class UpdateAdGroupResponse
|
152
152
|
@@schema_type = "updateAdGroupResponse"
|
153
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
153
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
154
154
|
@@schema_qualified = "true"
|
155
155
|
@@schema_element = []
|
156
156
|
|
@@ -158,17 +158,17 @@ class UpdateAdGroupResponse
|
|
158
158
|
end
|
159
159
|
end
|
160
160
|
|
161
|
-
# {https://adwords.google.com/api/adwords/
|
161
|
+
# {https://adwords.google.com/api/adwords/v5}updateAdGroupList
|
162
162
|
class UpdateAdGroupList < ::Array
|
163
163
|
@@schema_element = [
|
164
|
-
["changedData", ["AdGroup[]", XSD::QName.new("https://adwords.google.com/api/adwords/
|
164
|
+
["changedData", ["AdGroup[]", XSD::QName.new("https://adwords.google.com/api/adwords/v5", "changedData")]]
|
165
165
|
]
|
166
166
|
end
|
167
167
|
|
168
|
-
# {https://adwords.google.com/api/adwords/
|
168
|
+
# {https://adwords.google.com/api/adwords/v5}updateAdGroupListResponse
|
169
169
|
class UpdateAdGroupListResponse
|
170
170
|
@@schema_type = "updateAdGroupListResponse"
|
171
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
171
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
172
172
|
@@schema_qualified = "true"
|
173
173
|
@@schema_element = []
|
174
174
|
|
@@ -176,76 +176,108 @@ class UpdateAdGroupListResponse
|
|
176
176
|
end
|
177
177
|
end
|
178
178
|
|
179
|
-
# {https://adwords.google.com/api/adwords/
|
179
|
+
# {https://adwords.google.com/api/adwords/v5}getAdGroupStats
|
180
180
|
class GetAdGroupStats
|
181
181
|
@@schema_type = "getAdGroupStats"
|
182
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
182
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
183
183
|
@@schema_qualified = "true"
|
184
184
|
@@schema_element = [
|
185
185
|
["campaignId", "SOAP::SOAPInt"],
|
186
186
|
["adGroupIds", "SOAP::SOAPInt[]"],
|
187
|
-
["
|
188
|
-
["
|
187
|
+
["startDay", "SOAP::SOAPDate"],
|
188
|
+
["endDay", "SOAP::SOAPDate"],
|
189
|
+
["inPST", "SOAP::SOAPBoolean"]
|
189
190
|
]
|
190
191
|
|
191
192
|
attr_accessor :campaignId
|
192
193
|
attr_accessor :adGroupIds
|
193
|
-
attr_accessor :
|
194
|
+
attr_accessor :startDay
|
195
|
+
attr_accessor :endDay
|
196
|
+
attr_accessor :inPST
|
194
197
|
|
195
|
-
def
|
196
|
-
@v_end
|
197
|
-
end
|
198
|
-
|
199
|
-
def end=(value)
|
200
|
-
@v_end = value
|
201
|
-
end
|
202
|
-
|
203
|
-
def initialize(campaignId = nil, adGroupIds = [], start = nil, v_end = nil)
|
198
|
+
def initialize(campaignId = nil, adGroupIds = [], startDay = nil, endDay = nil, inPST = nil)
|
204
199
|
@campaignId = campaignId
|
205
200
|
@adGroupIds = adGroupIds
|
206
|
-
@
|
207
|
-
@
|
201
|
+
@startDay = startDay
|
202
|
+
@endDay = endDay
|
203
|
+
@inPST = inPST
|
208
204
|
end
|
209
205
|
end
|
210
206
|
|
211
|
-
# {https://adwords.google.com/api/adwords/
|
207
|
+
# {https://adwords.google.com/api/adwords/v5}getAdGroupStatsResponse
|
212
208
|
class GetAdGroupStatsResponse < ::Array
|
213
209
|
@@schema_element = [
|
214
|
-
["getAdGroupStatsReturn", ["StatsRecord[]", XSD::QName.new("https://adwords.google.com/api/adwords/
|
210
|
+
["getAdGroupStatsReturn", ["StatsRecord[]", XSD::QName.new("https://adwords.google.com/api/adwords/v5", "getAdGroupStatsReturn")]]
|
215
211
|
]
|
216
212
|
end
|
217
213
|
|
218
|
-
# {https://adwords.google.com/api/adwords/
|
214
|
+
# {https://adwords.google.com/api/adwords/v5}ApiException
|
219
215
|
class ApiException
|
220
216
|
@@schema_type = "ApiException"
|
221
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
217
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
222
218
|
@@schema_element = [
|
223
219
|
["code", "SOAP::SOAPInt"],
|
224
220
|
["internal", "SOAP::SOAPBoolean"],
|
225
221
|
["message", "SOAP::SOAPString"],
|
226
222
|
["trigger", "SOAP::SOAPString"],
|
227
|
-
["
|
223
|
+
["errors", "ApiError[]"]
|
228
224
|
]
|
229
225
|
|
230
226
|
attr_accessor :code
|
231
227
|
attr_accessor :internal
|
232
228
|
attr_accessor :message
|
233
229
|
attr_accessor :trigger
|
234
|
-
attr_accessor :
|
230
|
+
attr_accessor :errors
|
235
231
|
|
236
|
-
def initialize(code = nil, internal = nil, message = nil, trigger = nil,
|
232
|
+
def initialize(code = nil, internal = nil, message = nil, trigger = nil, errors = [])
|
237
233
|
@code = code
|
238
234
|
@internal = internal
|
239
235
|
@message = message
|
240
236
|
@trigger = trigger
|
241
|
-
@
|
237
|
+
@errors = errors
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
# {https://adwords.google.com/api/adwords/v5}ApiError
|
242
|
+
class ApiError
|
243
|
+
@@schema_type = "ApiError"
|
244
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
245
|
+
@@schema_element = [
|
246
|
+
["index", "SOAP::SOAPInt"],
|
247
|
+
["field", "SOAP::SOAPString"],
|
248
|
+
["textIndex", "SOAP::SOAPInt"],
|
249
|
+
["textLength", "SOAP::SOAPInt"],
|
250
|
+
["trigger", "SOAP::SOAPString"],
|
251
|
+
["code", "SOAP::SOAPInt"],
|
252
|
+
["isExemptable", "SOAP::SOAPBoolean"],
|
253
|
+
["detail", "SOAP::SOAPString"]
|
254
|
+
]
|
255
|
+
|
256
|
+
attr_accessor :index
|
257
|
+
attr_accessor :field
|
258
|
+
attr_accessor :textIndex
|
259
|
+
attr_accessor :textLength
|
260
|
+
attr_accessor :trigger
|
261
|
+
attr_accessor :code
|
262
|
+
attr_accessor :isExemptable
|
263
|
+
attr_accessor :detail
|
264
|
+
|
265
|
+
def initialize(index = nil, field = nil, textIndex = nil, textLength = nil, trigger = nil, code = nil, isExemptable = nil, detail = nil)
|
266
|
+
@index = index
|
267
|
+
@field = field
|
268
|
+
@textIndex = textIndex
|
269
|
+
@textLength = textLength
|
270
|
+
@trigger = trigger
|
271
|
+
@code = code
|
272
|
+
@isExemptable = isExemptable
|
273
|
+
@detail = detail
|
242
274
|
end
|
243
275
|
end
|
244
276
|
|
245
|
-
# {https://adwords.google.com/api/adwords/
|
277
|
+
# {https://adwords.google.com/api/adwords/v5}AdGroup
|
246
278
|
class AdGroup
|
247
279
|
@@schema_type = "AdGroup"
|
248
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
280
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
249
281
|
@@schema_element = [
|
250
282
|
["campaignId", "SOAP::SOAPInt"],
|
251
283
|
["id", "SOAP::SOAPInt"],
|
@@ -275,10 +307,10 @@ class AdGroup
|
|
275
307
|
end
|
276
308
|
end
|
277
309
|
|
278
|
-
# {https://adwords.google.com/api/adwords/
|
310
|
+
# {https://adwords.google.com/api/adwords/v5}StatsRecord
|
279
311
|
class StatsRecord
|
280
312
|
@@schema_type = "StatsRecord"
|
281
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
313
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
282
314
|
@@schema_element = [
|
283
315
|
["averagePosition", "SOAP::SOAPDouble"],
|
284
316
|
["clicks", "SOAP::SOAPLong"],
|
@@ -308,10 +340,10 @@ class StatsRecord
|
|
308
340
|
end
|
309
341
|
end
|
310
342
|
|
311
|
-
# {https://adwords.google.com/api/adwords/
|
343
|
+
# {https://adwords.google.com/api/adwords/v5}AdGroupStatus
|
312
344
|
class AdGroupStatus < ::String
|
313
345
|
@@schema_type = "AdGroupStatus"
|
314
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
346
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
315
347
|
|
316
348
|
Deleted = AdGroupStatus.new("Deleted")
|
317
349
|
Enabled = AdGroupStatus.new("Enabled")
|