We are in the process of migrating the .NET Nuget package for 
"Google.Ads.GoogleAds" from version "9.0.0" to version "11.0.1", and we use 
C#.

After doing so, we are now making a call like the following in order to 
update a Feed:

using Google.Ads.GoogleAds;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.Util;
using Google.Ads.GoogleAds.V10.Services;

// We load the Google.Ads.GoogleAds.V10.Resources.Feed into the "feed" 
variable here.
var operation = new FeedOperation() {
    Update = feed,
    UpdateMask = FieldMasks.AllSetFieldsOf(feed)
};
var googleAdsConfig = apiContext.GetAdsApiAppConfig();
var googleAdsClient = new GoogleAdsClient(googleAdsConfig);
FeedServiceClient serviceClient = 
googleAdsClient.GetService(Services.V10.FeedService);
long customerId = 0; // We are storing this customer ID on our end when we 
create the Feed, so the 0 here is just a placeholder.
MutateFeedsResponse response = await 
serviceClient.MutateFeedsAsync(customerId.ToString(), new 
List<FeedOperation>() { operation }, cancellationToken);

Upon running the MutateFeedsAsync method, we immediately get back the 
following error:

{"Status(StatusCode=\"InvalidArgument\", Detail=\"Request contains an 
invalid argument.\", 
DebugException=\"Grpc.Core.Internal.CoreErrorDetailException: 
{\"created\":\"@1651768123.016000000\",\"description\":\"Error received 
from peer 
ipv4:172.***.**.**:443\",\"file\":\"..\\..\\..\\src\\core\\lib\\surface\\call.cc\",\"file_line\":1070,\"grpc_message\":\"Request
 
contains an invalid argument.\",\"grpc_status\":3}\")"}

What is going on here? Updating feeds worked just fine previously, so what 
are we missing with v11.0.1 that is keeping us from updating Feeds?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 on the web visit 
https://groups.google.com/d/msgid/adwords-api/1ee92e04-476c-4154-91ca-5cb70bfcafa1n%40googlegroups.com.

Reply via email to