Sha256: b39bac678ae2f0b4380bd9774a0f7520db1cdd4bbd268deebc5ce8fdca597c62
Contents?: true
Size: 996 Bytes
Versions: 1
Compression:
Stored size: 996 Bytes
Contents
describe ::PPC::API::Baidu::Report do auth = {} auth[:username] = $baidu_username auth[:password] = $baidu_password auth[:token] = $baidu_token Test_report_id = [] it 'can get real time report' do param = { type: 'plan', level:'plan',range:'plan',unit:'week',device:'all' } response = ::PPC::API::Baidu::Report::get_realtime( auth, param, 'data' ) is_success( response ) end it 'can get professional report id' do param = { type: 'plan', level:'plan',range:'plan',unit:'week',device:'all' } response = ::PPC::API::Baidu::Report::get_id( auth, param ) is_success( response ) Test_report_id << response[:result] end it 'can get professional report status' do response = ::PPC::API::Baidu::Report::get_status( auth, Test_report_id[0] ) is_success( response ) end it 'can get professional report download URL' do response = ::PPC::API::Baidu::Report::get_file_url( auth, Test_report_id[0] ) is_success( response ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ppc-1.3.0 | spec/api_baidu_report_spec.rb |