コード例 #1
0
 public Task<Campaign> UpdateCampaign(Campaign campaign)
 {
     return campaign.PutToService(_token, _baseAddress, $"api/v1/campaigns/{campaign.Id}");
 } 
コード例 #2
0
        static void AddACampaignToACustomer(string baseAddress, string token, int customerId)
        {
            var campaignRepo = new CampaignRepository(baseAddress, token);
            
            "Create a campaign".ConsoleBlue();
            var campaign = campaignRepo.CreateCampaign(new Campaign
            {
                CampaignName = "Test Campaign",
                CampaignUrl = "http://www.mytestcustomer.com",
                CurrencyCode = "GBP",
                CustomerId = customerId,
                Product = "PPC"
            });

            campaign.Result?.PrintObjectToConsole();
            _campaign = campaign.Result;
        }
コード例 #3
0
 public Task<Campaign> CreateCampaign(Campaign campaign)
 {
     return campaign.PostToService(_token, _baseAddress, "api/v1/campaigns");
 }