Developers Program

Migrating from Ad Format to Classified Ad format

Published: February 07 2007, 3:52:00 PMยทUpdated: August 23 2022, 7:32:28 AM

Products

Answer


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 ListingSubtype2 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 1271, 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>1271</Version>

<Item>
<Country>US</Country>
<Currency>USD</Currency>
<Description>description</Description>
<ListingDuration>Days_30</ListingDuration>
<ListingType>AdType</ListingType>
<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>1271</Version>

<Item>

<Country>US</Country>

<Currency>USD</Currency>

<Description>description</Description>

<ListingDuration>Days_30</ListingDuration>

<ListingType>LeadGeneration</ListingType>

<ListingSubtype2>ClassifiedAd</ListingSubtype2>

<PostalCode>95125</PostalCode>

<Quantity>1</Quantity>

<StartPrice>1</StartPrice>

<Title>Title</Title>

<PrimaryCategory>

<CategoryID>1607</CategoryID>

</PrimaryCategory>

<SellerContactDetails>

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

</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 Version1271

How well did this answer your question?