bing_ads_ruby_sdk 0.0.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -1
  3. data/.rspec +3 -1
  4. data/Gemfile +0 -3
  5. data/LICENSE.txt +1 -1
  6. data/README.md +70 -9
  7. data/Rakefile +2 -0
  8. data/bin/setup +1 -3
  9. data/bing_ads_ruby_sdk.gemspec +17 -22
  10. data/changelog.md +19 -0
  11. data/lib/bing_ads_ruby_sdk.rb +32 -3
  12. data/lib/bing_ads_ruby_sdk/api.rb +81 -0
  13. data/lib/bing_ads_ruby_sdk/augmented_parser.rb +79 -0
  14. data/lib/bing_ads_ruby_sdk/configuration.rb +26 -0
  15. data/lib/bing_ads_ruby_sdk/errors/error_handler.rb +65 -0
  16. data/lib/bing_ads_ruby_sdk/errors/errors.rb +192 -0
  17. data/lib/bing_ads_ruby_sdk/header.rb +44 -0
  18. data/lib/bing_ads_ruby_sdk/http_client.rb +65 -0
  19. data/lib/bing_ads_ruby_sdk/log_message.rb +57 -0
  20. data/lib/bing_ads_ruby_sdk/oauth2/authorization_handler.rb +94 -0
  21. data/lib/bing_ads_ruby_sdk/oauth2/fs_store.rb +34 -0
  22. data/lib/bing_ads_ruby_sdk/postprocessors/cast_long_arrays.rb +35 -0
  23. data/lib/bing_ads_ruby_sdk/postprocessors/snakize.rb +35 -0
  24. data/lib/bing_ads_ruby_sdk/preprocessors/camelize.rb +45 -0
  25. data/lib/bing_ads_ruby_sdk/preprocessors/order.rb +58 -0
  26. data/lib/bing_ads_ruby_sdk/services/ad_insight.rb +10 -0
  27. data/lib/bing_ads_ruby_sdk/services/base.rb +83 -0
  28. data/lib/bing_ads_ruby_sdk/services/bulk.rb +26 -0
  29. data/lib/bing_ads_ruby_sdk/services/campaign_management.rb +116 -0
  30. data/lib/bing_ads_ruby_sdk/services/customer_billing.rb +10 -0
  31. data/lib/bing_ads_ruby_sdk/services/customer_management.rb +26 -0
  32. data/lib/bing_ads_ruby_sdk/services/reporting.rb +10 -0
  33. data/lib/bing_ads_ruby_sdk/soap_client.rb +143 -0
  34. data/lib/bing_ads_ruby_sdk/string_utils.rb +23 -0
  35. data/lib/bing_ads_ruby_sdk/version.rb +4 -1
  36. data/lib/bing_ads_ruby_sdk/wsdl/v12/production/ad_insight.xml +1 -0
  37. data/lib/bing_ads_ruby_sdk/wsdl/v12/production/bulk.xml +1 -0
  38. data/lib/bing_ads_ruby_sdk/wsdl/v12/production/campaign_management.xml +1 -0
  39. data/lib/bing_ads_ruby_sdk/wsdl/v12/production/customer_billing.xml +1 -0
  40. data/lib/bing_ads_ruby_sdk/wsdl/v12/production/customer_management.xml +1 -0
  41. data/lib/bing_ads_ruby_sdk/wsdl/v12/production/reporting.xml +1 -0
  42. data/lib/bing_ads_ruby_sdk/wsdl/v12/sandbox/ad_insight.xml +1 -0
  43. data/lib/bing_ads_ruby_sdk/wsdl/v12/sandbox/bulk.xml +1 -0
  44. data/lib/bing_ads_ruby_sdk/wsdl/v12/sandbox/campaign_management.xml +1 -0
  45. data/lib/bing_ads_ruby_sdk/wsdl/v12/sandbox/customer_billing.xml +1 -0
  46. data/lib/bing_ads_ruby_sdk/wsdl/v12/sandbox/customer_management.xml +1 -0
  47. data/lib/bing_ads_ruby_sdk/wsdl/v12/sandbox/reporting.xml +1 -0
  48. data/lib/bing_ads_ruby_sdk/wsdl/v12/test/ad_insight.xml +3065 -0
  49. data/lib/bing_ads_ruby_sdk/wsdl/v12/test/bulk.xml +1424 -0
  50. data/lib/bing_ads_ruby_sdk/wsdl/v12/test/campaign_management.xml +9949 -0
  51. data/lib/bing_ads_ruby_sdk/wsdl/v12/test/customer_billing.xml +899 -0
  52. data/lib/bing_ads_ruby_sdk/wsdl/v12/test/customer_management.xml +3966 -0
  53. data/lib/bing_ads_ruby_sdk/wsdl/v12/test/reporting.xml +3742 -0
  54. data/lib/bing_ads_ruby_sdk/wsdl/wsdl_source.txt +25 -0
  55. data/lib/bing_ads_ruby_sdk/wsdl_operation_wrapper.rb +39 -0
  56. data/tasks/bing_ads_ruby_sdk.rake +28 -0
  57. metadata +137 -38
