Hi Team,
When we are creating campaign feed for sitelinks which is throwing an 
exception saying that " INVALID_FUNCTION_FORMAT". 
Could you please assist here? And also, please provide an example for "Add 
sitelinks to a campaign using feeds" in Java.

Request
-------
MethodName: 
google.ads.googleads.v2.services.CampaignFeedService/MutateCampaignFeeds
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=xxxxxx, 
x-goog-api-client=gl-java/1.8.0_111 gapic/ gax/1.45.0 grpc/1.21.0}
Body: customer_id: "xxxxxx"
operations {
  create {
    feed {
      value: "customers/xxxxxx/feeds/xxxxxx"
    }
    campaign {
      value: "customers/xxxxxx/campaigns/xxxxxx"
    }
    placeholder_types: SITELINK
    matching_function {
      left_operands {
        constant_operand {
          string_value {
            value: "FEED_ITEM_ID"
          }
        }
      }
      right_operands {
        constant_operand {
          long_value {
            value: xxxxxx
          }
        }
      }
      operator: IN
    }
  }
}


Response
--------
Headers: 
Metadata(content-type=application/grpc,request-id=5JOha4RSy-SlUDRWKcuX-w,date=Mon,
 
25 Nov 2019 12:07:56 GMT,alt-svc=quic=":443"; ma=2592000; 
v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443"; 
ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; 
ma=2592000,h3-Q043=":443"; ma=2592000)
Body: null
Failure message: errors {
  error_code {
    function_error: INVALID_FUNCTION_FORMAT
  }
  message: "The format of the function is not recognized as a supported 
function format."
  trigger {
    string_value: ""
  }
  location {
    field_path_elements {
      field_name: "operations"
      index {
      }
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "matching_function"
    }
  }
}

Thank you.
Swaroop

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3dd2fb02-757f-41ba-809b-daba9573562b%40googlegroups.com.

Reply via email to