Re: fieldMaskError: "FIELD_HAS_SUBFIELDS" when updating campaign bidding strategy

2021-11-10 Thread quan zhang
Hi Ernie,

Thanks for your reply. One more follow-up question. Can I set the  
c*ampaign.TargetSpend.CpcBidCeilingMicros 
= long.MAXVALUE  *instead of 0 if I don't want to have the bid ceiling? 
Setting to 0 still gives me the error I showed in my original post

Quan

On Tuesday, 9 November 2021 at 21:19:52 UTC-8 adsapi wrote:

> Hi Quan,
>
> Thank you for the reply. I am also a member of the Google Ads API team and 
> let me provide support to your concern.
>
> Yes, you may try to set 0 to that field. Let me know how it goes after.
>
> Regards,
>
> Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 
> 2021 
> Google Ads API and AdWords API Annual Survey 
> 
>   
> [image: Google Logo] 
> Ernie John Blanca Tacata 
> Google Ads API Team 
>   
>  
>
> ref:_00D1U1174p._5004Q2NUqn4: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 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 
"AdWords API and Google Ads 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/1412b29f-0a87-4dee-b3ab-27676b4b13f2n%40googlegroups.com.


Re: fieldMaskError: "FIELD_HAS_SUBFIELDS" when updating campaign bidding strategy

2021-11-09 Thread quan zhang
Hi,

What is the default value of the  *campaign.TargetSpend.CpcBidCeilingMicros 
? * It seems I must set some value to bypass this issue. Can I put the 
value to be 0 if I don't want to specify a  *CpcBidCeilingMicros ?*

Thanks,
Quan

On Thursday, 16 September 2021 at 23:32:01 UTC-7 adsapi wrote:

> Hi Quan,
>
> In order for our team to take a closer look at the error you encountered, 
> could you also provide the complete request 
> 
>  
> and response 
> 
>  
> logs, with the request-id 
> 
> ?
>
> If you haven't yet, logging can be enabled by navigating to the *Client 
> libraries > Your client library (ex. Java) > Logging* documentation, 
> which you can access from this link 
> . 
> For .NET, you can check out this other link 
> 
>  
> instead.
>
> You may then send the requested information via the *Reply privately to 
> author* option. If this option is not available, you may send the details 
> directly to our googleadsa...@google.com alias instead.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2NUqn4: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 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 
"AdWords API and Google Ads 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/b301227c-4d9e-4462-836f-9ccf13b0789cn%40googlegroups.com.


Re: TargetCpaMicros vs TargetCpa

2021-11-01 Thread quan zhang
Hi,

I got an error message "TOO_LOW" after setting the  
campaign.MaximizeConversions.TargetCpa 

 value 
to 10. Is this expected?

Thanks,
Quan

On Thursday, 21 October 2021 at 02:30:20 UTC-7 adsapi wrote:

> Hi Quan,
>
>  
>
> Thanks for reaching out to the Google Ads API Team.
>
>  
>
> If you would like to set $10 as the value for 
> campaign.MaximizeConversions.TargetCpa 
> ,
>  
> then you should input 10 as its value. Let me know how it goes after trying 
> the provided suggestion.
>
>  
>
> Regards,
> [image: Google Logo] 
> Kevin Gil Soriano 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2QDquk: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 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 
"AdWords API and Google Ads 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/823f75f9-3400-49fc-ba9e-f3b356602fa3n%40googlegroups.com.


TargetCpaMicros vs TargetCpa

2021-10-20 Thread quan zhang
Hi,

I'm working on switching from the TargetCpa bidding to MaxConversions 
bidding scheme (with a target CPA value) based on this link:  
https://support.google.com/google-ads/answer/10353027

In the original Target CPA bidding scheme, there is a *TargetCpaMicros  *field 
in *'campaign.TargetCpa.TargetCpaMicros'. *Say I want to set my target cpa 
to $10, I will need to set the *TargetCpaMicros *value to 10 * 100 (the 
micro factor).

When switching to the MaxConversions bidding scheme, I saw there is a TargetCpa 
field in *campaign.MaximizeConversions.*TargetCpa (without "Micros" in the 
field name).

I have some confusion here. Let's say I also want to set the target cpa 
value to $10 in the MaxConversion bidding scheme, my question is that 
should I set the *campaign.MaximizeConversions.*TargetCpa to 10 or 10 * 
100 ?

Thanks,
Quan

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/26be89ff-4bc6-4523-8c92-329edffcbe35n%40googlegroups.com.


fieldMaskError: "FIELD_HAS_SUBFIELDS" when updating campaign bidding strategy

2021-09-16 Thread 'Quan Zhang' via AdWords API and Google Ads API Forum
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 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 
"AdWords API and Google Ads 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/ced1ea0a-e8ae-4cfd-bece-4333f1b1a096n%40googlegroups.com.