How to exclude an audience from a shopping campaign?

540 views
Skip to first unread message

Sigurd Fabrin

unread,
Mar 15, 2021, 7:39:58 AM3/15/21
to Google Ads Scripts Forum
Hi,

How can I exclude an audience from a shopping campaign?
- it seems that it is only possible to add as positive audience 
 
I'd like to to something like this example but with shopping campaigns 

I imagined smth like this could work, but it doesn't:

var campaignSelectors = [AdsApp.campaigns(),AdsApp.shoppingCampaigns()];
var audienceIter = AdsApp.userlists()
   .get();
     while (audienceIter.hasNext()) {
      var audience = audienceIter.next();
 for (i=0;i<campaignSelectors.length;i++) {
      var campaignIter = campaignSelectors[i]
      .get();
      while (campaignIter.hasNext()) {
        var campaign = campaignIter.next();
 //campaign.targeting().newUserListBuilder().withAudienceId(audience.getId()).build() // This works with search AND shopping
     campaign.targeting().newUserListBuilder().withAudience(audience).exclude(); // This only works with search  campaigns
       }
      }
    }


Thanks
  sigurd

Google Ads Scripts Forum Advisor

unread,
Mar 15, 2021, 11:07:39 PM3/15/21
to adwords...@googlegroups.com

Hi Sigurd,

 

Thanks for reaching out. Harry here, from the Google Ads Scripts Team.

 

Unfortunately, excluding a ShoppingCampaignAudience is currently not supported through scripts. If you would like, I can reach out to the rest of the team to request this feature on your behalf. Kindly confirm if you would like to proceed with this request and provide a sample use case or importance of this feature for your requirement/business.

 

Thanks,

Google Logo
Harry Cliford Rivera
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2DvakY:ref

Sigurd Fabrin

unread,
Mar 16, 2021, 6:01:14 AM3/16/21
to Google Ads Scripts Forum
Hi Harry,

OK, too bad. But thanks for the answer.

Would be great if you can request this to be included in scripts.

I use it mostly to synchronise audiences between campaigns to make sure all relevant lists are applied.


 sigurd

Google Ads Scripts Forum Advisor

unread,
Mar 16, 2021, 11:18:27 PM3/16/21
to adwords...@googlegroups.com
Hi Sigurd,

I have now raised this request to the rest of the team for consideration. Please be informed that there is no guarantee that this will be supported in the Google Ads Scripts anytime soon. Kindly follow our blog for updates and new releases in the meantime. Let me know if you have questions or other concerns.

Sigurd Fabrin

unread,
Mar 22, 2022, 4:24:39 AM3/22/22
to Google Ads Scripts Forum
Hi, any news regarding negative audiences for shopping campaigns?

Thanks
Sigurd

Google Ads Scripts Forum Advisor

unread,
Mar 23, 2022, 3:01:43 AM3/23/22
to adwords...@googlegroups.com

Hello Sigurd,

Thank you for your patience on this. However, I regret to inform you that there are no updates yet regarding this request and this is still pending for consideration. As mentioned by my colleague in his previous email, there is no guarantee that this will be supported in the Google Ads Scripts anytime soon. In the meantime, kindly keep an eye to our blog for updates and new releases on this.

Regards,

Google Logo
James Howell
Google Ads Scripts Team
 


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