soapy_bing 0.0.5 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +19 -0
  4. data/lib/soapy_bing/ads/reports/base.rb +1 -1
  5. data/lib/soapy_bing/ads.rb +23 -0
  6. data/lib/soapy_bing/soap/request/get_ad_groups_by_campaign_id_request.rb +17 -0
  7. data/lib/soapy_bing/soap/request/get_ads_by_ad_group_id_request.rb +17 -0
  8. data/lib/soapy_bing/soap/request/get_targets_by_campaign_ids_request.rb +17 -0
  9. data/lib/soapy_bing/soap/request.rb +3 -0
  10. data/lib/soapy_bing/soap/response/get_ad_groups_by_campaign_id_response.rb +12 -0
  11. data/lib/soapy_bing/soap/response/get_ads_by_ad_group_id_response.rb +12 -0
  12. data/lib/soapy_bing/soap/response/get_targets_by_campaign_ids_response.rb +12 -0
  13. data/lib/soapy_bing/soap/response.rb +5 -0
  14. data/lib/soapy_bing/soap/templates/get_ad_groups_by_campaign_id.erb.xml +15 -0
  15. data/lib/soapy_bing/soap/templates/get_ads_by_ad_group_id.erb.xml +15 -0
  16. data/lib/soapy_bing/soap/templates/get_targets_by_campaign_ids.erb.xml +20 -0
  17. data/lib/soapy_bing/version.rb +1 -1
  18. data/spec/fixtures/get_ad_groups_by_campaign_id.json +587 -0
  19. data/spec/fixtures/get_ads_by_ad_group_id.json +218 -0
  20. data/spec/fixtures/get_targets_by_campaign_ids.json +81 -0
  21. data/spec/fixtures/vcr_cassettes/SoapyBing_Ads/_get_ad_groups_by_campaign_id/1_1_1.yml +150 -0
  22. data/spec/fixtures/vcr_cassettes/SoapyBing_Ads/_get_ads_by_ad_group_id/1_2_1.yml +141 -0
  23. data/spec/fixtures/vcr_cassettes/SoapyBing_Ads/_get_targets_by_campaign_ids/1_3_1.yml +111 -0
  24. data/spec/integration/soapy_bing/ads_spec.rb +32 -0
  25. data/spec/soapy_bing/oauth_credentials_spec.rb +1 -1
  26. data/spec/soapy_bing/soap/request/base_spec.rb +1 -1
  27. data/spec/soapy_bing/soap/request/poll_generate_report_request_spec.rb +2 -2
  28. metadata +25 -2
