lib/eBay/API/XML/DataType/PictureDetailsType.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 7 | 9 | 77.7 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | n/a | ||
total | 10 | 12 | 83.3 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | #!/usr/bin/perl | ||||||
2 | |||||||
3 | package eBay::API::XML::DataType::PictureDetailsType; | ||||||
4 | |||||||
5 | 1 | 1 | 1158 | use strict; | |||
1 | 2 | ||||||
1 | 29 | ||||||
6 | 1 | 1 | 4 | use warnings; | |||
1 | 1 | ||||||
1 | 33 | ||||||
7 | |||||||
8 | ########################################################################## | ||||||
9 | # | ||||||
10 | # Module: ............... |
||||||
11 | # File: ................. PictureDetailsType.pm | ||||||
12 | # Generated by: ......... genEBayApiDataTypes.pl | ||||||
13 | # Last Generated: ....... 08/24/2008 16:44 | ||||||
14 | # API Release Number: ... 579 | ||||||
15 | # | ||||||
16 | ########################################################################## | ||||||
17 | |||||||
18 | =head1 NAME | ||||||
19 | |||||||
20 | eBay::API::XML::DataType::PictureDetailsType | ||||||
21 | |||||||
22 | =head1 DESCRIPTION | ||||||
23 | |||||||
24 | Contains the data for a picture associated with an item. | ||||||
25 | Replaces the deprecated SiteHostedPicture and | ||||||
26 | VendorHostedPicture. | ||||||
27 | Not applicable to Half.com. | ||||||
28 | |||||||
29 | |||||||
30 | |||||||
31 | =head1 SYNOPSIS | ||||||
32 | |||||||
33 | =cut | ||||||
34 | |||||||
35 | |||||||
36 | =head1 INHERITANCE | ||||||
37 | |||||||
38 | eBay::API::XML::DataType::PictureDetailsType inherits from the L |
||||||
39 | |||||||
40 | =cut | ||||||
41 | |||||||
42 | 1 | 1 | 33 | use eBay::API::XML::BaseDataType; | |||
0 | |||||||
0 | |||||||
43 | our @ISA = ("eBay::API::XML::BaseDataType"); | ||||||
44 | |||||||
45 | use eBay::API::XML::DataType::Enum::GalleryTypeCodeType; | ||||||
46 | use eBay::API::XML::DataType::Enum::PhotoDisplayCodeType; | ||||||
47 | use eBay::API::XML::DataType::Enum::PictureSourceCodeType; | ||||||
48 | |||||||
49 | |||||||
50 | my @gaProperties = ( [ 'GalleryDuration', 'xs:token', '', '', '' ] | ||||||
51 | , [ 'GalleryType', 'ns:GalleryTypeCodeType', '' | ||||||
52 | ,'eBay::API::XML::DataType::Enum::GalleryTypeCodeType', '' ] | ||||||
53 | , [ 'GalleryURL', 'xs:anyURI', '', '', '' ] | ||||||
54 | , [ 'PhotoDisplay', 'ns:PhotoDisplayCodeType', '' | ||||||
55 | ,'eBay::API::XML::DataType::Enum::PhotoDisplayCodeType', '' ] | ||||||
56 | , [ 'PictureSource', 'ns:PictureSourceCodeType', '' | ||||||
57 | ,'eBay::API::XML::DataType::Enum::PictureSourceCodeType', '' ] | ||||||
58 | , [ 'PictureURL', 'xs:anyURI', '1', '', '' ] | ||||||
59 | ); | ||||||
60 | push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; | ||||||
61 | |||||||
62 | my @gaAttributes = ( | ||||||
63 | ); | ||||||
64 | push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; | ||||||
65 | |||||||
66 | =head1 Subroutines: | ||||||
67 | |||||||
68 | =cut | ||||||
69 | |||||||
70 | sub new { | ||||||
71 | my $classname = shift; | ||||||
72 | my %args = @_; | ||||||
73 | my $self = $classname->SUPER::new(%args); | ||||||
74 | return $self; | ||||||
75 | } | ||||||
76 | |||||||
77 | sub isScalar { | ||||||
78 | return 0; | ||||||
79 | } | ||||||
80 | |||||||
81 | |||||||
82 | |||||||
83 | =head2 setGalleryDuration() | ||||||
84 | |||||||
85 | Italy site only. | ||||||
86 | Describes the number of days that "Featured" Gallery type applies to a listing. | ||||||
87 | The values that can be specified in this field | ||||||
88 | are in ListingEnhancementDurationCodeType. | ||||||
89 | When a seller chooses "Featured" as the Gallery type, the listing is highlighted | ||||||
90 | and is included at the top of search results. | ||||||
91 | This functionality is applicable only for Gallery Featured items and | ||||||
92 | returns an error for any other Gallery type. | ||||||
93 | Additionally, an error is returned if the seller attempts to downgrade | ||||||
94 | from Lifetime to limited duration, but the seller | ||||||
95 | can upgrade from limited duration to Lifetime duration. | ||||||
96 | This field is not applicable to auction listings. | ||||||
97 | |||||||
98 | Calls: AddItem | ||||||
99 | VerifyAddItem | ||||||
100 | VerifyAddItem | ||||||
101 | RelistItem | ||||||
102 | ReviseItem | ||||||
103 | RequiredInput: No | ||||||
104 | |||||||
105 | # Argument: 'xs:token' | ||||||
106 | |||||||
107 | =cut | ||||||
108 | |||||||
109 | sub setGalleryDuration { | ||||||
110 | my $self = shift; | ||||||
111 | $self->{'GalleryDuration'} = shift | ||||||
112 | } | ||||||
113 | |||||||
114 | =head2 getGalleryDuration() | ||||||
115 | |||||||
116 | Calls: GetItem | ||||||
117 | Returned: Conditionally | ||||||
118 | Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll | ||||||
119 | |||||||
120 | # Returns: 'xs:token' | ||||||
121 | |||||||
122 | =cut | ||||||
123 | |||||||
124 | sub getGalleryDuration { | ||||||
125 | my $self = shift; | ||||||
126 | return $self->{'GalleryDuration'}; | ||||||
127 | } | ||||||
128 | |||||||
129 | |||||||
130 | =head2 setGalleryType() | ||||||
131 | |||||||
132 | Indicates whether listing images are included in the search | ||||||
133 | results (in both Picture Gallery and List Views) and, if so, | ||||||
134 | which image listing enhancements apply to them. Items that | ||||||
135 | have pictures but do not have image listing enhancements | ||||||
136 | display a generic photo image in search results. | ||||||
137 | |
||||||
138 | If the value is Gallery, Plus, or Featured, eBay checks the | ||||||
139 | available image URLs in the following order to determine | ||||||
140 | which URL to use (if more than one of these URLs is | ||||||
141 | available): |
||||||
142 | |
||||||
143 | a) Use the URL in GalleryURL, if it is specified. |
||||||
144 | b) Otherwise, if | ||||||
145 | ProductListingDetails.UseStockPhotoURLAsGallery is true, use | ||||||
146 | the eBay stock photo. |
||||||
147 | c) Otherwise, use the value of the first PictureURL in the | ||||||
148 | array of PictureURL fields, if any. |
||||||
149 | d) Otherwise, if ProductListingDetails.ProductID is | ||||||
150 | specified, use the eBay stock photo for that ProductID | ||||||
151 | (eBay resets UseStockPhotoURLAsGallery to true in this | ||||||
152 | case). |
||||||
153 | e) If eBay is unable to find an image URL for the listing, | ||||||
154 | an error is returned. | ||||||
155 | |
||||||
156 | Note that you can use the Gallery Plus feature | ||||||
157 | whether or not the image | ||||||
158 | is hosted with eBay Picture Services (EPS). Selecting Gallery Plus | ||||||
159 | does not incur a separate Gallery fee. | ||||||
160 | |
||||||
161 | See "Describing Items in a Listing" in the eBay Web Services | ||||||
162 | Guide for additional information about working with pictures | ||||||
163 | and related validation rules. | ||||||
164 | |
||||||
165 | You cannot remove Gallery, Plus, or Featured when revising or relisting, | ||||||
166 | however you can upgrade to a higher feature. On upgrade, the original | ||||||
167 | feature fee is credited, and the new feature fee is charged. |
||||||
168 | |
||||||
169 | There are a number of categories on some eBay sites that always offer | ||||||
170 | the Gallery feature for free. (The API doesn't flag these categories | ||||||
171 | in any meta-data calls.) | ||||||
172 | In these categories, if you specify a picture and you don't | ||||||
173 | specify GalleryType, eBay may add GalleryType=Gallery to | ||||||
174 | the listing (for free) and return a warning (error code 219243). | ||||||
175 | The Knowledge Base explains an edge case that | ||||||
176 | could result in an unexpected gallery fee if the seller moves the item | ||||||
177 | to a category that doesn't offer the free gallery feature. This fee | ||||||
178 | can also appear when if the seller moves the item from a site that offers free | ||||||
179 | Gallery (across all its categories) to one where free Gallery is not yet available. | ||||||
180 | Whenever you change the primary category, it is a good idea to clearly | ||||||
181 | specify whether the seller is intentionally requesting the | ||||||
182 | gallery option. | ||||||
183 | |
||||||
184 | Note: | ||||||
185 | As of 02-20-2008, the following sites offer free Gallery: | ||||||
186 | US (site ID 0), Parts & Accessories Category on US Motors (site ID 100), | ||||||
187 | CA (site ID 2), CAFR (site ID 210), FR (site ID 71) and NL (site ID 146). | ||||||
188 | Additionally, ES (site ID 186) and IT (site ID 101) offer free Gallery as of 03-03-2008. | ||||||
189 | |
||||||
190 | On these sites, eBay will automatically create a Gallery thumbnail | ||||||
191 | for the listing in search results by selecting a picture from one | ||||||
192 | of the image URLs specified in the request (either | ||||||
193 | Item.PictureDetails.PictureURL or Item.PictureDetails.GalleryURL) | ||||||
194 | or from an available stock photo. Thus, a Gallery thumbnail | ||||||
195 | will be created whenever Item.PictureDetails.GalleryType | ||||||
196 | is None or is not specified in the request. A Gallery fee will | ||||||
197 | apply whenever GalleryType specifies the Plus or Featured image enhancements | ||||||
198 | (there will be no Gallery fee whenever GalleryType is Gallery, | ||||||
199 | None or is not specified in the request). | ||||||
200 | |
||||||
201 | eBay will select the image for the thumbnail depending on which of the image URLs above was specified in the request (there are selection rules for four cases). Note that the selected image will not necessarily be the image you have specified in Item.PictureDetails.GalleryURL. Note that a Gallery thumbnail will not be automatically created if PictureURL and GalleryURL are not supplied and UseStockPhotoURLAsGallery and IncludeStockURL are set to false. | ||||||
202 | |
||||||
203 | The most common case occurs when both GalleryURL and PictureURL are specified in the request. | ||||||
204 | eBay will use the image referenced by PictureURL as the Gallery thumbnail. | ||||||
205 | As three other cases exist, please refer to "Using Gallery Features | ||||||
206 | on Sites with Free Gallery" in the eBay Web Services Guide for complete information on | ||||||
207 | how eBay selects an image for the gallery thumbnail on these sites. | ||||||
208 | |
||||||
209 | You cannot remove Gallery or Featured when revising or relisting, | ||||||
210 | however you can upgrade to a higher feature. On upgrade, the original | ||||||
211 | feature fee is credited, and the new feature fee is charged. | ||||||
212 | (This does not apply to Gallery Plus on sites with free Gallery; see Plus below for more information.) | ||||||
213 | |||||||
214 | |||||||
215 | SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=Pictures | ||||||
216 | Title: Introduction to Pictures in Item Listings | ||||||
217 | , URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=GalleryFeaturesSitesWithFreeGallery | ||||||
218 | For: complete details on how eBay selects a gallery thumbnail. | ||||||
219 | Title: Using Gallery Features on Sites with Free Gallery | ||||||
220 | , URL: http://ebay.custhelp.com/cgi-bin/ebay.cfg/php/enduser/std_adp.php?p_faqid=643 | ||||||
221 | Title: KB article: Why am I getting charged a GalleryFee in my RelistItem call...? | ||||||
222 | |||||||
223 | |||||||
224 | Calls: AddItem | ||||||
225 | AddLiveAuctionItem | ||||||
226 | GetItemRecommendations | ||||||
227 | RelistItem | ||||||
228 | ReviseItem | ||||||
229 | ReviseLiveAuctionItem | ||||||
230 | VerifyAddItem | ||||||
231 | RequiredInput: Conditionally | ||||||
232 | |||||||
233 | # Argument: 'ns:GalleryTypeCodeType' | ||||||
234 | |||||||
235 | =cut | ||||||
236 | |||||||
237 | sub setGalleryType { | ||||||
238 | my $self = shift; | ||||||
239 | $self->{'GalleryType'} = shift | ||||||
240 | } | ||||||
241 | |||||||
242 | =head2 getGalleryType() | ||||||
243 | |||||||
244 | Calls: GetBidderList | ||||||
245 | GetCategoryListings | ||||||
246 | GetProducts | ||||||
247 | Returned: Conditionally | ||||||
248 | |||||||
249 | Calls: GetSearchResults | ||||||
250 | Returned: Conditionally | ||||||
251 | Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll | ||||||
252 | GranularityLevel: Coarse | ||||||
253 | |||||||
254 | |||||||
255 | Calls: GetItem | ||||||
256 | Returned: Conditionally | ||||||
257 | Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll | ||||||
258 | |||||||
259 | # Returns: 'ns:GalleryTypeCodeType' | ||||||
260 | |||||||
261 | =cut | ||||||
262 | |||||||
263 | sub getGalleryType { | ||||||
264 | my $self = shift; | ||||||
265 | return $self->{'GalleryType'}; | ||||||
266 | } | ||||||
267 | |||||||
268 | |||||||
269 | =head2 setGalleryURL() | ||||||
270 | |||||||
271 | URL for a picture to be used as the Gallery thumbnail. Ignored if | ||||||
272 | GalleryType is None or unspecified. If the value of GalleryType is | ||||||
273 | Gallery or Featured, you can either specify GalleryURL or allow eBay | ||||||
274 | to use another picture that you have included in the listing. | ||||||
275 | |
||||||
276 | Note: | ||||||
277 | As of 02-20-2008, the following sites offer free Gallery: | ||||||
278 | US (site ID 0), Parts & Accessories Category on US Motors (site ID 100), | ||||||
279 | CA (site ID 2), CAFR (site ID 210), FR (site ID 71) and NL (site ID 146). | ||||||
280 | Additionally, ES (site ID 186) and IT (site ID 101) offer free Gallery as of 03-03-2008. | ||||||
281 | On these sites, eBay selects a Gallery thumbnail from image |
||||||
282 | URLs included in the request (i.e. either GalleryURL or the first PictureURL), | ||||||
283 | using selection rules that consider which of these URLs has been specified and | ||||||
284 | whether an eBay stock photo exists for the item. Note that the selected gallery | ||||||
285 | thumbnail may not necessarily be the one you specify using GalleryURL. Also, eBay | ||||||
286 | selects an image regardless of whether you have specified either GalleryType or GalleryURL. | ||||||
287 | A stock photo will not be generated for an item unless UseStockPhotoURLAsGallery and IncludeStockPhotoURL are set to true. Therefore, in this case, an item that does not have a PictureURL will not have a Gallery picture. | ||||||
288 | A Gallery fee will only apply if you have set GalleryType to Plus or Featured (as basic | ||||||
289 | Gallery is free). For more information on eBay's selection rules for the gallery thumbnail | ||||||
290 | on sites with free Gallery, see "Using Gallery Features on Sites with Free Gallery" in the | ||||||
291 | eBay Web Services Guide. | ||||||
292 | |
||||||
293 | (See GalleryType for the rules that determine which URL is used if you do | ||||||
294 | not specify GalleryURL on sites where free Gallery is currently not available.) | ||||||
295 | The image used for the Gallery thumbnail | ||||||
296 | must be in one of the graphics formats JPEG, BMP, TIF, or GIF. See | ||||||
297 | "Describing Items in a Listing" in the eBay Web Services Guide for | ||||||
298 | additional validation rules. For eBay Live Auctions, lots are listed | ||||||
299 | in the gallery for free. To remove GalleryURL when revising or | ||||||
300 | relisting an item, use DeletedField. When you revise an item, you | ||||||
301 | can only remove GalleryURL if the item has at least one PictureURL | ||||||
302 | or a stock photo to use instead. If the item has bids (or items have | ||||||
303 | been sold) or the listing ends within 12 hours, you can add | ||||||
304 | GalleryURL or change its value, but you cannot remove the gallery | ||||||
305 | URL value if it was previously specified. Not applicable to eBay | ||||||
306 | Motors listings. | ||||||
307 | |||||||
308 | SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=Pictures | ||||||
309 | Title: Introduction to Pictures in Item Listings | ||||||
310 | , URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=GalleryFeaturesSitesWithFreeGallery | ||||||
311 | For: complete details on how eBay selects a gallery thumbnail. | ||||||
312 | Title: Using Gallery Features on Sites with Free Gallery | ||||||
313 | , URL: io_ReviseItem.html#Request.DeletedField | ||||||
314 | Title: (ReviseItem) DeletedField | ||||||
315 | |||||||
316 | MaxLength: 1024 | ||||||
317 | |||||||
318 | Calls: AddItem | ||||||
319 | GetItemRecommendations | ||||||
320 | AddLiveAuctionItem | ||||||
321 | RelistItem | ||||||
322 | ReviseItem | ||||||
323 | ReviseLiveAuctionItem | ||||||
324 | VerifyAddItem | ||||||
325 | RequiredInput: Conditionally | ||||||
326 | |||||||
327 | # Argument: 'xs:anyURI' | ||||||
328 | |||||||
329 | =cut | ||||||
330 | |||||||
331 | sub setGalleryURL { | ||||||
332 | my $self = shift; | ||||||
333 | $self->{'GalleryURL'} = shift | ||||||
334 | } | ||||||
335 | |||||||
336 | =head2 getGalleryURL() | ||||||
337 | |||||||
338 | Calls: GetBidderList | ||||||
339 | GetCategoryListings | ||||||
340 | GetProducts | ||||||
341 | Returned: Conditionally | ||||||
342 | |||||||
343 | Calls: GetSearchResults | ||||||
344 | Returned: Conditionally | ||||||
345 | Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll | ||||||
346 | GranularityLevel: Coarse | ||||||
347 | |||||||
348 | |||||||
349 | Calls: GetMyeBayBuying | ||||||
350 | Returned: Conditionally | ||||||
351 | Details: DetailLevel: none, ReturnSummary, ReturnAll | ||||||
352 | Context: BestOfferList | ||||||
353 | BidList | ||||||
354 | SecondChanceOffer | ||||||
355 | WatchList | ||||||
356 | |||||||
357 | Calls: GetMyeBaySelling | ||||||
358 | Returned: Conditionally | ||||||
359 | Details: DetailLevel: none, ReturnSummary, ReturnAll | ||||||
360 | Context: ActiveList | ||||||
361 | BidList | ||||||
362 | ScheduledList | ||||||
363 | SoldList | ||||||
364 | UnsoldList | ||||||
365 | DeletedFromSoldList | ||||||
366 | DeletedFromUnsoldList | ||||||
367 | |||||||
368 | Calls: GetItem | ||||||
369 | Returned: Always | ||||||
370 | Details: DetailLevel: none, ItemReturnDescription, ReturnAll | ||||||
371 | |||||||
372 | # Returns: 'xs:anyURI' | ||||||
373 | |||||||
374 | =cut | ||||||
375 | |||||||
376 | sub getGalleryURL { | ||||||
377 | my $self = shift; | ||||||
378 | return $self->{'GalleryURL'}; | ||||||
379 | } | ||||||
380 | |||||||
381 | |||||||
382 | =head2 setPhotoDisplay() | ||||||
383 | |||||||
384 | Specifies the type of image display used in a listing. Some options are | ||||||
385 | only available if images are hosted through eBay Picture Services (EPS). | ||||||
386 | eBay determines this by parsing the associated PictureURL. | ||||||
387 | Cannot be used in combination with Listing Designer layouts. | ||||||
388 | Specify None or do not add PhotoDisplay when ListingDesigner.LayoutID | ||||||
389 | is a value other than 0. | ||||||
390 | |||||||
391 | Calls: AddItem | ||||||
392 | GetItemRecommendations | ||||||
393 | RelistItem | ||||||
394 | ReviseItem | ||||||
395 | VerifyAddItem | ||||||
396 | RequiredInput: Conditionally | ||||||
397 | AllValuesExcept: SlideShow | ||||||
398 | |||||||
399 | # Argument: 'ns:PhotoDisplayCodeType' | ||||||
400 | |||||||
401 | =cut | ||||||
402 | |||||||
403 | sub setPhotoDisplay { | ||||||
404 | my $self = shift; | ||||||
405 | $self->{'PhotoDisplay'} = shift | ||||||
406 | } | ||||||
407 | |||||||
408 | =head2 getPhotoDisplay() | ||||||
409 | |||||||
410 | Calls: GetBidderList | ||||||
411 | Returned: Conditionally | ||||||
412 | AllValuesExcept: SlideShow | ||||||
413 | |||||||
414 | Calls: GetSearchResults | ||||||
415 | Returned: Conditionally | ||||||
416 | AllValuesExcept: SlideShow | ||||||
417 | Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll | ||||||
418 | |||||||
419 | Calls: GetItem | ||||||
420 | Returned: Always | ||||||
421 | AllValuesExcept: SlideShow | ||||||
422 | Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll | ||||||
423 | |||||||
424 | # Returns: 'ns:PhotoDisplayCodeType' | ||||||
425 | |||||||
426 | =cut | ||||||
427 | |||||||
428 | sub getPhotoDisplay { | ||||||
429 | my $self = shift; | ||||||
430 | return $self->{'PhotoDisplay'}; | ||||||
431 | } | ||||||
432 | |||||||
433 | |||||||
434 | =head2 setPictureSource() | ||||||
435 | |||||||
436 | The service hosting the images in PictureURL, if any. This information is | ||||||
437 | primarily useful for Picture Manager subscribers, who pay a flat subscription | ||||||
438 | fee instead of individual picture fees per listing. Only returned when | ||||||
439 | PictureURL is returned. | ||||||
440 | |||||||
441 | # Argument: 'ns:PictureSourceCodeType' | ||||||
442 | |||||||
443 | =cut | ||||||
444 | |||||||
445 | sub setPictureSource { | ||||||
446 | my $self = shift; | ||||||
447 | $self->{'PictureSource'} = shift | ||||||
448 | } | ||||||
449 | |||||||
450 | =head2 getPictureSource() | ||||||
451 | |||||||
452 | Calls: GetItem | ||||||
453 | Returned: Conditionally | ||||||
454 | Details: DetailLevel: ItemReturnAttributes, ReturnAll | ||||||
455 | |||||||
456 | # Returns: 'ns:PictureSourceCodeType' | ||||||
457 | |||||||
458 | =cut | ||||||
459 | |||||||
460 | sub getPictureSource { | ||||||
461 | my $self = shift; | ||||||
462 | return $self->{'PictureSource'}; | ||||||
463 | } | ||||||
464 | |||||||
465 | |||||||
466 | =head2 setPictureURL() | ||||||
467 | |||||||
468 | Note: | ||||||
469 | As of 02-20-2008, the following sites offer free Gallery: | ||||||
470 | US (site ID 0), Parts & Accessories Category on US Motors (site ID 100), | ||||||
471 | CA (site ID 2), CAFR (site ID 210), FR (site ID 71) and NL (site ID 146). | ||||||
472 | Additionally, ES (site ID 186) and IT (site ID 101) offer free Gallery as of 03-03-2008. | ||||||
473 | On these sites, eBay selects a Gallery thumbnail from image |
||||||
474 | URLs included in the request (i.e. either GalleryURL or the first PictureURL), | ||||||
475 | using selection rules that consider which of these URLs has been specified and | ||||||
476 | whether an eBay stock photo exists for the item. Also, eBay | ||||||
477 | selects an image regardless of whether you have specified either GalleryType or GalleryURL. | ||||||
478 | A stock photo will not be generated for an item unless UseStockPhotoURLAsGallery and IncludeStockPhotoURL are set to true. Therefore, in this case, an item that does not have a PictureURL will not have a Gallery picture. | ||||||
479 | A Gallery fee will only apply if you have set GalleryType to Plus or Featured (as basic | ||||||
480 | Gallery is free). As a result of these changes, the top of an item's listing | ||||||
481 | page may not necessarily be the image you have specified in PictureURL for certain scenarios. | ||||||
482 | For more information on eBay's selection rules for the gallery thumbnail | ||||||
483 | on sites with free Gallery, see "Using Gallery Features on Sites with Free Gallery" in the | ||||||
484 | eBay Web Services Guide. | ||||||
485 | |
||||||
486 | Contains the URL for an image associated with the item. Images can | ||||||
487 | be hosted by eBay Picture Services (EPS) (or by eBay Picture | ||||||
488 | Manager) or they can be self-hosted. Some options are only available | ||||||
489 | if images are hosted through eBay Picture Services (EPS). eBay | ||||||
490 | determines this by parsing the associated PictureURL value. If | ||||||
491 | specified, this cannot have an empty/null value. |
||||||
492 | To specify multiple pictures, send each URL in a separate, adjacent | ||||||
493 | PictureURL element. In most cases, the image at the first URL is | ||||||
494 | also used for the picture at the top of the View Item page on the | ||||||
495 | Web site. |
||||||
496 | On the main eBay site, a listing can have a maximum of 12 picture | ||||||
497 | URLs hosted by eBay Picture Services or a maximum of 6 picture URLs | ||||||
498 | hosted by a third-party vendor. If you specify multiple vendor-hosted | ||||||
499 | pictures in listing calls, PhotoDisplay must be set to | ||||||
500 | VendorHostedPictureShow. You cannot mix vendor-hosted and | ||||||
501 | site-hosted pictures within the same listing. |
||||||
502 | On the US eBay Motors site (for all vehicle listings), and on the | ||||||
503 | eBay Canada site for motors, the picture pack of a listing can | ||||||
504 | contain up to 24 photos. |
||||||
505 | On the eBay Live Auctions site, a listing can have a maximum of 5 | ||||||
506 | picture URLs hosted by eBay Picture Services or a third | ||||||
507 | party. |
||||||
508 | If you embed pictures in the description (by using IMG tags) instead | ||||||
509 | of using PictureURL, but you want a camera icon to appear in search | ||||||
510 | and listing pages, specify the following "clear image" URL in | ||||||
511 | PictureURL: http://pics.ebay.com/aw/pics/dot_clear.gif. This clear | ||||||
512 | image is not supported for eBay Express. |
||||||
513 | |
||||||
514 | Note: | ||||||
515 | On sites that offer free Gallery, | ||||||
516 | the camera icon will not be available to appear as a gallery thumbnail | ||||||
517 | or in a listing page whenever the first PictureURL field in the request is set to the | ||||||
518 | "clear image" URL. In this case, eBay will attempt to use the image referenced by | ||||||
519 | GalleryURL as the gallery thumbnail. If GalleryURL has not been specified, | ||||||
520 | a blank (camera-less) gallery thumbnail displays in the search results and | ||||||
521 | at the top of the listing page. If you have set the first PictureURL to the | ||||||
522 | "clear image" URL, you can either Item.ProductListingDetails.UseStockPhotoURLAsGallery or | ||||||
523 | Item.ProductListingDetails.UseStockPhotoURL to true and eBay will use a stock photo, if available, | ||||||
524 | for the gallery thumbnail as well as the picture that displays at the top of the listing page. | ||||||
525 | |
||||||
526 | |
||||||
527 | Note that a gallery picture will not be generated if UseStockPhotoURLAsGallery and IncludeStockPhotoURL are set to false (or not set) and no alternative picture in PictureURL. A Gallery fee applies only if you have specified GalleryType as either Plus or Featured (see Item.PictureDetails.GalleryType above for information). See "Using Gallery Features on Sites with Free Gallery" in the eBay Web Services Guide for information on eBay's selection rules for Gallery pictures on sites with free Gallery. | ||||||
528 | |||||||
529 | |
||||||
530 | |
||||||
531 | For VerifyAddItem only: For VerifyAddItem, you can use the following fake eBay Picture | ||||||
532 | Services URL (http://i2.ebayimg.com/abc/M28/dummy.jpg) to verify | ||||||
533 | that your application is obtaining the correct fees for the quantity | ||||||
534 | of images you pass in. |
||||||
535 | |
||||||
536 | For ReviseItem and RelistItem only: To remove a picture when revising or relisting an item, specify | ||||||
537 | PictureDetails with all the pictures that you want the listing to | ||||||
538 | include. That is, you need to completely replace the original set of | ||||||
539 | URLs with the revised set. To remove all PictureURL fields | ||||||
540 | from a listing, specify item.PictureDetails.PictureURL in DeletedField. | ||||||
541 | However, please note that if the listing also includes a gallery image | ||||||
542 | that is based on the first picture in the listing, | ||||||
543 | you may need to supply an alternate image to use as the gallery image | ||||||
544 | if you delete all PictureURL fields. |
||||||
545 | |
||||||
546 | There are a number of categories on some eBay sites that always add | ||||||
547 | the Gallery feature (for free) when you include a picture in | ||||||
548 | the listing and you don't specify the Gallery feature yourself. | ||||||
549 | See GalleryType for details about fees that could be charged | ||||||
550 | if you change the category in these cases (or when revising a listing from a | ||||||
551 | site with free gallery to one where free gallery is not yet available.) | ||||||
552 | |||||||
553 | SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=GalleryFeaturesSitesWithFreeGallery | ||||||
554 | For: complete details on how eBay selects a gallery thumbnail. | ||||||
555 | Title: Using Gallery Features on Sites with Free Gallery | ||||||
556 | , URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=Pictures | ||||||
557 | Title: Introduction to Pictures in Item Listings | ||||||
558 | , URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=LiveAuctions | ||||||
559 | Title: eBay Live Auctions | ||||||
560 | , URL: io_ReviseItem.html#Request.DeletedField | ||||||
561 | Title: (ReviseItem) DeletedField | ||||||
562 | , URL: io_RelistItem.html#Request.Item.PictureDetails.GalleryType | ||||||
563 | Title: (RelistItem) GalleryType | ||||||
564 | |||||||
565 | MaxLength: 150 | ||||||
566 | |||||||
567 | Calls: AddItem | ||||||
568 | AddLiveAuctionItem | ||||||
569 | GetItemRecommendations | ||||||
570 | RelistItem | ||||||
571 | ReviseItem | ||||||
572 | ReviseLiveAuctionItem | ||||||
573 | VerifyAddItem | ||||||
574 | RequiredInput: Conditionally | ||||||
575 | |||||||
576 | # Argument: reference to an array | ||||||
577 | of 'xs:anyURI' | ||||||
578 | |||||||
579 | =cut | ||||||
580 | |||||||
581 | sub setPictureURL { | ||||||
582 | my $self = shift; | ||||||
583 | $self->{'PictureURL'} = | ||||||
584 | $self->convertArray_To_RefToArrayIfNeeded(@_); | ||||||
585 | } | ||||||
586 | |||||||
587 | =head2 getPictureURL() | ||||||
588 | |||||||
589 | Calls: GetBidderList | ||||||
590 | Returned: Conditionally | ||||||
591 | |||||||
592 | Calls: GetSearchResults | ||||||
593 | Returned: Conditionally | ||||||
594 | Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll | ||||||
595 | |||||||
596 | Calls: GetItem | ||||||
597 | Returned: Conditionally | ||||||
598 | Details: DetailLevel: none, ItemReturnDescription, | ||||||
599 | ReturnAll | ||||||
600 | |||||||
601 | # Returns: reference to an array | ||||||
602 | of 'xs:anyURI' | ||||||
603 | |||||||
604 | =cut | ||||||
605 | |||||||
606 | sub getPictureURL { | ||||||
607 | my $self = shift; | ||||||
608 | return $self->_getDataTypeArray('PictureURL'); | ||||||
609 | } | ||||||
610 | |||||||
611 | |||||||
612 | |||||||
613 | |||||||
614 | |||||||
615 | ## Attribute and Property lists | ||||||
616 | sub getPropertiesList { | ||||||
617 | my $self = shift; | ||||||
618 | return \@gaProperties; | ||||||
619 | } | ||||||
620 | |||||||
621 | sub getAttributesList { | ||||||
622 | my $self = shift; | ||||||
623 | return \@gaAttributes; | ||||||
624 | } | ||||||
625 | |||||||
626 | |||||||
627 | |||||||
628 | 1; |