I changed auth.ini, uncommenting out the clientID field as shown: auth.ini email = "[email protected]" password = "XXXX" userAgent = "Johns Test" applicationToken = "" developerToken = "[email protected]++usd"
; Uncomment to make requests against a client account. clientId = "[email protected]" I then reran AddCampaign.php and got the following error: AuthenticationError.CLIENT_EMAIL_INVALID On Jul 16, 4:08 pm, AdWords API Advisor <[email protected]> wrote: > 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 <[email protected]> wrote: > > > Hey Eric, > > > Thanks for the reply. > > > I changed auth.ini, commenting out the clientID field as shown: > > auth.ini > > > email = "[email protected]" > > password = "XXXX" > > userAgent = "Johns Test" > > applicationToken = "" > > developerToken = "[email protected]++usd" > > > ; Uncomment to make requests against a client account. > > ;clientId = "[email protected]" > > > I then reran AddCampaign.php and got the following error: > > > OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED > > > On Jul 15, 12:56 pm, AdWords API Advisor > > > <[email protected]> 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 <[email protected]> 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 = "[email protected]" > > > > password = "XXXX" > > > > userAgent = "Johns Test" > > > > applicationToken = "" > > > > developerToken = "[email protected]++usd" > > > > > ; Uncomment to make requests against a client account. > > > > clientId = "[email protected]" > > > > > --------------------------------------------------------------------------- > > > > > settings.ini > > > > > [SERVER] > > > > ;DEFAULT_VERSION = "v200909" > > > > DEFAULT_VERSION = "v201003" > > > > > ; Change tohttps://adwords-sandbox.google.comtoworkinthe 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
