googleads / googleads-adsense-examples

Samples for the AdSense Management API
Apache License 2.0
144 stars 192 forks source link

.AddMetric and .AddDimension is not working on .NET Framework platform #19

Open moceletsor opened 3 years ago

moceletsor commented 3 years ago

.AddMetric and .AddDimension is not working on .NET Framework platform, on .NET Core 5.0 .AddMetric and .AddDimension works well. Would you gimme anoyer solution how to add Metrics and Dimensions to API requset using .NET Framework platform 4.5 and above...

donovanfm commented 3 years ago

Hi, thanks for reporting this issue. The underlying problem is that the Google .NET client library that these examples use does not support repeated query parameters like Dimensions and Metrics in the AdSense Management API. I based the workaround (AddMetric and AddDimension) in these examples on this issue comment in that client library.

Can you provide the error message you're getting with .NET Framework platform?

moceletsor commented 3 years ago

I always recive Error 400 Bad Request from API on using your examples on .NET Framework platform. The same code on Core platform works well. Please see what is wrong.