Hi,
I am trying the new api of google ads. I was able to create an ad in my test account with the help of the examples, but when I try to update the title, the api returns an error. The request, extracted from the log, is as follows:
{
"customerId": "[CUSTOMER_ID]",
"operations": [
{
"updateMask": "resourceName,ad.id,ad.finalUrls,ad.finalMobileUrls,ad.trackingUrlTemplate,ad.urlCustomParameters,ad.displayUrl,ad.type,ad.addedByGoogleAds,ad.devicePreference,ad.name,ad.textAd,ad.expandedTextAd.headlinePart1,ad.expandedTextAd.headlinePart2,ad.expandedTextAd.headlinePart3,ad.expandedTextAd.description,ad.expandedTextAd.description2,ad.expandedTextAd.path1,ad.expandedTextAd.path2,ad.dynamicSearchAd,ad.responsiveDisplayAd,ad.callOnlyAd,ad.expandedDynamicSearchAd,ad.hotelAd,ad.shoppingSmartAd,ad.shoppingProductAd,ad.gmailAd,ad.imageAd,ad.videoAd",
"update": {
"resourceName": "customers\/[CUSTOMER_ID]\/adGroupAds\/[AD_GROUP_AD_ID]_[AD_GROUP_ID]",
"status": "ENABLED",
"ad": {
"id": "[AD_GROUP_AD_ID]",
"expandedTextAd": {
"headlinePart1": "Title Test"
}
}
}
}
]
}
Response:
...
{
"errorCode": {
"requestError": "IMMUTABLE_FIELD"
},
"message": "Field 'ad.expanded_text_ad.headline_part1' cannot be modified by 'UPDATE' operation.",
"location": {
"fieldPathElements": [
{"fieldName": "operations","index": "0"},
{"fieldName": "update" },
{"fieldName": "ad" },
{"fieldName": "expanded_text_ad" },
{"fieldName": "headline_part1" }
]
}
}
...
Does this mean that in order to modify the title it is necessary to delete the ad and create a new one?
The old api of google adwords has examples where you can modify this field.
Thanks for the help.