Hi,
I'm using .NET sdk to create and update a Google Campaign and met the
following issue:
I'm using the following way to create a campaign with MaxClicks bidding
scheme and everything goes well:
*campaign.BiddingStrategyType = BiddingStrategyType.TargetSpend;*
*campaign.TargetSpend = new TargetSpend();*
However, when I try to update a campaign (without any actual) like:
*campaign.ResourceName = campaignResourceName;*
*campaign.BiddingStrategyType = BiddingStrategyType.TargetSpend;*
*campaign.TargetSpend = new TargetSpend();*
The API returns the *error*:
errors": [
{
"errorCode": {
"*fieldMaskError*": "FIELD_HAS_SUBFIELDS"
},
"*message*": "The field mask updated a field with subfields: '
target_spend'.",
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
}
]
But I don't receive the error when setting
"*campaign.TargetSpend.CpcBidCeilingMicros"
*to some value in the update call.
I'm using the following way to call:
* return new CampaignOperation()*
* {*
* Update = CampaignToUpdate,*
* UpdateMask = FieldMasks.AllSetFieldsOf(CampaignToUpdate)*
* };*
Is the behavior expected?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ced1ea0a-e8ae-4cfd-bece-4333f1b1a096n%40googlegroups.com.