bing_ads_ruby_sdk 1.5.0 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +21 -5
  4. data/Rakefile +1 -1
  5. data/bing_ads_ruby_sdk.gemspec +9 -1
  6. data/changelog.md +3 -0
  7. data/lib/Rakefile +4 -0
  8. data/lib/bing_ads_ruby_sdk/errors/errors.rb +1 -1
  9. data/lib/bing_ads_ruby_sdk/railtie.rb +13 -0
  10. data/{tasks → lib/bing_ads_ruby_sdk/tasks}/bing_ads_ruby_sdk.rake +1 -1
  11. data/lib/bing_ads_ruby_sdk/version.rb +1 -1
  12. data/lib/bing_ads_ruby_sdk.rb +1 -0
  13. metadata +6 -85
  14. data/.circleci/config.yml +0 -54
  15. data/.github/.keep +0 -0
  16. data/.github/renovate.json +0 -225
  17. data/.gitignore +0 -19
  18. data/.rspec +0 -4
  19. data/spec/bing_ads_ruby_sdk/api_spec.rb +0 -17
  20. data/spec/bing_ads_ruby_sdk/errors/error_handler_spec.rb +0 -477
  21. data/spec/bing_ads_ruby_sdk/errors/errors_spec.rb +0 -13
  22. data/spec/bing_ads_ruby_sdk/header_spec.rb +0 -60
  23. data/spec/bing_ads_ruby_sdk/http_client_spec.rb +0 -42
  24. data/spec/bing_ads_ruby_sdk/oauth2/fs_store_spec.rb +0 -19
  25. data/spec/bing_ads_ruby_sdk/postprocessors/cast_long_arrays_spec.rb +0 -29
  26. data/spec/bing_ads_ruby_sdk/postprocessors/snakize_spec.rb +0 -39
  27. data/spec/bing_ads_ruby_sdk/preprocessors/camelize_spec.rb +0 -39
  28. data/spec/bing_ads_ruby_sdk/preprocessors/order_spec.rb +0 -130
  29. data/spec/bing_ads_ruby_sdk/services/bulk_spec.rb +0 -51
  30. data/spec/bing_ads_ruby_sdk/services/campaign_management_spec.rb +0 -314
  31. data/spec/bing_ads_ruby_sdk/services/customer_management_spec.rb +0 -96
  32. data/spec/bing_ads_ruby_sdk_spec.rb +0 -5
  33. data/spec/examples/1_customer_creation/customer_spec.rb +0 -35
  34. data/spec/examples/2_with_customer/budget_spec.rb +0 -52
  35. data/spec/examples/2_with_customer/campaigns_spec.rb +0 -26
  36. data/spec/examples/2_with_customer/customer_management_spec.rb +0 -188
  37. data/spec/examples/2_with_customer/uet_tags_spec.rb +0 -42
  38. data/spec/examples/3_with_uet_tag/conversion_goal_spec.rb +0 -40
  39. data/spec/examples/3_with_uet_tag/uet_tags_spec.rb +0 -56
  40. data/spec/examples/4_with_conversion_goal/conversion_goals_spec.rb +0 -76
  41. data/spec/examples/5_with_campaign/ad_extension_spec.rb +0 -235
  42. data/spec/examples/5_with_campaign/ad_group_spec.rb +0 -34
  43. data/spec/examples/5_with_campaign/campaign_criterions_spec.rb +0 -72
  44. data/spec/examples/5_with_campaign/campaign_spec.rb +0 -70
  45. data/spec/examples/6_with_ad_group/ad_group_spec.rb +0 -70
  46. data/spec/examples/6_with_ad_group/ads_spec.rb +0 -110
  47. data/spec/examples/6_with_ad_group/keywords_spec.rb +0 -105
  48. data/spec/examples/examples.rb +0 -75
  49. data/spec/fixtures/bulk/download_campaigns_by_account_ids/standard.xml +0 -23
  50. data/spec/fixtures/bulk/download_campaigns_by_account_ids/standard_response.xml +0 -11
  51. data/spec/fixtures/bulk/get_bulk_download_status/standard.xml +0 -14
  52. data/spec/fixtures/bulk/get_bulk_download_status/standard_response.xml +0 -15
  53. data/spec/fixtures/campaign_management/add_ad_extensions/standard.xml +0 -21
  54. data/spec/fixtures/campaign_management/add_ad_extensions/standard_response.xml +0 -17
  55. data/spec/fixtures/campaign_management/add_conversion_goals/standard.xml +0 -27
  56. data/spec/fixtures/campaign_management/add_conversion_goals/standard_response.xml +0 -14
  57. data/spec/fixtures/campaign_management/add_shared_entity/standard.xml +0 -16
  58. data/spec/fixtures/campaign_management/add_shared_entity/standard_response.xml +0 -13
  59. data/spec/fixtures/campaign_management/add_uet_tags/standard.xml +0 -19
  60. data/spec/fixtures/campaign_management/add_uet_tags/standard_response.xml +0 -21
  61. data/spec/fixtures/campaign_management/get_ad_extension_ids_by_account_id/standard.xml +0 -15
  62. data/spec/fixtures/campaign_management/get_ad_extension_ids_by_account_id/standard_response.xml +0 -13
  63. data/spec/fixtures/campaign_management/get_ad_extensions_associations/standard.xml +0 -19
  64. data/spec/fixtures/campaign_management/get_ad_extensions_associations/standard_response.xml +0 -47
  65. data/spec/fixtures/campaign_management/get_budgets_by_ids/standard.xml +0 -12
  66. data/spec/fixtures/campaign_management/get_budgets_by_ids/standard_response.xml +0 -20
  67. data/spec/fixtures/campaign_management/get_campaigns_by_account_id/standard.xml +0 -14
  68. data/spec/fixtures/campaign_management/get_campaigns_by_account_id/standard_response.xml +0 -84
  69. data/spec/fixtures/campaign_management/get_conversion_goals_by_ids/standard.xml +0 -18
  70. data/spec/fixtures/campaign_management/get_conversion_goals_by_ids/standard_response.xml +0 -61
  71. data/spec/fixtures/campaign_management/get_shared_entities_by_account_id/standard.xml +0 -14
  72. data/spec/fixtures/campaign_management/get_shared_entities_by_account_id/standard_response.xml +0 -20
  73. data/spec/fixtures/campaign_management/get_shared_entity_associations_by_entity_ids/standard.xml +0 -18
  74. data/spec/fixtures/campaign_management/get_shared_entity_associations_by_entity_ids/standard_response.xml +0 -19
  75. data/spec/fixtures/campaign_management/get_uet_tags_by_ids/standard.xml +0 -16
  76. data/spec/fixtures/campaign_management/get_uet_tags_by_ids/standard_response.xml +0 -21
  77. data/spec/fixtures/campaign_management/set_ad_extensions_associations/standard.xml +0 -21
  78. data/spec/fixtures/campaign_management/set_ad_extensions_associations/standard_response.xml +0 -11
  79. data/spec/fixtures/campaign_management/set_shared_entity_associations/standard.xml +0 -21
  80. data/spec/fixtures/campaign_management/set_shared_entity_associations/standard_response.xml +0 -11
  81. data/spec/fixtures/campaign_management/update_conversion_goals/standard.xml +0 -27
  82. data/spec/fixtures/campaign_management/update_conversion_goals/standard_response.xml +0 -11
  83. data/spec/fixtures/campaign_management/update_uet_tags/standard.xml +0 -20
  84. data/spec/fixtures/campaign_management/update_uet_tags/standard_response.xml +0 -11
  85. data/spec/fixtures/customer_management/find_accounts_or_customers_info/standard.xml +0 -15
  86. data/spec/fixtures/customer_management/find_accounts_or_customers_info/standard_response.xml +0 -21
  87. data/spec/fixtures/customer_management/get_account/standard.xml +0 -14
  88. data/spec/fixtures/customer_management/get_account/standard_response.xml +0 -43
  89. data/spec/fixtures/customer_management/signup_customer/standard.xml +0 -30
  90. data/spec/fixtures/customer_management/signup_customer/standard_response.xml +0 -15
  91. data/spec/fixtures/customer_management/update_account/standard.xml +0 -19
  92. data/spec/fixtures/customer_management/update_account/standard_response.xml +0 -11
  93. data/spec/spec_helper.rb +0 -33
  94. data/spec/support/spec_helpers.rb +0 -46
