Request
-------
MethodName: google.ads.googleads.v6.services.ExtensionFeedItemService/MutateExtensionFeedItems
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=9954357131, x-goog-api-client=gl-java/1.8.0_222 gapic/ gax/1.60.1 grpc/1.32.2}
Body: customer_id: "4163599270"
operations {
create {
price_feed_item {
type: SERVICES
price_qualifier: FROM
price_offerings {
price {
currency_code: "USD"
amount_micros: 2000000
}
unit: PER_DAY
header: "Best Offer Header 1"
description: "Offer description 1"
final_urls: "https://www.getyourguide.com/new-york-city-l59/harlem-renaissance-walking-tour-with-lunch-t41275/"
final_mobile_urls: "https://www.getyourguide.com/new-york-city-l59/harlem-renaissance-walking-tour-with-lunch-t41275/"
}
tracking_url_template: "http://getyourguide.com"
language_code: "en"
final_url_suffix: "/price"
}
extension_type: PRICE
}
}
Response
--------
Headers: Metadata(content-type=application/grpc,request-id=c6AF2ZeUSAiq-7_UQexfXw,date=Thu, 01 Apr 2021 22:51:51 GMT,alt-svc=h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: null
Failure message: errors {
error_code {
field_error: REQUIRED
}
message: "The required field was not present."
trigger {
string_value: ""
}
location {
field_path_elements {
field_name: "operations"
index: 0
}
}
}
errors {
error_code {
extension_feed_item_error: PRICE_EXTENSION_HAS_TOO_FEW_ITEMS
}
message: "Price extension has too few items."
trigger {
string_value: ""
}
location {
field_path_elements {
field_name: "operations"
index: 0
}
}
}
Hi Mariam,
Thank you for reaching out. Please note that to create a price extension , at least three price offerings are needed.Otherwise, you would encounter the PRICE_EXTENSION_HAS_TOO_FEW_ITEMS error.
Thanks and regards,
Xiaoming, Google Ads API Team
|
||||||