Archived topic
Is there a way of embed an advertising widget?
9 replies · Started by Karina on January 15, 2022
Hello
I am trying to embed an advertising widget in my site but I can’t manage to do it.
After I paste the code in the page I receive the following msg:
“Sorry, this content could not be embedded. Updating failed. The response is not a valid JSON response.”
Is there a way of embed an advertising widget?
Hi there,
where are you getting the advertising 'widget' from ? And what does this 'widget' look like ?
I am getting the advertising ‘widget’ from an affiliate network. This is an example:
https://www.tangol.com/widgets/tours?afiliadoid=2181aa24-8a80-43a8-b19e-5f95c6412ed8&cmp=Valdivia&country=CL&desId=129&tipoid=3¤cy=CLP&languagecode=ESP&cantidad=6&formato=3
Not familiar with that - i tested it on a dev site and it failed to embed for me as well.
I would suggest speaking with the Affiliate Network support.
Thanks David
I have tried different affiliate networks and in all I end having the same problem of not been able to embed widgets.
Here are 2 examples.
Have you checked with the support team of the affiliate network as David suggested?
This shouldn't be a theme issue - you can activate a Twenty series WP theme to test if the code works there.
Hello Leo
Thanks for your help
I contacted the affiliate network and they say that they have checked the code and it works fine for them.They showed me examples of other websites where those widgets work (like this one: https://espiritu-viajero.com/guia-de-viaje-bariloche-y-alrededores/).
Do you think that perhaps I am adding wrong the widget? I am trying to add the widget using a custom html block.
Looking forward to your reply
Do you think that perhaps I am adding wrong the widget? I am trying to add the widget using a custom html block.
This should be a good question for their support team as well - Did they comment on this?
The theme itself doesn't have any ways of interfering with this as far as I understand - you can always try #4 here to test:
https://docs.generatepress.com/article/debugging-tips/
Dear Leo
The problem got fixed.
They gave me the idea to switch to the classic editor to implement the widget and it worked.
Thanks!
No problem :)