You are here:  » Number of keywords sent to AMAZON API


Number of keywords sent to AMAZON API

Submitted by DVDAFFAIRES on Wed, 2019-10-16 21:07 in

Hi David.
I have a problem with the AMAZON API response.
In France affiliate catalogs are almost never optimized.
The name of the products and always very long, for example:
"12 Pieces Universal Auto Car Precision Brake Disc Slide Rear Wind Brake Tool Kit Brake Pump Piston Brake Car Repair Tool Kit"
Which is of course no response from AMAZON.
I can not shorten the number of keywords sent to AMAZON in the pto_api_amazon.php file.
For example, I would like to send only four words like this:
"12 Pieces Universal Auto".
Could you help me ?

Cheers,
Raoul

Submitted by support on Thu, 2019-10-17 08:13

Hello Raoul,

Sure - edit api/pto_api_amazon.php and look for the following code at line 163:

  $url .= "&Keywords=".urlencode($pto_q);

...and REPLACE with:

  $words = implode(" ",array_slice(explode(" ",$pto_q),0,4));
  $url .= "&Keywords=".urlencode($words);

Cheers,
David.
--
PriceTapestry.com

Submitted by DVDAFFAIRES on Thu, 2019-10-17 09:55

Hi David
Great, it works well and I finally have results :o)

thank you very much
Raoul