How to convert the campaign budget from micros google ads API

189 views
Skip to first unread message

Ease Room

unread,
Feb 22, 2021, 12:33:24 AM2/22/21
to AdWords API and Google Ads API Forum

Hi, please explain the conversion of the campaign budget.

for example :
campaign budget is: RS 2000

1 . if I pass a campaign budget parameter is RS 2000, the campaign budget is taking 0.002 (micros) in Google ads campaign

but the actual campaign budget parameter is RS 2000.

$campaignBudget = new CampaignBudget([
'name' => $campaignname . uniqid(),
'campaign_goal' => 'Leads',
'delivery_method' => BudgetDeliveryMethod::STANDARD,
'amount_micros' => 2000
]);

Please tell me the calculation and how to pass it

2.How to set the campaign goal in the google ads API

Google Ads API Forum Advisor Prod

unread,
Feb 22, 2021, 12:47:18 PM2/22/21
to gi.ea...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out. Please find my response to your questions below:
 

  1. In AdWords API/Google Ads API, the Money type is with the micro units which means one million is equivalent to one unit. In your case, you would need to use 2,000,000,000 instead of 2000.

 

  1. You could only set the campaign goal on the Google Ads UI.

 

Thanks and regards,
Xiaoming, Google Ads API Team

 

Google Logo
Xiaoming
Google Ads API Team
 


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