Skip to main content
Published: February 07 2007, 3:52:00 PMUpdated: November 28 2020, 3:19:03 PM


Summary

As of late February, categories that currently use the "AdType" ListingType will now need to switch to the new Ad  Format.  Listing Type will now need to be set to LeadGeneration and the ListingSubtype to ClassifiedAd for all new and relisted items.  If you set the ListingType to AdType, you will get an error.  This change is version independent, which means that even if you make the request with a lower version like 479, you cannot use AdType. 
 



Detailed Description
 

Here is the an AddItem request with the old AdType listing type:
<?xml version="1.0" encoding="utf-8"?>

<AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">

  <DetailLevel>ReturnAll</DetailLevel>

  <DetailLevel>ItemReturnDescription</DetailLevel>

  <Version>499</Version>

  <Item>

    <Country>US</Country>

    <Currency>USD</Currency>

    <Description>description</Description>

    <ListingDuration>Days_30</ListingDuration>

    <ListingType>AdType</ListingType>

    <PaymentMethods>PayPal</PaymentMethods>

    <PayPalEmailAddress>test@foo.com</PayPalEmailAddress>

    <PostalCode>95125</PostalCode>

    <Quantity>1</Quantity>

    <StartPrice>1</StartPrice>

    <Title>Title</Title>

    <PrimaryCategory>

      <CategoryID>1607</CategoryID>

    </PrimaryCategory>

  </Item>

  <RequesterCredentials>

    <eBayAuthToken>*****</eBayAuthToken>

  </RequesterCredentials>

</AddItemRequest>


This needs to change as below and optionally you can provide the seller contact and extended contact information as below:
 

<?xml version="1.0" encoding="utf-8"?>

<AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">

  <DetailLevel>ReturnAll</DetailLevel>

  <DetailLevel>ItemReturnDescription</DetailLevel>

  <Version>499</Version>

  <Item>

    <Country>US</Country>

    <Currency>USD</Currency>

    <Description>description</Description>

    <ListingDuration>Days_30</ListingDuration>

    <ListingType>LeadGenearation</ListingType>

    <ListingSubtype>ClassifiedAd</ListingSubtype>

    <PaymentMethods>PayPal</PaymentMethods>

    <PayPalEmailAddress>test@foo.com</PayPalEmailAddress>

    <PostalCode>95125</PostalCode>

    <Quantity>1</Quantity>

    <StartPrice>1</StartPrice>

    <Title>Title</Title>

    <PrimaryCategory>

      <CategoryID>1607</CategoryID>

    </PrimaryCategory>

    <SellerContactDetails>

      <PhoneLocalNumber><![CDATA[8109-7272]]></PhoneLocalNumber>

      <Phone2LocalNumber><![CDATA[8109-7133]]></Phone2LocalNumber>

    </SellerContactDetails>

    <ExtendedSellerContactDetails>

      <ContactHoursDetails>

        <TimeZoneID><![CDATA[Europe/Berlin]]></TimeZoneID>

        <Hours1Days><![CDATA[Weekends]]></Hours1Days>

        <Hours1AnyTime><![CDATA[false]]></Hours1AnyTime>

        <Hours1From><![CDATA[07:30:00]]></Hours1From>

        <Hours1To><![CDATA[10:30:00]]></Hours1To>

        <Hours2Days><![CDATA[Weekdays]]></Hours2Days>

        <Hours2AnyTime><![CDATA[false]]></Hours2AnyTime>

        <Hours2From><![CDATA[06:30:00]]></Hours2From>

        <Hours2To><![CDATA[10:30:00]]></Hours2To>

      </ContactHoursDetails>

    </ExtendedSellerContactDetails>

  </Item>

  <RequesterCredentials>

    <eBayAuthToken>*****</eBayAuthToken>

  </RequesterCredentials>

</AddItemRequest>




Version Info

The code example above was based on the versions specified below:

API Schema Version 499



 

How well did this answer your question?
Answers others found helpful