@@ -1,14 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <soap:Envelope xmlns:ns0="https://bingads.microsoft.com/CampaignManagement/v13" xmlns:ns1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns2="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ns3="http://schemas.datacontract.org/2004/07/System" xmlns:ns4="https://adapi.microsoft.com" xmlns:ns5="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
3
- <soap:Header>
4
- <ns0:AuthenticationToken>***FILTERED***</ns0:AuthenticationToken>
5
- <ns0:DeveloperToken>***FILTERED***</ns0:DeveloperToken>
6
- <ns0:CustomerId>***FILTERED***</ns0:CustomerId>
7
- <ns0:CustomerAccountId>***FILTERED***</ns0:CustomerAccountId>
8
- </soap:Header>
9
- <soap:Body>
10
- <ns0:GetSharedEntitiesByAccountIdRequest>
11
- <ns0:SharedEntityType>NegativeKeywordList</ns0:SharedEntityType>
12
- </ns0:GetSharedEntitiesByAccountIdRequest>
13
- </soap:Body>
14
- </soap:Envelope>
@@ -1,20 +0,0 @@
1
- <?xml version="1.0"?>
2
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
3
- <s:Header>
4
- <h:TrackingId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v13">37faa802-0f8b-4478-9c5b-ca045a64677c</h:TrackingId>
5
- </s:Header>
6
- <s:Body>
7
- <GetSharedEntitiesByAccountIdResponse xmlns="https://bingads.microsoft.com/CampaignManagement/v13">
8
- <SharedEntities xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
9
- <SharedEntity i:type="NegativeKeywordList">
10
- <AssociationCount>0</AssociationCount>
11
- <ForwardCompatibilityMap xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/>
12
- <Id>229798145242911</Id>
13
- <Name>sdk list</Name>
14
- <Type>NegativeKeywordList</Type>
15
- <ItemCount>0</ItemCount>
16
- </SharedEntity>
17
- </SharedEntities>
18
- </GetSharedEntitiesByAccountIdResponse>
19
- </s:Body>
20
- </s:Envelope>
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <soap:Envelope xmlns:ns0="https://bingads.microsoft.com/CampaignManagement/v13" xmlns:ns1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns2="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ns3="http://schemas.datacontract.org/2004/07/System" xmlns:ns4="https://adapi.microsoft.com" xmlns:ns5="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
3
- <soap:Header>
4
- <ns0:AuthenticationToken>***FILTERED***</ns0:AuthenticationToken>
5
- <ns0:DeveloperToken>***FILTERED***</ns0:DeveloperToken>
6
- <ns0:CustomerId>***FILTERED***</ns0:CustomerId>
7
- <ns0:CustomerAccountId>***FILTERED***</ns0:CustomerAccountId>
8
- </soap:Header>
9
- <soap:Body>
10
- <ns0:GetSharedEntityAssociationsByEntityIdsRequest>
11
- <ns0:EntityIds>
12
- <ns1:long>349704435</ns1:long>
13
- </ns0:EntityIds>
14
- <ns0:EntityType>Campaign</ns0:EntityType>
15
- <ns0:SharedEntityType>NegativeKeywordList</ns0:SharedEntityType>
16
- </ns0:GetSharedEntityAssociationsByEntityIdsRequest>
17
- </soap:Body>
18
- </soap:Envelope>
@@ -1,19 +0,0 @@
1
- <?xml version="1.0"?>
2
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
3
- <s:Header>
4
- <h:TrackingId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v13">0b9ca013-9254-4f32-a88b-fa6c83eb0699</h:TrackingId>
5
- </s:Header>
6
- <s:Body>
7
- <GetSharedEntityAssociationsByEntityIdsResponse xmlns="https://bingads.microsoft.com/CampaignManagement/v13">
8
- <Associations xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
9
- <SharedEntityAssociation>
10
- <EntityId>349704435</EntityId>
11
- <EntityType>Campaign</EntityType>
12
- <SharedEntityId>223200992903993</SharedEntityId>
13
- <SharedEntityType>NegativeKeywordList</SharedEntityType>
14
- </SharedEntityAssociation>
15
- </Associations>
16
- <PartialErrors xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
17
- </GetSharedEntityAssociationsByEntityIdsResponse>
18
- </s:Body>
19
- </s:Envelope>
@@ -1,16 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <soap:Envelope xmlns:ns0="https://bingads.microsoft.com/CampaignManagement/v13" xmlns:ns1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns2="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ns3="http://schemas.datacontract.org/2004/07/System" xmlns:ns4="https://adapi.microsoft.com" xmlns:ns5="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
3
- <soap:Header>
4
- <ns0:AuthenticationToken>***FILTERED***</ns0:AuthenticationToken>
5
- <ns0:DeveloperToken>***FILTERED***</ns0:DeveloperToken>
6
- <ns0:CustomerId>***FILTERED***</ns0:CustomerId>
7
- <ns0:CustomerAccountId>***FILTERED***</ns0:CustomerAccountId>
8
- </soap:Header>
9
- <soap:Body>
10
- <ns0:GetUetTagsByIdsRequest>
11
- <ns0:TagIds>
12
- <ns1:long>96031109</ns1:long>
13
- </ns0:TagIds>
14
- </ns0:GetUetTagsByIdsRequest>
15
- </soap:Body>
16
- </soap:Envelope>
@@ -1,21 +0,0 @@
1
- <?xml version="1.0"?>
2
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
3
- <s:Header>
4
- <h:TrackingId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v13">2566fd81-b382-4b58-b62b-bd2d5184e15e</h:TrackingId>
5
- </s:Header>
6
- <s:Body>
7
- <GetUetTagsByIdsResponse xmlns="https://bingads.microsoft.com/CampaignManagement/v13">
8
- <UetTags xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
9
- <UetTag>
10
- <Description/>
11
- <Id>96031109</Id>
12
- <Name>updated SDK-test</Name>
13
- <TrackingNoScript>&lt;img src="//bat.bing.com/action/0?ti=96031109&amp;Ver=2" height="0" width="0" style="display:none; visibility: hidden;" /&gt;</TrackingNoScript>
14
- <TrackingScript>&lt;script&gt;(function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){var o={ti:"96031109"};o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")},n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function(){var s=this.readyState;s&amp;&amp;s!=="loaded"&amp;&amp;s!=="complete"||(f(),n.onload=n.onreadystatechange=null)},i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)})(window,document,"script","//bat.bing.com/bat.js","uetq");&lt;/script&gt;&lt;noscript&gt;&lt;img src="//bat.bing.com/action/0?ti=96031109&amp;Ver=2" height="0" width="0" style="display:none; visibility: hidden;" /&gt;&lt;/noscript&gt;</TrackingScript>
15
- <TrackingStatus>Unverified</TrackingStatus>
16
- </UetTag>
17
- </UetTags>
18
- <PartialErrors xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
19
- </GetUetTagsByIdsResponse>
20
- </s:Body>
21
- </s:Envelope>
@@ -1,21 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <soap:Envelope xmlns:ns0="https://bingads.microsoft.com/CampaignManagement/v13" xmlns:ns1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns2="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ns3="http://schemas.datacontract.org/2004/07/System" xmlns:ns4="https://adapi.microsoft.com" xmlns:ns5="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
3
- <soap:Header>
4
- <ns0:AuthenticationToken>***FILTERED***</ns0:AuthenticationToken>
5
- <ns0:DeveloperToken>***FILTERED***</ns0:DeveloperToken>
6
- <ns0:CustomerId>***FILTERED***</ns0:CustomerId>
7
- <ns0:CustomerAccountId>***FILTERED***</ns0:CustomerAccountId>
8
- </soap:Header>
9
- <soap:Body>
10
- <ns0:SetAdExtensionsAssociationsRequest>
11
- <ns0:AccountId>150168726</ns0:AccountId>
12
- <ns0:AdExtensionIdToEntityIdAssociations>
13
- <ns0:AdExtensionIdToEntityIdAssociation>
14
- <ns0:AdExtensionId>8177660966942</ns0:AdExtensionId>
15
- <ns0:EntityId>349704437</ns0:EntityId>
16
- </ns0:AdExtensionIdToEntityIdAssociation>
17
- </ns0:AdExtensionIdToEntityIdAssociations>
18
- <ns0:AssociationType>Campaign</ns0:AssociationType>
19
- </ns0:SetAdExtensionsAssociationsRequest>
20
- </soap:Body>
21
- </soap:Envelope>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0"?>
2
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
3
- <s:Header>
4
- <h:TrackingId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v13">29921349-7ed0-43e9-b9d8-15246bee3651</h:TrackingId>
5
- </s:Header>
6
- <s:Body>
7
- <SetAdExtensionsAssociationsResponse xmlns="https://bingads.microsoft.com/CampaignManagement/v13">
8
- <PartialErrors xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
9
- </SetAdExtensionsAssociationsResponse>
10
- </s:Body>
11
- </s:Envelope>
@@ -1,21 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <soap:Envelope xmlns:ns0="https://bingads.microsoft.com/CampaignManagement/v13" xmlns:ns1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns2="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ns3="http://schemas.datacontract.org/2004/07/System" xmlns:ns4="https://adapi.microsoft.com" xmlns:ns5="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
3
- <soap:Header>
4
- <ns0:AuthenticationToken>***FILTERED***</ns0:AuthenticationToken>
5
- <ns0:DeveloperToken>***FILTERED***</ns0:DeveloperToken>
6
- <ns0:CustomerId>***FILTERED***</ns0:CustomerId>
7
- <ns0:CustomerAccountId>***FILTERED***</ns0:CustomerAccountId>
8
- </soap:Header>
9
- <soap:Body>
10
- <ns0:SetSharedEntityAssociationsRequest>
11
- <ns0:Associations>
12
- <ns0:SharedEntityAssociation>
13
- <ns0:EntityId>349704435</ns0:EntityId>
14
- <ns0:EntityType>Account</ns0:EntityType>
15
- <ns0:SharedEntityId>223200992903993</ns0:SharedEntityId>
16
- <ns0:SharedEntityType>PlacementExclusionList</ns0:SharedEntityType>
17
- </ns0:SharedEntityAssociation>
18
- </ns0:Associations>
19
- </ns0:SetSharedEntityAssociationsRequest>
20
- </soap:Body>
21
- </soap:Envelope>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0"?>
2
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
3
- <s:Header>
4
- <h:TrackingId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v13">29921349-7ed0-43e9-b9d8-15246bee3651</h:TrackingId>
5
- </s:Header>
6
- <s:Body>
7
- <SetSharedEntityAssociationsResponse xmlns="https://bingads.microsoft.com/CampaignManagement/v13">
8
- <PartialErrors xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
9
- </SetSharedEntityAssociationsResponse>
10
- </s:Body>
11
- </s:Envelope>
@@ -1,27 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <soap:Envelope xmlns:ns0="https://bingads.microsoft.com/CampaignManagement/v13" xmlns:ns1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns2="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ns3="http://schemas.datacontract.org/2004/07/System" xmlns:ns4="https://adapi.microsoft.com" xmlns:ns5="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
3
- <soap:Header>
4
- <ns0:AuthenticationToken>***FILTERED***</ns0:AuthenticationToken>
5
- <ns0:DeveloperToken>***FILTERED***</ns0:DeveloperToken>
6
- <ns0:CustomerId>***FILTERED***</ns0:CustomerId>
7
- <ns0:CustomerAccountId>***FILTERED***</ns0:CustomerAccountId>
8
- </soap:Header>
9
- <soap:Body>
10
- <ns0:UpdateConversionGoalsRequest>
11
- <ns0:ConversionGoals>
12
- <ns0:ConversionGoal xsi:type="ns0:EventGoal">
13
- <ns0:ConversionWindowInMinutes>43200</ns0:ConversionWindowInMinutes>
14
- <ns0:CountType>Unique</ns0:CountType>
15
- <ns0:Id>46068449</ns0:Id>
16
- <ns0:Name>updated sdk test</ns0:Name>
17
- <ns0:Revenue>
18
- <ns0:Type>NoValue</ns0:Type>
19
- </ns0:Revenue>
20
- <ns0:TagId>96031109</ns0:TagId>
21
- <ns0:ActionExpression>contact_form</ns0:ActionExpression>
22
- <ns0:ActionOperator>Equals</ns0:ActionOperator>
23
- </ns0:ConversionGoal>
24
- </ns0:ConversionGoals>
25
- </ns0:UpdateConversionGoalsRequest>
26
- </soap:Body>
27
- </soap:Envelope>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0"?>
2
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
3
- <s:Header>
4
- <h:TrackingId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v13">10179ec3-7c67-4ee5-87fe-863d2044c32c</h:TrackingId>
5
- </s:Header>
6
- <s:Body>
7
- <UpdateConversionGoalsResponse xmlns="https://bingads.microsoft.com/CampaignManagement/v13">
8
- <PartialErrors xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
9
- </UpdateConversionGoalsResponse>
10
- </s:Body>
11
- </s:Envelope>
@@ -1,20 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <soap:Envelope xmlns:ns0="https://bingads.microsoft.com/CampaignManagement/v13" xmlns:ns1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns2="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ns3="http://schemas.datacontract.org/2004/07/System" xmlns:ns4="https://adapi.microsoft.com" xmlns:ns5="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
3
- <soap:Header>
4
- <ns0:AuthenticationToken>***FILTERED***</ns0:AuthenticationToken>
5
- <ns0:DeveloperToken>***FILTERED***</ns0:DeveloperToken>
6
- <ns0:CustomerId>***FILTERED***</ns0:CustomerId>
7
- <ns0:CustomerAccountId>***FILTERED***</ns0:CustomerAccountId>
8
- </soap:Header>
9
- <soap:Body>
10
- <ns0:UpdateUetTagsRequest>
11
- <ns0:UetTags>
12
- <ns0:UetTag>
13
- <ns0:Description/>
14
- <ns0:Id>96031109</ns0:Id>
15
- <ns0:Name>updated SDK-test</ns0:Name>
16
- </ns0:UetTag>
17
- </ns0:UetTags>
18
- </ns0:UpdateUetTagsRequest>
19
- </soap:Body>
20
- </soap:Envelope>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0"?>
2
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
3
- <s:Header>
4
- <h:TrackingId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v13">f73bfe6d-3e85-42ae-8912-93c684de36be</h:TrackingId>
5
- </s:Header>
6
- <s:Body>
7
- <UpdateUetTagsResponse xmlns="https://bingads.microsoft.com/CampaignManagement/v13">
8
- <PartialErrors xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
9
- </UpdateUetTagsResponse>
10
- </s:Body>
11
- </s:Envelope>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <soap:Envelope xmlns:ns0="https://bingads.microsoft.com/Customer/v13/Entities" xmlns:ns1="https://adapi.microsoft.com" xmlns:ns2="https://bingads.microsoft.com/Customer/v13/Exception" xmlns:ns3="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ns4="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns5="https://bingads.microsoft.com/Customer/v13" xmlns:ns6="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
3
- <soap:Header>
4
- <ns5:AuthenticationToken>***FILTERED***</ns5:AuthenticationToken>
5
- <ns5:DeveloperToken>***FILTERED***</ns5:DeveloperToken>
6
- <soap:CustomerId>***FILTERED***</soap:CustomerId>
7
- <soap:CustomerAccountId>***FILTERED***</soap:CustomerAccountId>
8
- </soap:Header>
9
- <soap:Body>
10
- <ns5:FindAccountsOrCustomersInfoRequest>
11
- <ns5:Filter>SDKTEST</ns5:Filter>
12
- <ns5:TopN>1</ns5:TopN>
13
- </ns5:FindAccountsOrCustomersInfoRequest>
14
- </soap:Body>
15
- </soap:Envelope>
@@ -1,21 +0,0 @@
1
- <?xml version="1.0"?>
2
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
3
- <s:Header>
4
- <h:TrackingId xmlns:h="https://bingads.microsoft.com/Customer/v13">37d18ec7-de78-4000-8a5d-ba4efadf1de0</h:TrackingId>
5
- </s:Header>
6
- <s:Body>
7
- <FindAccountsOrCustomersInfoResponse xmlns="https://bingads.microsoft.com/Customer/v13">
8
- <AccountInfoWithCustomerData xmlns:a="https://bingads.microsoft.com/Customer/v13/Entities" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
9
- <a:AccountInfoWithCustomerData>
10
- <a:CustomerId>1234</a:CustomerId>
11
- <a:CustomerName>SDKTEST updated</a:CustomerName>
12
- <a:AccountId>5678</a:AccountId>
13
- <a:AccountName>SDK account</a:AccountName>
14
- <a:AccountNumber>F118HLSM</a:AccountNumber>
15
- <a:AccountLifeCycleStatus>Active</a:AccountLifeCycleStatus>
16
- <a:PauseReason i:nil="true"/>
17
- </a:AccountInfoWithCustomerData>
18
- </AccountInfoWithCustomerData>
19
- </FindAccountsOrCustomersInfoResponse>
20
- </s:Body>
21
- </s:Envelope>
@@ -1,14 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <soap:Envelope xmlns:ns0="https://bingads.microsoft.com/Customer/v13/Entities" xmlns:ns1="https://adapi.microsoft.com" xmlns:ns2="https://bingads.microsoft.com/Customer/v13/Exception" xmlns:ns3="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ns4="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns5="https://bingads.microsoft.com/Customer/v13" xmlns:ns6="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
3
- <soap:Header>
4
- <ns5:AuthenticationToken>***FILTERED***</ns5:AuthenticationToken>
5
- <ns5:DeveloperToken>***FILTERED***</ns5:DeveloperToken>
6
- <soap:CustomerId>***FILTERED***</soap:CustomerId>
7
- <soap:CustomerAccountId>***FILTERED***</soap:CustomerAccountId>
8
- </soap:Header>
9
- <soap:Body>
10
- <ns5:GetAccountRequest>
11
- <ns5:AccountId>5678</ns5:AccountId>
12
- </ns5:GetAccountRequest>
13
- </soap:Body>
14
- </soap:Envelope>
@@ -1,43 +0,0 @@
1
- <?xml version="1.0"?>
2
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
3
- <s:Header>
4
- <h:TrackingId xmlns:h="https://bingads.microsoft.com/Customer/v13">17caa13f-9073-43f9-83fd-347bc3f44a26</h:TrackingId>
5
- </s:Header>
6
- <s:Body>
7
- <GetAccountResponse xmlns="https://bingads.microsoft.com/Customer/v13">
8
- <Account xmlns:a="https://bingads.microsoft.com/Customer/v13/Entities" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
9
- <a:BillToCustomerId>168403565</a:BillToCustomerId>
10
- <a:CurrencyCode>EUR</a:CurrencyCode>
11
- <a:AccountFinancialStatus>ClearFinancialStatus</a:AccountFinancialStatus>
12
- <a:Id>5678</a:Id>
13
- <a:Language>English</a:Language>
14
- <a:LastModifiedByUserId>131003009</a:LastModifiedByUserId>
15
- <a:LastModifiedTime>2019-01-16T14:39:45.443</a:LastModifiedTime>
16
- <a:Name>SDKTEST</a:Name>
17
- <a:Number>F1194A36</a:Number>
18
- <a:ParentCustomerId>9876</a:ParentCustomerId>
19
- <a:PaymentMethodId>131001762</a:PaymentMethodId>
20
- <a:PaymentMethodType i:nil="true"/>
21
- <a:PrimaryUserId>131003009</a:PrimaryUserId>
22
- <a:AccountLifeCycleStatus>Active</a:AccountLifeCycleStatus>
23
- <a:TimeStamp>AAAAAE496a4=</a:TimeStamp>
24
- <a:TimeZone>PacificTimeUSCanadaTijuana</a:TimeZone>
25
- <a:PauseReason i:nil="true"/>
26
- <a:ForwardCompatibilityMap xmlns:b="http://schemas.datacontract.org/2004/07/System.Collections.Generic" i:nil="true"/>
27
- <a:LinkedAgencies>
28
- <a:CustomerInfo>
29
- <a:Id>1234</a:Id>
30
- <a:Name>updated name</a:Name>
31
- </a:CustomerInfo>
32
- </a:LinkedAgencies>
33
- <a:SalesHouseCustomerId i:nil="true"/>
34
- <a:TaxInformation xmlns:b="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/>
35
- <a:BackUpPaymentInstrumentId i:nil="true"/>
36
- <a:BillingThresholdAmount i:nil="true"/>
37
- <a:BusinessAddress i:nil="true"/>
38
- <a:AutoTagType>Inactive</a:AutoTagType>
39
- <a:SoldToPaymentInstrumentId i:nil="true"/>
40
- </Account>
41
- </GetAccountResponse>
42
- </s:Body>
43
- </s:Envelope>
@@ -1,30 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <soap:Envelope xmlns:ns0="https://bingads.microsoft.com/Customer/v13/Entities" xmlns:ns1="https://adapi.microsoft.com" xmlns:ns2="https://bingads.microsoft.com/Customer/v13/Exception" xmlns:ns3="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ns4="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns5="https://bingads.microsoft.com/Customer/v13" xmlns:ns6="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
3
- <soap:Header>
4
- <ns5:AuthenticationToken>***FILTERED***</ns5:AuthenticationToken>
5
- <ns5:DeveloperToken>***FILTERED***</ns5:DeveloperToken>
6
- <soap:CustomerId>***FILTERED***</soap:CustomerId>
7
- <soap:CustomerAccountId>***FILTERED***</soap:CustomerAccountId>
8
- </soap:Header>
9
- <soap:Body>
10
- <ns5:SignupCustomerRequest>
11
- <ns5:Customer>
12
- <ns0:Industry>NA</ns0:Industry>
13
- <ns0:MarketCountry>FR</ns0:MarketCountry>
14
- <ns0:MarketLanguage>French</ns0:MarketLanguage>
15
- <ns0:Name>sdk customer</ns0:Name>
16
- <ns0:CustomerAddress>
17
- <ns0:City>Nice</ns0:City>
18
- <ns0:CountryCode>FR</ns0:CountryCode>
19
- <ns0:Line1>127 bd risso</ns0:Line1>
20
- <ns0:PostalCode>06000</ns0:PostalCode>
21
- </ns0:CustomerAddress>
22
- </ns5:Customer>
23
- <ns5:Account xsi:type="ns0:AdvertiserAccount">
24
- <ns0:CurrencyCode>EUR</ns0:CurrencyCode>
25
- <ns0:Name>SDK account</ns0:Name>
26
- </ns5:Account>
27
- <ns5:ParentCustomerId>9876</ns5:ParentCustomerId>
28
- </ns5:SignupCustomerRequest>
29
- </soap:Body>
30
- </soap:Envelope>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0"?>
2
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
3
- <s:Header>
4
- <h:TrackingId xmlns:h="https://bingads.microsoft.com/Customer/v13">8b29b0c2-3168-4eb2-acf4-bcfa1d744cad</h:TrackingId>
5
- </s:Header>
6
- <s:Body>
7
- <SignupCustomerResponse xmlns="https://bingads.microsoft.com/Customer/v13">
8
- <CustomerId>1234</CustomerId>
9
- <CustomerNumber>G11800KYC4</CustomerNumber>
10
- <AccountId>5678</AccountId>
11
- <AccountNumber>F118HLSM</AccountNumber>
12
- <CreateTime>2019-01-18T12:53:01.883</CreateTime>
13
- </SignupCustomerResponse>
14
- </s:Body>
15
- </s:Envelope>
@@ -1,19 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <soap:Envelope xmlns:ns0="https://bingads.microsoft.com/Customer/v13/Entities" xmlns:ns1="https://adapi.microsoft.com" xmlns:ns2="https://bingads.microsoft.com/Customer/v13/Exception" xmlns:ns3="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ns4="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns5="https://bingads.microsoft.com/Customer/v13" xmlns:ns6="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
3
- <soap:Header>
4
- <ns5:AuthenticationToken>***FILTERED***</ns5:AuthenticationToken>
5
- <ns5:DeveloperToken>***FILTERED***</ns5:DeveloperToken>
6
- <soap:CustomerId>***FILTERED***</soap:CustomerId>
7
- <soap:CustomerAccountId>***FILTERED***</soap:CustomerAccountId>
8
- </soap:Header>
9
- <soap:Body>
10
- <ns5:UpdateAccountRequest>
11
- <ns5:Account xsi:type="ns0:AdvertiserAccount">
12
- <ns0:CurrencyCode>EUR</ns0:CurrencyCode>
13
- <ns0:Id>5678</ns0:Id>
14
- <ns0:Name>SDKTEST updated</ns0:Name>
15
- <ns0:TimeStamp>AAAAAE496a4=</ns0:TimeStamp>
16
- </ns5:Account>
17
- </ns5:UpdateAccountRequest>
18
- </soap:Body>
19
- </soap:Envelope>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0"?>
2
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
3
- <s:Header>
4
- <h:TrackingId xmlns:h="https://bingads.microsoft.com/Customer/v13">a19fe953-1cb6-4012-93c3-7c4d442bb020</h:TrackingId>
5
- </s:Header>
6
- <s:Body>
7
- <UpdateAccountResponse xmlns="https://bingads.microsoft.com/Customer/v13">
8
- <LastModifiedTime>2019-01-18T13:16:38.827</LastModifiedTime>
9
- </UpdateAccountResponse>
10
- </s:Body>
11
- </s:Envelope>
data/spec/spec_helper.rb DELETED
@@ -1,33 +0,0 @@
1
- require "simplecov"
2
- require "dotenv/load"
3
- require "byebug"
4
-
5
- SimpleCov.start do
6
- add_filter "/spec/"
7
- end
8
-
9
- require "bing_ads_ruby_sdk"
10
-
11
- Dir[File.join(BingAdsRubySdk.root_path, "spec", "support", "**", "*.rb")].sort.each { |f| require f }
12
- Dir[File.join(BingAdsRubySdk.root_path, "log", "*.log")].sort.each do |log_file|
13
- File.open(log_file, "w") { |f| f.truncate(0) }
14
- end
15
-
16
- BingAdsRubySdk.configure do |conf|
17
- conf.log = true
18
- conf.logger.level = Logger::DEBUG
19
- conf.pretty_print_xml = true
20
- conf.filters = ["AuthenticationToken", "DeveloperToken", "CustomerId", "CustomerAccountId"]
21
- end
22
-
23
- RSpec.configure do |config|
24
- # Enable flags like --only-failures and --next-failure
25
- config.example_status_persistence_file_path = ".rspec_status"
26
-
27
- # Disable RSpec exposing methods globally on `Module` and `main`
28
- config.disable_monkey_patching!
29
-
30
- config.expect_with :rspec do |c|
31
- c.syntax = :expect
32
- end
33
- end
@@ -1,46 +0,0 @@
1
- module SpecHelpers
2
- def self.request_xml_for(service, action, filename)
3
- Nokogiri::XML(File.read(xml_path_for(service, action, filename)))
4
- end
5
-
6
- def self.response_xml_for(service, action, filename)
7
- File.read(xml_path_for(service, action, filename, false))
8
- end
9
-
10
- def self.fake_header
11
- OpenStruct.new(
12
- content: {
13
- "AuthenticationToken" => BingAdsRubySdk::LogMessage::FILTERED,
14
- "DeveloperToken" => BingAdsRubySdk::LogMessage::FILTERED,
15
- "CustomerId" => BingAdsRubySdk::LogMessage::FILTERED,
16
- "CustomerAccountId" => BingAdsRubySdk::LogMessage::FILTERED
17
- }
18
- )
19
- end
20
-
21
- def self.soap_client(service, header = fake_header)
22
- BingAdsRubySdk::SoapClient.new(
23
- service_name: service,
24
- version: BingAdsRubySdk::DEFAULT_SDK_VERSION,
25
- environment: "test",
26
- header: header
27
- )
28
- end
29
-
30
- def self.wrapper(service, action_name)
31
- soap_client(service).wsdl_wrapper(action_name)
32
- end
33
-
34
- def self.default_store
35
- ::BingAdsRubySdk::OAuth2::FsStore.new(ENV["BING_STORE_FILENAME"])
36
- end
37
-
38
- # default fixture for now is standard.xml but door is open to get more use cases
39
- def self.xml_path_for(service, action, filename, request = true)
40
- if request
41
- File.join(BingAdsRubySdk.root_path, "spec", "fixtures", service.to_s, action, "#{filename}.xml")
42
- else
43
- File.join(BingAdsRubySdk.root_path, "spec", "fixtures", service.to_s, action, "#{filename}_response.xml")
44
- end
45
- end
46
- end