managed_customer_service = self._client.GetService('ManagedCustomerService', version='v201708')
selector = {
"fields": ['Name', 'CustomerId', 'CanManageClients'],
"paging": {
"startIndex": "0", "numberResults": "100",
}
}
more_pages = True
while more_pages:
page = managed_customer_service.get(selector)
# .. process page ..
Response summary - {'requestId': 0005690...9b06, 'responseTime': 187, 'serviceName': CustomerService, 'methodName': getCustomers, 'operations': 0, 'isFault': True, 'faultMessage': "[RequestError.UNSUPPORTED_VERSION @ ; trigger:'You are accessing an AdWords API version v201708 that has been discontinued. Calls to this version may fail. Please visit the AdWords API blog for information on migration to the new AdWords API version.']"}
> print(page)
> {
> 'totalNumEntries': 0,
> 'Page.Type': 'ManagedCustomerPage',
> 'entries': [],
> 'links': []
> }
logging.basicConfig(level=logging.INFO, format=googleads.util.LOGGER_FORMAT)
logging.getLogger('suds.transport').setLevel(logging.DEBUG)
[2018-04-04 17:09:36,525 - googleads.soap - INFO] Request made: Service: "ManagedCustomerService" Method: "get" URL: "https://adwords.google.com/api/adwords/mcm/v201802/ManagedCustomerService"
[2018-04-05 08:54:16,481 - googleads.soap - INFO] Request made: Service: "ManagedCustomerService" Method: "get" URL: "https://adwords.google.com/api/adwords/mcm/v201802/ManagedCustomerService"
[2018-04-05 08:54:16,481 - googleads.soap - DEBUG] Outgoing request: {'SOAPAction': '""', 'Content-Type': 'text/xml; charset=utf-8', 'authorization': 'REDACTED'}
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header>
<ns0:RequestHeader xmlns:ns0="https://adwords.google.com/api/adwords/mcm/v201802">
<ns1:clientCustomerId xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201802">481XXX120</ns1:clientCustomerId>
<ns2:developerToken xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201802">GPaXXXXXXXyw</ns2:developerToken>
<ns3:userAgent xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201802">unknown (AwApi-Python, googleads/11.0.0, Python/3.6.0, zeep)</ns3:userAgent>
<ns4:validateOnly xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201802">false</ns4:validateOnly>
<ns5:partialFailure xmlns:ns5="https://adwords.google.com/api/adwords/cm/v201802">false</ns5:partialFailure>
</ns0:RequestHeader>
</soap-env:Header>
<soap-env:Body>
<ns0:get xmlns:ns0="https://adwords.google.com/api/adwords/mcm/v201802">
<ns0:serviceSelector>
<ns1:fields xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201802">Name</ns1:fields>
<ns2:fields xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201802">CustomerId</ns2:fields>
<ns3:fields xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201802">CanManageClients</ns3:fields>
<ns4:paging xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201802">
<ns4:startIndex>0</ns4:startIndex>
<ns4:numberResults>100</ns4:numberResults>
</ns4:paging>
</ns0:serviceSelector>
</ns0:get>
</soap-env:Body>
</soap-env:Envelope>
[2018-04-05 08:54:16,481 - zeep.transports - DEBUG] HTTP Post to https://adwords.google.com/api/adwords/mcm/v201802/ManagedCustomerService:
<?xml version='1.0' encoding='utf-8'?>
<soap-env:Envelope
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header>
<ns0:RequestHeader
xmlns:ns0="https://adwords.google.com/api/adwords/mcm/v201802">
<ns1:clientCustomerId
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201802">481XXX120
</ns1:clientCustomerId>
<ns2:developerToken
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201802">GPaXXXXXXXyw
</ns2:developerToken>
<ns3:userAgent
xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201802">unknown (AwApi-Python, googleads/11.0.0, Python/3.6.0, zeep)
</ns3:userAgent>
<ns4:validateOnly
xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201802">false
</ns4:validateOnly>
<ns5:partialFailure
xmlns:ns5="https://adwords.google.com/api/adwords/cm/v201802">false
</ns5:partialFailure>
</ns0:RequestHeader>
</soap-env:Header>
<soap-env:Body>
<ns0:get
xmlns:ns0="https://adwords.google.com/api/adwords/mcm/v201802">
<ns0:serviceSelector>
<ns1:fields
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201802">Name
</ns1:fields>
<ns2:fields
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201802">CustomerId
</ns2:fields>
<ns3:fields
xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201802">CanManageClients
</ns3:fields>
<ns4:paging
xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201802">
<ns4:startIndex>0</ns4:startIndex>
<ns4:numberResults>100</ns4:numberResults>
</ns4:paging>
</ns0:serviceSelector>
</ns0:get>
</soap-env:Body>
</soap-env:Envelope>
[2018-04-05 08:54:17,222 - zeep.transports - DEBUG] HTTP Response from https://adwords.google.com/api/adwords/mcm/v201802/ManagedCustomerService (status: 200):
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ns2:ResponseHeader
xmlns:ns2="https://adwords.google.com/api/adwords/mcm/v201802"
xmlns="https://adwords.google.com/api/adwords/cm/v201802">
<requestId>00056916XXX01d944</requestId>
<serviceName>ManagedCustomerService</serviceName>
<methodName>get</methodName>
<operations>1</operations>
<responseTime>181</responseTime>
</ns2:ResponseHeader>
</soap:Header>
<soap:Body>
<ns2:getResponse
xmlns="https://adwords.google.com/api/adwords/cm/v201802"
xmlns:ns2="https://adwords.google.com/api/adwords/mcm/v201802">
<ns2:rval>
<totalNumEntries>0</totalNumEntries>
<Page.Type>ManagedCustomerPage</Page.Type>
</ns2:rval>
</ns2:getResponse>
</soap:Body>
</soap:Envelope>
[2018-04-05 08:54:17,223 - googleads.soap - DEBUG] Incoming response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ns2:ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/mcm/v201802" xmlns="https://adwords.google.com/api/adwords/cm/v201802">
<requestId>00056916XXX01d944</requestId>
<serviceName>ManagedCustomerService</serviceName>
<methodName>get</methodName>
<operations>1</operations>
<responseTime>181</responseTime>
</ns2:ResponseHeader>
</soap:Header>
<soap:Body>
<ns2:getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201802" xmlns:ns2="https://adwords.google.com/api/adwords/mcm/v201802">
<ns2:rval>
<totalNumEntries>0</totalNumEntries>
<Page.Type>ManagedCustomerPage</Page.Type>
</ns2:rval>
</ns2:getResponse>
</soap:Body>
</soap:Envelope>
Hi Sandeep,
As your concern appears to be related to a different topic, I would recommend that you create a new thread and we can continue our discussion from there instead.
Best regards,
Peter
Google Ads API Team
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/JWnXL000000000000000000000000000000000000000000000PSCXM700-jApODeKScaID-CfvYXoCg%40sfdc.net.