The field cannot be set. "fieldName": " app_ad "

274 views
Skip to first unread message

ADVERTISEMENT FMAD

unread,
Aug 7, 2023, 1:58:44 AM8/7/23
to Google Ads API and AdWords API Forum


Hello.

After setting the campaign type as below

advertisingChannelType : MULTI_CHANNEL, 
advertisingChannelSubType : APP_CAMPAIGN

request :
{'operations': [{'create': {'adGroup': 'customers/5209595745/adGroups/152134082156','status': 'ENABLED','ad': {'name': 'nshangukin-creative-20230807145319','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/94981099912'},{'asset': 'customers/5209595745/assets/94999121435'}]}}}}],"partialFailure": false,"validateOnly": false,"responseContentType": "MUTABLE_RESOURCE"}

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": "uUp__PAm5AzSe32oshy7AA" } ] } }


The above error is occurring.

Please give me a reply.

Thank you.

Google Ads API Forum Advisor

unread,
Aug 7, 2023, 7:04:34 AM8/7/23
to fmadadve...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out to Google Ads API Forum.

It appears that you have encountered  VALUE_MUST_BE_UNSET, which is a field error (https://developers.google.com/google-ads/api/reference/rpc/v14/FieldErrorEnum.FieldError#value_must_be_unset). With this, could you provide us with the complete API logs in this format (request and response with request-id and request header) generated on your end? I am asking this since the logs provided seem to be incomplete. This is so our team could further check and provide more appropriate guidance.

You may then send the requested information privately via the Reply to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com  alias instead.

Reference Links:

This message is in relation to case "ref:_00D1U1174p._5004Q2nbzd9:ref"

Thanks,
 
Google Logo Google Ads API Team


ADVERTISEMENT FMAD

unread,
Aug 7, 2023, 7:41:26 AM8/7/23
to Google Ads API and AdWords API Forum
Hello.

Please check the contents below.



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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 : UBIc6ezNANcYeTXgA-uDUg

$data = {'operations': [{'create': {'adGroup': 'customers/5209595745/adGroups/152134082156','status': 'ENABLED','ad': {'name': 'nshangukin-creative-20230807200318','type': 'APP_AD','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/94981099912'},{'asset': 'customers/5209595745/assets/94999121435'}]}}}}],"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": "UBIc6ezNANcYeTXgA-uDUg" } ] } }

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



Thank you.

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

Google Ads API Forum Advisor

unread,
Aug 7, 2023, 10:48:11 AM8/7/23
to fmadadve...@gmail.com, adwor...@googlegroups.com

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. 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.

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.

ADVERTISEMENT FMAD

unread,
Aug 7, 2023, 8:40:51 PM8/7/23
to Google Ads API and AdWords API Forum



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님이 작성:

Google Ads API Forum Advisor

unread,
Aug 8, 2023, 7:03:57 AM8/8/23
to fmadadve...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for the reply.

Allow me to raise this concern to my team for further checking. Rest assured that we will provide updates when become available.
 

Google Ads API Forum Advisor

unread,
Aug 8, 2023, 12:46:00 PM8/8/23
to fmadadve...@gmail.com, adwor...@googlegroups.com
Hello,

My name is Devin, and I am looking into your issue. I have inquired with our engineering team to see if they can help figure out the cause of your issue and will reply as soon as I hear back.

All the best,
Devin
The Google Ads API Team

ref:_00D1U1174p._5004Q2nbzd9:ref

ADVERTISEMENT FMAD

unread,
Aug 24, 2023, 6:12:18 AM8/24/23
to Google Ads API and AdWords API Forum

Hello.

The error has not been resolved for more than 10 days as shown below.

You said you'd give me an answer, but I haven't received a reply yet.

Please reply.


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

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



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

*** Request ***

requestId :  ibzbmcKzTuOa_XZHHOAn4g

