As can be seen in the current (2023-07-31) documentation <https://developers.google.com/google-ads/api/docs/keyword-planning/generate-forecast-metrics>, there's currently no C# demo code. I've been trying to work it out anyway and am getting very close. However, I've hit a snag.
I've done the OAuth2 without difficulty. When I come to the actual GenerateKeywordForecastMetrics request I get the following error: "User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header. See https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid" I have checked and re-checked that I have the correct login-customer-id. I have enabled trace via TraceUtilities.Configure( TraceUtilities.DETAILED_REQUEST_LOGS_SOURCE, $@"C:\logs\{Me}_{DateTime.Now:yyyy'-'MM'-'dd'-'HH'-'mm'-'ss'-'ff}_trace.log", System.Diagnostics.SourceLevels.All); and the output is clearly showing that the login-customer-id is being correctly supplied. Am currently clueless on how to progress. Helpful suggestions welcome. -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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/b438c855-c7da-42a1-8422-f5b8c2df1dc9n%40googlegroups.com.
