i cant create campaign in test account

425 views
Skip to first unread message

Abdul 007

unread,
Aug 18, 2015, 8:54:45 AM8/18/15
to AdWords API Forum
hi 
i just start using google ads api
i can run get GetCampaigns.php from example folder which return "no campaigns were found" but when i try to add campaign
and run  addCampaigns.php it gives me the error 

An error has occurred: [OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ clas
s campaignmgmt.campaign.MutateAction (ADD) requires CREATE_CAMPAIGN, OperationAc
cessDenied.ADD_OPERATION_NOT_PERMITTED @ class campaignmgmt.campaign.MutateActio
n (ADD) requires CREATE_CAMPAIGN]
please help
thank you in advance 

Umesh Dengale

unread,
Aug 18, 2015, 4:07:42 PM8/18/15
to AdWords API Forum
Hello,

You are getting the "no campaigns were found" message because you are using a top-level MCC account (Manager account) for making API calls like GetCampaignsAddCampaigns. Top level MCC account Id(manager account) can be used only for account management (e.g. Create AccountGet Account Hierarchy etc.). 

You could create an AdWords account and set that account id to clientCustomerId in ads.properties(of Java client library) file and make the API calls other than the account management(e.g. GetCampaignsAddCampaigns) from our example code of client library. 

Thanks,
Umesh, AdWords API Team.

Abdul 007

unread,
Aug 19, 2015, 4:24:24 AM8/19/15
to AdWords API Forum
thank you so much 

nick.h...@agiletalentpool.com

unread,
Aug 19, 2015, 5:42:30 AM8/19/15
to AdWords API Forum
Thanks, this helped me as well!

On Wednesday, August 19, 2015 at 11:24:24 AM UTC+3, Abdul 007 wrote:
thank you so much 
Reply all
Reply to author
Forward
0 new messages