Hello.

I removed the *TYPE* field, but the same error is being printed..



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
campaign create result
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

{ "results": [ { "resourceName": 
"customers/5209595745/campaigns/20431695985", "campaign": { "resourceName": 
"customers/5209595745/campaigns/20431695985", "status": "ENABLED", 
"adServingOptimizationStatus": "CONVERSION_OPTIMIZE", 
"advertisingChannelType": "MULTI_CHANNEL", "advertisingChannelSubType": 
"APP_CAMPAIGN", "networkSettings": { "targetGoogleSearch": true, 
"targetSearchNetwork": true, "targetContentNetwork": true, 
"targetPartnerSearchNetwork": false }, "targetCpa": { "targetCpaMicros": 
"10000000" }, "selectiveOptimization": { "conversionActions": [ 
"customers/5209595745/conversionActions/6604903346" ] }, 
"geoTargetTypeSetting": { "positiveGeoTargetType": "PRESENCE_OR_INTEREST" 
}, "appCampaignSetting": { "biddingStrategyGoalType": 
"OPTIMIZE_INSTALLS_TARGET_INSTALL_COST", "appStore": "GOOGLE_APP_STORE", 
"appId": "com.ucar.customer" }, "name": 
"nshangukin-campaign-20230806011407", "id": "20431695985", 
"campaignBudget": "customers/5209595745/campaignBudgets/12826816763", 
"startDate": "2023-08-06", "endDate": "2023-08-09" } } ] }



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
adGroupAds:mutate
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

*** Request ***

requestId : JCUSIJhKMdaZHu5cRW5osQ

$data = {'operations': [{'create': {'adGroup': 
'customers/5209595745/adGroups/152134082156','status': 'ENABLED','ad': 
{'name': 'nshangukin-creative-20230808093628','appAd': {'mandatoryAdText': 
{'text': '당신의 완벽한 파트너 UCAR'},'headlines': [{'text': '당신의 완벽한 파트너 UCAR_1' 
},{'text': '당신의 완벽한 파트너 UCAR_2' }],'descriptions': [{'text': '당신의 완벽한 파트너 
UCAR_3' },{'text': '당신의 완벽한 파트너 UCAR_4' }],'images': [{'asset': 
'customers/5209595745/assets/94980550759'},{'asset': 
'customers/5209595745/assets/94998755540'},{'asset': 
'customers/5209595745/assets/94998778472'}],'youtubeVideos': [{'asset': 
'customers/5209595745/assets/94999121435'},{'asset': 
'customers/5209595745/assets/95080787366'},{'asset': 
'customers/5209595745/assets/95063378173'}]}}}}],"partialFailure": 
false,"validateOnly": false,"responseContentType": "MUTABLE_RESOURCE"}

$app_url = 
"https://googleads.googleapis.com/v14/customers/".$GOOGLE_ADS_CUSTOMER_ID."/adGroupAds:mutate";;

$opts = array(
CURLOPT_URL => $app_url,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $data,
CURLOPT_HTTPHEADER => array("Content-Type: application/json", 
"Authorization: Bearer " . $access_token, "login-customer-id: 
".$GOOGLE_MASTER_CUSTOMER_ID, "developer-token: 
".$GOOGLE_ADS_DEVELOPER_TOKEN ) 
);

*** Reponse ***
{ "error": { "code": 400, "message": "Request contains an invalid 
argument.", "status": "INVALID_ARGUMENT", "details": [ { "@type": 
"type.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure", 
"errors": [ { "errorCode": { "fieldError": "VALUE_MUST_BE_UNSET" }, 
"message": "The field cannot be set.", "location": { "fieldPathElements": [ 
{ "fieldName": "operations", "index": 0 }, { "fieldName": "create" }, { 
"fieldName": "ad" }, { "fieldName": "app_ad" } ] } } ], "requestId": 
"JCUSIJhKMdaZHu5cRW5osQ" } ] } }

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



Thank you.

2023년 8월 7일 월요일 오후 11시 48분 11초 UTC+9에 Google Ads API Forum Advisor님이 작성:

> Hi,
>
> Thanks for getting back to us.
>
> Upon checking, I can see that you are trying to set a *TYPE* field in 
> your *adGroupAds:mutate* request. Please note that the* TYPE* field in 
> the Ad resource is *output only*, please refer to this documentation:
> *https://developers.google.com/google-ads/api/reference/rpc/v14/Ad#type* 
> <https://developers.google.com/google-ads/api/reference/rpc/v14/Ad#type>. 
> Can you please try removing this field from your request and submit your 
> request again? Please let us know how it goes on your end. You may also 
> refer to the *adGroupAds:mutate *documentation for more information.
>
>    - *adGroupAds:mutate* - 
>    
> https://developers.google.com/google-ads/api/rest/reference/rest/v14/customers.adGroupAds/mutate
>  
>
> If you encounter any errors please provide us the complete logs(*request*
>  and *response* with *request ID*) for this request so we can investigate 
> further on the errors.
>
>    - *request: *
>    
> *https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#request*
>  
>    
> <https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#request>
>      
>    - *response: *
>    
> *https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#response*
>  
>    
> <https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#response>
>      
>    - *request-id:* 
>    
> *https://developers.google.com/google-ads/api/docs/concepts/call-structure?hl=en#request-id*
>  
>    
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure?hl=en#request-id>
>  
>
> This message is in relation to case "ref:_00D1U1174p._5004Q2nbzd9:ref"
>
> 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/cc961803-c0f2-449c-a52b-ca1a969da7e8n%40googlegroups.com.
  • Th... ADVERTISEMENT FMAD
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... ADVERTISEMENT FMAD
        • ... ADVERTISEMENT FMAD
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
            • ... ADVERTISEMENT FMAD
              • ... ADVERTISEMENT FMAD
              • ... ADVERTISEMENT FMAD
                • ... ADVERTISEMENT FMAD
                • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
                • ... SR
                • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to