Re: UNEXPECTED_INTERNAL_API_ERROR
Hello Danial, Really thanks for your time.As you said in your earlier post that i just need to have a gmail id for creating and using the sandbox adwords account. The credential which i need to put in the auth.ini files are emailid,password,useragent which is just a simple string,application token which i put as ignored,developers token which is my emailid+ +currency code i put when creating the account,and the authtoken. I have applied this code to get the authtoken .Can you please check whether this process for obtaining the code is correct or not.will this process will return me a valid authtoken.Here it is.. ?php // Get authorisation token $auth_url = 'https://www.google.com/accounts/ClientLogin'; // Setup data to pass to Google $data = array( 'accountType' = 'GOOGLE', 'Email' = 'mccprimali...@gmail.com', 'Passwd' = '', 'source'= 'primamcc-keyword-tool', 'service'= 'adwords'); // Try to fetch the authorisation code from Google $curl = curl_init($auth_url); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); $authorisation_code = curl_exec($curl); // Close the curl connection curl_close($curl); // Create the authorisation codes $authorisation_codes = explode(\n, $authorisation_code); $authorisation_code = array(); print $authorisation_code['SID'] = str_replace('SID=', '', $authorisation_codes[0]); print $authorisation_code['LSID'] = str_replace('LSID=', '', $authorisation_codes[1]); print $authorisation_code['Auth'] = str_replace('Auth=', '', $authorisation_codes[2]); ? what you said in your earlier post i have done that exactly but still i get the same error.so i thought of showing you the code i have used to get the auth token.please check.i have used just a gmail id to get the auth token, and i have put the same credentials in auth.ini file.and made my first request using the GetAllCampaigns.php from the example the liabary provides.But still i get the same error.can you please say me why this is happening? i am really getting frustrated.can you please suggest me what i can do to overcome this problem ? please i relay need your help.please. Please provide me a step wise rquirement i need to do to make the adwords api work properly.please suggest. On Nov 11, 7:03 pm, AdWordsAPIAdvisor adwordsapiadvi...@google.com wrote: Hello Moinak, You need both MCC and usual accounts: MCC for API token management and normal account for ad serving. Please don't confuse Production and Sandbox environments: For production you need both MCC account and advertiser accounts created. The MCC and client account ids assigned on account creation. In production you need to specify your MCC account login and password for authorization and your advertisers account id as clientCustomerId. Those accounts need to be linked. For sandbox account you initially need just one Google account (like gmail.com account), the advertiser accounts will be created for you automatically on sandbox initialization. For it, you need to specify your account login and password for authorization, leave clientEmail and clientCustomerIds fields empty and send a get request to the CampaignService. After that, most subsequent requests need to have clientCustomerId specified. You can retrieve your account hierarchy via ServicedAccountService to find out ids for client accounts created. Please see example in one of our client libraries. Best regards, Danial Klimkin, AdWords API Team. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: UNEXPECTED_INTERNAL_API_ERROR
Hello Daniel, Really thanks for your information.what i need to know is that should i use a adwords account or a mcc account to do the same.?see a adwords account and a mcc account is different.so i am confused about what type of account should i have to use to use the adwords api library.? should i have just adwords account,or a mcc acccount or a mcc account which have i client adwords account related with it ?I am asking this question as because i have a mcc account with a campaign running from it but still i get the error that 'NOT_ADS_USER' i.e no adwords account is connected with the credentials i am putting to get the authtoken.is it mandatory to make the first call to getcampaignservice to activate the account ? and is it also mandatory for the account i will use to have a active campaign running from it..?and how do i understand that my adwords sandbox account is activated or not.? please give answer to my above question.plese suggest.. Regards Moinak On Nov 10, 7:04 pm, Danial Klimkin danial.klimkin+fo...@google.com wrote: Hello Moinak, The very first request to the sandbox will initialize testing accounts on the server. This request should have no clientEmail or clientCustomerId supplied and needs to be a get request to the CampaignService as described here: http://code.google.com/apis/adwords/docs/sandbox.html After this is done you can use ServicedAccountService to find out client account ids. -Danial, AdWords API Team. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Internal Api Error...
Hi, I am using adwords api php library aw_api_php_lib_2.7.0 (v201109) in 'XAMP(1.7.0)' for getting related keywords. I have made the changes in auth.in file and settings.ini file to use it for a sandbox account. My auth.ini file look like this : email = primalink@gmail.com password = *** userAgent = primalink applicationToken = ignored developerToken = primalink@gmail.com++usd ; Uncomment to make requests against a client account. clientId = 613-155-1558 ; Uncomment the following to use an existing AuthToken. authToken = DQAAAJ8A***YeBogT ; Uncomment the following to use existing OAuth information. ; [OAUTH] ; oauth_consumer_key = INSERT_OAUTH_CONSUMER_KEY_HERE ; oauth_consumer_secret = INSERT_OAUTH_CONSUMER_SECRET_HERE ; oauth_token = INSERT_OAUTH_TOKEN_HERE ; oauth_token_secret = INSERT_OAUTH_TOKEN_SECRET_HERE And i have also changed the DEFAULT SERVER in settings.ini file to https://adwords-sandbox.google.com;. Now when i go in the browser and give the url http://localhost/ Addwords/examples/v20110/GetAllCampaigns.php ,the page shows [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError. (InternalApiErro] I am just clue less about how do i overcome this problem as i am getting this error again and again.I went through the sandbox tutorial and found that after i make changes in auth.ini file and settings.ini file, i should make a GET request for campaignservice to activate my sandbox account.I cant even understand whether my sandbox account is created or not,as this problem is persisting. Another thing is that is it mandatory to run a campaign from my addwords account to use it for setting up the the sandbox account,..? or else if i have addwords account,and no campaign is running from it,can't i use it for setting up a sandbox account and get related keywords ,using the account ? I am using apache 2.2 with php 5.2.8,curl enabled,ssl enabled soap enabled.Is client id which we need to put in the header request is the cause of the problem as i am 100percent not sure about the client id which i am using is the right one or not .I am using the client-id - which is displayed as a (10?) digit number in the adwords console related to a client of that account.But i have also used an older version of the API where we can put the client id as client_1 +primalink.mcc @gmail.com.but that also returns me with the same problem. Then hopefully client id is not the root cause for the problem. But now if i have to use the featured version of the API i.e aw_api_php_lib_2.7.0 (v201109) from where do i get the client id.? Is my adwords account is relay set.can you please check and let us know.if i want to start the usage of sandbox from scratch what should i do.? please suggest where is the problem is..and why do i get the same error again and again..is the Adwords sandbox server down..??..please suggest. I will be highly obliged to get a quick reply... Thanks -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: Internal Api Error...
On Nov 9, 3:58 pm, Oldskool j.dors...@gmail.com wrote: I am also having problems with the Sandbox today. When trying to receive an account list (with the GetAccountHierarchy.php example file), I get an internal error as well. Also, when trying to download a report, I get Report XML is invalid, with no further debugging info. Anyone from the Google API team that can take a look at this? On 9 nov, 09:44, Moinak Ghosh primalink@gmail.com wrote: Hi, I am using adwords api php library aw_api_php_lib_2.7.0 (v201109) in 'XAMP(1.7.0)' for getting related keywords. I have made the changes in auth.in file and settings.ini file to use it for a sandbox account. My auth.ini file look like this : email = primalink@gmail.com password = *** userAgent = primalink applicationToken = ignored developerToken = primalink@gmail.com++usd ; Uncomment to make requests against a client account. clientId = 613-155-1558 ; Uncomment the following to use an existing AuthToken. authToken = DQAAAJ8A***YeBogT ; Uncomment the following to use existing OAuth information. ; [OAUTH] ; oauth_consumer_key = INSERT_OAUTH_CONSUMER_KEY_HERE ; oauth_consumer_secret = INSERT_OAUTH_CONSUMER_SECRET_HERE ; oauth_token = INSERT_OAUTH_TOKEN_HERE ; oauth_token_secret = INSERT_OAUTH_TOKEN_SECRET_HERE And i have also changed the DEFAULT SERVER in settings.ini file to https://adwords-sandbox.google.com;. Now when i go in the browser and give the url http://localhost/ Addwords/examples/v20110/GetAllCampaigns.php ,the page shows [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError. (InternalApiErro] I am just clue less about how do i overcome this problem as i am getting this error again and again.I went through the sandbox tutorial and found that after i make changes in auth.ini file and settings.ini file, i should make a GET request for campaignservice to activate my sandbox account.I cant even understand whether my sandbox account is created or not,as this problem is persisting. Another thing is that is it mandatory to run a campaign from my addwords account to use it for setting up the the sandbox account,..? or else if i have addwords account,and no campaign is running from it,can't i use it for setting up a sandbox account and get related keywords ,using the account ? I am using apache 2.2 with php 5.2.8,curl enabled,ssl enabled soap enabled.Is client id which we need to put in the header request is the cause of the problem as i am 100percent not sure about the client id which i am using is the right one or not .I am using the client-id - which is displayed as a (10?) digit number in the adwords console related to a client of that account.But i have also used an older version of the API where we can put the client id as client_1 +primalink.mcc @gmail.com.but that also returns me with the same problem. Then hopefully client id is not the root cause for the problem. But now if i have to use the featured version of the API i.e aw_api_php_lib_2.7.0 (v201109) from where do i get the client id.? Is my adwords account is relay set.can you please check and let us know.if i want to start the usage of sandbox from scratch what should i do.? please suggest where is the problem is..and why do i get the same error again and again..is the Adwords sandbox server down..??..please suggest. I will be highly obliged to get a quick reply... Thanks -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: Internal Api Error...
Can any of the team members can check the issue which i have posted about the internal API error.Don't know why the google api support team is not responding when we need them the most... On Nov 9, 3:58 pm, Oldskool j.dors...@gmail.com wrote: I am also having problems with the Sandbox today. When trying to receive an account list (with the GetAccountHierarchy.php example file), I get an internal error as well. Also, when trying to download a report, I get Report XML is invalid, with no further debugging info. Anyone from the Google API team that can take a look at this? On 9 nov, 09:44, Moinak Ghosh primalink@gmail.com wrote: Hi, I am using adwords api php library aw_api_php_lib_2.7.0 (v201109) in 'XAMP(1.7.0)' for getting related keywords. I have made the changes in auth.in file and settings.ini file to use it for a sandbox account. My auth.ini file look like this : email = primalink@gmail.com password = *** userAgent = primalink applicationToken = ignored developerToken = primalink@gmail.com++usd ; Uncomment to make requests against a client account. clientId = 613-155-1558 ; Uncomment the following to use an existing AuthToken. authToken = DQAAAJ8A***YeBogT ; Uncomment the following to use existing OAuth information. ; [OAUTH] ; oauth_consumer_key = INSERT_OAUTH_CONSUMER_KEY_HERE ; oauth_consumer_secret = INSERT_OAUTH_CONSUMER_SECRET_HERE ; oauth_token = INSERT_OAUTH_TOKEN_HERE ; oauth_token_secret = INSERT_OAUTH_TOKEN_SECRET_HERE And i have also changed the DEFAULT SERVER in settings.ini file to https://adwords-sandbox.google.com;. Now when i go in the browser and give the url http://localhost/ Addwords/examples/v20110/GetAllCampaigns.php ,the page shows [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError. (InternalApiErro] I am just clue less about how do i overcome this problem as i am getting this error again and again.I went through the sandbox tutorial and found that after i make changes in auth.ini file and settings.ini file, i should make a GET request for campaignservice to activate my sandbox account.I cant even understand whether my sandbox account is created or not,as this problem is persisting. Another thing is that is it mandatory to run a campaign from my addwords account to use it for setting up the the sandbox account,..? or else if i have addwords account,and no campaign is running from it,can't i use it for setting up a sandbox account and get related keywords ,using the account ? I am using apache 2.2 with php 5.2.8,curl enabled,ssl enabled soap enabled.Is client id which we need to put in the header request is the cause of the problem as i am 100percent not sure about the client id which i am using is the right one or not .I am using the client-id - which is displayed as a (10?) digit number in the adwords console related to a client of that account.But i have also used an older version of the API where we can put the client id as client_1 +primalink.mcc @gmail.com.but that also returns me with the same problem. Then hopefully client id is not the root cause for the problem. But now if i have to use the featured version of the API i.e aw_api_php_lib_2.7.0 (v201109) from where do i get the client id.? Is my adwords account is relay set.can you please check and let us know.if i want to start the usage of sandbox from scratch what should i do.? please suggest where is the problem is..and why do i get the same error again and again..is the Adwords sandbox server down..??..please suggest. I will be highly obliged to get a quick reply... Thanks -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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