Hi,
Thank you for reaching out. Could you confirm if you wish to check if the
conversion_action.name already exists before saving? If yes, you could
check ConversionActionService
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.services#conversionactionservice>
and
use GetConversionAction method in order to check if the name already exists
before using MutateConversionActions.
Let me know if this answers your concern, feel free to write back if you
have any clarification.
Regards,
Dave Paurillo
Google Ads API Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
On 03/29/19 16:14:46 [email protected] wrote:
I've been wondering if there is a good way of retrieving the resource_name
of an object that already exists.
Say I am creating new conversion actions and realize, ohh the value already
exists. It would be nice to just get back the resource name and use that
name. The way I see it I would have to query for the resource name if I
encounter this particular error.
Fault: {
"errors": [
{
"errorCode": {
"conversionActionError": "DUPLICATE_NAME"
},
"message": "The specified conversion action name already exists.",
"trigger": {
"stringValue": "Call Conversion Action V2"
},
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": "0"
},
{
"fieldName": "create"
},
{
"fieldName": "name"
}
]
}
}
]
}
Cheers
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/fe9fbd71-79d9-4619-b965-c2b5c54050d2%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/fe9fbd71-79d9-4619-b965-c2b5c54050d2%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/18vg01800000000182lvc80002oksiz64mj2c9n6oo30c1g68qjie9h%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.