Re: How to update a goals with Python?

2022-05-11 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hello Martin,

Thanks for replying back.
For us to investigate, could you please provide us with the complete request 
and response logs with request-id and request-header generated on your end, so 
that our team may take a closer look at the issue you’re experiencing.

For the client library, logging can be enabled by navigating to the Client 
libraries > Your client library (ex. python) > Logging documentation, which you 
can access from this link.

Please send the requested details via the Reply privately to the author option. 
If this option is not available, you may send the details directly to our 
googleadsapi-supp...@google.com alias by referring to this thread.

Best Regards,

Jakeia
Google Ads API Team
ref:_00D1U1174p._5004Q2XnXhh: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 
"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/A51jN0RBQ8XX002dFI2IzKSi2I0oAN5rzStQ%40sfdc.net.


Re: How to update a goals with Python?

2022-05-11 Thread san...@knorex.com
I can create customConversionGoal & attach to campaign.
How to remove/unlink custom conversion goal from that campaign?
I tried to clear custom_conversion_goal or set custom_conversion_goal="" 
but it give error:
Body: null
Failure message: errors {
  error_code {
field_mask_error: FIELD_MASK_MISSING
  }
  message: "Cannot use empty field mask in update operation."
  location {
field_path_elements {
  field_name: "operations"
  index: 0
}
  }
}
request_id: "M13bOYnsJhBglV8OdSMxJg"

On Friday, 11 March 2022 at 18:05:15 UTC+7 adsapi wrote:

> Hi there,
>
> Thanks for reaching out to the Google Ads API Forum.
>
> I am afraid that there is no sample code for custom conversion goals, and 
> how to update it to your campaign. However, to update the campaign's 
> *ConversionGoalCampaignConfig* 
> ,
>  
> setting the custom_conversion_goal to the resource name of the 
> CustomConversionGoal from the previous step, and setting the operation's 
> update_mask to custom_conversion_goal.
>
> You can find here 
> ,
>  
> the guide regarding conversion / campaign goals. This guide 
> 
>  
> then provides more information on how you may manage your campaign goals.
>
> You can then use the below services : 
>
>- CampaignConversionGoalService 
>
> 
>  
>- to manage your campaign goals 
>- CustomConversionGoalService 
>
> 
>  
>- for managing custom goals 
>- CustomerConversionGoalService 
>
> 
>  
>- to manage customer conversion goals 
>
> Let us know if you have any further questions.
>
> Regards,
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2XnXhh: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 
"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/a29833c6-9436-4074-b735-48e5eb3de501n%40googlegroups.com.


RE: How to update a goals with Python?

2022-03-11 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi there,

Thanks for reaching out to the Google Ads API Forum.

I am afraid that there is no sample code for custom conversion goals, and how 
to update it to your campaign. However, to update the campaign's 
ConversionGoalCampaignConfig, setting the custom_conversion_goal to the 
resource name of the CustomConversionGoal from the previous step, and setting 
the operation's update_mask to custom_conversion_goal.

You can find here, the guide regarding conversion / campaign goals. This guide 
then provides more information on how you may manage your campaign goals.

You can then use the below services :

CampaignConversionGoalService - to manage your campaign goals
CustomConversionGoalService - for managing custom goals
CustomerConversionGoalService - to manage customer conversion goals

Let us know if you have any further questions.

Regards,

Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2XnXhh: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 
"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/5MQtD0R8KURL00-ZRFfuuHQ8ilBAgawlWUQg%40sfdc.net.


How to update a goals with Python?

2022-03-10 Thread Kieran Eddy
 mutate_operation = client.get_type("MutateOperation")
conversion_goal_campaign_config = (
mutate_operation.conversion_goal_campaign_config.update
)
field_mask= 
protobuf_helpers.field_mask(None,conversion_goal_campaign_config._pb)
client.copy_from(
conversion_goal_campaign_config_operation.update_mask,field_mask
)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4c0b3ed9-38ee-4735-84f5-59862499b537n%40googlegroups.com.