public void UpdatePushCreative() { PushAdCreative creative = PushAdCreative.Create(15491UL, 16690UL, 30654UL, 100UL, new AdAction(0U)); creative.Name = "PushCreative测试1111111111111"; creative.AdType = AdTypes.Text; creative.TargetUrl = "http://www.adsage.com?channel=apn"; creative.Content = "{\"title\":\"标题\", \"text1\":\"第一行文字\",\"text2\" : \"第二行文字\" , \"icon\":\"http://xxx.png\", \"displayurl\":\"http://www.adsage.com\",}"; DateTime dateTime = new DateTime(2013, 8, 31, 23, 59, 59); creative.ExpireDate = dateTime; creative.Monitor = "{\"imp\" : [\"http://trc.adsage.com/i.gif\",\"http://trc.adsage.com/i2.gif\"],\"click\" : [\"http://trc.adsage.com/i.gif\",\"http://trc.adsage.com/i2.gif\"],\"imp_lpg\":[],\"cli_lpg\":[],\"down\":[],\"install\":[]}"; creative.Status = AdStatus.Launching; creative.Ext = "{\"template\" : \"http://xxx.xml\",\"displaytype\" : 1,\"cache_item\" : [\"ext.template\", \"content.icon\"], \"layouttype\" : 2,\"preload\" : 1,\"packagename\" : \"com.soqu.demo\",\"isautoopen\" : 1,\"impfilter\" : 1,\"priority\":210,}"; creative.Size.ImageSizeId = 0; _adPushCreativeData = ConverterFactory.GetAdPushCreativeConverter().ConvertToNetworkObject(creative); UpdateAdPushCreativeByIdProcessor processor = new UpdateAdPushCreativeByIdProcessor(); FakedBusinessTransaction transaction = new FakedBusinessTransaction(); transaction.Request = new UpdateAdPushCreativeByIdRequestMessage { UserId = 9083, AccountId = 6340, Data = _adPushCreativeData }; processor.Process(transaction); UpdateAdPushCreativeByIdResponseMessage rspMsg = (UpdateAdPushCreativeByIdResponseMessage)transaction.Response; }