Thanks for your reply

Request-id: LWPZzJZS1MzPNqPOxyPtgA


Request :Sending post content to 
https://googleads.googleapis.com/v15/customers/8401942066/campaigns:mutate 
: 
{"partialFailure":false,"operations":[{"update":{"maximizeConversions":{"targetCpaMicros":"100000"},"resourceName":"customers/8401942066/campaigns/21122737618"},"updateMask":"maximizeConversions.targetCpaMicros"}],"responseContentType":"MUTABLE_RESOURCE","validateOnly":true}

Response: {
"body": {
"l": "{\n \"error\": {\n \"code\": 400,\n \"message\": \"Request contains 
an invalid argument.\",\n \"status\": \"INVALID_ARGUMENT\",\n \"details\": 
[\n {\n \"@type\": 
\"type.googleapis.com/google.ads.googleads.v15.errors.GoogleAdsFailure\",\n 
\"errors\": [\n {\n \"errorCode\": {\n \"contextError\": 
\"OPERATION_NOT_PERMITTED_FOR_CONTEXT\"\n },\n \"message\": \"The operation 
is not allowed for the given context.\",\n \"location\": {\n 
\"fieldPathElements\": [\n {\n \"fieldName\": \"operations\",\n \"index\": 
0\n },\n {\n \"fieldName\": \"update\"\n },\n {\n \"fieldName\": 
\"maximize_conversions\"\n },\n {\n \"fieldName\": \"target_cpa_micros\"\n 
}\n ]\n }\n }\n ],\n \"requestId\": \"LWPZzJZS1MzPNqPOxyPtgA\"\n }\n ]\n 
}\n}\n"
},
"code": 400,
"status_text": "Bad Request",
"headers": [
{
"name": "Transfer-Encoding",
"value": "chunked"
},
{
"name": "Alt-Svc",
"value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"
},
{
"name": "Server",
"value": "ESF"
},
{
"name": "X-Content-Type-Options",
"value": "nosniff"
},
{
"name": "Date",
"value": "Fri, 22 Mar 2024 01:20:16 GMT"
},
{
"name": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"name": "Cache-Control",
"value": "private"
},
{
"name": "Content-Encoding",
"value": "gzip"
},
{
"name": "Vary",
"value": "Referer"
},
{
"name": "Vary",
"value": "X-Origin"
},
{
"name": "Vary",
"value": "Origin"
},
{
"name": "X-XSS-Protection",
"value": "0"
},
{
"name": "Request-Id",
"value": "LWPZzJZS1MzPNqPOxyPtgA"
},
{
"name": "Content-Type",
"value": "application/json; charset=UTF-8"
}
],
"history": [],
"request": {
"method": "POST",
"uri": {
"scheme": "https",
"authority": {
"host_segment": {
"v": "googleads.googleapis.com",
"encoding": {}
}
},
"path_segments": {
"segments": [
{
"v": "v15",
"encoding": {}
},
{
"v": "customers",
"encoding": {}
},
{
"v": "8401942066",
"encoding": {}
},
{
"v": "campaigns:mutate",
"encoding": {}
}
]
},
"query_segments": [],
"absolute": true,
"relative": false
},
"headers": [
{
"name": "Accept-Encoding",
"value": "gzip, deflate"
},
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Content-Length",
"value": "275"
},
{
"name": "developer-token",
"value": "mpoXG2hU6yBfE5cly5FQuw"
},
{
"name": "login-customer-id",
"value": "8421237550"
},
{
"name": "Authorization",
"value": "Bearer 
ya29.a0Ad52N3_NFoO8W-xcxlfqVppXftuO3QEN_aP_TUy8_AOT3qdQZt-i5j6oK9W8g5c9AQkNfha1Au9AQsrgB4Yim7VBrkrTnt68ol0fv04ACIiufzGO5d_3vM8zrDeY_IT5nfypCm7GQnAyHf5_8zcdtGlp_bDrAQkngqbKrwaCgYKAVISARASFQHGX2MiOkvFgGT9BTxYSJ9eoEwFjQ0173"
},
{
"name": "Cookie",
"value": ""
}
]
},
"success": false,
"client_error": true,
"server_error": false,
"redirect": false,
"200": false
}

在2024年3月21日星期四 UTC+9 23:44:23<Google Ads API Forum Advisor> 写道:

> Hi,
>
> Upon checking the provided logs, I would like to inform you that the logs 
> that you have provided are incomplete and do not contain the request 
> header 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>
>  and 
> customer ID in them. So, In order to debug your issue further, kindly 
> provide us with the 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.
>
> Also, I would recommend you refer to the documents Campaign-level 
> Conversion Goals 
> <https://developers.google.com/google-ads/api/performance-max/conversion-goals>
>  and 
> custom_conversion_goal 
> <https://developers.google.com/google-ads/api/fields/v16/custom_conversion_goal>
>  
> to get more information on how to create customConversionGoals for your 
> campaign.
>
>
> You can send the details via the *Reply** privately to the author option* or 
> a *direct private reply* to this email. 
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02s03Jb:ref" (ADR-00227828)
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>  
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6eca1c88-0008-4086-b175-0c5618f304een%40googlegroups.com.
  • us... Jingqiang Liu
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Jingqiang Liu
      • ... Jingqiang Liu
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
          • ... Jingqiang Liu
            • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to