Title: Ad code keeps getting deleted/changed
Last modified: November 18, 2024

---

# Ad code keeps getting deleted/changed

 *  Resolved [phishstixxx](https://wordpress.org/support/users/phishstixxx/)
 * (@phishstixxx)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/ad-code-keeps-getting-deleted-changed/)
 * My ad codes either get deleted or edited which stops my ads running, for no apparent
   reason. No one else has access to my site.
   I’ve checked known theme and plugin
   conflicts already.No site/ad health issues,Any ideas?

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/ad-code-keeps-getting-deleted-changed/#post-18144548)
 * Hi [@phishstixxx](https://wordpress.org/support/users/phishstixxx/),
 * Thanks for reaching out. I checked the laundry website that you have mentioned
   in your profile, but I cannot see there Advanced Ads installed nor any ads. Is
   this the site that you refer to?
 * Best regards,
 * Joachim
 *  [henningaa](https://wordpress.org/support/users/henningaa/)
 * (@henningaa)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/ad-code-keeps-getting-deleted-changed/#post-18163479)
 * Hi there,
 * Is the issue still present?
   Have you also tried another browser and made sure
   no ad blocking tools are enabled while using the Advanced Ads plugin?
 * Please let me know if you need anything else.
 * Best regards,
   Henning
 *  Thread Starter [phishstixxx](https://wordpress.org/support/users/phishstixxx/)
 * (@phishstixxx)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/ad-code-keeps-getting-deleted-changed/#post-18163723)
 * My site is Madam-mimi.com
   The issue is still present. It’s nothing to do with
   the browser or ad blockers; the Advanced Ads plugin changes my ad codes about
   once a week.Today it replaced one script with another, and deleted another one
   altogether.I am the only one with access to my site.
    -  This reply was modified 1 year, 6 months ago by [phishstixxx](https://wordpress.org/support/users/phishstixxx/).
 *  [henningaa](https://wordpress.org/support/users/henningaa/)
 * (@henningaa)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/ad-code-keeps-getting-deleted-changed/#post-18169648)
 * Interesting. I am not aware of any issues like the one you described, and was
   unable to reproduce the behavior so far.
 * On your posts I can see three adverts “before content”, “after the first image”
   and after the content. These look fine from outside.
 * While using the text and code ad type from Advanced Ads, you may have noticed
   that the editor used in the text input field got a syntax check. It is possible
   that incomplete ad code is changed by this editor window in order to produce 
   working code while saving the ad? 
   Can you please check your ad code for errors
   in the input field?Can you give an example of your code so I can try to reproduce
   the behavior?Best regards,Henning
 *  [henningaa](https://wordpress.org/support/users/henningaa/)
 * (@henningaa)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/ad-code-keeps-getting-deleted-changed/#post-18183368)
 * Hi there,
 * did you find the time to read my last suggestions? Is the issue still present?
 * Best regards,
   Henning
 *  Thread Starter [phishstixxx](https://wordpress.org/support/users/phishstixxx/)
 * (@phishstixxx)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/ad-code-keeps-getting-deleted-changed/#post-18201638)
 * I have a new site and the problem is still present. Every week like clockwork
   it changes or deletes the ad codes and I have to update them all again manually.
   This issue is present on three different sites, hosted on different servers.
   
   The newest site with this issue is ttps://gossipthailand.com/พระเอกดัง-ดิ้นรน
   สุดชีวิI doubt it’s a syntax problem because it works straight away as soon as
   I change it and click save.
 * For some reason it only affects ads from Adsterra and not MGID.
   Example Adsterra
   script:<script type=’text/javascript’ src=’//differsfunk.com/bc/c3/4c/gh6h348vhdb598348767ufjh48ughd.
   js’></script>Example MGID script:<div data-type=”_mgwidget” data-widget-id=”6970485″
   ></div><script>(function(w,q){w[q]=w[q]||[];w[q].push([“_mgc.load”])})(window,”
   _mgq”);</script>
 *  [henningaa](https://wordpress.org/support/users/henningaa/)
 * (@henningaa)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/ad-code-keeps-getting-deleted-changed/#post-18315517)
 * Hi there,
   is the issue still ongoing?I still expect some third-party plugin or
   setting to interfere here. Since you said it’s changed “like clockwork” I can
   think of things like automated backups or something else running on a cronjob
   doing “optimizations” with the database or similar.
 * Best regards,
   Henning
 *  Thread Starter [phishstixxx](https://wordpress.org/support/users/phishstixxx/)
 * (@phishstixxx)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/ad-code-keeps-getting-deleted-changed/#post-18315524)
 * Still unsolved. All other ad code remains undeleted apart from Adsterra’s so 
   I don’t know how it could be a cronjob, even though it sounds like it.
 *  [henningaa](https://wordpress.org/support/users/henningaa/)
 * (@henningaa)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/ad-code-keeps-getting-deleted-changed/#post-18318228)
 * I created a test ad using the provided Adsterra code, if I understand you correctly
   I have to wait for about to week to review this and see if it also changed.
 * If you have additional tips on how to reproduce this, please let me know.
 * Best regards,
   Henning
 *  Thread Starter [phishstixxx](https://wordpress.org/support/users/phishstixxx/)
 * (@phishstixxx)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/ad-code-keeps-getting-deleted-changed/#post-18318523)
 * Nice. It happens with the social bar and popunder ad types, not sure about the
   others
 *  [henningaa](https://wordpress.org/support/users/henningaa/)
 * (@henningaa)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/ad-code-keeps-getting-deleted-changed/#post-18345783)
 * I’ve added your code to an ad on my test page and reviewed this last week and
   right now. There are no changes in the code and I was able to re-save the advert
   without any difference in the ad code itself.
   I fear my possibilities to test
   this further are exhausted here. And I have assume some specific configuration
   is causing the issue. If you could provide a detailed description or video on
   how to reproduce the behavior, please let me know and I’ll give it another try.
   Best regards,Henning

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Ad code keeps getting deleted/changed’ is closed to new replies.

 * ![](https://ps.w.org/advanced-ads/assets/icon-256x256.gif?rev=2773443)
 * [Advanced Ads – Ad Manager & AdSense](https://wordpress.org/plugins/advanced-ads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-ads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-ads/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-ads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-ads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-ads/reviews/)

 * 11 replies
 * 3 participants
 * Last reply from: [henningaa](https://wordpress.org/support/users/henningaa/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/ad-code-keeps-getting-deleted-changed/#post-18345783)
 * Status: resolved