ADD SITELINK : LEGACY_EXTENSION_TYPE_READ_ONLY

38 views
Skip to first unread message

AdWordsAPI-Gnr

unread,
Apr 23, 2023, 1:14:35 PM4/23/23
to Google Ads API and AdWords API Forum
Hello,
i am using rest api. Can you help with the below error? What's the problem? I want to add sitelink for ad group. Thanks.

array(1) {
  ["error"]=>
  array(4) {
    ["code"]=>
    int(400)
    ["message"]=>
    string(37) "Request contains an invalid argument."
    ["status"]=>
    string(16) "INVALID_ARGUMENT"
    ["details"]=>
    array(1) {
      [0]=>
      array(3) {
        ["@type"]=>
        string(68) "type.googleapis.com/google.ads.googleads.v13.errors.GoogleAdsFailure"
        ["errors"]=>
        array(1) {
          [0]=>
          array(4) {
            ["errorCode"]=>
            array(1) {
              ["feedError"]=>
              string(31) "LEGACY_EXTENSION_TYPE_READ_ONLY"
            }
            ["message"]=>
            string(58) "Feed-based extension is read-only for this extension type."
            ["trigger"]=>
            array(1) {
              ["stringValue"]=>
              string(3) "[1]"
            }
            ["location"]=>
            array(1) {
              ["fieldPathElements"]=>
              array(4) {
                [0]=>
                array(2) {
                  ["fieldName"]=>
                  string(17) "mutate_operations"
                  ["index"]=>
                  int(0)
                }
                [1]=>
                array(1) {
                  ["fieldName"]=>
                  string(29) "extension_feed_item_operation"
                }
                [2]=>
                array(1) {
                  ["fieldName"]=>
                  string(6) "create"
                }
                [3]=>
                array(1) {
                  ["fieldName"]=>
                  string(13) "resource_name"
                }
              }
            }
          }
        }
        ["requestId"]=>
        string(22) "Nk_2EWOi3Nb0ha6sSLw8Sg"
      }
    }
  }
}

Google Ads API Forum Advisor

unread,
Apr 24, 2023, 5:24:26 AM4/24/23
to in...@reklampanelim.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team. I hope that you are doing well today.

I understand your concern here and to further investigate the issue, could you please provide us also with the complete request and response logs with request ID and request header generated on your end? You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com. If you haven't enabled the logging yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link https://developers.google.com/google-ads/api/docs/client-libs?hl=en.

Reference links:
Kind regards,
Google Logo Google Ads API Team


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