コード例 #1
0
        // 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);
        }
コード例 #2
0
        // 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);
        }
コード例 #3
0
        // 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;
        }
コード例 #4
0
        // 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;
        }