From b9ebfb98734072a1d7d74591c78645c1b8cbe237 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Fri, 12 Nov 2021 05:52:09 +1100 Subject: [PATCH] docs: Fix a few typos There are small typos in: - examples/ad_manager/v202102/line_item_service/target_custom_criteria.py - examples/ad_manager/v202105/line_item_service/target_custom_criteria.py - examples/ad_manager/v202108/line_item_service/target_custom_criteria.py - examples/adwords/v201809/basic_operations/update_expanded_text_ad.py - examples/adwords/v201809/extensions/add_prices.py - googleads/adwords.py Fixes: - Should read `criteria` rather than `criterias`. - Should read `using` rather than `usin`. - Should read `their` rather than `ther`. - Should read `suffix` rather than `suffic`. - Should read `order` rather than `oder`. --- .../v202102/line_item_service/target_custom_criteria.py | 2 +- .../v202105/line_item_service/target_custom_criteria.py | 2 +- .../v202108/line_item_service/target_custom_criteria.py | 2 +- .../v201809/basic_operations/update_expanded_text_ad.py | 2 +- examples/adwords/v201809/extensions/add_prices.py | 2 +- googleads/adwords.py | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/ad_manager/v202102/line_item_service/target_custom_criteria.py b/examples/ad_manager/v202102/line_item_service/target_custom_criteria.py index 249309f3..ff1bd953 100755 --- a/examples/ad_manager/v202102/line_item_service/target_custom_criteria.py +++ b/examples/ad_manager/v202102/line_item_service/target_custom_criteria.py @@ -42,7 +42,7 @@ def main(client, line_item_id, key_id1, key_id2, key_id3, value_id1, value_id2, # Initialize appropriate service. line_item_service = client.GetService('LineItemService', version='v202102') - # create custom criterias + # create custom criteria custom_criteria1 = { 'xsi_type': 'CustomCriteria', 'keyId': key_id1, diff --git a/examples/ad_manager/v202105/line_item_service/target_custom_criteria.py b/examples/ad_manager/v202105/line_item_service/target_custom_criteria.py index c16cd8a2..de746844 100755 --- a/examples/ad_manager/v202105/line_item_service/target_custom_criteria.py +++ b/examples/ad_manager/v202105/line_item_service/target_custom_criteria.py @@ -42,7 +42,7 @@ def main(client, line_item_id, key_id1, key_id2, key_id3, value_id1, value_id2, # Initialize appropriate service. line_item_service = client.GetService('LineItemService', version='v202105') - # create custom criterias + # create custom criteria custom_criteria1 = { 'xsi_type': 'CustomCriteria', 'keyId': key_id1, diff --git a/examples/ad_manager/v202108/line_item_service/target_custom_criteria.py b/examples/ad_manager/v202108/line_item_service/target_custom_criteria.py index 408875d1..c1a5a7ce 100755 --- a/examples/ad_manager/v202108/line_item_service/target_custom_criteria.py +++ b/examples/ad_manager/v202108/line_item_service/target_custom_criteria.py @@ -42,7 +42,7 @@ def main(client, line_item_id, key_id1, key_id2, key_id3, value_id1, value_id2, # Initialize appropriate service. line_item_service = client.GetService('LineItemService', version='v202108') - # create custom criterias + # create custom criteria custom_criteria1 = { 'xsi_type': 'CustomCriteria', 'keyId': key_id1, diff --git a/examples/adwords/v201809/basic_operations/update_expanded_text_ad.py b/examples/adwords/v201809/basic_operations/update_expanded_text_ad.py index ba35d9a6..efa965e2 100755 --- a/examples/adwords/v201809/basic_operations/update_expanded_text_ad.py +++ b/examples/adwords/v201809/basic_operations/update_expanded_text_ad.py @@ -53,7 +53,7 @@ def main(client, ad_id): 'operand': expanded_text_ad }] - # Updates the ad on ther server. + # Updates the ad on their server. result = ad_service.mutate(operations) updated_ad = result['value'][0] diff --git a/examples/adwords/v201809/extensions/add_prices.py b/examples/adwords/v201809/extensions/add_prices.py index fbfa40db..ce44141f 100755 --- a/examples/adwords/v201809/extensions/add_prices.py +++ b/examples/adwords/v201809/extensions/add_prices.py @@ -17,7 +17,7 @@ """Adds a price extension and associates it with an account. -Campaign targeting is also set usin the specified campaign ID. To get campaigns, +Campaign targeting is also set using the specified campaign ID. To get campaigns, run get_campaigns.py. The LoadFromStorage method is pulling credentials and properties from a diff --git a/googleads/adwords.py b/googleads/adwords.py index 415bdec4..2c0ab578 100644 --- a/googleads/adwords.py +++ b/googleads/adwords.py @@ -744,7 +744,7 @@ def _BuildUploadRequestBody(self, operations, has_prefix=True, for a single AdWords Service. has_prefix: a boolean indicating whether the prefix should be included in the request body. - has_suffix: a boolean indicating whether the suffic should be included + has_suffix: a boolean indicating whether the suffix should be included in the request body. Returns: @@ -2245,7 +2245,7 @@ def __init__(self, query_builder=None): """Creates the service query builder with the optionally specified builder. Creates the service query builder by initializing all attributes including - oder by list, start index, and page size. + order by list, start index, and page size. If the optional query builder are specified, copy all its attributes to this instance.