Hi @iamkingsleyf—
It looks like it’s not able to bundle the image, which may be a restriction on downloading the image on Amazon’s part. Would it be possible to turn on the remote images setting in your Publish to Apple News settings to serve images from their actual URLs rather than sending the files to Apple along with the request?
hello;
Thanks for the reply, how do i do that? also i think there is an issue with LIST items. let me see if i can upload the screenshot from my ipad.
Regards
Apple News > Settings, scroll down to where it says “Use remote images?” and set that to Yes, then try again.
Hello;
Got the below error.
THERE HAS BEEN AN ERROR WITH THE API: INVALID_DOCUMENT – UNABLE TO READ URI [HTTPS://IMAGES-NA.SSL-IMAGES-AMAZON.COM/IMAGES/I/415MF9ZITL._SL160_.JPG]
The article in question
https://www.healthable.org/simple-healthy-recipes-cook-toaster-oven/
That does seem to indicate that it is a problem with the Amazon image. I’m actually getting a 404 when I try to load that URL in a browser, so it’s possible that they either removed that image, or they have a security policy in place that prevents that image from loading outside of a certain context.
Can you confirm that you can hit the image URL directly in a browser? If you can’t, there is no way the plugin or the Apple News service will be able to pull it.
Ah—when I was transposing the URL to lowercase, I lowercased the /I/, and it apparently needed to be capitalized.
In any case, if Apple News can’t read the Amazon URI, that’s unfortunately beyond the scope of this plugin. It’s likely a restriction on Amazon’s end, but I can’t say for certain.
Is it important to have the Amazon products embedded at the end of the article? Could you use a filter to strip them out when the Apple News JSON is being generated?
Its not that important, but if there is a way to strip out the shortcodes use for displaying the products.
by the way does adsense work on apple news?
Shortcodes are rendered prior to sending content to Apple News. If the HTML is compatible with Apple News format, it will be converted as with any other content. If you want to remove specific shortcodes before publishing, I encourage you to use the filter apple_news_exporter_content_pre: https://github.com/alleyinteractive/apple-news/wiki/Action-and-Filter-Hooks#adminapple-actionsindexclass-exportphp-1
No ads work on Apple News other than iAd. Please read the documentation here: https://developer.apple.com/library/content/documentation/General/Conceptual/iAd_News_Advertising/index.html