How to Get Campaign Level Target CPAs (NOT Portfolio Strategy)?

74 views
Skip to first unread message

Daniel Zrust

unread,
Mar 28, 2021, 4:32:12 PM3/28/21
to Google Ads Scripts Forum
HI guys,
a simple question - how do I get campaign level target CPA via scripts? 

I am not using portfolio bid strategies. 

I am using target CPAs set on campaign level. Unique for every campaign.

Something tells me it's not possible.

DZ

Google Ads Scripts Forum Advisor

unread,
Mar 28, 2021, 11:09:25 PM3/28/21
to adwords...@googlegroups.com

Hello DZ,

Thanks for raising this to us.

With regard to your concern on getting Campaign's bidding strategies, you can simply use the Campaign's bidding() method. This will return the CampaignBidding which provides access to a campaign's bidding fields. From there, you can utilize the getStrategyType() method.

Hope this helps.

Regards,

Google Logo
Mark Kevin Albios
Google Ads Scripts Team
 

 

ref:_00D1U1174p._5004Q2Env39:ref

Daniel Zrust

unread,
Mar 29, 2021, 4:38:46 PM3/29/21
to Google Ads Scripts Forum
Hi Mark,
I think this is still useless though, look:
function main() {
  
  var campaigns = AdsApp.campaigns().get()
  
  while(campaigns.hasNext()){
    var campaign = campaigns.next()
    
    var campaignName = campaign.getName()
    var biddingStrat = campaign.bidding().getStrategyType()
                                 
                                         
    Logger.log(campaignName +': ' + biddingStrat)
  }
  
}


And I'm getting results like:
en-au_sch_brn_brd_adw_dtp: TARGET_CPA

...but I still don't know what my TARGET_CPA value is...

Google Ads Scripts Forum Advisor

unread,
Mar 29, 2021, 11:37:36 PM3/29/21
to adwords...@googlegroups.com
Hi Daniel,

Thanks for coming back. Harry here and I work along Mark. Allow me to assist you this time.

You may retrieve BiddingStrategies at the Campaign level and get its strategy type among other supported methods, but retrieving the target bidding value (Eg. Target CPA value) is not supported currently in the Google Ads Scripts. Please see CampaignBidding for your reference. In addition, you can retrieve and set such values at the AdGroup level (Target CPA, Max CPC, CPM bid). See AdGroupBidding.

On the other hand, if retrieving the target CPA value at the Campaign level is really necessary to your requirement/business, I can reach out to the rest of the team and file a feature request on your behalf upon your confirmation. However, as you would already know, all requests are subject for consideration and are not guaranteed to be supported any time soon in the Google Ads Scripts. Kindly provide also a sample use case to the feature.

Let me know if you have questions or other concerns.
 

Thanks,
Google Logo
Harry Cliford Rivera
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2Env39:ref

Daniel Zrust

unread,
Mar 30, 2021, 3:39:21 AM3/30/21
to Google Ads Scripts Forum
Well... it's important for our business but I cannot really wait for months so I will just have to move my CPAs to ad group level. Those are retrievable.

DZ

DB

unread,
Apr 5, 2021, 3:36:27 AM4/5/21
to Google Ads Scripts Forum
Joining in to this feature request.
Also require getting campaign level Target CPA value...

Google Ads Scripts Forum Advisor

unread,
Apr 5, 2021, 5:33:54 AM4/5/21
to adwords...@googlegroups.com
Hello,

Would you mind providing a sample use the case to the feature so that I can bring this up to the rest of the team? I am asking of this detail in all requests to provide the team of the importance of additional features to users. If you can, I would highly appreciate it. Nevertheless, I would still put in the request for you.

Daniel Zrust

unread,
Apr 5, 2021, 5:43:21 AM4/5/21
to Google Ads Scripts Forum
It's very simple/

Some people don't use target CPA bidding on adgr level but they rather prefer campaign level target CPAs.

DZ

Daniel Zrust

unread,
Apr 5, 2021, 5:52:26 AM4/5/21
to Google Ads Scripts Forum
And for that reason, we need to be able to pull campaign target CPAs (and upload campaign Target CPAs)

Google Ads Scripts Forum Advisor

unread,
Apr 5, 2021, 11:10:31 PM4/5/21
to adwords...@googlegroups.com
Hi Daniel/David,

I have now filed the request on your behalf. Let me know if there's any more context you would like to add alongside the request. As you would already now, requests are subject for consideration and will not be guaranteed to be supported in the Google Ads Scripts anytime soon. In the meantime, please follow our blog for updates and new releases.
Reply all
Reply to author
Forward
0 new messages