Skip to content

Commit

Permalink
Add an includecode section in get_campaigns.py
Browse files Browse the repository at this point in the history
Add an includecode section in get_campaigns.py so it can be used in the "Getting Started" guide.
  • Loading branch information
AnashOommen authored and BenRKarl committed Aug 16, 2023
1 parent a6d9ccc commit c5633a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/basic_operations/get_campaigns.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from google.ads.googleads.client import GoogleAdsClient
from google.ads.googleads.errors import GoogleAdsException


# [START get_campaigns]
def main(client, customer_id):
ga_service = client.get_service("GoogleAdsService")

Expand All @@ -45,6 +45,7 @@ def main(client, customer_id):
f'"{row.campaign.name}" was found.'
)

# [END get_campaigns]

if __name__ == "__main__":
# GoogleAdsClient will read the google-ads.yaml configuration file in the
Expand Down

0 comments on commit c5633a6

Please sign in to comment.