/// <summary> /// Returns the list of CampaignSharedSets that match the query. /// /// @param query The SQL-like AWQL query string /// @returns A list of CampaignSharedSets /// @throws ApiException when the query is invalid or there are errors processing the request. /// </summary> public async Task <CampaignSharedSetPage> QueryAsync(string query) { var binding = new CampaignSharedSetServiceSoapBinding("https://adwords.google.com/api/adwords/cm/v201609/CampaignSharedSetService", _config.AccessToken, _config.Timeout, _config.EnableGzipCompression, _netUtil, _logger); var inData = new SoapData <CampaignSharedSetServiceRequestHeader, CampaignSharedSetServiceQuery>(); inData.Header = new CampaignSharedSetServiceRequestHeader(); AssignHeaderValues(inData.Header); inData.Body = new CampaignSharedSetServiceQuery(); inData.Body.Query = query; var outData = await binding.QueryAsync(inData).ConfigureAwait(false); return(outData.Body.Rval); }
/// <summary> /// Applies the list of mutate operations. /// @param operations the operations to apply /// @return the modified list of CampaignSharedSet associations /// @throws ApiException /// </summary> public async Task <CampaignSharedSetReturnValue> MutateAsync(IEnumerable <CampaignSharedSetOperation> operations) { var binding = new CampaignSharedSetServiceSoapBinding("https://adwords.google.com/api/adwords/cm/v201609/CampaignSharedSetService", _config.AccessToken, _config.Timeout, _config.EnableGzipCompression, _netUtil, _logger); var inData = new SoapData <CampaignSharedSetServiceRequestHeader, CampaignSharedSetServiceMutate>(); inData.Header = new CampaignSharedSetServiceRequestHeader(); AssignHeaderValues(inData.Header); inData.Body = new CampaignSharedSetServiceMutate(); inData.Body.Operations = new List <CampaignSharedSetOperation>(operations); var outData = await binding.MutateAsync(inData).ConfigureAwait(false); return(outData.Body.Rval); }