Hi, That error is correct, as campaigns can only be added to client accounts. What error are you receiving when the clientId is not commented out?
Best, - Eric On Jul 15, 3:52 pm, JohnW2G <jwri...@where2getit.com> wrote: > Hey Eric, > > Thanks for the reply. > > I changed auth.ini, commenting out the clientID field as shown: > auth.ini > > email = "jx...@xxxx.com" > password = "XXXX" > userAgent = "Johns Test" > applicationToken = "" > developerToken = "jx...@xxxx.com++usd" > > ; Uncomment to make requests against a client account. > ;clientId = "client_1+jx...@xxxx.com" > > I then reran AddCampaign.php and got the following error: > > OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED > > On Jul 15, 12:56 pm, AdWords API Advisor > > > > <adwordsapiadvi...@google.com> wrote: > > Hi, > > > Did you run AddCampaign without the clientEmail specified as well? > > Campaigns can only be added to a client account, as MCC accounts are > > not allowed to have campaigns of their own. > > > Best, > > - Eric Koleda, AdWords API Team > > > On Jul 14, 11:22 am, JohnW2G <jwri...@where2getit.com> wrote: > > > > I am trying to setup a sandbox using the v201003 PHP libraries and > > > sample code. > > > > No matter what I do I keep getting the CLIENT_EMAIL_INVALID error. > > > Here are my configurations: > > > > auth.ini > > > > email = "jx...@xxxx.com" > > > password = "XXXX" > > > userAgent = "Johns Test" > > > applicationToken = "" > > > developerToken = "jx...@xxxx.com++usd" > > > > ; Uncomment to make requests against a client account. > > > clientId = "client_1+jx...@xxxx.com" > > > > --------------------------------------------------------------------------- > > > > settings.ini > > > > [SERVER] > > > ;DEFAULT_VERSION = "v200909" > > > DEFAULT_VERSION = "v201003" > > > > ; Change tohttps://adwords-sandbox.google.comtoworkin the sandbox > > > ; environment. > > > ;DEFAULT_SERVER = "https://adwords.google.com" > > > DEFAULT_SERVER = "https://adwords-sandbox.google.com" > > > > I tried running GetAllCampaigns.php in the examples folder with no > > > clientID specified in the auth.ini file to initialize the account with > > > a get statement and did get the expected return back of "No campaigns > > > were found" but still got the error when trying to run AddCampaign.php -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en