Hi, Could you help to give us more details? Does that mean such fields cannot be updated? What is the correct way to update geotargettypesetting?
I have the old version that is exact same request but working. The only difference between those two calls are version of Google.Ads.GoogleAds (6.1.0 is working, 8.0.0 is not working) Here is log from Google.Ads.GoogleAds version 6.1.0 GoogleAds.SummaryRequestLogs Information: 1 : [2021-05-18 02:18:23Z] - Request made: Host: https://googleads.googleapis.com, Method: /google.ads.googleads.v6.services.CampaignBudgetService/MutateCampaignBudgets, ClientCustomerID: 6360593950, RequestID: kXb253t9PecpCcBQM5WBKg, IsFault: False, FaultMessage: GoogleAds.DetailedRequestLogs Verbose: 1 : [2021-05-18 02:18:24Z] - ---------------BEGIN API CALL--------------- Request ------- Method Name: /google.ads.googleads.v6.services.CampaignService/MutateCampaigns Host: https://googleads.googleapis.com Headers: { "x-goog-api-client": "gl-dotnet/3.1.0 gapic/6.1.0 gax/3.2.0+002f6637d17e4170f5db7ec7ca6f0163e6df1481 grpc/2.34.1", "developer-token": "REDACTED", "login-customer-id": "1148637041", "x-goog-request-params": "customer_id=6360593950" } { "customerId": "6360593950", "operations": [ { "update": { "resourceName": "customers/6360593950/campaigns/13137364073", "status": "PAUSED", "networkSettings": { "targetGoogleSearch": true, "targetSearchNetwork": false, "targetContentNetwork": false, "targetPartnerSearchNetwork": false }, "biddingStrategyType": "TARGET_SPEND", "targetSpend": { "cpcBidCeilingMicros": "20000000" }, "geoTargetTypeSetting": { "positiveGeoTargetType": "PRESENCE", "negativeGeoTargetType": "PRESENCE_OR_INTEREST" }, "name": "20684562497588_Test_5/18/2021 2:18:11 AM", "campaignBudget": "customers/6360593950/campaignBudgets/8714330844" }, "updateMask": "resourceName,status,networkSettings.targetGoogleSearch,networkSettings.targetSearchNetwork,networkSettings.targetContentNetwork,networkSettings.targetPartnerSearchNetwork,biddingStrategyType,targetSpend.cpcBidCeilingMicros,geoTargetTypeSetting.positiveGeoTargetType,geoTargetTypeSetting.negativeGeoTargetType,name,campaignBudget" } ] } Response -------- Headers: { "content-disposition": "attachment", "request-id": "S4odQ1k1ay4Jtjax_tdDrA", "date": "Tue, 18 May 2021 02:18:24 GMT", "alt-svc": "h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" } { "results": [ { "resourceName": "customers/6360593950/campaigns/13137364073" } ] } ----------------END API CALL---------------- Here is the API call from newer version of Google.Ads.GoogleAds which is 8.0.0 ---------------BEGIN API CALL--------------- Request ------- Method Name: /google.ads.googleads.v7.services.CampaignService/MutateCampaigns Host: https://googleads.googleapis.com Headers: { "x-goog-api-client": "gl-dotnet/3.1.0 gapic/8.0.0 gax/3.2.0+002f6637d17e4170f5db7ec7ca6f0163e6df1481 grpc/2.36.4", "developer-token": "REDACTED", "login-customer-id": "1148637041", "x-goog-request-params": "customer_id=6360593950" } { "customerId": "6360593950", "operations": [ { "update": { "resourceName": "customers/6360593950/campaigns/13067065853", "status": "PAUSED", "networkSettings": { "targetGoogleSearch": true, "targetSearchNetwork": false, "targetContentNetwork": false, "targetPartnerSearchNetwork": false }, "biddingStrategyType": "TARGET_SPEND", "targetSpend": { "cpcBidCeilingMicros": "20000000" }, "geoTargetTypeSetting": { "positiveGeoTargetType": "PRESENCE", "negativeGeoTargetType": "PRESENCE_OR_INTEREST" }, "name": "20684562497537_Test_5/12/2021 9:56:38 PM", "campaignBudget": "customers/6360593950/campaignBudgets/8692794868" }, "updateMask": "resourceName,status,networkSettings.targetGoogleSearch,networkSettings.targetSearchNetwork,networkSettings.targetContentNetwork,networkSettings.targetPartnerSearchNetwork,biddingStrategyType,targetSpend.cpcBidCeilingMicros,geoTargetTypeSetting,name,campaignBudget" } ] } Response -------- Headers: { "request-id": "_5HTLbS2njDbZdQyI3GShg", "date": "Wed, 12 May 2021 21:56:52 GMT", "alt-svc": "h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"", "google.ads.googleads.v7.errors.googleadsfailure-bin": "CmEKAkADEklUaGUgZmllbGQgbWFzayB1cGRhdGVkIGEgZmllbGQgd2l0aCBzdWJmaWVsZHM6ICdnZW9fdGFyZ2V0X3R5cGVfc2V0dGluZycuIhASDgoKb3BlcmF0aW9ucxgAEhZfNUhUTGJTMm5qRGJaZFF5STNHU2hn", "grpc-status-details-bin": "CAMSJVJlcXVlc3QgY29udGFpbnMgYW4gaW52YWxpZCBhcmd1bWVudC4awgEKQ3R5cGUuZ29vZ2xlYXBpcy5jb20vZ29vZ2xlLmFkcy5nb29nbGVhZHMudjcuZXJyb3JzLkdvb2dsZUFkc0ZhaWx1cmUSewphCgJAAxJJVGhlIGZpZWxkIG1hc2sgdXBkYXRlZCBhIGZpZWxkIHdpdGggc3ViZmllbGRzOiAnZ2VvX3RhcmdldF90eXBlX3NldHRpbmcnLiIQEg4KCm9wZXJhdGlvbnMYABIWXzVIVExiUzJuakRiWmRReUkzR1NoZw==" } Fault: { "StatusCode": 3, "Details": "Request contains an invalid argument.", "RequestId": "_5HTLbS2njDbZdQyI3GShg", "Failure": { "errors": [ { "errorCode": { "fieldMaskError": "FIELD_HAS_SUBFIELDS" }, "message": "The field mask updated a field with subfields: 'geo_target_type_setting'.", "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 } ] } } ], "requestId": "_5HTLbS2njDbZdQyI3GShg" } } ----------------END API CALL---------------- Thanks, Ting On Thursday, May 13, 2021 at 7:30:15 AM UTC-7 adsapiforumadvisor wrote: > Hello, > > The documentation for this error states that "fields with subfields may be > cleared, but not updated". As you are attempting to update the > field, GeoTargetTypeSetting, which has subfields, positive_geo_target_type > and negative_geo_target_type, this conflicts with the error description, > that states such fields may not be updatd. > > Regards, > > Matt > Google Ads API Team > > [image: Google Logo] > Matt > Google Ads API Team > > > ref:_00D1U1174p._5004Q2H9vXr:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "AdWords API and Google Ads 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/42d429a3-4e3f-4f3c-8316-1b08c5747b7fn%40googlegroups.com.
