When executing a request 
SELECT campaign_group.id, campaign.name, campaign.advertising_channel_type, 
campaign.target_spend.cpc_bid_ceiling_micros FROM campaign WHERE campaign.id 
= 'campaign.id' 

Everything is ok. We receive a response.

[{
    "results": [{
        "campaign": {
            "resourceName": "customers/65****09/campaigns/20****20",
            "advertisingChannelType": "SEARCH",
            "targetSpend": {
                "cpcBidCeilingMicros": "60000000"
            },
            "name": "Закрытие фирмы (Чехия)"
        }
    }],
    "fieldMask": 
"campaignGroup.id,campaign.name,campaign.advertisingChannelType,campaign.targetSpend.cpcBidCeilingMicros",
    "requestId": "3n9KA_ExPA1OalS83JHPuw",
    "queryResourceConsumption": "136"
}]

But the mutation does not pass this request:
{ "operations": [ { "update": { "resourceName": 
"customers/**********/campaigns/"***********, "maximizeConversions": { 
"targetCpaMicros": 58000000 } }, "updateMask": 
"maximizeConversions.targetCpaMicros" } ] }

We get an error:
{
    "error": {
        "code": 400,
        "message": "Invalid JSON payload received. Unknown name 
\"maximizeConversions\" at 'operations[0].update': Cannot find field.",
        "status": "INVALID_ARGUMENT",
        "details": [{
            "@type": "type.googleapis.com/google.rpc.BadRequest",
            "fieldViolations": [{
                "field": "operations[0].update",
                "description": "Invalid JSON payload received. Unknown name 
\"maximizeConversions\" at 'operations[0].update': Cannot find field."
            }]
        }]
    }
}

пятница, 7 марта 2025 г. в 18:27:15 UTC+2, Google Ads API Forum Advisor: 

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> The error message states: "Invalid JSON payload received. Unknown name 
> 'targetSpend' at 'operations[0].update': Cannot find field." This indicates 
> that you are attempting to update a field that does not exist.
>
> I recommend that before updating any field, you first verify whether the 
> field exists and has a corresponding value. You can use the following GAQL 
> query to check: 
>
>
> SELECT campaign_group.id, campaign.name, campaign.advertising_channel_type, 
> campaign.target_spend.cpc_bid_ceiling_micros 
> FROM campaign WHERE campaign.id = 'campaign.id' 
>
> Based on the information provided, it appears you are trying to update the 
> Maximum Conversions target cost-per-click. You may try the following sample 
> request: 
>
>
> {
>   "operations": [
>     {
>       "update": {
>         "resourceName": "customers/**********/campaigns/"***********,
>         "maximizeConversions": {
>           "targetCpaMicros": 58000000
>           
>         }
>         
>       },
>       "updateMask": "maximizeConversions.targetCpaMicros"
>       
>     }
>     
>   ]
>   
> }
>
> If you still face any issues even after following the above suggestions, 
> kindly share the *latest* complete API logs (request 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>  and response 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>  with request-id 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>  and request header 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>)
>  
> generated at your end.
>
> If you are using a client library and haven't enabled the logging yet, I 
> would request you to enable logging for the specific client library that 
> you are using. You can refer to the guides Java 
> <https://developers.google.com/google-ads/api/docs/client-libs/java/logging>
> , .Net 
> <https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging>
> , PHP 
> <https://developers.google.com/google-ads/api/docs/client-libs/php/logging>
> , Python 
> <https://developers.google.com/google-ads/api/docs/client-libs/python/logging>
> , Ruby 
> <https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging>
>  or Perl 
> <https://developers.google.com/google-ads/api/docs/client-libs/perl/logging> 
> to 
> enable logging at your end. For REST interface requests, you can enable 
> logging via the curl command by using the -i flag.
>
> You can send the details via *Reply privately to the author option*, or 
> *direct 
> private reply* to this email. 
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
> Feedback
> How was our support today? 
>
> [image: rating1] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=1&entry.295079254=5004Q00002vH75gQAC>
>   
>   [image: rating2] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=2&entry.295079254=5004Q00002vH75gQAC>
>   
>   [image: rating3] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=3&entry.295079254=5004Q00002vH75gQAC>
>   
>   [image: rating4] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=4&entry.295079254=5004Q00002vH75gQAC>
>   
>   [image: rating5] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=5&entry.295079254=5004Q00002vH75gQAC>
> [2025-03-07 16:26:18Z GMT] This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02vH75g:ref" (ADR-00292245)
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 visit 
https://groups.google.com/d/msgid/adwords-api/92f48b1c-f070-485f-84de-64d360c1733bn%40googlegroups.com.
  • Ma... Сергей Александрович
    • ... Сергей Александрович
      • ... Сергей Александрович
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
    • ... Сергей Александрович

Reply via email to