LoadFromConfigurationRoot not available in latest Nuget package

128 views
Skip to first unread message

Cynthia Parrondo

unread,
May 5, 2023, 8:42:30 AM5/5/23
to Google Ads API and AdWords API Forum
Hi, Google Ads API Team

Last week our IT crew try to update our developments to the last GoogleAdsAPI version uploaded ( v: 16.0.0)

The way to establish GoogleAdsConfig has changed, but the method LoadFromConfigurationRoot can not be used because it does not exist in the API.

Is out IT team doing it wrong or does de API need to be fixed?

Thanks!
Regards!

Google Ads API Forum Advisor

unread,
May 5, 2023, 1:51:03 PM5/5/23
to cynthia....@jot-im.com, adwor...@googlegroups.com
Hello Cynthia,

Welcome to Google Ads API Support team. Thank you for reaching out to us.

You mentioned that the Google Ads API version you are using is in ( v: 16.0.0). However, our latest version for API is only v13.1 as can be seen here https://developers.google.com/google-ads/api/docs/release-notes.

Moreover, you have mentioned about LoadFromConfigurationRoot method, which seem to be used in .Net client library as indicated here https://developers.google.com/google-ads/api/docs/client-libs/dotnet/configuration.

Having said that, can you elaborate more on what is the exact issue with the API? And if you are solely using a .NET client library for your issue? Additionally, are you encountering any kind of errors on your end? If so, can you provide the complete request and response logs with request id and request header generated on your end.

Note that these logs can be requested or provided to the developer handling the Google Ads API transactions when logging of the API requests has been enabled. You may check here (https://developers.google.com/google-ads/api/docs/best-practices/logging#client_library_logging) and click your client library for the specific guideline to enable it.

For REST interface requests, you can enable logging via the curl command by using the -i flag. This will cause the tool to include the HTTP response headers in the output.

Links to the highlighted words above:
You may send the requested details privately via "Reply To Author" option. If that option is not available to you, send it directly to googleadsa...@google.com instead and let us know here once it is provided.

Regards,
Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2lAd3f:ref

Cynthia Parrondo

unread,
May 8, 2023, 7:03:29 AM5/8/23
to Google Ads API and AdWords API Forum
Hello again,

Thanks for your response,

As I mention the v 16.0.0 version of Google.Ads.GoogleAds is the latest Nuget Package for .NET developers that can be seen here (https://www.nuget.org/packages/Google.Ads.GoogleAds ) and it was uploaded 11 days ago. (Image_1.png)

The way in which the GoogleAdsConfig may be configured has changed and must be created in the way that is commented here https://developers.google.com/google-ads/api/docs/client-libs/dotnet/configuration. (Image_2.png)
The method LoadFromConfigurationRoot is underlined in red because it is not defined and accessible (Image_3.png)

Our team also checked Google.Ads.GoogleAds solution shared in GitHub (https://github.com/googleads/google-ads-dotnet). The class GoogleAdsConfig.cs is located in Google.Ads.GoogleAds.Core does not contain any method defined  here: https://developers.google.com/google-ads/api/docs/client-libs/dotnet/configuration

Due to the fact that this method does not exist, there is no way of sharing any log.

Thanks!
Regards!
Image_2.png
Image_3.png
Image_1.png

Google Ads API Forum Advisor

unread,
May 8, 2023, 12:48:16 PM5/8/23
to cynthia....@jot-im.com, adwor...@googlegroups.com

Hi Cynthia, 

Thanks for reaching out to the Google Ads API Team. I hope you are doing well today.

With regards to your concern, for us to further check, could you please try to use the recommended version of .Net (v15) for Google Ads API v13? If the issue still persists, please provide the complete (request and response with request-id) logs with request ID generated as shown in the respective links?

If you haven't enabled logging yet, it can be enabled by navigating to the Client libraries > Your client library (ex. .Net) > Logging documentation, which you can access from this link. For REST interface requests, you can enable logging via the curl command by using the -i flag. This will cause the tool to include the HTTP response headers in the output.

Furthermore, for additional information, please see the Google Ads API: Client Libraries for supported versions and the Google Ads API: The .NET Client Library and Configuration full documentation and guidelines.

Reference links:


Have a great day.

Regards,

Cynthia Parrondo

unread,
May 8, 2023, 12:52:56 PM5/8/23
to Google Ads API and AdWords API Forum
Thanks!

We still have our applications in .Net (v15) and it works.
I hope this issue will be resolved in future versions.

Have a great day.

Regards

Google Ads API Forum Advisor

unread,
May 8, 2023, 5:48:05 PM5/8/23
to cynthia....@jot-im.com, adwor...@googlegroups.com

Hi Cynthia,

Thanks for getting back with us.

Thanks for letting us know that your application still works with the .NET (V15). If you have any more questions related to Google Ads API, don't hesitate to contact us.

Links included in this email:


Regards

Reply all
Reply to author
Forward
0 new messages