How to query a test account adwords api?

33 views
Skip to first unread message

ultrasport

unread,
Aug 13, 2015, 8:59:41 AM8/13/15
to AdWords API Forum, d...@ultrasport.ru
Under the instruction https: //developers.google.com/adwords/api/docs/tes ... I did
1) I created a production MCC account and received developerToken
2) Create test MCC account, which as I understand the usual ACC is not associated with adwords
3) the test was refresh_token Account
4) prescribed in auth.ini client library
developerToken
clientCustomerId
userAgent
client_id
client_secret
refresh_token

When the php www / adwords / examples / AdWords / v201506 / BasicOperations / GetCampaigns.php answer comes No campaigns were found.
When prompted php www / adwords / examples / AdWords / v201506 / BasicOperations / AddCampaigns.php [OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ class campaignmgmt.campaign.MutateAction (ADD) requires CREATE_CAMPAIGN

Tell me what's wrong.

Umesh Dengale

unread,
Aug 13, 2015, 12:15:17 PM8/13/15
to AdWords API Forum, d...@ultrasport.ru
Hello,

You are getting the above-mentioned error because you are using a top-level MCC account (Manager account) for calling 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 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.
Reply all
Reply to author
Forward
0 new messages