@@ -0,0 +1,899 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <wsdl:definitions name="CustomerBillingService" targetNamespace="https://bingads.microsoft.com/Billing/v12" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="https://bingads.microsoft.com/Billing/v12" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3
+ <wsp:Policy wsu:Id="BasicHttpBinding_ICustomerBillingService_policy">
4
+ <wsp:ExactlyOne>
5
+ <wsp:All>
6
+ <sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
7
+ <wsp:Policy>
8
+ <sp:TransportToken>
9
+ <wsp:Policy>
10
+ <sp:HttpsToken RequireClientCertificate="false"/>
11
+ </wsp:Policy>
12
+ </sp:TransportToken>
13
+ <sp:AlgorithmSuite>
14
+ <wsp:Policy>
15
+ <sp:Basic256/>
16
+ </wsp:Policy>
17
+ </sp:AlgorithmSuite>
18
+ <sp:Layout>
19
+ <wsp:Policy>
20
+ <sp:Strict/>
21
+ </wsp:Policy>
22
+ </sp:Layout>
23
+ </wsp:Policy>
24
+ </sp:TransportBinding>
25
+ </wsp:All>
26
+ </wsp:ExactlyOne>
27
+ </wsp:Policy>
28
+ <wsdl:types>
29
+ <xs:schema elementFormDefault="qualified" targetNamespace="https://bingads.microsoft.com/Billing/v12" xmlns:xs="http://www.w3.org/2001/XMLSchema">
30
+ <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
31
+ <xs:import namespace="https://bingads.microsoft.com/Customer/v12/Entities"/>
32
+ <xs:import namespace="https://bingads.microsoft.com/Customer/v12/Exception"/>
33
+ <xs:element name="GetBillingDocumentsInfoRequest">
34
+ <xs:complexType>
35
+ <xs:sequence>
36
+ <xs:element minOccurs="0" name="AccountIds" nillable="true" type="q1:ArrayOflong" xmlns:q1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
37
+ <xs:element minOccurs="0" name="StartDate" type="xs:dateTime"/>
38
+ <xs:element minOccurs="0" name="EndDate" nillable="true" type="xs:dateTime"/>
39
+ </xs:sequence>
40
+ </xs:complexType>
41
+ </xs:element>
42
+ <xs:element name="ApplicationToken" nillable="true" type="xs:string"/>
43
+ <xs:element name="AuthenticationToken" nillable="true" type="xs:string"/>
44
+ <xs:element name="DeveloperToken" nillable="true" type="xs:string"/>
45
+ <xs:element name="Password" nillable="true" type="xs:string"/>
46
+ <xs:element name="UserName" nillable="true" type="xs:string"/>
47
+ <xs:element name="GetBillingDocumentsInfoResponse">
48
+ <xs:complexType>
49
+ <xs:sequence>
50
+ <xs:element minOccurs="0" name="BillingDocumentsInfo" nillable="true" type="q2:ArrayOfBillingDocumentInfo" xmlns:q2="https://bingads.microsoft.com/Customer/v12/Entities"/>
51
+ </xs:sequence>
52
+ </xs:complexType>
53
+ </xs:element>
54
+ <xs:element name="TrackingId" nillable="true" type="xs:string"/>
55
+ <xs:element name="ApiBatchFault" nillable="true" type="q3:ApiBatchFault" xmlns:q3="https://bingads.microsoft.com/Customer/v12/Exception"/>
56
+ <xs:element name="ApiFault" nillable="true" type="q4:ApiFault" xmlns:q4="https://bingads.microsoft.com/Customer/v12/Exception"/>
57
+ <xs:element name="GetBillingDocumentsRequest">
58
+ <xs:complexType>
59
+ <xs:sequence>
60
+ <xs:element minOccurs="0" name="BillingDocumentsInfo" nillable="true" type="q5:ArrayOfBillingDocumentInfo" xmlns:q5="https://bingads.microsoft.com/Customer/v12/Entities"/>
61
+ <xs:element minOccurs="0" name="Type" type="q6:DataType" xmlns:q6="https://bingads.microsoft.com/Customer/v12/Entities"/>
62
+ </xs:sequence>
63
+ </xs:complexType>
64
+ </xs:element>
65
+ <xs:element name="GetBillingDocumentsResponse">
66
+ <xs:complexType>
67
+ <xs:sequence>
68
+ <xs:element minOccurs="0" name="BillingDocuments" nillable="true" type="q7:ArrayOfBillingDocument" xmlns:q7="https://bingads.microsoft.com/Customer/v12/Entities"/>
69
+ </xs:sequence>
70
+ </xs:complexType>
71
+ </xs:element>
72
+ <xs:element name="AddInsertionOrderRequest">
73
+ <xs:complexType>
74
+ <xs:sequence>
75
+ <xs:element minOccurs="0" name="InsertionOrder" nillable="true" type="q8:InsertionOrder" xmlns:q8="https://bingads.microsoft.com/Customer/v12/Entities"/>
76
+ </xs:sequence>
77
+ </xs:complexType>
78
+ </xs:element>
79
+ <xs:element name="AddInsertionOrderResponse">
80
+ <xs:complexType>
81
+ <xs:sequence>
82
+ <xs:element minOccurs="0" name="InsertionOrderId" type="xs:long"/>
83
+ <xs:element minOccurs="0" name="CreateTime" type="xs:dateTime"/>
84
+ </xs:sequence>
85
+ </xs:complexType>
86
+ </xs:element>
87
+ <xs:element name="UpdateInsertionOrderRequest">
88
+ <xs:complexType>
89
+ <xs:sequence>
90
+ <xs:element minOccurs="0" name="InsertionOrder" nillable="true" type="q9:InsertionOrder" xmlns:q9="https://bingads.microsoft.com/Customer/v12/Entities"/>
91
+ </xs:sequence>
92
+ </xs:complexType>
93
+ </xs:element>
94
+ <xs:element name="UpdateInsertionOrderResponse">
95
+ <xs:complexType>
96
+ <xs:sequence>
97
+ <xs:element minOccurs="0" name="LastModifiedTime" type="xs:dateTime"/>
98
+ </xs:sequence>
99
+ </xs:complexType>
100
+ </xs:element>
101
+ <xs:element name="GetInsertionOrdersByAccountRequest">
102
+ <xs:complexType>
103
+ <xs:sequence>
104
+ <xs:element minOccurs="0" name="AccountId" type="xs:long"/>
105
+ <xs:element minOccurs="0" name="InsertionOrderIds" nillable="true" type="q10:ArrayOflong" xmlns:q10="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
106
+ </xs:sequence>
107
+ </xs:complexType>
108
+ </xs:element>
109
+ <xs:element name="GetInsertionOrdersByAccountResponse">
110
+ <xs:complexType>
111
+ <xs:sequence>
112
+ <xs:element minOccurs="0" name="InsertionOrders" nillable="true" type="q11:ArrayOfInsertionOrder" xmlns:q11="https://bingads.microsoft.com/Customer/v12/Entities"/>
113
+ </xs:sequence>
114
+ </xs:complexType>
115
+ </xs:element>
116
+ <xs:element name="SearchInsertionOrdersRequest">
117
+ <xs:complexType>
118
+ <xs:sequence>
119
+ <xs:element minOccurs="0" name="Predicates" nillable="true" type="q12:ArrayOfPredicate" xmlns:q12="https://bingads.microsoft.com/Customer/v12/Entities"/>
120
+ <xs:element minOccurs="0" name="Ordering" nillable="true" type="q13:ArrayOfOrderBy" xmlns:q13="https://bingads.microsoft.com/Customer/v12/Entities"/>
121
+ <xs:element minOccurs="0" name="PageInfo" nillable="true" type="q14:Paging" xmlns:q14="https://bingads.microsoft.com/Customer/v12/Entities"/>
122
+ </xs:sequence>
123
+ </xs:complexType>
124
+ </xs:element>
125
+ <xs:element name="SearchInsertionOrdersResponse">
126
+ <xs:complexType>
127
+ <xs:sequence>
128
+ <xs:element minOccurs="0" name="InsertionOrders" nillable="true" type="q15:ArrayOfInsertionOrder" xmlns:q15="https://bingads.microsoft.com/Customer/v12/Entities"/>
129
+ </xs:sequence>
130
+ </xs:complexType>
131
+ </xs:element>
132
+ <xs:element name="GetAccountMonthlySpendRequest">
133
+ <xs:complexType>
134
+ <xs:sequence>
135
+ <xs:element minOccurs="0" name="AccountId" type="xs:long"/>
136
+ <xs:element minOccurs="0" name="MonthYear" type="xs:dateTime"/>
137
+ </xs:sequence>
138
+ </xs:complexType>
139
+ </xs:element>
140
+ <xs:element name="GetAccountMonthlySpendResponse">
141
+ <xs:complexType>
142
+ <xs:sequence>
143
+ <xs:element minOccurs="0" name="Amount" type="xs:double"/>
144
+ </xs:sequence>
145
+ </xs:complexType>
146
+ </xs:element>
147
+ </xs:schema>
148
+ <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
149
+ <xs:element name="anyType" nillable="true" type="xs:anyType"/>
150
+ <xs:element name="anyURI" nillable="true" type="xs:anyURI"/>
151
+ <xs:element name="base64Binary" nillable="true" type="xs:base64Binary"/>
152
+ <xs:element name="boolean" nillable="true" type="xs:boolean"/>
153
+ <xs:element name="byte" nillable="true" type="xs:byte"/>
154
+ <xs:element name="dateTime" nillable="true" type="xs:dateTime"/>
155
+ <xs:element name="decimal" nillable="true" type="xs:decimal"/>
156
+ <xs:element name="double" nillable="true" type="xs:double"/>
157
+ <xs:element name="float" nillable="true" type="xs:float"/>
158
+ <xs:element name="int" nillable="true" type="xs:int"/>
159
+ <xs:element name="long" nillable="true" type="xs:long"/>
160
+ <xs:element name="QName" nillable="true" type="xs:QName"/>
161
+ <xs:element name="short" nillable="true" type="xs:short"/>
162
+ <xs:element name="string" nillable="true" type="xs:string"/>
163
+ <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte"/>
164
+ <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt"/>
165
+ <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong"/>
166
+ <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort"/>
167
+ <xs:element name="char" nillable="true" type="tns:char"/>
168
+ <xs:simpleType name="char">
169
+ <xs:restriction base="xs:int"/>
170
+ </xs:simpleType>
171
+ <xs:element name="duration" nillable="true" type="tns:duration"/>
172
+ <xs:simpleType name="duration">
173
+ <xs:restriction base="xs:duration">
174
+ <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?"/>
175
+ <xs:minInclusive value="-P10675199DT2H48M5.4775808S"/>
176
+ <xs:maxInclusive value="P10675199DT2H48M5.4775807S"/>
177
+ </xs:restriction>
178
+ </xs:simpleType>
179
+ <xs:element name="guid" nillable="true" type="tns:guid"/>
180
+ <xs:simpleType name="guid">
181
+ <xs:restriction base="xs:string">
182
+ <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}"/>
183
+ </xs:restriction>
184
+ </xs:simpleType>
185
+ <xs:attribute name="FactoryType" type="xs:QName"/>
186
+ <xs:attribute name="Id" type="xs:ID"/>
187
+ <xs:attribute name="Ref" type="xs:IDREF"/>
188
+ </xs:schema>
189
+ <xs:schema elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:xs="http://www.w3.org/2001/XMLSchema">
190
+ <xs:complexType name="ArrayOflong">
191
+ <xs:sequence>
192
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="long" type="xs:long"/>
193
+ </xs:sequence>
194
+ </xs:complexType>
195
+ <xs:element name="ArrayOflong" nillable="true" type="tns:ArrayOflong"/>
196
+ </xs:schema>
197
+ <xs:schema elementFormDefault="qualified" targetNamespace="https://bingads.microsoft.com/Customer/v12/Entities" xmlns:tns="https://bingads.microsoft.com/Customer/v12/Entities" xmlns:xs="http://www.w3.org/2001/XMLSchema">
198
+ <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
199
+ <xs:complexType name="ArrayOfBillingDocumentInfo">
200
+ <xs:sequence>
201
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="BillingDocumentInfo" nillable="true" type="tns:BillingDocumentInfo"/>
202
+ </xs:sequence>
203
+ </xs:complexType>
204
+ <xs:element name="ArrayOfBillingDocumentInfo" nillable="true" type="tns:ArrayOfBillingDocumentInfo"/>
205
+ <xs:complexType name="BillingDocumentInfo">
206
+ <xs:sequence>
207
+ <xs:element minOccurs="0" name="AccountId" type="xs:long"/>
208
+ <xs:element minOccurs="0" name="AccountName" nillable="true" type="xs:string"/>
209
+ <xs:element minOccurs="0" name="AccountNumber" nillable="true" type="xs:string"/>
210
+ <xs:element minOccurs="0" name="Amount" type="xs:double"/>
211
+ <xs:element minOccurs="0" name="CurrencyCode" nillable="true" type="xs:string"/>
212
+ <xs:element minOccurs="0" name="DocumentDate" nillable="true" type="xs:dateTime"/>
213
+ <xs:element minOccurs="0" name="DocumentId" nillable="true" type="xs:long"/>
214
+ <xs:element minOccurs="0" name="CustomerId" nillable="true" type="xs:int"/>
215
+ </xs:sequence>
216
+ </xs:complexType>
217
+ <xs:element name="BillingDocumentInfo" nillable="true" type="tns:BillingDocumentInfo"/>
218
+ <xs:simpleType name="DataType">
219
+ <xs:restriction base="xs:string">
220
+ <xs:enumeration value="Xml">
221
+ <xs:annotation>
222
+ <xs:appinfo>
223
+ <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</EnumerationValue>
224
+ </xs:appinfo>
225
+ </xs:annotation>
226
+ </xs:enumeration>
227
+ <xs:enumeration value="Pdf">
228
+ <xs:annotation>
229
+ <xs:appinfo>
230
+ <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2</EnumerationValue>
231
+ </xs:appinfo>
232
+ </xs:annotation>
233
+ </xs:enumeration>
234
+ </xs:restriction>
235
+ </xs:simpleType>
236
+ <xs:element name="DataType" nillable="true" type="tns:DataType"/>
237
+ <xs:complexType name="ArrayOfBillingDocument">
238
+ <xs:sequence>
239
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="BillingDocument" nillable="true" type="tns:BillingDocument"/>
240
+ </xs:sequence>
241
+ </xs:complexType>
242
+ <xs:element name="ArrayOfBillingDocument" nillable="true" type="tns:ArrayOfBillingDocument"/>
243
+ <xs:complexType name="BillingDocument">
244
+ <xs:sequence>
245
+ <xs:element minOccurs="0" name="Data" nillable="true" type="xs:base64Binary"/>
246
+ <xs:element minOccurs="0" name="Id" type="xs:long"/>
247
+ <xs:element minOccurs="0" name="Type" type="tns:DataType"/>
248
+ </xs:sequence>
249
+ </xs:complexType>
250
+ <xs:element name="BillingDocument" nillable="true" type="tns:BillingDocument"/>
251
+ <xs:complexType name="InsertionOrder">
252
+ <xs:sequence>
253
+ <xs:element minOccurs="0" name="AccountId" type="xs:long"/>
254
+ <xs:element minOccurs="0" name="BalanceAmount" nillable="true" type="xs:double"/>
255
+ <xs:element minOccurs="0" name="BookingCountryCode" nillable="true" type="xs:string"/>
256
+ <xs:element minOccurs="0" name="Comment" nillable="true" type="xs:string"/>
257
+ <xs:element minOccurs="0" name="EndDate" nillable="true" type="xs:dateTime"/>
258
+ <xs:element minOccurs="0" name="Id" nillable="true" type="xs:long"/>
259
+ <xs:element minOccurs="0" name="LastModifiedByUserId" nillable="true" type="xs:long"/>
260
+ <xs:element minOccurs="0" name="LastModifiedTime" nillable="true" type="xs:dateTime"/>
261
+ <xs:element minOccurs="0" name="NotificationThreshold" nillable="true" type="xs:double"/>
262
+ <xs:element minOccurs="0" name="ReferenceId" nillable="true" type="xs:long"/>
263
+ <xs:element minOccurs="0" name="SpendCapAmount" nillable="true" type="xs:double"/>
264
+ <xs:element minOccurs="0" name="StartDate" nillable="true" type="xs:dateTime"/>
265
+ <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string"/>
266
+ <xs:element minOccurs="0" name="Status" nillable="true" type="tns:InsertionOrderStatus"/>
267
+ <xs:element minOccurs="0" name="PurchaseOrder" nillable="true" type="xs:string"/>
268
+ <xs:element minOccurs="0" name="PendingChanges" nillable="true" type="tns:InsertionOrderPendingChanges"/>
269
+ </xs:sequence>
270
+ </xs:complexType>
271
+ <xs:element name="InsertionOrder" nillable="true" type="tns:InsertionOrder"/>
272
+ <xs:simpleType name="InsertionOrderStatus">
273
+ <xs:restriction base="xs:string">
274
+ <xs:enumeration value="PendingUserReview">
275
+ <xs:annotation>
276
+ <xs:appinfo>
277
+ <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</EnumerationValue>
278
+ </xs:appinfo>
279
+ </xs:annotation>
280
+ </xs:enumeration>
281
+ <xs:enumeration value="Active">
282
+ <xs:annotation>
283
+ <xs:appinfo>
284
+ <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2</EnumerationValue>
285
+ </xs:appinfo>
286
+ </xs:annotation>
287
+ </xs:enumeration>
288
+ <xs:enumeration value="Declined">
289
+ <xs:annotation>
290
+ <xs:appinfo>
291
+ <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">3</EnumerationValue>
292
+ </xs:appinfo>
293
+ </xs:annotation>
294
+ </xs:enumeration>
295
+ <xs:enumeration value="Expired">
296
+ <xs:annotation>
297
+ <xs:appinfo>
298
+ <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">4</EnumerationValue>
299
+ </xs:appinfo>
300
+ </xs:annotation>
301
+ </xs:enumeration>
302
+ <xs:enumeration value="Canceled">
303
+ <xs:annotation>
304
+ <xs:appinfo>
305
+ <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">5</EnumerationValue>
306
+ </xs:appinfo>
307
+ </xs:annotation>
308
+ </xs:enumeration>
309
+ <xs:enumeration value="NotStarted">
310
+ <xs:annotation>
311
+ <xs:appinfo>
312
+ <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">6</EnumerationValue>
313
+ </xs:appinfo>
314
+ </xs:annotation>
315
+ </xs:enumeration>
316
+ <xs:enumeration value="Exhausted">
317
+ <xs:annotation>
318
+ <xs:appinfo>
319
+ <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">7</EnumerationValue>
320
+ </xs:appinfo>
321
+ </xs:annotation>
322
+ </xs:enumeration>
323
+ </xs:restriction>
324
+ </xs:simpleType>
325
+ <xs:element name="InsertionOrderStatus" nillable="true" type="tns:InsertionOrderStatus"/>
326
+ <xs:complexType name="InsertionOrderPendingChanges">
327
+ <xs:sequence>
328
+ <xs:element minOccurs="0" name="Comment" nillable="true" type="xs:string"/>
329
+ <xs:element minOccurs="0" name="EndDate" nillable="true" type="xs:dateTime"/>
330
+ <xs:element minOccurs="0" name="RequestedByUserId" nillable="true" type="xs:int"/>
331
+ <xs:element minOccurs="0" name="ModifiedDateTime" nillable="true" type="xs:dateTime"/>
332
+ <xs:element minOccurs="0" name="NotificationThreshold" nillable="true" type="xs:double"/>
333
+ <xs:element minOccurs="0" name="ReferenceId" nillable="true" type="xs:long"/>
334
+ <xs:element minOccurs="0" name="SpendCapAmount" nillable="true" type="xs:double"/>
335
+ <xs:element minOccurs="0" name="StartDate" nillable="true" type="xs:dateTime"/>
336
+ <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string"/>
337
+ <xs:element minOccurs="0" name="PurchaseOrder" nillable="true" type="xs:string"/>
338
+ <xs:element minOccurs="0" name="ChangeStatus" nillable="true" type="tns:InsertionOrderPendingChangesStatus"/>
339
+ </xs:sequence>
340
+ </xs:complexType>
341
+ <xs:element name="InsertionOrderPendingChanges" nillable="true" type="tns:InsertionOrderPendingChanges"/>
342
+ <xs:simpleType name="InsertionOrderPendingChangesStatus">
343
+ <xs:restriction base="xs:string">
344
+ <xs:enumeration value="PendingUserReview">
345
+ <xs:annotation>
346
+ <xs:appinfo>
347
+ <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</EnumerationValue>
348
+ </xs:appinfo>
349
+ </xs:annotation>
350
+ </xs:enumeration>
351
+ <xs:enumeration value="ApproveChanges">
352
+ <xs:annotation>
353
+ <xs:appinfo>
354
+ <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2</EnumerationValue>
355
+ </xs:appinfo>
356
+ </xs:annotation>
357
+ </xs:enumeration>
358
+ <xs:enumeration value="DeclineChanges">
359
+ <xs:annotation>
360
+ <xs:appinfo>
361
+ <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">3</EnumerationValue>
362
+ </xs:appinfo>
363
+ </xs:annotation>
364
+ </xs:enumeration>
365
+ <xs:enumeration value="CancelChanges">
366
+ <xs:annotation>
367
+ <xs:appinfo>
368
+ <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">4</EnumerationValue>
369
+ </xs:appinfo>
370
+ </xs:annotation>
371
+ </xs:enumeration>
372
+ </xs:restriction>
373
+ </xs:simpleType>
374
+ <xs:element name="InsertionOrderPendingChangesStatus" nillable="true" type="tns:InsertionOrderPendingChangesStatus"/>
375
+ <xs:complexType name="ArrayOfInsertionOrder">
376
+ <xs:sequence>
377
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="InsertionOrder" nillable="true" type="tns:InsertionOrder"/>
378
+ </xs:sequence>
379
+ </xs:complexType>
380
+ <xs:element name="ArrayOfInsertionOrder" nillable="true" type="tns:ArrayOfInsertionOrder"/>
381
+ <xs:complexType name="ArrayOfPredicate">
382
+ <xs:sequence>
383
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="Predicate" nillable="true" type="tns:Predicate"/>
384
+ </xs:sequence>
385
+ </xs:complexType>
386
+ <xs:element name="ArrayOfPredicate" nillable="true" type="tns:ArrayOfPredicate"/>
387
+ <xs:complexType name="Predicate">
388
+ <xs:sequence>
389
+ <xs:element minOccurs="0" name="Field" nillable="true" type="xs:string"/>
390
+ <xs:element minOccurs="0" name="Operator" type="tns:PredicateOperator"/>
391
+ <xs:element minOccurs="0" name="Value" nillable="true" type="xs:string"/>
392
+ </xs:sequence>
393
+ </xs:complexType>
394
+ <xs:element name="Predicate" nillable="true" type="tns:Predicate"/>
395
+ <xs:simpleType name="PredicateOperator">
396
+ <xs:restriction base="xs:string">
397
+ <xs:enumeration value="Equals"/>
398
+ <xs:enumeration value="NotEquals"/>
399
+ <xs:enumeration value="Contains"/>
400
+ <xs:enumeration value="In"/>
401
+ <xs:enumeration value="GreaterThanEquals"/>
402
+ <xs:enumeration value="LessThanEquals"/>
403
+ <xs:enumeration value="StartsWith"/>
404
+ <xs:enumeration value="NotContains"/>
405
+ </xs:restriction>
406
+ </xs:simpleType>
407
+ <xs:element name="PredicateOperator" nillable="true" type="tns:PredicateOperator"/>
408
+ <xs:complexType name="ArrayOfOrderBy">
409
+ <xs:sequence>
410
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="OrderBy" nillable="true" type="tns:OrderBy"/>
411
+ </xs:sequence>
412
+ </xs:complexType>
413
+ <xs:element name="ArrayOfOrderBy" nillable="true" type="tns:ArrayOfOrderBy"/>
414
+ <xs:complexType name="OrderBy">
415
+ <xs:sequence>
416
+ <xs:element minOccurs="0" name="Field" type="tns:OrderByField"/>
417
+ <xs:element minOccurs="0" name="Order" type="tns:SortOrder"/>
418
+ </xs:sequence>
419
+ </xs:complexType>
420
+ <xs:element name="OrderBy" nillable="true" type="tns:OrderBy"/>
421
+ <xs:simpleType name="OrderByField">
422
+ <xs:restriction base="xs:string">
423
+ <xs:enumeration value="Id"/>
424
+ <xs:enumeration value="Name"/>
425
+ <xs:enumeration value="Number"/>
426
+ <xs:enumeration value="LifeCycleStatus"/>
427
+ </xs:restriction>
428
+ </xs:simpleType>
429
+ <xs:element name="OrderByField" nillable="true" type="tns:OrderByField"/>
430
+ <xs:simpleType name="SortOrder">
431
+ <xs:restriction base="xs:string">
432
+ <xs:enumeration value="Ascending"/>
433
+ <xs:enumeration value="Descending"/>
434
+ </xs:restriction>
435
+ </xs:simpleType>
436
+ <xs:element name="SortOrder" nillable="true" type="tns:SortOrder"/>
437
+ <xs:complexType name="Paging">
438
+ <xs:sequence>
439
+ <xs:element minOccurs="0" name="Index" type="xs:int"/>
440
+ <xs:element minOccurs="0" name="Size" type="xs:int"/>
441
+ </xs:sequence>
442
+ </xs:complexType>
443
+ <xs:element name="Paging" nillable="true" type="tns:Paging"/>
444
+ </xs:schema>
445
+ <xs:schema elementFormDefault="qualified" targetNamespace="https://adapi.microsoft.com" xmlns:tns="https://adapi.microsoft.com" xmlns:xs="http://www.w3.org/2001/XMLSchema">
446
+ <xs:complexType name="AdApiFaultDetail">
447
+ <xs:complexContent mixed="false">
448
+ <xs:extension base="tns:ApplicationFault">
449
+ <xs:sequence>
450
+ <xs:element minOccurs="0" name="Errors" nillable="true" type="tns:ArrayOfAdApiError"/>
451
+ </xs:sequence>
452
+ </xs:extension>
453
+ </xs:complexContent>
454
+ </xs:complexType>
455
+ <xs:element name="AdApiFaultDetail" nillable="true" type="tns:AdApiFaultDetail"/>
456
+ <xs:complexType name="ApplicationFault">
457
+ <xs:sequence>
458
+ <xs:element minOccurs="0" name="TrackingId" nillable="true" type="xs:string"/>
459
+ </xs:sequence>
460
+ </xs:complexType>
461
+ <xs:element name="ApplicationFault" nillable="true" type="tns:ApplicationFault"/>
462
+ <xs:complexType name="ArrayOfAdApiError">
463
+ <xs:sequence>
464
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="AdApiError" nillable="true" type="tns:AdApiError"/>
465
+ </xs:sequence>
466
+ </xs:complexType>
467
+ <xs:element name="ArrayOfAdApiError" nillable="true" type="tns:ArrayOfAdApiError"/>
468
+ <xs:complexType name="AdApiError">
469
+ <xs:sequence>
470
+ <xs:element minOccurs="0" name="Code" type="xs:int"/>
471
+ <xs:element minOccurs="0" name="Detail" nillable="true" type="xs:string"/>
472
+ <xs:element minOccurs="0" name="ErrorCode" nillable="true" type="xs:string"/>
473
+ <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string"/>
474
+ </xs:sequence>
475
+ </xs:complexType>
476
+ <xs:element name="AdApiError" nillable="true" type="tns:AdApiError"/>
477
+ </xs:schema>
478
+ <xs:schema elementFormDefault="qualified" targetNamespace="https://bingads.microsoft.com/Customer/v12/Exception" xmlns:tns="https://bingads.microsoft.com/Customer/v12/Exception" xmlns:xs="http://www.w3.org/2001/XMLSchema">
479
+ <xs:import namespace="https://adapi.microsoft.com"/>
480
+ <xs:complexType name="ApiBatchFault">
481
+ <xs:complexContent mixed="false">
482
+ <xs:extension base="tns:ApiFault">
483
+ <xs:sequence>
484
+ <xs:element minOccurs="0" name="BatchErrors" nillable="true" type="tns:ArrayOfBatchError"/>
485
+ </xs:sequence>
486
+ </xs:extension>
487
+ </xs:complexContent>
488
+ </xs:complexType>
489
+ <xs:element name="ApiBatchFault" nillable="true" type="tns:ApiBatchFault"/>
490
+ <xs:complexType name="ApiFault">
491
+ <xs:complexContent mixed="false">
492
+ <xs:extension base="q1:ApplicationFault" xmlns:q1="https://adapi.microsoft.com">
493
+ <xs:sequence>
494
+ <xs:element minOccurs="0" name="OperationErrors" nillable="true" type="tns:ArrayOfOperationError"/>
495
+ </xs:sequence>
496
+ </xs:extension>
497
+ </xs:complexContent>
498
+ </xs:complexType>
499
+ <xs:element name="ApiFault" nillable="true" type="tns:ApiFault"/>
500
+ <xs:complexType name="ArrayOfOperationError">
501
+ <xs:sequence>
502
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="OperationError" nillable="true" type="tns:OperationError"/>
503
+ </xs:sequence>
504
+ </xs:complexType>
505
+ <xs:element name="ArrayOfOperationError" nillable="true" type="tns:ArrayOfOperationError"/>
506
+ <xs:complexType name="OperationError">
507
+ <xs:sequence>
508
+ <xs:element minOccurs="0" name="Code" type="xs:int"/>
509
+ <xs:element minOccurs="0" name="Details" nillable="true" type="xs:string"/>
510
+ <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string"/>
511
+ </xs:sequence>
512
+ </xs:complexType>
513
+ <xs:element name="OperationError" nillable="true" type="tns:OperationError"/>
514
+ <xs:complexType name="ArrayOfBatchError">
515
+ <xs:sequence>
516
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="BatchError" nillable="true" type="tns:BatchError"/>
517
+ </xs:sequence>
518
+ </xs:complexType>
519
+ <xs:element name="ArrayOfBatchError" nillable="true" type="tns:ArrayOfBatchError"/>
520
+ <xs:complexType name="BatchError">
521
+ <xs:sequence>
522
+ <xs:element minOccurs="0" name="Code" type="xs:int"/>
523
+ <xs:element minOccurs="0" name="Details" nillable="true" type="xs:string"/>
524
+ <xs:element minOccurs="0" name="Index" type="xs:int"/>
525
+ <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string"/>
526
+ </xs:sequence>
527
+ </xs:complexType>
528
+ <xs:element name="BatchError" nillable="true" type="tns:BatchError"/>
529
+ </xs:schema>
530
+ </wsdl:types>
531
+ <wsdl:message name="GetBillingDocumentsInfoRequest">
532
+ <wsdl:part element="tns:GetBillingDocumentsInfoRequest" name="parameters"/>
533
+ </wsdl:message>
534
+ <wsdl:message name="GetBillingDocumentsInfoRequest_Headers">
535
+ <wsdl:part element="tns:ApplicationToken" name="ApplicationToken"/>
536
+ <wsdl:part element="tns:AuthenticationToken" name="AuthenticationToken"/>
537
+ <wsdl:part element="tns:DeveloperToken" name="DeveloperToken"/>
538
+ <wsdl:part element="tns:Password" name="Password"/>
539
+ <wsdl:part element="tns:UserName" name="UserName"/>
540
+ </wsdl:message>
541
+ <wsdl:message name="GetBillingDocumentsInfoResponse">
542
+ <wsdl:part element="tns:GetBillingDocumentsInfoResponse" name="parameters"/>
543
+ </wsdl:message>
544
+ <wsdl:message name="GetBillingDocumentsInfoResponse_Headers">
545
+ <wsdl:part element="tns:TrackingId" name="TrackingId"/>
546
+ </wsdl:message>
547
+ <wsdl:message name="ICustomerBillingService_GetBillingDocumentsInfo_AdApiFaultDetailFault_FaultMessage">
548
+ <wsdl:part element="q1:AdApiFaultDetail" name="detail" xmlns:q1="https://adapi.microsoft.com"/>
549
+ </wsdl:message>
550
+ <wsdl:message name="ICustomerBillingService_GetBillingDocumentsInfo_ApiBatchFault_FaultMessage">
551
+ <wsdl:part element="tns:ApiBatchFault" name="detail"/>
552
+ </wsdl:message>
553
+ <wsdl:message name="ICustomerBillingService_GetBillingDocumentsInfo_ApiFault_FaultMessage">
554
+ <wsdl:part element="tns:ApiFault" name="detail"/>
555
+ </wsdl:message>
556
+ <wsdl:message name="GetBillingDocumentsRequest">
557
+ <wsdl:part element="tns:GetBillingDocumentsRequest" name="parameters"/>
558
+ </wsdl:message>
559
+ <wsdl:message name="GetBillingDocumentsRequest_Headers">
560
+ <wsdl:part element="tns:ApplicationToken" name="ApplicationToken"/>
561
+ <wsdl:part element="tns:AuthenticationToken" name="AuthenticationToken"/>
562
+ <wsdl:part element="tns:DeveloperToken" name="DeveloperToken"/>
563
+ <wsdl:part element="tns:Password" name="Password"/>
564
+ <wsdl:part element="tns:UserName" name="UserName"/>
565
+ </wsdl:message>
566
+ <wsdl:message name="GetBillingDocumentsResponse">
567
+ <wsdl:part element="tns:GetBillingDocumentsResponse" name="parameters"/>
568
+ </wsdl:message>
569
+ <wsdl:message name="GetBillingDocumentsResponse_Headers">
570
+ <wsdl:part element="tns:TrackingId" name="TrackingId"/>
571
+ </wsdl:message>
572
+ <wsdl:message name="ICustomerBillingService_GetBillingDocuments_AdApiFaultDetailFault_FaultMessage">
573
+ <wsdl:part element="q2:AdApiFaultDetail" name="detail" xmlns:q2="https://adapi.microsoft.com"/>
574
+ </wsdl:message>
575
+ <wsdl:message name="ICustomerBillingService_GetBillingDocuments_ApiBatchFault_FaultMessage">
576
+ <wsdl:part element="tns:ApiBatchFault" name="detail"/>
577
+ </wsdl:message>
578
+ <wsdl:message name="ICustomerBillingService_GetBillingDocuments_ApiFault_FaultMessage">
579
+ <wsdl:part element="tns:ApiFault" name="detail"/>
580
+ </wsdl:message>
581
+ <wsdl:message name="AddInsertionOrderRequest">
582
+ <wsdl:part element="tns:AddInsertionOrderRequest" name="parameters"/>
583
+ </wsdl:message>
584
+ <wsdl:message name="AddInsertionOrderRequest_Headers">
585
+ <wsdl:part element="tns:ApplicationToken" name="ApplicationToken"/>
586
+ <wsdl:part element="tns:AuthenticationToken" name="AuthenticationToken"/>
587
+ <wsdl:part element="tns:DeveloperToken" name="DeveloperToken"/>
588
+ <wsdl:part element="tns:Password" name="Password"/>
589
+ <wsdl:part element="tns:UserName" name="UserName"/>
590
+ </wsdl:message>
591
+ <wsdl:message name="AddInsertionOrderResponse">
592
+ <wsdl:part element="tns:AddInsertionOrderResponse" name="parameters"/>
593
+ </wsdl:message>
594
+ <wsdl:message name="AddInsertionOrderResponse_Headers">
595
+ <wsdl:part element="tns:TrackingId" name="TrackingId"/>
596
+ </wsdl:message>
597
+ <wsdl:message name="ICustomerBillingService_AddInsertionOrder_AdApiFaultDetailFault_FaultMessage">
598
+ <wsdl:part element="q3:AdApiFaultDetail" name="detail" xmlns:q3="https://adapi.microsoft.com"/>
599
+ </wsdl:message>
600
+ <wsdl:message name="ICustomerBillingService_AddInsertionOrder_ApiFault_FaultMessage">
601
+ <wsdl:part element="tns:ApiFault" name="detail"/>
602
+ </wsdl:message>
603
+ <wsdl:message name="UpdateInsertionOrderRequest">
604
+ <wsdl:part element="tns:UpdateInsertionOrderRequest" name="parameters"/>
605
+ </wsdl:message>
606
+ <wsdl:message name="UpdateInsertionOrderRequest_Headers">
607
+ <wsdl:part element="tns:ApplicationToken" name="ApplicationToken"/>
608
+ <wsdl:part element="tns:AuthenticationToken" name="AuthenticationToken"/>
609
+ <wsdl:part element="tns:DeveloperToken" name="DeveloperToken"/>
610
+ <wsdl:part element="tns:Password" name="Password"/>
611
+ <wsdl:part element="tns:UserName" name="UserName"/>
612
+ </wsdl:message>
613
+ <wsdl:message name="UpdateInsertionOrderResponse">
614
+ <wsdl:part element="tns:UpdateInsertionOrderResponse" name="parameters"/>
615
+ </wsdl:message>
616
+ <wsdl:message name="UpdateInsertionOrderResponse_Headers">
617
+ <wsdl:part element="tns:TrackingId" name="TrackingId"/>
618
+ </wsdl:message>
619
+ <wsdl:message name="ICustomerBillingService_UpdateInsertionOrder_AdApiFaultDetailFault_FaultMessage">
620
+ <wsdl:part element="q4:AdApiFaultDetail" name="detail" xmlns:q4="https://adapi.microsoft.com"/>
621
+ </wsdl:message>
622
+ <wsdl:message name="ICustomerBillingService_UpdateInsertionOrder_ApiFault_FaultMessage">
623
+ <wsdl:part element="tns:ApiFault" name="detail"/>
624
+ </wsdl:message>
625
+ <wsdl:message name="GetInsertionOrdersByAccountRequest">
626
+ <wsdl:part element="tns:GetInsertionOrdersByAccountRequest" name="parameters"/>
627
+ </wsdl:message>
628
+ <wsdl:message name="GetInsertionOrdersByAccountRequest_Headers">
629
+ <wsdl:part element="tns:ApplicationToken" name="ApplicationToken"/>
630
+ <wsdl:part element="tns:AuthenticationToken" name="AuthenticationToken"/>
631
+ <wsdl:part element="tns:DeveloperToken" name="DeveloperToken"/>
632
+ <wsdl:part element="tns:Password" name="Password"/>
633
+ <wsdl:part element="tns:UserName" name="UserName"/>
634
+ </wsdl:message>
635
+ <wsdl:message name="GetInsertionOrdersByAccountResponse">
636
+ <wsdl:part element="tns:GetInsertionOrdersByAccountResponse" name="parameters"/>
637
+ </wsdl:message>
638
+ <wsdl:message name="GetInsertionOrdersByAccountResponse_Headers">
639
+ <wsdl:part element="tns:TrackingId" name="TrackingId"/>
640
+ </wsdl:message>
641
+ <wsdl:message name="ICustomerBillingService_GetInsertionOrdersByAccount_AdApiFaultDetailFault_FaultMessage">
642
+ <wsdl:part element="q5:AdApiFaultDetail" name="detail" xmlns:q5="https://adapi.microsoft.com"/>
643
+ </wsdl:message>
644
+ <wsdl:message name="ICustomerBillingService_GetInsertionOrdersByAccount_ApiFault_FaultMessage">
645
+ <wsdl:part element="tns:ApiFault" name="detail"/>
646
+ </wsdl:message>
647
+ <wsdl:message name="SearchInsertionOrdersRequest">
648
+ <wsdl:part element="tns:SearchInsertionOrdersRequest" name="parameters"/>
649
+ </wsdl:message>
650
+ <wsdl:message name="SearchInsertionOrdersRequest_Headers">
651
+ <wsdl:part element="tns:ApplicationToken" name="ApplicationToken"/>
652
+ <wsdl:part element="tns:AuthenticationToken" name="AuthenticationToken"/>
653
+ <wsdl:part element="tns:DeveloperToken" name="DeveloperToken"/>
654
+ <wsdl:part element="tns:Password" name="Password"/>
655
+ <wsdl:part element="tns:UserName" name="UserName"/>
656
+ </wsdl:message>
657
+ <wsdl:message name="SearchInsertionOrdersResponse">
658
+ <wsdl:part element="tns:SearchInsertionOrdersResponse" name="parameters"/>
659
+ </wsdl:message>
660
+ <wsdl:message name="SearchInsertionOrdersResponse_Headers">
661
+ <wsdl:part element="tns:TrackingId" name="TrackingId"/>
662
+ </wsdl:message>
663
+ <wsdl:message name="ICustomerBillingService_SearchInsertionOrders_AdApiFaultDetailFault_FaultMessage">
664
+ <wsdl:part element="q6:AdApiFaultDetail" name="detail" xmlns:q6="https://adapi.microsoft.com"/>
665
+ </wsdl:message>
666
+ <wsdl:message name="ICustomerBillingService_SearchInsertionOrders_ApiFault_FaultMessage">
667
+ <wsdl:part element="tns:ApiFault" name="detail"/>
668
+ </wsdl:message>
669
+ <wsdl:message name="GetAccountMonthlySpendRequest">
670
+ <wsdl:part element="tns:GetAccountMonthlySpendRequest" name="parameters"/>
671
+ </wsdl:message>
672
+ <wsdl:message name="GetAccountMonthlySpendRequest_Headers">
673
+ <wsdl:part element="tns:ApplicationToken" name="ApplicationToken"/>
674
+ <wsdl:part element="tns:AuthenticationToken" name="AuthenticationToken"/>
675
+ <wsdl:part element="tns:DeveloperToken" name="DeveloperToken"/>
676
+ <wsdl:part element="tns:Password" name="Password"/>
677
+ <wsdl:part element="tns:UserName" name="UserName"/>
678
+ </wsdl:message>
679
+ <wsdl:message name="GetAccountMonthlySpendResponse">
680
+ <wsdl:part element="tns:GetAccountMonthlySpendResponse" name="parameters"/>
681
+ </wsdl:message>
682
+ <wsdl:message name="GetAccountMonthlySpendResponse_Headers">
683
+ <wsdl:part element="tns:TrackingId" name="TrackingId"/>
684
+ </wsdl:message>
685
+ <wsdl:message name="ICustomerBillingService_GetAccountMonthlySpend_AdApiFaultDetailFault_FaultMessage">
686
+ <wsdl:part element="q7:AdApiFaultDetail" name="detail" xmlns:q7="https://adapi.microsoft.com"/>
687
+ </wsdl:message>
688
+ <wsdl:message name="ICustomerBillingService_GetAccountMonthlySpend_ApiFault_FaultMessage">
689
+ <wsdl:part element="tns:ApiFault" name="detail"/>
690
+ </wsdl:message>
691
+ <wsdl:portType msc:usingSession="false" name="ICustomerBillingService">
692
+ <wsdl:operation name="GetBillingDocumentsInfo">
693
+ <wsdl:input message="tns:GetBillingDocumentsInfoRequest" name="GetBillingDocumentsInfoRequest" wsaw:Action="GetBillingDocumentsInfo"/>
694
+ <wsdl:output message="tns:GetBillingDocumentsInfoResponse" name="GetBillingDocumentsInfoResponse" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/GetBillingDocumentsInfoResponse"/>
695
+ <wsdl:fault message="tns:ICustomerBillingService_GetBillingDocumentsInfo_AdApiFaultDetailFault_FaultMessage" name="AdApiFaultDetailFault" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/GetBillingDocumentsInfoAdApiFaultDetailFault"/>
696
+ <wsdl:fault message="tns:ICustomerBillingService_GetBillingDocumentsInfo_ApiBatchFault_FaultMessage" name="ApiBatchFault" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/GetBillingDocumentsInfoApiBatchFault"/>
697
+ <wsdl:fault message="tns:ICustomerBillingService_GetBillingDocumentsInfo_ApiFault_FaultMessage" name="ApiFault" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/GetBillingDocumentsInfoApiFault"/>
698
+ </wsdl:operation>
699
+ <wsdl:operation name="GetBillingDocuments">
700
+ <wsdl:input message="tns:GetBillingDocumentsRequest" name="GetBillingDocumentsRequest" wsaw:Action="GetBillingDocuments"/>
701
+ <wsdl:output message="tns:GetBillingDocumentsResponse" name="GetBillingDocumentsResponse" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/GetBillingDocumentsResponse"/>
702
+ <wsdl:fault message="tns:ICustomerBillingService_GetBillingDocuments_AdApiFaultDetailFault_FaultMessage" name="AdApiFaultDetailFault" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/GetBillingDocumentsAdApiFaultDetailFault"/>
703
+ <wsdl:fault message="tns:ICustomerBillingService_GetBillingDocuments_ApiBatchFault_FaultMessage" name="ApiBatchFault" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/GetBillingDocumentsApiBatchFault"/>
704
+ <wsdl:fault message="tns:ICustomerBillingService_GetBillingDocuments_ApiFault_FaultMessage" name="ApiFault" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/GetBillingDocumentsApiFault"/>
705
+ </wsdl:operation>
706
+ <wsdl:operation name="AddInsertionOrder">
707
+ <wsdl:input message="tns:AddInsertionOrderRequest" name="AddInsertionOrderRequest" wsaw:Action="AddInsertionOrder"/>
708
+ <wsdl:output message="tns:AddInsertionOrderResponse" name="AddInsertionOrderResponse" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/AddInsertionOrderResponse"/>
709
+ <wsdl:fault message="tns:ICustomerBillingService_AddInsertionOrder_AdApiFaultDetailFault_FaultMessage" name="AdApiFaultDetailFault" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/AddInsertionOrderAdApiFaultDetailFault"/>
710
+ <wsdl:fault message="tns:ICustomerBillingService_AddInsertionOrder_ApiFault_FaultMessage" name="ApiFault" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/AddInsertionOrderApiFault"/>
711
+ </wsdl:operation>
712
+ <wsdl:operation name="UpdateInsertionOrder">
713
+ <wsdl:input message="tns:UpdateInsertionOrderRequest" name="UpdateInsertionOrderRequest" wsaw:Action="UpdateInsertionOrder"/>
714
+ <wsdl:output message="tns:UpdateInsertionOrderResponse" name="UpdateInsertionOrderResponse" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/UpdateInsertionOrderResponse"/>
715
+ <wsdl:fault message="tns:ICustomerBillingService_UpdateInsertionOrder_AdApiFaultDetailFault_FaultMessage" name="AdApiFaultDetailFault" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/UpdateInsertionOrderAdApiFaultDetailFault"/>
716
+ <wsdl:fault message="tns:ICustomerBillingService_UpdateInsertionOrder_ApiFault_FaultMessage" name="ApiFault" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/UpdateInsertionOrderApiFault"/>
717
+ </wsdl:operation>
718
+ <wsdl:operation name="GetInsertionOrdersByAccount">
719
+ <wsdl:input message="tns:GetInsertionOrdersByAccountRequest" name="GetInsertionOrdersByAccountRequest" wsaw:Action="GetInsertionOrdersByAccount"/>
720
+ <wsdl:output message="tns:GetInsertionOrdersByAccountResponse" name="GetInsertionOrdersByAccountResponse" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/GetInsertionOrdersByAccountResponse"/>
721
+ <wsdl:fault message="tns:ICustomerBillingService_GetInsertionOrdersByAccount_AdApiFaultDetailFault_FaultMessage" name="AdApiFaultDetailFault" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/GetInsertionOrdersByAccountAdApiFaultDetailFault"/>
722
+ <wsdl:fault message="tns:ICustomerBillingService_GetInsertionOrdersByAccount_ApiFault_FaultMessage" name="ApiFault" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/GetInsertionOrdersByAccountApiFault"/>
723
+ </wsdl:operation>
724
+ <wsdl:operation name="SearchInsertionOrders">
725
+ <wsdl:input message="tns:SearchInsertionOrdersRequest" name="SearchInsertionOrdersRequest" wsaw:Action="SearchInsertionOrders"/>
726
+ <wsdl:output message="tns:SearchInsertionOrdersResponse" name="SearchInsertionOrdersResponse" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/SearchInsertionOrdersResponse"/>
727
+ <wsdl:fault message="tns:ICustomerBillingService_SearchInsertionOrders_AdApiFaultDetailFault_FaultMessage" name="AdApiFaultDetailFault" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/SearchInsertionOrdersAdApiFaultDetailFault"/>
728
+ <wsdl:fault message="tns:ICustomerBillingService_SearchInsertionOrders_ApiFault_FaultMessage" name="ApiFault" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/SearchInsertionOrdersApiFault"/>
729
+ </wsdl:operation>
730
+ <wsdl:operation name="GetAccountMonthlySpend">
731
+ <wsdl:input message="tns:GetAccountMonthlySpendRequest" name="GetAccountMonthlySpendRequest" wsaw:Action="GetAccountMonthlySpend"/>
732
+ <wsdl:output message="tns:GetAccountMonthlySpendResponse" name="GetAccountMonthlySpendResponse" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/GetAccountMonthlySpendResponse"/>
733
+ <wsdl:fault message="tns:ICustomerBillingService_GetAccountMonthlySpend_AdApiFaultDetailFault_FaultMessage" name="AdApiFaultDetailFault" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/GetAccountMonthlySpendAdApiFaultDetailFault"/>
734
+ <wsdl:fault message="tns:ICustomerBillingService_GetAccountMonthlySpend_ApiFault_FaultMessage" name="ApiFault" wsaw:Action="https://bingads.microsoft.com/Billing/v12/ICustomerBillingService/GetAccountMonthlySpendApiFault"/>
735
+ </wsdl:operation>
736
+ </wsdl:portType>
737
+ <wsdl:binding name="BasicHttpBinding_ICustomerBillingService" type="tns:ICustomerBillingService">
738
+ <wsp:PolicyReference URI="#BasicHttpBinding_ICustomerBillingService_policy"/>
739
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
740
+ <wsdl:operation name="GetBillingDocumentsInfo">
741
+ <soap:operation soapAction="GetBillingDocumentsInfo" style="document"/>
742
+ <wsdl:input name="GetBillingDocumentsInfoRequest">
743
+ <soap:header message="tns:GetBillingDocumentsInfoRequest_Headers" part="ApplicationToken" use="literal"/>
744
+ <soap:header message="tns:GetBillingDocumentsInfoRequest_Headers" part="AuthenticationToken" use="literal"/>
745
+ <soap:header message="tns:GetBillingDocumentsInfoRequest_Headers" part="DeveloperToken" use="literal"/>
746
+ <soap:header message="tns:GetBillingDocumentsInfoRequest_Headers" part="Password" use="literal"/>
747
+ <soap:header message="tns:GetBillingDocumentsInfoRequest_Headers" part="UserName" use="literal"/>
748
+ <soap:body use="literal"/>
749
+ </wsdl:input>
750
+ <wsdl:output name="GetBillingDocumentsInfoResponse">
751
+ <soap:header message="tns:GetBillingDocumentsInfoResponse_Headers" part="TrackingId" use="literal"/>
752
+ <soap:body use="literal"/>
753
+ </wsdl:output>
754
+ <wsdl:fault name="AdApiFaultDetailFault">
755
+ <soap:fault name="AdApiFaultDetailFault" namespace="" use="literal"/>
756
+ </wsdl:fault>
757
+ <wsdl:fault name="ApiBatchFault">
758
+ <soap:fault name="ApiBatchFault" namespace="" use="literal"/>
759
+ </wsdl:fault>
760
+ <wsdl:fault name="ApiFault">
761
+ <soap:fault name="ApiFault" namespace="" use="literal"/>
762
+ </wsdl:fault>
763
+ </wsdl:operation>
764
+ <wsdl:operation name="GetBillingDocuments">
765
+ <soap:operation soapAction="GetBillingDocuments" style="document"/>
766
+ <wsdl:input name="GetBillingDocumentsRequest">
767
+ <soap:header message="tns:GetBillingDocumentsRequest_Headers" part="ApplicationToken" use="literal"/>
768
+ <soap:header message="tns:GetBillingDocumentsRequest_Headers" part="AuthenticationToken" use="literal"/>
769
+ <soap:header message="tns:GetBillingDocumentsRequest_Headers" part="DeveloperToken" use="literal"/>
770
+ <soap:header message="tns:GetBillingDocumentsRequest_Headers" part="Password" use="literal"/>
771
+ <soap:header message="tns:GetBillingDocumentsRequest_Headers" part="UserName" use="literal"/>
772
+ <soap:body use="literal"/>
773
+ </wsdl:input>
774
+ <wsdl:output name="GetBillingDocumentsResponse">
775
+ <soap:header message="tns:GetBillingDocumentsResponse_Headers" part="TrackingId" use="literal"/>
776
+ <soap:body use="literal"/>
777
+ </wsdl:output>
778
+ <wsdl:fault name="AdApiFaultDetailFault">
779
+ <soap:fault name="AdApiFaultDetailFault" namespace="" use="literal"/>
780
+ </wsdl:fault>
781
+ <wsdl:fault name="ApiBatchFault">
782
+ <soap:fault name="ApiBatchFault" namespace="" use="literal"/>
783
+ </wsdl:fault>
784
+ <wsdl:fault name="ApiFault">
785
+ <soap:fault name="ApiFault" namespace="" use="literal"/>
786
+ </wsdl:fault>
787
+ </wsdl:operation>
788
+ <wsdl:operation name="AddInsertionOrder">
789
+ <soap:operation soapAction="AddInsertionOrder" style="document"/>
790
+ <wsdl:input name="AddInsertionOrderRequest">
791
+ <soap:header message="tns:AddInsertionOrderRequest_Headers" part="ApplicationToken" use="literal"/>
792
+ <soap:header message="tns:AddInsertionOrderRequest_Headers" part="AuthenticationToken" use="literal"/>
793
+ <soap:header message="tns:AddInsertionOrderRequest_Headers" part="DeveloperToken" use="literal"/>
794
+ <soap:header message="tns:AddInsertionOrderRequest_Headers" part="Password" use="literal"/>
795
+ <soap:header message="tns:AddInsertionOrderRequest_Headers" part="UserName" use="literal"/>
796
+ <soap:body use="literal"/>
797
+ </wsdl:input>
798
+ <wsdl:output name="AddInsertionOrderResponse">
799
+ <soap:header message="tns:AddInsertionOrderResponse_Headers" part="TrackingId" use="literal"/>
800
+ <soap:body use="literal"/>
801
+ </wsdl:output>
802
+ <wsdl:fault name="AdApiFaultDetailFault">
803
+ <soap:fault name="AdApiFaultDetailFault" namespace="" use="literal"/>
804
+ </wsdl:fault>
805
+ <wsdl:fault name="ApiFault">
806
+ <soap:fault name="ApiFault" namespace="" use="literal"/>
807
+ </wsdl:fault>
808
+ </wsdl:operation>
809
+ <wsdl:operation name="UpdateInsertionOrder">
810
+ <soap:operation soapAction="UpdateInsertionOrder" style="document"/>
811
+ <wsdl:input name="UpdateInsertionOrderRequest">
812
+ <soap:header message="tns:UpdateInsertionOrderRequest_Headers" part="ApplicationToken" use="literal"/>
813
+ <soap:header message="tns:UpdateInsertionOrderRequest_Headers" part="AuthenticationToken" use="literal"/>
814
+ <soap:header message="tns:UpdateInsertionOrderRequest_Headers" part="DeveloperToken" use="literal"/>
815
+ <soap:header message="tns:UpdateInsertionOrderRequest_Headers" part="Password" use="literal"/>
816
+ <soap:header message="tns:UpdateInsertionOrderRequest_Headers" part="UserName" use="literal"/>
817
+ <soap:body use="literal"/>
818
+ </wsdl:input>
819
+ <wsdl:output name="UpdateInsertionOrderResponse">
820
+ <soap:header message="tns:UpdateInsertionOrderResponse_Headers" part="TrackingId" use="literal"/>
821
+ <soap:body use="literal"/>
822
+ </wsdl:output>
823
+ <wsdl:fault name="AdApiFaultDetailFault">
824
+ <soap:fault name="AdApiFaultDetailFault" namespace="" use="literal"/>
825
+ </wsdl:fault>
826
+ <wsdl:fault name="ApiFault">
827
+ <soap:fault name="ApiFault" namespace="" use="literal"/>
828
+ </wsdl:fault>
829
+ </wsdl:operation>
830
+ <wsdl:operation name="GetInsertionOrdersByAccount">
831
+ <soap:operation soapAction="GetInsertionOrdersByAccount" style="document"/>
832
+ <wsdl:input name="GetInsertionOrdersByAccountRequest">
833
+ <soap:header message="tns:GetInsertionOrdersByAccountRequest_Headers" part="ApplicationToken" use="literal"/>
834
+ <soap:header message="tns:GetInsertionOrdersByAccountRequest_Headers" part="AuthenticationToken" use="literal"/>
835
+ <soap:header message="tns:GetInsertionOrdersByAccountRequest_Headers" part="DeveloperToken" use="literal"/>
836
+ <soap:header message="tns:GetInsertionOrdersByAccountRequest_Headers" part="Password" use="literal"/>
837
+ <soap:header message="tns:GetInsertionOrdersByAccountRequest_Headers" part="UserName" use="literal"/>
838
+ <soap:body use="literal"/>
839
+ </wsdl:input>
840
+ <wsdl:output name="GetInsertionOrdersByAccountResponse">
841
+ <soap:header message="tns:GetInsertionOrdersByAccountResponse_Headers" part="TrackingId" use="literal"/>
842
+ <soap:body use="literal"/>
843
+ </wsdl:output>
844
+ <wsdl:fault name="AdApiFaultDetailFault">
845
+ <soap:fault name="AdApiFaultDetailFault" namespace="" use="literal"/>
846
+ </wsdl:fault>
847
+ <wsdl:fault name="ApiFault">
848
+ <soap:fault name="ApiFault" namespace="" use="literal"/>
849
+ </wsdl:fault>
850
+ </wsdl:operation>
851
+ <wsdl:operation name="SearchInsertionOrders">
852
+ <soap:operation soapAction="SearchInsertionOrders" style="document"/>
853
+ <wsdl:input name="SearchInsertionOrdersRequest">
854
+ <soap:header message="tns:SearchInsertionOrdersRequest_Headers" part="ApplicationToken" use="literal"/>
855
+ <soap:header message="tns:SearchInsertionOrdersRequest_Headers" part="AuthenticationToken" use="literal"/>
856
+ <soap:header message="tns:SearchInsertionOrdersRequest_Headers" part="DeveloperToken" use="literal"/>
857
+ <soap:header message="tns:SearchInsertionOrdersRequest_Headers" part="Password" use="literal"/>
858
+ <soap:header message="tns:SearchInsertionOrdersRequest_Headers" part="UserName" use="literal"/>
859
+ <soap:body use="literal"/>
860
+ </wsdl:input>
861
+ <wsdl:output name="SearchInsertionOrdersResponse">
862
+ <soap:header message="tns:SearchInsertionOrdersResponse_Headers" part="TrackingId" use="literal"/>
863
+ <soap:body use="literal"/>
864
+ </wsdl:output>
865
+ <wsdl:fault name="AdApiFaultDetailFault">
866
+ <soap:fault name="AdApiFaultDetailFault" namespace="" use="literal"/>
867
+ </wsdl:fault>
868
+ <wsdl:fault name="ApiFault">
869
+ <soap:fault name="ApiFault" namespace="" use="literal"/>
870
+ </wsdl:fault>
871
+ </wsdl:operation>
872
+ <wsdl:operation name="GetAccountMonthlySpend">
873
+ <soap:operation soapAction="GetAccountMonthlySpend" style="document"/>
874
+ <wsdl:input name="GetAccountMonthlySpendRequest">
875
+ <soap:header message="tns:GetAccountMonthlySpendRequest_Headers" part="ApplicationToken" use="literal"/>
876
+ <soap:header message="tns:GetAccountMonthlySpendRequest_Headers" part="AuthenticationToken" use="literal"/>
877
+ <soap:header message="tns:GetAccountMonthlySpendRequest_Headers" part="DeveloperToken" use="literal"/>
878
+ <soap:header message="tns:GetAccountMonthlySpendRequest_Headers" part="Password" use="literal"/>
879
+ <soap:header message="tns:GetAccountMonthlySpendRequest_Headers" part="UserName" use="literal"/>
880
+ <soap:body use="literal"/>
881
+ </wsdl:input>
882
+ <wsdl:output name="GetAccountMonthlySpendResponse">
883
+ <soap:header message="tns:GetAccountMonthlySpendResponse_Headers" part="TrackingId" use="literal"/>
884
+ <soap:body use="literal"/>
885
+ </wsdl:output>
886
+ <wsdl:fault name="AdApiFaultDetailFault">
887
+ <soap:fault name="AdApiFaultDetailFault" namespace="" use="literal"/>
888
+ </wsdl:fault>
889
+ <wsdl:fault name="ApiFault">
890
+ <soap:fault name="ApiFault" namespace="" use="literal"/>
891
+ </wsdl:fault>
892
+ </wsdl:operation>
893
+ </wsdl:binding>
894
+ <wsdl:service name="CustomerBillingService">
895
+ <wsdl:port binding="tns:BasicHttpBinding_ICustomerBillingService" name="BasicHttpBinding_ICustomerBillingService">
896
+ <soap:address location="https://clientcenter.api.bingads.microsoft.com/Api/Billing/v12/CustomerBillingService.svc"/>
897
+ </wsdl:port>
898
+ </wsdl:service>
899
+ </wsdl:definitions>