Hello,

I created an appAd. I encountered a problem when I wanted to modify the ad 
headlines/descriptions. I read the document and said that direct 
modification is not supported. I need to remove it first and then recreate 
it to achieve the purpose of modification. But when I deleted it, I also 
encountered a problem, saying that "This operation is not permitted on this 
campaign type":

 errors {
  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: 0
    }
    field_path_elements {
      field_name: "remove"
    }
  }

My core code is as follows :
    ad_group_ad_service = client.get_service("AdGroupAdService", 
version="v6")
    ad_group_ad_operation = client.get_type("AdGroupAdOperation", 
version="v6")
    resource_name = ad_group_ad_service.ad_group_ad_path(
    customer_id, ResourceName.format_composite(ad_group_id, ad_id)
            )
    ad_group_ad_operation.remove = resource_name
    ad_group_ad_response = ad_group_ad_service.mutate_ad_group_ads(
            customer_id, [ad_group_ad_operation]
        )

How can I modify this advertisement? 
Thank you.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fd2fd409-49b2-48dd-8dc2-ea80b9ac80e2n%40googlegroups.com.

Reply via email to