adgroupadlabel

61 views
Skip to first unread message

shuyu zhang

unread,
Feb 23, 2024, 3:33:41 AM2/23/24
to Google Ads API and AdWords API Forum
Request
-------
MethodName: google.ads.googleads.v15.services.GoogleAdsService/Mutate
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=6635497599, x-goog-api-client=gl-java/1.8.0_211 gccl/28.0.0 gapic/28.0.0 gax/2.32.0 grpc/1.56.1}
Body: customer_id: "2757318850"
mutate_operations {
  ad_group_ad_label_operation {
    create {
      ad_group_ad: "customers/2757318850/adGroupAds/159976686918~691487860707"
      label: "customers/2757318850/labels/21942154067"
    }
  }
}


Response
--------
Headers: Metadata(content-type=application/grpc,request-id=LcwvnGwpA60t9in2RHyNgA,date=Thu, 22 Feb 2024 03:28:37 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; ma=2592000)
Body: null
Failure message: errors {
  error_code {
    label_error: INVALID_RESOURCE_FOR_MANAGER_LABEL
  }
  message: "Labels from a manager account cannot be applied to campaign, adgroup, adgroupad, or adgroupcriterion resources."
  location {
    field_path_elements {
      field_name: "mutate_operations"
      index: 0
    }
    field_path_elements {
      field_name: "ad_group_ad_label_operation"
    }
  }
}
request_id: "LcwvnGwpA60t9in2RHyNgA"

Status: Status{code=INVALID_ARGUMENT, description=Request contains an invalid argument., cause=null}.
AdServingCommonServiceImpl.mutateAdLabel广告标签标记失败:{}errors {
  error_code {
    label_error: INVALID_RESOURCE_FOR_MANAGER_LABEL
  }
  message: "Labels from a manager account cannot be applied to campaign, adgroup, adgroupad, or adgroupcriterion resources."
  location {
    field_path_elements {
      field_name: "mutate_operations"
      index: 0
    }
    field_path_elements {
      field_name: "ad_group_ad_label_operation"
    }
  }
}
request_id: "LcwvnGwpA60t9in2RHyNgA"




I want to tag adgroupad with the tag 21942154067 of the administrator account. Is there any way to do that? This is possible on the ads page

Google Ads API Forum Advisor

unread,
Feb 23, 2024, 9:39:25 AM2/23/24
to shuyu....@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

By reviewing your query, I understand that you are getting an "INVALID_RESOURCE_FOR_MANAGER_LABEL". Kindly note that, it is not yet supported to label the ad using the Google Ads API. However, I have raised I a request for this feature to be available in Google Ads API and this is subject for review. I cannot provide a scheduled timeline for the availability of this feature in the API. I would recommend you to please follow our Release Notes and Blog post for future updates.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rzOLG:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages