// Get one or more ad group estimated bids corresponding to placement of your ad in the targeted position. private async Task <AdGroupEstimatedBid> GetAdGroupEstimatedBidByKeywordsAsync(Currency currency, IList <KeywordAndMatchType> keywordAndMatchTypes, string language, IList <string> publisherCountries, TargetAdPosition targetPositionForAds) { var request = new GetEstimatedBidByKeywordsRequest { Currency = currency, GetBidsAtLevel = 2, // Set GetBidsAtLevel to 2 to get one AdGroupEstimatedBid. Keywords = keywordAndMatchTypes, Language = language, PublisherCountries = publisherCountries, TargetPositionForAds = targetPositionForAds }; return((await Service.CallAsync((s, r) => s.GetEstimatedBidByKeywordsAsync(r), request)).AdGroupEstimatedBid); }
// Get one or more keyword estimated bids corresponding to placement of your ad in the targeted position. private async Task <IEnumerable <KeywordEstimatedBid> > GetKeywordEstimatedBidByKeywordsAsync(Currency currency, KeywordAndMatchType[] keywordAndMatchTypes, string language, string[] publisherCountries, TargetAdPosition targetPositionForAds) { var request = new GetEstimatedBidByKeywordsRequest { Currency = currency, GetBidsAtLevel = 0, // Set GetBidsAtLevel to 0 to get a list of KeywordEstimatedBid. Keywords = keywordAndMatchTypes, Language = language, PublisherCountries = publisherCountries, TargetPositionForAds = targetPositionForAds }; return((await Service.CallAsync((s, r) => s.GetEstimatedBidByKeywordsAsync(r), request)).KeywordEstimatedBids); }
// Get one or more ad group estimated bids corresponding to placement of your ad in the targeted position. private async Task<AdGroupEstimatedBid> GetAdGroupEstimatedBidByKeywordsAsync(Currency currency, IList<KeywordAndMatchType> keywordAndMatchTypes, string language, IList<string> publisherCountries, TargetAdPosition targetPositionForAds) { var request = new GetEstimatedBidByKeywordsRequest { Currency = currency, GetBidsAtLevel = 2, // Set GetBidsAtLevel to 2 to get one AdGroupEstimatedBid. Keywords = keywordAndMatchTypes, Language = language, PublisherCountries = publisherCountries, TargetPositionForAds = targetPositionForAds }; return (await Service.CallAsync((s, r) => s.GetEstimatedBidByKeywordsAsync(r), request)).AdGroupEstimatedBid; }
// Get one or more keyword estimated bids corresponding to placement of your ad in the targeted position. private async Task<IEnumerable<KeywordEstimatedBid>> GetKeywordEstimatedBidByKeywordsAsync(Currency currency, KeywordAndMatchType[] keywordAndMatchTypes, string language, string[] publisherCountries, TargetAdPosition targetPositionForAds) { var request = new GetEstimatedBidByKeywordsRequest { Currency = currency, GetBidsAtLevel = 0, // Set GetBidsAtLevel to 0 to get a list of KeywordEstimatedBid. Keywords = keywordAndMatchTypes, Language = language, PublisherCountries = publisherCountries, TargetPositionForAds = targetPositionForAds }; return (await Service.CallAsync((s, r) => s.GetEstimatedBidByKeywordsAsync(r), request)).KeywordEstimatedBids; }