|
||||||
Hi, Anjali.
Have there been any updates?
I am running out of time to resolve this in before it starts impacting other projects.
Thanks,
-David
From: 'Ad Manager API Forum Advisor' via Google Ad Manager API Forum <google-doubleclick...@googlegroups.com>
Sent: Friday, August 19, 2022 3:54 AM
To: google-doubleclick...@googlegroups.com
Subject: [External] RE: .NET NuGet package Config file structure changes?
CAUTION: This email originated from outside of the organization. This message might not be safe, use caution in opening it. If in doubt, do not open the attachment nor links in the message.
--
You received this message because you are subscribed to the Google Groups "Google Ad Manager API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
google-doubleclick-for-p...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-doubleclick-for-publishers-api/bmGaq000000000000000000000000000000000000000000000RGURAJ00IKVohVrSQECOuZyUGvQ7ww%40sfdc.net.
Thanks, Anash. That helps tremendously.
But now I’m running into an execution problem. When I try to create a new Google.Api.Ads.AdManager.Lib.AdManagerUser():

The version of Google.Apis.Core that I have installed for this VS project is 1.57.0, not 1.49.0, and the config files had no reference to 1.49.0 of Google.Apis.Core, only to 1.57.0. I found a few references to Google.Apis version I found for Google.Apis in some config files, and manually changed them to 1.57.0 because that’s the version actually installed, and it didn’t help.
Here’s the stack trace:
at Google.Api.Ads.Common.OAuth.AdsOAuthProviderImpl..ctor(AppConfig config)
at Google.Api.Ads.Common.Lib.AdsUser.SetOAuthProvider(AppConfigBase config)
at Google.Api.Ads.Common.Lib.AdsUser..ctor(AppConfigBase config, Dictionary`2 headers)
at Google.Api.Ads.AdManager.Lib.AdManagerUser..ctor()
at GoogleDoubleClickBrowser.GoogleDoubleClickQuerier.LoadCredentials(String NetworkCode) in ...\GoogleDoubleClickReporting\GoogleDoubleClickAPI.cs:line 309
Again, I’ve updated Google.Dfp from 24.16.0 to 24.20.0, and Google.Ads.Common from 9.5.1 to 9.5.2.
These are the Google packages I have installed:

(I generally update BouncyCastle last, after confirming everything works without the update, as in the past some updates to it have been incompatible with Google.Dfp.)
I’ve tried making it redownload all of the packages from NuGet, and even tried making it reinstall first some that Visual Studio produced warnings for as being meant for older versions of .NET Framework than I’m using (currently using 4.8), and the Google ones, and this hasn’t made any difference.
Any thoughts on what might be causing it to look for 1.49.0?
Thanks,
-David
To view this discussion on the web visit https://groups.google.com/d/msgid/google-doubleclick-for-publishers-api/9e76f262-bafa-4c1f-9b3f-a83437f939dcn%40googlegroups.com.
I found these:
<dependentAssembly>
<assemblyIdentity name="Google.Apis" publicKeyToken="4b01fa6e34db77ab" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.57.0.0" newVersion="1.57.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Google.Apis.Core" publicKeyToken="4b01fa6e34db77ab" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.57.0.0" newVersion="1.57.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Google.Ads.Common" publicKeyToken="52807268f2b614dc" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
</dependentAssembly>
<dependentAssembly>
The 1.57.0.0 is correct; it matches what I have installed.
I had found an entry for Google.Apis which inappropriately referred to 1.49.0.0, but not for Google.Apis.Core.
That said… Google.Ads.Common should be 9.5.2.0, not 8.0.0.0.
I also found this in the config file of a different application, that I’d updated at the same time:
<dependentAssembly>
<assemblyIdentity name="Google.Apis.PlatformServices" publicKeyToken="4b01fa6e34db77ab" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.16.0.0" newVersion="1.16.0.0" />
</dependentAssembly>
I don’t even have a package called Google.Apis.PlatformServices installed.
Should I be just removing these entries entirely rather than trying to update them?
To view this discussion on the web visit https://groups.google.com/d/msgid/google-doubleclick-for-publishers-api/dd76bea3-701c-4672-ad12-2abb09746dbcn%40googlegroups.com.
Commenting out the <dependentAssembly> entries for Google-related libraries seems to have resolved the problem.
What makes this strange is that it produced errors even when the version numbers in the <bindingRedirect> tags referencing Google.Apis and Google.Apis.Core matched the installed versions of the NuGet packages.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-doubleclick-for-publishers-api/9320269e-b490-4732-8fc3-d469a727392fn%40googlegroups.com.