From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

# Copyright (C) 2012 Xerxes Tsang
# This program is free software; you can redistribute it and/or modify it
# under the terms of Perl Artistic License.
use strict;
use base qw/Test::Class/;
sub test_can_create_ad_and_set_all_fields : Test(5) {
my $ad = Microsoft::AdCenter::V8::CampaignManagementService::Ad->new
->EditorialStatus('editorial status')
->Id('id')
->Status('status')
->Type('type')
;
ok($ad);
is($ad->EditorialStatus, 'editorial status', 'can get editorial status');
is($ad->Id, 'id', 'can get id');
is($ad->Status, 'status', 'can get status');
is($ad->Type, 'type', 'can get type');
};
1;