Re: UNEXPECTED_INTERNAL_API_ERROR

2011-11-16 Thread Ali Moiyed
Hello,

can anyone give me some idea about where i am going wrong.i am using
the same scripts which has been downloaded with the adwords api php
library.
I am just changing the credentials in auth.ini file and changing the
default server to sandbox url in settings.ini file.Then why i keep
getting the error   [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
@com.google.ads.api.services.common.error.InternalApiError.
(InternalApiErro] .
can anyone please help me to know that why i am getting this error
again and again.Please can anyone give me some idea about this.
Need help..

Regards
Moinak



On Nov 14, 11:48 am, Moinak Ghosh primalink@gmail.com wrote:
 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

2011-11-08 Thread Ali Moiyed
Hello Danial,


Thanks for your reply.ok i will comment out the the clientid for the
first request.But the thing is that if i comment out the clientId also
i keep on getting the same error.I am using API version
aw_api_php_lib_2.7.0(v201109). and i am using xampp(1.7.0) for doing
so.

Is ther anything wrong in my xamp setup.?? because when i run
GetAllcampaigns.php from command prompt i get the error

Notice: SoapClient::SoapClient(): Unable to find the wrapper https -
did you forget to enable it when you configured PHP? in
 C:\xampp\htdocs\googlelib\src\Google\Api\Ads\Common\Lib
\AdsSoapClient.php on line 144

Warning: SoapClient::SoapClient(): I/O warning : failed to load
external entity  https://adwords-sandbox.google.com/api/adwords/cm/
v201101/CampaignService?wsdl in C:\xampp\htdocs\googlelib\src\Google
\Api\Ads\Common\Lib\AdsSoapClient.php online 144

SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords-
sandbox.google.com/api/adwords/cm/v201101/CampaignService?wsdl' :
failed to load external entity https://adwords-sandbox.google.com/api/
adwords/cm/v201101/CampaignService?wsdl

Though the dll files required to load the WSDL are open in my php.ini
file in xampp
 This is how my ph.ini file look

;extension=php_apc.dll
;extension=php_apd.dll
;extension=php_bcompiler.dll
;extension=php_bitset.dll
;extension=php_blenc.dll
;extension=php_bz2.dll
;extension=php_bz2_filter.dll
;extension=php_classkit.dll
;extension=php_cpdf.dll
;extension=php_crack.dll
extension=php_curl.dll
;extension=php_cvsclient.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_dio.dll
;extension=php_docblock.dll
;extension=php_domxml.dll
;extension=php_event.dll
;extension=php_fdf.dll
;extension=php_fileinfo.dll
;extension=php_filepro.dll
;extension=php_filter.dll
;extension=php_fribidi.dll
extension=php_gd2.dll
extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_gopher.dll
;extension=php_hash.dll
;extension=php_http.dll
;extension=php_hyperwave.dll
;extension=php_ibm_db2.dll
;extension=php_id3.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imagick.dll
extension=php_imap.dll
;extension=php_ingres.dll
;extension=php_interbase.dll
;extension=php_ixsfunc.dll
;extension=php_java.dll
;extension=php_json.dll
extension=php_ldap.dll
;extension=php_lzf.dll
;extension=php_mailparse.dll
;extension=php_maxdb.dll
extension=php_mbstring.dll
extension=php_exif.dll
extension=php_mcrypt.dll
;extension=php_mcrypt_filter.dll
;extension=php_memcache.dll
;extension=php_mhash.dll
extension=php_mime_magic.dll
extension=php_ming.dll
;extension=php_msql.dll
extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_netools.dll
;extension=php_ntuser.dll
;extension=php_oracle.dll
;extension=php_oci8.dll
;extension=php_oggvorbis.dll
extension=php_openssl.dll
;extension=php_parsekit.dll
extension=php_pdf.dll
extension=php_pdo.dll
;extension=php_pdo_firebird.dll
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_sqlite.dll
;extension=php_perl.dll
extension=php_pgsql.dll
;extension=php_phpdoc.dll
;extension=php_pop3.dll
;extension=php_printer.dll
;extension=php_pspell.dll
;extension=php_radius.dll
;extension=php_runkit.dll
;extension=php_sdo.dll
;extension=php_sdo_das_xml.dll
;extension=php_shmop.dll
;extension=php_smtp.dll
;extension=php_snmp.dll
extension=php_soap.dll
extension=php_sockets.dll
extension=php_sqlite.dll
;extension=php_ssh2.dll
;extension=php_stats.dll
;extension=php_svn.dll
;extension=php_sybase_ct.dll
;extension=php_threads.dll
;extension=php_tidy.dll
;extension=php_timezonedb.dll
;extension=php_translit.dll
;extension=php_win32ps.dll
;extension=php_win32scheduler.dll
;extension=php_win32service.dll
;extension=php_win32std.dll
;extension=php_xdebug.dll
;extension=php_xmlreader.dll
extension=php_xmlrpc.dll
;extension=php_xmlwriter.dll
extension=php_xsl.dll
;extension=php_yaz.dll ; Module make problems
extension=php_zip.dll
;extension=php_zlib_filter.dll


extension=php_ps.dll
extension=php_paradox.dll
;;;
; Module Settings ;
;;;

[Date]
; Defines the default timezone used by the date functions
date.timezone = CET
[Date] date.timezone = CET




I am just clueless about how to proceed as everything i try gives me
the same error..

The phpinfo from xampp gives me this information

curl
cURL supportenabled
cURL Informationlibcurl/7.16.0 OpenSSL/0.9.8i zlib/1.2.3


soap
Soap Client enabled
Soap Server enabled

Directive   Local Value Master Value
soap.wsdl_cache 1   1
soap.wsdl_cache_dir C:\xampp\tmpC:\xampp\tmp
soap.wsdl_cache_enabled 1   1
soap.wsdl_cache_limit   5   5
soap.wsdl_cache_ttl 86400   86400

openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.8i 15 Sep 2008

hash
hash supportenabled
Hashing 

UNEXPECTED_INTERNAL_API_ERROR

2011-11-03 Thread Ali Moiyed
Hello sir,

I am using adwords api php library 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 = mcc.primal...@gmail.com
password = ***
userAgent = primalink
applicationToken = ignored
developerToken = mcc.primal...@gmail.com++usd

; Uncomment to make requests against a client account.
 clientId = client_1+mcc.primal...@gmail.com

; Uncomment the following to use an existing AuthToken.
 authToken = DQAAAJ0AAAD4***41KNb

; 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/v201109/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 wheather my sandbox acount 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  for testing ,using the account ?

please helpI 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


UNEXPECTED_INTERNAL_API_ERROR

2011-11-03 Thread Ali Moiyed
Hello sir,

I am using adwords api php library 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 = mcc.primal...@gmail.com
password = ***
userAgent = primalink
applicationToken = ignored
developerToken = mcc.primal...@gmail.com++usd

; Uncomment to make requests against a client account.
 clientId = client_1+mcc.primal...@gmail.com

; Uncomment the following to use an existing AuthToken.
 authToken = DQAAAJ0AAAD4*
**41KNb

; 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/v201109/GetAllCampaigns.phphttp://localhost/Addwords/examples/v201109/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 wheather my sandbox acount 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  for testing ,using the account ?

please helpI 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