Пример #1
0
        // Associates the specified campaign and target.
        private void SetTargetToCampaignAsync(long campaignId, long targetId)
        {
            var request = new SetTargetToCampaignRequest
            {
                CampaignId = campaignId,
                TargetId   = targetId
            };

            Service.CallAsync((s, r) => s.SetTargetToCampaignAsync(r), request);
        }
        // Associates the specified campaign and target.
        private async Task SetTargetToCampaignAsync(long campaignId, long targetId)
        {
            var request = new SetTargetToCampaignRequest
            {
                CampaignId         = campaignId,
                TargetId           = targetId,
                ReplaceAssociation = true
            };

            await Service.CallAsync((s, r) => s.SetTargetToCampaignAsync(r), request);
        }
Пример #3
0
        // Associates the specified campaign and target. 
        private void SetTargetToCampaignAsync(long campaignId, long targetId)
        {
            var request = new SetTargetToCampaignRequest
            {
                CampaignId = campaignId,
                TargetId = targetId
            };

            Service.CallAsync((s, r) => s.SetTargetToCampaignAsync(r), request);
        }