Hi team , 

We are having customer match feature where before creating a new audience , 
we fetch   the list of adaccount, (customer has access to) using below code.

$adWordsServices = new AdWordsServices();
$customerService = $adWordsServices->get($this->session, 
ManagedCustomerService::class);
$selector = new Selector();
$selector->setFields(array('Name', 'CustomerId', 'CanManageClients'));

This is basically calling get customer of 
https://adwords.google.com/api/adwords/mcm/v201809

below is the soap call 

*<?xml version=*"1.0"* encoding=*"UTF-8"*?>*

*<SOAP-ENV:*Envelope xmlns*:*SOAP-ENV*=*
"http://schemas.xmlsoap.org/soap/envelope/"; xmlns*:*ns1*=*
"https://adwords.google.com/api/adwords/cm/v201809"; xmlns*:*ns2*=*
"https://adwords.google.com/api/adwords/mcm/v201809"*>*

    *<SOAP-ENV:*Header*>*

        *<ns2:*RequestHeader*>*

            *<ns1:*clientCustomerId*>*6686213225*</ns1:clientCustomerId>*

            *<ns1:*developerToken*>*REDACTED*</ns1:developerToken>*

            *<ns1:*userAgent*>*Marketo (AwApi-PHP, 
googleads-php-lib/38.0.0, PHP/5.6.40)*</ns1:userAgent>*

            *<ns1:*validateOnly*>*false*</ns1:validateOnly>*

            *<ns1:*partialFailure*>*true*</ns1:partialFailure>*

        *</ns2:RequestHeader>*

    *</SOAP-ENV:Header>*

    *<SOAP-ENV:*Body*>*

        *<ns2:*get*>*

            *<ns2:*serviceSelector*>*

                *<ns1:*fields*>*Name*</ns1:fields>*

                *<ns1:*fields*>*CustomerId*</ns1:fields>*

                *<ns1:*fields*>*CanManageClients*</ns1:fields>*

            *</ns2:serviceSelector>*

        *</ns2:get>*

    *</SOAP-ENV:Body>*

*</SOAP-ENV:Envelope>*
However , One of our customer complains that they are not seeing one of the 
account (G Adventures API) which they have proper permission.

Client customer id is 6686213225. 
Response of this API does n't have ad account name ""G Adventures API"
Customer claims that they have proper permission on  this account . 

As this is open forum , I am not posting any token related stuff. 

Let me know if you need more info.





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9c76da3e-66ae-4580-8472-0d417668c7b3n%40googlegroups.com.

Reply via email to