Hi Olek,

The get_campaigns.py 
<https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201710/basic_operations/get_campaigns.py>
 from 
the client library has logging enabled already in the code as per the lines 
below:

logging.basicConfig(level=logging.INFO)
logging.getLogger('suds.transport').setLevel(logging.DEBUG)

So, when you run get_campaigns.py, you should be getting the SOAP request 
and response at the standard output. For example, I receive the output as 
below. Please note I have masked confidential data:

***@***:~$ 
*'/usr/local/google/home/***/Downloads/googleads-python-lib-master/examples/adwords/v201710/basic_operations/get_campaigns.py'*
 
DEBUG:suds.transport.http:opening 
(https://adwords.google.com/api/adwords/cm/v201710/CampaignService?wsdl)
INFO:oauth2client.client:Refreshing access_token
INFO:googleads.common:Request summary - {'clientCustomerId': ***-***-****, 
'methodName': get}
DEBUG:suds.transport.http:sending:
URL: https://adwords.google.com/api/adwords/cm/v201710/CampaignService
HEADERS: {'Soapaction': '""', 'Content-Type': 'text/xml; charset=utf-8', 
'Content-type': 'text/xml; charset=utf-8', 'Authorization': 'REDACTED', 
'SOAPAction': '""'}
MESSAGE:
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope 
xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201710"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:tns="https://adwords.google.com/api/adwords/cm/v201710"; 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";><SOAP-ENV:Header><tns:RequestHeader><tns:clientCustomerId>***-***-****</tns:clientCustomerId><tns:developerToken>REDACTED</tns:developerToken><tns:userAgent>unknown
 
(AwApi-Python, googleads/9.0.0, 
Python/2.7.13)</tns:userAgent><tns:validateOnly>false</tns:validateOnly><tns:partialFailure>false</tns:partialFailure></tns:RequestHeader></SOAP-ENV:Header><ns0:Body><ns1:get><ns1:serviceSelector><ns1:fields>Id</ns1:fields><ns1:fields>Name</ns1:fields><ns1:fields>Status</ns1:fields><ns1:paging><ns1:startIndex>0</ns1:startIndex><ns1:numberResults>100</ns1:numberResults></ns1:paging></ns1:serviceSelector></ns1:get></ns0:Body></SOAP-ENV:Envelope>
DEBUG:suds.transport.http:received:
CODE: 200
HEADERS: {'x-google-shellfish-status': 'CA0gBEAy', 
'x-google-gfe-response-code-details-trace': 
'response_code_set_by_backend,response_code_set_by_backend', 
'x-google-session-info': 
'CJ2l-PiKBBAHGgkYASgJMNqQxVhKETAEOg0xL25VUkU4NWxqZ2h-WgdKBWVuLVVTiAEBwAEB', 
'x-google-netmon-label': 
'/bns/qk/borg/qk/bns/adwordsapi/adwords-webapi-prod.server/14', 
'x-xss-protection': '1; mode=block', 'x-content-type-options': 'nosniff', 
'x-google-servertype': 'adwords-webapi', 'x-google-backends': 
'/bns/qk/borg/qk/bns/adwordsapi/adwords-webapi-prod.server/14,yvdn2:9868,/bns/yv/borg/yv/bns/traffic-prod/shared-layer2-gfe/86,yxbm131:443',
 
'alt-svc': 'hq=":443"; ma=2592000; quic=51303431; quic=51303339; 
quic=51303338; quic=51303337; quic=51303335,quic=":443"; ma=2592000; 
v="41,39,38,37,35"', 'x-google-gfe-service-trace': 
'adwords-webapi,ads-frontend-adv-aggregate', 'x-google-gslb-service': 
'adwords-webapi', 'cache-control': 'private, max-age=0', 'accept-ranges': 
'none', 'expires': 'Fri, 23 Feb 2018 18:42:47 GMT', 'date': 'Fri, 23 Feb 
2018 18:42:47 GMT', 'x-google-gfe-request-trace': 
'yxbm131:443,yvdn2:9868,/bns/qk/borg/qk/bns/adwordsapi/adwords-webapi-prod.server/14,yvdn2:9868,yxbm131:443',
 
'x-google-dos-service-trace': 'main:adwords-webapi,main:shared-layer2-gfe', 
'x-google-service': 'adwords-webapi,ads-frontend-adv-aggregate', 'server': 
'GSE', 'x-google-gfe-response-body-transformations': 'gunzipped', 
'connection': 'close', 'x-frame-options': 'SAMEORIGIN', 'content-type': 
'text/xml; charset=UTF-8', 'vary': 'Accept-Encoding'}
MESSAGE:
<soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Header><ResponseHeader
 
xmlns="https://adwords.google.com/api/adwords/cm/v201710";><requestId>000565e586d461980a371346a00f19a5</requestId><serviceName>CampaignService</serviceName><methodName>get</methodName><operations>1</operations><responseTime>230</responseTime></ResponseHeader></soap:Header><soap:Body><getResponse
 
xmlns="https://adwords.google.com/api/adwords/cm/v201710";><rval><totalNumEntries>3</totalNumEntries><Page.Type>CampaignPage</Page.Type><entries><id>****195</id><name>trial
 
2</name><status>ENABLED</status><budget></budget></entries><entries><id>****832</id><name>Interplanetary
 
Cruise 
#5a69f81cb2f8e</name><status>PAUSED</status><budget></budget></entries><entries><id>*****708</id><name>Shopping
 
campaign 
#1517413284020</name><status>ENABLED</status><budget></budget></entries></rval></getResponse></soap:Body></soap:Envelope>
INFO:googleads.common:Response summary - {'operations': 1, 'methodName': 
get, 'isFault': False, 'requestId': 000565e586d461980a371346a00f19a5, 
'responseTime': 230, 'serviceName': CampaignService}
Campaign with id "***195", name "trial 2", and status "ENABLED" was found.
Campaign with id "***832", name "Interplanetary Cruise #5a69f81cb2f8e", and 
status "PAUSED" was found.
Campaign with id "***708", name "Shopping campaign #1517413284020", and 
status "ENABLED" was found.

Could you please run the same program from the library and reply back with 
your SOAP logs?

Regards,
Dhanya, 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/7d404216-d6fa-4bd4-ab6e-15901068544b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Re: Error AP... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
    • Re: Err... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
      • Re:... santiagoruffino
      • Re:... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
      • Re:... santiagoruffino
      • Re:... santiagoruffino
      • Re:... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
      • Re:... santiagoruffino
      • Re:... olek . test . mcc
      • Re:... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
      • Re:... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum

Reply via email to