Hi,

Any news on Update Ad?

Thank you,
Best.

Jessica Capuozzo

On Wednesday, 20 February 2019 20:11:33 UTC+1, Miguel Graciá wrote:
>
>
> 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.
>
>
> https://developers.google.com/adwords/api/docs/samples/php/basic-operations#update-an-expanded-text-ad
>
> Thanks for the help.
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3a184c73-9bd5-4128-8de0-109d5d5ed028%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [PHP] G... Miguel Graciá
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
        • ... Miguel Graciá
    • Re... jessica . capuozzo

Reply via email to