Skip to content

Commit c5633a6

Browse files
AnashOommenBenRKarl
authored andcommitted
Add an includecode section in get_campaigns.py
Add an includecode section in get_campaigns.py so it can be used in the "Getting Started" guide.
1 parent a6d9ccc commit c5633a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/basic_operations/get_campaigns.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from google.ads.googleads.client import GoogleAdsClient
2525
from google.ads.googleads.errors import GoogleAdsException
2626

27-
27+
# [START get_campaigns]
2828
def main(client, customer_id):
2929
ga_service = client.get_service("GoogleAdsService")
3030

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

48+
# [END get_campaigns]
4849

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

0 commit comments

Comments
 (0)