Exclude placements in Where Ads Showed

102 views
Skip to first unread message

athena druide

unread,
Mar 10, 2022, 3:26:45 PM3/10/22
to Google Ads Scripts Forum
Hello, 

I'd like to exclude some placements in the where ads showed section. 

function main() {
  removePlacement();
 
  function removePlacement() {
    var placementSelector = AdsApp.display().placements();
   
    var placementIterator = placementSelector.get();
    while (placementIterator.hasNext()) {
      var placement = placementIterator.next();
      var placementUrl = placement.getUrl();
      var campaign = placement.getCampaign();
      var regex = /[\u0600-\u06FF]/;
      var regexC = /[\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f]/;
      if (placement.match(regex)) {
        Logger.log ("La campagne contient des emplacements avec des termes arabes")
      }
    }
}
}

My script look like this. It's not my final script it's just a test. But it isn't working because I want to exclude the placements in Where ads showed and not in Placements. 

Can someone help me ? With a solution or a workaround ? 

Thank you ! 


Google Ads Scripts Forum Advisor

unread,
Mar 11, 2022, 2:40:20 AM3/11/22
to adwords...@googlegroups.com

Hello Athena,

 

Michael here from Google Ads scripts Team.

 

There is already currently ongoing investigation with regards to this issue. We would provide an update on this once we have come up with a resolution. Kindly provide the following information to be added on the troubleshooting of our team:

  • Customer ID / CID
  • Scriptname
  • Shareable link to the template sheet
  • Screenshot of the issue

You may send the requested details privately via "Reply To Author" button.

Regards,

Google Logo
Michael Angelo
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2XnR41:ref

athena druide

unread,
Mar 11, 2022, 3:01:35 AM3/11/22
to Google Ads Scripts Forum
Hello Michael, 
Thank you for your answer ! I am not authorized to send "Reply to author"

Google Ads Scripts Forum Advisor

unread,
Mar 14, 2022, 12:50:22 AM3/14/22
to adwords...@googlegroups.com

Hello Athena,

I’m James, a colleague of Michael. Kindly send the requested information through this email <googleadsscr...@google.com> instead.

Regards,

Google Logo
James Howell
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2XnR41:ref
Reply all
Reply to author
Forward
0 new messages