Hi Google Ads team,
I have been trying to create an app ad for a while, I tried multiple combinations of campaign and adgroups but it still throws me an error that is not very descriptive
Here is the curl I used
curl --location '
https://googleads.googleapis.com/v16/customers/5023695848/adGroupAds:mutate' \
--header 'developer-token: hN6dsqjNmj3tWdITcPd_Qg' \
--header 'login-customer-id: 1777769554' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ya29.a0AcM612zZpc4ZDZywRcpjhGED3yo1pfqnTnZkpY9QJU7akIScQIjnDZnZdrzNekgEUU9lTdSYdilKmw7b6UXonX-GHEUeiyHT1qSAhcC3DMu7LQlKLsVKm18Kgu0BTNJwPk4mSBIkOxHBw12Jya8vB0wejO-9XrleO4S_WevLaCgYKAdcSARMSFQHGX2MijKQaPtwz2-qT-342G1APYA0175' \
--data '{
"operations": [
{
"create": {
"adGroup": "customers/
5023695848/adGroups/164816049766",
"ad": {
"appAd": {
"mandatoryAdText": {
"text": "This is mandatory ad text."
},
"headlines": [
{
"text": "Catchy Headline 1"
},
{
"text": "Catchy Headline 2"
}
],
"descriptions": [
{
"text": "This is a detailed description of the ad."
},
{
"text": "Another engaging ad description."
}
],
"images": [
{
"asset": "customers/
5023695848/assets/162895278109"
}
]
}
}
}
}
],
"responseContentType": "MUTABLE_RESOURCE"
}'
and here is the error
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "
type.googleapis.com/google.ads.googleads.v16.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": "OuPGzbr6HTV4atWnY1fVlw"
}
]
}
}
Thanks a lot for your time and help