In the online documentation at 
https://developers.google.com/google-ads/api/reference/rpc/v18/HistoricalMetricsOptions#include_average_cpc
 
include_average_cpc it reads, "Indicates whether to include average cost 
per click value. Average CPC is provided only for legacy support."

What does "legacy support" mean in that context? 

At a few places in my code I'm requesting average cost per click, viz
            GenerateKeywordHistoricalMetricsRequest request =
                new GenerateKeywordHistoricalMetricsRequest()
                {
                    CustomerId = settings.CcId,
                    Keywords = { settings.Keywords },
                    GeoTargetConstants = { 
ResourceNames.GeoTargetConstant(geoConst) },
                    KeywordPlanNetwork = search,
                    Language = ResourceNames.LanguageConstant(langConst),
                    HistoricalMetricsOptions = new 
HistoricalMetricsOptions()
                    {
                        IncludeAverageCpc = true,
                        YearMonthRange = new YearMonthRange()
                        {
                            Start = new YearMonth()
                            {
                                Year = fromDateTime.Year,
                                Month = fromMonthOfYear
                            },
                            End = new YearMonth()
                            {
                                Year = toDateTime.Year,
                                Month = toMonthOfYear
                            }
                        }
                    }
                };
however I'm consistently receiving 
        "AverageCpcMicros": 0,
        "HasAverageCpcMicros": false
      },
on Ideas. At least on Stats I'm getting more meaningful results
          "AverageCpcMicros": 1350139,
          "HasAverageCpcMicros": true
        }

Or is the cast that Ideas don't have this stuff anymore?

-Bruce

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 visit 
https://groups.google.com/d/msgid/adwords-api/84a5a0d9-2c9b-4e8c-9bea-b49772d4eb51n%40googlegroups.com.
  • Le... Bruce Axtens
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to