Hello,

I am trying to add price extension using Java SDK version 6, I set all 
attributes of price extension request and I 
get PRICE_EXTENSION_HAS_TOO_FEW_ITEMS error without referring to the 
missing item.

Complete Request/Response:

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

    }

  }

}

Regards,
Mariam.

-- 







GetYourGuide Deutschland GmbH

Sonnenburger Strasse 73, 10437 
Berlin, Germany

Geschäftsführer: Johannes Reck, Tao Tao, Nils Chrestin

Amtsgericht Charlottenburg HRB 132059 B; USt-IdNr. DE276456081


 
<https://www.facebook.com/GetYourGuide> <https://twitter.com/GetYourGuide> 
<https://www.instagram.com/getyourguide/> 
<https://www.linkedin.com/company/getyourguide-ag> 
<http://www.getyourguide.com/>





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1ed39101-71d3-4e37-a944-a06363f5fb94n%40googlegroups.com.

Reply via email to