Custom Comcode for Amazon

Post

Posted
Rating:
#3587 (In Topic #684)
Standard member
ooblek is in the usergroup ‘Well-settled’
This is more an Amazon question than a Custom Comcode question. The new Amazon ad code is complicated. In the past, there was just one number that fit into the {content} space. Now, there is a whole series of letters and numbers that change from one item to the next. I created a Custom Comcode for Amazon picture only, which is just a single number, and that worked fine. But I do not know what to replace with the {content} in this much more complicated code.

Here is an example of the entire code.

<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0"
src="//ws-na.amazon-
adsystem.com/widgets/qServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=US&source=ss&ref=
as_ss_li_til&ad_type=
product_link&tracking_id=yguaca20&marketplace=amazon&region=US&placement=0736956387&asins=0736956387&linkId=
7ed9bc560488e3b54e23ba30d83075e0
&show_border=true&link_opens_in_new_window=true"></iframe>

The part I made red is what changes from item to item. How can I make this work? That is, where does the {content} go? Thanks.

Last edit: by ooblek

Online now: No Back to the top

Post

Posted
Rating:
#3588
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Hi,

A few alternative things come to mind:
  1. Just use the raw HTML and forget about a Comcode tag
  2. Use the whole bit in red as 'content' (a bit messy, but it should work)
  3. Use parameters. You can use any number of parameters for the Comcode tag, not just the middle bit ('content'). E.g. {placement}, {asins}, {linkId}. Then reference like [amazon placement="..." asins="..." linkid="..."][/amazon]



Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Users online:

John Connor, amit.nigam, Vaiva, MVLipwig, Philip, gabriel58

Forum statistics:
  • 1,296 topics, 5,829 posts, 7,064 members
  • Our newest member is flour2door
Birthdays:
Back to Top