customers.campaignConversionGoals.mutate does not support responseContentType

24 views
Skip to first unread message

胡海麟

unread,
May 18, 2023, 6:10:28 AM5/18/23
to Google Ads API and AdWords API Forum
Hi,

I noticed that customers.campaignConversionGoals.mutate does not support responseContentType.
Since most of the apis support responseContentType, the behavior is a little bit hard to handle.

Is there any auto-detected way to tell if an api does support responseContentType or not?
I'm also interested in the reason why campaignConversionGoals/mutate doesn't support responseContentType.

Thank you.

Google Ads API Forum Advisor

unread,
May 19, 2023, 5:20:31 AM5/19/23
to h...@unicorn.inc, adwor...@googlegroups.com

Hello,

Thank you for reaching out to Google Ads API Forum.

Upon checking the documentation (https://developers.google.com/google-ads/api/rest/reference/rest/v13/customers.campaignConversionGoals/mutate), it appears that only “update” operation is possible on a campaign conversion goal.

As per this guide (https://developers.google.com/google-ads/api/rest/reference/rest/v13/ResponseContentType), responseContentType determines the returned format or resource name of the mutated resource, whether the mutable resource or just the resource name should be returned as a response

Since the update operation in customers.campaignConversionGoals.mutate is expected to have a valid resource name, this is probably why responseContentType is not available as a field in the request body. Furthermore, there is no way to auto-detect if this field is supported in particular mutate operation. With this, I would suggest checking our documentation (https://developers.google.com/google-ads/api/rest/reference/rest) for reference if this field is supported.

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2lJCBI:ref
Reply all
Reply to author
Forward
0 new messages