|
27 | 27 | import argparse |
28 | 28 | from datetime import datetime, timedelta |
29 | 29 | import sys |
| 30 | +from typing import Any, Optional |
30 | 31 | from uuid import uuid4 |
31 | 32 |
|
32 | 33 | from google.ads.googleads.client import GoogleAdsClient |
33 | 34 | from google.ads.googleads.errors import GoogleAdsException |
34 | 35 |
|
35 | 36 |
|
36 | 37 | def main( |
37 | | - client, customer_id, payments_account_id=None, payments_profile_id=None |
| 38 | + client: GoogleAdsClient, |
| 39 | + customer_id: str, |
| 40 | + payments_account_id: Optional[str] = None, |
| 41 | + payments_profile_id: Optional[str] = None, |
38 | 42 | ): |
39 | 43 | """The main method that creates all necessary entities for the example. |
40 | 44 |
|
@@ -64,8 +68,11 @@ def main( |
64 | 68 |
|
65 | 69 |
|
66 | 70 | def create_billing_setup( |
67 | | - client, customer_id, payments_account_id=None, payments_profile_id=None |
68 | | -): |
| 71 | + client: GoogleAdsClient, |
| 72 | + customer_id: str, |
| 73 | + payments_account_id: Optional[str] = None, |
| 74 | + payments_profile_id: Optional[str] = None, |
| 75 | +) -> Any: |
69 | 76 | """Creates and returns a new billing setup instance. |
70 | 77 |
|
71 | 78 | The new billing setup will have its payment details populated. One of the |
@@ -109,7 +116,9 @@ def create_billing_setup( |
109 | 116 | return billing_setup |
110 | 117 |
|
111 | 118 |
|
112 | | -def set_billing_setup_date_times(client, customer_id, billing_setup): |
| 119 | +def set_billing_setup_date_times( |
| 120 | + client: GoogleAdsClient, customer_id: str, billing_setup: Any |
| 121 | +): |
113 | 122 | """Sets the starting and ending date times for the new billing setup. |
114 | 123 |
|
115 | 124 | Queries the customer's account to see if there are any approved billing |
|
0 commit comments