googleads / googleads-dfa-reporting-samples

Samples for the DoubleClick for Advertisers Reporting and Trafficking API
Apache License 2.0
106 stars 173 forks source link

Double request in python #6

Closed flyingsriracha closed 8 years ago

flyingsriracha commented 8 years ago

Hi is it possible to construct two different request in one try statement? example: try:

Construct the request.

request = service.placements().list(profileId=profile_id, maxStartDate=time.strftime("%Y-%m-%d"), minStartDate='2016-05-01')
request = service.campaigns().list(profileId=profile_id)
jimper commented 8 years ago

Sure, we have a few examples that do that (create_placement.py, for example). The try statements are only included in the samples to catch common errors.