Setting Target ROAS doesn't work for TARGET_ROAS?

56 views
Skip to first unread message

Brandon Cook

unread,
Feb 5, 2025, 4:43:47 PMFeb 5
to Google Ads Scripts Forum
I have a script running on my account that is adjusting Target ROAS based on the historical ROAS, with the intent being to adjust up if we can do better or adjust down if we're expecting too much.

The script works to set the new target if the strategy type is MAXIMIZE_CONVERSION_VALUE, but fails when the type is TARGET_ROAS. Here is the relevant portion of the script:

  var campaigns = AdsApp.campaigns().withCondition("campaign.status = ENABLED").get();
  while (campaigns.hasNext()) {
    var campaign = campaigns.next();
    var bidding = campaign.bidding();
    var adjustment = 2;
    var roas = ###; // A function is called here to get the historical ROAS
    if (roas > (bidding.getTargetRoas() + adjustment)) {
      bidding.setTargetRoas(bidding.getTargetRoas() + adjustment);
    }
    else if (roas < (bidding.getTargetRoas() - adjustment)) {
      if (bidding.getTargetRoas() - adjustment < 150) {
        bidding.setTargetRoas(150);
      }
      else {
        bidding.setTargetRoas(bidding.getTargetRoas() - adjustment);
      }
    }
  }


The error I get from bidding.setTargetRoas(number) states:
'[Campaign Name]' employs a TARGET_ROAS bidding strategy. This type of bidding strategy does not support target roas.

In this case, the particular campaign it fails on is a campaign with type of Display.

Google Ads Scripts Forum Advisor

unread,
Feb 5, 2025, 6:29:18 PMFeb 5
to adwords...@googlegroups.com

Hi,

Thank you for reaching out to the Google Ads Scripts support team.

I would like to inform you that for updating bidding strategy to Target ROAS (display campaigns), you need at least 15 conversions for campaigns (with valid conversion values) in the past 30 days. I would suggest that you refer to this article for more information about requirements for setting Target ROAS bidding strategy.

If you are still facing the same issue even after meeting all the requirements, kindly get back to us with the Google Ads account ID/CID and name of the affected script.

You can share the requested details via Reply privately to the author option or a direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vH0OC:ref" (ADR-00287267)

Thanks,
 
Google Logo Google Ads Scripts Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5



Brandon Cook

unread,
Feb 5, 2025, 7:31:47 PMFeb 5
to adwords...@googlegroups.com
The ad account ID is 293-772-7861 and the campaign name is "Smart".

The campaign is already set to use Target ROAS as the bidding strategy and the current target is set to 200%. There are nearly 200 conversions valued around 5300 in the last 30 days.

The script is labeled as "Crashing Script" in the account. There is a secondary copy called "ROAS - Search/Smart" that doesn't crash, but it's because I have placed an if statement that only attempts to set target ROAS if the bidding strategy type is MAXIMIZE_CONVERSION_VALUE. However, setting target ROAS should also work when the strategy type is TARGET_ROAS.


Thanks,

 

Brandon Cook

Data Analyst, Information Technology

Indiana Finance Company

9601 Innovation Drive
Suite 680
Daleville, IN 47334

Phone: 765.378.3022

Email: bc...@indianafinance.net



--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/xRPsyCPzWtY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/adwords-scripts/EMD21000000000000000000000000000000000000000000000SR8H88009lLeUzYOTy-sSe0X81VMvg%40sfdc.net.

Google Ads Scripts Forum

unread,
Feb 6, 2025, 12:45:24 AMFeb 6
to Google Ads Scripts Forum
Hi,

I would like to inform you that the TARGET_ROAS bidding strategy type is not currently supported in the Google Ads Scripts. I recommend you to go through the list of bidding strategies that are currently supported by Google Ads Scripts. We recommend you to please follow our blog posts for future updates and announcements on this feature.

Feel free to get back in case of any further queries.

Thanks,
Google Ads Scripts team
Reply all
Reply to author
Forward
0 new messages