Hi,

I'm using the ruby client library 
<https://github.com/googleads/google-api-ads-ruby/tree/master/adwords_api> . 
How do i make the CustomerService Request so that i get the Customer info 
for a non MCC account.

And for a MCC account i believe i have to use the ManagedCustomerService 
but for that i need to get the Customer ID of the MCC account. How do i get 
that as i don't get that in the OAuth response.

On Friday, August 5, 2016 at 8:06:39 PM UTC+5:30, Michael Cloonan (AdWords 
API Team) wrote:
>
> Hello,
>
> Use the CustomerService 
> <https://developers.google.com/adwords/api/docs/reference/v201607/CustomerService>
>  
> for this. The CustomerService does not require a CustomerID header to be 
> specified, and will return the currently authenticated customer. The 
> Customer 
> <https://developers.google.com/adwords/api/docs/reference/v201607/CustomerService.Customer>
>  
> that is returned includes the ID, which you can then specify in other 
> requests, as well as other information about the customer.
>
> Regards,
> Mike, AdWords API Team
>
> On Friday, August 5, 2016 at 2:42:04 AM UTC-4, Shibu Alist wrote:
>>
>> Hi Anthony,
>>
>> Thanks for your reply!!!!
>>
>> But i am still confused as i get the same answer from everywhere.
>>
>> Let me clear our application flow.
>>
>> Actually we are building an application, where normal users will connect 
>> their adword account by going through OAuth Authentication process.
>> After Authentication, they should be able to create campaign from our 
>> website. But we have to pass customerid for every request.How to get that 
>> customerID? as Authentication process doesn't return it. 
>>
>> ManagedCustomerService 
>> <https://developers.google.com/adwords/api/docs/reference/v201607/ManagedCustomerService>
>>   
>> will be used if client account is added in MCC account. But what if any 
>> random user, who is not under any MCC account wants to use our application 
>> . How he can achieve this ? I have seen many websites doing this But i 
>> didn't get any solution yet .
>>
>> Please do the needful.
>>
>> On Friday, August 5, 2016 at 5:09:58 AM UTC+5:30, Anthony Madrigal wrote:
>>>
>>> Hi Shibu,
>>>
>>> You can use the ManagedCustomerService 
>>> <https://developers.google.com/adwords/api/docs/reference/v201607/ManagedCustomerService>
>>>  from 
>>> your MCC level in order to get the client accounts under it. This will give 
>>> you the customer Ids of these accounts as well if you select the field 
>>> customerId 
>>> <https://developers.google.com/adwords/api/docs/reference/v201607/ManagedCustomerService.ManagedCustomer#customerid>
>>> .
>>>
>>> Cheers,
>>> Anthony
>>> AdWords API Team
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6bae722a-37ea-43ff-9569-92b8489c20b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How to get Cust... Shibu Alist
    • Re: How to... 'Anthony Madrigal' via AdWords API Forum
      • Re: Ho... Shibu Alist
        • Re... 'Michael Cloonan (AdWords API Team)' via AdWords API Forum
          • ... Shibu Alist
            • ... 'Michael Cloonan (AdWords API Team)' via AdWords API Forum
          • ... Alfie Max
            • ... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to