Google Product Feed Error (Error code: invalidRequestUri.) - magento

I’m trying to setup and add items to my Google Product Feed for running product ads.
I’ve connected my account and mapped all the required attributes. ( almost positive )
When I go to add a product to google content I am getting this error
Errors happened while adding products to Google Shopping.
Error code: invalidRequestUri. Internal reason: Invalid request URI See ‘’ for product ‘Hangar 9 1/8th Scale Military Pilot’ (in ‘Default Store View’ store)
I’m stuck on this if anyone can please help
Thanks, Dane.

check what is the request uri.
Your product name has a special character "/" which might result in URL for this product which is invalid.
Hangar 9 1/8th Scale Military Pilot

Related

Magento 1.9 SOAP V2 add already existing customer address to cart/quote

I'm sorry to ask this, but all docs are killed by Adobe. We need to implement our old magento with some orders from API. I can find docs to create quote and then confirm order, but I believe our checkout was modified and SOAP doesn't know about these methods.
So I have 2 problems:
address adding gives me getCheckoutType error. Don't know what's that and where to find this:
$res = $proxy->shoppingCartCustomerAddresses($sessionId, $cartId, $address, 1);
gives me error:
["faultstring"]=>string(51) "Call to a member function getCheckoutType() on null"
If only I could have method to get the already existing customer address to this call, maybe I could avoid the error in 1st point: shoppingCartCustomerAddresses
I'd appreaciate any help on any of problems.

eBay Trade API - AddFixedPriceListing (21919136 : Required Minimum Number Of Photos) But Photo Is Included

I have been trying to get this call working for hours and im suck. I am using UploadSiteHostedPictures in order to get the image uploaded to EPS. Once the image is uploaded i am calling addFixedPriceListing. The relivant xml looks like this:
<PictureDetails>
<PictureSource>EPS</PictureSource>
<GalleryType>Gallery</GalleryType>
<PictureURL>http://i.ebayimg.com/00/s/NTAwWDUwMA==/z/llEAAOSwFqNZWmCo/$_1.JPG?set_id=8800005007</PictureURL>
</PictureDetails
My items were getting listed on the sandbox, but even then no photos were showing up. Any idea on what could be wrong?
Although it wasn't in any of ebays sample code. You need to include <PhotoDisplay>None</PhotoDisplay> and <PhotoDisplay>PicturePack</PhotoDisplay>
<PictureDetails>
<PhotoDisplay>PicturePack</PhotoDisplay>
<PictureURL>URL_HERE</PictureURL>
<PhotoDisplay>None</PhotoDisplay>
</PictureDetails>
Hope this helps some one else down the road

MostPopular Trailers (for a particular region) - v3 videos API

Is there an option to get the mostPopular Trailers (specific video category) for a particular region using the latest youtube v3 api ?
https://www.googleapis.com/youtube/v3/videos
I can use the chart=mostPopular and add a videoCategoryID, but looking at the videoCategory list call, the "trailer" category has a flag - assignable set to false.
Trying to use that id(44 in this case for US region) returns an error
GET https://www.googleapis.com/youtube/v3/videos?part=snippet&chart=mostPopular&regionCode=US&videoCategoryId=44&key={YOUR_API_KEY}
Response:
"code": 400,
"message": "The requested video chart is not supported or is not available."
Is there any workaround or another way to fetch the mostPopular trailers for a specific region using the last API's ?
The error message is the actual answer: "The requested video chart is not supported or is not available.".
That means, the chart "mostPopular" from US, for category 44 (Trailers) does not exists.
Testing with different videoCategoryId values, for some of them is working, for some is not.

Magento $_order->getBaseGrandTotal(); decimal issue

I am using the call
$_order->getBaseGrandTotal();
to get the order total to send to the payment gateway.
The problem is the result always comes out at 4 decimal places, e.g. 18.0000.
I have no sales tax and 5 for shipping. I could do a round on the result but I am worried this might create inconsistencies in what the payment and what is stored in magenta.
I have seen some wild fixes for this on the internet but there but be a simple solution in the backend config.
To avoid the problem I used php number_format function
$baseGrandTotal = number_format($_order->getBaseGrandTotal(),2);

How to get product image by Amazon Inventory Management ( AIM ) APIs

How to get product image by Amazon Inventory Management ( AIM ) APIs
You will not be able to get product images using the Amazon Inventory Management API. You will need to use the Amazon Product Advertising API to get product features such as images, dimensions, publisher, sales rank etc...
If you are trying to get the product image for, say, every product in a merchant's inventory, you should:
Get a list of all items in a merchant's inventory
For each item in that list, request the ItemLookup Operation (See doc: http://docs.amazonwebservices.com/AWSECommerceService/2010-11-01/DG/ItemLookup.html) by passing the ASIN (unique identifier) of the item as the ItemId, and setting the ResponseGroup to "Images".
Your request should look like:
http://ecs.amazonaws.com/onca/xml?
Service=AWSECommerceService&
AWSAccessKeyId=[AWS Access Key ID]&
Operation=ItemLookup&
ItemId=[Your-ASIN]&
ResponseGroup=Images&
Timestamp=[YYYY-MM-DDThh:mm:ssZ]&
Signature=[Request Signature]
The response will look like:
<Item>
<ASIN>[Your-ASIN]</ASIN>
<SmallImage>
<URL>http://ecx.images-amazon.com/images/I/....jpg</URL>
<Height Units="pixels">75</Height>
<Width Units="pixels">58</Width>
</SmallImage>
<MediumImage>
<URL>http://ecx.images-amazon.com/images/I/....jpg</URL>
<Height Units="pixels">160</Height>
<Width Units="pixels">124</Width>
</MediumImage>
<LargeImage>
<URL>http://ecx.images-amazon.com/images/I/....jpg</URL>
<Height Units="pixels">500</Height>
<Width Units="pixels">389</Width>
</LargeImage>
</Item>
You can easily parse the response to get the URL of the image you want to use.
A few notes:
If you want to get the product image
for a different list of products
(say, all products in orders that
need to be fulfilled), just change
step 1 accordingly.
If you need more details about the
item, set the ResponseGroup parameter
with "Medium" or "Large" when
invoking the ItemLookup operation.
The Amazon Product Advertising doc
link given above has all the details.
You can also get the product image
directly by constructing its URL
using the product ASIN. A good
reference for building the URL can be
found in
http://aaugh.com/imageabuse.html.
This could work as a quick, temporary
hack, but understand that Amazon may
block or obfuscate these URL at any
time.
You can use the Amazon to Article Info Interface at http://lon.gr/ata/
It generates a XML-File containing the Image URL and other Article information based on the ASIN.
Total disclosure here, I’m Max and I’m the technical co-founder for Zinc (zinc.io). Our API produces a JSON response for both pricing and the product details page. Here’s a typical response for the details of an ASIN: https://www.dropbox.com/s/peccdc1m2j34e0d/B018QPI98A.json?dl=0

Resources