Per day budget via API

39 views
Skip to first unread message

V

unread,
Nov 13, 2016, 9:32:07 PM11/13/16
to AdWords API Forum
Hi all,

Stuck while creating campaign via API.

I want to create a campaign with per day budget specified.
While i am trying to create campaign via API, its dividing budget. Not sure exactly with what parameters of division.

I am using PHP code.
Lets say my per day budget amount per campaign is 10000.
Here's my code.
        $budget = new Budget();
$budget->name = ' Budget #'.uniqid();
$budget->amount = new Money(10000);
$budget->deliveryMethod = 'STANDARD';
$budget->isExplicitlyShared = false;

I want my campaign_1 to have budget as 10000 per day.

Please Help!!!!


Regards, 
V



Peter Oliquino

unread,
Nov 13, 2016, 10:45:29 PM11/13/16
to AdWords API Forum
Hi V,

You may refer to our AddCampaigns example in PHP. The Amount of the Budget being set is on a per day basis. Please also note that the amount is in micro units, so if you wish to set the value to 10,000 (of your selected currency), you will need to specify the amount as "10000000000". I hope this helps and please let me know if you have any other concerns.

Cheers,
Peter
AdWords API Team

Vandita

unread,
Nov 14, 2016, 1:38:02 AM11/14/16
to AdWords API Forum
Thanks Peter.
That worked for me.

Regards.
Reply all
Reply to author
Forward
0 new messages