AdWords API Re: getting client information

2009-12-02 Thread Simon FEBVRE
Oh I totally forgot !!

Thanks, that works

Simon

On 2 déc, 18:31, AdWords API Advisor 
wrote:
> Hi Simon,
>
> It looks like you aren't setting the actual clientEmail header on the
> service.  You are adding the clientEmail header to the hash, but never
> actually adding it to the service.
>
> Best,
> - Eric
>
> On Dec 2, 12:06 pm, Simon FEBVRE  wrote:
>
> > This is what I did ! But I always have information about my principal
> > MCC
>
> > in ruby :
> > headers = {
> >   :email => 'MYEMAIL',
> >   :password => 'MYPASSWORD',
> >   :useragent => 'USERAGENT',
> >   :developerToken => 'XXX',
> >   :applicationToken => 'XXX',
>
> > }
>
> > namespace = 'https://adwords.google.com/api/adwords/v13'
> > account_service = SOAP::WSDLDriverFactory.new(namespace + '/
> > AccountService?wsdl').create_rpc_driver
> > account_service.generate_explicit_type = true
> > account_service.wiredump_dev = nil
>
> > headers.each do |header, value|
> >   account_service.headerhandler << Header.new(header, value)
> > end
>
> > clientsInfos.each do |cl|
> >     headers[:clientEmail] = cl['emailAddress'].to_s
>
> >   info =  account_service.getAccountInfo(nil).getAccountInfoReturn
> >   puts info.inspect
> > end
>
> > Am I wrong?
> > Simon

--

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-...@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.




AdWords API Re: getting client information

2009-12-02 Thread AdWords API Advisor
Hi Simon,

It looks like you aren't setting the actual clientEmail header on the
service.  You are adding the clientEmail header to the hash, but never
actually adding it to the service.

Best,
- Eric

On Dec 2, 12:06 pm, Simon FEBVRE  wrote:
> This is what I did ! But I always have information about my principal
> MCC
>
> in ruby :
> headers = {
>   :email => 'MYEMAIL',
>   :password => 'MYPASSWORD',
>   :useragent => 'USERAGENT',
>   :developerToken => 'XXX',
>   :applicationToken => 'XXX',
>
> }
>
> namespace = 'https://adwords.google.com/api/adwords/v13'
> account_service = SOAP::WSDLDriverFactory.new(namespace + '/
> AccountService?wsdl').create_rpc_driver
> account_service.generate_explicit_type = true
> account_service.wiredump_dev = nil
>
> headers.each do |header, value|
>   account_service.headerhandler << Header.new(header, value)
> end
>
> clientsInfos.each do |cl|
>     headers[:clientEmail] = cl['emailAddress'].to_s
>
>   info =  account_service.getAccountInfo(nil).getAccountInfoReturn
>   puts info.inspect
> end
>
> Am I wrong?
> Simon

--

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-...@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.




AdWords API Re: getting client information

2009-12-02 Thread Simon FEBVRE
This is what I did ! But I always have information about my principal
MCC

in ruby :
headers = {
  :email => 'MYEMAIL',
  :password => 'MYPASSWORD',
  :useragent => 'USERAGENT',
  :developerToken => 'XXX',
  :applicationToken => 'XXX',
}

namespace = 'https://adwords.google.com/api/adwords/v13'
account_service = SOAP::WSDLDriverFactory.new(namespace + '/
AccountService?wsdl').create_rpc_driver
account_service.generate_explicit_type = true
account_service.wiredump_dev = nil

headers.each do |header, value|
  account_service.headerhandler << Header.new(header, value)
end

clientsInfos.each do |cl|
headers[:clientEmail] = cl['emailAddress'].to_s

  info =  account_service.getAccountInfo(nil).getAccountInfoReturn
  puts info.inspect
end

Am I wrong?
Simon

--

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-...@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.




AdWords API Re: getting client information

2009-12-02 Thread AdWords API Advisor
Hi Simon,

This can be done by making multiple requests to the v13
AccountService.  First make a call to getClientAccounInfos() as the
MCC user to get the list of client emails.  Then for each returned
result set the clientEmail header to that client's email and make a
request to getAccountInfo(), which will return more detailed
information about the client.

  http://code.google.com/apis/adwords/docs/developer/AccountInfo.html

Best,
- Eric Koleda, AdWords API Team

On Dec 2, 9:50 am, Simon FEBVRE  wrote:
> Hi ,
>
> I'd like to get information about all my clients such as the name of
> the company, the customer ID, ...
>
> I can get the email address and if they are an MCC or not thanks to
> the getClientAccountInfos method on an AccountService service.
>
> But I would like to know detailed information on all email addresses I
> get.
>
> Which method can I use?
>
> Thanks
> Simon

--

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-...@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.