{'operations': [{'create': {'adGroup': 'customers/5209595745/adGroups/151918272199','status': 'ENABLED','ad': {'name': 'nshangukin-creative-20230823024733','appAd': {'mandatoryAdText': {'text': '에프레카 플랫폼'},'headlines': [{'text': '에프레카 플랫폼를 만나보세요.1' },{'text': '에프레카 플랫폼를 만나보세요.2' }],'descriptions': [{'text': '에프레카 플랫폼을 만나보세요.3' },{'text': '에프레카 플랫폼을 만나보세요.4' }],'images': [{'asset': 'customers/5209595745/assets/94998778472'}],'youtubeVideos': [{'asset': 'customers/5209595745/assets/97320762498'}]}}}}],"partialFailure": false,"validateOnly": false,"responseContentType": "MUTABLE_RESOURCE"}



{ "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": "ibzbmcKzTuOa_XZHHOAn4g" } ] } }
2023년 8월 9일 수요일 오전 1시 46분 0초 UTC+9에 Google Ads API Forum Advisor님이 작성:

Google Ads API Forum Advisor

unread,
Aug 24, 2023, 3:21:02 PM8/24/23
to fmadadve...@gmail.com, adwor...@googlegroups.com
Hello - 

I'm a developer relations engineer jumping in to help here. Just letting you know that this issue has already been escalated to the engineering team that focuses on this functionality for investigation. It's still ongoing at the moment, and I will let you know as soon as I have more details.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2nbzd9:ref"

Thanks,
 
Google Logo
Ben Karl
Google Ads API Team


Message has been deleted
Message has been deleted

ADVERTISEMENT FMAD

unread,
Sep 15, 2023, 3:09:38 AM9/15/23
to Google Ads API and AdWords API Forum

Hello.
Thank you for your efforts.

I haven't received a reply about the above issue yet.

Can you tell me how it goes?

Thank you.
2023년 8월 25일 금요일 오전 4시 21분 2초 UTC+9에 Google Ads API Forum Advisor님이 작성:

Google Ads API Forum Advisor

unread,
Sep 15, 2023, 9:50:00 AM9/15/23
to fmadadve...@gmail.com, adwor...@googlegroups.com
Hello - 

Thanks for following up. Unfortunately this issue is still being investigated, but I've pinged the engineering team that's looking into it for an update. I hope to have more information for you soon.

Google Ads API Forum Advisor

unread,
Sep 19, 2023, 10:32:03 AM9/19/23
to fmadadve...@gmail.com, adwor...@googlegroups.com
Hello - 

Thanks for following up. Unfortunately we're still looking into this issue and I don't have an update at the moment, but it is actively being worked on and hopefully the cause is determined soon.

ADVERTISEMENT FMAD

unread,
Oct 1, 2023, 11:57:20 AM10/1/23
to Google Ads API and AdWords API Forum
Hello.

Thank you for your hard work.

I'm contacting you again because I still haven't heard back.

It's the same if you proceed accordingly.

For your information, I am using REST.

Thank you.

2023년 9월 19일 화요일 오후 11시 32분 3초 UTC+9에 Google Ads API Forum Advisor님이 작성:

Google Ads API Forum Advisor

unread,
Oct 2, 2023, 2:42:52 PM10/2/23
to fmadadve...@gmail.com, adwor...@googlegroups.com
Hello - 

Thank you for following up. The investigation is still ongoing so I unfortunately don't have an update at this time, however I've asked that a resolution be prioritized and I will respond here with more information as soon as possible.
Message has been deleted

Google Ads API Forum Advisor

unread,
Nov 6, 2023, 10:09:11 AM11/6/23
to svet...@geeklab.app, adwor...@googlegroups.com
Hello - 

This issue is still being worked on, unfortunately. I was able to test the behavior, and it is possible to create App Ads if you do not set the mandatory_ad_text field. Once I have more details, I'll follow up on this thread.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02nbzd9:ref"


Thanks,
 
Google Logo
Ben Karl
Google Ads API Team


Reply all
Reply to author
Forward
0 new messages