Error Mutating AdGroupAd in AppCampaign

561 views
Skip to first unread message

Diego Toro

unread,
Mar 18, 2020, 11:54:40 AM3/18/20
to AdWords API and Google Ads API Forum
Hello,

I am having issues updating an AdGroupAd in an AppCampain, in the first place I tried to update the status to Paused and got this response:

Status: Status{code=INVALID_ARGUMENT, description=Request contains an invalid argument., cause=null}.
2020-03-18 16:21:52.108 ERROR 51088 --- [lTaskExecutor-3] c.i.m.m.u.p.g.GoogleAcAdsetUploadService : Error uploading adset
  error_code
{
    operation_access_denied_error
: OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE
 
}
  message
: "This operation is not permitted on this campaign type"
  trigger
{
    string_value
: ""
 
}
  location
{
    field_path_elements
{
      field_name
: "operations"
      index
{
     
}
   
}
    field_path_elements
{
      field_name
: "update"
   
}
    field_path_elements
{
      field_name
: "status"
   
}
 
}
}


Also we need to change some headlines and descriptions within the same adGroupAd:
com.google.ads.googleads.v2.errors.GoogleAdsException: errors {
  error_code
{
    request_error
: IMMUTABLE_FIELD
 
}
  message
: "Field \'ad.app_ad.headlines\' cannot be modified by \'UPDATE\' operation."
  location
{
    field_path_elements
{
      field_name
: "operations"
      index
{
     
}
   
}
    field_path_elements
{
      field_name
: "update"
   
}
    field_path_elements
{
      field_name
: "ad"
   
}
    field_path_elements
{
      field_name
: "app_ad"
   
}
    field_path_elements
{
      field_name
: "headlines"
   
}
 
}
}



Our question is, is there a way we can update an AppAd after created?

Also we tried removing the ad and creating a new one and seems like the adGroup get's broken, because the old ad and assets stay there and the new assets are added on top, but when you go to the edit page of the ad you still see the old headlines, descriptions, etc.

Is there documentation where this limitations are specified and how to handle them? where are taking as reference teh examples specified in: https://developers.google.com/google-ads/api/docs/client-libs

This is the string of the update operation without the ids for privacy:

resource_name: "customers/XXXXXXXX/adGroupAds/XXXXXXXX~XXXXXXXXX"
status
: PAUSED
ad_group
{
  value
: "customers/XXXXXXX/adGroups/XXXXXXXX"
}
ad
{
  id
{
    value
: XXXXXXXXX
 
}
  type
: APP_AD
  app_ad
{
    headlines
{
      text
{
        value
: "Changed Headline 3"
     
}
   
}
    headlines
{
      text
{
        value
: "Changed Headline 4"
     
}
   
}
    headlines
{
      text
{
        value
: "Changed Headline 5"
     
}
   
}
    descriptions
{
      text
{
        value
: "my description"
     
}
   
}
 
}
}

Update mask:
paths: "ad.app_ad.headlines"

Thank you very much
 

Google Ads API Forum Advisor Prod

unread,
Mar 18, 2020, 3:45:43 PM3/18/20
to diego...@gmail.com, adwor...@googlegroups.com

Hi Diego,

Thank you for reaching out. The AppAd type is not mutable and this is the root cause of the error you received. Please refer to this guide on what ad types are mutable. As you said you encountered an issue when removing the ad and creating a new one. Could you please send the complete request and response logs for me to further investigate?

Thanks and regards,
Xiaoming, Google Ads API Team



 

ref:_00D1U1174p._5001UXVR5E:ref
Reply all
Reply to author
Forward
0 new messages