10. Dezember 2021

· Whitepaper

UpdateSection

Inhaltsverzeichnis

xx Kapitel

Ändern eines Abschnittes

RequestParameter: UpdateSectionRequest
ResponseParameter: UpdateSectionResponse

Mit Hilfe dieser Methode können Sie einen bestehenden Abschnitt einer Kampagne ändern. Für die Verwaltung von Bildern der Mediendatenbank verwenden Sie das Web-Service MediaService.

Das Request-Objekt besitzt folgende Felder zur Steuerung der Abfrage:

Campaign Die Kampagne, welche den Abschnitt beinhaltet.
Section Der zu ändernde Abschnitt.

Das Response-Objekt enthält keine Informationen.

UpdateCentralSection

Beispiel Request „Abschnitt ändern“

C#

//Create an instance of the service agent 
ServiceAgent agent = new ServiceAgent(); 

//get the campaigns in work 
CampaignsRequest campaignRequest = new CampaignsRequest(); 
campaignRequest.SecurityContext = GetSecurityContext(); 
campaignRequest.Language = "DE"; 
campaignRequest.Type = CampaignType.InWork; 
campaignRequest.ResponseDetail = 
    CampaignResponseDetailInfo.BasicInformation | 
    CampaignResponseDetailInfo.Sections; 
CampaignsResponse campaignResponse =  
    agent.GetCampaigns(campaignRequest); 

//select central section for update 
Section updSection = campaignResponse.Campaigns[0].Sections[0]; 
//make changes to section 
updSection.Created = DateTime.Now; 
 
//create request 
UpdateSectionRequest updRequest =  
    new UpdateSectionRequest(); 
updRequest.SecurityContext = GetSecurityContext(); 
updRequest.Section = updSection;
updRequest.Campaign = campaignResponse.Campaigns[0]; 
 
//update the section 
UpdateSectionResponse updResponse =  
    agent.UpdateSection(updRequest);

Need Support?

Can't find the answer you're looking for?
Contact Support