Sha256: 4556d6d5c1fc1c5fd52723ea0b0742bb259e6038b961d1fd243a867e9733021b
Contents?: true
Size: 1.23 KB
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bing_ads_ruby_sdk-1.5.0 | spec/examples/2_with_customer/uet_tags_spec.rb |