Sha256: 1445a441e023f9dbd6fbd7a25523a0cd57aebadfee5704036bfde882ee8988b4

Contents?: true

Size: 794 Bytes

Versions: 22

Compression:

Stored size: 794 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'helper'))

context "Mutating AdGroup Ads" do
  setup do
    run_with_rescue do
      SessionHelper.sales_coord.call_api CityGrid::API::Advertising::AdGroupAd,
        :mutate,
        "mutateOperationListResource" => [{
          "operator" => "ADD",
          "operand" => {
            "groupId" => "2861",
            "ad"=>{
              "type" =>"PERFORMANCE_AD",
              "tagline" => "myTagline",
              "imageUrl" => "http://some_url.com"
            }
          }
        }]
    end
  end
  should("not be empty"){ !topic.empty? }
  should("return code OK"){ topic.adGroupAds.first.response.code }.equals(200)
  should("return message OK") { topic.adGroupAds.first.response.message }.equals("OK")
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
citygrid_api-0.0.28 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.27 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.26 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.25 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.24 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.23 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.22 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.21 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.20 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.19 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.18 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.17 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.16 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.15 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.14 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.13 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.12 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.11 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.10 test/api/advertising/test_ad_group_ad.rb
citygrid_api-0.0.9 test/api/advertising/test_ad_group_ad.rb