Skip to content

Commit 1d2434e

Browse files
authored
Changes for release v20_0. (#1008)
1 parent 4f350a8 commit 1d2434e

File tree

1,768 files changed

+402627
-168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,768 files changed

+402627
-168
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
* 27.0.0
2+
- Google Ads API v20_0 release.
3+
- Remove Google Ads API v17.
4+
- Add example for generating audience insights.
5+
- Add example for creating demand gen campaign.
6+
17
* 26.1.0
28
- Google Ads API v19_1 release.
39
- Add two new examples for budget recommendations.

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN apt-get update -qy && \
2222
python3.10 \
2323
python3.11 \
2424
python3.12 && \
25-
curl -fsSo /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py && \
25+
curl -fsSo /tmp/get-pip.py https://bootstrap.pypa.io/pip/3.8/get-pip.py && \
2626
python3.8 /tmp/get-pip.py && \
2727
python3.8 -m pip install --no-cache-dir --upgrade pip && \
2828
python3.9 /tmp/get-pip.py && \
@@ -37,4 +37,4 @@ RUN apt-get update -qy && \
3737
python3 -m pip install --no-cache-dir "nox>=2020.12.31,<2022.6" && \
3838
rm -rf /var/cache/apt/lists
3939

40-
WORKDIR "/google-ads-python"
40+
WORKDIR "/google-ads-python"

examples/account_management/create_customer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from google.ads.googleads.client import GoogleAdsClient
2929
from google.ads.googleads.errors import GoogleAdsException
3030

31+
3132
# [START create_customer]
3233
def main(client, manager_customer_id):
3334
customer_service = client.get_service("CustomerService")
@@ -73,7 +74,7 @@ def main(client, manager_customer_id):
7374

7475
# GoogleAdsClient will read the google-ads.yaml configuration file in the
7576
# home directory if none is specified.
76-
googleads_client = GoogleAdsClient.load_from_storage(version="v19")
77+
googleads_client = GoogleAdsClient.load_from_storage(version="v20")
7778

7879
try:
7980
main(googleads_client, args.manager_customer_id)

examples/account_management/get_account_hierarchy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def print_account_hierarchy(
197197

198198
# GoogleAdsClient will read the google-ads.yaml configuration file in the
199199
# home directory if none is specified.
200-
googleads_client = GoogleAdsClient.load_from_storage(version="v19")
200+
googleads_client = GoogleAdsClient.load_from_storage(version="v20")
201201
try:
202202
main(googleads_client, args.login_customer_id)
203203
except GoogleAdsException as ex:

examples/account_management/get_change_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def main(client, customer_id):
196196

197197
# GoogleAdsClient will read the google-ads.yaml configuration file in the
198198
# home directory if none is specified.
199-
googleads_client = GoogleAdsClient.load_from_storage(version="v19")
199+
googleads_client = GoogleAdsClient.load_from_storage(version="v20")
200200
try:
201201
main(googleads_client, args.customer_id)
202202
except GoogleAdsException as ex:

examples/account_management/get_change_summary.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
"""This example gets a list of which resources have been changed in an account.
18-
"""
17+
"""This example gets a list of which resources have been changed in an account."""
1918

2019

2120
import argparse
@@ -98,7 +97,7 @@ def main(client, customer_id):
9897

9998
# GoogleAdsClient will read the google-ads.yaml configuration file in the
10099
# home directory if none is specified.
101-
googleads_client = GoogleAdsClient.load_from_storage(version="v19")
100+
googleads_client = GoogleAdsClient.load_from_storage(version="v20")
102101

103102
try:
104103
main(googleads_client, args.customer_id)

examples/account_management/invite_user_with_access_role.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def main(client, customer_id, email_address, access_role):
9090

9191
# GoogleAdsClient will read the google-ads.yaml configuration file in the
9292
# home directory if none is specified.
93-
googleads_client = GoogleAdsClient.load_from_storage(version="v19")
93+
googleads_client = GoogleAdsClient.load_from_storage(version="v20")
9494

9595
try:
9696
main(

examples/account_management/link_manager_to_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def main(client, customer_id, manager_customer_id):
131131

132132
# GoogleAdsClient will read the google-ads.yaml configuration file in the
133133
# home directory if none is specified.
134-
googleads_client = GoogleAdsClient.load_from_storage(version="v19")
134+
googleads_client = GoogleAdsClient.load_from_storage(version="v20")
135135
try:
136136
main(googleads_client, args.customer_id, args.manager_customer_id)
137137
except GoogleAdsException as ex:

examples/account_management/list_accessible_customers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def main(client):
4444
if __name__ == "__main__":
4545
# GoogleAdsClient will read the google-ads.yaml configuration file in the
4646
# home directory if none is specified.
47-
googleads_client = GoogleAdsClient.load_from_storage(version="v19")
47+
googleads_client = GoogleAdsClient.load_from_storage(version="v20")
4848

4949
try:
5050
main(googleads_client)

examples/account_management/update_user_access.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def modify_user_access(client, customer_id, user_id, access_role):
167167

168168
# GoogleAdsClient will read the google-ads.yaml configuration file in the
169169
# home directory if none is specified.
170-
googleads_client = GoogleAdsClient.load_from_storage(version="v19")
170+
googleads_client = GoogleAdsClient.load_from_storage(version="v20")
171171
try:
172172
main(
173173
googleads_client,

0 commit comments

Comments
 (0)