Hi, I'm using the V15 / v29 Google Ads API Client Library for Java and running this sample to get a CPC figure for a keyword I'm interested in:
HistoricalMetricsOptions options = HistoricalMetricsOptions.newBuilder ().setIncludeAverageCpc(true).build(); GenerateKeywordHistoricalMetricsRequest request = GenerateKeywordHistoricalMetricsRequest.newBuilder() .setCustomerId(String.valueOf(customerId)) .addAllKeywords(Arrays.asList("tennis racquets")) .addGeoTargetConstants(ResourceNames.geoTargetConstant(2036)) // australia .setKeywordPlanNetwork(KeywordPlanNetwork.GOOGLE_SEARCH) .setHistoricalMetricsOptions(options) .build(); try (KeywordPlanIdeaServiceClient keywordPlanIdeaServiceClient = googleAdsClient.getLatestVersion().createKeywordPlanIdeaServiceClient()) { GenerateKeywordHistoricalMetricsResponse response = keywordPlanIdeaServiceClient.generateKeywordHistoricalMetrics(request); for (GenerateKeywordHistoricalMetricsResult result : response.getResultsList()) { KeywordPlanHistoricalMetrics metrics = result.getKeywordMetrics(); System.out.println("cpc: " + metrics.getAverageCpcMicros() / 1000000f); What currency do the results use? How do I specify I want the CPC value to be expressed in USD or AUD? Thank you. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/93cc75c7-f59d-4c2f-9a16-76e2272ecd2fn%40googlegroups.com.