How do I create an app campaign through Google Ads API?

30 views
Skip to first unread message

ADVERTISEMENT FMAD

unread,
Sep 20, 2023, 11:04:48 AM9/20/23
to Google Ads API and AdWords API Forum
Hello.

How do I create an app campaign through Google Ads API?

They say it should be added to the allowed list...
Do I have to apply separately?

There is an error as shown below.

{
"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": "qhV1OZQkC5CXhZ-oyNOMoQ"
}
]
}
}

Google Ads API Forum Advisor

unread,
Sep 26, 2023, 5:46:27 AM9/26/23
to fmadadve...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for contacting the Google Ads API support team.

By reviewing your concern, I understand that you are trying to create an app campaign via Google Ads API and encountered the 'Invalid_Argument' error. I would recommend you to check the Create App Campaign and code example that helps to create an App campaign. In order to investigate further, kindly provide us with the complete API logs (request and response with request-id and request header) generated at your end and uncroppped UI screenshot of where you are facing the issue.

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, .Net, PHP, Python, Ruby or Perl 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.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2ozprg:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages