def setUp(self): """Prepare unittest.""" if not self.__class__.loaded: advertiser_id = util.CreateTestAdvertiser(client, SERVER_V201206, VERSION_V201206) trafficker_id = util.GetTrafficker(client, SERVER_V201206, VERSION_V201206) order_id = util.CreateTestOrder(client, SERVER_V201206, VERSION_V201206, advertiser_id, trafficker_id) ad_unit_id = util.CreateTestAdUnit(client, SERVER_V201206, VERSION_V201206) placement_id = util.CreateTestPlacement(client, SERVER_V201206, VERSION_V201206, [ad_unit_id]) self.__class__.test_line_item_id = util.CreateTestLineItem( client, SERVER_V201206, VERSION_V201206, order_id, [placement_id]) self.__class__.test_drop_down_custom_field_id = ( util.CreateTestLineItemCustomField(client, SERVER_V201206, VERSION_V201206, 'DROP_DOWN')) self.__class__.loaded = True
def setUp(self): """Prepare unittest.""" if not self.__class__.loaded: advertiser = util.CreateTestAdvertiser(client, SERVER_V201206, VERSION_V201206) self.__class__.test_master_creative_id = util.CreateTestCreative( client, SERVER_V201206, VERSION_V201206, advertiser) self.__class__.test_companion_creative_id = util.CreateTestCreative( client, SERVER_V201206, VERSION_V201206, advertiser) self.__class__.loaded = True
def setUp(self): """Prepare unittest.""" if not self.__class__.loaded: advertiser_id = util.CreateTestAdvertiser(client, SERVER_V201211, VERSION_V201211) self.__class__.test_master_creative_id = util.CreateTestCreative( client, SERVER_V201211, VERSION_V201211, advertiser_id) self.__class__.test_companion_creative_id = util.CreateTestCreative( client, SERVER_V201211, VERSION_V201211, advertiser_id) trafficker_id = util.GetTrafficker(client, SERVER_V201211, VERSION_V201211) order_id = util.CreateTestOrder(client, SERVER_V201211, VERSION_V201211, advertiser_id, trafficker_id) ad_unit_id = util.CreateTestAdUnit(client, SERVER_V201211, VERSION_V201211) placement_id = util.CreateTestPlacement(client, SERVER_V201211, VERSION_V201211, [ad_unit_id]) self.__class__.test_line_item_id = util.CreateTestLineItem( client, SERVER_V201211, VERSION_V201211, order_id, [placement_id]) self.__class__.loaded = True
def setUp(self): """Prepare unittest.""" if not self.__class__.loaded: self.__class__.test_advertiser_id = util.CreateTestAdvertiser( client, SERVER_V201206, VERSION_V201206) self.__class__.loaded = True