@@ -0,0 +1,587 @@
1
+ [
2
+ {
3
+ "AdDistribution": "Search",
4
+ "AdRotation": {
5
+ "EndDate": "2050-01-01T00:00:00",
6
+ "StartDate": "2016-05-02T00:00:00",
7
+ "Type": "RotateAdsEvenly"
8
+ },
9
+ "BiddingModel": "Keyword",
10
+ "ContentMatchBid": {
11
+ "Amount": "0.05"
12
+ },
13
+ "EndDate": {
14
+ "i:nil": "true"
15
+ },
16
+ "ForwardCompatibilityMap": {
17
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/System.Collections.Generic"
18
+ },
19
+ "Id":"4464286758",
20
+ "Language": "English",
21
+ "Name": "[animal jam]",
22
+ "NativeBidAdjustment": {
23
+ "i:nil": "true"
24
+ },
25
+ "Network": "OwnedAndOperatedAndSyndicatedSearch",
26
+ "PricingModel": "Cpc",
27
+ "SearchBid": {
28
+ "Amount": "0.05"
29
+ },
30
+ "Settings": {
31
+ "i:nil": "true"
32
+ },
33
+ "StartDate": {
34
+ "Day": "2",
35
+ "Month": "5",
36
+ "Year": "2016"
37
+ },
38
+ "Status": "Active",
39
+ "TrackingUrlTemplate": {
40
+ "i:nil": "true"
41
+ },
42
+ "UrlCustomParameters": {
43
+ "i:nil": "true",
44
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"
45
+ }
46
+ },
47
+ {
48
+ "AdDistribution": "Search",
49
+ "AdRotation": {
50
+ "EndDate": "2050-01-01T00:00:00",
51
+ "StartDate": "2016-05-26T00:00:00",
52
+ "Type": "RotateAdsEvenly"
53
+ },
54
+ "BiddingModel": "Keyword",
55
+ "ContentMatchBid": {
56
+ "Amount": "0.05"
57
+ },
58
+ "EndDate": {
59
+ "i:nil": "true"
60
+ },
61
+ "ForwardCompatibilityMap": {
62
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/System.Collections.Generic"
63
+ },
64
+ "Id": "4465398953",
65
+ "Language": "English",
66
+ "Name": "[animal jam animals]",
67
+ "NativeBidAdjustment": {
68
+ "i:nil": "true"
69
+ },
70
+ "Network": "OwnedAndOperatedAndSyndicatedSearch",
71
+ "PricingModel": "Cpc",
72
+ "SearchBid": {
73
+ "Amount": "0.05"
74
+ },
75
+ "Settings": {
76
+ "i:nil": "true"
77
+ },
78
+ "StartDate": {
79
+ "Day": "26",
80
+ "Month": "5",
81
+ "Year": "2016"
82
+ },
83
+ "Status": "Active",
84
+ "TrackingUrlTemplate": {
85
+ "i:nil": "true"
86
+ },
87
+ "UrlCustomParameters": {
88
+ "i:nil": "true",
89
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"
90
+ }
91
+ },
92
+ {
93
+ "AdDistribution": "Search",
94
+ "AdRotation": {
95
+ "EndDate": "2050-01-01T00:00:00",
96
+ "StartDate": "2016-05-26T00:00:00",
97
+ "Type": "RotateAdsEvenly"
98
+ },
99
+ "BiddingModel": "Keyword",
100
+ "ContentMatchBid": {
101
+ "Amount": "0.05"
102
+ },
103
+ "EndDate": {
104
+ "i:nil": "true"
105
+ },
106
+ "ForwardCompatibilityMap": {
107
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/System.Collections.Generic"
108
+ },
109
+ "Id": "4465398954",
110
+ "Language": "English",
111
+ "Name": "[animal jam codes]",
112
+ "NativeBidAdjustment": {
113
+ "i:nil": "true"
114
+ },
115
+ "Network": "OwnedAndOperatedAndSyndicatedSearch",
116
+ "PricingModel": "Cpc",
117
+ "SearchBid": {
118
+ "Amount": "0.05"
119
+ },
120
+ "Settings": {
121
+ "i:nil": "true"
122
+ },
123
+ "StartDate": {
124
+ "Day": "26",
125
+ "Month": "5",
126
+ "Year": "2016"
127
+ },
128
+ "Status": "Active",
129
+ "TrackingUrlTemplate": {
130
+ "i:nil": "true"
131
+ },
132
+ "UrlCustomParameters": {
133
+ "i:nil": "true",
134
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"
135
+ }
136
+ },
137
+ {
138
+ "AdDistribution": "Search",
139
+ "AdRotation": {
140
+ "EndDate": "2050-01-01T00:00:00",
141
+ "StartDate": "2016-05-26T00:00:00",
142
+ "Type": "RotateAdsEvenly"
143
+ },
144
+ "BiddingModel": "Keyword",
145
+ "ContentMatchBid": {
146
+ "Amount": "0.05"
147
+ },
148
+ "EndDate": {
149
+ "i:nil": "true"
150
+ },
151
+ "ForwardCompatibilityMap": {
152
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/System.Collections.Generic"
153
+ },
154
+ "Id": "4465398955",
155
+ "Language": "English",
156
+ "Name": "[animal jam com]",
157
+ "NativeBidAdjustment": {
158
+ "i:nil": "true"
159
+ },
160
+ "Network": "OwnedAndOperatedAndSyndicatedSearch",
161
+ "PricingModel": "Cpc",
162
+ "SearchBid": {
163
+ "Amount": "0.05"
164
+ },
165
+ "Settings": {
166
+ "i:nil": "true"
167
+ },
168
+ "StartDate": {
169
+ "Day": "26",
170
+ "Month": "5",
171
+ "Year": "2016"
172
+ },
173
+ "Status": "Active",
174
+ "TrackingUrlTemplate": {
175
+ "i:nil": "true"
176
+ },
177
+ "UrlCustomParameters": {
178
+ "i:nil": "true",
179
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"
180
+ }
181
+ },
182
+ {
183
+ "AdDistribution": "Search",
184
+ "AdRotation": {
185
+ "EndDate": "2050-01-01T00:00:00",
186
+ "StartDate": "2016-05-26T00:00:00",
187
+ "Type": "RotateAdsEvenly"
188
+ },
189
+ "BiddingModel": "Keyword",
190
+ "ContentMatchBid": {
191
+ "Amount": "0.05"
192
+ },
193
+ "EndDate": {
194
+ "i:nil": "true"
195
+ },
196
+ "ForwardCompatibilityMap": {
197
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/System.Collections.Generic"
198
+ },
199
+ "Id": "4465398956",
200
+ "Language": "English",
201
+ "Name": "[animal jam free play]",
202
+ "NativeBidAdjustment": {
203
+ "i:nil": "true"
204
+ },
205
+ "Network": "OwnedAndOperatedAndSyndicatedSearch",
206
+ "PricingModel": "Cpc",
207
+ "SearchBid": {
208
+ "Amount": "0.05"
209
+ },
210
+ "Settings": {
211
+ "i:nil": "true"
212
+ },
213
+ "StartDate": {
214
+ "Day": "26",
215
+ "Month": "5",
216
+ "Year": "2016"
217
+ },
218
+ "Status": "Active",
219
+ "TrackingUrlTemplate": {
220
+ "i:nil": "true"
221
+ },
222
+ "UrlCustomParameters": {
223
+ "i:nil": "true",
224
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"
225
+ }
226
+ },
227
+ {
228
+ "AdDistribution": "Search",
229
+ "AdRotation": {
230
+ "EndDate": "2050-01-01T00:00:00",
231
+ "StartDate": "2016-05-26T00:00:00",
232
+ "Type": "RotateAdsEvenly"
233
+ },
234
+ "BiddingModel": "Keyword",
235
+ "ContentMatchBid": {
236
+ "Amount": "0.05"
237
+ },
238
+ "EndDate": {
239
+ "i:nil": "true"
240
+ },
241
+ "ForwardCompatibilityMap": {
242
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/System.Collections.Generic"
243
+ },
244
+ "Id": "4465398957",
245
+ "Language": "English",
246
+ "Name": "[animal jam game online]",
247
+ "NativeBidAdjustment": {
248
+ "i:nil": "true"
249
+ },
250
+ "Network": "OwnedAndOperatedAndSyndicatedSearch",
251
+ "PricingModel": "Cpc",
252
+ "SearchBid": {
253
+ "Amount": "0.05"
254
+ },
255
+ "Settings": {
256
+ "i:nil": "true"
257
+ },
258
+ "StartDate": {
259
+ "Day": "26",
260
+ "Month": "5",
261
+ "Year": "2016"
262
+ },
263
+ "Status": "Active",
264
+ "TrackingUrlTemplate": {
265
+ "i:nil": "true"
266
+ },
267
+ "UrlCustomParameters": {
268
+ "i:nil": "true",
269
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"
270
+ }
271
+ },
272
+ {
273
+ "AdDistribution": "Search",
274
+ "AdRotation": {
275
+ "EndDate": "2050-01-01T00:00:00",
276
+ "StartDate": "2016-05-26T00:00:00",
277
+ "Type": "RotateAdsEvenly"
278
+ },
279
+ "BiddingModel": "Keyword",
280
+ "ContentMatchBid": {
281
+ "Amount": "0.05"
282
+ },
283
+ "EndDate": {
284
+ "i:nil": "true"
285
+ },
286
+ "ForwardCompatibilityMap": {
287
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/System.Collections.Generic"
288
+ },
289
+ "Id": "4465398958",
290
+ "Language": "English",
291
+ "Name": "[animal jam game]",
292
+ "NativeBidAdjustment": {
293
+ "i:nil": "true"
294
+ },
295
+ "Network": "OwnedAndOperatedAndSyndicatedSearch",
296
+ "PricingModel": "Cpc",
297
+ "SearchBid": {
298
+ "Amount": "0.05"
299
+ },
300
+ "Settings": {
301
+ "i:nil": "true"
302
+ },
303
+ "StartDate": {
304
+ "Day": "26",
305
+ "Month": "5",
306
+ "Year": "2016"
307
+ },
308
+ "Status": "Active",
309
+ "TrackingUrlTemplate": {
310
+ "i:nil": "true"
311
+ },
312
+ "UrlCustomParameters": {
313
+ "i:nil": "true",
314
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"
315
+ }
316
+ },
317
+ {
318
+ "AdDistribution": "Search",
319
+ "AdRotation": {
320
+ "EndDate": "2050-01-01T00:00:00",
321
+ "StartDate": "2016-05-26T00:00:00",
322
+ "Type": "RotateAdsEvenly"
323
+ },
324
+ "BiddingModel": "Keyword",
325
+ "ContentMatchBid": {
326
+ "Amount": "0.05"
327
+ },
328
+ "EndDate": {
329
+ "i:nil": "true"
330
+ },
331
+ "ForwardCompatibilityMap": {
332
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/System.Collections.Generic"
333
+ },
334
+ "Id": "4465398959",
335
+ "Language": "English",
336
+ "Name": "[animal jam login]",
337
+ "NativeBidAdjustment": {
338
+ "i:nil": "true"
339
+ },
340
+ "Network": "OwnedAndOperatedAndSyndicatedSearch",
341
+ "PricingModel": "Cpc",
342
+ "SearchBid": {
343
+ "Amount": "0.05"
344
+ },
345
+ "Settings": {
346
+ "i:nil": "true"
347
+ },
348
+ "StartDate": {
349
+ "Day": "26",
350
+ "Month": "5",
351
+ "Year": "2016"
352
+ },
353
+ "Status": "Active",
354
+ "TrackingUrlTemplate": {
355
+ "i:nil": "true"
356
+ },
357
+ "UrlCustomParameters": {
358
+ "i:nil": "true",
359
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"
360
+ }
361
+ },
362
+ {
363
+ "AdDistribution": "Search",
364
+ "AdRotation": {
365
+ "EndDate": "2050-01-01T00:00:00",
366
+ "StartDate": "2016-05-26T00:00:00",
367
+ "Type": "RotateAdsEvenly"
368
+ },
369
+ "BiddingModel": "Keyword",
370
+ "ContentMatchBid": {
371
+ "Amount": "0.05"
372
+ },
373
+ "EndDate": {
374
+ "i:nil": "true"
375
+ },
376
+ "ForwardCompatibilityMap": {
377
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/System.Collections.Generic"
378
+ },
379
+ "Id": "4465398960",
380
+ "Language": "English",
381
+ "Name": "[animal jam membership]",
382
+ "NativeBidAdjustment": {
383
+ "i:nil": "true"
384
+ },
385
+ "Network": "OwnedAndOperatedAndSyndicatedSearch",
386
+ "PricingModel": "Cpc",
387
+ "SearchBid": {
388
+ "Amount": "0.05"
389
+ },
390
+ "Settings": {
391
+ "i:nil": "true"
392
+ },
393
+ "StartDate": {
394
+ "Day": "26",
395
+ "Month": "5",
396
+ "Year": "2016"
397
+ },
398
+ "Status": "Active",
399
+ "TrackingUrlTemplate": {
400
+ "i:nil": "true"
401
+ },
402
+ "UrlCustomParameters": {
403
+ "i:nil": "true",
404
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"
405
+ }
406
+ },
407
+ {
408
+ "AdDistribution": "Search",
409
+ "AdRotation": {
410
+ "EndDate": "2050-01-01T00:00:00",
411
+ "StartDate": "2016-05-26T00:00:00",
412
+ "Type": "RotateAdsEvenly"
413
+ },
414
+ "BiddingModel": "Keyword",
415
+ "ContentMatchBid": {
416
+ "Amount": "0.05"
417
+ },
418
+ "EndDate": {
419
+ "i:nil": "true"
420
+ },
421
+ "ForwardCompatibilityMap": {
422
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/System.Collections.Generic"
423
+ },
424
+ "Id": "4465398963",
425
+ "Language": "English",
426
+ "Name": "[animal jam national geographic]",
427
+ "NativeBidAdjustment": {
428
+ "i:nil": "true"
429
+ },
430
+ "Network": "OwnedAndOperatedAndSyndicatedSearch",
431
+ "PricingModel": "Cpc",
432
+ "SearchBid": {
433
+ "Amount": "0.05"
434
+ },
435
+ "Settings": {
436
+ "i:nil": "true"
437
+ },
438
+ "StartDate": {
439
+ "Day": "26",
440
+ "Month": "5",
441
+ "Year": "2016"
442
+ },
443
+ "Status": "Active",
444
+ "TrackingUrlTemplate": {
445
+ "i:nil": "true"
446
+ },
447
+ "UrlCustomParameters": {
448
+ "i:nil": "true",
449
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"
450
+ }
451
+ },
452
+ {
453
+ "AdDistribution": "Search",
454
+ "AdRotation": {
455
+ "EndDate": "2050-01-01T00:00:00",
456
+ "StartDate": "2016-05-26T00:00:00",
457
+ "Type": "RotateAdsEvenly"
458
+ },
459
+ "BiddingModel": "Keyword",
460
+ "ContentMatchBid": {
461
+ "Amount": "0.05"
462
+ },
463
+ "EndDate": {
464
+ "i:nil": "true"
465
+ },
466
+ "ForwardCompatibilityMap": {
467
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/System.Collections.Generic"
468
+ },
469
+ "Id": "4465398965",
470
+ "Language": "English",
471
+ "Name": "[animal jam play online]",
472
+ "NativeBidAdjustment": {
473
+ "i:nil": "true"
474
+ },
475
+ "Network": "OwnedAndOperatedAndSyndicatedSearch",
476
+ "PricingModel": "Cpc",
477
+ "SearchBid": {
478
+ "Amount": "0.05"
479
+ },
480
+ "Settings": {
481
+ "i:nil": "true"
482
+ },
483
+ "StartDate": {
484
+ "Day": "26",
485
+ "Month": "5",
486
+ "Year": "2016"
487
+ },
488
+ "Status": "Active",
489
+ "TrackingUrlTemplate": {
490
+ "i:nil": "true"
491
+ },
492
+ "UrlCustomParameters": {
493
+ "i:nil": "true",
494
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"
495
+ }
496
+ },
497
+ {
498
+ "AdDistribution": "Search",
499
+ "AdRotation": {
500
+ "EndDate": "2050-01-01T00:00:00",
501
+ "StartDate": "2016-05-26T00:00:00",
502
+ "Type": "RotateAdsEvenly"
503
+ },
504
+ "BiddingModel": "Keyword",
505
+ "ContentMatchBid": {
506
+ "Amount": "0.05"
507
+ },
508
+ "EndDate": {
509
+ "i:nil": "true"
510
+ },
511
+ "ForwardCompatibilityMap": {
512
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/System.Collections.Generic"
513
+ },
514
+ "Id": "4465398967",
515
+ "Language": "English",
516
+ "Name": "[animal jam play wild]",
517
+ "NativeBidAdjustment": {
518
+ "i:nil": "true"
519
+ },
520
+ "Network": "OwnedAndOperatedAndSyndicatedSearch",
521
+ "PricingModel": "Cpc",
522
+ "SearchBid": {
523
+ "Amount": "0.05"
524
+ },
525
+ "Settings": {
526
+ "i:nil": "true"
527
+ },
528
+ "StartDate": {
529
+ "Day": "26",
530
+ "Month": "5",
531
+ "Year": "2016"
532
+ },
533
+ "Status": "Active",
534
+ "TrackingUrlTemplate": {
535
+ "i:nil": "true"
536
+ },
537
+ "UrlCustomParameters": {
538
+ "i:nil": "true",
539
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"
540
+ }
541
+ },
542
+ {
543
+ "AdDistribution": "Search",
544
+ "AdRotation": {
545
+ "EndDate": "2050-01-01T00:00:00",
546
+ "StartDate": "2016-05-26T00:00:00",
547
+ "Type": "RotateAdsEvenly"
548
+ },
549
+ "BiddingModel": "Keyword",
550
+ "ContentMatchBid": {
551
+ "Amount": "0.05"
552
+ },
553
+ "EndDate": {
554
+ "i:nil": "true"
555
+ },
556
+ "ForwardCompatibilityMap": {
557
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/System.Collections.Generic"
558
+ },
559
+ "Id": "4465398969",
560
+ "Language": "English",
561
+ "Name": "[animal jam play]",
562
+ "NativeBidAdjustment": {
563
+ "i:nil": "true"
564
+ },
565
+ "Network": "OwnedAndOperatedAndSyndicatedSearch",
566
+ "PricingModel": "Cpc",
567
+ "SearchBid": {
568
+ "Amount": "0.05"
569
+ },
570
+ "Settings": {
571
+ "i:nil": "true"
572
+ },
573
+ "StartDate": {
574
+ "Day": "26",
575
+ "Month": "5",
576
+ "Year": "2016"
577
+ },
578
+ "Status": "Active",
579
+ "TrackingUrlTemplate": {
580
+ "i:nil": "true"
581
+ },
582
+ "UrlCustomParameters": {
583
+ "i:nil": "true",
584
+ "xmlns:a": "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10"
585
+ }
586
+ }
587
+ ]