<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/cm/v201809">
<ns0:developerToken>REDACTED</ns0:developerToken>
<ns0:userAgent>unknown (AwApi-Python, googleads/15.0.2, Python/2.7.15, zeep)</ns0:userAgent>
<ns0:validateOnly>false</ns0:validateOnly>
<ns0:partialFailure>false</ns0:partialFailure>
</ns0:RequestHeader>
</soap-env:Header>
<soap-env:Body>
<ns0:get xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201809">
<ns0:serviceSelector>
<ns0:fields>Id</ns0:fields>
<ns0:fields>Name</ns0:fields>
<ns0:fields>Status</ns0:fields>
<ns0:paging>
<ns0:startIndex>0</ns0:startIndex>
<ns0:numberResults>100</ns0:numberResults>
</ns0:paging>
</ns0:serviceSelector>
</ns0:get>
</soap-env:Body>
</soap-env:Envelope>
[2019-01-15 17:21:34,002 - googleads.soap - DEBUG] Incoming response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809">
<requestId>00057f89193535f00a62b504be069a16</requestId>
<serviceName>CampaignService</serviceName>
<methodName>get</methodName>
<operations>1</operations>
<responseTime>259</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201809">
<rval>
<totalNumEntries>0</totalNumEntries>
<Page.Type>CampaignPage</Page.Type>
</rval>
</getResponse>
</soap:Body>
</soap:Envelope>
for ccid in list_of_customer_ids:
# get the adwords client, would love to pass different client_customer_id to this but not sure how to do so
client = adwords.AdWordsClient.LoadFromString(ccid)
# or, instead, can I just set the property like this
client.client_customer_id = ccid
# obtain the campaign service proxy
campaign_service = client.GetService('CampaignService', version='v201809')
#execute the query
query = (adwords.ServiceQueryBuilder()
.Select('Id', 'Name', 'Status', 'Labels')
.OrderBy('Name')
.Limit(0, PAGE_SIZE)
.Build())
# do stuff with the campaigns....
for page in query.Pager(campaign_service):
... do stuff with campaign info...
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@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/42928aed-d056-48be-b8c9-35de779c419d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.