Sha256: 83ecdfa28a88dacf7b1baa66892052cdd3b66d81d448239f7ff334495b8e440d

Contents?: true

Size: 1.23 KB

Versions: 7

Compression:

Stored size: 1.23 KB

Contents

require_relative '../examples'

RSpec.describe 'CampaignManagement service' do
  include_context 'use api'

  describe 'UET methods' do
    subject(:add_uet_tags) do
      api.campaign_management.add_uet_tags(
        uet_tags: [
          uet_tag: {
            description: 'UET Tag Description',
            name: "Acceptance Test UET Tag #{random}",
          }
        ]
      )
    end

    describe '#add_uet_tags' do
      it 'returns a list of newly created UET tags' do
        uet_tags = add_uet_tags
        expect(uet_tags).to include(
          uet_tags: {
            uet_tag: [
              {
                description: 'UET Tag Description',
                id: a_kind_of(String),
                name: a_string_starting_with('Acceptance Test UET Tag'),
                tracking_no_script: a_string_starting_with("<img src=\"//bat.bing.com/action/"),
                tracking_script: a_string_starting_with('<script>(function(w,d,t,r,u)'),
                tracking_status: 'Unverified',
                customer_share: nil
              }
            ]
          },
          partial_errors: ''
        )

        puts "Please fill in examples.rb with uet_tag_id: #{uet_tags[:uet_tags][:uet_tag].first[:id]}"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bing_ads_ruby_sdk-1.3.4 spec/examples/2_with_customer/uet_tags_spec.rb
bing_ads_ruby_sdk-1.3.3 spec/examples/2_with_customer/uet_tags_spec.rb
bing_ads_ruby_sdk-1.3.2 spec/examples/2_with_customer/uet_tags_spec.rb
bing_ads_ruby_sdk-1.3.1 spec/examples/2_with_customer/uet_tags_spec.rb
bing_ads_ruby_sdk-1.3.0 spec/examples/2_with_customer/uet_tags_spec.rb
bing_ads_ruby_sdk-1.2.0 spec/examples/2_with_customer/uet_tags_spec.rb
bing_ads_ruby_sdk-1.1.1 spec/examples/2_with_customer/uet_tags_spec.rb