bing-ads 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6090b37bc8ba04c730ccdaf96396de0867517f9e
4
- data.tar.gz: 1c4dd6e7269c5f0bc7f5a134bb03c01f6d99048f
3
+ metadata.gz: 18de2a2e0cc4687ee7613fce2c2b4dacee6acf4d
4
+ data.tar.gz: 126da153e589a1dc940b70d9324dc706720ec7c5
5
5
  SHA512:
6
- metadata.gz: 54ae03a0b3777a788ec84eb54eccef6224f301b87972cd65e070e127c80e93e1c04ba139a82ac83556a9a4a93b8d273dced509efb3290e5f0aaf74035f4c4bc1
7
- data.tar.gz: 3b39cbd525d60fb2c02a97dca546cad17e68895a5a3de8cc9d0df5ded672e2b6f7c5682f7a1016f6a4b324d59eb6099c203a8393189438aa6907205d4739ecc0
6
+ metadata.gz: 296bf590e0a3bf862f7f68acd567b6114fed65aceb1edac80782e42ec3f4ef7d9eab8b415de84f407a25b29fd2d2b9e385bcf576c8abbe7ee01c92d89beb9095
7
+ data.tar.gz: 5e2c09f5f68614fa9e9fc82de73f58823c7fb0ec55811b1e09a6e0ee4e34549b3428236f257f395e6a3265bd173df23234f8dd4b6cfde466676fb10032e7a16d
@@ -9,24 +9,31 @@ module Bing
9
9
  # @order
10
10
  # https://msdn.microsoft.com/en-us/library/bing-ads-campaign-management-ad.aspx
11
11
  KEYS_ORDER = [
12
+ :ad_format_preference,
12
13
  :device_preference,
13
14
  :editorial_status,
15
+ :final_app_urls,
16
+ :final_mobile_urls,
17
+ :final_urls,
14
18
  :forward_compatibility_map,
15
19
  :id,
16
20
  :status,
17
- :final_urls,
21
+ :tracking_url_template,
22
+ :url_custom_parameters,
18
23
  :path_1,
19
24
  :path_2,
20
25
  :text,
21
26
  :title_part_1,
22
- :title_part_2
27
+ :title_part_2,
28
+ :type
23
29
  ]
24
30
 
25
31
  def self.prepare(ad_raw)
26
32
  ad_raw['@xsi:type'] = "#{Bing::Ads::API::V11::NAMESPACE_IDENTIFIER}:#{ad_raw[:type]}"
33
+ # TODO FinalAppUrls
27
34
  ad_raw[:final_mobile_urls] = { 'ins1:string' => ad_raw[:final_mobile_urls] } if ad_raw[:final_mobile_urls]
28
35
  ad_raw[:final_urls] = { 'ins1:string' => ad_raw[:final_urls] } if ad_raw[:final_urls]
29
- # TODO FinalAppUrls
36
+ ad_raw.delete(:type)
30
37
  ad_raw = Bing::Ads::Utils.sort_keys(ad_raw, KEYS_ORDER)
31
38
  Bing::Ads::Utils.camelcase_keys(ad_raw)
32
39
  end
@@ -1,5 +1,5 @@
1
1
  module Bing
2
2
  module Ads
3
- VERSION = '0.1.5'
3
+ VERSION = '0.1.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bing-ads
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - oss92
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-22 00:00:00.000000000 Z
11
+ date: 2017-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon