Hi team,
Recently, we are upgrading our dotnet SDK from version 6.0 to 8.0 and also 
upgrading our service reference from V6 to V7. However for both version v6 
and v7, we found we cannot update GeoTargetTypeSetting fields under 
Campaign entity any more. This only happens on latest SDK, no matter V6 or 
V7. Do we know whether it is expected or not? If it is expected, how could 
I update the geotargettypesetting fields in campaign.

Here is the Entity We call MutateCampaignAsync:
{
  "update": {
    "resourceName": "customers/6360593950/campaigns/13044693813",
    "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": "20615843020866_Test_5/11/2021 4:48:11 AM",
    "campaignBudget": "customers/6360593950/campaignBudgets/8686102449"
  },
  "updateMask": 
"resourceName,status,networkSettings.targetGoogleSearch,networkSettings.targetSearchNetwork,networkSettings.targetContentNetwork,networkSettings.targetPartnerSearchNetwork,biddingStrategyType,targetSpend.cpcBidCeilingMicros,geoTargetTypeSetting,name,campaignBudget"
}

Here is the error I got:
{
  "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
          }
        ]
      }
    }
  ]
}

Thanks,
Ting

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/effccd21-93f9-4de5-8650-33198f3374b3n%40googlegroups.com.

Reply via email to