From 8ef148f5ef143c37e538336bfa4e8e1f2063cc1c Mon Sep 17 00:00:00 2001 From: msaniscalchi Date: Wed, 26 Sep 2018 23:58:32 -0400 Subject: [PATCH] Changes for release v0_4. (#9) --- ChangeLog | 7 +- README.rst | 3 + .../get_account_information.py | 2 +- .../add_ad_group_bid_modifiers.py | 2 +- ...add_expanded_text_ad_with_upgraded_urls.py | 2 +- .../create_and_attach_shared_keyword_sets.py | 2 +- ...ind_and_remove_criteria_from_shared_set.py | 2 +- .../get_ad_group_bid_modifiers.py | 2 +- .../use_portfolio_bidding_strategy.py | 2 +- examples/v0/basic_operations/add_ad_groups.py | 2 +- examples/v0/basic_operations/add_campaigns.py | 2 +- .../basic_operations/add_expanded_text_ads.py | 2 +- examples/v0/basic_operations/add_keywords.py | 2 +- examples/v0/basic_operations/get_ad_groups.py | 2 +- .../basic_operations/get_artifact_metadata.py | 2 +- examples/v0/basic_operations/get_campaigns.py | 2 +- .../basic_operations/get_expanded_text_ads.py | 2 +- examples/v0/basic_operations/get_keywords.py | 2 +- examples/v0/basic_operations/pause_ad.py | 2 +- examples/v0/basic_operations/remove_ad.py | 2 +- .../v0/basic_operations/remove_ad_group.py | 2 +- .../v0/basic_operations/remove_campaign.py | 2 +- .../v0/basic_operations/remove_keyword.py | 2 +- .../v0/basic_operations/update_ad_group.py | 2 +- .../v0/basic_operations/update_campaign.py | 2 +- .../v0/basic_operations/update_keyword.py | 2 +- examples/v0/billing/__init__.py | 0 .../v0/billing/add_account_budget_proposal.py | 98 + .../billing/get_account_budget_proposals.py | 98 + examples/v0/billing/get_billing_setups.py | 84 + examples/v0/billing/remove_billing_setup.py | 70 + .../campaign_management/add_bid_modifiers.py | 2 +- .../add_campaign_groups.py | 2 +- examples/v0/hotel_ads/add_hotel_ad.py | 2 +- .../add_hotel_ad_group_bid_modifiers.py | 2 +- .../recommendations/apply_recommendation.py | 2 +- .../get_text_ad_recommendations.py | 2 +- examples/v0/reporting/get_keyword_stats.py | 2 +- .../add_campaign_targeting_criteria.py | 2 +- .../get_campaign_targeting_criteria.py | 2 +- google/ads/google_ads/__init__.py | 11 +- google/ads/google_ads/v0/__init__.py | 118 +- .../v0/proto/common/ad_type_infos_pb2.py | 37 +- .../google_ads/v0/proto/common/bidding_pb2.py | 69 +- .../v0/proto/common/criteria_pb2.py | 273 +- .../google_ads/v0/proto/common/metrics_pb2.py | 156 +- .../google_ads/v0/proto/common/policy_pb2.py | 97 +- .../account_budget_proposal_status_pb2.py | 111 + ...account_budget_proposal_status_pb2_grpc.py | 3 + .../enums/account_budget_proposal_type_pb2.py | 107 + .../account_budget_proposal_type_pb2_grpc.py | 3 + .../v0/proto/enums/ad_group_type_pb2.py | 20 +- .../google_ads/v0/proto/enums/ad_type_pb2.py | 10 +- .../enums/advertising_channel_type_pb2.py | 10 +- .../v0/proto/enums/attribution_model_pb2.py | 121 + .../proto/enums/attribution_model_pb2_grpc.py | 3 + .../proto/enums/bidding_strategy_type_pb2.py | 26 +- .../proto/enums/billing_setup_status_pb2.py | 107 + .../enums/billing_setup_status_pb2_grpc.py | 3 + .../enums/change_status_operation_pb2.py | 103 + .../enums/change_status_operation_pb2_grpc.py | 3 + .../enums/conversion_action_category_pb2.py | 116 + .../conversion_action_category_pb2_grpc.py | 3 + .../conversion_action_counting_type_pb2.py | 100 + ...onversion_action_counting_type_pb2_grpc.py | 3 + .../enums/conversion_action_status_pb2.py | 103 + .../conversion_action_status_pb2_grpc.py | 3 + .../proto/enums/conversion_action_type_pb2.py | 123 + .../enums/conversion_action_type_pb2_grpc.py | 3 + .../enums/data_driven_model_status_pb2.py | 107 + .../data_driven_model_status_pb2_grpc.py | 3 + .../google_ads/v0/proto/enums/device_pb2.py | 10 +- .../proto/enums/policy_approval_status_pb2.py | 107 + .../enums/policy_approval_status_pb2_grpc.py | 3 + .../proto/enums/policy_review_status_pb2.py | 103 + .../enums/policy_review_status_pb2_grpc.py | 3 + .../enums/product_channel_exclusivity_pb2.py | 99 + .../product_channel_exclusivity_pb2_grpc.py | 3 + .../v0/proto/enums/product_channel_pb2.py | 99 + .../proto/enums/product_channel_pb2_grpc.py | 3 + .../v0/proto/enums/resource_type_pb2.py | 116 + .../v0/proto/enums/resource_type_pb2_grpc.py | 3 + .../v0/proto/enums/spending_limit_type_pb2.py | 95 + .../enums/spending_limit_type_pb2_grpc.py | 3 + .../v0/proto/enums/time_type_pb2.py | 99 + .../v0/proto/enums/time_type_pb2_grpc.py | 3 + .../enums/tracking_code_page_format_pb2.py | 96 + .../tracking_code_page_format_pb2_grpc.py | 3 + .../v0/proto/enums/tracking_code_type_pb2.py | 104 + .../enums/tracking_code_type_pb2_grpc.py | 3 + .../account_budget_proposal_error_pb2.py | 179 + .../account_budget_proposal_error_pb2_grpc.py | 3 + .../proto/errors/campaign_budget_error_pb2.py | 38 +- .../v0/proto/errors/campaign_error_pb2.py | 10 +- .../proto/errors/change_status_error_pb2.py | 99 + .../errors/change_status_error_pb2_grpc.py | 3 + .../errors/conversion_action_error_pb2.py | 123 + .../conversion_action_error_pb2_grpc.py | 3 + .../google_ads/v0/proto/errors/errors_pb2.py | 88 +- .../v0/proto/errors/mutate_error_pb2.py | 10 +- .../proto/errors/policy_finding_error_pb2.py | 10 +- .../proto/errors/recommendation_error_pb2.py | 10 +- ...resource_count_limit_exceeded_error_pb2.py | 10 +- .../v0/proto/resources/account_budget_pb2.py | 81 + .../resources/account_budget_pb2_grpc.py | 3 + .../resources/account_budget_proposal_pb2.py | 301 ++ .../account_budget_proposal_pb2_grpc.py | 3 + .../v0/proto/resources/ad_group_ad_pb2.py | 90 +- .../google_ads/v0/proto/resources/ad_pb2.py | 67 +- .../v0/proto/resources/billing_setup_pb2.py | 166 + .../proto/resources/billing_setup_pb2_grpc.py | 3 + .../v0/proto/resources/campaign_pb2.py | 63 +- .../v0/proto/resources/change_status_pb2.py | 168 + .../proto/resources/change_status_pb2_grpc.py | 3 + .../proto/resources/conversion_action_pb2.py | 470 ++ .../resources/conversion_action_pb2_grpc.py | 3 + .../v0/proto/resources/video_pb2.py | 122 + .../v0/proto/resources/video_pb2_grpc.py | 3 + .../account_budget_proposal_service_pb2.py | 362 ++ ...ccount_budget_proposal_service_pb2_grpc.py | 89 + .../proto/services/ad_group_ad_service_pb2.py | 45 +- .../services/billing_setup_service_pb2.py | 331 ++ .../billing_setup_service_pb2_grpc.py | 82 + .../services/change_status_service_pb2.py | 107 + .../change_status_service_pb2_grpc.py | 47 + .../services/conversion_action_service_pb2.py | 366 ++ .../conversion_action_service_pb2_grpc.py | 65 + .../geo_target_constant_service_pb2.py | 13 +- .../proto/services/google_ads_service_pb2.py | 133 +- .../v0/proto/services/video_service_pb2.py | 107 + .../proto/services/video_service_pb2_grpc.py | 47 + .../account_budget_proposal_service_client.py | 277 ++ ...t_budget_proposal_service_client_config.py | 33 + .../v0/services/ad_group_ad_service_client.py | 30 +- .../ad_group_bid_modifier_service_client.py | 30 +- .../ad_group_criterion_service_client.py | 30 +- .../v0/services/ad_group_service_client.py | 30 +- .../bidding_strategy_service_client.py | 30 +- .../services/billing_setup_service_client.py | 269 + .../billing_setup_service_client_config.py | 33 + .../campaign_bid_modifier_service_client.py | 30 +- .../campaign_budget_service_client.py | 30 +- .../campaign_criterion_service_client.py | 30 +- .../services/campaign_group_service_client.py | 30 +- .../v0/services/campaign_service_client.py | 30 +- .../campaign_shared_set_service_client.py | 30 +- .../services/change_status_service_client.py | 206 + .../change_status_service_client_config.py | 28 + .../conversion_action_service_client.py | 260 + ...conversion_action_service_client_config.py | 33 + .../v0/services/customer_service_client.py | 11 +- google/ads/google_ads/v0/services/enums.py | 4311 ++++++++++------- .../geo_target_constant_service_client.py | 11 +- .../google_ads_field_service_client.py | 35 +- .../v0/services/google_ads_service_client.py | 27 +- .../services/keyword_view_service_client.py | 11 +- .../services/recommendation_service_client.py | 30 +- .../shared_criterion_service_client.py | 30 +- .../v0/services/shared_set_service_client.py | 30 +- ..._budget_proposal_service_grpc_transport.py | 121 + .../billing_setup_service_grpc_transport.py | 117 + .../change_status_service_grpc_transport.py | 104 + ...onversion_action_service_grpc_transport.py | 121 + .../video_service_grpc_transport.py | 104 + .../v0/services/video_service_client.py | 204 + .../services/video_service_client_config.py | 28 + google/ads/google_ads/v0/types.py | 370 +- setup.py | 6 +- 168 files changed, 11556 insertions(+), 2846 deletions(-) create mode 100644 examples/v0/billing/__init__.py create mode 100644 examples/v0/billing/add_account_budget_proposal.py create mode 100644 examples/v0/billing/get_account_budget_proposals.py create mode 100644 examples/v0/billing/get_billing_setups.py create mode 100644 examples/v0/billing/remove_billing_setup.py create mode 100644 google/ads/google_ads/v0/proto/enums/account_budget_proposal_status_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/account_budget_proposal_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/account_budget_proposal_type_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/account_budget_proposal_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/attribution_model_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/attribution_model_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/billing_setup_status_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/billing_setup_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/change_status_operation_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/change_status_operation_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/conversion_action_category_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/conversion_action_category_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/conversion_action_counting_type_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/conversion_action_counting_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/conversion_action_status_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/conversion_action_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/conversion_action_type_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/conversion_action_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/data_driven_model_status_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/data_driven_model_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/policy_approval_status_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/policy_approval_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/policy_review_status_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/policy_review_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/product_channel_exclusivity_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/product_channel_exclusivity_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/product_channel_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/product_channel_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/resource_type_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/resource_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/spending_limit_type_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/spending_limit_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/time_type_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/time_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/tracking_code_page_format_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/tracking_code_page_format_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/enums/tracking_code_type_pb2.py create mode 100644 google/ads/google_ads/v0/proto/enums/tracking_code_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/errors/account_budget_proposal_error_pb2.py create mode 100644 google/ads/google_ads/v0/proto/errors/account_budget_proposal_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/errors/change_status_error_pb2.py create mode 100644 google/ads/google_ads/v0/proto/errors/change_status_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/errors/conversion_action_error_pb2.py create mode 100644 google/ads/google_ads/v0/proto/errors/conversion_action_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/resources/account_budget_pb2.py create mode 100644 google/ads/google_ads/v0/proto/resources/account_budget_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/resources/account_budget_proposal_pb2.py create mode 100644 google/ads/google_ads/v0/proto/resources/account_budget_proposal_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/resources/billing_setup_pb2.py create mode 100644 google/ads/google_ads/v0/proto/resources/billing_setup_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/resources/change_status_pb2.py create mode 100644 google/ads/google_ads/v0/proto/resources/change_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/resources/conversion_action_pb2.py create mode 100644 google/ads/google_ads/v0/proto/resources/conversion_action_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/resources/video_pb2.py create mode 100644 google/ads/google_ads/v0/proto/resources/video_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/services/account_budget_proposal_service_pb2.py create mode 100644 google/ads/google_ads/v0/proto/services/account_budget_proposal_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/services/billing_setup_service_pb2.py create mode 100644 google/ads/google_ads/v0/proto/services/billing_setup_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/services/change_status_service_pb2.py create mode 100644 google/ads/google_ads/v0/proto/services/change_status_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/services/conversion_action_service_pb2.py create mode 100644 google/ads/google_ads/v0/proto/services/conversion_action_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/proto/services/video_service_pb2.py create mode 100644 google/ads/google_ads/v0/proto/services/video_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v0/services/account_budget_proposal_service_client.py create mode 100644 google/ads/google_ads/v0/services/account_budget_proposal_service_client_config.py create mode 100644 google/ads/google_ads/v0/services/billing_setup_service_client.py create mode 100644 google/ads/google_ads/v0/services/billing_setup_service_client_config.py create mode 100644 google/ads/google_ads/v0/services/change_status_service_client.py create mode 100644 google/ads/google_ads/v0/services/change_status_service_client_config.py create mode 100644 google/ads/google_ads/v0/services/conversion_action_service_client.py create mode 100644 google/ads/google_ads/v0/services/conversion_action_service_client_config.py create mode 100644 google/ads/google_ads/v0/services/transports/account_budget_proposal_service_grpc_transport.py create mode 100644 google/ads/google_ads/v0/services/transports/billing_setup_service_grpc_transport.py create mode 100644 google/ads/google_ads/v0/services/transports/change_status_service_grpc_transport.py create mode 100644 google/ads/google_ads/v0/services/transports/conversion_action_service_grpc_transport.py create mode 100644 google/ads/google_ads/v0/services/transports/video_service_grpc_transport.py create mode 100644 google/ads/google_ads/v0/services/video_service_client.py create mode 100644 google/ads/google_ads/v0/services/video_service_client_config.py diff --git a/ChangeLog b/ChangeLog index 1940a112a..83408a041 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ +* 0.3.0: +- Google Ads v0_4 release. +- Resolving GitHub issue #3: + https://github.com/googleads/google-ads-python/issues/3 + * 0.2.0: - Google Ads v0_3 release. * 0.1.0: -- Initial release with support for Google Ads API v0. \ No newline at end of file +- Initial release with support for Google Ads API v0. diff --git a/README.rst b/README.rst index 6efd37d8d..24182f4c0 100644 --- a/README.rst +++ b/README.rst @@ -81,6 +81,7 @@ Authors ------- * `Mark Saniscalchi`_ +* `David Wihl`_ .. _pip: https://pip.pypa.io/en/stable/installing .. _template: https://github.com/googleads/google-ads-python/blob/master/google-ads.yaml @@ -92,3 +93,5 @@ Authors .. _API documentation: https://developers.google.com/google-ads/api/ .. _API Support: https://developers.google.com/adwords/api/community/ .. _Mark Saniscalchi: https://github.com/msaniscalchi +.. _David Wihl: https://github.com/wihl + diff --git a/examples/v0/account_management/get_account_information.py b/examples/v0/account_management/get_account_information.py index 6cd5419b6..75e0775a3 100644 --- a/examples/v0/account_management/get_account_information.py +++ b/examples/v0/account_management/get_account_information.py @@ -51,7 +51,7 @@ def main(client, customer_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/advanced_operations/add_ad_group_bid_modifiers.py b/examples/v0/advanced_operations/add_ad_group_bid_modifiers.py index 1ff486de5..98e6103fa 100644 --- a/examples/v0/advanced_operations/add_ad_group_bid_modifiers.py +++ b/examples/v0/advanced_operations/add_ad_group_bid_modifiers.py @@ -65,7 +65,7 @@ def main(client, customer_id, ad_group_id, bid_modifier_value): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py b/examples/v0/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py index 2900f6e23..1d8319a99 100644 --- a/examples/v0/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py +++ b/examples/v0/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py @@ -91,7 +91,7 @@ def main(client, customer_id, ad_group_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/advanced_operations/create_and_attach_shared_keyword_sets.py b/examples/v0/advanced_operations/create_and_attach_shared_keyword_sets.py index 4504f6884..b168ac187 100644 --- a/examples/v0/advanced_operations/create_and_attach_shared_keyword_sets.py +++ b/examples/v0/advanced_operations/create_and_attach_shared_keyword_sets.py @@ -107,7 +107,7 @@ def main(client, customer_id, campaign_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/advanced_operations/find_and_remove_criteria_from_shared_set.py b/examples/v0/advanced_operations/find_and_remove_criteria_from_shared_set.py index e032ee325..16da243a9 100644 --- a/examples/v0/advanced_operations/find_and_remove_criteria_from_shared_set.py +++ b/examples/v0/advanced_operations/find_and_remove_criteria_from_shared_set.py @@ -118,7 +118,7 @@ def main(client, customer_id, page_size, campaign_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/advanced_operations/get_ad_group_bid_modifiers.py b/examples/v0/advanced_operations/get_ad_group_bid_modifiers.py index 4f48b6eea..33f7f85c5 100644 --- a/examples/v0/advanced_operations/get_ad_group_bid_modifiers.py +++ b/examples/v0/advanced_operations/get_ad_group_bid_modifiers.py @@ -61,7 +61,7 @@ def main(client, customer_id, page_size, ad_group_id=None): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/advanced_operations/use_portfolio_bidding_strategy.py b/examples/v0/advanced_operations/use_portfolio_bidding_strategy.py index dc99b6058..b2d3a9aee 100644 --- a/examples/v0/advanced_operations/use_portfolio_bidding_strategy.py +++ b/examples/v0/advanced_operations/use_portfolio_bidding_strategy.py @@ -124,7 +124,7 @@ def main(client, customer_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/add_ad_groups.py b/examples/v0/basic_operations/add_ad_groups.py index 8392b890a..7e4e7cef8 100644 --- a/examples/v0/basic_operations/add_ad_groups.py +++ b/examples/v0/basic_operations/add_ad_groups.py @@ -58,7 +58,7 @@ def main(client, customer_id, campaign_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/add_campaigns.py b/examples/v0/basic_operations/add_campaigns.py index 937b72785..1cb48abf7 100644 --- a/examples/v0/basic_operations/add_campaigns.py +++ b/examples/v0/basic_operations/add_campaigns.py @@ -106,7 +106,7 @@ def main(client, customer_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/add_expanded_text_ads.py b/examples/v0/basic_operations/add_expanded_text_ads.py index 41db1da61..cb57a2d74 100644 --- a/examples/v0/basic_operations/add_expanded_text_ads.py +++ b/examples/v0/basic_operations/add_expanded_text_ads.py @@ -66,7 +66,7 @@ def main(client, customer_id, ad_group_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/add_keywords.py b/examples/v0/basic_operations/add_keywords.py index 6ca0b3882..3bbb1e6fb 100644 --- a/examples/v0/basic_operations/add_keywords.py +++ b/examples/v0/basic_operations/add_keywords.py @@ -67,7 +67,7 @@ def main(client, customer_id, ad_group_id, keyword): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/get_ad_groups.py b/examples/v0/basic_operations/get_ad_groups.py index ff90685de..1fce1f72e 100644 --- a/examples/v0/basic_operations/get_ad_groups.py +++ b/examples/v0/basic_operations/get_ad_groups.py @@ -52,7 +52,7 @@ def main(client, customer_id, page_size, campaign_id=None): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/get_artifact_metadata.py b/examples/v0/basic_operations/get_artifact_metadata.py index e9262c7d6..b898fa555 100644 --- a/examples/v0/basic_operations/get_artifact_metadata.py +++ b/examples/v0/basic_operations/get_artifact_metadata.py @@ -99,7 +99,7 @@ def main(client, artifact_name, page_size): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/get_campaigns.py b/examples/v0/basic_operations/get_campaigns.py index f70c6a2f5..d7e0ec1a3 100644 --- a/examples/v0/basic_operations/get_campaigns.py +++ b/examples/v0/basic_operations/get_campaigns.py @@ -52,7 +52,7 @@ def main(client, customer_id, page_size): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/get_expanded_text_ads.py b/examples/v0/basic_operations/get_expanded_text_ads.py index abe4bce9a..6ccfad695 100644 --- a/examples/v0/basic_operations/get_expanded_text_ads.py +++ b/examples/v0/basic_operations/get_expanded_text_ads.py @@ -64,7 +64,7 @@ def main(client, customer_id, page_size, ad_group_id=None): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/get_keywords.py b/examples/v0/basic_operations/get_keywords.py index 3da39c244..7f721888b 100644 --- a/examples/v0/basic_operations/get_keywords.py +++ b/examples/v0/basic_operations/get_keywords.py @@ -62,7 +62,7 @@ def main(client, customer_id, page_size, ad_group_id=None): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/pause_ad.py b/examples/v0/basic_operations/pause_ad.py index 5f580bac1..640137a33 100644 --- a/examples/v0/basic_operations/pause_ad.py +++ b/examples/v0/basic_operations/pause_ad.py @@ -53,7 +53,7 @@ def main(client, customer_id, ad_group_id, ad_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/remove_ad.py b/examples/v0/basic_operations/remove_ad.py index 37672aacc..fd2140755 100644 --- a/examples/v0/basic_operations/remove_ad.py +++ b/examples/v0/basic_operations/remove_ad.py @@ -48,7 +48,7 @@ def main(client, customer_id, ad_group_id, ad_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/remove_ad_group.py b/examples/v0/basic_operations/remove_ad_group.py index fbb44f1f8..d0716981f 100644 --- a/examples/v0/basic_operations/remove_ad_group.py +++ b/examples/v0/basic_operations/remove_ad_group.py @@ -46,7 +46,7 @@ def main(client, customer_id, ad_group_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/remove_campaign.py b/examples/v0/basic_operations/remove_campaign.py index ec18192e7..a13d9c461 100644 --- a/examples/v0/basic_operations/remove_campaign.py +++ b/examples/v0/basic_operations/remove_campaign.py @@ -46,7 +46,7 @@ def main(client, customer_id, campaign_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/remove_keyword.py b/examples/v0/basic_operations/remove_keyword.py index ef7593a95..24919f115 100644 --- a/examples/v0/basic_operations/remove_keyword.py +++ b/examples/v0/basic_operations/remove_keyword.py @@ -47,7 +47,7 @@ def main(client, customer_id, ad_group_id, criteria_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/update_ad_group.py b/examples/v0/basic_operations/update_ad_group.py index 16a39039d..8dc363ae4 100644 --- a/examples/v0/basic_operations/update_ad_group.py +++ b/examples/v0/basic_operations/update_ad_group.py @@ -57,7 +57,7 @@ def main(client, customer_id, ad_group_id, bid_micro_amount): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/update_campaign.py b/examples/v0/basic_operations/update_campaign.py index bff83ec57..fc7982625 100644 --- a/examples/v0/basic_operations/update_campaign.py +++ b/examples/v0/basic_operations/update_campaign.py @@ -58,7 +58,7 @@ def main(client, customer_id, campaign_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/basic_operations/update_keyword.py b/examples/v0/basic_operations/update_keyword.py index 5b4334e32..340bfe0d7 100644 --- a/examples/v0/basic_operations/update_keyword.py +++ b/examples/v0/basic_operations/update_keyword.py @@ -55,7 +55,7 @@ def main(client, customer_id, ad_group_id, criterion_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/billing/__init__.py b/examples/v0/billing/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/examples/v0/billing/add_account_budget_proposal.py b/examples/v0/billing/add_account_budget_proposal.py new file mode 100644 index 000000000..14db8f8fa --- /dev/null +++ b/examples/v0/billing/add_account_budget_proposal.py @@ -0,0 +1,98 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +"""This example creates an account budget proposal. + +To get account budget proposal, run get_account_budget_proposals.py +""" + +from __future__ import absolute_import + +import argparse +import sys + +import six + +import google.ads.google_ads.client + + +def main(client, customer_id, billing_setup_id): + account_budget_proposal_service = client.get_service( + 'AccountBudgetProposalService') + billing_setup_service = client.get_service('BillingSetupService') + + account_budget_proposal_operation = client.get_type( + 'AccountBudgetProposalOperation') + proposal = account_budget_proposal_operation.create + + proposal.proposal_type = client.get_type( + 'AccountBudgetProposalTypeEnum').CREATE + proposal.billing_setup.value = billing_setup_service.billing_setup_path( + customer_id, billing_setup_id) + proposal.proposed_name.value = 'Account Budget Proposal (example)' + + # Specify the account budget starts immediately + proposal.proposed_start_time_type = client.get_type('TimeTypeEnum').NOW + # Alternatively you can specify a specific start time. Refer to the + # AccountBudgetProposal resource documentation for allowed formats. + # + # proposal.proposed_start_date_time = '2020-01-02 03:04:05' + + # Specify that the budget runs forever + proposal.proposed_end_time_type = client.get_type('TimeTypeEnum').FOREVER + # Alternatively you can specify a specific end time. Allowed formats are as + # above. + # + # proposal.proposed_end_date_time = '2021-01-02 03:04:05' + + # Optional: set notes for the budget. These are free text and do not effect + # budget delivery. + # + # proposal.proposed_notes = client.wrapper + # .string('Received prepayment of $0.01') + proposal.proposed_spending_limit_micros.value = 10000 + + try: + account_budget_proposal_response = ( + account_budget_proposal_service.mutate_account_budget_proposal( + customer_id, account_budget_proposal_operation)) + except google.ads.google_ads.errors.GoogleAdsException as ex: + print('Request with ID "%s" failed with status "%s" and includes the ' + 'following errors:' % (ex.request_id, ex.error.code().name)) + for error in ex.failure.errors: + print('\tError with message "%s".' % error.message) + if error.location: + for field_path_element in error.location.field_path_elements: + print('\t\tOn field: %s' % field_path_element.field_name) + sys.exit(1) + + print('Created account budget proposal "%s".' + % account_budget_proposal_response.result.resource_name) + + +if __name__ == '__main__': + # GoogleAdsClient will read the google-ads.yaml configuration file in the + # home directory if none is specified. + google_ads_client = (google.ads.google_ads.client.GoogleAdsClient + .load_from_storage()) + + parser = argparse.ArgumentParser( + description='Creates an account budget proposal.') + # The following argument(s) should be provided to run the example. + parser.add_argument('-c', '--customer_id', type=six.text_type, + required=True, help='The Ads customer ID.') + parser.add_argument('-b', '--billing_setup_id', type=six.text_type, + required=True, help='The billing setup ID.') + args = parser.parse_args() + + main(google_ads_client, args.customer_id, args.billing_setup_id) diff --git a/examples/v0/billing/get_account_budget_proposals.py b/examples/v0/billing/get_account_budget_proposals.py new file mode 100644 index 000000000..d5729f089 --- /dev/null +++ b/examples/v0/billing/get_account_budget_proposals.py @@ -0,0 +1,98 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +"""This example illustrates how to get all account budget proposals. + +To add an account budget proposal, run add_account_budget_proposal.py +""" + +from __future__ import absolute_import + +import argparse +import sys + +import six + +import google.ads.google_ads.client + + +_DEFAULT_PAGE_SIZE = 1000 + + +def main(client, customer_id, page_size): + ga_service = client.get_service('GoogleAdsService') + + query = ('SELECT account_budget_proposal.id, ' + 'account_budget_proposal.account_budget,' + 'account_budget_proposal.billing_setup,' + 'account_budget_proposal.status,' + 'account_budget_proposal.proposed_name,' + 'account_budget_proposal.proposed_notes,' + 'account_budget_proposal.proposed_purchase_order_number,' + 'account_budget_proposal.proposal_type,' + 'account_budget_proposal.approval_date_time,' + 'account_budget_proposal.creation_date_time ' + 'FROM account_budget_proposal') + + results = ga_service.search(customer_id, query=query, page_size=page_size) + + try: + # Use the enum types to determine the enum names from the values. + proposal_status_enum = client.get_type( + 'AccountBudgetProposalStatusEnum').AccountBudgetProposalStatus + proposal_type_enum = client.get_type( + 'AccountBudgetProposalTypeEnum').AccountBudgetProposalType + + for row in results: + budget_proposal = row.account_budget_proposal + + print('Account budget proposal with ID "%s", status "%s", ' + 'account_budget "%s", billing_setup "%s", ' + 'proposed_name "%s", proposed_notes "%s", ' + 'proposed_po_number "%s", proposal_type "%s", ' + 'approval_date_time "%s", creation_date_time "%s"' + % (budget_proposal.id.value, + proposal_status_enum.Name( budget_proposal.status), + budget_proposal.account_budget.value, + budget_proposal.billing_setup.value, + budget_proposal.proposed_name.value, + budget_proposal.proposed_notes.value, + budget_proposal.proposed_purchase_order_number.value, + proposal_type_enum.Name( budget_proposal.proposal_type), + budget_proposal.approval_date_time.value, + budget_proposal.creation_date_time.value)) + except google.ads.google_ads.errors.GoogleAdsException as ex: + print('Request with ID "%s" failed with status "%s" and includes the ' + 'following errors:' % (ex.request_id, ex.error.code().name)) + for error in ex.failure.errors: + print('\tError with message "%s".' % error.message) + if error.location: + for field_path_element in error.location.field_path_elements: + print('\t\tOn field: %s' % field_path_element.field_name) + sys.exit(1) + + +if __name__ == '__main__': + # GoogleAdsClient will read the google-ads.yaml configuration file in the + # home directory if none is specified. + google_ads_client = (google.ads.google_ads.client.GoogleAdsClient + .load_from_storage()) + + parser = argparse.ArgumentParser( + description='Lists all account budget proposals.') + # The following argument(s) should be provided to run the example. + parser.add_argument('-c', '--customer_id', type=six.text_type, + required=True, help='The Google Ads customer ID.') + args = parser.parse_args() + + main(google_ads_client, args.customer_id, _DEFAULT_PAGE_SIZE) diff --git a/examples/v0/billing/get_billing_setups.py b/examples/v0/billing/get_billing_setups.py new file mode 100644 index 000000000..5d1dac34f --- /dev/null +++ b/examples/v0/billing/get_billing_setups.py @@ -0,0 +1,84 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +"""Gets all billing setup objects available for the specified customer ID.""" + +from __future__ import absolute_import + +import argparse +import six +import sys + +import google.ads.google_ads.client + + +_DEFAULT_PAGE_SIZE = 1000 + + +def main(client, customer_id, page_size): + ga_service = client.get_service('GoogleAdsService') + + query = ('SELECT billing_setup.id, billing_setup.status, ' + 'billing_setup.payments_account_id, ' + 'billing_setup.payments_account_name, ' + 'billing_setup.payments_profile_id, ' + 'billing_setup.payments_profile_name, ' + 'billing_setup.secondary_payments_profile_id ' + 'FROM billing_setup') + + results = ga_service.search(customer_id, query=query, page_size=page_size) + + try: + # Use the enum type to determine the enum name from the value. + billing_setup_status_enum = ( + client.get_type('BillingSetupStatusEnum').BillingSetupStatus) + + print('Found the following billing setup results:') + for row in results: + billing_setup = row.billing_setup + print('Billing setup with ID "%s", status "%s", ' + 'payments_account_id "%s", payments_account_name "%s", ' + 'payments_profile_id "%s", payments_profile_name "%s",' + 'secondary_payments_profile_id "%s".' + % (billing_setup.id.value, + billing_setup_status_enum.Name(billing_setup.status), + billing_setup.payments_account_id.value, + billing_setup.payments_account_name.value, + billing_setup.payments_profile_id.value, + billing_setup.payments_profile_name.value, + billing_setup.secondary_payments_profile_id.value)) + except google.ads.google_ads.errors.GoogleAdsException as ex: + print('Request with ID "%s" failed with status "%s" and includes the ' + 'following errors:' % (ex.request_id, ex.error.code().name)) + for error in ex.failure.errors: + print('\tError with message "%s".' % error.message) + if error.location: + for field_path_element in error.location.field_path_elements: + print('\t\tOn field: %s' % field_path_element.field_name) + sys.exit(1) + + +if __name__ == '__main__': + # GoogleAdsClient will read the google-ads.yaml configuration file in the + # home directory if none is specified. + google_ads_client = (google.ads.google_ads.client.GoogleAdsClient + .load_from_storage()) + + parser = argparse.ArgumentParser( + description='Lists all billing setup objects for specified customer.') + # The following argument(s) should be provided to run the example. + parser.add_argument('-c', '--customer_id', type=six.text_type, + required=True, help='The Google Ads customer ID.') + args = parser.parse_args() + + main(google_ads_client, args.customer_id, _DEFAULT_PAGE_SIZE) diff --git a/examples/v0/billing/remove_billing_setup.py b/examples/v0/billing/remove_billing_setup.py new file mode 100644 index 000000000..545df7f4e --- /dev/null +++ b/examples/v0/billing/remove_billing_setup.py @@ -0,0 +1,70 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +"""This example removes a billing setup with the specified ID. + +To get available billing setups, run get_billing_setups.py. +""" + +from __future__ import absolute_import + +import argparse +import six +import sys + +import google.ads.google_ads.client + + +def main(client, customer_id, billing_setup_id): + billing_setup_service = client.get_service('BillingSetupService') + + # Create billing setup operation. + billing_setup_operation = client.get_type('BillingSetupOperation') + billing_setup_operation.remove = billing_setup_service.billing_setup_path( + customer_id, billing_setup_id) + + # Remove the billing setup. + try: + billing_setup_response = billing_setup_service.mutate_billing_setup( + customer_id, billing_setup_operation) + except google.ads.google_ads.errors.GoogleAdsException as ex: + print('Request with ID "%s" failed with status "%s" and includes the ' + 'following errors:' % (ex.request_id, ex.error.code().name)) + for error in ex.failure.errors: + print('\tError with message "%s".' % error.message) + if error.location: + for field_path_element in error.location.field_path_elements: + print('\t\tOn field: %s' % field_path_element.field_name) + sys.exit(1) + + print('Removed billing setup %s.' + % billing_setup_response.results[0].resource_name) + + +if __name__ == '__main__': + # GoogleAdsClient will read the google-ads.yaml configuration file in the + # home directory if none is specified. + google_ads_client = (google.ads.google_ads.client.GoogleAdsClient + .load_from_storage()) + + parser = argparse.ArgumentParser( + description=('Removes billing setup for specified customer and billing ' + 'setup ID.')) + # The following argument(s) should be provided to run the example. + parser.add_argument('-c', '--customer_id', type=six.text_type, + required=True, help='The AdWords customer ID.') + parser.add_argument('-b', '--billing_setup_id', type=six.text_type, + required=True, help='The billing setup ID.') + args = parser.parse_args() + + main(google_ads_client, args.customer_id, args.billing_setup_id) diff --git a/examples/v0/campaign_management/add_bid_modifiers.py b/examples/v0/campaign_management/add_bid_modifiers.py index 577c16229..bfdce7906 100644 --- a/examples/v0/campaign_management/add_bid_modifiers.py +++ b/examples/v0/campaign_management/add_bid_modifiers.py @@ -64,7 +64,7 @@ def main(client, customer_id, campaign_id, bid_modifier_value): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/campaign_management/add_campaign_groups.py b/examples/v0/campaign_management/add_campaign_groups.py index aefc9e02f..5c2d8002a 100644 --- a/examples/v0/campaign_management/add_campaign_groups.py +++ b/examples/v0/campaign_management/add_campaign_groups.py @@ -104,7 +104,7 @@ def main(client, customer_id, campaign_ids): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/hotel_ads/add_hotel_ad.py b/examples/v0/hotel_ads/add_hotel_ad.py index acc029537..139c80a9f 100644 --- a/examples/v0/hotel_ads/add_hotel_ad.py +++ b/examples/v0/hotel_ads/add_hotel_ad.py @@ -201,7 +201,7 @@ def add_hotel_campaign(client, customer_id, budget_resource_name, if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/hotel_ads/add_hotel_ad_group_bid_modifiers.py b/examples/v0/hotel_ads/add_hotel_ad_group_bid_modifiers.py index d83827a63..7ebab4eac 100644 --- a/examples/v0/hotel_ads/add_hotel_ad_group_bid_modifiers.py +++ b/examples/v0/hotel_ads/add_hotel_ad_group_bid_modifiers.py @@ -74,7 +74,7 @@ def main(client, customer_id, ad_group_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/recommendations/apply_recommendation.py b/examples/v0/recommendations/apply_recommendation.py index b4b4e03a8..d347988ab 100644 --- a/examples/v0/recommendations/apply_recommendation.py +++ b/examples/v0/recommendations/apply_recommendation.py @@ -53,7 +53,7 @@ def main(client, customer_id, recommendation_id): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/recommendations/get_text_ad_recommendations.py b/examples/v0/recommendations/get_text_ad_recommendations.py index 599d7a961..18143138b 100644 --- a/examples/v0/recommendations/get_text_ad_recommendations.py +++ b/examples/v0/recommendations/get_text_ad_recommendations.py @@ -64,7 +64,7 @@ def main(client, customer_id, page_size): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/reporting/get_keyword_stats.py b/examples/v0/reporting/get_keyword_stats.py index 314e20e6a..464fb955f 100644 --- a/examples/v0/reporting/get_keyword_stats.py +++ b/examples/v0/reporting/get_keyword_stats.py @@ -74,7 +74,7 @@ def main(client, customer_id, page_size): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/targeting/add_campaign_targeting_criteria.py b/examples/v0/targeting/add_campaign_targeting_criteria.py index a5a8ca957..dfe43e544 100644 --- a/examples/v0/targeting/add_campaign_targeting_criteria.py +++ b/examples/v0/targeting/add_campaign_targeting_criteria.py @@ -55,7 +55,7 @@ def main(client, customer_id, campaign_id, keyword): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/examples/v0/targeting/get_campaign_targeting_criteria.py b/examples/v0/targeting/get_campaign_targeting_criteria.py index 49ac3b43f..734b0dfd1 100644 --- a/examples/v0/targeting/get_campaign_targeting_criteria.py +++ b/examples/v0/targeting/get_campaign_targeting_criteria.py @@ -63,7 +63,7 @@ def main(client, customer_id, campaign_id, page_size): if __name__ == '__main__': - # GoogleAdsClient will read a google-ads.yaml configuration file in the + # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. google_ads_client = (google.ads.google_ads.client.GoogleAdsClient .load_from_storage()) diff --git a/google/ads/google_ads/__init__.py b/google/ads/google_ads/__init__.py index 0b2670dd6..c6f96a12e 100644 --- a/google/ads/google_ads/__init__.py +++ b/google/ads/google_ads/__init__.py @@ -14,14 +14,9 @@ from __future__ import absolute_import -try: - import pkg_resources - pkg_resources.declare_namespace(__name__) -except ImportError: - import pkgutil - __path__ = pkgutil.extend_path(__path__, __name__) +import google.ads.google_ads.client +import google.ads.google_ads.errors -import google.ads.google_ads.v0 +VERSION = '0.3.0' -VERSION = '0.2.0' diff --git a/google/ads/google_ads/v0/__init__.py b/google/ads/google_ads/v0/__init__.py index a324c573d..50b71aafd 100644 --- a/google/ads/google_ads/v0/__init__.py +++ b/google/ads/google_ads/v0/__init__.py @@ -15,17 +15,21 @@ from __future__ import absolute_import from google.ads.google_ads.v0 import types +from google.ads.google_ads.v0.services import account_budget_proposal_service_client from google.ads.google_ads.v0.services import ad_group_ad_service_client from google.ads.google_ads.v0.services import ad_group_bid_modifier_service_client from google.ads.google_ads.v0.services import ad_group_criterion_service_client from google.ads.google_ads.v0.services import ad_group_service_client from google.ads.google_ads.v0.services import bidding_strategy_service_client +from google.ads.google_ads.v0.services import billing_setup_service_client from google.ads.google_ads.v0.services import campaign_bid_modifier_service_client from google.ads.google_ads.v0.services import campaign_budget_service_client from google.ads.google_ads.v0.services import campaign_criterion_service_client from google.ads.google_ads.v0.services import campaign_group_service_client from google.ads.google_ads.v0.services import campaign_service_client from google.ads.google_ads.v0.services import campaign_shared_set_service_client +from google.ads.google_ads.v0.services import change_status_service_client +from google.ads.google_ads.v0.services import conversion_action_service_client from google.ads.google_ads.v0.services import customer_service_client from google.ads.google_ads.v0.services import enums from google.ads.google_ads.v0.services import geo_target_constant_service_client @@ -35,18 +39,23 @@ from google.ads.google_ads.v0.services import recommendation_service_client from google.ads.google_ads.v0.services import shared_criterion_service_client from google.ads.google_ads.v0.services import shared_set_service_client +from google.ads.google_ads.v0.services import video_service_client +from google.ads.google_ads.v0.services.transports import account_budget_proposal_service_grpc_transport from google.ads.google_ads.v0.services.transports import ad_group_ad_service_grpc_transport from google.ads.google_ads.v0.services.transports import ad_group_bid_modifier_service_grpc_transport from google.ads.google_ads.v0.services.transports import ad_group_criterion_service_grpc_transport from google.ads.google_ads.v0.services.transports import ad_group_service_grpc_transport from google.ads.google_ads.v0.services.transports import bidding_strategy_service_grpc_transport +from google.ads.google_ads.v0.services.transports import billing_setup_service_grpc_transport from google.ads.google_ads.v0.services.transports import campaign_bid_modifier_service_grpc_transport from google.ads.google_ads.v0.services.transports import campaign_budget_service_grpc_transport from google.ads.google_ads.v0.services.transports import campaign_criterion_service_grpc_transport from google.ads.google_ads.v0.services.transports import campaign_group_service_grpc_transport from google.ads.google_ads.v0.services.transports import campaign_service_grpc_transport -from google.ads.google_ads.v0.services.transports import customer_service_grpc_transport from google.ads.google_ads.v0.services.transports import campaign_shared_set_service_grpc_transport +from google.ads.google_ads.v0.services.transports import change_status_service_grpc_transport +from google.ads.google_ads.v0.services.transports import conversion_action_service_grpc_transport +from google.ads.google_ads.v0.services.transports import customer_service_grpc_transport from google.ads.google_ads.v0.services.transports import geo_target_constant_service_grpc_transport from google.ads.google_ads.v0.services.transports import google_ads_field_service_grpc_transport from google.ads.google_ads.v0.services.transports import google_ads_service_grpc_transport @@ -54,7 +63,7 @@ from google.ads.google_ads.v0.services.transports import recommendation_service_grpc_transport from google.ads.google_ads.v0.services.transports import shared_criterion_service_grpc_transport from google.ads.google_ads.v0.services.transports import shared_set_service_grpc_transport - +from google.ads.google_ads.v0.services.transports import video_service_grpc_transport class AdGroupAdServiceClient( @@ -258,46 +267,113 @@ class SharedSetServiceGrpcTransport( shared_set_service_grpc_transport.SharedSetServiceGrpcTransport): __doc__ = shared_set_service_grpc_transport.SharedSetServiceGrpcTransport.__doc__ +class AccountBudgetProposalServiceClient( + account_budget_proposal_service_client. + AccountBudgetProposalServiceClient): + __doc__ = account_budget_proposal_service_client.AccountBudgetProposalServiceClient.__doc__ + enums = enums + + +class BillingSetupServiceClient( + billing_setup_service_client.BillingSetupServiceClient): + __doc__ = billing_setup_service_client.BillingSetupServiceClient.__doc__ + enums = enums + + +class ChangeStatusServiceClient( + change_status_service_client.ChangeStatusServiceClient): + __doc__ = change_status_service_client.ChangeStatusServiceClient.__doc__ + enums = enums + + +class ConversionActionServiceClient( + conversion_action_service_client.ConversionActionServiceClient): + __doc__ = conversion_action_service_client.ConversionActionServiceClient.__doc__ + enums = enums + +class VideoServiceClient(video_service_client.VideoServiceClient): + __doc__ = video_service_client.VideoServiceClient.__doc__ + enums = enums + + +class AccountBudgetProposalServiceGrpcTransport( + account_budget_proposal_service_grpc_transport. + AccountBudgetProposalServiceGrpcTransport): + __doc__ = account_budget_proposal_service_grpc_transport.AccountBudgetProposalServiceGrpcTransport.__doc__ + enums = enums + + +class BillingSetupServiceGrpcTransport( + billing_setup_service_grpc_transport.BillingSetupServiceGrpcTransport): + __doc__ = billing_setup_service_grpc_transport.BillingSetupServiceGrpcTransport.__doc__ + enums = enums + + +class ChangeStatusServiceGrpcTransport( + change_status_service_grpc_transport.ChangeStatusServiceGrpcTransport): + __doc__ = change_status_service_grpc_transport.ChangeStatusServiceGrpcTransport.__doc__ + enums = enums + + +class ConversionActionServiceGrpcTransport( + conversion_action_service_grpc_transport.ConversionActionServiceGrpcTransport): + __doc__ = conversion_action_service_grpc_transport.ConversionActionServiceGrpcTransport.__doc__ + enums = enums + +class VideoServiceGrpcTransport(video_service_grpc_transport.VideoServiceGrpcTransport): + __doc__ = video_service_grpc_transport.VideoServiceGrpcTransport.__doc__ + enums = enums + __all__ = ( 'enums', 'types', + 'AccountBudgetProposalServiceClient', 'AdGroupAdServiceClient', - 'AdGroupAdServiceGrpcTransport', 'AdGroupBidModifierServiceClient', - 'AdGroupBidModifierServiceGrpcTransport', 'AdGroupCriterionServiceClient', - 'AdGroupCriterionServiceGrpcTransport', 'AdGroupServiceClient', - 'AdGroupServiceGrpcTransport', 'BiddingStrategyServiceClient', - 'BiddingStrategyServiceGrpcTransport', + 'BillingSetupServiceClient', 'CampaignBidModifierServiceClient', - 'CampaignBidModifierServiceGrpcTransport', 'CampaignBudgetServiceClient', - 'CampaignBudgetServiceGrpcTransport' 'CampaignCriterionServiceClient', - 'CampaignCriterionServiceGrpcTransport', 'CampaignGroupServiceClient', - 'CampaignGroupServiceGrpcTransport', 'CampaignServiceClient', - 'CampaignServiceGrpcTransport', 'CampaignSharedSetServiceClient', - 'CampaignSharedSetServiceGrpcTransport', + 'ChangeStatusServiceClient', + 'ConversionActionServiceClient', 'CustomerServiceClient', - 'CustomerServiceGrpcTransport', 'GeoTargetConstantServiceClient', - 'GeoTargetConstantServiceGrpcTransport', 'GoogleAdsFieldServiceClient', - 'GoogleAdsServiceGrpcTransport', 'GoogleAdsServiceClient', - 'GoogleAdsServiceGrpcTransport', 'KeywordViewServiceClient', - 'KeywordViewServiceGrpcTransport', 'RecommendationServiceClient', - 'RecommendationServiceGrpcTransport', 'SharedCriterionServiceClient', - 'SharedCriterionServiceGrpcTransport', 'SharedSetServiceClient', - 'SharedSetServiceGrpcTransport' + 'VideoServiceClient', + 'AccountBudgetProposalServiceGrpcTransport', + 'AdGroupAdServiceGrpcTransport', + 'AdGroupBidModifierServiceGrpcTransport', + 'AdGroupCriterionServiceGrpcTransport', + 'AdGroupServiceGrpcTransport', + 'BiddingStrategyServiceGrpcTransport', + 'BillingSetupServiceGrpcTransport', + 'CampaignBidModifierServiceGrpcTransport', + 'CampaignBudgetServiceGrpcTransport', + 'CampaignCriterionServiceGrpcTransport', + 'CampaignGroupServiceGrpcTransport', + 'CampaignServiceGrpcTransport', + 'CampaignSharedSetServiceGrpcTransport', + 'ChangeStatusServiceGrpcTransport', + 'ConversionActionServiceGrpcTransport', + 'CustomerServiceGrpcTransport', + 'GeoTargetConstantServiceGrpcTransport', + 'GoogleAdsFieldServiceGrpcTransport', + 'GoogleAdsServiceGrpcTransport', + 'KeywordViewServiceGrpcTransport', + 'RecommendationServiceGrpcTransport', + 'SharedCriterionServiceGrpcTransport', + 'SharedSetServiceGrpcTransport', + 'VideoServiceGrpcTransport', ) diff --git a/google/ads/google_ads/v0/proto/common/ad_type_infos_pb2.py b/google/ads/google_ads/v0/proto/common/ad_type_infos_pb2.py index bb8bfce4e..12c3c0d32 100644 --- a/google/ads/google_ads/v0/proto/common/ad_type_infos_pb2.py +++ b/google/ads/google_ads/v0/proto/common/ad_type_infos_pb2.py @@ -20,7 +20,7 @@ name='google/ads/googleads_v0/proto/common/ad_type_infos.proto', package='google.ads.googleads.v0.common', syntax='proto3', - serialized_pb=_b('\n8google/ads/googleads_v0/proto/common/ad_type_infos.proto\x12\x1egoogle.ads.googleads.v0.common\x1a\x1egoogle/protobuf/wrappers.proto\"\xa4\x01\n\nTextAdInfo\x12.\n\x08headline\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription1\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription2\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x8d\x02\n\x12\x45xpandedTextAdInfo\x12\x34\n\x0eheadline_part1\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0eheadline_part2\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05path1\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05path2\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"}\n\x13\x44ynamicSearchAdInfo\x12\x32\n\x0c\x64\x65scription1\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription2\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xec\x01\n\x17ResponsiveDisplayAdInfo\x12\x34\n\x0eshort_headline\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlong_headline\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rbusiness_name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xc9\x03\n\x0e\x43\x61llOnlyAdInfo\x12\x32\n\x0c\x63ountry_code\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0cphone_number\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rbusiness_name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription1\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription2\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\x0c\x63\x61ll_tracked\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12;\n\x17\x64isable_call_conversion\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x43\n\x1dphone_number_verification_url\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"P\n\x1b\x45xpandedDynamicSearchAdInfo\x12\x31\n\x0b\x64\x65scription\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\r\n\x0bHotelAdInfo\"\x15\n\x13ShoppingSmartAdInfoB\xc6\x01\n\"com.google.ads.googleads.v0.commonB\x10\x41\x64TypeInfosProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Commonb\x06proto3') + serialized_pb=_b('\n8google/ads/googleads_v0/proto/common/ad_type_infos.proto\x12\x1egoogle.ads.googleads.v0.common\x1a\x1egoogle/protobuf/wrappers.proto\"\xa4\x01\n\nTextAdInfo\x12.\n\x08headline\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription1\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription2\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x8d\x02\n\x12\x45xpandedTextAdInfo\x12\x34\n\x0eheadline_part1\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0eheadline_part2\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05path1\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05path2\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"}\n\x13\x44ynamicSearchAdInfo\x12\x32\n\x0c\x64\x65scription1\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription2\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xec\x01\n\x17ResponsiveDisplayAdInfo\x12\x34\n\x0eshort_headline\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlong_headline\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rbusiness_name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xc9\x03\n\x0e\x43\x61llOnlyAdInfo\x12\x32\n\x0c\x63ountry_code\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0cphone_number\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rbusiness_name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription1\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription2\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\x0c\x63\x61ll_tracked\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12;\n\x17\x64isable_call_conversion\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x43\n\x1dphone_number_verification_url\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"P\n\x1b\x45xpandedDynamicSearchAdInfo\x12\x31\n\x0b\x64\x65scription\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\r\n\x0bHotelAdInfo\"\x15\n\x13ShoppingSmartAdInfo\"\x17\n\x15ShoppingProductAdInfoB\xc6\x01\n\"com.google.ads.googleads.v0.commonB\x10\x41\x64TypeInfosProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Commonb\x06proto3') , dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) @@ -379,6 +379,30 @@ serialized_end=1507, ) + +_SHOPPINGPRODUCTADINFO = _descriptor.Descriptor( + name='ShoppingProductAdInfo', + full_name='google.ads.googleads.v0.common.ShoppingProductAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1509, + serialized_end=1532, +) + _TEXTADINFO.fields_by_name['headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _TEXTADINFO.fields_by_name['description1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _TEXTADINFO.fields_by_name['description2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE @@ -410,6 +434,7 @@ DESCRIPTOR.message_types_by_name['ExpandedDynamicSearchAdInfo'] = _EXPANDEDDYNAMICSEARCHADINFO DESCRIPTOR.message_types_by_name['HotelAdInfo'] = _HOTELADINFO DESCRIPTOR.message_types_by_name['ShoppingSmartAdInfo'] = _SHOPPINGSMARTADINFO +DESCRIPTOR.message_types_by_name['ShoppingProductAdInfo'] = _SHOPPINGPRODUCTADINFO _sym_db.RegisterFileDescriptor(DESCRIPTOR) TextAdInfo = _reflection.GeneratedProtocolMessageType('TextAdInfo', (_message.Message,), dict( @@ -561,6 +586,16 @@ )) _sym_db.RegisterMessage(ShoppingSmartAdInfo) +ShoppingProductAdInfo = _reflection.GeneratedProtocolMessageType('ShoppingProductAdInfo', (_message.Message,), dict( + DESCRIPTOR = _SHOPPINGPRODUCTADINFO, + __module__ = 'google.ads.googleads_v0.proto.common.ad_type_infos_pb2' + , + __doc__ = """A standard Shopping ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.ShoppingProductAdInfo) + )) +_sym_db.RegisterMessage(ShoppingProductAdInfo) + DESCRIPTOR.has_options = True DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\"com.google.ads.googleads.v0.commonB\020AdTypeInfosProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Common\312\002\036Google\\Ads\\GoogleAds\\V0\\Common')) diff --git a/google/ads/google_ads/v0/proto/common/bidding_pb2.py b/google/ads/google_ads/v0/proto/common/bidding_pb2.py index 8ee798037..d4ca81c3f 100644 --- a/google/ads/google_ads/v0/proto/common/bidding_pb2.py +++ b/google/ads/google_ads/v0/proto/common/bidding_pb2.py @@ -21,7 +21,7 @@ name='google/ads/googleads_v0/proto/common/bidding.proto', package='google.ads.googleads.v0.common', syntax='proto3', - serialized_pb=_b('\n2google/ads/googleads_v0/proto/common/bidding.proto\x12\x1egoogle.ads.googleads.v0.common\x1aIgoogle/ads/googleads_v0/proto/enums/page_one_promoted_strategy_goal.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\r\n\x0b\x45nhancedCpc\"E\n\tManualCpc\x12\x38\n\x14\x65nhanced_cpc_enabled\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\x0b\n\tManualCpm\"\x15\n\x13MaximizeConversions\"L\n\x17MaximizeConversionValue\x12\x31\n\x0btarget_roas\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\"\xc6\x03\n\x0fPageOnePromoted\x12q\n\rstrategy_goal\x18\x01 \x01(\x0e\x32Z.google.ads.googleads.v0.enums.PageOnePromotedStrategyGoalEnum.PageOnePromotedStrategyGoal\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\x0c\x62id_modifier\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x37\n\x13only_raise_cpc_bids\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12I\n%raise_cpc_bid_when_budget_constrained\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12K\n\'raise_cpc_bid_when_quality_score_is_low\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\xbb\x01\n\tTargetCpa\x12\x36\n\x11target_cpa_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14\x63pc_bid_floor_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xd2\x02\n\x12TargetOutrankShare\x12@\n\x1btarget_outrank_share_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x37\n\x11\x63ompetitor_domain\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x37\n\x13only_raise_cpc_bids\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12K\n\'raise_cpc_bid_when_quality_score_is_low\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\xb7\x01\n\nTargetRoas\x12\x31\n\x0btarget_roas\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14\x63pc_bid_floor_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x84\x01\n\x0bTargetSpend\x12\x38\n\x13target_spend_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x83\x01\n\nPercentCpc\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x14\x65nhanced_cpc_enabled\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\xc2\x01\n\"com.google.ads.googleads.v0.commonB\x0c\x42iddingProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Commonb\x06proto3') + serialized_pb=_b('\n2google/ads/googleads_v0/proto/common/bidding.proto\x12\x1egoogle.ads.googleads.v0.common\x1aIgoogle/ads/googleads_v0/proto/enums/page_one_promoted_strategy_goal.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\r\n\x0b\x45nhancedCpc\"E\n\tManualCpc\x12\x38\n\x14\x65nhanced_cpc_enabled\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\x0b\n\tManualCpm\"\x0b\n\tManualCpv\"\x15\n\x13MaximizeConversions\"L\n\x17MaximizeConversionValue\x12\x31\n\x0btarget_roas\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\"\xc6\x03\n\x0fPageOnePromoted\x12q\n\rstrategy_goal\x18\x01 \x01(\x0e\x32Z.google.ads.googleads.v0.enums.PageOnePromotedStrategyGoalEnum.PageOnePromotedStrategyGoal\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\x0c\x62id_modifier\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x37\n\x13only_raise_cpc_bids\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12I\n%raise_cpc_bid_when_budget_constrained\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12K\n\'raise_cpc_bid_when_quality_score_is_low\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\xbb\x01\n\tTargetCpa\x12\x36\n\x11target_cpa_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14\x63pc_bid_floor_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xd2\x02\n\x12TargetOutrankShare\x12@\n\x1btarget_outrank_share_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x37\n\x11\x63ompetitor_domain\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x37\n\x13only_raise_cpc_bids\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12K\n\'raise_cpc_bid_when_quality_score_is_low\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\xb7\x01\n\nTargetRoas\x12\x31\n\x0btarget_roas\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14\x63pc_bid_floor_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x84\x01\n\x0bTargetSpend\x12\x38\n\x13target_spend_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x83\x01\n\nPercentCpc\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x14\x65nhanced_cpc_enabled\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\xc2\x01\n\"com.google.ads.googleads.v0.commonB\x0c\x42iddingProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Commonb\x06proto3') , dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_page__one__promoted__strategy__goal__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) @@ -107,6 +107,30 @@ ) +_MANUALCPV = _descriptor.Descriptor( + name='ManualCpv', + full_name='google.ads.googleads.v0.common.ManualCpv', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=292, + serialized_end=303, +) + + _MAXIMIZECONVERSIONS = _descriptor.Descriptor( name='MaximizeConversions', full_name='google.ads.googleads.v0.common.MaximizeConversions', @@ -126,8 +150,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=292, - serialized_end=313, + serialized_start=305, + serialized_end=326, ) @@ -157,8 +181,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=315, - serialized_end=391, + serialized_start=328, + serialized_end=404, ) @@ -223,8 +247,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=394, - serialized_end=848, + serialized_start=407, + serialized_end=861, ) @@ -268,8 +292,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=851, - serialized_end=1038, + serialized_start=864, + serialized_end=1051, ) @@ -327,8 +351,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1041, - serialized_end=1379, + serialized_start=1054, + serialized_end=1392, ) @@ -372,8 +396,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1382, - serialized_end=1565, + serialized_start=1395, + serialized_end=1578, ) @@ -410,8 +434,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1568, - serialized_end=1700, + serialized_start=1581, + serialized_end=1713, ) @@ -448,8 +472,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1703, - serialized_end=1834, + serialized_start=1716, + serialized_end=1847, ) _MANUALCPC.fields_by_name['enhanced_cpc_enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE @@ -478,6 +502,7 @@ DESCRIPTOR.message_types_by_name['EnhancedCpc'] = _ENHANCEDCPC DESCRIPTOR.message_types_by_name['ManualCpc'] = _MANUALCPC DESCRIPTOR.message_types_by_name['ManualCpm'] = _MANUALCPM +DESCRIPTOR.message_types_by_name['ManualCpv'] = _MANUALCPV DESCRIPTOR.message_types_by_name['MaximizeConversions'] = _MAXIMIZECONVERSIONS DESCRIPTOR.message_types_by_name['MaximizeConversionValue'] = _MAXIMIZECONVERSIONVALUE DESCRIPTOR.message_types_by_name['PageOnePromoted'] = _PAGEONEPROMOTED @@ -527,6 +552,16 @@ )) _sym_db.RegisterMessage(ManualCpm) +ManualCpv = _reflection.GeneratedProtocolMessageType('ManualCpv', (_message.Message,), dict( + DESCRIPTOR = _MANUALCPV, + __module__ = 'google.ads.googleads_v0.proto.common.bidding_pb2' + , + __doc__ = """View based bidding where user pays per video view. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.ManualCpv) + )) +_sym_db.RegisterMessage(ManualCpv) + MaximizeConversions = _reflection.GeneratedProtocolMessageType('MaximizeConversions', (_message.Message,), dict( DESCRIPTOR = _MAXIMIZECONVERSIONS, __module__ = 'google.ads.googleads_v0.proto.common.bidding_pb2' diff --git a/google/ads/google_ads/v0/proto/common/criteria_pb2.py b/google/ads/google_ads/v0/proto/common/criteria_pb2.py index 3b0dca13b..58f52899e 100644 --- a/google/ads/google_ads/v0/proto/common/criteria_pb2.py +++ b/google/ads/google_ads/v0/proto/common/criteria_pb2.py @@ -21,6 +21,8 @@ from google.ads.google_ads.v0.proto.enums import listing_custom_attribute_index_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_listing__custom__attribute__index__pb2 from google.ads.google_ads.v0.proto.enums import listing_group_type_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_listing__group__type__pb2 from google.ads.google_ads.v0.proto.enums import minute_of_hour_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_minute__of__hour__pb2 +from google.ads.google_ads.v0.proto.enums import product_channel_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_product__channel__pb2 +from google.ads.google_ads.v0.proto.enums import product_channel_exclusivity_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_product__channel__exclusivity__pb2 from google.ads.google_ads.v0.proto.enums import product_condition_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_product__condition__pb2 from google.ads.google_ads.v0.proto.enums import product_type_level_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_product__type__level__pb2 from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 @@ -30,9 +32,9 @@ name='google/ads/googleads_v0/proto/common/criteria.proto', package='google.ads.googleads.v0.common', syntax='proto3', - serialized_pb=_b('\n3google/ads/googleads_v0/proto/common/criteria.proto\x12\x1egoogle.ads.googleads.v0.common\x1a\x35google/ads/googleads_v0/proto/enums/day_of_week.proto\x1a\x30google/ads/googleads_v0/proto/enums/device.proto\x1a\x43google/ads/googleads_v0/proto/enums/hotel_date_selection_type.proto\x1a:google/ads/googleads_v0/proto/enums/interaction_type.proto\x1a\n\x04type\x18\x01 \x01(\x0e\x32\x30.google.ads.googleads.v0.enums.DeviceEnum.Device\"\xf1\x01\n\x10ListingGroupInfo\x12R\n\x04type\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v0.enums.ListingGroupTypeEnum.ListingGroupType\x12H\n\ncase_value\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v0.common.ListingDimensionInfo\x12?\n\x19parent_ad_group_criterion\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xd6\x05\n\x14ListingDimensionInfo\x12I\n\rlisting_brand\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v0.common.ListingBrandInfoH\x00\x12?\n\x08hotel_id\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v0.common.HotelIdInfoH\x00\x12\x45\n\x0bhotel_class\x18\x03 \x01(\x0b\x32..google.ads.googleads.v0.common.HotelClassInfoH\x00\x12V\n\x14hotel_country_region\x18\x04 \x01(\x0b\x32\x36.google.ads.googleads.v0.common.HotelCountryRegionInfoH\x00\x12\x45\n\x0bhotel_state\x18\x05 \x01(\x0b\x32..google.ads.googleads.v0.common.HotelStateInfoH\x00\x12\x43\n\nhotel_city\x18\x06 \x01(\x0b\x32-.google.ads.googleads.v0.common.HotelCityInfoH\x00\x12^\n\x18listing_custom_attribute\x18\x07 \x01(\x0b\x32:.google.ads.googleads.v0.common.ListingCustomAttributeInfoH\x00\x12Q\n\x11product_condition\x18\n \x01(\x0b\x32\x34.google.ads.googleads.v0.common.ProductConditionInfoH\x00\x12G\n\x0cproduct_type\x18\x0c \x01(\x0b\x32/.google.ads.googleads.v0.common.ProductTypeInfoH\x00\x42\x0b\n\tdimension\"?\n\x10ListingBrandInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\":\n\x0bHotelIdInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"<\n\x0eHotelClassInfo\x12*\n\x05value\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"X\n\x16HotelCountryRegionInfo\x12>\n\x18\x63ountry_region_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"G\n\x0eHotelStateInfo\x12\x35\n\x0fstate_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"E\n\rHotelCityInfo\x12\x34\n\x0e\x63ity_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xb4\x01\n\x1aListingCustomAttributeInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12i\n\x05index\x18\x02 \x01(\x0e\x32Z.google.ads.googleads.v0.enums.ListingCustomAttributeIndexEnum.ListingCustomAttributeIndex\"o\n\x14ProductConditionInfo\x12W\n\tcondition\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v0.enums.ProductConditionEnum.ProductCondition\"\x93\x01\n\x0fProductTypeInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12S\n\x05level\x18\x02 \x01(\x0e\x32\x44.google.ads.googleads.v0.enums.ProductTypeLevelEnum.ProductTypeLevel\"|\n\x1aHotelDateSelectionTypeInfo\x12^\n\x04type\x18\x01 \x01(\x0e\x32P.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType\"}\n\x1dHotelAdvanceBookingWindowInfo\x12-\n\x08min_days\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12-\n\x08max_days\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"y\n\x15HotelLengthOfStayInfo\x12/\n\nmin_nights\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12/\n\nmax_nights\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"b\n\x13HotelCheckInDayInfo\x12K\n\x0b\x64\x61y_of_week\x18\x01 \x01(\x0e\x32\x36.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek\"g\n\x13InteractionTypeInfo\x12P\n\x04type\x18\x01 \x01(\x0e\x32\x42.google.ads.googleads.v0.enums.InteractionTypeEnum.InteractionType\"\xe3\x02\n\x0e\x41\x64ScheduleInfo\x12R\n\x0cstart_minute\x18\x01 \x01(\x0e\x32<.google.ads.googleads.v0.enums.MinuteOfHourEnum.MinuteOfHour\x12P\n\nend_minute\x18\x02 \x01(\x0e\x32<.google.ads.googleads.v0.enums.MinuteOfHourEnum.MinuteOfHour\x12/\n\nstart_hour\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12-\n\x08\x65nd_hour\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12K\n\x0b\x64\x61y_of_week\x18\x05 \x01(\x0e\x32\x36.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeekB\xc3\x01\n\"com.google.ads.googleads.v0.commonB\rCriteriaProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Commonb\x06proto3') + serialized_pb=_b('\n3google/ads/googleads_v0/proto/common/criteria.proto\x12\x1egoogle.ads.googleads.v0.common\x1a\x35google/ads/googleads_v0/proto/enums/day_of_week.proto\x1a\x30google/ads/googleads_v0/proto/enums/device.proto\x1a\x43google/ads/googleads_v0/proto/enums/hotel_date_selection_type.proto\x1a:google/ads/googleads_v0/proto/enums/interaction_type.proto\x1a\n\x04type\x18\x01 \x01(\x0e\x32\x30.google.ads.googleads.v0.enums.DeviceEnum.Device\"\xf1\x01\n\x10ListingGroupInfo\x12R\n\x04type\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v0.enums.ListingGroupTypeEnum.ListingGroupType\x12H\n\ncase_value\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v0.common.ListingDimensionInfo\x12?\n\x19parent_ad_group_criterion\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xdb\x07\n\x14ListingDimensionInfo\x12I\n\rlisting_brand\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v0.common.ListingBrandInfoH\x00\x12?\n\x08hotel_id\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v0.common.HotelIdInfoH\x00\x12\x45\n\x0bhotel_class\x18\x03 \x01(\x0b\x32..google.ads.googleads.v0.common.HotelClassInfoH\x00\x12V\n\x14hotel_country_region\x18\x04 \x01(\x0b\x32\x36.google.ads.googleads.v0.common.HotelCountryRegionInfoH\x00\x12\x45\n\x0bhotel_state\x18\x05 \x01(\x0b\x32..google.ads.googleads.v0.common.HotelStateInfoH\x00\x12\x43\n\nhotel_city\x18\x06 \x01(\x0b\x32-.google.ads.googleads.v0.common.HotelCityInfoH\x00\x12^\n\x18listing_custom_attribute\x18\x07 \x01(\x0b\x32:.google.ads.googleads.v0.common.ListingCustomAttributeInfoH\x00\x12M\n\x0fproduct_channel\x18\x08 \x01(\x0b\x32\x32.google.ads.googleads.v0.common.ProductChannelInfoH\x00\x12\x64\n\x1bproduct_channel_exclusivity\x18\t \x01(\x0b\x32=.google.ads.googleads.v0.common.ProductChannelExclusivityInfoH\x00\x12Q\n\x11product_condition\x18\n \x01(\x0b\x32\x34.google.ads.googleads.v0.common.ProductConditionInfoH\x00\x12N\n\x10product_offer_id\x18\x0b \x01(\x0b\x32\x32.google.ads.googleads.v0.common.ProductOfferIdInfoH\x00\x12G\n\x0cproduct_type\x18\x0c \x01(\x0b\x32/.google.ads.googleads.v0.common.ProductTypeInfoH\x00\x42\x0b\n\tdimension\"?\n\x10ListingBrandInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\":\n\x0bHotelIdInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"<\n\x0eHotelClassInfo\x12*\n\x05value\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"X\n\x16HotelCountryRegionInfo\x12>\n\x18\x63ountry_region_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"G\n\x0eHotelStateInfo\x12\x35\n\x0fstate_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"E\n\rHotelCityInfo\x12\x34\n\x0e\x63ity_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xb4\x01\n\x1aListingCustomAttributeInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12i\n\x05index\x18\x02 \x01(\x0e\x32Z.google.ads.googleads.v0.enums.ListingCustomAttributeIndexEnum.ListingCustomAttributeIndex\"g\n\x12ProductChannelInfo\x12Q\n\x07\x63hannel\x18\x01 \x01(\x0e\x32@.google.ads.googleads.v0.enums.ProductChannelEnum.ProductChannel\"\x94\x01\n\x1dProductChannelExclusivityInfo\x12s\n\x13\x63hannel_exclusivity\x18\x01 \x01(\x0e\x32V.google.ads.googleads.v0.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity\"o\n\x14ProductConditionInfo\x12W\n\tcondition\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v0.enums.ProductConditionEnum.ProductCondition\"A\n\x12ProductOfferIdInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x93\x01\n\x0fProductTypeInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12S\n\x05level\x18\x02 \x01(\x0e\x32\x44.google.ads.googleads.v0.enums.ProductTypeLevelEnum.ProductTypeLevel\"|\n\x1aHotelDateSelectionTypeInfo\x12^\n\x04type\x18\x01 \x01(\x0e\x32P.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType\"}\n\x1dHotelAdvanceBookingWindowInfo\x12-\n\x08min_days\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12-\n\x08max_days\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"y\n\x15HotelLengthOfStayInfo\x12/\n\nmin_nights\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12/\n\nmax_nights\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"b\n\x13HotelCheckInDayInfo\x12K\n\x0b\x64\x61y_of_week\x18\x01 \x01(\x0e\x32\x36.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek\"g\n\x13InteractionTypeInfo\x12P\n\x04type\x18\x01 \x01(\x0e\x32\x42.google.ads.googleads.v0.enums.InteractionTypeEnum.InteractionType\"\xe3\x02\n\x0e\x41\x64ScheduleInfo\x12R\n\x0cstart_minute\x18\x01 \x01(\x0e\x32<.google.ads.googleads.v0.enums.MinuteOfHourEnum.MinuteOfHour\x12P\n\nend_minute\x18\x02 \x01(\x0e\x32<.google.ads.googleads.v0.enums.MinuteOfHourEnum.MinuteOfHour\x12/\n\nstart_hour\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12-\n\x08\x65nd_hour\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12K\n\x0b\x64\x61y_of_week\x18\x05 \x01(\x0e\x32\x36.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeekB\xc3\x01\n\"com.google.ads.googleads.v0.commonB\rCriteriaProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Commonb\x06proto3') , - dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_day__of__week__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_hotel__date__selection__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_interaction__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_keyword__match__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_listing__custom__attribute__index__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_listing__group__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_minute__of__hour__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_product__condition__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_product__type__level__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) + dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_day__of__week__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_hotel__date__selection__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_interaction__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_keyword__match__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_listing__custom__attribute__index__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_listing__group__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_minute__of__hour__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_product__channel__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_product__channel__exclusivity__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_product__condition__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_product__type__level__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) @@ -70,8 +72,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=733, - serialized_end=880, + serialized_start=863, + serialized_end=1010, ) @@ -101,8 +103,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=882, - serialized_end=955, + serialized_start=1012, + serialized_end=1085, ) @@ -132,8 +134,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=957, - serialized_end=1033, + serialized_start=1087, + serialized_end=1163, ) @@ -177,8 +179,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1036, - serialized_end=1277, + serialized_start=1166, + serialized_end=1407, ) @@ -239,14 +241,35 @@ is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='product_condition', full_name='google.ads.googleads.v0.common.ListingDimensionInfo.product_condition', index=7, + name='product_channel', full_name='google.ads.googleads.v0.common.ListingDimensionInfo.product_channel', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_channel_exclusivity', full_name='google.ads.googleads.v0.common.ListingDimensionInfo.product_channel_exclusivity', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_condition', full_name='google.ads.googleads.v0.common.ListingDimensionInfo.product_condition', index=9, number=10, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='product_type', full_name='google.ads.googleads.v0.common.ListingDimensionInfo.product_type', index=8, + name='product_offer_id', full_name='google.ads.googleads.v0.common.ListingDimensionInfo.product_offer_id', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_type', full_name='google.ads.googleads.v0.common.ListingDimensionInfo.product_type', index=11, number=12, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -267,8 +290,8 @@ name='dimension', full_name='google.ads.googleads.v0.common.ListingDimensionInfo.dimension', index=0, containing_type=None, fields=[]), ], - serialized_start=1280, - serialized_end=2006, + serialized_start=1410, + serialized_end=2397, ) @@ -298,8 +321,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2008, - serialized_end=2071, + serialized_start=2399, + serialized_end=2462, ) @@ -329,8 +352,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2073, - serialized_end=2131, + serialized_start=2464, + serialized_end=2522, ) @@ -360,8 +383,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2133, - serialized_end=2193, + serialized_start=2524, + serialized_end=2584, ) @@ -391,8 +414,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2195, - serialized_end=2283, + serialized_start=2586, + serialized_end=2674, ) @@ -422,8 +445,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2285, - serialized_end=2356, + serialized_start=2676, + serialized_end=2747, ) @@ -453,8 +476,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2358, - serialized_end=2427, + serialized_start=2749, + serialized_end=2818, ) @@ -491,8 +514,70 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2430, - serialized_end=2610, + serialized_start=2821, + serialized_end=3001, +) + + +_PRODUCTCHANNELINFO = _descriptor.Descriptor( + name='ProductChannelInfo', + full_name='google.ads.googleads.v0.common.ProductChannelInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='channel', full_name='google.ads.googleads.v0.common.ProductChannelInfo.channel', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3003, + serialized_end=3106, +) + + +_PRODUCTCHANNELEXCLUSIVITYINFO = _descriptor.Descriptor( + name='ProductChannelExclusivityInfo', + full_name='google.ads.googleads.v0.common.ProductChannelExclusivityInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='channel_exclusivity', full_name='google.ads.googleads.v0.common.ProductChannelExclusivityInfo.channel_exclusivity', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3109, + serialized_end=3257, ) @@ -522,8 +607,39 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2612, - serialized_end=2723, + serialized_start=3259, + serialized_end=3370, +) + + +_PRODUCTOFFERIDINFO = _descriptor.Descriptor( + name='ProductOfferIdInfo', + full_name='google.ads.googleads.v0.common.ProductOfferIdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='value', full_name='google.ads.googleads.v0.common.ProductOfferIdInfo.value', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3372, + serialized_end=3437, ) @@ -560,8 +676,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2726, - serialized_end=2873, + serialized_start=3440, + serialized_end=3587, ) @@ -591,8 +707,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2875, - serialized_end=2999, + serialized_start=3589, + serialized_end=3713, ) @@ -629,8 +745,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3001, - serialized_end=3126, + serialized_start=3715, + serialized_end=3840, ) @@ -667,8 +783,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3128, - serialized_end=3249, + serialized_start=3842, + serialized_end=3963, ) @@ -698,8 +814,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3251, - serialized_end=3349, + serialized_start=3965, + serialized_end=4063, ) @@ -729,8 +845,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3351, - serialized_end=3454, + serialized_start=4065, + serialized_end=4168, ) @@ -788,8 +904,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3457, - serialized_end=3812, + serialized_start=4171, + serialized_end=4526, ) _KEYWORDINFO.fields_by_name['text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE @@ -806,7 +922,10 @@ _LISTINGDIMENSIONINFO.fields_by_name['hotel_state'].message_type = _HOTELSTATEINFO _LISTINGDIMENSIONINFO.fields_by_name['hotel_city'].message_type = _HOTELCITYINFO _LISTINGDIMENSIONINFO.fields_by_name['listing_custom_attribute'].message_type = _LISTINGCUSTOMATTRIBUTEINFO +_LISTINGDIMENSIONINFO.fields_by_name['product_channel'].message_type = _PRODUCTCHANNELINFO +_LISTINGDIMENSIONINFO.fields_by_name['product_channel_exclusivity'].message_type = _PRODUCTCHANNELEXCLUSIVITYINFO _LISTINGDIMENSIONINFO.fields_by_name['product_condition'].message_type = _PRODUCTCONDITIONINFO +_LISTINGDIMENSIONINFO.fields_by_name['product_offer_id'].message_type = _PRODUCTOFFERIDINFO _LISTINGDIMENSIONINFO.fields_by_name['product_type'].message_type = _PRODUCTTYPEINFO _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( _LISTINGDIMENSIONINFO.fields_by_name['listing_brand']) @@ -829,9 +948,18 @@ _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( _LISTINGDIMENSIONINFO.fields_by_name['listing_custom_attribute']) _LISTINGDIMENSIONINFO.fields_by_name['listing_custom_attribute'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] +_LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( + _LISTINGDIMENSIONINFO.fields_by_name['product_channel']) +_LISTINGDIMENSIONINFO.fields_by_name['product_channel'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] +_LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( + _LISTINGDIMENSIONINFO.fields_by_name['product_channel_exclusivity']) +_LISTINGDIMENSIONINFO.fields_by_name['product_channel_exclusivity'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( _LISTINGDIMENSIONINFO.fields_by_name['product_condition']) _LISTINGDIMENSIONINFO.fields_by_name['product_condition'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] +_LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( + _LISTINGDIMENSIONINFO.fields_by_name['product_offer_id']) +_LISTINGDIMENSIONINFO.fields_by_name['product_offer_id'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( _LISTINGDIMENSIONINFO.fields_by_name['product_type']) _LISTINGDIMENSIONINFO.fields_by_name['product_type'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] @@ -843,7 +971,10 @@ _HOTELCITYINFO.fields_by_name['city_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _LISTINGCUSTOMATTRIBUTEINFO.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _LISTINGCUSTOMATTRIBUTEINFO.fields_by_name['index'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_listing__custom__attribute__index__pb2._LISTINGCUSTOMATTRIBUTEINDEXENUM_LISTINGCUSTOMATTRIBUTEINDEX +_PRODUCTCHANNELINFO.fields_by_name['channel'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_product__channel__pb2._PRODUCTCHANNELENUM_PRODUCTCHANNEL +_PRODUCTCHANNELEXCLUSIVITYINFO.fields_by_name['channel_exclusivity'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_product__channel__exclusivity__pb2._PRODUCTCHANNELEXCLUSIVITYENUM_PRODUCTCHANNELEXCLUSIVITY _PRODUCTCONDITIONINFO.fields_by_name['condition'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_product__condition__pb2._PRODUCTCONDITIONENUM_PRODUCTCONDITION +_PRODUCTOFFERIDINFO.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _PRODUCTTYPEINFO.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _PRODUCTTYPEINFO.fields_by_name['level'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_product__type__level__pb2._PRODUCTTYPELEVELENUM_PRODUCTTYPELEVEL _HOTELDATESELECTIONTYPEINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_hotel__date__selection__type__pb2._HOTELDATESELECTIONTYPEENUM_HOTELDATESELECTIONTYPE @@ -870,7 +1001,10 @@ DESCRIPTOR.message_types_by_name['HotelStateInfo'] = _HOTELSTATEINFO DESCRIPTOR.message_types_by_name['HotelCityInfo'] = _HOTELCITYINFO DESCRIPTOR.message_types_by_name['ListingCustomAttributeInfo'] = _LISTINGCUSTOMATTRIBUTEINFO +DESCRIPTOR.message_types_by_name['ProductChannelInfo'] = _PRODUCTCHANNELINFO +DESCRIPTOR.message_types_by_name['ProductChannelExclusivityInfo'] = _PRODUCTCHANNELEXCLUSIVITYINFO DESCRIPTOR.message_types_by_name['ProductConditionInfo'] = _PRODUCTCONDITIONINFO +DESCRIPTOR.message_types_by_name['ProductOfferIdInfo'] = _PRODUCTOFFERIDINFO DESCRIPTOR.message_types_by_name['ProductTypeInfo'] = _PRODUCTTYPEINFO DESCRIPTOR.message_types_by_name['HotelDateSelectionTypeInfo'] = _HOTELDATESELECTIONTYPEINFO DESCRIPTOR.message_types_by_name['HotelAdvanceBookingWindowInfo'] = _HOTELADVANCEBOOKINGWINDOWINFO @@ -972,8 +1106,14 @@ City the hotel is located in. listing_custom_attribute: Listing custom attribute. + product_channel: + Locality of a product offer. + product_channel_exclusivity: + Availability of a product offer. product_condition: Condition of a product offer. + product_offer_id: + Id of a product offer. product_type: Type of a product offer. """, @@ -1088,6 +1228,36 @@ )) _sym_db.RegisterMessage(ListingCustomAttributeInfo) +ProductChannelInfo = _reflection.GeneratedProtocolMessageType('ProductChannelInfo', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTCHANNELINFO, + __module__ = 'google.ads.googleads_v0.proto.common.criteria_pb2' + , + __doc__ = """Locality of a product offer. + + + Attributes: + channel: + Value of the locality. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.ProductChannelInfo) + )) +_sym_db.RegisterMessage(ProductChannelInfo) + +ProductChannelExclusivityInfo = _reflection.GeneratedProtocolMessageType('ProductChannelExclusivityInfo', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTCHANNELEXCLUSIVITYINFO, + __module__ = 'google.ads.googleads_v0.proto.common.criteria_pb2' + , + __doc__ = """Availability of a product offer. + + + Attributes: + channel_exclusivity: + Value of the availability. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.ProductChannelExclusivityInfo) + )) +_sym_db.RegisterMessage(ProductChannelExclusivityInfo) + ProductConditionInfo = _reflection.GeneratedProtocolMessageType('ProductConditionInfo', (_message.Message,), dict( DESCRIPTOR = _PRODUCTCONDITIONINFO, __module__ = 'google.ads.googleads_v0.proto.common.criteria_pb2' @@ -1103,6 +1273,21 @@ )) _sym_db.RegisterMessage(ProductConditionInfo) +ProductOfferIdInfo = _reflection.GeneratedProtocolMessageType('ProductOfferIdInfo', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTOFFERIDINFO, + __module__ = 'google.ads.googleads_v0.proto.common.criteria_pb2' + , + __doc__ = """Id of a product offer. + + + Attributes: + value: + Value of the id. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.ProductOfferIdInfo) + )) +_sym_db.RegisterMessage(ProductOfferIdInfo) + ProductTypeInfo = _reflection.GeneratedProtocolMessageType('ProductTypeInfo', (_message.Message,), dict( DESCRIPTOR = _PRODUCTTYPEINFO, __module__ = 'google.ads.googleads_v0.proto.common.criteria_pb2' diff --git a/google/ads/google_ads/v0/proto/common/metrics_pb2.py b/google/ads/google_ads/v0/proto/common/metrics_pb2.py index d220edccd..017a6019e 100644 --- a/google/ads/google_ads/v0/proto/common/metrics_pb2.py +++ b/google/ads/google_ads/v0/proto/common/metrics_pb2.py @@ -20,7 +20,7 @@ name='google/ads/googleads_v0/proto/common/metrics.proto', package='google.ads.googleads.v0.common', syntax='proto3', - serialized_pb=_b('\n2google/ads/googleads_v0/proto/common/metrics.proto\x12\x1egoogle.ads.googleads.v0.common\x1a\x1egoogle/protobuf/wrappers.proto\"\xc6\x14\n\x07Metrics\x12L\n&all_conversions_from_interactions_rate\x18\x41 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12;\n\x15\x61ll_conversions_value\x18\x42 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x0f\x61ll_conversions\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x44\n\x1e\x61ll_conversions_value_per_cost\x18> \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12]\n7all_conversions_from_interactions_value_per_interaction\x18\x43 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x32\n\x0c\x61verage_cost\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x61verage_cpc\x18\t \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x61verage_cpm\x18\n \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x36\n\x10\x61verage_position\x18\r \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x62ounce_rate\x18\x0f \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12+\n\x06\x63licks\x18\x13 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12J\n$content_budget_lost_impression_share\x18\x14 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12>\n\x18\x63ontent_impression_share\x18\x15 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12H\n\"content_rank_lost_impression_share\x18\x16 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12H\n\"conversions_from_interactions_rate\x18\x45 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x37\n\x11\x63onversions_value\x18\x46 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12@\n\x1a\x63onversions_value_per_cost\x18G \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12Y\n3conversions_from_interactions_value_per_interaction\x18H \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x63onversions\x18\x19 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0b\x63ost_micros\x18\x1a \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12>\n\x18\x63ost_per_all_conversions\x18\x44 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x39\n\x13\x63ost_per_conversion\x18\x1c \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12>\n\x18\x63ross_device_conversions\x18\x1d \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12)\n\x03\x63tr\x18\x1e \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x0f\x65ngagement_rate\x18\x1f \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0b\x65ngagements\x18 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0bimpressions\x18% \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x10interaction_rate\x18& \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0cinteractions\x18\' \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x12invalid_click_rate\x18( \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\x0einvalid_clicks\x18) \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x14percent_new_visitors\x18* \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0bphone_calls\x18+ \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11phone_impressions\x18, \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x12phone_through_rate\x18- \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x32\n\x0crelative_ctr\x18. \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12I\n#search_budget_lost_impression_share\x18/ \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12I\n#search_exact_match_impression_share\x18\x31 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12=\n\x17search_impression_share\x18\x32 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12G\n!search_rank_lost_impression_share\x18\x33 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12?\n\x19value_per_all_conversions\x18\x34 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12:\n\x14value_per_conversion\x18\x35 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12=\n\x18view_through_conversions\x18< \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\xc2\x01\n\"com.google.ads.googleads.v0.commonB\x0cMetricsProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Commonb\x06proto3') + serialized_pb=_b('\n2google/ads/googleads_v0/proto/common/metrics.proto\x12\x1egoogle.ads.googleads.v0.common\x1a\x1egoogle/protobuf/wrappers.proto\"\xc1\x18\n\x07Metrics\x12L\n&all_conversions_from_interactions_rate\x18\x41 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12;\n\x15\x61ll_conversions_value\x18\x42 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x0f\x61ll_conversions\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x44\n\x1e\x61ll_conversions_value_per_cost\x18> \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12]\n7all_conversions_from_interactions_value_per_interaction\x18\x43 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x32\n\x0c\x61verage_cost\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x61verage_cpc\x18\t \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x61verage_cpm\x18\n \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x36\n\x10\x61verage_position\x18\r \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x62ounce_rate\x18\x0f \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12+\n\x06\x63licks\x18\x13 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12J\n$content_budget_lost_impression_share\x18\x14 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12>\n\x18\x63ontent_impression_share\x18\x15 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12P\n*conversion_last_received_request_date_time\x18I \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x45\n\x1f\x63onversion_last_conversion_date\x18J \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12H\n\"content_rank_lost_impression_share\x18\x16 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12H\n\"conversions_from_interactions_rate\x18\x45 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x37\n\x11\x63onversions_value\x18\x46 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12@\n\x1a\x63onversions_value_per_cost\x18G \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12Y\n3conversions_from_interactions_value_per_interaction\x18H \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x63onversions\x18\x19 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0b\x63ost_micros\x18\x1a \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12>\n\x18\x63ost_per_all_conversions\x18\x44 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x39\n\x13\x63ost_per_conversion\x18\x1c \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12>\n\x18\x63ross_device_conversions\x18\x1d \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12)\n\x03\x63tr\x18\x1e \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x0f\x65ngagement_rate\x18\x1f \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0b\x65ngagements\x18 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0bimpressions\x18% \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x10interaction_rate\x18& \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0cinteractions\x18\' \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x12invalid_click_rate\x18( \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\x0einvalid_clicks\x18) \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x14percent_new_visitors\x18* \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0bphone_calls\x18+ \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11phone_impressions\x18, \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x12phone_through_rate\x18- \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x32\n\x0crelative_ctr\x18. \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12I\n#search_budget_lost_impression_share\x18/ \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12I\n#search_exact_match_impression_share\x18\x31 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12=\n\x17search_impression_share\x18\x32 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12G\n!search_rank_lost_impression_share\x18\x33 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12?\n\x19value_per_all_conversions\x18\x34 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12:\n\x14value_per_conversion\x18\x35 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12=\n\x17video_quartile_100_rate\x18\x36 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12<\n\x16video_quartile_25_rate\x18\x37 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12<\n\x16video_quartile_50_rate\x18\x38 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12<\n\x16video_quartile_75_rate\x18\x39 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x0fvideo_view_rate\x18: \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0bvideo_views\x18; \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12=\n\x18view_through_conversions\x18< \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\xc2\x01\n\"com.google.ads.googleads.v0.commonB\x0cMetricsProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Commonb\x06proto3') , dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) @@ -126,210 +126,266 @@ is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='content_rank_lost_impression_share', full_name='google.ads.googleads.v0.common.Metrics.content_rank_lost_impression_share', index=13, + name='conversion_last_received_request_date_time', full_name='google.ads.googleads.v0.common.Metrics.conversion_last_received_request_date_time', index=13, + number=73, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_last_conversion_date', full_name='google.ads.googleads.v0.common.Metrics.conversion_last_conversion_date', index=14, + number=74, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='content_rank_lost_impression_share', full_name='google.ads.googleads.v0.common.Metrics.content_rank_lost_impression_share', index=15, number=22, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='conversions_from_interactions_rate', full_name='google.ads.googleads.v0.common.Metrics.conversions_from_interactions_rate', index=14, + name='conversions_from_interactions_rate', full_name='google.ads.googleads.v0.common.Metrics.conversions_from_interactions_rate', index=16, number=69, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='conversions_value', full_name='google.ads.googleads.v0.common.Metrics.conversions_value', index=15, + name='conversions_value', full_name='google.ads.googleads.v0.common.Metrics.conversions_value', index=17, number=70, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='conversions_value_per_cost', full_name='google.ads.googleads.v0.common.Metrics.conversions_value_per_cost', index=16, + name='conversions_value_per_cost', full_name='google.ads.googleads.v0.common.Metrics.conversions_value_per_cost', index=18, number=71, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='conversions_from_interactions_value_per_interaction', full_name='google.ads.googleads.v0.common.Metrics.conversions_from_interactions_value_per_interaction', index=17, + name='conversions_from_interactions_value_per_interaction', full_name='google.ads.googleads.v0.common.Metrics.conversions_from_interactions_value_per_interaction', index=19, number=72, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='conversions', full_name='google.ads.googleads.v0.common.Metrics.conversions', index=18, + name='conversions', full_name='google.ads.googleads.v0.common.Metrics.conversions', index=20, number=25, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='cost_micros', full_name='google.ads.googleads.v0.common.Metrics.cost_micros', index=19, + name='cost_micros', full_name='google.ads.googleads.v0.common.Metrics.cost_micros', index=21, number=26, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='cost_per_all_conversions', full_name='google.ads.googleads.v0.common.Metrics.cost_per_all_conversions', index=20, + name='cost_per_all_conversions', full_name='google.ads.googleads.v0.common.Metrics.cost_per_all_conversions', index=22, number=68, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='cost_per_conversion', full_name='google.ads.googleads.v0.common.Metrics.cost_per_conversion', index=21, + name='cost_per_conversion', full_name='google.ads.googleads.v0.common.Metrics.cost_per_conversion', index=23, number=28, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='cross_device_conversions', full_name='google.ads.googleads.v0.common.Metrics.cross_device_conversions', index=22, + name='cross_device_conversions', full_name='google.ads.googleads.v0.common.Metrics.cross_device_conversions', index=24, number=29, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ctr', full_name='google.ads.googleads.v0.common.Metrics.ctr', index=23, + name='ctr', full_name='google.ads.googleads.v0.common.Metrics.ctr', index=25, number=30, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='engagement_rate', full_name='google.ads.googleads.v0.common.Metrics.engagement_rate', index=24, + name='engagement_rate', full_name='google.ads.googleads.v0.common.Metrics.engagement_rate', index=26, number=31, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='engagements', full_name='google.ads.googleads.v0.common.Metrics.engagements', index=25, + name='engagements', full_name='google.ads.googleads.v0.common.Metrics.engagements', index=27, number=32, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='impressions', full_name='google.ads.googleads.v0.common.Metrics.impressions', index=26, + name='impressions', full_name='google.ads.googleads.v0.common.Metrics.impressions', index=28, number=37, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='interaction_rate', full_name='google.ads.googleads.v0.common.Metrics.interaction_rate', index=27, + name='interaction_rate', full_name='google.ads.googleads.v0.common.Metrics.interaction_rate', index=29, number=38, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='interactions', full_name='google.ads.googleads.v0.common.Metrics.interactions', index=28, + name='interactions', full_name='google.ads.googleads.v0.common.Metrics.interactions', index=30, number=39, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='invalid_click_rate', full_name='google.ads.googleads.v0.common.Metrics.invalid_click_rate', index=29, + name='invalid_click_rate', full_name='google.ads.googleads.v0.common.Metrics.invalid_click_rate', index=31, number=40, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='invalid_clicks', full_name='google.ads.googleads.v0.common.Metrics.invalid_clicks', index=30, + name='invalid_clicks', full_name='google.ads.googleads.v0.common.Metrics.invalid_clicks', index=32, number=41, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='percent_new_visitors', full_name='google.ads.googleads.v0.common.Metrics.percent_new_visitors', index=31, + name='percent_new_visitors', full_name='google.ads.googleads.v0.common.Metrics.percent_new_visitors', index=33, number=42, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='phone_calls', full_name='google.ads.googleads.v0.common.Metrics.phone_calls', index=32, + name='phone_calls', full_name='google.ads.googleads.v0.common.Metrics.phone_calls', index=34, number=43, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='phone_impressions', full_name='google.ads.googleads.v0.common.Metrics.phone_impressions', index=33, + name='phone_impressions', full_name='google.ads.googleads.v0.common.Metrics.phone_impressions', index=35, number=44, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='phone_through_rate', full_name='google.ads.googleads.v0.common.Metrics.phone_through_rate', index=34, + name='phone_through_rate', full_name='google.ads.googleads.v0.common.Metrics.phone_through_rate', index=36, number=45, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='relative_ctr', full_name='google.ads.googleads.v0.common.Metrics.relative_ctr', index=35, + name='relative_ctr', full_name='google.ads.googleads.v0.common.Metrics.relative_ctr', index=37, number=46, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='search_budget_lost_impression_share', full_name='google.ads.googleads.v0.common.Metrics.search_budget_lost_impression_share', index=36, + name='search_budget_lost_impression_share', full_name='google.ads.googleads.v0.common.Metrics.search_budget_lost_impression_share', index=38, number=47, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='search_exact_match_impression_share', full_name='google.ads.googleads.v0.common.Metrics.search_exact_match_impression_share', index=37, + name='search_exact_match_impression_share', full_name='google.ads.googleads.v0.common.Metrics.search_exact_match_impression_share', index=39, number=49, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='search_impression_share', full_name='google.ads.googleads.v0.common.Metrics.search_impression_share', index=38, + name='search_impression_share', full_name='google.ads.googleads.v0.common.Metrics.search_impression_share', index=40, number=50, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='search_rank_lost_impression_share', full_name='google.ads.googleads.v0.common.Metrics.search_rank_lost_impression_share', index=39, + name='search_rank_lost_impression_share', full_name='google.ads.googleads.v0.common.Metrics.search_rank_lost_impression_share', index=41, number=51, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='value_per_all_conversions', full_name='google.ads.googleads.v0.common.Metrics.value_per_all_conversions', index=40, + name='value_per_all_conversions', full_name='google.ads.googleads.v0.common.Metrics.value_per_all_conversions', index=42, number=52, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='value_per_conversion', full_name='google.ads.googleads.v0.common.Metrics.value_per_conversion', index=41, + name='value_per_conversion', full_name='google.ads.googleads.v0.common.Metrics.value_per_conversion', index=43, number=53, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='view_through_conversions', full_name='google.ads.googleads.v0.common.Metrics.view_through_conversions', index=42, + name='video_quartile_100_rate', full_name='google.ads.googleads.v0.common.Metrics.video_quartile_100_rate', index=44, + number=54, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='video_quartile_25_rate', full_name='google.ads.googleads.v0.common.Metrics.video_quartile_25_rate', index=45, + number=55, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='video_quartile_50_rate', full_name='google.ads.googleads.v0.common.Metrics.video_quartile_50_rate', index=46, + number=56, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='video_quartile_75_rate', full_name='google.ads.googleads.v0.common.Metrics.video_quartile_75_rate', index=47, + number=57, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='video_view_rate', full_name='google.ads.googleads.v0.common.Metrics.video_view_rate', index=48, + number=58, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='video_views', full_name='google.ads.googleads.v0.common.Metrics.video_views', index=49, + number=59, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='view_through_conversions', full_name='google.ads.googleads.v0.common.Metrics.view_through_conversions', index=50, number=60, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -348,7 +404,7 @@ oneofs=[ ], serialized_start=119, - serialized_end=2749, + serialized_end=3256, ) _METRICS.fields_by_name['all_conversions_from_interactions_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE @@ -364,6 +420,8 @@ _METRICS.fields_by_name['clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE _METRICS.fields_by_name['content_budget_lost_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE _METRICS.fields_by_name['content_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['conversion_last_received_request_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_METRICS.fields_by_name['conversion_last_conversion_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _METRICS.fields_by_name['content_rank_lost_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE _METRICS.fields_by_name['conversions_from_interactions_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE _METRICS.fields_by_name['conversions_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE @@ -393,6 +451,12 @@ _METRICS.fields_by_name['search_rank_lost_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE _METRICS.fields_by_name['value_per_all_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE _METRICS.fields_by_name['value_per_conversion'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['video_quartile_100_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['video_quartile_25_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['video_quartile_50_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['video_quartile_75_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['video_view_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['video_views'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE _METRICS.fields_by_name['view_through_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE DESCRIPTOR.message_types_by_name['Metrics'] = _METRICS _sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -448,6 +512,16 @@ by the estimated number of impressions you were eligible to receive. Note: Content impression share is reported in the range of 0.1 to 1. Any value below 0.1 is reported as 0.0999. + conversion_last_received_request_date_time: + The last date/time a conversion tag for this conversion action + successfully fired and was seen by Google Ads. This firing + event may not have been the result of an attributable + conversion (e.g. because the tag was fired from a browser that + did not previously click an ad from an appropriate + advertiser). The date/time is in the customer's time zone. + conversion_last_conversion_date: + The date of the most recent conversion for this conversion + action. The date is in the customer's time zone. content_rank_lost_impression_share: The estimated percentage of impressions on the Display Network that your ads didn't receive due to poor Ad Rank. Note: @@ -554,6 +628,24 @@ conversions. value_per_conversion: The value of conversions divided by the number of conversions. + video_quartile_100_rate: + Percentage of impressions where the viewer watched all of your + video. + video_quartile_25_rate: + Percentage of impressions where the viewer watched 25% of your + video. + video_quartile_50_rate: + Percentage of impressions where the viewer watched 50% of your + video. + video_quartile_75_rate: + Percentage of impressions where the viewer watched 75% of your + video. + video_view_rate: + The number of views your TrueView video ad receives divided by + its number of impressions, including thumbnail impressions for + TrueView in-display ads. + video_views: + The number of times your video ads were viewed. view_through_conversions: The total number of view-through conversions. These happen when a customer sees an image or rich media ad, then later diff --git a/google/ads/google_ads/v0/proto/common/policy_pb2.py b/google/ads/google_ads/v0/proto/common/policy_pb2.py index 84b1b7475..7296228ed 100644 --- a/google/ads/google_ads/v0/proto/common/policy_pb2.py +++ b/google/ads/google_ads/v0/proto/common/policy_pb2.py @@ -22,7 +22,7 @@ name='google/ads/googleads_v0/proto/common/policy.proto', package='google.ads.googleads.v0.common', syntax='proto3', - serialized_pb=_b('\n1google/ads/googleads_v0/proto/common/policy.proto\x12\x1egoogle.ads.googleads.v0.common\x1a\x41google/ads/googleads_v0/proto/enums/policy_topic_entry_type.proto\x1a]google/ads/googleads_v0/proto/enums/policy_topic_evidence_destination_mismatch_url_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\"}\n\x12PolicyViolationKey\x12\x31\n\x0bpolicy_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0eviolating_text\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xaf\x02\n\x10PolicyTopicEntry\x12+\n\x05topic\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Z\n\x04type\x18\x02 \x01(\x0e\x32L.google.ads.googleads.v0.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType\x12\x46\n\tevidences\x18\x03 \x03(\x0b\x32\x33.google.ads.googleads.v0.common.PolicyTopicEvidence\x12J\n\x0b\x63onstraints\x18\x04 \x03(\x0b\x32\x35.google.ads.googleads.v0.common.PolicyTopicConstraint\"\xfa\x06\n\x13PolicyTopicEvidence\x12\x30\n\thttp_code\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueH\x00\x12W\n\x0cwebsite_list\x18\x03 \x01(\x0b\x32?.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteListH\x00\x12Q\n\ttext_list\x18\x04 \x01(\x0b\x32<.google.ads.googleads.v0.common.PolicyTopicEvidence.TextListH\x00\x12\x35\n\rlanguage_code\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12h\n\x15\x64\x65stination_text_list\x18\x06 \x01(\x0b\x32G.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationTextListH\x00\x12g\n\x14\x64\x65stination_mismatch\x18\x07 \x01(\x0b\x32G.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationMismatchH\x00\x1a\x37\n\x08TextList\x12+\n\x05texts\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x1a=\n\x0bWebsiteList\x12.\n\x08websites\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x1aN\n\x13\x44\x65stinationTextList\x12\x37\n\x11\x64\x65stination_texts\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x1a\xa9\x01\n\x13\x44\x65stinationMismatch\x12\x91\x01\n\turl_types\x18\x01 \x03(\x0e\x32~.google.ads.googleads.v0.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.PolicyTopicEvidenceDestinationMismatchUrlTypeB\x07\n\x05value\"\x93\x06\n\x15PolicyTopicConstraint\x12n\n\x17\x63ountry_constraint_list\x18\x01 \x01(\x0b\x32K.google.ads.googleads.v0.common.PolicyTopicConstraint.CountryConstraintListH\x00\x12g\n\x13reseller_constraint\x18\x02 \x01(\x0b\x32H.google.ads.googleads.v0.common.PolicyTopicConstraint.ResellerConstraintH\x00\x12z\n#certificate_missing_in_country_list\x18\x03 \x01(\x0b\x32K.google.ads.googleads.v0.common.PolicyTopicConstraint.CountryConstraintListH\x00\x12\x82\x01\n+certificate_domain_mismatch_in_country_list\x18\x04 \x01(\x0b\x32K.google.ads.googleads.v0.common.PolicyTopicConstraint.CountryConstraintListH\x00\x1a\xb2\x01\n\x15\x43ountryConstraintList\x12=\n\x18total_targeted_countries\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12Z\n\tcountries\x18\x02 \x03(\x0b\x32G.google.ads.googleads.v0.common.PolicyTopicConstraint.CountryConstraint\x1a\x14\n\x12ResellerConstraint\x1aL\n\x11\x43ountryConstraint\x12\x37\n\x11\x63ountry_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x07\n\x05valueB\xc1\x01\n\"com.google.ads.googleads.v0.commonB\x0bPolicyProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Commonb\x06proto3') + serialized_pb=_b('\n1google/ads/googleads_v0/proto/common/policy.proto\x12\x1egoogle.ads.googleads.v0.common\x1a\x41google/ads/googleads_v0/proto/enums/policy_topic_entry_type.proto\x1a]google/ads/googleads_v0/proto/enums/policy_topic_evidence_destination_mismatch_url_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\"}\n\x12PolicyViolationKey\x12\x31\n\x0bpolicy_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0eviolating_text\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"Z\n\x19PolicyValidationParameter\x12=\n\x17ignorable_policy_topics\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\"\xaf\x02\n\x10PolicyTopicEntry\x12+\n\x05topic\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Z\n\x04type\x18\x02 \x01(\x0e\x32L.google.ads.googleads.v0.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType\x12\x46\n\tevidences\x18\x03 \x03(\x0b\x32\x33.google.ads.googleads.v0.common.PolicyTopicEvidence\x12J\n\x0b\x63onstraints\x18\x04 \x03(\x0b\x32\x35.google.ads.googleads.v0.common.PolicyTopicConstraint\"\xfa\x06\n\x13PolicyTopicEvidence\x12\x30\n\thttp_code\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueH\x00\x12W\n\x0cwebsite_list\x18\x03 \x01(\x0b\x32?.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteListH\x00\x12Q\n\ttext_list\x18\x04 \x01(\x0b\x32<.google.ads.googleads.v0.common.PolicyTopicEvidence.TextListH\x00\x12\x35\n\rlanguage_code\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12h\n\x15\x64\x65stination_text_list\x18\x06 \x01(\x0b\x32G.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationTextListH\x00\x12g\n\x14\x64\x65stination_mismatch\x18\x07 \x01(\x0b\x32G.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationMismatchH\x00\x1a\x37\n\x08TextList\x12+\n\x05texts\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x1a=\n\x0bWebsiteList\x12.\n\x08websites\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x1aN\n\x13\x44\x65stinationTextList\x12\x37\n\x11\x64\x65stination_texts\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x1a\xa9\x01\n\x13\x44\x65stinationMismatch\x12\x91\x01\n\turl_types\x18\x01 \x03(\x0e\x32~.google.ads.googleads.v0.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.PolicyTopicEvidenceDestinationMismatchUrlTypeB\x07\n\x05value\"\x93\x06\n\x15PolicyTopicConstraint\x12n\n\x17\x63ountry_constraint_list\x18\x01 \x01(\x0b\x32K.google.ads.googleads.v0.common.PolicyTopicConstraint.CountryConstraintListH\x00\x12g\n\x13reseller_constraint\x18\x02 \x01(\x0b\x32H.google.ads.googleads.v0.common.PolicyTopicConstraint.ResellerConstraintH\x00\x12z\n#certificate_missing_in_country_list\x18\x03 \x01(\x0b\x32K.google.ads.googleads.v0.common.PolicyTopicConstraint.CountryConstraintListH\x00\x12\x82\x01\n+certificate_domain_mismatch_in_country_list\x18\x04 \x01(\x0b\x32K.google.ads.googleads.v0.common.PolicyTopicConstraint.CountryConstraintListH\x00\x1a\xb2\x01\n\x15\x43ountryConstraintList\x12=\n\x18total_targeted_countries\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12Z\n\tcountries\x18\x02 \x03(\x0b\x32G.google.ads.googleads.v0.common.PolicyTopicConstraint.CountryConstraint\x1a\x14\n\x12ResellerConstraint\x1aL\n\x11\x43ountryConstraint\x12\x37\n\x11\x63ountry_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x07\n\x05valueB\xc1\x01\n\"com.google.ads.googleads.v0.commonB\x0bPolicyProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Commonb\x06proto3') , dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_policy__topic__entry__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_policy__topic__evidence__destination__mismatch__url__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) @@ -67,6 +67,37 @@ ) +_POLICYVALIDATIONPARAMETER = _descriptor.Descriptor( + name='PolicyValidationParameter', + full_name='google.ads.googleads.v0.common.PolicyValidationParameter', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='ignorable_policy_topics', full_name='google.ads.googleads.v0.common.PolicyValidationParameter.ignorable_policy_topics', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=406, + serialized_end=496, +) + + _POLICYTOPICENTRY = _descriptor.Descriptor( name='PolicyTopicEntry', full_name='google.ads.googleads.v0.common.PolicyTopicEntry', @@ -114,8 +145,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=407, - serialized_end=710, + serialized_start=499, + serialized_end=802, ) @@ -145,8 +176,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1224, - serialized_end=1279, + serialized_start=1316, + serialized_end=1371, ) _POLICYTOPICEVIDENCE_WEBSITELIST = _descriptor.Descriptor( @@ -175,8 +206,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1281, - serialized_end=1342, + serialized_start=1373, + serialized_end=1434, ) _POLICYTOPICEVIDENCE_DESTINATIONTEXTLIST = _descriptor.Descriptor( @@ -205,8 +236,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1344, - serialized_end=1422, + serialized_start=1436, + serialized_end=1514, ) _POLICYTOPICEVIDENCE_DESTINATIONMISMATCH = _descriptor.Descriptor( @@ -235,8 +266,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1425, - serialized_end=1594, + serialized_start=1517, + serialized_end=1686, ) _POLICYTOPICEVIDENCE = _descriptor.Descriptor( @@ -303,8 +334,8 @@ name='value', full_name='google.ads.googleads.v0.common.PolicyTopicEvidence.value', index=0, containing_type=None, fields=[]), ], - serialized_start=713, - serialized_end=1603, + serialized_start=805, + serialized_end=1695, ) @@ -341,8 +372,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2106, - serialized_end=2284, + serialized_start=2198, + serialized_end=2376, ) _POLICYTOPICCONSTRAINT_RESELLERCONSTRAINT = _descriptor.Descriptor( @@ -364,8 +395,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2286, - serialized_end=2306, + serialized_start=2378, + serialized_end=2398, ) _POLICYTOPICCONSTRAINT_COUNTRYCONSTRAINT = _descriptor.Descriptor( @@ -394,8 +425,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2308, - serialized_end=2384, + serialized_start=2400, + serialized_end=2476, ) _POLICYTOPICCONSTRAINT = _descriptor.Descriptor( @@ -448,12 +479,13 @@ name='value', full_name='google.ads.googleads.v0.common.PolicyTopicConstraint.value', index=0, containing_type=None, fields=[]), ], - serialized_start=1606, - serialized_end=2393, + serialized_start=1698, + serialized_end=2485, ) _POLICYVIOLATIONKEY.fields_by_name['policy_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _POLICYVIOLATIONKEY.fields_by_name['violating_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_POLICYVALIDATIONPARAMETER.fields_by_name['ignorable_policy_topics'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _POLICYTOPICENTRY.fields_by_name['topic'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _POLICYTOPICENTRY.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_policy__topic__entry__type__pb2._POLICYTOPICENTRYTYPEENUM_POLICYTOPICENTRYTYPE _POLICYTOPICENTRY.fields_by_name['evidences'].message_type = _POLICYTOPICEVIDENCE @@ -513,6 +545,7 @@ _POLICYTOPICCONSTRAINT.fields_by_name['certificate_domain_mismatch_in_country_list']) _POLICYTOPICCONSTRAINT.fields_by_name['certificate_domain_mismatch_in_country_list'].containing_oneof = _POLICYTOPICCONSTRAINT.oneofs_by_name['value'] DESCRIPTOR.message_types_by_name['PolicyViolationKey'] = _POLICYVIOLATIONKEY +DESCRIPTOR.message_types_by_name['PolicyValidationParameter'] = _POLICYVALIDATIONPARAMETER DESCRIPTOR.message_types_by_name['PolicyTopicEntry'] = _POLICYTOPICENTRY DESCRIPTOR.message_types_by_name['PolicyTopicEvidence'] = _POLICYTOPICEVIDENCE DESCRIPTOR.message_types_by_name['PolicyTopicConstraint'] = _POLICYTOPICCONSTRAINT @@ -540,6 +573,28 @@ )) _sym_db.RegisterMessage(PolicyViolationKey) +PolicyValidationParameter = _reflection.GeneratedProtocolMessageType('PolicyValidationParameter', (_message.Message,), dict( + DESCRIPTOR = _POLICYVALIDATIONPARAMETER, + __module__ = 'google.ads.googleads_v0.proto.common.policy_pb2' + , + __doc__ = """Parameter for controlling how policy checking is done. + + + Attributes: + ignorable_policy_topics: + The list of policy topics that should not cause a + PolicyFindingError to be reported. This field is currently + only compatible with Enhanced Text Ad. It corresponds to the + PolicyTopicEntry.topic field. Resources violating these + policies will be saved, but will not be eligible to serve. + They may begin serving at a later time due to a change in + policies, re-review of the resource, or a change in advertiser + certificates. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.PolicyValidationParameter) + )) +_sym_db.RegisterMessage(PolicyValidationParameter) + PolicyTopicEntry = _reflection.GeneratedProtocolMessageType('PolicyTopicEntry', (_message.Message,), dict( DESCRIPTOR = _POLICYTOPICENTRY, __module__ = 'google.ads.googleads_v0.proto.common.policy_pb2' diff --git a/google/ads/google_ads/v0/proto/enums/account_budget_proposal_status_pb2.py b/google/ads/google_ads/v0/proto/enums/account_budget_proposal_status_pb2.py new file mode 100644 index 000000000..a57a16986 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/account_budget_proposal_status_pb2.py @@ -0,0 +1,111 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/account_budget_proposal_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/account_budget_proposal_status.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\nHgoogle/ads/googleads_v0/proto/enums/account_budget_proposal_status.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\xaa\x01\n\x1f\x41\x63\x63ountBudgetProposalStatusEnum\"\x86\x01\n\x1b\x41\x63\x63ountBudgetProposalStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x11\n\rAPPROVED_HELD\x10\x03\x12\x0c\n\x08\x41PPROVED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\x0c\n\x08REJECTED\x10\x06\x42\xd1\x01\n!com.google.ads.googleads.v0.enumsB AccountBudgetProposalStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_ACCOUNTBUDGETPROPOSALSTATUSENUM_ACCOUNTBUDGETPROPOSALSTATUS = _descriptor.EnumDescriptor( + name='AccountBudgetProposalStatus', + full_name='google.ads.googleads.v0.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PENDING', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APPROVED_HELD', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APPROVED', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANCELLED', index=5, number=5, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REJECTED', index=6, number=6, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=144, + serialized_end=278, +) +_sym_db.RegisterEnumDescriptor(_ACCOUNTBUDGETPROPOSALSTATUSENUM_ACCOUNTBUDGETPROPOSALSTATUS) + + +_ACCOUNTBUDGETPROPOSALSTATUSENUM = _descriptor.Descriptor( + name='AccountBudgetProposalStatusEnum', + full_name='google.ads.googleads.v0.enums.AccountBudgetProposalStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ACCOUNTBUDGETPROPOSALSTATUSENUM_ACCOUNTBUDGETPROPOSALSTATUS, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=108, + serialized_end=278, +) + +_ACCOUNTBUDGETPROPOSALSTATUSENUM_ACCOUNTBUDGETPROPOSALSTATUS.containing_type = _ACCOUNTBUDGETPROPOSALSTATUSENUM +DESCRIPTOR.message_types_by_name['AccountBudgetProposalStatusEnum'] = _ACCOUNTBUDGETPROPOSALSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AccountBudgetProposalStatusEnum = _reflection.GeneratedProtocolMessageType('AccountBudgetProposalStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _ACCOUNTBUDGETPROPOSALSTATUSENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.account_budget_proposal_status_pb2' + , + __doc__ = """Message describing AccountBudgetProposal statuses. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.AccountBudgetProposalStatusEnum) + )) +_sym_db.RegisterMessage(AccountBudgetProposalStatusEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB AccountBudgetProposalStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/account_budget_proposal_status_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/account_budget_proposal_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/account_budget_proposal_status_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/account_budget_proposal_type_pb2.py b/google/ads/google_ads/v0/proto/enums/account_budget_proposal_type_pb2.py new file mode 100644 index 000000000..dcff61368 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/account_budget_proposal_type_pb2.py @@ -0,0 +1,107 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/account_budget_proposal_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/account_budget_proposal_type.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\nFgoogle/ads/googleads_v0/proto/enums/account_budget_proposal_type.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\x87\x01\n\x1d\x41\x63\x63ountBudgetProposalTypeEnum\"f\n\x19\x41\x63\x63ountBudgetProposalType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x43REATE\x10\x02\x12\n\n\x06UPDATE\x10\x03\x12\x07\n\x03\x45ND\x10\x04\x12\n\n\x06REMOVE\x10\x05\x42\xcf\x01\n!com.google.ads.googleads.v0.enumsB\x1e\x41\x63\x63ountBudgetProposalTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_ACCOUNTBUDGETPROPOSALTYPEENUM_ACCOUNTBUDGETPROPOSALTYPE = _descriptor.EnumDescriptor( + name='AccountBudgetProposalType', + full_name='google.ads.googleads.v0.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CREATE', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UPDATE', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='END', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVE', index=5, number=5, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=139, + serialized_end=241, +) +_sym_db.RegisterEnumDescriptor(_ACCOUNTBUDGETPROPOSALTYPEENUM_ACCOUNTBUDGETPROPOSALTYPE) + + +_ACCOUNTBUDGETPROPOSALTYPEENUM = _descriptor.Descriptor( + name='AccountBudgetProposalTypeEnum', + full_name='google.ads.googleads.v0.enums.AccountBudgetProposalTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ACCOUNTBUDGETPROPOSALTYPEENUM_ACCOUNTBUDGETPROPOSALTYPE, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=106, + serialized_end=241, +) + +_ACCOUNTBUDGETPROPOSALTYPEENUM_ACCOUNTBUDGETPROPOSALTYPE.containing_type = _ACCOUNTBUDGETPROPOSALTYPEENUM +DESCRIPTOR.message_types_by_name['AccountBudgetProposalTypeEnum'] = _ACCOUNTBUDGETPROPOSALTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AccountBudgetProposalTypeEnum = _reflection.GeneratedProtocolMessageType('AccountBudgetProposalTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _ACCOUNTBUDGETPROPOSALTYPEENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.account_budget_proposal_type_pb2' + , + __doc__ = """Message describing AccountBudgetProposal types. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.AccountBudgetProposalTypeEnum) + )) +_sym_db.RegisterMessage(AccountBudgetProposalTypeEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB\036AccountBudgetProposalTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/account_budget_proposal_type_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/account_budget_proposal_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/account_budget_proposal_type_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/ad_group_type_pb2.py b/google/ads/google_ads/v0/proto/enums/ad_group_type_pb2.py index 1f29dd461..6b11e4d6a 100644 --- a/google/ads/google_ads/v0/proto/enums/ad_group_type_pb2.py +++ b/google/ads/google_ads/v0/proto/enums/ad_group_type_pb2.py @@ -19,7 +19,7 @@ name='google/ads/googleads_v0/proto/enums/ad_group_type.proto', package='google.ads.googleads.v0.enums', syntax='proto3', - serialized_pb=_b('\n7google/ads/googleads_v0/proto/enums/ad_group_type.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\x90\x01\n\x0f\x41\x64GroupTypeEnum\"}\n\x0b\x41\x64GroupType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fSEARCH_STANDARD\x10\x02\x12\x14\n\x10\x44ISPLAY_STANDARD\x10\x03\x12\r\n\tHOTEL_ADS\x10\x06\x12\x16\n\x12SHOPPING_SMART_ADS\x10\x07\x42\xc1\x01\n!com.google.ads.googleads.v0.enumsB\x10\x41\x64GroupTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') + serialized_pb=_b('\n7google/ads/googleads_v0/proto/enums/ad_group_type.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\xbd\x01\n\x0f\x41\x64GroupTypeEnum\"\xa9\x01\n\x0b\x41\x64GroupType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fSEARCH_STANDARD\x10\x02\x12\x14\n\x10\x44ISPLAY_STANDARD\x10\x03\x12\x18\n\x14SHOPPING_PRODUCT_ADS\x10\x04\x12\r\n\tHOTEL_ADS\x10\x06\x12\x16\n\x12SHOPPING_SMART_ADS\x10\x07\x12\x10\n\x0cVIDEO_BUMPER\x10\x08\x42\xc1\x01\n!com.google.ads.googleads.v0.enumsB\x10\x41\x64GroupTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') ) @@ -47,18 +47,26 @@ options=None, type=None), _descriptor.EnumValueDescriptor( - name='HOTEL_ADS', index=4, number=6, + name='SHOPPING_PRODUCT_ADS', index=4, number=4, options=None, type=None), _descriptor.EnumValueDescriptor( - name='SHOPPING_SMART_ADS', index=5, number=7, + name='HOTEL_ADS', index=5, number=6, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SHOPPING_SMART_ADS', index=6, number=7, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VIDEO_BUMPER', index=7, number=8, options=None, type=None), ], containing_type=None, options=None, - serialized_start=110, - serialized_end=235, + serialized_start=111, + serialized_end=280, ) _sym_db.RegisterEnumDescriptor(_ADGROUPTYPEENUM_ADGROUPTYPE) @@ -84,7 +92,7 @@ oneofs=[ ], serialized_start=91, - serialized_end=235, + serialized_end=280, ) _ADGROUPTYPEENUM_ADGROUPTYPE.containing_type = _ADGROUPTYPEENUM diff --git a/google/ads/google_ads/v0/proto/enums/ad_type_pb2.py b/google/ads/google_ads/v0/proto/enums/ad_type_pb2.py index 6aa060462..699bfe204 100644 --- a/google/ads/google_ads/v0/proto/enums/ad_type_pb2.py +++ b/google/ads/google_ads/v0/proto/enums/ad_type_pb2.py @@ -19,7 +19,7 @@ name='google/ads/googleads_v0/proto/enums/ad_type.proto', package='google.ads.googleads.v0.enums', syntax='proto3', - serialized_pb=_b('\n1google/ads/googleads_v0/proto/enums/ad_type.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\xe1\x01\n\nAdTypeEnum\"\xd2\x01\n\x06\x41\x64Type\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07TEXT_AD\x10\x02\x12\x14\n\x10\x45XPANDED_TEXT_AD\x10\x03\x12\x15\n\x11\x44YNAMIC_SEARCH_AD\x10\x04\x12\x19\n\x15RESPONSIVE_DISPLAY_AD\x10\x05\x12\x10\n\x0c\x43\x41LL_ONLY_AD\x10\x06\x12\x1e\n\x1a\x45XPANDED_DYNAMIC_SEARCH_AD\x10\x07\x12\x0c\n\x08HOTEL_AD\x10\x08\x12\x15\n\x11SHOPPING_SMART_AD\x10\tB\xbc\x01\n!com.google.ads.googleads.v0.enumsB\x0b\x41\x64TypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') + serialized_pb=_b('\n1google/ads/googleads_v0/proto/enums/ad_type.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\xfa\x01\n\nAdTypeEnum\"\xeb\x01\n\x06\x41\x64Type\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07TEXT_AD\x10\x02\x12\x14\n\x10\x45XPANDED_TEXT_AD\x10\x03\x12\x15\n\x11\x44YNAMIC_SEARCH_AD\x10\x04\x12\x19\n\x15RESPONSIVE_DISPLAY_AD\x10\x05\x12\x10\n\x0c\x43\x41LL_ONLY_AD\x10\x06\x12\x1e\n\x1a\x45XPANDED_DYNAMIC_SEARCH_AD\x10\x07\x12\x0c\n\x08HOTEL_AD\x10\x08\x12\x15\n\x11SHOPPING_SMART_AD\x10\t\x12\x17\n\x13SHOPPING_PRODUCT_AD\x10\nB\xbc\x01\n!com.google.ads.googleads.v0.enumsB\x0b\x41\x64TypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') ) @@ -70,11 +70,15 @@ name='SHOPPING_SMART_AD', index=9, number=9, options=None, type=None), + _descriptor.EnumValueDescriptor( + name='SHOPPING_PRODUCT_AD', index=10, number=10, + options=None, + type=None), ], containing_type=None, options=None, serialized_start=100, - serialized_end=310, + serialized_end=335, ) _sym_db.RegisterEnumDescriptor(_ADTYPEENUM_ADTYPE) @@ -100,7 +104,7 @@ oneofs=[ ], serialized_start=85, - serialized_end=310, + serialized_end=335, ) _ADTYPEENUM_ADTYPE.containing_type = _ADTYPEENUM diff --git a/google/ads/google_ads/v0/proto/enums/advertising_channel_type_pb2.py b/google/ads/google_ads/v0/proto/enums/advertising_channel_type_pb2.py index dcbe0b272..d82a97c38 100644 --- a/google/ads/google_ads/v0/proto/enums/advertising_channel_type_pb2.py +++ b/google/ads/google_ads/v0/proto/enums/advertising_channel_type_pb2.py @@ -19,7 +19,7 @@ name='google/ads/googleads_v0/proto/enums/advertising_channel_type.proto', package='google.ads.googleads.v0.enums', syntax='proto3', - serialized_pb=_b('\nBgoogle/ads/googleads_v0/proto/enums/advertising_channel_type.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\x86\x01\n\x1a\x41\x64vertisingChannelTypeEnum\"h\n\x16\x41\x64vertisingChannelType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06SEARCH\x10\x02\x12\x0b\n\x07\x44ISPLAY\x10\x03\x12\x0c\n\x08SHOPPING\x10\x04\x12\t\n\x05HOTEL\x10\x05\x42\xcc\x01\n!com.google.ads.googleads.v0.enumsB\x1b\x41\x64vertisingChannelTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') + serialized_pb=_b('\nBgoogle/ads/googleads_v0/proto/enums/advertising_channel_type.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\x91\x01\n\x1a\x41\x64vertisingChannelTypeEnum\"s\n\x16\x41\x64vertisingChannelType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06SEARCH\x10\x02\x12\x0b\n\x07\x44ISPLAY\x10\x03\x12\x0c\n\x08SHOPPING\x10\x04\x12\t\n\x05HOTEL\x10\x05\x12\t\n\x05VIDEO\x10\x06\x42\xcc\x01\n!com.google.ads.googleads.v0.enumsB\x1b\x41\x64vertisingChannelTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') ) @@ -54,11 +54,15 @@ name='HOTEL', index=5, number=5, options=None, type=None), + _descriptor.EnumValueDescriptor( + name='VIDEO', index=6, number=6, + options=None, + type=None), ], containing_type=None, options=None, serialized_start=132, - serialized_end=236, + serialized_end=247, ) _sym_db.RegisterEnumDescriptor(_ADVERTISINGCHANNELTYPEENUM_ADVERTISINGCHANNELTYPE) @@ -84,7 +88,7 @@ oneofs=[ ], serialized_start=102, - serialized_end=236, + serialized_end=247, ) _ADVERTISINGCHANNELTYPEENUM_ADVERTISINGCHANNELTYPE.containing_type = _ADVERTISINGCHANNELTYPEENUM diff --git a/google/ads/google_ads/v0/proto/enums/attribution_model_pb2.py b/google/ads/google_ads/v0/proto/enums/attribution_model_pb2.py new file mode 100644 index 000000000..6c537f99d --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/attribution_model_pb2.py @@ -0,0 +1,121 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/attribution_model.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/attribution_model.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\n;google/ads/googleads_v0/proto/enums/attribution_model.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\xc6\x02\n\x14\x41ttributionModelEnum\"\xad\x02\n\x10\x41ttributionModel\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x45XTERNAL\x10\x64\x12\x19\n\x15GOOGLE_ADS_LAST_CLICK\x10\x65\x12)\n%GOOGLE_SEARCH_ATTRIBUTION_FIRST_CLICK\x10\x66\x12$\n GOOGLE_SEARCH_ATTRIBUTION_LINEAR\x10g\x12(\n$GOOGLE_SEARCH_ATTRIBUTION_TIME_DECAY\x10h\x12,\n(GOOGLE_SEARCH_ATTRIBUTION_POSITION_BASED\x10i\x12)\n%GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN\x10jB\xc6\x01\n!com.google.ads.googleads.v0.enumsB\x15\x41ttributionModelProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_ATTRIBUTIONMODELENUM_ATTRIBUTIONMODEL = _descriptor.EnumDescriptor( + name='AttributionModel', + full_name='google.ads.googleads.v0.enums.AttributionModelEnum.AttributionModel', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXTERNAL', index=2, number=100, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_ADS_LAST_CLICK', index=3, number=101, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_SEARCH_ATTRIBUTION_FIRST_CLICK', index=4, number=102, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_SEARCH_ATTRIBUTION_LINEAR', index=5, number=103, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_SEARCH_ATTRIBUTION_TIME_DECAY', index=6, number=104, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_SEARCH_ATTRIBUTION_POSITION_BASED', index=7, number=105, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN', index=8, number=106, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=120, + serialized_end=421, +) +_sym_db.RegisterEnumDescriptor(_ATTRIBUTIONMODELENUM_ATTRIBUTIONMODEL) + + +_ATTRIBUTIONMODELENUM = _descriptor.Descriptor( + name='AttributionModelEnum', + full_name='google.ads.googleads.v0.enums.AttributionModelEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ATTRIBUTIONMODELENUM_ATTRIBUTIONMODEL, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=95, + serialized_end=421, +) + +_ATTRIBUTIONMODELENUM_ATTRIBUTIONMODEL.containing_type = _ATTRIBUTIONMODELENUM +DESCRIPTOR.message_types_by_name['AttributionModelEnum'] = _ATTRIBUTIONMODELENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AttributionModelEnum = _reflection.GeneratedProtocolMessageType('AttributionModelEnum', (_message.Message,), dict( + DESCRIPTOR = _ATTRIBUTIONMODELENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.attribution_model_pb2' + , + __doc__ = """Container for enum representing the attribution model that describes how + to distribute credit for a particular conversion across potentially many + prior interactions. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.AttributionModelEnum) + )) +_sym_db.RegisterMessage(AttributionModelEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB\025AttributionModelProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/attribution_model_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/attribution_model_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/attribution_model_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/bidding_strategy_type_pb2.py b/google/ads/google_ads/v0/proto/enums/bidding_strategy_type_pb2.py index 44626b326..c545d776e 100644 --- a/google/ads/google_ads/v0/proto/enums/bidding_strategy_type_pb2.py +++ b/google/ads/google_ads/v0/proto/enums/bidding_strategy_type_pb2.py @@ -19,7 +19,7 @@ name='google/ads/googleads_v0/proto/enums/bidding_strategy_type.proto', package='google.ads.googleads.v0.enums', syntax='proto3', - serialized_pb=_b('\n?google/ads/googleads_v0/proto/enums/bidding_strategy_type.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\xaf\x02\n\x17\x42iddingStrategyTypeEnum\"\x93\x02\n\x13\x42iddingStrategyType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x45NHANCED_CPC\x10\x02\x12\x0e\n\nMANUAL_CPC\x10\x03\x12\x0e\n\nMANUAL_CPM\x10\x04\x12\x18\n\x14MAXIMIZE_CONVERSIONS\x10\n\x12\x1d\n\x19MAXIMIZE_CONVERSION_VALUE\x10\x0b\x12\x15\n\x11PAGE_ONE_PROMOTED\x10\x05\x12\x0f\n\x0bPERCENT_CPC\x10\x0c\x12\x0e\n\nTARGET_CPA\x10\x06\x12\x18\n\x14TARGET_OUTRANK_SHARE\x10\x07\x12\x0f\n\x0bTARGET_ROAS\x10\x08\x12\x10\n\x0cTARGET_SPEND\x10\tB\xc9\x01\n!com.google.ads.googleads.v0.enumsB\x18\x42iddingStrategyTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') + serialized_pb=_b('\n?google/ads/googleads_v0/proto/enums/bidding_strategy_type.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\xbf\x02\n\x17\x42iddingStrategyTypeEnum\"\xa3\x02\n\x13\x42iddingStrategyType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x45NHANCED_CPC\x10\x02\x12\x0e\n\nMANUAL_CPC\x10\x03\x12\x0e\n\nMANUAL_CPM\x10\x04\x12\x0e\n\nMANUAL_CPV\x10\r\x12\x18\n\x14MAXIMIZE_CONVERSIONS\x10\n\x12\x1d\n\x19MAXIMIZE_CONVERSION_VALUE\x10\x0b\x12\x15\n\x11PAGE_ONE_PROMOTED\x10\x05\x12\x0f\n\x0bPERCENT_CPC\x10\x0c\x12\x0e\n\nTARGET_CPA\x10\x06\x12\x18\n\x14TARGET_OUTRANK_SHARE\x10\x07\x12\x0f\n\x0bTARGET_ROAS\x10\x08\x12\x10\n\x0cTARGET_SPEND\x10\tB\xc9\x01\n!com.google.ads.googleads.v0.enumsB\x18\x42iddingStrategyTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') ) @@ -51,42 +51,46 @@ options=None, type=None), _descriptor.EnumValueDescriptor( - name='MAXIMIZE_CONVERSIONS', index=5, number=10, + name='MANUAL_CPV', index=5, number=13, options=None, type=None), _descriptor.EnumValueDescriptor( - name='MAXIMIZE_CONVERSION_VALUE', index=6, number=11, + name='MAXIMIZE_CONVERSIONS', index=6, number=10, options=None, type=None), _descriptor.EnumValueDescriptor( - name='PAGE_ONE_PROMOTED', index=7, number=5, + name='MAXIMIZE_CONVERSION_VALUE', index=7, number=11, options=None, type=None), _descriptor.EnumValueDescriptor( - name='PERCENT_CPC', index=8, number=12, + name='PAGE_ONE_PROMOTED', index=8, number=5, options=None, type=None), _descriptor.EnumValueDescriptor( - name='TARGET_CPA', index=9, number=6, + name='PERCENT_CPC', index=9, number=12, options=None, type=None), _descriptor.EnumValueDescriptor( - name='TARGET_OUTRANK_SHARE', index=10, number=7, + name='TARGET_CPA', index=10, number=6, options=None, type=None), _descriptor.EnumValueDescriptor( - name='TARGET_ROAS', index=11, number=8, + name='TARGET_OUTRANK_SHARE', index=11, number=7, options=None, type=None), _descriptor.EnumValueDescriptor( - name='TARGET_SPEND', index=12, number=9, + name='TARGET_ROAS', index=12, number=8, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TARGET_SPEND', index=13, number=9, options=None, type=None), ], containing_type=None, options=None, serialized_start=127, - serialized_end=402, + serialized_end=418, ) _sym_db.RegisterEnumDescriptor(_BIDDINGSTRATEGYTYPEENUM_BIDDINGSTRATEGYTYPE) @@ -112,7 +116,7 @@ oneofs=[ ], serialized_start=99, - serialized_end=402, + serialized_end=418, ) _BIDDINGSTRATEGYTYPEENUM_BIDDINGSTRATEGYTYPE.containing_type = _BIDDINGSTRATEGYTYPEENUM diff --git a/google/ads/google_ads/v0/proto/enums/billing_setup_status_pb2.py b/google/ads/google_ads/v0/proto/enums/billing_setup_status_pb2.py new file mode 100644 index 000000000..6517facb7 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/billing_setup_status_pb2.py @@ -0,0 +1,107 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/billing_setup_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/billing_setup_status.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\n>google/ads/googleads_v0/proto/enums/billing_setup_status.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\x89\x01\n\x16\x42illingSetupStatusEnum\"o\n\x12\x42illingSetupStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x11\n\rAPPROVED_HELD\x10\x03\x12\x0c\n\x08\x41PPROVED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x42\xc8\x01\n!com.google.ads.googleads.v0.enumsB\x17\x42illingSetupStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_BILLINGSETUPSTATUSENUM_BILLINGSETUPSTATUS = _descriptor.EnumDescriptor( + name='BillingSetupStatus', + full_name='google.ads.googleads.v0.enums.BillingSetupStatusEnum.BillingSetupStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PENDING', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APPROVED_HELD', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APPROVED', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANCELLED', index=5, number=5, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=124, + serialized_end=235, +) +_sym_db.RegisterEnumDescriptor(_BILLINGSETUPSTATUSENUM_BILLINGSETUPSTATUS) + + +_BILLINGSETUPSTATUSENUM = _descriptor.Descriptor( + name='BillingSetupStatusEnum', + full_name='google.ads.googleads.v0.enums.BillingSetupStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _BILLINGSETUPSTATUSENUM_BILLINGSETUPSTATUS, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=98, + serialized_end=235, +) + +_BILLINGSETUPSTATUSENUM_BILLINGSETUPSTATUS.containing_type = _BILLINGSETUPSTATUSENUM +DESCRIPTOR.message_types_by_name['BillingSetupStatusEnum'] = _BILLINGSETUPSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +BillingSetupStatusEnum = _reflection.GeneratedProtocolMessageType('BillingSetupStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _BILLINGSETUPSTATUSENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.billing_setup_status_pb2' + , + __doc__ = """Message describing BillingSetup statuses. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.BillingSetupStatusEnum) + )) +_sym_db.RegisterMessage(BillingSetupStatusEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB\027BillingSetupStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/billing_setup_status_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/billing_setup_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/billing_setup_status_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/change_status_operation_pb2.py b/google/ads/google_ads/v0/proto/enums/change_status_operation_pb2.py new file mode 100644 index 000000000..a0a55a0f2 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/change_status_operation_pb2.py @@ -0,0 +1,103 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/change_status_operation.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/change_status_operation.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\nAgoogle/ads/googleads_v0/proto/enums/change_status_operation.proto\x12\x1dgoogle.ads.googleads.v0.enums\"w\n\x19\x43hangeStatusOperationEnum\"Z\n\x15\x43hangeStatusOperation\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x02\x12\x0b\n\x07\x43HANGED\x10\x03\x12\x0b\n\x07REMOVED\x10\x04\x42\xcb\x01\n!com.google.ads.googleads.v0.enumsB\x1a\x43hangeStatusOperationProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_CHANGESTATUSOPERATIONENUM_CHANGESTATUSOPERATION = _descriptor.EnumDescriptor( + name='ChangeStatusOperation', + full_name='google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADDED', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CHANGED', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVED', index=4, number=4, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=129, + serialized_end=219, +) +_sym_db.RegisterEnumDescriptor(_CHANGESTATUSOPERATIONENUM_CHANGESTATUSOPERATION) + + +_CHANGESTATUSOPERATIONENUM = _descriptor.Descriptor( + name='ChangeStatusOperationEnum', + full_name='google.ads.googleads.v0.enums.ChangeStatusOperationEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CHANGESTATUSOPERATIONENUM_CHANGESTATUSOPERATION, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=100, + serialized_end=219, +) + +_CHANGESTATUSOPERATIONENUM_CHANGESTATUSOPERATION.containing_type = _CHANGESTATUSOPERATIONENUM +DESCRIPTOR.message_types_by_name['ChangeStatusOperationEnum'] = _CHANGESTATUSOPERATIONENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ChangeStatusOperationEnum = _reflection.GeneratedProtocolMessageType('ChangeStatusOperationEnum', (_message.Message,), dict( + DESCRIPTOR = _CHANGESTATUSOPERATIONENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.change_status_operation_pb2' + , + __doc__ = """Container for enum describing operations for the ChangeStatus resource. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.ChangeStatusOperationEnum) + )) +_sym_db.RegisterMessage(ChangeStatusOperationEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB\032ChangeStatusOperationProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/change_status_operation_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/change_status_operation_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/change_status_operation_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/conversion_action_category_pb2.py b/google/ads/google_ads/v0/proto/enums/conversion_action_category_pb2.py new file mode 100644 index 000000000..59d3ad0d1 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/conversion_action_category_pb2.py @@ -0,0 +1,116 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/conversion_action_category.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/conversion_action_category.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\nDgoogle/ads/googleads_v0/proto/enums/conversion_action_category.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\xa7\x01\n\x1c\x43onversionActionCategoryEnum\"\x86\x01\n\x18\x43onversionActionCategory\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x02\x12\r\n\tPAGE_VIEW\x10\x03\x12\x0c\n\x08PURCHASE\x10\x04\x12\n\n\x06SIGNUP\x10\x05\x12\x08\n\x04LEAD\x10\x06\x12\x0c\n\x08\x44OWNLOAD\x10\x07\x42\xce\x01\n!com.google.ads.googleads.v0.enumsB\x1d\x43onversionActionCategoryProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_CONVERSIONACTIONCATEGORYENUM_CONVERSIONACTIONCATEGORY = _descriptor.EnumDescriptor( + name='ConversionActionCategory', + full_name='google.ads.googleads.v0.enums.ConversionActionCategoryEnum.ConversionActionCategory', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DEFAULT', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PAGE_VIEW', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PURCHASE', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SIGNUP', index=5, number=5, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LEAD', index=6, number=6, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DOWNLOAD', index=7, number=7, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=137, + serialized_end=271, +) +_sym_db.RegisterEnumDescriptor(_CONVERSIONACTIONCATEGORYENUM_CONVERSIONACTIONCATEGORY) + + +_CONVERSIONACTIONCATEGORYENUM = _descriptor.Descriptor( + name='ConversionActionCategoryEnum', + full_name='google.ads.googleads.v0.enums.ConversionActionCategoryEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CONVERSIONACTIONCATEGORYENUM_CONVERSIONACTIONCATEGORY, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=104, + serialized_end=271, +) + +_CONVERSIONACTIONCATEGORYENUM_CONVERSIONACTIONCATEGORY.containing_type = _CONVERSIONACTIONCATEGORYENUM +DESCRIPTOR.message_types_by_name['ConversionActionCategoryEnum'] = _CONVERSIONACTIONCATEGORYENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ConversionActionCategoryEnum = _reflection.GeneratedProtocolMessageType('ConversionActionCategoryEnum', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONACTIONCATEGORYENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.conversion_action_category_pb2' + , + __doc__ = """Container for enum describing the category of conversions that are + associated with a ConversionAction. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.ConversionActionCategoryEnum) + )) +_sym_db.RegisterMessage(ConversionActionCategoryEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB\035ConversionActionCategoryProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/conversion_action_category_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/conversion_action_category_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/conversion_action_category_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/conversion_action_counting_type_pb2.py b/google/ads/google_ads/v0/proto/enums/conversion_action_counting_type_pb2.py new file mode 100644 index 000000000..f75f5074e --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/conversion_action_counting_type_pb2.py @@ -0,0 +1,100 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/conversion_action_counting_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/conversion_action_counting_type.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\nIgoogle/ads/googleads_v0/proto/enums/conversion_action_counting_type.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\x87\x01\n ConversionActionCountingTypeEnum\"c\n\x1c\x43onversionActionCountingType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rONE_PER_CLICK\x10\x02\x12\x12\n\x0eMANY_PER_CLICK\x10\x03\x42\xd2\x01\n!com.google.ads.googleads.v0.enumsB!ConversionActionCountingTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_CONVERSIONACTIONCOUNTINGTYPEENUM_CONVERSIONACTIONCOUNTINGTYPE = _descriptor.EnumDescriptor( + name='ConversionActionCountingType', + full_name='google.ads.googleads.v0.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ONE_PER_CLICK', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MANY_PER_CLICK', index=3, number=3, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=145, + serialized_end=244, +) +_sym_db.RegisterEnumDescriptor(_CONVERSIONACTIONCOUNTINGTYPEENUM_CONVERSIONACTIONCOUNTINGTYPE) + + +_CONVERSIONACTIONCOUNTINGTYPEENUM = _descriptor.Descriptor( + name='ConversionActionCountingTypeEnum', + full_name='google.ads.googleads.v0.enums.ConversionActionCountingTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CONVERSIONACTIONCOUNTINGTYPEENUM_CONVERSIONACTIONCOUNTINGTYPE, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=109, + serialized_end=244, +) + +_CONVERSIONACTIONCOUNTINGTYPEENUM_CONVERSIONACTIONCOUNTINGTYPE.containing_type = _CONVERSIONACTIONCOUNTINGTYPEENUM +DESCRIPTOR.message_types_by_name['ConversionActionCountingTypeEnum'] = _CONVERSIONACTIONCOUNTINGTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ConversionActionCountingTypeEnum = _reflection.GeneratedProtocolMessageType('ConversionActionCountingTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONACTIONCOUNTINGTYPEENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.conversion_action_counting_type_pb2' + , + __doc__ = """Container for enum describing the conversion deduplication mode for + conversion optimizer. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.ConversionActionCountingTypeEnum) + )) +_sym_db.RegisterMessage(ConversionActionCountingTypeEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB!ConversionActionCountingTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/conversion_action_counting_type_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/conversion_action_counting_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/conversion_action_counting_type_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/conversion_action_status_pb2.py b/google/ads/google_ads/v0/proto/enums/conversion_action_status_pb2.py new file mode 100644 index 000000000..2b32fa04d --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/conversion_action_status_pb2.py @@ -0,0 +1,103 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/conversion_action_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/conversion_action_status.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\nBgoogle/ads/googleads_v0/proto/enums/conversion_action_status.proto\x12\x1dgoogle.ads.googleads.v0.enums\"z\n\x1a\x43onversionActionStatusEnum\"\\\n\x16\x43onversionActionStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x12\n\n\x06HIDDEN\x10\x04\x42\xcc\x01\n!com.google.ads.googleads.v0.enumsB\x1b\x43onversionActionStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_CONVERSIONACTIONSTATUSENUM_CONVERSIONACTIONSTATUS = _descriptor.EnumDescriptor( + name='ConversionActionStatus', + full_name='google.ads.googleads.v0.enums.ConversionActionStatusEnum.ConversionActionStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENABLED', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVED', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HIDDEN', index=4, number=4, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=131, + serialized_end=223, +) +_sym_db.RegisterEnumDescriptor(_CONVERSIONACTIONSTATUSENUM_CONVERSIONACTIONSTATUS) + + +_CONVERSIONACTIONSTATUSENUM = _descriptor.Descriptor( + name='ConversionActionStatusEnum', + full_name='google.ads.googleads.v0.enums.ConversionActionStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CONVERSIONACTIONSTATUSENUM_CONVERSIONACTIONSTATUS, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=101, + serialized_end=223, +) + +_CONVERSIONACTIONSTATUSENUM_CONVERSIONACTIONSTATUS.containing_type = _CONVERSIONACTIONSTATUSENUM +DESCRIPTOR.message_types_by_name['ConversionActionStatusEnum'] = _CONVERSIONACTIONSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ConversionActionStatusEnum = _reflection.GeneratedProtocolMessageType('ConversionActionStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONACTIONSTATUSENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.conversion_action_status_pb2' + , + __doc__ = """Container for enum describing possible statuses of a conversion action. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.ConversionActionStatusEnum) + )) +_sym_db.RegisterMessage(ConversionActionStatusEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB\033ConversionActionStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/conversion_action_status_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/conversion_action_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/conversion_action_status_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/conversion_action_type_pb2.py b/google/ads/google_ads/v0/proto/enums/conversion_action_type_pb2.py new file mode 100644 index 000000000..b132a348c --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/conversion_action_type_pb2.py @@ -0,0 +1,123 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/conversion_action_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/conversion_action_type.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\n@google/ads/googleads_v0/proto/enums/conversion_action_type.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\xf0\x01\n\x18\x43onversionActionTypeEnum\"\xd3\x01\n\x14\x43onversionActionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x41\x44_CALL\x10\x02\x12\x11\n\rCLICK_TO_CALL\x10\x03\x12\x18\n\x14GOOGLE_PLAY_DOWNLOAD\x10\x04\x12\x1f\n\x1bGOOGLE_PLAY_IN_APP_PURCHASE\x10\x05\x12\x10\n\x0cUPLOAD_CALLS\x10\x06\x12\x11\n\rUPLOAD_CLICKS\x10\x07\x12\x0b\n\x07WEBPAGE\x10\x08\x12\x10\n\x0cWEBSITE_CALL\x10\tB\xca\x01\n!com.google.ads.googleads.v0.enumsB\x19\x43onversionActionTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_CONVERSIONACTIONTYPEENUM_CONVERSIONACTIONTYPE = _descriptor.EnumDescriptor( + name='ConversionActionType', + full_name='google.ads.googleads.v0.enums.ConversionActionTypeEnum.ConversionActionType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_CALL', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CLICK_TO_CALL', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_PLAY_DOWNLOAD', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_PLAY_IN_APP_PURCHASE', index=5, number=5, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UPLOAD_CALLS', index=6, number=6, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UPLOAD_CLICKS', index=7, number=7, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE', index=8, number=8, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBSITE_CALL', index=9, number=9, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=129, + serialized_end=340, +) +_sym_db.RegisterEnumDescriptor(_CONVERSIONACTIONTYPEENUM_CONVERSIONACTIONTYPE) + + +_CONVERSIONACTIONTYPEENUM = _descriptor.Descriptor( + name='ConversionActionTypeEnum', + full_name='google.ads.googleads.v0.enums.ConversionActionTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CONVERSIONACTIONTYPEENUM_CONVERSIONACTIONTYPE, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=100, + serialized_end=340, +) + +_CONVERSIONACTIONTYPEENUM_CONVERSIONACTIONTYPE.containing_type = _CONVERSIONACTIONTYPEENUM +DESCRIPTOR.message_types_by_name['ConversionActionTypeEnum'] = _CONVERSIONACTIONTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ConversionActionTypeEnum = _reflection.GeneratedProtocolMessageType('ConversionActionTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONACTIONTYPEENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.conversion_action_type_pb2' + , + __doc__ = """Container for enum describing possible types of a conversion action. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.ConversionActionTypeEnum) + )) +_sym_db.RegisterMessage(ConversionActionTypeEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB\031ConversionActionTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/conversion_action_type_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/conversion_action_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/conversion_action_type_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/data_driven_model_status_pb2.py b/google/ads/google_ads/v0/proto/enums/data_driven_model_status_pb2.py new file mode 100644 index 000000000..61bdd7957 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/data_driven_model_status_pb2.py @@ -0,0 +1,107 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/data_driven_model_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/data_driven_model_status.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\nBgoogle/ads/googleads_v0/proto/enums/data_driven_model_status.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\x8e\x01\n\x19\x44\x61taDrivenModelStatusEnum\"q\n\x15\x44\x61taDrivenModelStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\t\n\x05STALE\x10\x03\x12\x0b\n\x07\x45XPIRED\x10\x04\x12\x13\n\x0fNEVER_GENERATED\x10\x05\x42\xcb\x01\n!com.google.ads.googleads.v0.enumsB\x1a\x44\x61taDrivenModelStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_DATADRIVENMODELSTATUSENUM_DATADRIVENMODELSTATUS = _descriptor.EnumDescriptor( + name='DataDrivenModelStatus', + full_name='google.ads.googleads.v0.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AVAILABLE', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STALE', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPIRED', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NEVER_GENERATED', index=5, number=5, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=131, + serialized_end=244, +) +_sym_db.RegisterEnumDescriptor(_DATADRIVENMODELSTATUSENUM_DATADRIVENMODELSTATUS) + + +_DATADRIVENMODELSTATUSENUM = _descriptor.Descriptor( + name='DataDrivenModelStatusEnum', + full_name='google.ads.googleads.v0.enums.DataDrivenModelStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _DATADRIVENMODELSTATUSENUM_DATADRIVENMODELSTATUS, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=102, + serialized_end=244, +) + +_DATADRIVENMODELSTATUSENUM_DATADRIVENMODELSTATUS.containing_type = _DATADRIVENMODELSTATUSENUM +DESCRIPTOR.message_types_by_name['DataDrivenModelStatusEnum'] = _DATADRIVENMODELSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DataDrivenModelStatusEnum = _reflection.GeneratedProtocolMessageType('DataDrivenModelStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _DATADRIVENMODELSTATUSENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.data_driven_model_status_pb2' + , + __doc__ = """Container for enum indicating data driven model status. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.DataDrivenModelStatusEnum) + )) +_sym_db.RegisterMessage(DataDrivenModelStatusEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB\032DataDrivenModelStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/data_driven_model_status_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/data_driven_model_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/data_driven_model_status_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/device_pb2.py b/google/ads/google_ads/v0/proto/enums/device_pb2.py index 760b14891..0cb9ee917 100644 --- a/google/ads/google_ads/v0/proto/enums/device_pb2.py +++ b/google/ads/google_ads/v0/proto/enums/device_pb2.py @@ -19,7 +19,7 @@ name='google/ads/googleads_v0/proto/enums/device.proto', package='google.ads.googleads.v0.enums', syntax='proto3', - serialized_pb=_b('\n0google/ads/googleads_v0/proto/enums/device.proto\x12\x1dgoogle.ads.googleads.v0.enums\"k\n\nDeviceEnum\"]\n\x06\x44\x65vice\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06MOBILE\x10\x02\x12\n\n\x06TABLET\x10\x03\x12\x0b\n\x07\x44\x45SKTOP\x10\x04\x12\x10\n\x0c\x43ONNECTED_TV\x10\x05\x42\xbc\x01\n!com.google.ads.googleads.v0.enumsB\x0b\x44\x65viceProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') + serialized_pb=_b('\n0google/ads/googleads_v0/proto/enums/device.proto\x12\x1dgoogle.ads.googleads.v0.enums\"Y\n\nDeviceEnum\"K\n\x06\x44\x65vice\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06MOBILE\x10\x02\x12\n\n\x06TABLET\x10\x03\x12\x0b\n\x07\x44\x45SKTOP\x10\x04\x42\xbc\x01\n!com.google.ads.googleads.v0.enumsB\x0b\x44\x65viceProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') ) @@ -50,15 +50,11 @@ name='DESKTOP', index=4, number=4, options=None, type=None), - _descriptor.EnumValueDescriptor( - name='CONNECTED_TV', index=5, number=5, - options=None, - type=None), ], containing_type=None, options=None, serialized_start=97, - serialized_end=190, + serialized_end=172, ) _sym_db.RegisterEnumDescriptor(_DEVICEENUM_DEVICE) @@ -84,7 +80,7 @@ oneofs=[ ], serialized_start=83, - serialized_end=190, + serialized_end=172, ) _DEVICEENUM_DEVICE.containing_type = _DEVICEENUM diff --git a/google/ads/google_ads/v0/proto/enums/policy_approval_status_pb2.py b/google/ads/google_ads/v0/proto/enums/policy_approval_status_pb2.py new file mode 100644 index 000000000..41721f9c5 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/policy_approval_status_pb2.py @@ -0,0 +1,107 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/policy_approval_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/policy_approval_status.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\n@google/ads/googleads_v0/proto/enums/policy_approval_status.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\xa1\x01\n\x18PolicyApprovalStatusEnum\"\x84\x01\n\x14PolicyApprovalStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x44ISAPPROVED\x10\x02\x12\x14\n\x10\x41PPROVED_LIMITED\x10\x03\x12\x0c\n\x08\x41PPROVED\x10\x04\x12\x19\n\x15\x41REA_OF_INTEREST_ONLY\x10\x05\x42\xca\x01\n!com.google.ads.googleads.v0.enumsB\x19PolicyApprovalStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_POLICYAPPROVALSTATUSENUM_POLICYAPPROVALSTATUS = _descriptor.EnumDescriptor( + name='PolicyApprovalStatus', + full_name='google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DISAPPROVED', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APPROVED_LIMITED', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APPROVED', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AREA_OF_INTEREST_ONLY', index=5, number=5, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=129, + serialized_end=261, +) +_sym_db.RegisterEnumDescriptor(_POLICYAPPROVALSTATUSENUM_POLICYAPPROVALSTATUS) + + +_POLICYAPPROVALSTATUSENUM = _descriptor.Descriptor( + name='PolicyApprovalStatusEnum', + full_name='google.ads.googleads.v0.enums.PolicyApprovalStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _POLICYAPPROVALSTATUSENUM_POLICYAPPROVALSTATUS, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=100, + serialized_end=261, +) + +_POLICYAPPROVALSTATUSENUM_POLICYAPPROVALSTATUS.containing_type = _POLICYAPPROVALSTATUSENUM +DESCRIPTOR.message_types_by_name['PolicyApprovalStatusEnum'] = _POLICYAPPROVALSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PolicyApprovalStatusEnum = _reflection.GeneratedProtocolMessageType('PolicyApprovalStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _POLICYAPPROVALSTATUSENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.policy_approval_status_pb2' + , + __doc__ = """Container for enum describing possible policy approval statuses. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.PolicyApprovalStatusEnum) + )) +_sym_db.RegisterMessage(PolicyApprovalStatusEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB\031PolicyApprovalStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/policy_approval_status_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/policy_approval_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/policy_approval_status_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/policy_review_status_pb2.py b/google/ads/google_ads/v0/proto/enums/policy_review_status_pb2.py new file mode 100644 index 000000000..5df41289a --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/policy_review_status_pb2.py @@ -0,0 +1,103 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/policy_review_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/policy_review_status.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\n>google/ads/googleads_v0/proto/enums/policy_review_status.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\x84\x01\n\x16PolicyReviewStatusEnum\"j\n\x12PolicyReviewStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12REVIEW_IN_PROGRESS\x10\x02\x12\x0c\n\x08REVIEWED\x10\x03\x12\x10\n\x0cUNDER_APPEAL\x10\x04\x42\xc8\x01\n!com.google.ads.googleads.v0.enumsB\x17PolicyReviewStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS = _descriptor.EnumDescriptor( + name='PolicyReviewStatus', + full_name='google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REVIEW_IN_PROGRESS', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REVIEWED', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNDER_APPEAL', index=4, number=4, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=124, + serialized_end=230, +) +_sym_db.RegisterEnumDescriptor(_POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS) + + +_POLICYREVIEWSTATUSENUM = _descriptor.Descriptor( + name='PolicyReviewStatusEnum', + full_name='google.ads.googleads.v0.enums.PolicyReviewStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=98, + serialized_end=230, +) + +_POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS.containing_type = _POLICYREVIEWSTATUSENUM +DESCRIPTOR.message_types_by_name['PolicyReviewStatusEnum'] = _POLICYREVIEWSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PolicyReviewStatusEnum = _reflection.GeneratedProtocolMessageType('PolicyReviewStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _POLICYREVIEWSTATUSENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.policy_review_status_pb2' + , + __doc__ = """Container for enum describing possible policy review statuses. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.PolicyReviewStatusEnum) + )) +_sym_db.RegisterMessage(PolicyReviewStatusEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB\027PolicyReviewStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/policy_review_status_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/policy_review_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/policy_review_status_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/product_channel_exclusivity_pb2.py b/google/ads/google_ads/v0/proto/enums/product_channel_exclusivity_pb2.py new file mode 100644 index 000000000..cda7b6fe1 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/product_channel_exclusivity_pb2.py @@ -0,0 +1,99 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/product_channel_exclusivity.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/product_channel_exclusivity.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\nEgoogle/ads/googleads_v0/proto/enums/product_channel_exclusivity.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\x81\x01\n\x1dProductChannelExclusivityEnum\"`\n\x19ProductChannelExclusivity\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eSINGLE_CHANNEL\x10\x02\x12\x11\n\rMULTI_CHANNEL\x10\x03\x42\xcf\x01\n!com.google.ads.googleads.v0.enumsB\x1eProductChannelExclusivityProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_PRODUCTCHANNELEXCLUSIVITYENUM_PRODUCTCHANNELEXCLUSIVITY = _descriptor.EnumDescriptor( + name='ProductChannelExclusivity', + full_name='google.ads.googleads.v0.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SINGLE_CHANNEL', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTI_CHANNEL', index=3, number=3, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=138, + serialized_end=234, +) +_sym_db.RegisterEnumDescriptor(_PRODUCTCHANNELEXCLUSIVITYENUM_PRODUCTCHANNELEXCLUSIVITY) + + +_PRODUCTCHANNELEXCLUSIVITYENUM = _descriptor.Descriptor( + name='ProductChannelExclusivityEnum', + full_name='google.ads.googleads.v0.enums.ProductChannelExclusivityEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PRODUCTCHANNELEXCLUSIVITYENUM_PRODUCTCHANNELEXCLUSIVITY, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=105, + serialized_end=234, +) + +_PRODUCTCHANNELEXCLUSIVITYENUM_PRODUCTCHANNELEXCLUSIVITY.containing_type = _PRODUCTCHANNELEXCLUSIVITYENUM +DESCRIPTOR.message_types_by_name['ProductChannelExclusivityEnum'] = _PRODUCTCHANNELEXCLUSIVITYENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ProductChannelExclusivityEnum = _reflection.GeneratedProtocolMessageType('ProductChannelExclusivityEnum', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTCHANNELEXCLUSIVITYENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.product_channel_exclusivity_pb2' + , + __doc__ = """Availability of a product offer. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.ProductChannelExclusivityEnum) + )) +_sym_db.RegisterMessage(ProductChannelExclusivityEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB\036ProductChannelExclusivityProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/product_channel_exclusivity_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/product_channel_exclusivity_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/product_channel_exclusivity_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/product_channel_pb2.py b/google/ads/google_ads/v0/proto/enums/product_channel_pb2.py new file mode 100644 index 000000000..2e4595b66 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/product_channel_pb2.py @@ -0,0 +1,99 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/product_channel.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/product_channel.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\n9google/ads/googleads_v0/proto/enums/product_channel.proto\x12\x1dgoogle.ads.googleads.v0.enums\"[\n\x12ProductChannelEnum\"E\n\x0eProductChannel\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06ONLINE\x10\x02\x12\t\n\x05LOCAL\x10\x03\x42\xc4\x01\n!com.google.ads.googleads.v0.enumsB\x13ProductChannelProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_PRODUCTCHANNELENUM_PRODUCTCHANNEL = _descriptor.EnumDescriptor( + name='ProductChannel', + full_name='google.ads.googleads.v0.enums.ProductChannelEnum.ProductChannel', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ONLINE', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCAL', index=3, number=3, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=114, + serialized_end=183, +) +_sym_db.RegisterEnumDescriptor(_PRODUCTCHANNELENUM_PRODUCTCHANNEL) + + +_PRODUCTCHANNELENUM = _descriptor.Descriptor( + name='ProductChannelEnum', + full_name='google.ads.googleads.v0.enums.ProductChannelEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PRODUCTCHANNELENUM_PRODUCTCHANNEL, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=92, + serialized_end=183, +) + +_PRODUCTCHANNELENUM_PRODUCTCHANNEL.containing_type = _PRODUCTCHANNELENUM +DESCRIPTOR.message_types_by_name['ProductChannelEnum'] = _PRODUCTCHANNELENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ProductChannelEnum = _reflection.GeneratedProtocolMessageType('ProductChannelEnum', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTCHANNELENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.product_channel_pb2' + , + __doc__ = """Locality of a product offer. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.ProductChannelEnum) + )) +_sym_db.RegisterMessage(ProductChannelEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB\023ProductChannelProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/product_channel_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/product_channel_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/product_channel_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/resource_type_pb2.py b/google/ads/google_ads/v0/proto/enums/resource_type_pb2.py new file mode 100644 index 000000000..2bda6c41f --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/resource_type_pb2.py @@ -0,0 +1,116 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/resource_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/resource_type.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\n7google/ads/googleads_v0/proto/enums/resource_type.proto\x12\x1dgoogle.ads.googleads.v0.enums\"\xa6\x01\n\x10ResourceTypeEnum\"\x91\x01\n\x0cResourceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x06\n\x02\x41\x44\x10\x02\x12\x0c\n\x08\x41\x44_GROUP\x10\x03\x12\x0f\n\x0b\x41\x44_GROUP_AD\x10\x04\x12\x16\n\x12\x41\x44_GROUP_CRITERION\x10\x05\x12\x0c\n\x08\x43\x41MPAIGN\x10\x06\x12\x16\n\x12\x43\x41MPAIGN_CRITERION\x10\x07\x42\xc2\x01\n!com.google.ads.googleads.v0.enumsB\x11ResourceTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_RESOURCETYPEENUM_RESOURCETYPE = _descriptor.EnumDescriptor( + name='ResourceType', + full_name='google.ads.googleads.v0.enums.ResourceTypeEnum.ResourceType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_GROUP', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_GROUP_AD', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_GROUP_CRITERION', index=5, number=5, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN', index=6, number=6, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN_CRITERION', index=7, number=7, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=112, + serialized_end=257, +) +_sym_db.RegisterEnumDescriptor(_RESOURCETYPEENUM_RESOURCETYPE) + + +_RESOURCETYPEENUM = _descriptor.Descriptor( + name='ResourceTypeEnum', + full_name='google.ads.googleads.v0.enums.ResourceTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _RESOURCETYPEENUM_RESOURCETYPE, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=91, + serialized_end=257, +) + +_RESOURCETYPEENUM_RESOURCETYPE.containing_type = _RESOURCETYPEENUM +DESCRIPTOR.message_types_by_name['ResourceTypeEnum'] = _RESOURCETYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ResourceTypeEnum = _reflection.GeneratedProtocolMessageType('ResourceTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _RESOURCETYPEENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.resource_type_pb2' + , + __doc__ = """Container for enum describing supported resource types for the + ChangeStatus resource. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.ResourceTypeEnum) + )) +_sym_db.RegisterMessage(ResourceTypeEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB\021ResourceTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/resource_type_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/resource_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/resource_type_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/spending_limit_type_pb2.py b/google/ads/google_ads/v0/proto/enums/spending_limit_type_pb2.py new file mode 100644 index 000000000..641518bd3 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/spending_limit_type_pb2.py @@ -0,0 +1,95 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/spending_limit_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/spending_limit_type.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\n=google/ads/googleads_v0/proto/enums/spending_limit_type.proto\x12\x1dgoogle.ads.googleads.v0.enums\"X\n\x15SpendingLimitTypeEnum\"?\n\x11SpendingLimitType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08INFINITE\x10\x02\x42\xc7\x01\n!com.google.ads.googleads.v0.enumsB\x16SpendingLimitTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE = _descriptor.EnumDescriptor( + name='SpendingLimitType', + full_name='google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INFINITE', index=2, number=2, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=121, + serialized_end=184, +) +_sym_db.RegisterEnumDescriptor(_SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE) + + +_SPENDINGLIMITTYPEENUM = _descriptor.Descriptor( + name='SpendingLimitTypeEnum', + full_name='google.ads.googleads.v0.enums.SpendingLimitTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=96, + serialized_end=184, +) + +_SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE.containing_type = _SPENDINGLIMITTYPEENUM +DESCRIPTOR.message_types_by_name['SpendingLimitTypeEnum'] = _SPENDINGLIMITTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SpendingLimitTypeEnum = _reflection.GeneratedProtocolMessageType('SpendingLimitTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _SPENDINGLIMITTYPEENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.spending_limit_type_pb2' + , + __doc__ = """Message describing spending limit types. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.SpendingLimitTypeEnum) + )) +_sym_db.RegisterMessage(SpendingLimitTypeEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB\026SpendingLimitTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/spending_limit_type_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/spending_limit_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/spending_limit_type_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/time_type_pb2.py b/google/ads/google_ads/v0/proto/enums/time_type_pb2.py new file mode 100644 index 000000000..5c1f8436c --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/time_type_pb2.py @@ -0,0 +1,99 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/time_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/time_type.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\n3google/ads/googleads_v0/proto/enums/time_type.proto\x12\x1dgoogle.ads.googleads.v0.enums\"N\n\x0cTimeTypeEnum\">\n\x08TimeType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03NOW\x10\x02\x12\x0b\n\x07\x46OREVER\x10\x03\x42\xbe\x01\n!com.google.ads.googleads.v0.enumsB\rTimeTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_TIMETYPEENUM_TIMETYPE = _descriptor.EnumDescriptor( + name='TimeType', + full_name='google.ads.googleads.v0.enums.TimeTypeEnum.TimeType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOW', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FOREVER', index=3, number=3, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=102, + serialized_end=164, +) +_sym_db.RegisterEnumDescriptor(_TIMETYPEENUM_TIMETYPE) + + +_TIMETYPEENUM = _descriptor.Descriptor( + name='TimeTypeEnum', + full_name='google.ads.googleads.v0.enums.TimeTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _TIMETYPEENUM_TIMETYPE, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=86, + serialized_end=164, +) + +_TIMETYPEENUM_TIMETYPE.containing_type = _TIMETYPEENUM +DESCRIPTOR.message_types_by_name['TimeTypeEnum'] = _TIMETYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +TimeTypeEnum = _reflection.GeneratedProtocolMessageType('TimeTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _TIMETYPEENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.time_type_pb2' + , + __doc__ = """Message describing time types. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.TimeTypeEnum) + )) +_sym_db.RegisterMessage(TimeTypeEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB\rTimeTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/time_type_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/time_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/time_type_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/tracking_code_page_format_pb2.py b/google/ads/google_ads/v0/proto/enums/tracking_code_page_format_pb2.py new file mode 100644 index 000000000..f434ce631 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/tracking_code_page_format_pb2.py @@ -0,0 +1,96 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/tracking_code_page_format.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/tracking_code_page_format.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\nCgoogle/ads/googleads_v0/proto/enums/tracking_code_page_format.proto\x12\x1dgoogle.ads.googleads.v0.enums\"^\n\x1aTrackingCodePageFormatEnum\"@\n\x16TrackingCodePageFormat\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04HTML\x10\x02\x42\xcc\x01\n!com.google.ads.googleads.v0.enumsB\x1bTrackingCodePageFormatProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V0.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V0\\Enumsb\x06proto3') +) + + + +_TRACKINGCODEPAGEFORMATENUM_TRACKINGCODEPAGEFORMAT = _descriptor.EnumDescriptor( + name='TrackingCodePageFormat', + full_name='google.ads.googleads.v0.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HTML', index=2, number=2, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=132, + serialized_end=196, +) +_sym_db.RegisterEnumDescriptor(_TRACKINGCODEPAGEFORMATENUM_TRACKINGCODEPAGEFORMAT) + + +_TRACKINGCODEPAGEFORMATENUM = _descriptor.Descriptor( + name='TrackingCodePageFormatEnum', + full_name='google.ads.googleads.v0.enums.TrackingCodePageFormatEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _TRACKINGCODEPAGEFORMATENUM_TRACKINGCODEPAGEFORMAT, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=102, + serialized_end=196, +) + +_TRACKINGCODEPAGEFORMATENUM_TRACKINGCODEPAGEFORMAT.containing_type = _TRACKINGCODEPAGEFORMATENUM +DESCRIPTOR.message_types_by_name['TrackingCodePageFormatEnum'] = _TRACKINGCODEPAGEFORMATENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +TrackingCodePageFormatEnum = _reflection.GeneratedProtocolMessageType('TrackingCodePageFormatEnum', (_message.Message,), dict( + DESCRIPTOR = _TRACKINGCODEPAGEFORMATENUM, + __module__ = 'google.ads.googleads_v0.proto.enums.tracking_code_page_format_pb2' + , + __doc__ = """Container for enum describing the format of the web page where the + tracking tag and snippet will be installed. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.TrackingCodePageFormatEnum) + )) +_sym_db.RegisterMessage(TrackingCodePageFormatEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.ads.googleads.v0.enumsB\033TrackingCodePageFormatProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/enums/tracking_code_page_format_pb2_grpc.py b/google/ads/google_ads/v0/proto/enums/tracking_code_page_format_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/tracking_code_page_format_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/enums/tracking_code_type_pb2.py b/google/ads/google_ads/v0/proto/enums/tracking_code_type_pb2.py new file mode 100644 index 000000000..aff437c42 --- /dev/null +++ b/google/ads/google_ads/v0/proto/enums/tracking_code_type_pb2.py @@ -0,0 +1,104 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/enums/tracking_code_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/enums/tracking_code_type.proto', + package='google.ads.googleads.v0.enums', + syntax='proto3', + serialized_pb=_b('\n\n:CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING\x10\x11\x12 \n\x1cMAX_IMPRESSIONS_NOT_IN_RANGE\x10\x12\x12\x1b\n\x17TIME_UNIT_NOT_SUPPORTED\x10\x13\x12\x31\n-INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED\x10\x14\x12\x1b\n\x17\x42UDGET_CANNOT_BE_SHARED\x10\x15\x12%\n!CAMPAIGN_CANNOT_USE_SHARED_BUDGET\x10\x16\x12\x30\n,CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS\x10\x17\x12!\n\x1d\x43\x41MPAIGN_LABEL_DOES_NOT_EXIST\x10\x18\x12!\n\x1d\x43\x41MPAIGN_LABEL_ALREADY_EXISTS\x10\x19\x12\x1c\n\x18MISSING_SHOPPING_SETTING\x10\x1a\x12\"\n\x1eINVALID_SHOPPING_SALES_COUNTRY\x10\x1b\x12*\n&MISSING_UNIVERSAL_APP_CAMPAIGN_SETTING\x10\x1e\x12;\n7ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE\x10\x1f\x12(\n$INVALID_ADVERTISING_CHANNEL_SUB_TYPE\x10 \x12,\n(AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED\x10!\x12\x1f\n\x1b\x43\x41NNOT_SET_AD_ROTATION_MODE\x10\"\x12/\n+CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED\x10#\x12\x1b\n\x17\x43\x41NNOT_SET_DATE_TO_PAST\x10$\x12\x1f\n\x1bMISSING_HOTEL_CUSTOMER_LINK\x10%\x12\x1f\n\x1bINVALID_HOTEL_CUSTOMER_LINK\x10&\x12\x19\n\x15MISSING_HOTEL_SETTING\x10\'B\xc8\x01\n\"com.google.ads.googleads.v0.errorsB\x12\x43\x61mpaignErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Errorsb\x06proto3') + serialized_pb=_b('\n9google/ads/googleads_v0/proto/errors/campaign_error.proto\x12\x1egoogle.ads.googleads.v0.errors\"\x96\x0c\n\x11\x43\x61mpaignErrorEnum\"\x80\x0c\n\rCampaignError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1d\x43\x41NNOT_TARGET_CONTENT_NETWORK\x10\x03\x12 \n\x1c\x43\x41NNOT_TARGET_SEARCH_NETWORK\x10\x04\x12\x36\n2CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH\x10\x05\x12\x30\n,CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN\x10\x06\x12-\n)CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK\x10\x07\x12(\n$CANNOT_TARGET_PARTNER_SEARCH_NETWORK\x10\x08\x12K\nGCANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY\x10\t\x12\x36\n2CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS\x10\n\x12$\n CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN\x10\x0b\x12\x1b\n\x17\x44UPLICATE_CAMPAIGN_NAME\x10\x0c\x12\x1f\n\x1bINCOMPATIBLE_CAMPAIGN_FIELD\x10\r\x12\x19\n\x15INVALID_CAMPAIGN_NAME\x10\x0e\x12*\n&INVALID_AD_SERVING_OPTIMIZATION_STATUS\x10\x0f\x12\x18\n\x14INVALID_TRACKING_URL\x10\x10\x12>\n:CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING\x10\x11\x12 \n\x1cMAX_IMPRESSIONS_NOT_IN_RANGE\x10\x12\x12\x1b\n\x17TIME_UNIT_NOT_SUPPORTED\x10\x13\x12\x31\n-INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED\x10\x14\x12\x1b\n\x17\x42UDGET_CANNOT_BE_SHARED\x10\x15\x12%\n!CAMPAIGN_CANNOT_USE_SHARED_BUDGET\x10\x16\x12\x30\n,CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS\x10\x17\x12!\n\x1d\x43\x41MPAIGN_LABEL_DOES_NOT_EXIST\x10\x18\x12!\n\x1d\x43\x41MPAIGN_LABEL_ALREADY_EXISTS\x10\x19\x12\x1c\n\x18MISSING_SHOPPING_SETTING\x10\x1a\x12\"\n\x1eINVALID_SHOPPING_SALES_COUNTRY\x10\x1b\x12*\n&MISSING_UNIVERSAL_APP_CAMPAIGN_SETTING\x10\x1e\x12;\n7ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE\x10\x1f\x12(\n$INVALID_ADVERTISING_CHANNEL_SUB_TYPE\x10 \x12,\n(AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED\x10!\x12\x1f\n\x1b\x43\x41NNOT_SET_AD_ROTATION_MODE\x10\"\x12/\n+CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED\x10#\x12\x1b\n\x17\x43\x41NNOT_SET_DATE_TO_PAST\x10$\x12\x1f\n\x1bMISSING_HOTEL_CUSTOMER_LINK\x10%\x12\x1f\n\x1bINVALID_HOTEL_CUSTOMER_LINK\x10&\x12\x19\n\x15MISSING_HOTEL_SETTING\x10\'\x12\x42\n>CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP\x10(B\xc8\x01\n\"com.google.ads.googleads.v0.errorsB\x12\x43\x61mpaignErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Errorsb\x06proto3') ) @@ -178,11 +178,15 @@ name='MISSING_HOTEL_SETTING', index=36, number=39, options=None, type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP', index=37, number=40, + options=None, + type=None), ], containing_type=None, options=None, serialized_start=116, - serialized_end=1584, + serialized_end=1652, ) _sym_db.RegisterEnumDescriptor(_CAMPAIGNERRORENUM_CAMPAIGNERROR) @@ -208,7 +212,7 @@ oneofs=[ ], serialized_start=94, - serialized_end=1584, + serialized_end=1652, ) _CAMPAIGNERRORENUM_CAMPAIGNERROR.containing_type = _CAMPAIGNERRORENUM diff --git a/google/ads/google_ads/v0/proto/errors/change_status_error_pb2.py b/google/ads/google_ads/v0/proto/errors/change_status_error_pb2.py new file mode 100644 index 000000000..b460fd4e5 --- /dev/null +++ b/google/ads/google_ads/v0/proto/errors/change_status_error_pb2.py @@ -0,0 +1,99 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/errors/change_status_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/errors/change_status_error.proto', + package='google.ads.googleads.v0.errors', + syntax='proto3', + serialized_pb=_b('\n>google/ads/googleads_v0/proto/errors/change_status_error.proto\x12\x1egoogle.ads.googleads.v0.errors\"z\n\x15\x43hangeStatusErrorEnum\"a\n\x11\x43hangeStatusError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12INVALID_START_DATE\x10\x02\x12\x16\n\x12START_DATE_TOO_OLD\x10\x03\x42\xcc\x01\n\"com.google.ads.googleads.v0.errorsB\x16\x43hangeStatusErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Errorsb\x06proto3') +) + + + +_CHANGESTATUSERRORENUM_CHANGESTATUSERROR = _descriptor.EnumDescriptor( + name='ChangeStatusError', + full_name='google.ads.googleads.v0.errors.ChangeStatusErrorEnum.ChangeStatusError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_START_DATE', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='START_DATE_TOO_OLD', index=3, number=3, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=123, + serialized_end=220, +) +_sym_db.RegisterEnumDescriptor(_CHANGESTATUSERRORENUM_CHANGESTATUSERROR) + + +_CHANGESTATUSERRORENUM = _descriptor.Descriptor( + name='ChangeStatusErrorEnum', + full_name='google.ads.googleads.v0.errors.ChangeStatusErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CHANGESTATUSERRORENUM_CHANGESTATUSERROR, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=98, + serialized_end=220, +) + +_CHANGESTATUSERRORENUM_CHANGESTATUSERROR.containing_type = _CHANGESTATUSERRORENUM +DESCRIPTOR.message_types_by_name['ChangeStatusErrorEnum'] = _CHANGESTATUSERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ChangeStatusErrorEnum = _reflection.GeneratedProtocolMessageType('ChangeStatusErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CHANGESTATUSERRORENUM, + __module__ = 'google.ads.googleads_v0.proto.errors.change_status_error_pb2' + , + __doc__ = """Container for enum describing possible change status errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.errors.ChangeStatusErrorEnum) + )) +_sym_db.RegisterMessage(ChangeStatusErrorEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\"com.google.ads.googleads.v0.errorsB\026ChangeStatusErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/errors/change_status_error_pb2_grpc.py b/google/ads/google_ads/v0/proto/errors/change_status_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/errors/change_status_error_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/errors/conversion_action_error_pb2.py b/google/ads/google_ads/v0/proto/errors/conversion_action_error_pb2.py new file mode 100644 index 000000000..507f35a8d --- /dev/null +++ b/google/ads/google_ads/v0/proto/errors/conversion_action_error_pb2.py @@ -0,0 +1,123 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/errors/conversion_action_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/errors/conversion_action_error.proto', + package='google.ads.googleads.v0.errors', + syntax='proto3', + serialized_pb=_b('\nBgoogle/ads/googleads_v0/proto/errors/conversion_action_error.proto\x12\x1egoogle.ads.googleads.v0.errors\"\xef\x02\n\x19\x43onversionActionErrorEnum\"\xd1\x02\n\x15\x43onversionActionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x02\x12\x14\n\x10\x44UPLICATE_APP_ID\x10\x03\x12\x37\n3TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD\x10\x04\x12\x31\n-BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION\x10\x05\x12)\n%DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED\x10\x06\x12\x1d\n\x19\x44\x41TA_DRIVEN_MODEL_EXPIRED\x10\x07\x12\x1b\n\x17\x44\x41TA_DRIVEN_MODEL_STALE\x10\x08\x12\x1d\n\x19\x44\x41TA_DRIVEN_MODEL_UNKNOWN\x10\tB\xd0\x01\n\"com.google.ads.googleads.v0.errorsB\x1a\x43onversionActionErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Errorsb\x06proto3') +) + + + +_CONVERSIONACTIONERRORENUM_CONVERSIONACTIONERROR = _descriptor.EnumDescriptor( + name='ConversionActionError', + full_name='google.ads.googleads.v0.errors.ConversionActionErrorEnum.ConversionActionError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_NAME', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_APP_ID', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION', index=5, number=5, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED', index=6, number=6, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATA_DRIVEN_MODEL_EXPIRED', index=7, number=7, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATA_DRIVEN_MODEL_STALE', index=8, number=8, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATA_DRIVEN_MODEL_UNKNOWN', index=9, number=9, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=133, + serialized_end=470, +) +_sym_db.RegisterEnumDescriptor(_CONVERSIONACTIONERRORENUM_CONVERSIONACTIONERROR) + + +_CONVERSIONACTIONERRORENUM = _descriptor.Descriptor( + name='ConversionActionErrorEnum', + full_name='google.ads.googleads.v0.errors.ConversionActionErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CONVERSIONACTIONERRORENUM_CONVERSIONACTIONERROR, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=103, + serialized_end=470, +) + +_CONVERSIONACTIONERRORENUM_CONVERSIONACTIONERROR.containing_type = _CONVERSIONACTIONERRORENUM +DESCRIPTOR.message_types_by_name['ConversionActionErrorEnum'] = _CONVERSIONACTIONERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ConversionActionErrorEnum = _reflection.GeneratedProtocolMessageType('ConversionActionErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONACTIONERRORENUM, + __module__ = 'google.ads.googleads_v0.proto.errors.conversion_action_error_pb2' + , + __doc__ = """Container for enum describing possible conversion action errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.errors.ConversionActionErrorEnum) + )) +_sym_db.RegisterMessage(ConversionActionErrorEnum) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\"com.google.ads.googleads.v0.errorsB\032ConversionActionErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/errors/conversion_action_error_pb2_grpc.py b/google/ads/google_ads/v0/proto/errors/conversion_action_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/errors/conversion_action_error_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/errors/errors_pb2.py b/google/ads/google_ads/v0/proto/errors/errors_pb2.py index e298e2bf6..9442caace 100644 --- a/google/ads/google_ads/v0/proto/errors/errors_pb2.py +++ b/google/ads/google_ads/v0/proto/errors/errors_pb2.py @@ -15,6 +15,7 @@ from google.ads.google_ads.v0.proto.common import policy_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_policy__pb2 from google.ads.google_ads.v0.proto.common import value_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_value__pb2 +from google.ads.google_ads.v0.proto.errors import account_budget_proposal_error_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_account__budget__proposal__error__pb2 from google.ads.google_ads.v0.proto.errors import ad_customizer_error_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__customizer__error__pb2 from google.ads.google_ads.v0.proto.errors import ad_error_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__error__pb2 from google.ads.google_ads.v0.proto.errors import ad_group_ad_error_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__group__ad__error__pb2 @@ -32,8 +33,10 @@ from google.ads.google_ads.v0.proto.errors import campaign_error_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_campaign__error__pb2 from google.ads.google_ads.v0.proto.errors import campaign_group_error_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_campaign__group__error__pb2 from google.ads.google_ads.v0.proto.errors import campaign_shared_set_error_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_campaign__shared__set__error__pb2 +from google.ads.google_ads.v0.proto.errors import change_status_error_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_change__status__error__pb2 from google.ads.google_ads.v0.proto.errors import collection_size_error_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_collection__size__error__pb2 from google.ads.google_ads.v0.proto.errors import context_error_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_context__error__pb2 +from google.ads.google_ads.v0.proto.errors import conversion_action_error_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_conversion__action__error__pb2 from google.ads.google_ads.v0.proto.errors import criterion_error_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_criterion__error__pb2 from google.ads.google_ads.v0.proto.errors import database_error_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_database__error__pb2 from google.ads.google_ads.v0.proto.errors import date_error_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_date__error__pb2 @@ -81,9 +84,9 @@ name='google/ads/googleads_v0/proto/errors/errors.proto', package='google.ads.googleads.v0.errors', syntax='proto3', - serialized_pb=_b('\n1google/ads/googleads_v0/proto/errors/errors.proto\x12\x1egoogle.ads.googleads.v0.errors\x1a\x31google/ads/googleads_v0/proto/common/policy.proto\x1a\x30google/ads/googleads_v0/proto/common/value.proto\x1a>google/ads/googleads_v0/proto/errors/ad_customizer_error.proto\x1a\x33google/ads/googleads_v0/proto/errors/ad_error.proto\x1agoogle/ads/googleads_v0/proto/errors/authorization_error.proto\x1a\x38google/ads/googleads_v0/proto/errors/bidding_error.proto\x1a\x41google/ads/googleads_v0/proto/errors/bidding_strategy_error.proto\x1a@google/ads/googleads_v0/proto/errors/campaign_budget_error.proto\x1a\x43google/ads/googleads_v0/proto/errors/campaign_criterion_error.proto\x1a\x39google/ads/googleads_v0/proto/errors/campaign_error.proto\x1a?google/ads/googleads_v0/proto/errors/campaign_group_error.proto\x1a\x44google/ads/googleads_v0/proto/errors/campaign_shared_set_error.proto\x1a@google/ads/googleads_v0/proto/errors/collection_size_error.proto\x1a\x38google/ads/googleads_v0/proto/errors/context_error.proto\x1a:google/ads/googleads_v0/proto/errors/criterion_error.proto\x1a\x39google/ads/googleads_v0/proto/errors/database_error.proto\x1a\x35google/ads/googleads_v0/proto/errors/date_error.proto\x1a;google/ads/googleads_v0/proto/errors/date_range_error.proto\x1a\x39google/ads/googleads_v0/proto/errors/distinct_error.proto\x1a\x35google/ads/googleads_v0/proto/errors/enum_error.proto\x1aIgoogle/ads/googleads_v0/proto/errors/feed_attribute_reference_error.proto\x1a\x36google/ads/googleads_v0/proto/errors/field_error.proto\x1a;google/ads/googleads_v0/proto/errors/field_mask_error.proto\x1a\x39google/ads/googleads_v0/proto/errors/function_error.proto\x1a\x41google/ads/googleads_v0/proto/errors/function_parsing_error.proto\x1a\x37google/ads/googleads_v0/proto/errors/header_error.proto\x1a\x33google/ads/googleads_v0/proto/errors/id_error.proto\x1a\x36google/ads/googleads_v0/proto/errors/image_error.proto\x1a\x39google/ads/googleads_v0/proto/errors/internal_error.proto\x1a?google/ads/googleads_v0/proto/errors/list_operation_error.proto\x1a=google/ads/googleads_v0/proto/errors/media_bundle_error.proto\x1a\x36google/ads/googleads_v0/proto/errors/media_error.proto\x1a;google/ads/googleads_v0/proto/errors/multiplier_error.proto\x1a\x37google/ads/googleads_v0/proto/errors/mutate_error.proto\x1a\x46google/ads/googleads_v0/proto/errors/new_resource_creation_error.proto\x1a:google/ads/googleads_v0/proto/errors/not_empty_error.proto\x1a\x35google/ads/googleads_v0/proto/errors/null_error.proto\x1aHgoogle/ads/googleads_v0/proto/errors/operation_access_denied_error.proto\x1a\x39google/ads/googleads_v0/proto/errors/operator_error.proto\x1a?google/ads/googleads_v0/proto/errors/policy_finding_error.proto\x1a\x36google/ads/googleads_v0/proto/errors/query_error.proto\x1a\x36google/ads/googleads_v0/proto/errors/quota_error.proto\x1a\x36google/ads/googleads_v0/proto/errors/range_error.proto\x1a?google/ads/googleads_v0/proto/errors/recommendation_error.proto\x1agoogle/ads/googleads_v0/proto/errors/string_format_error.proto\x1a>google/ads/googleads_v0/proto/errors/string_length_error.proto\x1a:google/ads/googleads_v0/proto/errors/url_field_error.proto\x1a\x1egoogle/protobuf/wrappers.proto\"R\n\x10GoogleAdsFailure\x12>\n\x06\x65rrors\x18\x01 \x03(\x0b\x32..google.ads.googleads.v0.errors.GoogleAdsError\"\x98\x02\n\x0eGoogleAdsError\x12=\n\nerror_code\x18\x01 \x01(\x0b\x32).google.ads.googleads.v0.errors.ErrorCode\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x36\n\x07trigger\x18\x03 \x01(\x0b\x32%.google.ads.googleads.v0.common.Value\x12?\n\x08location\x18\x04 \x01(\x0b\x32-.google.ads.googleads.v0.errors.ErrorLocation\x12=\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32,.google.ads.googleads.v0.errors.ErrorDetails\"\xdc-\n\tErrorCode\x12V\n\rrequest_error\x18\x01 \x01(\x0e\x32=.google.ads.googleads.v0.errors.RequestErrorEnum.RequestErrorH\x00\x12o\n\x16\x62idding_strategy_error\x18\x02 \x01(\x0e\x32M.google.ads.googleads.v0.errors.BiddingStrategyErrorEnum.BiddingStrategyErrorH\x00\x12Z\n\x0furl_field_error\x18\x03 \x01(\x0e\x32?.google.ads.googleads.v0.errors.UrlFieldErrorEnum.UrlFieldErrorH\x00\x12i\n\x14list_operation_error\x18\x04 \x01(\x0e\x32I.google.ads.googleads.v0.errors.ListOperationErrorEnum.ListOperationErrorH\x00\x12P\n\x0bquery_error\x18\x05 \x01(\x0e\x32\x39.google.ads.googleads.v0.errors.QueryErrorEnum.QueryErrorH\x00\x12S\n\x0cmutate_error\x18\x07 \x01(\x0e\x32;.google.ads.googleads.v0.errors.MutateErrorEnum.MutateErrorH\x00\x12]\n\x10\x66ield_mask_error\x18\x08 \x01(\x0e\x32\x41.google.ads.googleads.v0.errors.FieldMaskErrorEnum.FieldMaskErrorH\x00\x12h\n\x13\x61uthorization_error\x18\t \x01(\x0e\x32I.google.ads.googleads.v0.errors.AuthorizationErrorEnum.AuthorizationErrorH\x00\x12Y\n\x0einternal_error\x18\n \x01(\x0e\x32?.google.ads.googleads.v0.errors.InternalErrorEnum.InternalErrorH\x00\x12P\n\x0bquota_error\x18\x0b \x01(\x0e\x32\x39.google.ads.googleads.v0.errors.QuotaErrorEnum.QuotaErrorH\x00\x12G\n\x08\x61\x64_error\x18\x0c \x01(\x0e\x32\x33.google.ads.googleads.v0.errors.AdErrorEnum.AdErrorH\x00\x12W\n\x0e\x61\x64_group_error\x18\r \x01(\x0e\x32=.google.ads.googleads.v0.errors.AdGroupErrorEnum.AdGroupErrorH\x00\x12l\n\x15\x63\x61mpaign_budget_error\x18\x0e \x01(\x0e\x32K.google.ads.googleads.v0.errors.CampaignBudgetErrorEnum.CampaignBudgetErrorH\x00\x12Y\n\x0e\x63\x61mpaign_error\x18\x0f \x01(\x0e\x32?.google.ads.googleads.v0.errors.CampaignErrorEnum.CampaignErrorH\x00\x12k\n\x14\x61uthentication_error\x18\x11 \x01(\x0e\x32K.google.ads.googleads.v0.errors.AuthenticationErrorEnum.AuthenticationErrorH\x00\x12s\n\x18\x61\x64_group_criterion_error\x18\x12 \x01(\x0e\x32O.google.ads.googleads.v0.errors.AdGroupCriterionErrorEnum.AdGroupCriterionErrorH\x00\x12\x66\n\x13\x61\x64_customizer_error\x18\x13 \x01(\x0e\x32G.google.ads.googleads.v0.errors.AdCustomizerErrorEnum.AdCustomizerErrorH\x00\x12^\n\x11\x61\x64_group_ad_error\x18\x15 \x01(\x0e\x32\x41.google.ads.googleads.v0.errors.AdGroupAdErrorEnum.AdGroupAdErrorH\x00\x12]\n\x10\x61\x64_sharing_error\x18\x18 \x01(\x0e\x32\x41.google.ads.googleads.v0.errors.AdSharingErrorEnum.AdSharingErrorH\x00\x12J\n\tadx_error\x18\x19 \x01(\x0e\x32\x35.google.ads.googleads.v0.errors.AdxErrorEnum.AdxErrorH\x00\x12V\n\rbidding_error\x18\x1a \x01(\x0e\x32=.google.ads.googleads.v0.errors.BiddingErrorEnum.BiddingErrorH\x00\x12u\n\x18\x63\x61mpaign_criterion_error\x18\x1d \x01(\x0e\x32Q.google.ads.googleads.v0.errors.CampaignCriterionErrorEnum.CampaignCriterionErrorH\x00\x12l\n\x15\x63ollection_size_error\x18\x1f \x01(\x0e\x32K.google.ads.googleads.v0.errors.CollectionSizeErrorEnum.CollectionSizeErrorH\x00\x12\\\n\x0f\x63riterion_error\x18 \x01(\x0e\x32\x41.google.ads.googleads.v0.errors.CriterionErrorEnum.CriterionErrorH\x00\x12M\n\ndate_error\x18! \x01(\x0e\x32\x37.google.ads.googleads.v0.errors.DateErrorEnum.DateErrorH\x00\x12]\n\x10\x64\x61te_range_error\x18\" \x01(\x0e\x32\x41.google.ads.googleads.v0.errors.DateRangeErrorEnum.DateRangeErrorH\x00\x12Y\n\x0e\x64istinct_error\x18# \x01(\x0e\x32?.google.ads.googleads.v0.errors.DistinctErrorEnum.DistinctErrorH\x00\x12\x85\x01\n\x1e\x66\x65\x65\x64_attribute_reference_error\x18$ \x01(\x0e\x32[.google.ads.googleads.v0.errors.FeedAttributeReferenceErrorEnum.FeedAttributeReferenceErrorH\x00\x12Y\n\x0e\x66unction_error\x18% \x01(\x0e\x32?.google.ads.googleads.v0.errors.FunctionErrorEnum.FunctionErrorH\x00\x12o\n\x16\x66unction_parsing_error\x18& \x01(\x0e\x32M.google.ads.googleads.v0.errors.FunctionParsingErrorEnum.FunctionParsingErrorH\x00\x12G\n\x08id_error\x18\' \x01(\x0e\x32\x33.google.ads.googleads.v0.errors.IdErrorEnum.IdErrorH\x00\x12P\n\x0bimage_error\x18( \x01(\x0e\x32\x39.google.ads.googleads.v0.errors.ImageErrorEnum.ImageErrorH\x00\x12\x63\n\x12media_bundle_error\x18* \x01(\x0e\x32\x45.google.ads.googleads.v0.errors.MediaBundleErrorEnum.MediaBundleErrorH\x00\x12P\n\x0bmedia_error\x18+ \x01(\x0e\x32\x39.google.ads.googleads.v0.errors.MediaErrorEnum.MediaErrorH\x00\x12_\n\x10multiplier_error\x18, \x01(\x0e\x32\x43.google.ads.googleads.v0.errors.MultiplierErrorEnum.MultiplierErrorH\x00\x12|\n\x1bnew_resource_creation_error\x18- \x01(\x0e\x32U.google.ads.googleads.v0.errors.NewResourceCreationErrorEnum.NewResourceCreationErrorH\x00\x12Z\n\x0fnot_empty_error\x18. \x01(\x0e\x32?.google.ads.googleads.v0.errors.NotEmptyErrorEnum.NotEmptyErrorH\x00\x12M\n\nnull_error\x18/ \x01(\x0e\x32\x37.google.ads.googleads.v0.errors.NullErrorEnum.NullErrorH\x00\x12Y\n\x0eoperator_error\x18\x30 \x01(\x0e\x32?.google.ads.googleads.v0.errors.OperatorErrorEnum.OperatorErrorH\x00\x12P\n\x0brange_error\x18\x31 \x01(\x0e\x32\x39.google.ads.googleads.v0.errors.RangeErrorEnum.RangeErrorH\x00\x12k\n\x14recommendation_error\x18: \x01(\x0e\x32K.google.ads.googleads.v0.errors.RecommendationErrorEnum.RecommendationErrorH\x00\x12`\n\x11region_code_error\x18\x33 \x01(\x0e\x32\x43.google.ads.googleads.v0.errors.RegionCodeErrorEnum.RegionCodeErrorH\x00\x12V\n\rsetting_error\x18\x34 \x01(\x0e\x32=.google.ads.googleads.v0.errors.SettingErrorEnum.SettingErrorH\x00\x12\x66\n\x13string_format_error\x18\x35 \x01(\x0e\x32G.google.ads.googleads.v0.errors.StringFormatErrorEnum.StringFormatErrorH\x00\x12\x66\n\x13string_length_error\x18\x36 \x01(\x0e\x32G.google.ads.googleads.v0.errors.StringLengthErrorEnum.StringLengthErrorH\x00\x12\x82\x01\n\x1doperation_access_denied_error\x18\x37 \x01(\x0e\x32Y.google.ads.googleads.v0.errors.OperationAccessDeniedErrorEnum.OperationAccessDeniedErrorH\x00\x12\x7f\n\x1cresource_access_denied_error\x18\x38 \x01(\x0e\x32W.google.ads.googleads.v0.errors.ResourceAccessDeniedErrorEnum.ResourceAccessDeniedErrorH\x00\x12\x92\x01\n#resource_count_limit_exceeded_error\x18\x39 \x01(\x0e\x32\x63.google.ads.googleads.v0.errors.ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededErrorH\x00\x12z\n\x1b\x61\x64_group_bid_modifier_error\x18; \x01(\x0e\x32S.google.ads.googleads.v0.errors.AdGroupBidModifierErrorEnum.AdGroupBidModifierErrorH\x00\x12V\n\rcontext_error\x18< \x01(\x0e\x32=.google.ads.googleads.v0.errors.ContextErrorEnum.ContextErrorH\x00\x12P\n\x0b\x66ield_error\x18= \x01(\x0e\x32\x39.google.ads.googleads.v0.errors.FieldErrorEnum.FieldErrorH\x00\x12]\n\x10shared_set_error\x18> \x01(\x0e\x32\x41.google.ads.googleads.v0.errors.SharedSetErrorEnum.SharedSetErrorH\x00\x12o\n\x16shared_criterion_error\x18? \x01(\x0e\x32M.google.ads.googleads.v0.errors.SharedCriterionErrorEnum.SharedCriterionErrorH\x00\x12v\n\x19\x63\x61mpaign_shared_set_error\x18@ \x01(\x0e\x32Q.google.ads.googleads.v0.errors.CampaignSharedSetErrorEnum.CampaignSharedSetErrorH\x00\x12S\n\x0cheader_error\x18\x42 \x01(\x0e\x32;.google.ads.googleads.v0.errors.HeaderErrorEnum.HeaderErrorH\x00\x12Y\n\x0e\x64\x61tabase_error\x18\x43 \x01(\x0e\x32?.google.ads.googleads.v0.errors.DatabaseErrorEnum.DatabaseErrorH\x00\x12i\n\x14policy_finding_error\x18\x44 \x01(\x0e\x32I.google.ads.googleads.v0.errors.PolicyFindingErrorEnum.PolicyFindingErrorH\x00\x12i\n\x14\x63\x61mpaign_group_error\x18\x45 \x01(\x0e\x32I.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupErrorH\x00\x12M\n\nenum_error\x18\x46 \x01(\x0e\x32\x37.google.ads.googleads.v0.errors.EnumErrorEnum.EnumErrorH\x00\x42\x0c\n\nerror_code\"\xf6\x01\n\rErrorLocation\x12\x34\n\x0foperation_index\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12[\n\x13\x66ield_path_elements\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v0.errors.ErrorLocation.FieldPathElement\x1aR\n\x10\x46ieldPathElement\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12*\n\x05index\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xde\x01\n\x0c\x45rrorDetails\x12\x1e\n\x16unpublished_error_code\x18\x01 \x01(\t\x12X\n\x18policy_violation_details\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v0.errors.PolicyViolationDetails\x12T\n\x16policy_finding_details\x18\x03 \x01(\x0b\x32\x34.google.ads.googleads.v0.errors.PolicyFindingDetails\"\xb3\x01\n\x16PolicyViolationDetails\x12#\n\x1b\x65xternal_policy_description\x18\x02 \x01(\t\x12?\n\x03key\x18\x04 \x01(\x0b\x32\x32.google.ads.googleads.v0.common.PolicyViolationKey\x12\x1c\n\x14\x65xternal_policy_name\x18\x05 \x01(\t\x12\x15\n\ris_exemptible\x18\x06 \x01(\x08\"f\n\x14PolicyFindingDetails\x12N\n\x14policy_topic_entries\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v0.common.PolicyTopicEntryB\xc1\x01\n\"com.google.ads.googleads.v0.errorsB\x0b\x45rrorsProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Errorsb\x06proto3') + serialized_pb=_b('\n1google/ads/googleads_v0/proto/errors/errors.proto\x12\x1egoogle.ads.googleads.v0.errors\x1a\x31google/ads/googleads_v0/proto/common/policy.proto\x1a\x30google/ads/googleads_v0/proto/common/value.proto\x1aHgoogle/ads/googleads_v0/proto/errors/account_budget_proposal_error.proto\x1a>google/ads/googleads_v0/proto/errors/ad_customizer_error.proto\x1a\x33google/ads/googleads_v0/proto/errors/ad_error.proto\x1agoogle/ads/googleads_v0/proto/errors/authorization_error.proto\x1a\x38google/ads/googleads_v0/proto/errors/bidding_error.proto\x1a\x41google/ads/googleads_v0/proto/errors/bidding_strategy_error.proto\x1a@google/ads/googleads_v0/proto/errors/campaign_budget_error.proto\x1a\x43google/ads/googleads_v0/proto/errors/campaign_criterion_error.proto\x1a\x39google/ads/googleads_v0/proto/errors/campaign_error.proto\x1a?google/ads/googleads_v0/proto/errors/campaign_group_error.proto\x1a\x44google/ads/googleads_v0/proto/errors/campaign_shared_set_error.proto\x1a>google/ads/googleads_v0/proto/errors/change_status_error.proto\x1a@google/ads/googleads_v0/proto/errors/collection_size_error.proto\x1a\x38google/ads/googleads_v0/proto/errors/context_error.proto\x1a\x42google/ads/googleads_v0/proto/errors/conversion_action_error.proto\x1a:google/ads/googleads_v0/proto/errors/criterion_error.proto\x1a\x39google/ads/googleads_v0/proto/errors/database_error.proto\x1a\x35google/ads/googleads_v0/proto/errors/date_error.proto\x1a;google/ads/googleads_v0/proto/errors/date_range_error.proto\x1a\x39google/ads/googleads_v0/proto/errors/distinct_error.proto\x1a\x35google/ads/googleads_v0/proto/errors/enum_error.proto\x1aIgoogle/ads/googleads_v0/proto/errors/feed_attribute_reference_error.proto\x1a\x36google/ads/googleads_v0/proto/errors/field_error.proto\x1a;google/ads/googleads_v0/proto/errors/field_mask_error.proto\x1a\x39google/ads/googleads_v0/proto/errors/function_error.proto\x1a\x41google/ads/googleads_v0/proto/errors/function_parsing_error.proto\x1a\x37google/ads/googleads_v0/proto/errors/header_error.proto\x1a\x33google/ads/googleads_v0/proto/errors/id_error.proto\x1a\x36google/ads/googleads_v0/proto/errors/image_error.proto\x1a\x39google/ads/googleads_v0/proto/errors/internal_error.proto\x1a?google/ads/googleads_v0/proto/errors/list_operation_error.proto\x1a=google/ads/googleads_v0/proto/errors/media_bundle_error.proto\x1a\x36google/ads/googleads_v0/proto/errors/media_error.proto\x1a;google/ads/googleads_v0/proto/errors/multiplier_error.proto\x1a\x37google/ads/googleads_v0/proto/errors/mutate_error.proto\x1a\x46google/ads/googleads_v0/proto/errors/new_resource_creation_error.proto\x1a:google/ads/googleads_v0/proto/errors/not_empty_error.proto\x1a\x35google/ads/googleads_v0/proto/errors/null_error.proto\x1aHgoogle/ads/googleads_v0/proto/errors/operation_access_denied_error.proto\x1a\x39google/ads/googleads_v0/proto/errors/operator_error.proto\x1a?google/ads/googleads_v0/proto/errors/policy_finding_error.proto\x1a\x36google/ads/googleads_v0/proto/errors/query_error.proto\x1a\x36google/ads/googleads_v0/proto/errors/quota_error.proto\x1a\x36google/ads/googleads_v0/proto/errors/range_error.proto\x1a?google/ads/googleads_v0/proto/errors/recommendation_error.proto\x1agoogle/ads/googleads_v0/proto/errors/string_format_error.proto\x1a>google/ads/googleads_v0/proto/errors/string_length_error.proto\x1a:google/ads/googleads_v0/proto/errors/url_field_error.proto\x1a\x1egoogle/protobuf/wrappers.proto\"R\n\x10GoogleAdsFailure\x12>\n\x06\x65rrors\x18\x01 \x03(\x0b\x32..google.ads.googleads.v0.errors.GoogleAdsError\"\x98\x02\n\x0eGoogleAdsError\x12=\n\nerror_code\x18\x01 \x01(\x0b\x32).google.ads.googleads.v0.errors.ErrorCode\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x36\n\x07trigger\x18\x03 \x01(\x0b\x32%.google.ads.googleads.v0.common.Value\x12?\n\x08location\x18\x04 \x01(\x0b\x32-.google.ads.googleads.v0.errors.ErrorLocation\x12=\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32,.google.ads.googleads.v0.errors.ErrorDetails\"\xbd\x30\n\tErrorCode\x12V\n\rrequest_error\x18\x01 \x01(\x0e\x32=.google.ads.googleads.v0.errors.RequestErrorEnum.RequestErrorH\x00\x12o\n\x16\x62idding_strategy_error\x18\x02 \x01(\x0e\x32M.google.ads.googleads.v0.errors.BiddingStrategyErrorEnum.BiddingStrategyErrorH\x00\x12Z\n\x0furl_field_error\x18\x03 \x01(\x0e\x32?.google.ads.googleads.v0.errors.UrlFieldErrorEnum.UrlFieldErrorH\x00\x12i\n\x14list_operation_error\x18\x04 \x01(\x0e\x32I.google.ads.googleads.v0.errors.ListOperationErrorEnum.ListOperationErrorH\x00\x12P\n\x0bquery_error\x18\x05 \x01(\x0e\x32\x39.google.ads.googleads.v0.errors.QueryErrorEnum.QueryErrorH\x00\x12S\n\x0cmutate_error\x18\x07 \x01(\x0e\x32;.google.ads.googleads.v0.errors.MutateErrorEnum.MutateErrorH\x00\x12]\n\x10\x66ield_mask_error\x18\x08 \x01(\x0e\x32\x41.google.ads.googleads.v0.errors.FieldMaskErrorEnum.FieldMaskErrorH\x00\x12h\n\x13\x61uthorization_error\x18\t \x01(\x0e\x32I.google.ads.googleads.v0.errors.AuthorizationErrorEnum.AuthorizationErrorH\x00\x12Y\n\x0einternal_error\x18\n \x01(\x0e\x32?.google.ads.googleads.v0.errors.InternalErrorEnum.InternalErrorH\x00\x12P\n\x0bquota_error\x18\x0b \x01(\x0e\x32\x39.google.ads.googleads.v0.errors.QuotaErrorEnum.QuotaErrorH\x00\x12G\n\x08\x61\x64_error\x18\x0c \x01(\x0e\x32\x33.google.ads.googleads.v0.errors.AdErrorEnum.AdErrorH\x00\x12W\n\x0e\x61\x64_group_error\x18\r \x01(\x0e\x32=.google.ads.googleads.v0.errors.AdGroupErrorEnum.AdGroupErrorH\x00\x12l\n\x15\x63\x61mpaign_budget_error\x18\x0e \x01(\x0e\x32K.google.ads.googleads.v0.errors.CampaignBudgetErrorEnum.CampaignBudgetErrorH\x00\x12Y\n\x0e\x63\x61mpaign_error\x18\x0f \x01(\x0e\x32?.google.ads.googleads.v0.errors.CampaignErrorEnum.CampaignErrorH\x00\x12k\n\x14\x61uthentication_error\x18\x11 \x01(\x0e\x32K.google.ads.googleads.v0.errors.AuthenticationErrorEnum.AuthenticationErrorH\x00\x12s\n\x18\x61\x64_group_criterion_error\x18\x12 \x01(\x0e\x32O.google.ads.googleads.v0.errors.AdGroupCriterionErrorEnum.AdGroupCriterionErrorH\x00\x12\x66\n\x13\x61\x64_customizer_error\x18\x13 \x01(\x0e\x32G.google.ads.googleads.v0.errors.AdCustomizerErrorEnum.AdCustomizerErrorH\x00\x12^\n\x11\x61\x64_group_ad_error\x18\x15 \x01(\x0e\x32\x41.google.ads.googleads.v0.errors.AdGroupAdErrorEnum.AdGroupAdErrorH\x00\x12]\n\x10\x61\x64_sharing_error\x18\x18 \x01(\x0e\x32\x41.google.ads.googleads.v0.errors.AdSharingErrorEnum.AdSharingErrorH\x00\x12J\n\tadx_error\x18\x19 \x01(\x0e\x32\x35.google.ads.googleads.v0.errors.AdxErrorEnum.AdxErrorH\x00\x12V\n\rbidding_error\x18\x1a \x01(\x0e\x32=.google.ads.googleads.v0.errors.BiddingErrorEnum.BiddingErrorH\x00\x12u\n\x18\x63\x61mpaign_criterion_error\x18\x1d \x01(\x0e\x32Q.google.ads.googleads.v0.errors.CampaignCriterionErrorEnum.CampaignCriterionErrorH\x00\x12l\n\x15\x63ollection_size_error\x18\x1f \x01(\x0e\x32K.google.ads.googleads.v0.errors.CollectionSizeErrorEnum.CollectionSizeErrorH\x00\x12\\\n\x0f\x63riterion_error\x18 \x01(\x0e\x32\x41.google.ads.googleads.v0.errors.CriterionErrorEnum.CriterionErrorH\x00\x12M\n\ndate_error\x18! \x01(\x0e\x32\x37.google.ads.googleads.v0.errors.DateErrorEnum.DateErrorH\x00\x12]\n\x10\x64\x61te_range_error\x18\" \x01(\x0e\x32\x41.google.ads.googleads.v0.errors.DateRangeErrorEnum.DateRangeErrorH\x00\x12Y\n\x0e\x64istinct_error\x18# \x01(\x0e\x32?.google.ads.googleads.v0.errors.DistinctErrorEnum.DistinctErrorH\x00\x12\x85\x01\n\x1e\x66\x65\x65\x64_attribute_reference_error\x18$ \x01(\x0e\x32[.google.ads.googleads.v0.errors.FeedAttributeReferenceErrorEnum.FeedAttributeReferenceErrorH\x00\x12Y\n\x0e\x66unction_error\x18% \x01(\x0e\x32?.google.ads.googleads.v0.errors.FunctionErrorEnum.FunctionErrorH\x00\x12o\n\x16\x66unction_parsing_error\x18& \x01(\x0e\x32M.google.ads.googleads.v0.errors.FunctionParsingErrorEnum.FunctionParsingErrorH\x00\x12G\n\x08id_error\x18\' \x01(\x0e\x32\x33.google.ads.googleads.v0.errors.IdErrorEnum.IdErrorH\x00\x12P\n\x0bimage_error\x18( \x01(\x0e\x32\x39.google.ads.googleads.v0.errors.ImageErrorEnum.ImageErrorH\x00\x12\x63\n\x12media_bundle_error\x18* \x01(\x0e\x32\x45.google.ads.googleads.v0.errors.MediaBundleErrorEnum.MediaBundleErrorH\x00\x12P\n\x0bmedia_error\x18+ \x01(\x0e\x32\x39.google.ads.googleads.v0.errors.MediaErrorEnum.MediaErrorH\x00\x12_\n\x10multiplier_error\x18, \x01(\x0e\x32\x43.google.ads.googleads.v0.errors.MultiplierErrorEnum.MultiplierErrorH\x00\x12|\n\x1bnew_resource_creation_error\x18- \x01(\x0e\x32U.google.ads.googleads.v0.errors.NewResourceCreationErrorEnum.NewResourceCreationErrorH\x00\x12Z\n\x0fnot_empty_error\x18. \x01(\x0e\x32?.google.ads.googleads.v0.errors.NotEmptyErrorEnum.NotEmptyErrorH\x00\x12M\n\nnull_error\x18/ \x01(\x0e\x32\x37.google.ads.googleads.v0.errors.NullErrorEnum.NullErrorH\x00\x12Y\n\x0eoperator_error\x18\x30 \x01(\x0e\x32?.google.ads.googleads.v0.errors.OperatorErrorEnum.OperatorErrorH\x00\x12P\n\x0brange_error\x18\x31 \x01(\x0e\x32\x39.google.ads.googleads.v0.errors.RangeErrorEnum.RangeErrorH\x00\x12k\n\x14recommendation_error\x18: \x01(\x0e\x32K.google.ads.googleads.v0.errors.RecommendationErrorEnum.RecommendationErrorH\x00\x12`\n\x11region_code_error\x18\x33 \x01(\x0e\x32\x43.google.ads.googleads.v0.errors.RegionCodeErrorEnum.RegionCodeErrorH\x00\x12V\n\rsetting_error\x18\x34 \x01(\x0e\x32=.google.ads.googleads.v0.errors.SettingErrorEnum.SettingErrorH\x00\x12\x66\n\x13string_format_error\x18\x35 \x01(\x0e\x32G.google.ads.googleads.v0.errors.StringFormatErrorEnum.StringFormatErrorH\x00\x12\x66\n\x13string_length_error\x18\x36 \x01(\x0e\x32G.google.ads.googleads.v0.errors.StringLengthErrorEnum.StringLengthErrorH\x00\x12\x82\x01\n\x1doperation_access_denied_error\x18\x37 \x01(\x0e\x32Y.google.ads.googleads.v0.errors.OperationAccessDeniedErrorEnum.OperationAccessDeniedErrorH\x00\x12\x7f\n\x1cresource_access_denied_error\x18\x38 \x01(\x0e\x32W.google.ads.googleads.v0.errors.ResourceAccessDeniedErrorEnum.ResourceAccessDeniedErrorH\x00\x12\x92\x01\n#resource_count_limit_exceeded_error\x18\x39 \x01(\x0e\x32\x63.google.ads.googleads.v0.errors.ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededErrorH\x00\x12z\n\x1b\x61\x64_group_bid_modifier_error\x18; \x01(\x0e\x32S.google.ads.googleads.v0.errors.AdGroupBidModifierErrorEnum.AdGroupBidModifierErrorH\x00\x12V\n\rcontext_error\x18< \x01(\x0e\x32=.google.ads.googleads.v0.errors.ContextErrorEnum.ContextErrorH\x00\x12P\n\x0b\x66ield_error\x18= \x01(\x0e\x32\x39.google.ads.googleads.v0.errors.FieldErrorEnum.FieldErrorH\x00\x12]\n\x10shared_set_error\x18> \x01(\x0e\x32\x41.google.ads.googleads.v0.errors.SharedSetErrorEnum.SharedSetErrorH\x00\x12o\n\x16shared_criterion_error\x18? \x01(\x0e\x32M.google.ads.googleads.v0.errors.SharedCriterionErrorEnum.SharedCriterionErrorH\x00\x12v\n\x19\x63\x61mpaign_shared_set_error\x18@ \x01(\x0e\x32Q.google.ads.googleads.v0.errors.CampaignSharedSetErrorEnum.CampaignSharedSetErrorH\x00\x12r\n\x17\x63onversion_action_error\x18\x41 \x01(\x0e\x32O.google.ads.googleads.v0.errors.ConversionActionErrorEnum.ConversionActionErrorH\x00\x12S\n\x0cheader_error\x18\x42 \x01(\x0e\x32;.google.ads.googleads.v0.errors.HeaderErrorEnum.HeaderErrorH\x00\x12Y\n\x0e\x64\x61tabase_error\x18\x43 \x01(\x0e\x32?.google.ads.googleads.v0.errors.DatabaseErrorEnum.DatabaseErrorH\x00\x12i\n\x14policy_finding_error\x18\x44 \x01(\x0e\x32I.google.ads.googleads.v0.errors.PolicyFindingErrorEnum.PolicyFindingErrorH\x00\x12i\n\x14\x63\x61mpaign_group_error\x18\x45 \x01(\x0e\x32I.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupErrorH\x00\x12M\n\nenum_error\x18\x46 \x01(\x0e\x32\x37.google.ads.googleads.v0.errors.EnumErrorEnum.EnumErrorH\x00\x12\x82\x01\n\x1d\x61\x63\x63ount_budget_proposal_error\x18M \x01(\x0e\x32Y.google.ads.googleads.v0.errors.AccountBudgetProposalErrorEnum.AccountBudgetProposalErrorH\x00\x12\x66\n\x13\x63hange_status_error\x18O \x01(\x0e\x32G.google.ads.googleads.v0.errors.ChangeStatusErrorEnum.ChangeStatusErrorH\x00\x42\x0c\n\nerror_code\"\xf6\x01\n\rErrorLocation\x12\x34\n\x0foperation_index\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12[\n\x13\x66ield_path_elements\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v0.errors.ErrorLocation.FieldPathElement\x1aR\n\x10\x46ieldPathElement\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12*\n\x05index\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xde\x01\n\x0c\x45rrorDetails\x12\x1e\n\x16unpublished_error_code\x18\x01 \x01(\t\x12X\n\x18policy_violation_details\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v0.errors.PolicyViolationDetails\x12T\n\x16policy_finding_details\x18\x03 \x01(\x0b\x32\x34.google.ads.googleads.v0.errors.PolicyFindingDetails\"\xb3\x01\n\x16PolicyViolationDetails\x12#\n\x1b\x65xternal_policy_description\x18\x02 \x01(\t\x12?\n\x03key\x18\x04 \x01(\x0b\x32\x32.google.ads.googleads.v0.common.PolicyViolationKey\x12\x1c\n\x14\x65xternal_policy_name\x18\x05 \x01(\t\x12\x15\n\ris_exemptible\x18\x06 \x01(\x08\"f\n\x14PolicyFindingDetails\x12N\n\x14policy_topic_entries\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v0.common.PolicyTopicEntryB\xc1\x01\n\"com.google.ads.googleads.v0.errorsB\x0b\x45rrorsProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Errorsb\x06proto3') , - dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_policy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_value__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__customizer__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__group__ad__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__group__bid__modifier__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__group__criterion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__group__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__sharing__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_adx__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_authentication__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_authorization__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_bidding__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_bidding__strategy__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_campaign__budget__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_campaign__criterion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_campaign__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_campaign__group__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_campaign__shared__set__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_collection__size__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_context__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_criterion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_database__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_date__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_date__range__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_distinct__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_enum__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_feed__attribute__reference__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_field__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_field__mask__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_function__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_function__parsing__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_header__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_id__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_image__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_internal__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_list__operation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_media__bundle__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_media__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_multiplier__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_mutate__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_new__resource__creation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_not__empty__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_null__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_operation__access__denied__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_operator__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_policy__finding__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_query__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_quota__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_range__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_recommendation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_region__code__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_request__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_resource__access__denied__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_resource__count__limit__exceeded__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_setting__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_shared__criterion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_shared__set__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_string__format__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_string__length__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_url__field__error__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) + dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_policy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_value__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_account__budget__proposal__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__customizer__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__group__ad__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__group__bid__modifier__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__group__criterion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__group__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_ad__sharing__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_adx__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_authentication__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_authorization__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_bidding__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_bidding__strategy__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_campaign__budget__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_campaign__criterion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_campaign__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_campaign__group__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_campaign__shared__set__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_change__status__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_collection__size__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_context__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_conversion__action__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_criterion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_database__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_date__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_date__range__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_distinct__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_enum__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_feed__attribute__reference__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_field__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_field__mask__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_function__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_function__parsing__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_header__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_id__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_image__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_internal__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_list__operation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_media__bundle__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_media__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_multiplier__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_mutate__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_new__resource__creation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_not__empty__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_null__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_operation__access__denied__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_operator__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_policy__finding__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_query__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_quota__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_range__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_recommendation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_region__code__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_request__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_resource__access__denied__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_resource__count__limit__exceeded__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_setting__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_shared__criterion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_shared__set__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_string__format__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_string__length__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_url__field__error__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) @@ -114,8 +117,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3878, - serialized_end=3960, + serialized_start=4084, + serialized_end=4166, ) @@ -173,8 +176,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3963, - serialized_end=4243, + serialized_start=4169, + serialized_end=4449, ) @@ -564,40 +567,61 @@ is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='header_error', full_name='google.ads.googleads.v0.errors.ErrorCode.header_error', index=54, + name='conversion_action_error', full_name='google.ads.googleads.v0.errors.ErrorCode.conversion_action_error', index=54, + number=65, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='header_error', full_name='google.ads.googleads.v0.errors.ErrorCode.header_error', index=55, number=66, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='database_error', full_name='google.ads.googleads.v0.errors.ErrorCode.database_error', index=55, + name='database_error', full_name='google.ads.googleads.v0.errors.ErrorCode.database_error', index=56, number=67, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='policy_finding_error', full_name='google.ads.googleads.v0.errors.ErrorCode.policy_finding_error', index=56, + name='policy_finding_error', full_name='google.ads.googleads.v0.errors.ErrorCode.policy_finding_error', index=57, number=68, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='campaign_group_error', full_name='google.ads.googleads.v0.errors.ErrorCode.campaign_group_error', index=57, + name='campaign_group_error', full_name='google.ads.googleads.v0.errors.ErrorCode.campaign_group_error', index=58, number=69, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='enum_error', full_name='google.ads.googleads.v0.errors.ErrorCode.enum_error', index=58, + name='enum_error', full_name='google.ads.googleads.v0.errors.ErrorCode.enum_error', index=59, number=70, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='account_budget_proposal_error', full_name='google.ads.googleads.v0.errors.ErrorCode.account_budget_proposal_error', index=60, + number=77, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='change_status_error', full_name='google.ads.googleads.v0.errors.ErrorCode.change_status_error', index=61, + number=79, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -613,8 +637,8 @@ name='error_code', full_name='google.ads.googleads.v0.errors.ErrorCode.error_code', index=0, containing_type=None, fields=[]), ], - serialized_start=4246, - serialized_end=10098, + serialized_start=4452, + serialized_end=10657, ) @@ -651,8 +675,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=10265, - serialized_end=10347, + serialized_start=10824, + serialized_end=10906, ) _ERRORLOCATION = _descriptor.Descriptor( @@ -688,8 +712,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=10101, - serialized_end=10347, + serialized_start=10660, + serialized_end=10906, ) @@ -733,8 +757,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=10350, - serialized_end=10572, + serialized_start=10909, + serialized_end=11131, ) @@ -785,8 +809,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=10575, - serialized_end=10754, + serialized_start=11134, + serialized_end=11313, ) @@ -816,8 +840,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=10756, - serialized_end=10858, + serialized_start=11315, + serialized_end=11417, ) _GOOGLEADSFAILURE.fields_by_name['errors'].message_type = _GOOGLEADSERROR @@ -879,11 +903,14 @@ _ERRORCODE.fields_by_name['shared_set_error'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_shared__set__error__pb2._SHAREDSETERRORENUM_SHAREDSETERROR _ERRORCODE.fields_by_name['shared_criterion_error'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_shared__criterion__error__pb2._SHAREDCRITERIONERRORENUM_SHAREDCRITERIONERROR _ERRORCODE.fields_by_name['campaign_shared_set_error'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_campaign__shared__set__error__pb2._CAMPAIGNSHAREDSETERRORENUM_CAMPAIGNSHAREDSETERROR +_ERRORCODE.fields_by_name['conversion_action_error'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_conversion__action__error__pb2._CONVERSIONACTIONERRORENUM_CONVERSIONACTIONERROR _ERRORCODE.fields_by_name['header_error'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_header__error__pb2._HEADERERRORENUM_HEADERERROR _ERRORCODE.fields_by_name['database_error'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_database__error__pb2._DATABASEERRORENUM_DATABASEERROR _ERRORCODE.fields_by_name['policy_finding_error'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_policy__finding__error__pb2._POLICYFINDINGERRORENUM_POLICYFINDINGERROR _ERRORCODE.fields_by_name['campaign_group_error'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_campaign__group__error__pb2._CAMPAIGNGROUPERRORENUM_CAMPAIGNGROUPERROR _ERRORCODE.fields_by_name['enum_error'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_enum__error__pb2._ENUMERRORENUM_ENUMERROR +_ERRORCODE.fields_by_name['account_budget_proposal_error'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_account__budget__proposal__error__pb2._ACCOUNTBUDGETPROPOSALERRORENUM_ACCOUNTBUDGETPROPOSALERROR +_ERRORCODE.fields_by_name['change_status_error'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_errors_dot_change__status__error__pb2._CHANGESTATUSERRORENUM_CHANGESTATUSERROR _ERRORCODE.oneofs_by_name['error_code'].fields.append( _ERRORCODE.fields_by_name['request_error']) _ERRORCODE.fields_by_name['request_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] @@ -1046,6 +1073,9 @@ _ERRORCODE.oneofs_by_name['error_code'].fields.append( _ERRORCODE.fields_by_name['campaign_shared_set_error']) _ERRORCODE.fields_by_name['campaign_shared_set_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['conversion_action_error']) +_ERRORCODE.fields_by_name['conversion_action_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] _ERRORCODE.oneofs_by_name['error_code'].fields.append( _ERRORCODE.fields_by_name['header_error']) _ERRORCODE.fields_by_name['header_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] @@ -1061,6 +1091,12 @@ _ERRORCODE.oneofs_by_name['error_code'].fields.append( _ERRORCODE.fields_by_name['enum_error']) _ERRORCODE.fields_by_name['enum_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['account_budget_proposal_error']) +_ERRORCODE.fields_by_name['account_budget_proposal_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['change_status_error']) +_ERRORCODE.fields_by_name['change_status_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] _ERRORLOCATION_FIELDPATHELEMENT.fields_by_name['index'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE _ERRORLOCATION_FIELDPATHELEMENT.containing_type = _ERRORLOCATION _ERRORLOCATION.fields_by_name['operation_index'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE @@ -1236,6 +1272,8 @@ The reasons for the shared criterion error campaign_shared_set_error: The reasons for the campaign shared set error + conversion_action_error: + The reasons for the conversion action error header_error: The reasons for the header error. database_error: @@ -1246,6 +1284,10 @@ The reasons for campaign group error. enum_error: The reason for enum error. + account_budget_proposal_error: + The reasons for account budget proposal errors. + change_status_error: + The reasons for the change status error """, # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.errors.ErrorCode) )) diff --git a/google/ads/google_ads/v0/proto/errors/mutate_error_pb2.py b/google/ads/google_ads/v0/proto/errors/mutate_error_pb2.py index 1ce893fe9..1ffc878d9 100644 --- a/google/ads/google_ads/v0/proto/errors/mutate_error_pb2.py +++ b/google/ads/google_ads/v0/proto/errors/mutate_error_pb2.py @@ -19,7 +19,7 @@ name='google/ads/googleads_v0/proto/errors/mutate_error.proto', package='google.ads.googleads.v0.errors', syntax='proto3', - serialized_pb=_b('\n7google/ads/googleads_v0/proto/errors/mutate_error.proto\x12\x1egoogle.ads.googleads.v0.errors\"\x99\x01\n\x0fMutateErrorEnum\"\x85\x01\n\x0bMutateError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12RESOURCE_NOT_FOUND\x10\x03\x12!\n\x1dID_EXISTS_IN_MULTIPLE_MUTATES\x10\x07\x12\x1d\n\x19INCONSISTENT_FIELD_VALUES\x10\x08\x42\xc6\x01\n\"com.google.ads.googleads.v0.errorsB\x10MutateErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Errorsb\x06proto3') + serialized_pb=_b('\n7google/ads/googleads_v0/proto/errors/mutate_error.proto\x12\x1egoogle.ads.googleads.v0.errors\"\xb1\x01\n\x0fMutateErrorEnum\"\x9d\x01\n\x0bMutateError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12RESOURCE_NOT_FOUND\x10\x03\x12!\n\x1dID_EXISTS_IN_MULTIPLE_MUTATES\x10\x07\x12\x1d\n\x19INCONSISTENT_FIELD_VALUES\x10\x08\x12\x16\n\x12MUTATE_NOT_ALLOWED\x10\tB\xc6\x01\n\"com.google.ads.googleads.v0.errorsB\x10MutateErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Errorsb\x06proto3') ) @@ -50,11 +50,15 @@ name='INCONSISTENT_FIELD_VALUES', index=4, number=8, options=None, type=None), + _descriptor.EnumValueDescriptor( + name='MUTATE_NOT_ALLOWED', index=5, number=9, + options=None, + type=None), ], containing_type=None, options=None, serialized_start=112, - serialized_end=245, + serialized_end=269, ) _sym_db.RegisterEnumDescriptor(_MUTATEERRORENUM_MUTATEERROR) @@ -80,7 +84,7 @@ oneofs=[ ], serialized_start=92, - serialized_end=245, + serialized_end=269, ) _MUTATEERRORENUM_MUTATEERROR.containing_type = _MUTATEERRORENUM diff --git a/google/ads/google_ads/v0/proto/errors/policy_finding_error_pb2.py b/google/ads/google_ads/v0/proto/errors/policy_finding_error_pb2.py index 9571ce5d5..564f23adc 100644 --- a/google/ads/google_ads/v0/proto/errors/policy_finding_error_pb2.py +++ b/google/ads/google_ads/v0/proto/errors/policy_finding_error_pb2.py @@ -19,7 +19,7 @@ name='google/ads/googleads_v0/proto/errors/policy_finding_error.proto', package='google.ads.googleads.v0.errors', syntax='proto3', - serialized_pb=_b('\n?google/ads/googleads_v0/proto/errors/policy_finding_error.proto\x12\x1egoogle.ads.googleads.v0.errors\"`\n\x16PolicyFindingErrorEnum\"F\n\x12PolicyFindingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0ePOLICY_FINDING\x10\x02\x42\xcd\x01\n\"com.google.ads.googleads.v0.errorsB\x17PolicyFindingErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Errorsb\x06proto3') + serialized_pb=_b('\n?google/ads/googleads_v0/proto/errors/policy_finding_error.proto\x12\x1egoogle.ads.googleads.v0.errors\"|\n\x16PolicyFindingErrorEnum\"b\n\x12PolicyFindingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0ePOLICY_FINDING\x10\x02\x12\x1a\n\x16POLICY_TOPIC_NOT_FOUND\x10\x03\x42\xcd\x01\n\"com.google.ads.googleads.v0.errorsB\x17PolicyFindingErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Errorsb\x06proto3') ) @@ -42,11 +42,15 @@ name='POLICY_FINDING', index=2, number=2, options=None, type=None), + _descriptor.EnumValueDescriptor( + name='POLICY_TOPIC_NOT_FOUND', index=3, number=3, + options=None, + type=None), ], containing_type=None, options=None, serialized_start=125, - serialized_end=195, + serialized_end=223, ) _sym_db.RegisterEnumDescriptor(_POLICYFINDINGERRORENUM_POLICYFINDINGERROR) @@ -72,7 +76,7 @@ oneofs=[ ], serialized_start=99, - serialized_end=195, + serialized_end=223, ) _POLICYFINDINGERRORENUM_POLICYFINDINGERROR.containing_type = _POLICYFINDINGERRORENUM diff --git a/google/ads/google_ads/v0/proto/errors/recommendation_error_pb2.py b/google/ads/google_ads/v0/proto/errors/recommendation_error_pb2.py index 4e5832a34..4705fe2bb 100644 --- a/google/ads/google_ads/v0/proto/errors/recommendation_error_pb2.py +++ b/google/ads/google_ads/v0/proto/errors/recommendation_error_pb2.py @@ -19,7 +19,7 @@ name='google/ads/googleads_v0/proto/errors/recommendation_error.proto', package='google.ads.googleads.v0.errors', syntax='proto3', - serialized_pb=_b('\n?google/ads/googleads_v0/proto/errors/recommendation_error.proto\x12\x1egoogle.ads.googleads.v0.errors\"\x8d\x02\n\x17RecommendationErrorEnum\"\xf1\x01\n\x13RecommendationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1b\n\x17\x42UDGET_AMOUNT_TOO_SMALL\x10\x02\x12\x1b\n\x17\x42UDGET_AMOUNT_TOO_LARGE\x10\x03\x12\x19\n\x15INVALID_BUDGET_AMOUNT\x10\x04\x12\x10\n\x0cPOLICY_ERROR\x10\x05\x12\x16\n\x12INVALID_BID_AMOUNT\x10\x06\x12\x19\n\x15\x41\x44GROUP_KEYWORD_LIMIT\x10\x07\x12\"\n\x1eRECOMMENDATION_ALREADY_APPLIED\x10\x08\x42\xce\x01\n\"com.google.ads.googleads.v0.errorsB\x18RecommendationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Errorsb\x06proto3') + serialized_pb=_b('\n?google/ads/googleads_v0/proto/errors/recommendation_error.proto\x12\x1egoogle.ads.googleads.v0.errors\"\xad\x02\n\x17RecommendationErrorEnum\"\x91\x02\n\x13RecommendationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1b\n\x17\x42UDGET_AMOUNT_TOO_SMALL\x10\x02\x12\x1b\n\x17\x42UDGET_AMOUNT_TOO_LARGE\x10\x03\x12\x19\n\x15INVALID_BUDGET_AMOUNT\x10\x04\x12\x10\n\x0cPOLICY_ERROR\x10\x05\x12\x16\n\x12INVALID_BID_AMOUNT\x10\x06\x12\x19\n\x15\x41\x44GROUP_KEYWORD_LIMIT\x10\x07\x12\"\n\x1eRECOMMENDATION_ALREADY_APPLIED\x10\x08\x12\x1e\n\x1aRECOMMENDATION_INVALIDATED\x10\tB\xce\x01\n\"com.google.ads.googleads.v0.errorsB\x18RecommendationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Errorsb\x06proto3') ) @@ -66,11 +66,15 @@ name='RECOMMENDATION_ALREADY_APPLIED', index=8, number=8, options=None, type=None), + _descriptor.EnumValueDescriptor( + name='RECOMMENDATION_INVALIDATED', index=9, number=9, + options=None, + type=None), ], containing_type=None, options=None, serialized_start=128, - serialized_end=369, + serialized_end=401, ) _sym_db.RegisterEnumDescriptor(_RECOMMENDATIONERRORENUM_RECOMMENDATIONERROR) @@ -96,7 +100,7 @@ oneofs=[ ], serialized_start=100, - serialized_end=369, + serialized_end=401, ) _RECOMMENDATIONERRORENUM_RECOMMENDATIONERROR.containing_type = _RECOMMENDATIONERRORENUM diff --git a/google/ads/google_ads/v0/proto/errors/resource_count_limit_exceeded_error_pb2.py b/google/ads/google_ads/v0/proto/errors/resource_count_limit_exceeded_error_pb2.py index 2cc95b140..90c18f3f8 100644 --- a/google/ads/google_ads/v0/proto/errors/resource_count_limit_exceeded_error_pb2.py +++ b/google/ads/google_ads/v0/proto/errors/resource_count_limit_exceeded_error_pb2.py @@ -19,7 +19,7 @@ name='google/ads/googleads_v0/proto/errors/resource_count_limit_exceeded_error.proto', package='google.ads.googleads.v0.errors', syntax='proto3', - serialized_pb=_b('\nNgoogle/ads/googleads_v0/proto/errors/resource_count_limit_exceeded_error.proto\x12\x1egoogle.ads.googleads.v0.errors\"\x89\x02\n#ResourceCountLimitExceededErrorEnum\"\xe1\x01\n\x1fResourceCountLimitExceededError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rACCOUNT_LIMIT\x10\x02\x12\x12\n\x0e\x43\x41MPAIGN_LIMIT\x10\x03\x12\x11\n\rADGROUP_LIMIT\x10\x04\x12\x15\n\x11\x41\x44_GROUP_AD_LIMIT\x10\x05\x12\x1c\n\x18\x41\x44_GROUP_CRITERION_LIMIT\x10\x06\x12\x14\n\x10SHARED_SET_LIMIT\x10\x07\x12\x1b\n\x17MATCHING_FUNCTION_LIMIT\x10\x08\x42\xda\x01\n\"com.google.ads.googleads.v0.errorsB$ResourceCountLimitExceededErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Errorsb\x06proto3') + serialized_pb=_b('\nNgoogle/ads/googleads_v0/proto/errors/resource_count_limit_exceeded_error.proto\x12\x1egoogle.ads.googleads.v0.errors\"\xaa\x02\n#ResourceCountLimitExceededErrorEnum\"\x82\x02\n\x1fResourceCountLimitExceededError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rACCOUNT_LIMIT\x10\x02\x12\x12\n\x0e\x43\x41MPAIGN_LIMIT\x10\x03\x12\x11\n\rADGROUP_LIMIT\x10\x04\x12\x15\n\x11\x41\x44_GROUP_AD_LIMIT\x10\x05\x12\x1c\n\x18\x41\x44_GROUP_CRITERION_LIMIT\x10\x06\x12\x14\n\x10SHARED_SET_LIMIT\x10\x07\x12\x1b\n\x17MATCHING_FUNCTION_LIMIT\x10\x08\x12\x1f\n\x1bRESPONSE_ROW_LIMIT_EXCEEDED\x10\tB\xda\x01\n\"com.google.ads.googleads.v0.errorsB$ResourceCountLimitExceededErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V0.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V0\\Errorsb\x06proto3') ) @@ -66,11 +66,15 @@ name='MATCHING_FUNCTION_LIMIT', index=8, number=8, options=None, type=None), + _descriptor.EnumValueDescriptor( + name='RESPONSE_ROW_LIMIT_EXCEEDED', index=9, number=9, + options=None, + type=None), ], containing_type=None, options=None, serialized_start=155, - serialized_end=380, + serialized_end=413, ) _sym_db.RegisterEnumDescriptor(_RESOURCECOUNTLIMITEXCEEDEDERRORENUM_RESOURCECOUNTLIMITEXCEEDEDERROR) @@ -96,7 +100,7 @@ oneofs=[ ], serialized_start=115, - serialized_end=380, + serialized_end=413, ) _RESOURCECOUNTLIMITEXCEEDEDERRORENUM_RESOURCECOUNTLIMITEXCEEDEDERROR.containing_type = _RESOURCECOUNTLIMITEXCEEDEDERRORENUM diff --git a/google/ads/google_ads/v0/proto/resources/account_budget_pb2.py b/google/ads/google_ads/v0/proto/resources/account_budget_pb2.py new file mode 100644 index 000000000..fa065ad98 --- /dev/null +++ b/google/ads/google_ads/v0/proto/resources/account_budget_pb2.py @@ -0,0 +1,81 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/resources/account_budget.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/resources/account_budget.proto', + package='google.ads.googleads.v0.resources', + syntax='proto3', + serialized_pb=_b('\n\n\x16proposed_end_date_time\x18\x13 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x01\x12V\n\x16proposed_end_time_type\x18\t \x01(\x0e\x32\x34.google.ads.googleads.v0.enums.TimeTypeEnum.TimeTypeH\x01\x12\x45\n\x1eproposed_spending_limit_micros\x18\n \x01(\x0b\x32\x1b.google.protobuf.Int64ValueH\x02\x12n\n\x1cproposed_spending_limit_type\x18\x0b \x01(\x0e\x32\x46.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitTypeH\x02\x42\x15\n\x13proposed_start_timeB\x13\n\x11proposed_end_timeB\x19\n\x17proposed_spending_limitB\xdf\x01\n%com.google.ads.googleads.v0.resourcesB\x1a\x41\x63\x63ountBudgetProposalProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v0/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V0.Resources\xca\x02!Google\\Ads\\GoogleAds\\V0\\Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_account__budget__proposal__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_account__budget__proposal__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_spending__limit__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_time__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) + + + + +_ACCOUNTBUDGETPROPOSAL = _descriptor.Descriptor( + name='AccountBudgetProposal', + full_name='google.ads.googleads.v0.resources.AccountBudgetProposal', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.id', index=1, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='billing_setup', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.billing_setup', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='account_budget', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.account_budget', index=3, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposal_type', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.proposal_type', index=4, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.status', index=5, + number=15, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_name', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.proposed_name', index=6, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_purchase_order_number', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.proposed_purchase_order_number', index=7, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_notes', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.proposed_notes', index=8, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='creation_date_time', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.creation_date_time', index=9, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approval_date_time', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.approval_date_time', index=10, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_start_date_time', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.proposed_start_date_time', index=11, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_start_time_type', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.proposed_start_time_type', index=12, + number=7, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_end_date_time', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.proposed_end_date_time', index=13, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_end_time_type', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.proposed_end_time_type', index=14, + number=9, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_spending_limit_micros', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.proposed_spending_limit_micros', index=15, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_spending_limit_type', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.proposed_spending_limit_type', index=16, + number=11, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='proposed_start_time', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.proposed_start_time', + index=0, containing_type=None, fields=[]), + _descriptor.OneofDescriptor( + name='proposed_end_time', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.proposed_end_time', + index=1, containing_type=None, fields=[]), + _descriptor.OneofDescriptor( + name='proposed_spending_limit', full_name='google.ads.googleads.v0.resources.AccountBudgetProposal.proposed_spending_limit', + index=2, containing_type=None, fields=[]), + ], + serialized_start=403, + serialized_end=1671, +) + +_ACCOUNTBUDGETPROPOSAL.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['billing_setup'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['account_budget'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposal_type'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_account__budget__proposal__type__pb2._ACCOUNTBUDGETPROPOSALTYPEENUM_ACCOUNTBUDGETPROPOSALTYPE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_account__budget__proposal__status__pb2._ACCOUNTBUDGETPROPOSALSTATUSENUM_ACCOUNTBUDGETPROPOSALSTATUS +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_purchase_order_number'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_notes'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['creation_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approval_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_time_type'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_time_type'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_type'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_spending__limit__type__pb2._SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE +_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_start_time'].fields.append( + _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_date_time']) +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_date_time'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_start_time'] +_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_start_time'].fields.append( + _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_time_type']) +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_time_type'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_start_time'] +_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_end_time'].fields.append( + _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_date_time']) +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_date_time'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_end_time'] +_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_end_time'].fields.append( + _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_time_type']) +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_time_type'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_end_time'] +_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_spending_limit'].fields.append( + _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_micros']) +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_micros'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_spending_limit'] +_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_spending_limit'].fields.append( + _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_type']) +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_type'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_spending_limit'] +DESCRIPTOR.message_types_by_name['AccountBudgetProposal'] = _ACCOUNTBUDGETPROPOSAL +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AccountBudgetProposal = _reflection.GeneratedProtocolMessageType('AccountBudgetProposal', (_message.Message,), dict( + DESCRIPTOR = _ACCOUNTBUDGETPROPOSAL, + __module__ = 'google.ads.googleads_v0.proto.resources.account_budget_proposal_pb2' + , + __doc__ = """An account-level budget proposal. + + All fields prefixed with 'proposed' may not necessarily be applied + directly. For example, proposed spending limits may be adjusted before + their application. This is true if the 'proposed' field has an + 'approved' counterpart, to be introduced in a future version. + + Please note that the proposal type (proposal\_type) changes which fields + are required and which must remain empty. + + + Attributes: + resource_name: + The resource name of the proposal. AccountBudgetProposal + resource names have the form: ``customers/{customer_id}/accou + ntBudgetProposals/{account_budget_proposal_id}`` + id: + The ID of the proposal. + billing_setup: + The resource name of the billing setup associated with this + proposal. + account_budget: + The resource name of the account-level budget associated with + this proposal. + proposal_type: + The type of this proposal, e.g. END to end the budget + associated with this proposal. + status: + The status of this proposal. When a new proposal is created, + the status defaults to PENDING. + proposed_name: + The name to assign to the account-level budget. + proposed_purchase_order_number: + A purchase order number is a value that enables the user to + help them reference this budget in their monthly invoices. + proposed_notes: + Notes associated with this budget. + creation_date_time: + The date time when this account-level budget proposal was + created, which is not the same as its approval date time, if + applicable. + approval_date_time: + The date time when this account-level budget was approved, if + applicable. + proposed_start_time: + The proposed start date time of the account-level budget, + which cannot be in the past. + proposed_start_date_time: + The proposed start date time in yyyy-MM-dd HH:mm:ss format. + proposed_start_time_type: + The proposed start date time as a well-defined type, e.g. NOW. + proposed_end_time: + The proposed end date time of the account-level budget, which + cannot be in the past. + proposed_end_date_time: + The proposed end date time in yyyy-MM-dd HH:mm:ss format. + proposed_end_time_type: + The proposed end date time as a well-defined type, e.g. + INDEFINITE. + proposed_spending_limit: + The proposed spending limit. + proposed_spending_limit_micros: + The proposed spending limit in micros. One million is + equivalent to one unit. + proposed_spending_limit_type: + The proposed spending limit as a well-defined type, e.g. + INFINITE. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.AccountBudgetProposal) + )) +_sym_db.RegisterMessage(AccountBudgetProposal) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n%com.google.ads.googleads.v0.resourcesB\032AccountBudgetProposalProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v0/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Resources\312\002!Google\\Ads\\GoogleAds\\V0\\Resources')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/resources/account_budget_proposal_pb2_grpc.py b/google/ads/google_ads/v0/proto/resources/account_budget_proposal_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/resources/account_budget_proposal_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/resources/ad_group_ad_pb2.py b/google/ads/google_ads/v0/proto/resources/ad_group_ad_pb2.py index 978e5b0dd..ec0cd07fe 100644 --- a/google/ads/google_ads/v0/proto/resources/ad_group_ad_pb2.py +++ b/google/ads/google_ads/v0/proto/resources/ad_group_ad_pb2.py @@ -13,7 +13,10 @@ _sym_db = _symbol_database.Default() +from google.ads.google_ads.v0.proto.common import policy_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_policy__pb2 from google.ads.google_ads.v0.proto.enums import ad_group_ad_status_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_ad__group__ad__status__pb2 +from google.ads.google_ads.v0.proto.enums import policy_approval_status_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_policy__approval__status__pb2 +from google.ads.google_ads.v0.proto.enums import policy_review_status_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_policy__review__status__pb2 from google.ads.google_ads.v0.proto.resources import ad_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__pb2 from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 @@ -22,9 +25,9 @@ name='google/ads/googleads_v0/proto/resources/ad_group_ad.proto', package='google.ads.googleads.v0.resources', syntax='proto3', - serialized_pb=_b('\n9google/ads/googleads_v0/proto/resources/ad_group_ad.proto\x12!google.ads.googleads.v0.resources\x1agoogle/ads/googleads_v0/proto/enums/policy_review_status.proto\x1a\x30google/ads/googleads_v0/proto/resources/ad.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xac\x02\n\tAdGroupAd\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12R\n\x06status\x18\x03 \x01(\x0e\x32\x42.google.ads.googleads.v0.enums.AdGroupAdStatusEnum.AdGroupAdStatus\x12.\n\x08\x61\x64_group\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x02\x61\x64\x18\x05 \x01(\x0b\x32%.google.ads.googleads.v0.resources.Ad\x12Q\n\x0epolicy_summary\x18\x06 \x01(\x0b\x32\x39.google.ads.googleads.v0.resources.AdGroupAdPolicySummary\"\xb0\x02\n\x16\x41\x64GroupAdPolicySummary\x12N\n\x14policy_topic_entries\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v0.common.PolicyTopicEntry\x12_\n\rreview_status\x18\x02 \x01(\x0e\x32H.google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus\x12\x65\n\x0f\x61pproval_status\x18\x03 \x01(\x0e\x32L.google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatusB\xd3\x01\n%com.google.ads.googleads.v0.resourcesB\x0e\x41\x64GroupAdProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v0/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V0.Resources\xca\x02!Google\\Ads\\GoogleAds\\V0\\Resourcesb\x06proto3') , - dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_ad__group__ad__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) + dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_policy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_ad__group__ad__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_policy__approval__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_policy__review__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) @@ -64,6 +67,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='policy_summary', full_name='google.ads.googleads.v0.resources.AdGroupAd.policy_summary', index=4, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -76,14 +86,64 @@ extension_ranges=[], oneofs=[ ], - serialized_start=241, - serialized_end=458, + serialized_start=422, + serialized_end=722, +) + + +_ADGROUPADPOLICYSUMMARY = _descriptor.Descriptor( + name='AdGroupAdPolicySummary', + full_name='google.ads.googleads.v0.resources.AdGroupAdPolicySummary', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='policy_topic_entries', full_name='google.ads.googleads.v0.resources.AdGroupAdPolicySummary.policy_topic_entries', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='review_status', full_name='google.ads.googleads.v0.resources.AdGroupAdPolicySummary.review_status', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approval_status', full_name='google.ads.googleads.v0.resources.AdGroupAdPolicySummary.approval_status', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=725, + serialized_end=1029, ) _ADGROUPAD.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_ad__group__ad__status__pb2._ADGROUPADSTATUSENUM_ADGROUPADSTATUS _ADGROUPAD.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _ADGROUPAD.fields_by_name['ad'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__pb2._AD +_ADGROUPAD.fields_by_name['policy_summary'].message_type = _ADGROUPADPOLICYSUMMARY +_ADGROUPADPOLICYSUMMARY.fields_by_name['policy_topic_entries'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_policy__pb2._POLICYTOPICENTRY +_ADGROUPADPOLICYSUMMARY.fields_by_name['review_status'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_policy__review__status__pb2._POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS +_ADGROUPADPOLICYSUMMARY.fields_by_name['approval_status'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_policy__approval__status__pb2._POLICYAPPROVALSTATUSENUM_POLICYAPPROVALSTATUS DESCRIPTOR.message_types_by_name['AdGroupAd'] = _ADGROUPAD +DESCRIPTOR.message_types_by_name['AdGroupAdPolicySummary'] = _ADGROUPADPOLICYSUMMARY _sym_db.RegisterFileDescriptor(DESCRIPTOR) AdGroupAd = _reflection.GeneratedProtocolMessageType('AdGroupAd', (_message.Message,), dict( @@ -105,11 +165,33 @@ used in WHERE clauses. ad: The ad. + policy_summary: + Policy information for the ad. """, # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.AdGroupAd) )) _sym_db.RegisterMessage(AdGroupAd) +AdGroupAdPolicySummary = _reflection.GeneratedProtocolMessageType('AdGroupAdPolicySummary', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPADPOLICYSUMMARY, + __module__ = 'google.ads.googleads_v0.proto.resources.ad_group_ad_pb2' + , + __doc__ = """Contains policy information for an ad. + + + Attributes: + policy_topic_entries: + The list of policy findings for this ad. + review_status: + Where in the review process this ad is. + approval_status: + The overall approval status of this ad, calculated based on + the status of its individual policy topic entries. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.AdGroupAdPolicySummary) + )) +_sym_db.RegisterMessage(AdGroupAdPolicySummary) + DESCRIPTOR.has_options = True DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n%com.google.ads.googleads.v0.resourcesB\016AdGroupAdProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v0/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Resources\312\002!Google\\Ads\\GoogleAds\\V0\\Resources')) diff --git a/google/ads/google_ads/v0/proto/resources/ad_pb2.py b/google/ads/google_ads/v0/proto/resources/ad_pb2.py index f7cd4d4fb..091a67492 100644 --- a/google/ads/google_ads/v0/proto/resources/ad_pb2.py +++ b/google/ads/google_ads/v0/proto/resources/ad_pb2.py @@ -16,6 +16,7 @@ from google.ads.google_ads.v0.proto.common import ad_type_infos_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_ad__type__infos__pb2 from google.ads.google_ads.v0.proto.common import custom_parameter_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_custom__parameter__pb2 from google.ads.google_ads.v0.proto.enums import ad_type_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_ad__type__pb2 +from google.ads.google_ads.v0.proto.enums import device_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_device__pb2 from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 @@ -23,9 +24,9 @@ name='google/ads/googleads_v0/proto/resources/ad.proto', package='google.ads.googleads.v0.resources', syntax='proto3', - serialized_pb=_b('\n0google/ads/googleads_v0/proto/resources/ad.proto\x12!google.ads.googleads.v0.resources\x1a\x38google/ads/googleads_v0/proto/common/ad_type_infos.proto\x1a;google/ads/googleads_v0/proto/common/custom_parameter.proto\x1a\x31google/ads/googleads_v0/proto/enums/ad_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x9c\x08\n\x02\x41\x64\x12\'\n\x02id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\nfinal_urls\x18\x02 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x66inal_mobile_urls\x18\x10 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15tracking_url_template\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n\x15url_custom_parameters\x18\n \x03(\x0b\x32/.google.ads.googleads.v0.common.CustomParameter\x12\x31\n\x0b\x64isplay_url\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12>\n\x04type\x18\x05 \x01(\x0e\x32\x30.google.ads.googleads.v0.enums.AdTypeEnum.AdType\x12=\n\x07text_ad\x18\x06 \x01(\x0b\x32*.google.ads.googleads.v0.common.TextAdInfoH\x00\x12N\n\x10\x65xpanded_text_ad\x18\x07 \x01(\x0b\x32\x32.google.ads.googleads.v0.common.ExpandedTextAdInfoH\x00\x12P\n\x11\x64ynamic_search_ad\x18\x08 \x01(\x0b\x32\x33.google.ads.googleads.v0.common.DynamicSearchAdInfoH\x00\x12X\n\x15responsive_display_ad\x18\t \x01(\x0b\x32\x37.google.ads.googleads.v0.common.ResponsiveDisplayAdInfoH\x00\x12\x46\n\x0c\x63\x61ll_only_ad\x18\r \x01(\x0b\x32..google.ads.googleads.v0.common.CallOnlyAdInfoH\x00\x12\x61\n\x1a\x65xpanded_dynamic_search_ad\x18\x0e \x01(\x0b\x32;.google.ads.googleads.v0.common.ExpandedDynamicSearchAdInfoH\x00\x12?\n\x08hotel_ad\x18\x0f \x01(\x0b\x32+.google.ads.googleads.v0.common.HotelAdInfoH\x00\x12P\n\x11shopping_smart_ad\x18\x11 \x01(\x0b\x32\x33.google.ads.googleads.v0.common.ShoppingSmartAdInfoH\x00\x42\t\n\x07\x61\x64_dataB\xcc\x01\n%com.google.ads.googleads.v0.resourcesB\x07\x41\x64ProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v0/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V0.Resources\xca\x02!Google\\Ads\\GoogleAds\\V0\\Resourcesb\x06proto3') + serialized_pb=_b('\n0google/ads/googleads_v0/proto/resources/ad.proto\x12!google.ads.googleads.v0.resources\x1a\x38google/ads/googleads_v0/proto/common/ad_type_infos.proto\x1a;google/ads/googleads_v0/proto/common/custom_parameter.proto\x1a\x31google/ads/googleads_v0/proto/enums/ad_type.proto\x1a\x30google/ads/googleads_v0/proto/enums/device.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xf8\t\n\x02\x41\x64\x12\'\n\x02id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\nfinal_urls\x18\x02 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x66inal_mobile_urls\x18\x10 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15tracking_url_template\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n\x15url_custom_parameters\x18\n \x03(\x0b\x32/.google.ads.googleads.v0.common.CustomParameter\x12\x31\n\x0b\x64isplay_url\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12>\n\x04type\x18\x05 \x01(\x0e\x32\x30.google.ads.googleads.v0.enums.AdTypeEnum.AdType\x12\x37\n\x13\x61\x64\x64\x65\x64_by_google_ads\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12K\n\x11\x64\x65vice_preference\x18\x14 \x01(\x0e\x32\x30.google.ads.googleads.v0.enums.DeviceEnum.Device\x12=\n\x07text_ad\x18\x06 \x01(\x0b\x32*.google.ads.googleads.v0.common.TextAdInfoH\x00\x12N\n\x10\x65xpanded_text_ad\x18\x07 \x01(\x0b\x32\x32.google.ads.googleads.v0.common.ExpandedTextAdInfoH\x00\x12P\n\x11\x64ynamic_search_ad\x18\x08 \x01(\x0b\x32\x33.google.ads.googleads.v0.common.DynamicSearchAdInfoH\x00\x12X\n\x15responsive_display_ad\x18\t \x01(\x0b\x32\x37.google.ads.googleads.v0.common.ResponsiveDisplayAdInfoH\x00\x12\x46\n\x0c\x63\x61ll_only_ad\x18\r \x01(\x0b\x32..google.ads.googleads.v0.common.CallOnlyAdInfoH\x00\x12\x61\n\x1a\x65xpanded_dynamic_search_ad\x18\x0e \x01(\x0b\x32;.google.ads.googleads.v0.common.ExpandedDynamicSearchAdInfoH\x00\x12?\n\x08hotel_ad\x18\x0f \x01(\x0b\x32+.google.ads.googleads.v0.common.HotelAdInfoH\x00\x12P\n\x11shopping_smart_ad\x18\x11 \x01(\x0b\x32\x33.google.ads.googleads.v0.common.ShoppingSmartAdInfoH\x00\x12T\n\x13shopping_product_ad\x18\x12 \x01(\x0b\x32\x35.google.ads.googleads.v0.common.ShoppingProductAdInfoH\x00\x42\t\n\x07\x61\x64_dataB\xcc\x01\n%com.google.ads.googleads.v0.resourcesB\x07\x41\x64ProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v0/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V0.Resources\xca\x02!Google\\Ads\\GoogleAds\\V0\\Resourcesb\x06proto3') , - dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_ad__type__infos__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_custom__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_ad__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) + dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_ad__type__infos__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_custom__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_ad__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_device__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) @@ -87,61 +88,82 @@ is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='text_ad', full_name='google.ads.googleads.v0.resources.Ad.text_ad', index=7, + name='added_by_google_ads', full_name='google.ads.googleads.v0.resources.Ad.added_by_google_ads', index=7, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='device_preference', full_name='google.ads.googleads.v0.resources.Ad.device_preference', index=8, + number=20, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='text_ad', full_name='google.ads.googleads.v0.resources.Ad.text_ad', index=9, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='expanded_text_ad', full_name='google.ads.googleads.v0.resources.Ad.expanded_text_ad', index=8, + name='expanded_text_ad', full_name='google.ads.googleads.v0.resources.Ad.expanded_text_ad', index=10, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='dynamic_search_ad', full_name='google.ads.googleads.v0.resources.Ad.dynamic_search_ad', index=9, + name='dynamic_search_ad', full_name='google.ads.googleads.v0.resources.Ad.dynamic_search_ad', index=11, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='responsive_display_ad', full_name='google.ads.googleads.v0.resources.Ad.responsive_display_ad', index=10, + name='responsive_display_ad', full_name='google.ads.googleads.v0.resources.Ad.responsive_display_ad', index=12, number=9, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='call_only_ad', full_name='google.ads.googleads.v0.resources.Ad.call_only_ad', index=11, + name='call_only_ad', full_name='google.ads.googleads.v0.resources.Ad.call_only_ad', index=13, number=13, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='expanded_dynamic_search_ad', full_name='google.ads.googleads.v0.resources.Ad.expanded_dynamic_search_ad', index=12, + name='expanded_dynamic_search_ad', full_name='google.ads.googleads.v0.resources.Ad.expanded_dynamic_search_ad', index=14, number=14, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='hotel_ad', full_name='google.ads.googleads.v0.resources.Ad.hotel_ad', index=13, + name='hotel_ad', full_name='google.ads.googleads.v0.resources.Ad.hotel_ad', index=15, number=15, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='shopping_smart_ad', full_name='google.ads.googleads.v0.resources.Ad.shopping_smart_ad', index=14, + name='shopping_smart_ad', full_name='google.ads.googleads.v0.resources.Ad.shopping_smart_ad', index=16, number=17, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shopping_product_ad', full_name='google.ads.googleads.v0.resources.Ad.shopping_product_ad', index=17, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -157,8 +179,8 @@ name='ad_data', full_name='google.ads.googleads.v0.resources.Ad.ad_data', index=0, containing_type=None, fields=[]), ], - serialized_start=290, - serialized_end=1342, + serialized_start=340, + serialized_end=1612, ) _AD.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE @@ -168,6 +190,8 @@ _AD.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER _AD.fields_by_name['display_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _AD.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_ad__type__pb2._ADTYPEENUM_ADTYPE +_AD.fields_by_name['added_by_google_ads'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_AD.fields_by_name['device_preference'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_device__pb2._DEVICEENUM_DEVICE _AD.fields_by_name['text_ad'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_ad__type__infos__pb2._TEXTADINFO _AD.fields_by_name['expanded_text_ad'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_ad__type__infos__pb2._EXPANDEDTEXTADINFO _AD.fields_by_name['dynamic_search_ad'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_ad__type__infos__pb2._DYNAMICSEARCHADINFO @@ -176,6 +200,7 @@ _AD.fields_by_name['expanded_dynamic_search_ad'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_ad__type__infos__pb2._EXPANDEDDYNAMICSEARCHADINFO _AD.fields_by_name['hotel_ad'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_ad__type__infos__pb2._HOTELADINFO _AD.fields_by_name['shopping_smart_ad'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_ad__type__infos__pb2._SHOPPINGSMARTADINFO +_AD.fields_by_name['shopping_product_ad'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_ad__type__infos__pb2._SHOPPINGPRODUCTADINFO _AD.oneofs_by_name['ad_data'].fields.append( _AD.fields_by_name['text_ad']) _AD.fields_by_name['text_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] @@ -200,6 +225,9 @@ _AD.oneofs_by_name['ad_data'].fields.append( _AD.fields_by_name['shopping_smart_ad']) _AD.fields_by_name['shopping_smart_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['shopping_product_ad']) +_AD.fields_by_name['shopping_product_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] DESCRIPTOR.message_types_by_name['Ad'] = _AD _sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -230,6 +258,19 @@ formats. type: The type of ad. + added_by_google_ads: + Indicates if this ad was automatically added by Google Ads and + not by a user. For example, this could happen when ads are + automatically created as suggestions for new ads based on + knowledge of how existing ads are performing. + device_preference: + The device preference for the ad. You can only specify a + preference for mobile devices. When this preference is set the + ad will be preferred over other ads when being displayed on a + mobile device. The ad can still be displayed on other device + types, e.g. if no other ads are available. If unspecified (no + device preference), all devices are targeted. This is only + supported by some ad types. ad_data: Details pertinent to the ad type. Exactly one value must be set. @@ -253,6 +294,8 @@ Details pertaining to a hotel ad. shopping_smart_ad: Details pertaining to a Smart Shopping ad. + shopping_product_ad: + Details pertaining to a Shopping product ad. """, # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.Ad) )) diff --git a/google/ads/google_ads/v0/proto/resources/billing_setup_pb2.py b/google/ads/google_ads/v0/proto/resources/billing_setup_pb2.py new file mode 100644 index 000000000..d607562a6 --- /dev/null +++ b/google/ads/google_ads/v0/proto/resources/billing_setup_pb2.py @@ -0,0 +1,166 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/resources/billing_setup.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v0.proto.enums import billing_setup_status_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_billing__setup__status__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/resources/billing_setup.proto', + package='google.ads.googleads.v0.resources', + syntax='proto3', + serialized_pb=_b('\n;google/ads/googleads_v0/proto/resources/billing_setup.proto\x12!google.ads.googleads.v0.resources\x1a>google/ads/googleads_v0/proto/enums/billing_setup_status.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xdd\x03\n\x0c\x42illingSetup\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12X\n\x06status\x18\x03 \x01(\x0e\x32H.google.ads.googleads.v0.enums.BillingSetupStatusEnum.BillingSetupStatus\x12\x39\n\x13payments_account_id\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15payments_account_name\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x13payments_profile_id\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15payments_profile_name\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x43\n\x1dsecondary_payments_profile_id\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xd6\x01\n%com.google.ads.googleads.v0.resourcesB\x11\x42illingSetupProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v0/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V0.Resources\xca\x02!Google\\Ads\\GoogleAds\\V0\\Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_billing__setup__status__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) + + + + +_BILLINGSETUP = _descriptor.Descriptor( + name='BillingSetup', + full_name='google.ads.googleads.v0.resources.BillingSetup', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v0.resources.BillingSetup.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v0.resources.BillingSetup.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v0.resources.BillingSetup.status', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='payments_account_id', full_name='google.ads.googleads.v0.resources.BillingSetup.payments_account_id', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='payments_account_name', full_name='google.ads.googleads.v0.resources.BillingSetup.payments_account_name', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='payments_profile_id', full_name='google.ads.googleads.v0.resources.BillingSetup.payments_profile_id', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='payments_profile_name', full_name='google.ads.googleads.v0.resources.BillingSetup.payments_profile_name', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='secondary_payments_profile_id', full_name='google.ads.googleads.v0.resources.BillingSetup.secondary_payments_profile_id', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=195, + serialized_end=672, +) + +_BILLINGSETUP.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_BILLINGSETUP.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_billing__setup__status__pb2._BILLINGSETUPSTATUSENUM_BILLINGSETUPSTATUS +_BILLINGSETUP.fields_by_name['payments_account_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_BILLINGSETUP.fields_by_name['payments_account_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_BILLINGSETUP.fields_by_name['payments_profile_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_BILLINGSETUP.fields_by_name['payments_profile_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_BILLINGSETUP.fields_by_name['secondary_payments_profile_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['BillingSetup'] = _BILLINGSETUP +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +BillingSetup = _reflection.GeneratedProtocolMessageType('BillingSetup', (_message.Message,), dict( + DESCRIPTOR = _BILLINGSETUP, + __module__ = 'google.ads.googleads_v0.proto.resources.billing_setup_pb2' + , + __doc__ = """A billing setup across Ads and Payments systems; an association between + a Payments account and an advertiser. A billing setup is specific to one + advertiser. + + + Attributes: + resource_name: + The resource name of the billing setup. BillingSetup resource + names have the form: + ``customers/{customer_id}/billingSetups/{billing_setup_id}`` + id: + The ID of the billing setup. + status: + The status of the billing setup. + payments_account_id: + A 16 digit id used to identify the Payments account associated + with the billing setup. This must be passed as a string with + dashes, e.g. "1234-5678-9012-3456". + payments_account_name: + The name of the Payments account associated with the billing + setup. This enables the user to specify a meaningful name for + a Payments account to aid in reconciling monthly invoices. + This name will be printed in the monthly invoices. + payments_profile_id: + A 12 digit id used to identify the Payments profile associated + with the billing setup. This must be passed in as a string + with dashes, e.g. "1234-5678-9012". + payments_profile_name: + The name of the Payments profile associated with the billing + setup. + secondary_payments_profile_id: + A secondary payments profile id present in uncommon + situations, e.g. when a sequential liability agreement has + been arranged. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.BillingSetup) + )) +_sym_db.RegisterMessage(BillingSetup) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n%com.google.ads.googleads.v0.resourcesB\021BillingSetupProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v0/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Resources\312\002!Google\\Ads\\GoogleAds\\V0\\Resources')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/resources/billing_setup_pb2_grpc.py b/google/ads/google_ads/v0/proto/resources/billing_setup_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/resources/billing_setup_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/resources/campaign_pb2.py b/google/ads/google_ads/v0/proto/resources/campaign_pb2.py index 9ce6c499c..9dd9983c3 100644 --- a/google/ads/google_ads/v0/proto/resources/campaign_pb2.py +++ b/google/ads/google_ads/v0/proto/resources/campaign_pb2.py @@ -28,7 +28,7 @@ name='google/ads/googleads_v0/proto/resources/campaign.proto', package='google.ads.googleads.v0.resources', syntax='proto3', - serialized_pb=_b('\n6google/ads/googleads_v0/proto/resources/campaign.proto\x12!google.ads.googleads.v0.resources\x1a\x32google/ads/googleads_v0/proto/common/bidding.proto\x1a;google/ads/googleads_v0/proto/common/custom_parameter.proto\x1aHgoogle/ads/googleads_v0/proto/enums/ad_serving_optimization_status.proto\x1a\x46google/ads/googleads_v0/proto/enums/advertising_channel_sub_type.proto\x1a\x42google/ads/googleads_v0/proto/enums/advertising_channel_type.proto\x1a?google/ads/googleads_v0/proto/enums/bidding_strategy_type.proto\x1a\x41google/ads/googleads_v0/proto/enums/campaign_serving_status.proto\x1a\x39google/ads/googleads_v0/proto/enums/campaign_status.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x98\x17\n\x08\x43\x61mpaign\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12*\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12P\n\x06status\x18\x05 \x01(\x0e\x32@.google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus\x12\x66\n\x0eserving_status\x18\x15 \x01(\x0e\x32N.google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus\x12\x82\x01\n\x1e\x61\x64_serving_optimization_status\x18\x08 \x01(\x0e\x32Z.google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus\x12r\n\x18\x61\x64vertising_channel_type\x18\t \x01(\x0e\x32P.google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType\x12|\n\x1c\x61\x64vertising_channel_sub_type\x18\n \x01(\x0e\x32V.google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType\x12;\n\x15tracking_url_template\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n\x15url_custom_parameters\x18\x0c \x03(\x0b\x32/.google.ads.googleads.v0.common.CustomParameter\x12U\n\x10network_settings\x18\x0e \x01(\x0b\x32;.google.ads.googleads.v0.resources.Campaign.NetworkSettings\x12S\n\rhotel_setting\x18 \x01(\x0b\x32<.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo\x12g\n\x1a\x64ynamic_search_ads_setting\x18! \x01(\x0b\x32\x43.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting\x12U\n\x10shopping_setting\x18$ \x01(\x0b\x32;.google.ads.googleads.v0.resources.Campaign.ShoppingSetting\x12\x35\n\x0f\x63\x61mpaign_budget\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12i\n\x15\x62idding_strategy_type\x18\x16 \x01(\x0e\x32J.google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType\x12\x30\n\nstart_date\x18\x13 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0e\x63\x61mpaign_group\x18# \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08\x65nd_date\x18\x14 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x10\x62idding_strategy\x18\x17 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12?\n\nmanual_cpc\x18\x18 \x01(\x0b\x32).google.ads.googleads.v0.common.ManualCpcH\x00\x12?\n\nmanual_cpm\x18\x19 \x01(\x0b\x32).google.ads.googleads.v0.common.ManualCpmH\x00\x12S\n\x14maximize_conversions\x18\x1e \x01(\x0b\x32\x33.google.ads.googleads.v0.common.MaximizeConversionsH\x00\x12\\\n\x19maximize_conversion_value\x18\x1f \x01(\x0b\x32\x37.google.ads.googleads.v0.common.MaximizeConversionValueH\x00\x12?\n\ntarget_cpa\x18\x1a \x01(\x0b\x32).google.ads.googleads.v0.common.TargetCpaH\x00\x12\x41\n\x0btarget_roas\x18\x1d \x01(\x0b\x32*.google.ads.googleads.v0.common.TargetRoasH\x00\x12\x43\n\x0ctarget_spend\x18\x1b \x01(\x0b\x32+.google.ads.googleads.v0.common.TargetSpendH\x00\x12\x41\n\x0bpercent_cpc\x18\" \x01(\x0b\x32*.google.ads.googleads.v0.common.PercentCpcH\x00\x1a\x85\x02\n\x0fNetworkSettings\x12\x38\n\x14target_google_search\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x39\n\x15target_search_network\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12:\n\x16target_content_network\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x41\n\x1dtarget_partner_search_network\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x1aH\n\x10HotelSettingInfo\x12\x34\n\x0fhotel_center_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x1a\xec\x01\n\x17\x44ynamicSearchAdsSetting\x12\x31\n\x0b\x64omain_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlanguage_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x16use_supplied_urls_only\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12-\n\x08\x66\x65\x65\x64_ids\x18\x04 \x03(\x0b\x32\x1b.google.protobuf.Int64Value\x1a\xe2\x01\n\x0fShoppingSetting\x12\x30\n\x0bmerchant_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\rsales_country\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x11\x63\x61mpaign_priority\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x30\n\x0c\x65nable_local\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x1b\n\x19\x63\x61mpaign_bidding_strategyB\xd2\x01\n%com.google.ads.googleads.v0.resourcesB\rCampaignProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v0/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V0.Resources\xca\x02!Google\\Ads\\GoogleAds\\V0\\Resourcesb\x06proto3') + serialized_pb=_b('\n6google/ads/googleads_v0/proto/resources/campaign.proto\x12!google.ads.googleads.v0.resources\x1a\x32google/ads/googleads_v0/proto/common/bidding.proto\x1a;google/ads/googleads_v0/proto/common/custom_parameter.proto\x1aHgoogle/ads/googleads_v0/proto/enums/ad_serving_optimization_status.proto\x1a\x46google/ads/googleads_v0/proto/enums/advertising_channel_sub_type.proto\x1a\x42google/ads/googleads_v0/proto/enums/advertising_channel_type.proto\x1a?google/ads/googleads_v0/proto/enums/bidding_strategy_type.proto\x1a\x41google/ads/googleads_v0/proto/enums/campaign_serving_status.proto\x1a\x39google/ads/googleads_v0/proto/enums/campaign_status.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xd9\x17\n\x08\x43\x61mpaign\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12*\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12P\n\x06status\x18\x05 \x01(\x0e\x32@.google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus\x12\x66\n\x0eserving_status\x18\x15 \x01(\x0e\x32N.google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus\x12\x82\x01\n\x1e\x61\x64_serving_optimization_status\x18\x08 \x01(\x0e\x32Z.google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus\x12r\n\x18\x61\x64vertising_channel_type\x18\t \x01(\x0e\x32P.google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType\x12|\n\x1c\x61\x64vertising_channel_sub_type\x18\n \x01(\x0e\x32V.google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType\x12;\n\x15tracking_url_template\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n\x15url_custom_parameters\x18\x0c \x03(\x0b\x32/.google.ads.googleads.v0.common.CustomParameter\x12U\n\x10network_settings\x18\x0e \x01(\x0b\x32;.google.ads.googleads.v0.resources.Campaign.NetworkSettings\x12S\n\rhotel_setting\x18 \x01(\x0b\x32<.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo\x12g\n\x1a\x64ynamic_search_ads_setting\x18! \x01(\x0b\x32\x43.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting\x12U\n\x10shopping_setting\x18$ \x01(\x0b\x32;.google.ads.googleads.v0.resources.Campaign.ShoppingSetting\x12\x35\n\x0f\x63\x61mpaign_budget\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12i\n\x15\x62idding_strategy_type\x18\x16 \x01(\x0e\x32J.google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType\x12\x30\n\nstart_date\x18\x13 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0e\x63\x61mpaign_group\x18# \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08\x65nd_date\x18\x14 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x10\x62idding_strategy\x18\x17 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12?\n\nmanual_cpc\x18\x18 \x01(\x0b\x32).google.ads.googleads.v0.common.ManualCpcH\x00\x12?\n\nmanual_cpm\x18\x19 \x01(\x0b\x32).google.ads.googleads.v0.common.ManualCpmH\x00\x12?\n\nmanual_cpv\x18% \x01(\x0b\x32).google.ads.googleads.v0.common.ManualCpvH\x00\x12S\n\x14maximize_conversions\x18\x1e \x01(\x0b\x32\x33.google.ads.googleads.v0.common.MaximizeConversionsH\x00\x12\\\n\x19maximize_conversion_value\x18\x1f \x01(\x0b\x32\x37.google.ads.googleads.v0.common.MaximizeConversionValueH\x00\x12?\n\ntarget_cpa\x18\x1a \x01(\x0b\x32).google.ads.googleads.v0.common.TargetCpaH\x00\x12\x41\n\x0btarget_roas\x18\x1d \x01(\x0b\x32*.google.ads.googleads.v0.common.TargetRoasH\x00\x12\x43\n\x0ctarget_spend\x18\x1b \x01(\x0b\x32+.google.ads.googleads.v0.common.TargetSpendH\x00\x12\x41\n\x0bpercent_cpc\x18\" \x01(\x0b\x32*.google.ads.googleads.v0.common.PercentCpcH\x00\x1a\x85\x02\n\x0fNetworkSettings\x12\x38\n\x14target_google_search\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x39\n\x15target_search_network\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12:\n\x16target_content_network\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x41\n\x1dtarget_partner_search_network\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x1aH\n\x10HotelSettingInfo\x12\x34\n\x0fhotel_center_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x1a\xec\x01\n\x17\x44ynamicSearchAdsSetting\x12\x31\n\x0b\x64omain_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlanguage_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x16use_supplied_urls_only\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12-\n\x08\x66\x65\x65\x64_ids\x18\x04 \x03(\x0b\x32\x1b.google.protobuf.Int64Value\x1a\xe2\x01\n\x0fShoppingSetting\x12\x30\n\x0bmerchant_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\rsales_country\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x11\x63\x61mpaign_priority\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x30\n\x0c\x65nable_local\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x1b\n\x19\x63\x61mpaign_bidding_strategyB\xd2\x01\n%com.google.ads.googleads.v0.resourcesB\rCampaignProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v0/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V0.Resources\xca\x02!Google\\Ads\\GoogleAds\\V0\\Resourcesb\x06proto3') , dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_bidding__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_custom__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_ad__serving__optimization__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_advertising__channel__sub__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_advertising__channel__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_bidding__strategy__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_campaign__serving__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_campaign__status__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) @@ -82,8 +82,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2780, - serialized_end=3041, + serialized_start=2845, + serialized_end=3106, ) _CAMPAIGN_HOTELSETTINGINFO = _descriptor.Descriptor( @@ -112,8 +112,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3043, - serialized_end=3115, + serialized_start=3108, + serialized_end=3180, ) _CAMPAIGN_DYNAMICSEARCHADSSETTING = _descriptor.Descriptor( @@ -163,8 +163,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3118, - serialized_end=3354, + serialized_start=3183, + serialized_end=3419, ) _CAMPAIGN_SHOPPINGSETTING = _descriptor.Descriptor( @@ -214,8 +214,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3357, - serialized_end=3583, + serialized_start=3422, + serialized_end=3648, ) _CAMPAIGN = _descriptor.Descriptor( @@ -380,42 +380,49 @@ is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='maximize_conversions', full_name='google.ads.googleads.v0.resources.Campaign.maximize_conversions', index=22, + name='manual_cpv', full_name='google.ads.googleads.v0.resources.Campaign.manual_cpv', index=22, + number=37, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='maximize_conversions', full_name='google.ads.googleads.v0.resources.Campaign.maximize_conversions', index=23, number=30, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='maximize_conversion_value', full_name='google.ads.googleads.v0.resources.Campaign.maximize_conversion_value', index=23, + name='maximize_conversion_value', full_name='google.ads.googleads.v0.resources.Campaign.maximize_conversion_value', index=24, number=31, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='target_cpa', full_name='google.ads.googleads.v0.resources.Campaign.target_cpa', index=24, + name='target_cpa', full_name='google.ads.googleads.v0.resources.Campaign.target_cpa', index=25, number=26, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='target_roas', full_name='google.ads.googleads.v0.resources.Campaign.target_roas', index=25, + name='target_roas', full_name='google.ads.googleads.v0.resources.Campaign.target_roas', index=26, number=29, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='target_spend', full_name='google.ads.googleads.v0.resources.Campaign.target_spend', index=26, + name='target_spend', full_name='google.ads.googleads.v0.resources.Campaign.target_spend', index=27, number=27, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='percent_cpc', full_name='google.ads.googleads.v0.resources.Campaign.percent_cpc', index=27, + name='percent_cpc', full_name='google.ads.googleads.v0.resources.Campaign.percent_cpc', index=28, number=34, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -437,7 +444,7 @@ index=0, containing_type=None, fields=[]), ], serialized_start=644, - serialized_end=3612, + serialized_end=3677, ) _CAMPAIGN_NETWORKSETTINGS.fields_by_name['target_google_search'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE @@ -478,6 +485,7 @@ _CAMPAIGN.fields_by_name['bidding_strategy'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _CAMPAIGN.fields_by_name['manual_cpc'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_bidding__pb2._MANUALCPC _CAMPAIGN.fields_by_name['manual_cpm'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_bidding__pb2._MANUALCPM +_CAMPAIGN.fields_by_name['manual_cpv'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_bidding__pb2._MANUALCPV _CAMPAIGN.fields_by_name['maximize_conversions'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_bidding__pb2._MAXIMIZECONVERSIONS _CAMPAIGN.fields_by_name['maximize_conversion_value'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_bidding__pb2._MAXIMIZECONVERSIONVALUE _CAMPAIGN.fields_by_name['target_cpa'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_bidding__pb2._TARGETCPA @@ -493,6 +501,9 @@ _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( _CAMPAIGN.fields_by_name['manual_cpm']) _CAMPAIGN.fields_by_name['manual_cpm'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] +_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( + _CAMPAIGN.fields_by_name['manual_cpv']) +_CAMPAIGN.fields_by_name['manual_cpv'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( _CAMPAIGN.fields_by_name['maximize_conversions']) _CAMPAIGN.fields_by_name['maximize_conversions'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] @@ -593,20 +604,19 @@ Attributes: merchant_id: ID of the Merchant Center account. This field is required for - create operations. This field is immutable for campaigns of - type AdvertisingChannelType.SHOPPING. + create operations. This field is immutable for Shopping + campaigns. sales_country: Sales country of products to include in the campaign. This - field is required for create operations. This field is - immutable. This field must be set to 'ZZ' for campaigns of - types other than AdvertisingChannelType.SHOPPING. + field is required for Shopping campaigns. This field is + immutable. This field is optional for non-Shopping campaigns, + but it must be equal to 'ZZ' if set. campaign_priority: Priority of the campaign. Campaigns with numerically higher priorities take precedence over those with lower priorities. - This field is required for create operations. Allowed values - are between 0 and 2, inclusive. This field must be set to 3 - for campaigns of type - AdvertisingChannelSubType.SHOPPING\_SMART\_ADS. + This field is required for Shopping campaigns, with values + between 0 and 2, inclusive. This field is optional for Smart + Shopping campaigns, but must be equal to 3 if set. enable_local: Enable local inventory ads. """, @@ -692,6 +702,9 @@ manual_cpm: Standard Manual CPM bidding strategy. Manual impression-based bidding where user pays per thousand impressions. + manual_cpv: + A bidding strategy that pays a configurable amount per video + view. maximize_conversions: Standard Maximize Conversions bidding strategy that automatically maximizes number of conversions given a daily diff --git a/google/ads/google_ads/v0/proto/resources/change_status_pb2.py b/google/ads/google_ads/v0/proto/resources/change_status_pb2.py new file mode 100644 index 000000000..bad0a2c92 --- /dev/null +++ b/google/ads/google_ads/v0/proto/resources/change_status_pb2.py @@ -0,0 +1,168 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/resources/change_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v0.proto.enums import change_status_operation_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_change__status__operation__pb2 +from google.ads.google_ads.v0.proto.enums import resource_type_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_resource__type__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/resources/change_status.proto', + package='google.ads.googleads.v0.resources', + syntax='proto3', + serialized_pb=_b('\n;google/ads/googleads_v0/proto/resources/change_status.proto\x12!google.ads.googleads.v0.resources\x1a\x41google/ads/googleads_v0/proto/enums/change_status_operation.proto\x1a\x37google/ads/googleads_v0/proto/enums/resource_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xa7\x04\n\x0c\x43hangeStatus\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12;\n\x15last_change_date_time\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12S\n\rresource_type\x18\x04 \x01(\x0e\x32<.google.ads.googleads.v0.enums.ResourceTypeEnum.ResourceType\x12.\n\x08\x63\x61mpaign\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08\x61\x64_group\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12g\n\x0fresource_status\x18\x08 \x01(\x0e\x32N.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation\x12\x31\n\x0b\x61\x64_group_ad\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x12\x61\x64_group_criterion\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x12\x63\x61mpaign_criterion\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xd6\x01\n%com.google.ads.googleads.v0.resourcesB\x11\x43hangeStatusProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v0/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V0.Resources\xca\x02!Google\\Ads\\GoogleAds\\V0\\Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_change__status__operation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_resource__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) + + + + +_CHANGESTATUS = _descriptor.Descriptor( + name='ChangeStatus', + full_name='google.ads.googleads.v0.resources.ChangeStatus', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v0.resources.ChangeStatus.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='last_change_date_time', full_name='google.ads.googleads.v0.resources.ChangeStatus.last_change_date_time', index=1, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='resource_type', full_name='google.ads.googleads.v0.resources.ChangeStatus.resource_type', index=2, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign', full_name='google.ads.googleads.v0.resources.ChangeStatus.campaign', index=3, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group', full_name='google.ads.googleads.v0.resources.ChangeStatus.ad_group', index=4, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='resource_status', full_name='google.ads.googleads.v0.resources.ChangeStatus.resource_status', index=5, + number=8, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_ad', full_name='google.ads.googleads.v0.resources.ChangeStatus.ad_group_ad', index=6, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_criterion', full_name='google.ads.googleads.v0.resources.ChangeStatus.ad_group_criterion', index=7, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_criterion', full_name='google.ads.googleads.v0.resources.ChangeStatus.campaign_criterion', index=8, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=255, + serialized_end=806, +) + +_CHANGESTATUS.fields_by_name['last_change_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CHANGESTATUS.fields_by_name['resource_type'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_resource__type__pb2._RESOURCETYPEENUM_RESOURCETYPE +_CHANGESTATUS.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CHANGESTATUS.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CHANGESTATUS.fields_by_name['resource_status'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_change__status__operation__pb2._CHANGESTATUSOPERATIONENUM_CHANGESTATUSOPERATION +_CHANGESTATUS.fields_by_name['ad_group_ad'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CHANGESTATUS.fields_by_name['ad_group_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CHANGESTATUS.fields_by_name['campaign_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['ChangeStatus'] = _CHANGESTATUS +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ChangeStatus = _reflection.GeneratedProtocolMessageType('ChangeStatus', (_message.Message,), dict( + DESCRIPTOR = _CHANGESTATUS, + __module__ = 'google.ads.googleads_v0.proto.resources.change_status_pb2' + , + __doc__ = """Describes the status of returned resource. + + + Attributes: + resource_name: + The resource name of the change status. Change status resource + names have the form: + ``customers/{customer_id}/changeStatus/{change_status_id}`` + last_change_date_time: + Time at which the most recent change has occurred on this + resource. + resource_type: + Represents the type of the changed resource. This dictates + what fields will be set. For example, for AD\_GROUP, campaign + and ad\_group fields will be set. + campaign: + The Campaign affected by this change. + ad_group: + The AdGroup affected by this change. + resource_status: + Represents the status of the changed resource. + ad_group_ad: + The AdGroupAd affected by this change. + ad_group_criterion: + The AdGroupCriterion affected by this change. + campaign_criterion: + The CampaignCriterion affected by this change. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.ChangeStatus) + )) +_sym_db.RegisterMessage(ChangeStatus) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n%com.google.ads.googleads.v0.resourcesB\021ChangeStatusProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v0/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Resources\312\002!Google\\Ads\\GoogleAds\\V0\\Resources')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/resources/change_status_pb2_grpc.py b/google/ads/google_ads/v0/proto/resources/change_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/resources/change_status_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/resources/conversion_action_pb2.py b/google/ads/google_ads/v0/proto/resources/conversion_action_pb2.py new file mode 100644 index 000000000..82defe6bb --- /dev/null +++ b/google/ads/google_ads/v0/proto/resources/conversion_action_pb2.py @@ -0,0 +1,470 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/resources/conversion_action.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v0.proto.enums import attribution_model_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_attribution__model__pb2 +from google.ads.google_ads.v0.proto.enums import conversion_action_category_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_conversion__action__category__pb2 +from google.ads.google_ads.v0.proto.enums import conversion_action_counting_type_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_conversion__action__counting__type__pb2 +from google.ads.google_ads.v0.proto.enums import conversion_action_status_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_conversion__action__status__pb2 +from google.ads.google_ads.v0.proto.enums import conversion_action_type_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_conversion__action__type__pb2 +from google.ads.google_ads.v0.proto.enums import data_driven_model_status_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_data__driven__model__status__pb2 +from google.ads.google_ads.v0.proto.enums import tracking_code_page_format_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_tracking__code__page__format__pb2 +from google.ads.google_ads.v0.proto.enums import tracking_code_type_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_tracking__code__type__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/resources/conversion_action.proto', + package='google.ads.googleads.v0.resources', + syntax='proto3', + serialized_pb=_b('\n?google/ads/googleads_v0/proto/resources/conversion_action.proto\x12!google.ads.googleads.v0.resources\x1a;google/ads/googleads_v0/proto/enums/attribution_model.proto\x1a\x44google/ads/googleads_v0/proto/enums/conversion_action_category.proto\x1aIgoogle/ads/googleads_v0/proto/enums/conversion_action_counting_type.proto\x1a\x42google/ads/googleads_v0/proto/enums/conversion_action_status.proto\x1a@google/ads/googleads_v0/proto/enums/conversion_action_type.proto\x1a\x42google/ads/googleads_v0/proto/enums/data_driven_model_status.proto\x1a\x43google/ads/googleads_v0/proto/enums/tracking_code_page_format.proto\x1a.google.ads.googleads.v0.resources.ConversionAction.TagSnippet\x12@\n\x1bphone_call_duration_seconds\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12,\n\x06\x61pp_id\x18\x10 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x1a\xed\x01\n\x18\x41ttributionModelSettings\x12_\n\x11\x61ttribution_model\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v0.enums.AttributionModelEnum.AttributionModel\x12p\n\x18\x64\x61ta_driven_model_status\x18\x02 \x01(\x0e\x32N.google.ads.googleads.v0.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus\x1a\xb3\x02\n\nTagSnippet\x12R\n\x04type\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v0.enums.TrackingCodeTypeEnum.TrackingCodeType\x12\x65\n\x0bpage_format\x18\x02 \x01(\x0e\x32P.google.ads.googleads.v0.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat\x12\x35\n\x0fglobal_site_tag\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\revent_snippet\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x1a\xbf\x01\n\rValueSettings\x12\x33\n\rdefault_value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12;\n\x15\x64\x65\x66\x61ult_currency_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12<\n\x18\x61lways_use_default_value\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\xda\x01\n%com.google.ads.googleads.v0.resourcesB\x15\x43onversionActionProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v0/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V0.Resources\xca\x02!Google\\Ads\\GoogleAds\\V0\\Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_attribution__model__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_conversion__action__category__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_conversion__action__counting__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_conversion__action__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_conversion__action__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_data__driven__model__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_tracking__code__page__format__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_tracking__code__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) + + + + +_CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS = _descriptor.Descriptor( + name='AttributionModelSettings', + full_name='google.ads.googleads.v0.resources.ConversionAction.AttributionModelSettings', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='attribution_model', full_name='google.ads.googleads.v0.resources.ConversionAction.AttributionModelSettings.attribution_model', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='data_driven_model_status', full_name='google.ads.googleads.v0.resources.ConversionAction.AttributionModelSettings.data_driven_model_status', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1883, + serialized_end=2120, +) + +_CONVERSIONACTION_TAGSNIPPET = _descriptor.Descriptor( + name='TagSnippet', + full_name='google.ads.googleads.v0.resources.ConversionAction.TagSnippet', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v0.resources.ConversionAction.TagSnippet.type', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_format', full_name='google.ads.googleads.v0.resources.ConversionAction.TagSnippet.page_format', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='global_site_tag', full_name='google.ads.googleads.v0.resources.ConversionAction.TagSnippet.global_site_tag', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='event_snippet', full_name='google.ads.googleads.v0.resources.ConversionAction.TagSnippet.event_snippet', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2123, + serialized_end=2430, +) + +_CONVERSIONACTION_VALUESETTINGS = _descriptor.Descriptor( + name='ValueSettings', + full_name='google.ads.googleads.v0.resources.ConversionAction.ValueSettings', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='default_value', full_name='google.ads.googleads.v0.resources.ConversionAction.ValueSettings.default_value', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='default_currency_code', full_name='google.ads.googleads.v0.resources.ConversionAction.ValueSettings.default_currency_code', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='always_use_default_value', full_name='google.ads.googleads.v0.resources.ConversionAction.ValueSettings.always_use_default_value', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2433, + serialized_end=2624, +) + +_CONVERSIONACTION = _descriptor.Descriptor( + name='ConversionAction', + full_name='google.ads.googleads.v0.resources.ConversionAction', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v0.resources.ConversionAction.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v0.resources.ConversionAction.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v0.resources.ConversionAction.name', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v0.resources.ConversionAction.status', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v0.resources.ConversionAction.type', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='category', full_name='google.ads.googleads.v0.resources.ConversionAction.category', index=5, + number=6, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='owner_customer', full_name='google.ads.googleads.v0.resources.ConversionAction.owner_customer', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='include_in_conversions_metric', full_name='google.ads.googleads.v0.resources.ConversionAction.include_in_conversions_metric', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='click_through_lookback_window_days', full_name='google.ads.googleads.v0.resources.ConversionAction.click_through_lookback_window_days', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='view_through_lookback_window_days', full_name='google.ads.googleads.v0.resources.ConversionAction.view_through_lookback_window_days', index=9, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value_settings', full_name='google.ads.googleads.v0.resources.ConversionAction.value_settings', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='counting_type', full_name='google.ads.googleads.v0.resources.ConversionAction.counting_type', index=11, + number=12, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='attribution_model_settings', full_name='google.ads.googleads.v0.resources.ConversionAction.attribution_model_settings', index=12, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tag_snippets', full_name='google.ads.googleads.v0.resources.ConversionAction.tag_snippets', index=13, + number=14, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='phone_call_duration_seconds', full_name='google.ads.googleads.v0.resources.ConversionAction.phone_call_duration_seconds', index=14, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='app_id', full_name='google.ads.googleads.v0.resources.ConversionAction.app_id', index=15, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS, _CONVERSIONACTION_TAGSNIPPET, _CONVERSIONACTION_VALUESETTINGS, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=674, + serialized_end=2624, +) + +_CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS.fields_by_name['attribution_model'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_attribution__model__pb2._ATTRIBUTIONMODELENUM_ATTRIBUTIONMODEL +_CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS.fields_by_name['data_driven_model_status'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_data__driven__model__status__pb2._DATADRIVENMODELSTATUSENUM_DATADRIVENMODELSTATUS +_CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS.containing_type = _CONVERSIONACTION +_CONVERSIONACTION_TAGSNIPPET.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_tracking__code__type__pb2._TRACKINGCODETYPEENUM_TRACKINGCODETYPE +_CONVERSIONACTION_TAGSNIPPET.fields_by_name['page_format'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_tracking__code__page__format__pb2._TRACKINGCODEPAGEFORMATENUM_TRACKINGCODEPAGEFORMAT +_CONVERSIONACTION_TAGSNIPPET.fields_by_name['global_site_tag'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONACTION_TAGSNIPPET.fields_by_name['event_snippet'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONACTION_TAGSNIPPET.containing_type = _CONVERSIONACTION +_CONVERSIONACTION_VALUESETTINGS.fields_by_name['default_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_CONVERSIONACTION_VALUESETTINGS.fields_by_name['default_currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONACTION_VALUESETTINGS.fields_by_name['always_use_default_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CONVERSIONACTION_VALUESETTINGS.containing_type = _CONVERSIONACTION +_CONVERSIONACTION.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CONVERSIONACTION.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONACTION.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_conversion__action__status__pb2._CONVERSIONACTIONSTATUSENUM_CONVERSIONACTIONSTATUS +_CONVERSIONACTION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_conversion__action__type__pb2._CONVERSIONACTIONTYPEENUM_CONVERSIONACTIONTYPE +_CONVERSIONACTION.fields_by_name['category'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_conversion__action__category__pb2._CONVERSIONACTIONCATEGORYENUM_CONVERSIONACTIONCATEGORY +_CONVERSIONACTION.fields_by_name['owner_customer'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONACTION.fields_by_name['include_in_conversions_metric'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CONVERSIONACTION.fields_by_name['click_through_lookback_window_days'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CONVERSIONACTION.fields_by_name['view_through_lookback_window_days'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CONVERSIONACTION.fields_by_name['value_settings'].message_type = _CONVERSIONACTION_VALUESETTINGS +_CONVERSIONACTION.fields_by_name['counting_type'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_conversion__action__counting__type__pb2._CONVERSIONACTIONCOUNTINGTYPEENUM_CONVERSIONACTIONCOUNTINGTYPE +_CONVERSIONACTION.fields_by_name['attribution_model_settings'].message_type = _CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS +_CONVERSIONACTION.fields_by_name['tag_snippets'].message_type = _CONVERSIONACTION_TAGSNIPPET +_CONVERSIONACTION.fields_by_name['phone_call_duration_seconds'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CONVERSIONACTION.fields_by_name['app_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['ConversionAction'] = _CONVERSIONACTION +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ConversionAction = _reflection.GeneratedProtocolMessageType('ConversionAction', (_message.Message,), dict( + + AttributionModelSettings = _reflection.GeneratedProtocolMessageType('AttributionModelSettings', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS, + __module__ = 'google.ads.googleads_v0.proto.resources.conversion_action_pb2' + , + __doc__ = """Settings related to this conversion action's attribution model. + + + Attributes: + attribution_model: + The attribution model type of this conversion action. + data_driven_model_status: + The status of the data-driven attribution model for the + conversion action. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.ConversionAction.AttributionModelSettings) + )) + , + + TagSnippet = _reflection.GeneratedProtocolMessageType('TagSnippet', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONACTION_TAGSNIPPET, + __module__ = 'google.ads.googleads_v0.proto.resources.conversion_action_pb2' + , + __doc__ = """The site tag and event snippet pair for a TrackingCodeType. + + + Attributes: + type: + The type of the generated tag snippets for tracking + conversions. + page_format: + The format of the web page where the tracking tag and snippet + will be installed, e.g. HTML. + global_site_tag: + The site tag that adds visitors to your basic remarketing + lists and sets new cookies on your domain. + event_snippet: + The event snippet that works with the site tag to track + actions that should be counted as conversions. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.ConversionAction.TagSnippet) + )) + , + + ValueSettings = _reflection.GeneratedProtocolMessageType('ValueSettings', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONACTION_VALUESETTINGS, + __module__ = 'google.ads.googleads_v0.proto.resources.conversion_action_pb2' + , + __doc__ = """Settings related to the value for conversion events associated with this + conversion action. + + + Attributes: + default_value: + The value to use when conversion events for this conversion + action are sent with an invalid, disallowed or missing value, + or when this conversion action is configured to always use the + default value. + default_currency_code: + The currency code to use when conversion events for this + conversion action are sent with an invalid or missing currency + code, or when this conversion action is configured to always + use the default value. + always_use_default_value: + Controls whether the default value and default currency code + are used in place of the value and currency code specified in + conversion events for this conversion action. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.ConversionAction.ValueSettings) + )) + , + DESCRIPTOR = _CONVERSIONACTION, + __module__ = 'google.ads.googleads_v0.proto.resources.conversion_action_pb2' + , + __doc__ = """A conversion action. + + + Attributes: + resource_name: + The resource name of the conversion action. Conversion action + resource names have the form: ``customers/{customer_id}/conve + rsionActions/{conversion_action_id}`` + id: + The ID of the conversion action. + name: + The name of the conversion action. This field is required and + should not be empty when creating new conversion actions. + status: + The status of this conversion action for conversion event + accrual. + type: + The type of this conversion action. + category: + The category of conversions reported for this conversion + action. + owner_customer: + The resource name of the conversion action owner customer, or + null if this is a system-defined conversion action. + include_in_conversions_metric: + Whether this conversion action should be included in the + "conversions" metric. + click_through_lookback_window_days: + The maximum number of days that may elapse between an + interaction (e.g., a click) and a conversion event. + view_through_lookback_window_days: + The maximum number of days which may elapse between an + impression and a conversion without an interaction. + value_settings: + Settings related to the value for conversion events associated + with this conversion action. + counting_type: + How to count conversion events for the conversion action. + attribution_model_settings: + Settings related to this conversion action's attribution + model. + tag_snippets: + The snippets used for tracking conversions. + phone_call_duration_seconds: + The phone call duration in seconds after which a conversion + should be reported for this conversion action. The value must + be between 0 and 10000, inclusive. + app_id: + App ID for an app conversion action. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.ConversionAction) + )) +_sym_db.RegisterMessage(ConversionAction) +_sym_db.RegisterMessage(ConversionAction.AttributionModelSettings) +_sym_db.RegisterMessage(ConversionAction.TagSnippet) +_sym_db.RegisterMessage(ConversionAction.ValueSettings) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n%com.google.ads.googleads.v0.resourcesB\025ConversionActionProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v0/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Resources\312\002!Google\\Ads\\GoogleAds\\V0\\Resources')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/resources/conversion_action_pb2_grpc.py b/google/ads/google_ads/v0/proto/resources/conversion_action_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/resources/conversion_action_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/resources/video_pb2.py b/google/ads/google_ads/v0/proto/resources/video_pb2.py new file mode 100644 index 000000000..43b170e68 --- /dev/null +++ b/google/ads/google_ads/v0/proto/resources/video_pb2.py @@ -0,0 +1,122 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/resources/video.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/resources/video.proto', + package='google.ads.googleads.v0.resources', + syntax='proto3', + serialized_pb=_b('\n3google/ads/googleads_v0/proto/resources/video.proto\x12!google.ads.googleads.v0.resources\x1a\x1egoogle/protobuf/wrappers.proto\"\xdd\x01\n\x05Video\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12(\n\x02id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\nchannel_id\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0f\x64uration_millis\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12+\n\x05title\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xcf\x01\n%com.google.ads.googleads.v0.resourcesB\nVideoProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v0/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V0.Resources\xca\x02!Google\\Ads\\GoogleAds\\V0\\Resourcesb\x06proto3') + , + dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) + + + + +_VIDEO = _descriptor.Descriptor( + name='Video', + full_name='google.ads.googleads.v0.resources.Video', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v0.resources.Video.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v0.resources.Video.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='channel_id', full_name='google.ads.googleads.v0.resources.Video.channel_id', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='duration_millis', full_name='google.ads.googleads.v0.resources.Video.duration_millis', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='title', full_name='google.ads.googleads.v0.resources.Video.title', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=123, + serialized_end=344, +) + +_VIDEO.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_VIDEO.fields_by_name['channel_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_VIDEO.fields_by_name['duration_millis'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_VIDEO.fields_by_name['title'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['Video'] = _VIDEO +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Video = _reflection.GeneratedProtocolMessageType('Video', (_message.Message,), dict( + DESCRIPTOR = _VIDEO, + __module__ = 'google.ads.googleads_v0.proto.resources.video_pb2' + , + __doc__ = """A video. + + + Attributes: + resource_name: + The resource name of the video. Video resource names have the + form: ``customers/{customer_id}/videos/{video_id}`` + id: + The ID of the video. + channel_id: + The owner channel id of the video. + duration_millis: + The duration of the video in milliseconds. + title: + The title of the video. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.Video) + )) +_sym_db.RegisterMessage(Video) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n%com.google.ads.googleads.v0.resourcesB\nVideoProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v0/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Resources\312\002!Google\\Ads\\GoogleAds\\V0\\Resources')) +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/resources/video_pb2_grpc.py b/google/ads/google_ads/v0/proto/resources/video_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v0/proto/resources/video_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v0/proto/services/account_budget_proposal_service_pb2.py b/google/ads/google_ads/v0/proto/services/account_budget_proposal_service_pb2.py new file mode 100644 index 000000000..bf8cbf738 --- /dev/null +++ b/google/ads/google_ads/v0/proto/services/account_budget_proposal_service_pb2.py @@ -0,0 +1,362 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/services/account_budget_proposal_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v0.proto.resources import account_budget_proposal_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_account__budget__proposal__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/services/account_budget_proposal_service.proto', + package='google.ads.googleads.v0.services', + syntax='proto3', + serialized_pb=_b('\nLgoogle/ads/googleads_v0/proto/services/account_budget_proposal_service.proto\x12 google.ads.googleads.v0.services\x1a\x45google/ads/googleads_v0/proto/resources/account_budget_proposal.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\"8\n\x1fGetAccountBudgetProposalRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\x8e\x01\n\"MutateAccountBudgetProposalRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12S\n\toperation\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v0.services.AccountBudgetProposalOperation\"\xbc\x01\n\x1e\x41\x63\x63ountBudgetProposalOperation\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12J\n\x06\x63reate\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v0.resources.AccountBudgetProposalH\x00\x12\x10\n\x06remove\x18\x01 \x01(\tH\x00\x42\x0b\n\toperation\"z\n#MutateAccountBudgetProposalResponse\x12S\n\x06result\x18\x02 \x01(\x0b\x32\x43.google.ads.googleads.v0.services.MutateAccountBudgetProposalResult\":\n!MutateAccountBudgetProposalResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xef\x03\n\x1c\x41\x63\x63ountBudgetProposalService\x12\xd9\x01\n\x18GetAccountBudgetProposal\x12\x41.google.ads.googleads.v0.services.GetAccountBudgetProposalRequest\x1a\x38.google.ads.googleads.v0.resources.AccountBudgetProposal\"@\x82\xd3\xe4\x93\x02:\x12\x38/v0/{resource_name=customers/*/accountBudgetProposals/*}\x12\xf2\x01\n\x1bMutateAccountBudgetProposal\x12\x44.google.ads.googleads.v0.services.MutateAccountBudgetProposalRequest\x1a\x45.google.ads.googleads.v0.services.MutateAccountBudgetProposalResponse\"F\x82\xd3\xe4\x93\x02@\";/v0/customers/{customer_id=*}/accountBudgetProposals:mutate:\x01*B\xe1\x01\n$com.google.ads.googleads.v0.servicesB!AccountBudgetProposalServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v0/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V0.Services\xca\x02 Google\\Ads\\GoogleAds\\V0\\Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_account__budget__proposal__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) + + + + +_GETACCOUNTBUDGETPROPOSALREQUEST = _descriptor.Descriptor( + name='GetAccountBudgetProposalRequest', + full_name='google.ads.googleads.v0.services.GetAccountBudgetProposalRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v0.services.GetAccountBudgetProposalRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=249, + serialized_end=305, +) + + +_MUTATEACCOUNTBUDGETPROPOSALREQUEST = _descriptor.Descriptor( + name='MutateAccountBudgetProposalRequest', + full_name='google.ads.googleads.v0.services.MutateAccountBudgetProposalRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v0.services.MutateAccountBudgetProposalRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operation', full_name='google.ads.googleads.v0.services.MutateAccountBudgetProposalRequest.operation', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=308, + serialized_end=450, +) + + +_ACCOUNTBUDGETPROPOSALOPERATION = _descriptor.Descriptor( + name='AccountBudgetProposalOperation', + full_name='google.ads.googleads.v0.services.AccountBudgetProposalOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v0.services.AccountBudgetProposalOperation.update_mask', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v0.services.AccountBudgetProposalOperation.create', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v0.services.AccountBudgetProposalOperation.remove', index=2, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v0.services.AccountBudgetProposalOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=453, + serialized_end=641, +) + + +_MUTATEACCOUNTBUDGETPROPOSALRESPONSE = _descriptor.Descriptor( + name='MutateAccountBudgetProposalResponse', + full_name='google.ads.googleads.v0.services.MutateAccountBudgetProposalResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='result', full_name='google.ads.googleads.v0.services.MutateAccountBudgetProposalResponse.result', index=0, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=643, + serialized_end=765, +) + + +_MUTATEACCOUNTBUDGETPROPOSALRESULT = _descriptor.Descriptor( + name='MutateAccountBudgetProposalResult', + full_name='google.ads.googleads.v0.services.MutateAccountBudgetProposalResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v0.services.MutateAccountBudgetProposalResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=767, + serialized_end=825, +) + +_MUTATEACCOUNTBUDGETPROPOSALREQUEST.fields_by_name['operation'].message_type = _ACCOUNTBUDGETPROPOSALOPERATION +_ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_account__budget__proposal__pb2._ACCOUNTBUDGETPROPOSAL +_ACCOUNTBUDGETPROPOSALOPERATION.oneofs_by_name['operation'].fields.append( + _ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['create']) +_ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['create'].containing_oneof = _ACCOUNTBUDGETPROPOSALOPERATION.oneofs_by_name['operation'] +_ACCOUNTBUDGETPROPOSALOPERATION.oneofs_by_name['operation'].fields.append( + _ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['remove']) +_ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['remove'].containing_oneof = _ACCOUNTBUDGETPROPOSALOPERATION.oneofs_by_name['operation'] +_MUTATEACCOUNTBUDGETPROPOSALRESPONSE.fields_by_name['result'].message_type = _MUTATEACCOUNTBUDGETPROPOSALRESULT +DESCRIPTOR.message_types_by_name['GetAccountBudgetProposalRequest'] = _GETACCOUNTBUDGETPROPOSALREQUEST +DESCRIPTOR.message_types_by_name['MutateAccountBudgetProposalRequest'] = _MUTATEACCOUNTBUDGETPROPOSALREQUEST +DESCRIPTOR.message_types_by_name['AccountBudgetProposalOperation'] = _ACCOUNTBUDGETPROPOSALOPERATION +DESCRIPTOR.message_types_by_name['MutateAccountBudgetProposalResponse'] = _MUTATEACCOUNTBUDGETPROPOSALRESPONSE +DESCRIPTOR.message_types_by_name['MutateAccountBudgetProposalResult'] = _MUTATEACCOUNTBUDGETPROPOSALRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetAccountBudgetProposalRequest = _reflection.GeneratedProtocolMessageType('GetAccountBudgetProposalRequest', (_message.Message,), dict( + DESCRIPTOR = _GETACCOUNTBUDGETPROPOSALREQUEST, + __module__ = 'google.ads.googleads_v0.proto.services.account_budget_proposal_service_pb2' + , + __doc__ = """Request message for + [AccountBudgetProposalService.GetAccountBudgetProposal][google.ads.googleads.v0.services.AccountBudgetProposalService.GetAccountBudgetProposal]. + + + Attributes: + resource_name: + The resource name of the account-level budget proposal to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.GetAccountBudgetProposalRequest) + )) +_sym_db.RegisterMessage(GetAccountBudgetProposalRequest) + +MutateAccountBudgetProposalRequest = _reflection.GeneratedProtocolMessageType('MutateAccountBudgetProposalRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEACCOUNTBUDGETPROPOSALREQUEST, + __module__ = 'google.ads.googleads_v0.proto.services.account_budget_proposal_service_pb2' + , + __doc__ = """Request message for + [AccountBudgetProposalService.MutateAccountBudgetProposal][google.ads.googleads.v0.services.AccountBudgetProposalService.MutateAccountBudgetProposal]. + + + Attributes: + customer_id: + The ID of the customer. + operation: + The operation to perform on an individual account-level budget + proposal. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateAccountBudgetProposalRequest) + )) +_sym_db.RegisterMessage(MutateAccountBudgetProposalRequest) + +AccountBudgetProposalOperation = _reflection.GeneratedProtocolMessageType('AccountBudgetProposalOperation', (_message.Message,), dict( + DESCRIPTOR = _ACCOUNTBUDGETPROPOSALOPERATION, + __module__ = 'google.ads.googleads_v0.proto.services.account_budget_proposal_service_pb2' + , + __doc__ = """A single operation to propose the creation of a new account-level budget + or edit/end/remove an existing one. + + + Attributes: + update_mask: + FieldMask that determines which budget fields are modified. + While budgets may be modified, proposals that propose such + modifications are final. Therefore, update operations are not + supported for proposals. Proposals that modify budgets have + the 'update' proposal type. Specifying a mask for any other + proposal type is considered an error. + operation: + The mutate operation. + create: + Create operation: A new proposal to create a new budget, edit + an existing budget, end an actively running budget, or remove + an approved budget scheduled to start in the future. No + resource name is expected for the new proposal. + remove: + Remove operation: A resource name for the removed proposal is + expected, in this format: ``customers/{customer_id}/accountBu + dgetProposals/{account_budget_proposal_id}`` A request may be + cancelled iff it is pending. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.AccountBudgetProposalOperation) + )) +_sym_db.RegisterMessage(AccountBudgetProposalOperation) + +MutateAccountBudgetProposalResponse = _reflection.GeneratedProtocolMessageType('MutateAccountBudgetProposalResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEACCOUNTBUDGETPROPOSALRESPONSE, + __module__ = 'google.ads.googleads_v0.proto.services.account_budget_proposal_service_pb2' + , + __doc__ = """Response message for account-level budget mutate operations. + + + Attributes: + result: + The result of the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateAccountBudgetProposalResponse) + )) +_sym_db.RegisterMessage(MutateAccountBudgetProposalResponse) + +MutateAccountBudgetProposalResult = _reflection.GeneratedProtocolMessageType('MutateAccountBudgetProposalResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEACCOUNTBUDGETPROPOSALRESULT, + __module__ = 'google.ads.googleads_v0.proto.services.account_budget_proposal_service_pb2' + , + __doc__ = """The result for the account budget proposal mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateAccountBudgetProposalResult) + )) +_sym_db.RegisterMessage(MutateAccountBudgetProposalResult) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n$com.google.ads.googleads.v0.servicesB!AccountBudgetProposalServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v0/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\Services')) + +_ACCOUNTBUDGETPROPOSALSERVICE = _descriptor.ServiceDescriptor( + name='AccountBudgetProposalService', + full_name='google.ads.googleads.v0.services.AccountBudgetProposalService', + file=DESCRIPTOR, + index=0, + options=None, + serialized_start=828, + serialized_end=1323, + methods=[ + _descriptor.MethodDescriptor( + name='GetAccountBudgetProposal', + full_name='google.ads.googleads.v0.services.AccountBudgetProposalService.GetAccountBudgetProposal', + index=0, + containing_service=None, + input_type=_GETACCOUNTBUDGETPROPOSALREQUEST, + output_type=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_account__budget__proposal__pb2._ACCOUNTBUDGETPROPOSAL, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:\0228/v0/{resource_name=customers/*/accountBudgetProposals/*}')), + ), + _descriptor.MethodDescriptor( + name='MutateAccountBudgetProposal', + full_name='google.ads.googleads.v0.services.AccountBudgetProposalService.MutateAccountBudgetProposal', + index=1, + containing_service=None, + input_type=_MUTATEACCOUNTBUDGETPROPOSALREQUEST, + output_type=_MUTATEACCOUNTBUDGETPROPOSALRESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002@\";/v0/customers/{customer_id=*}/accountBudgetProposals:mutate:\001*')), + ), +]) +_sym_db.RegisterServiceDescriptor(_ACCOUNTBUDGETPROPOSALSERVICE) + +DESCRIPTOR.services_by_name['AccountBudgetProposalService'] = _ACCOUNTBUDGETPROPOSALSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/services/account_budget_proposal_service_pb2_grpc.py b/google/ads/google_ads/v0/proto/services/account_budget_proposal_service_pb2_grpc.py new file mode 100644 index 000000000..2c762a0d7 --- /dev/null +++ b/google/ads/google_ads/v0/proto/services/account_budget_proposal_service_pb2_grpc.py @@ -0,0 +1,89 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v0.proto.resources import account_budget_proposal_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_account__budget__proposal__pb2 +from google.ads.google_ads.v0.proto.services import account_budget_proposal_service_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_account__budget__proposal__service__pb2 + + +class AccountBudgetProposalServiceStub(object): + """A service for managing account-level budgets via proposals. + + A proposal is a request to create a new budget or make changes to an + existing one. + + Reads for account-level budgets managed by these proposals will be + supported in a future version. Please use BudgetOrderService until then: + https://developers.google.com/adwords/api/docs/guides/budget-order + + Mutates: + The CREATE operation creates a new proposal. + UPDATE operations aren't supported. + The REMOVE operation cancels a pending proposal. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetAccountBudgetProposal = channel.unary_unary( + '/google.ads.googleads.v0.services.AccountBudgetProposalService/GetAccountBudgetProposal', + request_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.GetAccountBudgetProposalRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_account__budget__proposal__pb2.AccountBudgetProposal.FromString, + ) + self.MutateAccountBudgetProposal = channel.unary_unary( + '/google.ads.googleads.v0.services.AccountBudgetProposalService/MutateAccountBudgetProposal', + request_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.MutateAccountBudgetProposalRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.MutateAccountBudgetProposalResponse.FromString, + ) + + +class AccountBudgetProposalServiceServicer(object): + """A service for managing account-level budgets via proposals. + + A proposal is a request to create a new budget or make changes to an + existing one. + + Reads for account-level budgets managed by these proposals will be + supported in a future version. Please use BudgetOrderService until then: + https://developers.google.com/adwords/api/docs/guides/budget-order + + Mutates: + The CREATE operation creates a new proposal. + UPDATE operations aren't supported. + The REMOVE operation cancels a pending proposal. + """ + + def GetAccountBudgetProposal(self, request, context): + """Returns an account-level budget proposal in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateAccountBudgetProposal(self, request, context): + """Creates, updates, or removes account budget proposals. Operation statuses + are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AccountBudgetProposalServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetAccountBudgetProposal': grpc.unary_unary_rpc_method_handler( + servicer.GetAccountBudgetProposal, + request_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.GetAccountBudgetProposalRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_account__budget__proposal__pb2.AccountBudgetProposal.SerializeToString, + ), + 'MutateAccountBudgetProposal': grpc.unary_unary_rpc_method_handler( + servicer.MutateAccountBudgetProposal, + request_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.MutateAccountBudgetProposalRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.MutateAccountBudgetProposalResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v0.services.AccountBudgetProposalService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v0/proto/services/ad_group_ad_service_pb2.py b/google/ads/google_ads/v0/proto/services/ad_group_ad_service_pb2.py index 6cffe11d3..32c10d856 100644 --- a/google/ads/google_ads/v0/proto/services/ad_group_ad_service_pb2.py +++ b/google/ads/google_ads/v0/proto/services/ad_group_ad_service_pb2.py @@ -13,6 +13,7 @@ _sym_db = _symbol_database.Default() +from google.ads.google_ads.v0.proto.common import policy_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_policy__pb2 from google.ads.google_ads.v0.proto.resources import ad_group_ad_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__ad__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 @@ -22,9 +23,9 @@ name='google/ads/googleads_v0/proto/services/ad_group_ad_service.proto', package='google.ads.googleads.v0.services', syntax='proto3', - serialized_pb=_b('\n@google/ads/googleads_v0/proto/services/ad_group_ad_service.proto\x12 google.ads.googleads.v0.services\x1a\x39google/ads/googleads_v0/proto/resources/ad_group_ad.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\",\n\x13GetAdGroupAdRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"x\n\x17MutateAdGroupAdsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12H\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v0.services.AdGroupAdOperation\"\xe4\x01\n\x12\x41\x64GroupAdOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12>\n\x06\x63reate\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v0.resources.AdGroupAdH\x00\x12>\n\x06update\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v0.resources.AdGroupAdH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"d\n\x18MutateAdGroupAdsResponse\x12H\n\x07results\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v0.services.MutateAdGroupAdResult\".\n\x15MutateAdGroupAdResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x86\x03\n\x10\x41\x64GroupAdService\x12\xa9\x01\n\x0cGetAdGroupAd\x12\x35.google.ads.googleads.v0.services.GetAdGroupAdRequest\x1a,.google.ads.googleads.v0.resources.AdGroupAd\"4\x82\xd3\xe4\x93\x02.\x12,/v0/{resource_name=customers/*/adGroupAds/*}\x12\xc5\x01\n\x10MutateAdGroupAds\x12\x39.google.ads.googleads.v0.services.MutateAdGroupAdsRequest\x1a:.google.ads.googleads.v0.services.MutateAdGroupAdsResponse\":\x82\xd3\xe4\x93\x02\x34\"//v0/customers/{customer_id=*}/adGroupAds:mutate:\x01*B\xd5\x01\n$com.google.ads.googleads.v0.servicesB\x15\x41\x64GroupAdServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v0/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V0.Services\xca\x02 Google\\Ads\\GoogleAds\\V0\\Servicesb\x06proto3') + serialized_pb=_b('\n@google/ads/googleads_v0/proto/services/ad_group_ad_service.proto\x12 google.ads.googleads.v0.services\x1a\x31google/ads/googleads_v0/proto/common/policy.proto\x1a\x39google/ads/googleads_v0/proto/resources/ad_group_ad.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\",\n\x13GetAdGroupAdRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"x\n\x17MutateAdGroupAdsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12H\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v0.services.AdGroupAdOperation\"\xc4\x02\n\x12\x41\x64GroupAdOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12^\n\x1bpolicy_validation_parameter\x18\x05 \x01(\x0b\x32\x39.google.ads.googleads.v0.common.PolicyValidationParameter\x12>\n\x06\x63reate\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v0.resources.AdGroupAdH\x00\x12>\n\x06update\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v0.resources.AdGroupAdH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"d\n\x18MutateAdGroupAdsResponse\x12H\n\x07results\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v0.services.MutateAdGroupAdResult\".\n\x15MutateAdGroupAdResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x86\x03\n\x10\x41\x64GroupAdService\x12\xa9\x01\n\x0cGetAdGroupAd\x12\x35.google.ads.googleads.v0.services.GetAdGroupAdRequest\x1a,.google.ads.googleads.v0.resources.AdGroupAd\"4\x82\xd3\xe4\x93\x02.\x12,/v0/{resource_name=customers/*/adGroupAds/*}\x12\xc5\x01\n\x10MutateAdGroupAds\x12\x39.google.ads.googleads.v0.services.MutateAdGroupAdsRequest\x1a:.google.ads.googleads.v0.services.MutateAdGroupAdsResponse\":\x82\xd3\xe4\x93\x02\x34\"//v0/customers/{customer_id=*}/adGroupAds:mutate:\x01*B\xd5\x01\n$com.google.ads.googleads.v0.servicesB\x15\x41\x64GroupAdServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v0/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V0.Services\xca\x02 Google\\Ads\\GoogleAds\\V0\\Servicesb\x06proto3') , - dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__ad__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) + dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_policy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__ad__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) @@ -55,8 +56,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=225, - serialized_end=269, + serialized_start=276, + serialized_end=320, ) @@ -93,8 +94,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=271, - serialized_end=391, + serialized_start=322, + serialized_end=442, ) @@ -113,21 +114,28 @@ is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v0.services.AdGroupAdOperation.create', index=1, + name='policy_validation_parameter', full_name='google.ads.googleads.v0.services.AdGroupAdOperation.policy_validation_parameter', index=1, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v0.services.AdGroupAdOperation.create', index=2, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v0.services.AdGroupAdOperation.update', index=2, + name='update', full_name='google.ads.googleads.v0.services.AdGroupAdOperation.update', index=3, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v0.services.AdGroupAdOperation.remove', index=3, + name='remove', full_name='google.ads.googleads.v0.services.AdGroupAdOperation.remove', index=4, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -148,8 +156,8 @@ name='operation', full_name='google.ads.googleads.v0.services.AdGroupAdOperation.operation', index=0, containing_type=None, fields=[]), ], - serialized_start=394, - serialized_end=622, + serialized_start=445, + serialized_end=769, ) @@ -179,8 +187,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=624, - serialized_end=724, + serialized_start=771, + serialized_end=871, ) @@ -210,12 +218,13 @@ extension_ranges=[], oneofs=[ ], - serialized_start=726, - serialized_end=772, + serialized_start=873, + serialized_end=919, ) _MUTATEADGROUPADSREQUEST.fields_by_name['operations'].message_type = _ADGROUPADOPERATION _ADGROUPADOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_ADGROUPADOPERATION.fields_by_name['policy_validation_parameter'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_policy__pb2._POLICYVALIDATIONPARAMETER _ADGROUPADOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__ad__pb2._ADGROUPAD _ADGROUPADOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__ad__pb2._ADGROUPAD _ADGROUPADOPERATION.oneofs_by_name['operation'].fields.append( @@ -280,6 +289,8 @@ update_mask: FieldMask that determines which resource fields are modified in an update. + policy_validation_parameter: + Configuration for how policies are validated. operation: The mutate operation. create: @@ -336,8 +347,8 @@ file=DESCRIPTOR, index=0, options=None, - serialized_start=775, - serialized_end=1165, + serialized_start=922, + serialized_end=1312, methods=[ _descriptor.MethodDescriptor( name='GetAdGroupAd', diff --git a/google/ads/google_ads/v0/proto/services/billing_setup_service_pb2.py b/google/ads/google_ads/v0/proto/services/billing_setup_service_pb2.py new file mode 100644 index 000000000..5cd5cc91e --- /dev/null +++ b/google/ads/google_ads/v0/proto/services/billing_setup_service_pb2.py @@ -0,0 +1,331 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/services/billing_setup_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v0.proto.resources import billing_setup_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_billing__setup__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/services/billing_setup_service.proto', + package='google.ads.googleads.v0.services', + syntax='proto3', + serialized_pb=_b('\nBgoogle/ads/googleads_v0/proto/services/billing_setup_service.proto\x12 google.ads.googleads.v0.services\x1a;google/ads/googleads_v0/proto/resources/billing_setup.proto\x1a\x1cgoogle/api/annotations.proto\"/\n\x16GetBillingSetupRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"|\n\x19MutateBillingSetupRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12J\n\toperation\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v0.services.BillingSetupOperation\"6\n\x15\x42illingSetupOperation\x12\x10\n\x06remove\x18\x01 \x01(\tH\x00\x42\x0b\n\toperation\"h\n\x1aMutateBillingSetupResponse\x12J\n\x06result\x18\x01 \x01(\x0b\x32:.google.ads.googleads.v0.services.MutateBillingSetupResult\"1\n\x18MutateBillingSetupResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x9e\x03\n\x13\x42illingSetupService\x12\xb5\x01\n\x0fGetBillingSetup\x12\x38.google.ads.googleads.v0.services.GetBillingSetupRequest\x1a/.google.ads.googleads.v0.resources.BillingSetup\"7\x82\xd3\xe4\x93\x02\x31\x12//v0/{resource_name=customers/*/billingSetups/*}\x12\xce\x01\n\x12MutateBillingSetup\x12;.google.ads.googleads.v0.services.MutateBillingSetupRequest\x1a<.google.ads.googleads.v0.services.MutateBillingSetupResponse\"=\x82\xd3\xe4\x93\x02\x37\"2/v0/customers/{customer_id=*}/billingSetups:mutate:\x01*B\xd8\x01\n$com.google.ads.googleads.v0.servicesB\x18\x42illingSetupServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v0/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V0.Services\xca\x02 Google\\Ads\\GoogleAds\\V0\\Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_billing__setup__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_GETBILLINGSETUPREQUEST = _descriptor.Descriptor( + name='GetBillingSetupRequest', + full_name='google.ads.googleads.v0.services.GetBillingSetupRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v0.services.GetBillingSetupRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=195, + serialized_end=242, +) + + +_MUTATEBILLINGSETUPREQUEST = _descriptor.Descriptor( + name='MutateBillingSetupRequest', + full_name='google.ads.googleads.v0.services.MutateBillingSetupRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v0.services.MutateBillingSetupRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operation', full_name='google.ads.googleads.v0.services.MutateBillingSetupRequest.operation', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=244, + serialized_end=368, +) + + +_BILLINGSETUPOPERATION = _descriptor.Descriptor( + name='BillingSetupOperation', + full_name='google.ads.googleads.v0.services.BillingSetupOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v0.services.BillingSetupOperation.remove', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v0.services.BillingSetupOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=370, + serialized_end=424, +) + + +_MUTATEBILLINGSETUPRESPONSE = _descriptor.Descriptor( + name='MutateBillingSetupResponse', + full_name='google.ads.googleads.v0.services.MutateBillingSetupResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='result', full_name='google.ads.googleads.v0.services.MutateBillingSetupResponse.result', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=426, + serialized_end=530, +) + + +_MUTATEBILLINGSETUPRESULT = _descriptor.Descriptor( + name='MutateBillingSetupResult', + full_name='google.ads.googleads.v0.services.MutateBillingSetupResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v0.services.MutateBillingSetupResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=532, + serialized_end=581, +) + +_MUTATEBILLINGSETUPREQUEST.fields_by_name['operation'].message_type = _BILLINGSETUPOPERATION +_BILLINGSETUPOPERATION.oneofs_by_name['operation'].fields.append( + _BILLINGSETUPOPERATION.fields_by_name['remove']) +_BILLINGSETUPOPERATION.fields_by_name['remove'].containing_oneof = _BILLINGSETUPOPERATION.oneofs_by_name['operation'] +_MUTATEBILLINGSETUPRESPONSE.fields_by_name['result'].message_type = _MUTATEBILLINGSETUPRESULT +DESCRIPTOR.message_types_by_name['GetBillingSetupRequest'] = _GETBILLINGSETUPREQUEST +DESCRIPTOR.message_types_by_name['MutateBillingSetupRequest'] = _MUTATEBILLINGSETUPREQUEST +DESCRIPTOR.message_types_by_name['BillingSetupOperation'] = _BILLINGSETUPOPERATION +DESCRIPTOR.message_types_by_name['MutateBillingSetupResponse'] = _MUTATEBILLINGSETUPRESPONSE +DESCRIPTOR.message_types_by_name['MutateBillingSetupResult'] = _MUTATEBILLINGSETUPRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetBillingSetupRequest = _reflection.GeneratedProtocolMessageType('GetBillingSetupRequest', (_message.Message,), dict( + DESCRIPTOR = _GETBILLINGSETUPREQUEST, + __module__ = 'google.ads.googleads_v0.proto.services.billing_setup_service_pb2' + , + __doc__ = """Request message for + [BillingSetupService.GetBillingSetup][google.ads.googleads.v0.services.BillingSetupService.GetBillingSetup]. + + + Attributes: + resource_name: + The resource name of the billing setup to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.GetBillingSetupRequest) + )) +_sym_db.RegisterMessage(GetBillingSetupRequest) + +MutateBillingSetupRequest = _reflection.GeneratedProtocolMessageType('MutateBillingSetupRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEBILLINGSETUPREQUEST, + __module__ = 'google.ads.googleads_v0.proto.services.billing_setup_service_pb2' + , + __doc__ = """Request message for billing setup mutate operations. + + + Attributes: + customer_id: + Id of the customer to apply the billing setup mutate operation + to. + operation: + The operation to perform. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateBillingSetupRequest) + )) +_sym_db.RegisterMessage(MutateBillingSetupRequest) + +BillingSetupOperation = _reflection.GeneratedProtocolMessageType('BillingSetupOperation', (_message.Message,), dict( + DESCRIPTOR = _BILLINGSETUPOPERATION, + __module__ = 'google.ads.googleads_v0.proto.services.billing_setup_service_pb2' + , + __doc__ = """A single operation on a billing setup, which describes the cancellation + of an existing billing setup. + + + Attributes: + operation: + Only one of these operations can be set. "Update" operations + are not supported. "Create" operations will be supported in + the very near future. + remove: + Resource name of the billing setup to remove. A setup cannot + be removed unless it is in a pending state or its scheduled + start time is in the future. The resource name looks like + "customers/{customer\_id}/billingSetups/{billing\_id}". + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.BillingSetupOperation) + )) +_sym_db.RegisterMessage(BillingSetupOperation) + +MutateBillingSetupResponse = _reflection.GeneratedProtocolMessageType('MutateBillingSetupResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEBILLINGSETUPRESPONSE, + __module__ = 'google.ads.googleads_v0.proto.services.billing_setup_service_pb2' + , + __doc__ = """Response message for a billing setup operation. + + + Attributes: + result: + A result that identifies the resource affected by the mutate + request. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateBillingSetupResponse) + )) +_sym_db.RegisterMessage(MutateBillingSetupResponse) + +MutateBillingSetupResult = _reflection.GeneratedProtocolMessageType('MutateBillingSetupResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEBILLINGSETUPRESULT, + __module__ = 'google.ads.googleads_v0.proto.services.billing_setup_service_pb2' + , + __doc__ = """Result for a single billing setup mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateBillingSetupResult) + )) +_sym_db.RegisterMessage(MutateBillingSetupResult) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n$com.google.ads.googleads.v0.servicesB\030BillingSetupServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v0/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\Services')) + +_BILLINGSETUPSERVICE = _descriptor.ServiceDescriptor( + name='BillingSetupService', + full_name='google.ads.googleads.v0.services.BillingSetupService', + file=DESCRIPTOR, + index=0, + options=None, + serialized_start=584, + serialized_end=998, + methods=[ + _descriptor.MethodDescriptor( + name='GetBillingSetup', + full_name='google.ads.googleads.v0.services.BillingSetupService.GetBillingSetup', + index=0, + containing_service=None, + input_type=_GETBILLINGSETUPREQUEST, + output_type=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_billing__setup__pb2._BILLINGSETUP, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0021\022//v0/{resource_name=customers/*/billingSetups/*}')), + ), + _descriptor.MethodDescriptor( + name='MutateBillingSetup', + full_name='google.ads.googleads.v0.services.BillingSetupService.MutateBillingSetup', + index=1, + containing_service=None, + input_type=_MUTATEBILLINGSETUPREQUEST, + output_type=_MUTATEBILLINGSETUPRESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0027\"2/v0/customers/{customer_id=*}/billingSetups:mutate:\001*')), + ), +]) +_sym_db.RegisterServiceDescriptor(_BILLINGSETUPSERVICE) + +DESCRIPTOR.services_by_name['BillingSetupService'] = _BILLINGSETUPSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/services/billing_setup_service_pb2_grpc.py b/google/ads/google_ads/v0/proto/services/billing_setup_service_pb2_grpc.py new file mode 100644 index 000000000..bd3645118 --- /dev/null +++ b/google/ads/google_ads/v0/proto/services/billing_setup_service_pb2_grpc.py @@ -0,0 +1,82 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v0.proto.resources import billing_setup_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_billing__setup__pb2 +from google.ads.google_ads.v0.proto.services import billing_setup_service_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_billing__setup__service__pb2 + + +class BillingSetupServiceStub(object): + """A service for designating the business entity responsible for accrued costs. + + A billing setup is associated with a Payments account. Billing-related + activity for all billing setups associated with a particular Payments account + will appear on a single invoice generated monthly. + + Mutates: + The REMOVE operation cancels a pending billing setup. + Functionality for creating new billing setups will be supported in a future + version. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetBillingSetup = channel.unary_unary( + '/google.ads.googleads.v0.services.BillingSetupService/GetBillingSetup', + request_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_billing__setup__service__pb2.GetBillingSetupRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_billing__setup__pb2.BillingSetup.FromString, + ) + self.MutateBillingSetup = channel.unary_unary( + '/google.ads.googleads.v0.services.BillingSetupService/MutateBillingSetup', + request_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_billing__setup__service__pb2.MutateBillingSetupRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_billing__setup__service__pb2.MutateBillingSetupResponse.FromString, + ) + + +class BillingSetupServiceServicer(object): + """A service for designating the business entity responsible for accrued costs. + + A billing setup is associated with a Payments account. Billing-related + activity for all billing setups associated with a particular Payments account + will appear on a single invoice generated monthly. + + Mutates: + The REMOVE operation cancels a pending billing setup. + Functionality for creating new billing setups will be supported in a future + version. + """ + + def GetBillingSetup(self, request, context): + """Returns a billing setup. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateBillingSetup(self, request, context): + """Cancels a pending billing setup. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_BillingSetupServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetBillingSetup': grpc.unary_unary_rpc_method_handler( + servicer.GetBillingSetup, + request_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_billing__setup__service__pb2.GetBillingSetupRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_billing__setup__pb2.BillingSetup.SerializeToString, + ), + 'MutateBillingSetup': grpc.unary_unary_rpc_method_handler( + servicer.MutateBillingSetup, + request_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_billing__setup__service__pb2.MutateBillingSetupRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_billing__setup__service__pb2.MutateBillingSetupResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v0.services.BillingSetupService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v0/proto/services/change_status_service_pb2.py b/google/ads/google_ads/v0/proto/services/change_status_service_pb2.py new file mode 100644 index 000000000..ecd0ef430 --- /dev/null +++ b/google/ads/google_ads/v0/proto/services/change_status_service_pb2.py @@ -0,0 +1,107 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/services/change_status_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v0.proto.resources import change_status_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_change__status__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/services/change_status_service.proto', + package='google.ads.googleads.v0.services', + syntax='proto3', + serialized_pb=_b('\nBgoogle/ads/googleads_v0/proto/services/change_status_service.proto\x12 google.ads.googleads.v0.services\x1a;google/ads/googleads_v0/proto/resources/change_status.proto\x1a\x1cgoogle/api/annotations.proto\"/\n\x16GetChangeStatusRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xcc\x01\n\x13\x43hangeStatusService\x12\xb4\x01\n\x0fGetChangeStatus\x12\x38.google.ads.googleads.v0.services.GetChangeStatusRequest\x1a/.google.ads.googleads.v0.resources.ChangeStatus\"6\x82\xd3\xe4\x93\x02\x30\x12./v0/{resource_name=customers/*/changeStatus/*}B\xd8\x01\n$com.google.ads.googleads.v0.servicesB\x18\x43hangeStatusServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v0/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V0.Services\xca\x02 Google\\Ads\\GoogleAds\\V0\\Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_change__status__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_GETCHANGESTATUSREQUEST = _descriptor.Descriptor( + name='GetChangeStatusRequest', + full_name='google.ads.googleads.v0.services.GetChangeStatusRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v0.services.GetChangeStatusRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=195, + serialized_end=242, +) + +DESCRIPTOR.message_types_by_name['GetChangeStatusRequest'] = _GETCHANGESTATUSREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetChangeStatusRequest = _reflection.GeneratedProtocolMessageType('GetChangeStatusRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCHANGESTATUSREQUEST, + __module__ = 'google.ads.googleads_v0.proto.services.change_status_service_pb2' + , + __doc__ = """Request message for + '[ChangeStatusService.GetChangeStatus][google.ads.googleads.v0.services.ChangeStatusService.GetChangeStatus]'. + + + Attributes: + resource_name: + The resource name of the change status to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.GetChangeStatusRequest) + )) +_sym_db.RegisterMessage(GetChangeStatusRequest) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n$com.google.ads.googleads.v0.servicesB\030ChangeStatusServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v0/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\Services')) + +_CHANGESTATUSSERVICE = _descriptor.ServiceDescriptor( + name='ChangeStatusService', + full_name='google.ads.googleads.v0.services.ChangeStatusService', + file=DESCRIPTOR, + index=0, + options=None, + serialized_start=245, + serialized_end=449, + methods=[ + _descriptor.MethodDescriptor( + name='GetChangeStatus', + full_name='google.ads.googleads.v0.services.ChangeStatusService.GetChangeStatus', + index=0, + containing_service=None, + input_type=_GETCHANGESTATUSREQUEST, + output_type=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_change__status__pb2._CHANGESTATUS, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0020\022./v0/{resource_name=customers/*/changeStatus/*}')), + ), +]) +_sym_db.RegisterServiceDescriptor(_CHANGESTATUSSERVICE) + +DESCRIPTOR.services_by_name['ChangeStatusService'] = _CHANGESTATUSSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/services/change_status_service_pb2_grpc.py b/google/ads/google_ads/v0/proto/services/change_status_service_pb2_grpc.py new file mode 100644 index 000000000..ecf1e8b52 --- /dev/null +++ b/google/ads/google_ads/v0/proto/services/change_status_service_pb2_grpc.py @@ -0,0 +1,47 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v0.proto.resources import change_status_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_change__status__pb2 +from google.ads.google_ads.v0.proto.services import change_status_service_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_change__status__service__pb2 + + +class ChangeStatusServiceStub(object): + """Service to fetch change statuses. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetChangeStatus = channel.unary_unary( + '/google.ads.googleads.v0.services.ChangeStatusService/GetChangeStatus', + request_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_change__status__service__pb2.GetChangeStatusRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_change__status__pb2.ChangeStatus.FromString, + ) + + +class ChangeStatusServiceServicer(object): + """Service to fetch change statuses. + """ + + def GetChangeStatus(self, request, context): + """Returns the requested change status in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ChangeStatusServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetChangeStatus': grpc.unary_unary_rpc_method_handler( + servicer.GetChangeStatus, + request_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_change__status__service__pb2.GetChangeStatusRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_change__status__pb2.ChangeStatus.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v0.services.ChangeStatusService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v0/proto/services/conversion_action_service_pb2.py b/google/ads/google_ads/v0/proto/services/conversion_action_service_pb2.py new file mode 100644 index 000000000..91f624b1f --- /dev/null +++ b/google/ads/google_ads/v0/proto/services/conversion_action_service_pb2.py @@ -0,0 +1,366 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/services/conversion_action_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v0.proto.resources import conversion_action_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_conversion__action__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/services/conversion_action_service.proto', + package='google.ads.googleads.v0.services', + syntax='proto3', + serialized_pb=_b('\nFgoogle/ads/googleads_v0/proto/services/conversion_action_service.proto\x12 google.ads.googleads.v0.services\x1a?google/ads/googleads_v0/proto/resources/conversion_action.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\"3\n\x1aGetConversionActionRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\x86\x01\n\x1eMutateConversionActionsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12O\n\noperations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v0.services.ConversionActionOperation\"\xf9\x01\n\x19\x43onversionActionOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x45\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v0.resources.ConversionActionH\x00\x12\x45\n\x06update\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v0.resources.ConversionActionH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"r\n\x1fMutateConversionActionsResponse\x12O\n\x07results\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v0.services.MutateConversionActionResult\"5\n\x1cMutateConversionActionResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xc5\x03\n\x17\x43onversionActionService\x12\xc5\x01\n\x13GetConversionAction\x12<.google.ads.googleads.v0.services.GetConversionActionRequest\x1a\x33.google.ads.googleads.v0.resources.ConversionAction\";\x82\xd3\xe4\x93\x02\x35\x12\x33/v0/{resource_name=customers/*/conversionActions/*}\x12\xe1\x01\n\x17MutateConversionActions\x12@.google.ads.googleads.v0.services.MutateConversionActionsRequest\x1a\x41.google.ads.googleads.v0.services.MutateConversionActionsResponse\"A\x82\xd3\xe4\x93\x02;\"6/v0/customers/{customer_id=*}/conversionActions:mutate:\x01*B\xdc\x01\n$com.google.ads.googleads.v0.servicesB\x1c\x43onversionActionServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v0/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V0.Services\xca\x02 Google\\Ads\\GoogleAds\\V0\\Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_conversion__action__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) + + + + +_GETCONVERSIONACTIONREQUEST = _descriptor.Descriptor( + name='GetConversionActionRequest', + full_name='google.ads.googleads.v0.services.GetConversionActionRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v0.services.GetConversionActionRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=237, + serialized_end=288, +) + + +_MUTATECONVERSIONACTIONSREQUEST = _descriptor.Descriptor( + name='MutateConversionActionsRequest', + full_name='google.ads.googleads.v0.services.MutateConversionActionsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v0.services.MutateConversionActionsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v0.services.MutateConversionActionsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=291, + serialized_end=425, +) + + +_CONVERSIONACTIONOPERATION = _descriptor.Descriptor( + name='ConversionActionOperation', + full_name='google.ads.googleads.v0.services.ConversionActionOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v0.services.ConversionActionOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v0.services.ConversionActionOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v0.services.ConversionActionOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v0.services.ConversionActionOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v0.services.ConversionActionOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=428, + serialized_end=677, +) + + +_MUTATECONVERSIONACTIONSRESPONSE = _descriptor.Descriptor( + name='MutateConversionActionsResponse', + full_name='google.ads.googleads.v0.services.MutateConversionActionsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v0.services.MutateConversionActionsResponse.results', index=0, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=679, + serialized_end=793, +) + + +_MUTATECONVERSIONACTIONRESULT = _descriptor.Descriptor( + name='MutateConversionActionResult', + full_name='google.ads.googleads.v0.services.MutateConversionActionResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v0.services.MutateConversionActionResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=795, + serialized_end=848, +) + +_MUTATECONVERSIONACTIONSREQUEST.fields_by_name['operations'].message_type = _CONVERSIONACTIONOPERATION +_CONVERSIONACTIONOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CONVERSIONACTIONOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_conversion__action__pb2._CONVERSIONACTION +_CONVERSIONACTIONOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_conversion__action__pb2._CONVERSIONACTION +_CONVERSIONACTIONOPERATION.oneofs_by_name['operation'].fields.append( + _CONVERSIONACTIONOPERATION.fields_by_name['create']) +_CONVERSIONACTIONOPERATION.fields_by_name['create'].containing_oneof = _CONVERSIONACTIONOPERATION.oneofs_by_name['operation'] +_CONVERSIONACTIONOPERATION.oneofs_by_name['operation'].fields.append( + _CONVERSIONACTIONOPERATION.fields_by_name['update']) +_CONVERSIONACTIONOPERATION.fields_by_name['update'].containing_oneof = _CONVERSIONACTIONOPERATION.oneofs_by_name['operation'] +_CONVERSIONACTIONOPERATION.oneofs_by_name['operation'].fields.append( + _CONVERSIONACTIONOPERATION.fields_by_name['remove']) +_CONVERSIONACTIONOPERATION.fields_by_name['remove'].containing_oneof = _CONVERSIONACTIONOPERATION.oneofs_by_name['operation'] +_MUTATECONVERSIONACTIONSRESPONSE.fields_by_name['results'].message_type = _MUTATECONVERSIONACTIONRESULT +DESCRIPTOR.message_types_by_name['GetConversionActionRequest'] = _GETCONVERSIONACTIONREQUEST +DESCRIPTOR.message_types_by_name['MutateConversionActionsRequest'] = _MUTATECONVERSIONACTIONSREQUEST +DESCRIPTOR.message_types_by_name['ConversionActionOperation'] = _CONVERSIONACTIONOPERATION +DESCRIPTOR.message_types_by_name['MutateConversionActionsResponse'] = _MUTATECONVERSIONACTIONSRESPONSE +DESCRIPTOR.message_types_by_name['MutateConversionActionResult'] = _MUTATECONVERSIONACTIONRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetConversionActionRequest = _reflection.GeneratedProtocolMessageType('GetConversionActionRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCONVERSIONACTIONREQUEST, + __module__ = 'google.ads.googleads_v0.proto.services.conversion_action_service_pb2' + , + __doc__ = """Request message for [ConversionActionService.GetConversionAction]. + + + Attributes: + resource_name: + The resource name of the conversion action to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.GetConversionActionRequest) + )) +_sym_db.RegisterMessage(GetConversionActionRequest) + +MutateConversionActionsRequest = _reflection.GeneratedProtocolMessageType('MutateConversionActionsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECONVERSIONACTIONSREQUEST, + __module__ = 'google.ads.googleads_v0.proto.services.conversion_action_service_pb2' + , + __doc__ = """Request message for [ConversionActionService.MutateConversionActions]. + + + Attributes: + customer_id: + The ID of the customer whose conversion actions are being + modified. + operations: + The list of operations to perform on individual conversion + actions. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateConversionActionsRequest) + )) +_sym_db.RegisterMessage(MutateConversionActionsRequest) + +ConversionActionOperation = _reflection.GeneratedProtocolMessageType('ConversionActionOperation', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONACTIONOPERATION, + __module__ = 'google.ads.googleads_v0.proto.services.conversion_action_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on a conversion action. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + conversion action. + update: + Update operation: The conversion action is expected to have a + valid resource name. + remove: + Remove operation: A resource name for the removed conversion + action is expected, in this format: ``customers/{customer_id} + /conversionActions/{conversion_action_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.ConversionActionOperation) + )) +_sym_db.RegisterMessage(ConversionActionOperation) + +MutateConversionActionsResponse = _reflection.GeneratedProtocolMessageType('MutateConversionActionsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECONVERSIONACTIONSRESPONSE, + __module__ = 'google.ads.googleads_v0.proto.services.conversion_action_service_pb2' + , + __doc__ = """Response message for conversion action mutate. + + + Attributes: + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateConversionActionsResponse) + )) +_sym_db.RegisterMessage(MutateConversionActionsResponse) + +MutateConversionActionResult = _reflection.GeneratedProtocolMessageType('MutateConversionActionResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECONVERSIONACTIONRESULT, + __module__ = 'google.ads.googleads_v0.proto.services.conversion_action_service_pb2' + , + __doc__ = """The result for the conversion action mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateConversionActionResult) + )) +_sym_db.RegisterMessage(MutateConversionActionResult) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n$com.google.ads.googleads.v0.servicesB\034ConversionActionServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v0/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\Services')) + +_CONVERSIONACTIONSERVICE = _descriptor.ServiceDescriptor( + name='ConversionActionService', + full_name='google.ads.googleads.v0.services.ConversionActionService', + file=DESCRIPTOR, + index=0, + options=None, + serialized_start=851, + serialized_end=1304, + methods=[ + _descriptor.MethodDescriptor( + name='GetConversionAction', + full_name='google.ads.googleads.v0.services.ConversionActionService.GetConversionAction', + index=0, + containing_service=None, + input_type=_GETCONVERSIONACTIONREQUEST, + output_type=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_conversion__action__pb2._CONVERSIONACTION, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0025\0223/v0/{resource_name=customers/*/conversionActions/*}')), + ), + _descriptor.MethodDescriptor( + name='MutateConversionActions', + full_name='google.ads.googleads.v0.services.ConversionActionService.MutateConversionActions', + index=1, + containing_service=None, + input_type=_MUTATECONVERSIONACTIONSREQUEST, + output_type=_MUTATECONVERSIONACTIONSRESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002;\"6/v0/customers/{customer_id=*}/conversionActions:mutate:\001*')), + ), +]) +_sym_db.RegisterServiceDescriptor(_CONVERSIONACTIONSERVICE) + +DESCRIPTOR.services_by_name['ConversionActionService'] = _CONVERSIONACTIONSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/services/conversion_action_service_pb2_grpc.py b/google/ads/google_ads/v0/proto/services/conversion_action_service_pb2_grpc.py new file mode 100644 index 000000000..cd4f9a6bd --- /dev/null +++ b/google/ads/google_ads/v0/proto/services/conversion_action_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v0.proto.resources import conversion_action_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_conversion__action__pb2 +from google.ads.google_ads.v0.proto.services import conversion_action_service_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_conversion__action__service__pb2 + + +class ConversionActionServiceStub(object): + """Service to manage conversion actions. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetConversionAction = channel.unary_unary( + '/google.ads.googleads.v0.services.ConversionActionService/GetConversionAction', + request_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_conversion__action__service__pb2.GetConversionActionRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_conversion__action__pb2.ConversionAction.FromString, + ) + self.MutateConversionActions = channel.unary_unary( + '/google.ads.googleads.v0.services.ConversionActionService/MutateConversionActions', + request_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_conversion__action__service__pb2.MutateConversionActionsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_conversion__action__service__pb2.MutateConversionActionsResponse.FromString, + ) + + +class ConversionActionServiceServicer(object): + """Service to manage conversion actions. + """ + + def GetConversionAction(self, request, context): + """Returns the requested conversion action. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateConversionActions(self, request, context): + """Creates, updates or removes conversion actions. Operation statuses are + returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ConversionActionServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetConversionAction': grpc.unary_unary_rpc_method_handler( + servicer.GetConversionAction, + request_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_conversion__action__service__pb2.GetConversionActionRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_conversion__action__pb2.ConversionAction.SerializeToString, + ), + 'MutateConversionActions': grpc.unary_unary_rpc_method_handler( + servicer.MutateConversionActions, + request_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_conversion__action__service__pb2.MutateConversionActionsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_conversion__action__service__pb2.MutateConversionActionsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v0.services.ConversionActionService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v0/proto/services/geo_target_constant_service_pb2.py b/google/ads/google_ads/v0/proto/services/geo_target_constant_service_pb2.py index 00ba0ea5d..fd86e9823 100644 --- a/google/ads/google_ads/v0/proto/services/geo_target_constant_service_pb2.py +++ b/google/ads/google_ads/v0/proto/services/geo_target_constant_service_pb2.py @@ -15,15 +15,16 @@ from google.ads.google_ads.v0.proto.resources import geo_target_constant_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_geo__target__constant__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='google/ads/googleads_v0/proto/services/geo_target_constant_service.proto', package='google.ads.googleads.v0.services', syntax='proto3', - serialized_pb=_b('\nHgoogle/ads/googleads_v0/proto/services/geo_target_constant_service.proto\x12 google.ads.googleads.v0.services\x1a\x41google/ads/googleads_v0/proto/resources/geo_target_constant.proto\x1a\x1cgoogle/api/annotations.proto\"4\n\x1bGetGeoTargetConstantRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xda\x01\n\x18GeoTargetConstantService\x12\xbd\x01\n\x14GetGeoTargetConstant\x12=.google.ads.googleads.v0.services.GetGeoTargetConstantRequest\x1a\x34.google.ads.googleads.v0.resources.GeoTargetConstant\"0\x82\xd3\xe4\x93\x02*\x12(/v0/{resource_name=geoTargetConstants/*}B\xdd\x01\n$com.google.ads.googleads.v0.servicesB\x1dGeoTargetConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v0/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V0.Services\xca\x02 Google\\Ads\\GoogleAds\\V0\\Servicesb\x06proto3') + serialized_pb=_b('\nHgoogle/ads/googleads_v0/proto/services/geo_target_constant_service.proto\x12 google.ads.googleads.v0.services\x1a\x41google/ads/googleads_v0/proto/resources/geo_target_constant.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/wrappers.proto\"4\n\x1bGetGeoTargetConstantRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xda\x01\n\x18GeoTargetConstantService\x12\xbd\x01\n\x14GetGeoTargetConstant\x12=.google.ads.googleads.v0.services.GetGeoTargetConstantRequest\x1a\x34.google.ads.googleads.v0.resources.GeoTargetConstant\"0\x82\xd3\xe4\x93\x02*\x12(/v0/{resource_name=geoTargetConstants/*}B\xdd\x01\n$com.google.ads.googleads.v0.servicesB\x1dGeoTargetConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v0/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V0.Services\xca\x02 Google\\Ads\\GoogleAds\\V0\\Servicesb\x06proto3') , - dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_geo__target__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_geo__target__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) @@ -54,8 +55,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=207, - serialized_end=259, + serialized_start=239, + serialized_end=291, ) DESCRIPTOR.message_types_by_name['GetGeoTargetConstantRequest'] = _GETGEOTARGETCONSTANTREQUEST @@ -87,8 +88,8 @@ file=DESCRIPTOR, index=0, options=None, - serialized_start=262, - serialized_end=480, + serialized_start=294, + serialized_end=512, methods=[ _descriptor.MethodDescriptor( name='GetGeoTargetConstant', diff --git a/google/ads/google_ads/v0/proto/services/google_ads_service_pb2.py b/google/ads/google_ads/v0/proto/services/google_ads_service_pb2.py index c810d9e8b..b08edb74d 100644 --- a/google/ads/google_ads/v0/proto/services/google_ads_service_pb2.py +++ b/google/ads/google_ads/v0/proto/services/google_ads_service_pb2.py @@ -19,23 +19,28 @@ from google.ads.google_ads.v0.proto.enums import device_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_device__pb2 from google.ads.google_ads.v0.proto.enums import month_of_year_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_month__of__year__pb2 from google.ads.google_ads.v0.proto.enums import slot_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_slot__pb2 +from google.ads.google_ads.v0.proto.resources import account_budget_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_account__budget__pb2 +from google.ads.google_ads.v0.proto.resources import account_budget_proposal_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_account__budget__proposal__pb2 from google.ads.google_ads.v0.proto.resources import ad_group_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__pb2 from google.ads.google_ads.v0.proto.resources import ad_group_ad_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__ad__pb2 from google.ads.google_ads.v0.proto.resources import ad_group_bid_modifier_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2 from google.ads.google_ads.v0.proto.resources import ad_group_criterion_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__criterion__pb2 from google.ads.google_ads.v0.proto.resources import bidding_strategy_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_bidding__strategy__pb2 +from google.ads.google_ads.v0.proto.resources import billing_setup_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_billing__setup__pb2 from google.ads.google_ads.v0.proto.resources import campaign_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__pb2 from google.ads.google_ads.v0.proto.resources import campaign_bid_modifier_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2 from google.ads.google_ads.v0.proto.resources import campaign_budget_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__budget__pb2 from google.ads.google_ads.v0.proto.resources import campaign_criterion_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__criterion__pb2 from google.ads.google_ads.v0.proto.resources import campaign_group_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__group__pb2 from google.ads.google_ads.v0.proto.resources import campaign_shared_set_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__shared__set__pb2 +from google.ads.google_ads.v0.proto.resources import change_status_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_change__status__pb2 from google.ads.google_ads.v0.proto.resources import customer_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_customer__pb2 from google.ads.google_ads.v0.proto.resources import geo_target_constant_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_geo__target__constant__pb2 from google.ads.google_ads.v0.proto.resources import keyword_view_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_keyword__view__pb2 from google.ads.google_ads.v0.proto.resources import recommendation_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_recommendation__pb2 from google.ads.google_ads.v0.proto.resources import shared_criterion_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_shared__criterion__pb2 from google.ads.google_ads.v0.proto.resources import shared_set_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_shared__set__pb2 +from google.ads.google_ads.v0.proto.resources import video_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_video__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 @@ -45,9 +50,9 @@ name='google/ads/googleads_v0/proto/services/google_ads_service.proto', package='google.ads.googleads.v0.services', syntax='proto3', - serialized_pb=_b('\n?google/ads/googleads_v0/proto/services/google_ads_service.proto\x12 google.ads.googleads.v0.services\x1a\x32google/ads/googleads_v0/proto/common/metrics.proto\x1a\x39google/ads/googleads_v0/proto/enums/ad_network_type.proto\x1a\x35google/ads/googleads_v0/proto/enums/day_of_week.proto\x1a\x30google/ads/googleads_v0/proto/enums/device.proto\x1a\x37google/ads/googleads_v0/proto/enums/month_of_year.proto\x1a.google/ads/googleads_v0/proto/enums/slot.proto\x1a\x36google/ads/googleads_v0/proto/resources/ad_group.proto\x1a\x39google/ads/googleads_v0/proto/resources/ad_group_ad.proto\x1a\x43google/ads/googleads_v0/proto/resources/ad_group_bid_modifier.proto\x1a@google/ads/googleads_v0/proto/resources/ad_group_criterion.proto\x1a>google/ads/googleads_v0/proto/resources/bidding_strategy.proto\x1a\x36google/ads/googleads_v0/proto/resources/campaign.proto\x1a\x43google/ads/googleads_v0/proto/resources/campaign_bid_modifier.proto\x1a=google/ads/googleads_v0/proto/resources/campaign_budget.proto\x1a@google/ads/googleads_v0/proto/resources/campaign_criterion.proto\x1agoogle/ads/googleads_v0/proto/resources/shared_criterion.proto\x1a\x38google/ads/googleads_v0/proto/resources/shared_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\"c\n\x16SearchGoogleAdsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\"\xc0\x01\n\x17SearchGoogleAdsResponse\x12?\n\x07results\x18\x01 \x03(\x0b\x32..google.ads.googleads.v0.services.GoogleAdsRow\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1b\n\x13total_results_count\x18\x03 \x01(\x03\x12.\n\nfield_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xc3\x0f\n\x0cGoogleAdsRow\x12<\n\x08\x61\x64_group\x18\x03 \x01(\x0b\x32*.google.ads.googleads.v0.resources.AdGroup\x12\x41\n\x0b\x61\x64_group_ad\x18\x10 \x01(\x0b\x32,.google.ads.googleads.v0.resources.AdGroupAd\x12T\n\x15\x61\x64_group_bid_modifier\x18\x18 \x01(\x0b\x32\x35.google.ads.googleads.v0.resources.AdGroupBidModifier\x12O\n\x12\x61\x64_group_criterion\x18\x11 \x01(\x0b\x32\x33.google.ads.googleads.v0.resources.AdGroupCriterion\x12L\n\x10\x62idding_strategy\x18\x12 \x01(\x0b\x32\x32.google.ads.googleads.v0.resources.BiddingStrategy\x12J\n\x0f\x63\x61mpaign_budget\x18\x13 \x01(\x0b\x32\x31.google.ads.googleads.v0.resources.CampaignBudget\x12=\n\x08\x63\x61mpaign\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v0.resources.Campaign\x12U\n\x15\x63\x61mpaign_bid_modifier\x18\x1a \x01(\x0b\x32\x36.google.ads.googleads.v0.resources.CampaignBidModifier\x12P\n\x12\x63\x61mpaign_criterion\x18\x14 \x01(\x0b\x32\x34.google.ads.googleads.v0.resources.CampaignCriterion\x12H\n\x0e\x63\x61mpaign_group\x18\x19 \x01(\x0b\x32\x30.google.ads.googleads.v0.resources.CampaignGroup\x12Q\n\x13\x63\x61mpaign_shared_set\x18\x1e \x01(\x0b\x32\x34.google.ads.googleads.v0.resources.CampaignSharedSet\x12=\n\x08\x63ustomer\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v0.resources.Customer\x12Q\n\x13geo_target_constant\x18\x17 \x01(\x0b\x32\x34.google.ads.googleads.v0.resources.GeoTargetConstant\x12\x44\n\x0ckeyword_view\x18\x15 \x01(\x0b\x32..google.ads.googleads.v0.resources.KeywordView\x12I\n\x0erecommendation\x18\x16 \x01(\x0b\x32\x31.google.ads.googleads.v0.resources.Recommendation\x12L\n\x10shared_criterion\x18\x1d \x01(\x0b\x32\x32.google.ads.googleads.v0.resources.SharedCriterion\x12@\n\nshared_set\x18\x1b \x01(\x0b\x32,.google.ads.googleads.v0.resources.SharedSet\x12\x38\n\x07metrics\x18\x04 \x01(\x0b\x32\'.google.ads.googleads.v0.common.Metrics\x12W\n\x0f\x61\x64_network_type\x18\x05 \x01(\x0e\x32>.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType\x12*\n\x04\x64\x61te\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12K\n\x0b\x64\x61y_of_week\x18\x07 \x01(\x0e\x32\x36.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek\x12@\n\x06\x64\x65vice\x18\x08 \x01(\x0e\x32\x30.google.ads.googleads.v0.enums.DeviceEnum.Device\x12)\n\x04hour\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12+\n\x05month\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Q\n\rmonth_of_year\x18\x1c \x01(\x0e\x32:.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear\x12-\n\x07quarter\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x04slot\x18\r \x01(\x0e\x32,.google.ads.googleads.v0.enums.SlotEnum.Slot\x12*\n\x04week\x18\x0e \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12)\n\x04year\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int32Value2\xcd\x01\n\x10GoogleAdsService\x12\xb8\x01\n\x06Search\x12\x38.google.ads.googleads.v0.services.SearchGoogleAdsRequest\x1a\x39.google.ads.googleads.v0.services.SearchGoogleAdsResponse\"9\x82\xd3\xe4\x93\x02\x33\"./v0/customers/{customer_id=*}/googleAds:search:\x01*B\xd5\x01\n$com.google.ads.googleads.v0.servicesB\x15GoogleAdsServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v0/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V0.Services\xca\x02 Google\\Ads\\GoogleAds\\V0\\Servicesb\x06proto3') + serialized_pb=_b('\n?google/ads/googleads_v0/proto/services/google_ads_service.proto\x12 google.ads.googleads.v0.services\x1a\x32google/ads/googleads_v0/proto/common/metrics.proto\x1a\x39google/ads/googleads_v0/proto/enums/ad_network_type.proto\x1a\x35google/ads/googleads_v0/proto/enums/day_of_week.proto\x1a\x30google/ads/googleads_v0/proto/enums/device.proto\x1a\x37google/ads/googleads_v0/proto/enums/month_of_year.proto\x1a.google/ads/googleads_v0/proto/enums/slot.proto\x1agoogle/ads/googleads_v0/proto/resources/bidding_strategy.proto\x1a;google/ads/googleads_v0/proto/resources/billing_setup.proto\x1a\x36google/ads/googleads_v0/proto/resources/campaign.proto\x1a\x43google/ads/googleads_v0/proto/resources/campaign_bid_modifier.proto\x1a=google/ads/googleads_v0/proto/resources/campaign_budget.proto\x1a@google/ads/googleads_v0/proto/resources/campaign_criterion.proto\x1agoogle/ads/googleads_v0/proto/resources/shared_criterion.proto\x1a\x38google/ads/googleads_v0/proto/resources/shared_set.proto\x1a\x33google/ads/googleads_v0/proto/resources/video.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\"c\n\x16SearchGoogleAdsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\"\xc0\x01\n\x17SearchGoogleAdsResponse\x12?\n\x07results\x18\x01 \x03(\x0b\x32..google.ads.googleads.v0.services.GoogleAdsRow\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1b\n\x13total_results_count\x18\x03 \x01(\x03\x12.\n\nfield_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xb1\x12\n\x0cGoogleAdsRow\x12H\n\x0e\x61\x63\x63ount_budget\x18* \x01(\x0b\x32\x30.google.ads.googleads.v0.resources.AccountBudget\x12Y\n\x17\x61\x63\x63ount_budget_proposal\x18+ \x01(\x0b\x32\x38.google.ads.googleads.v0.resources.AccountBudgetProposal\x12<\n\x08\x61\x64_group\x18\x03 \x01(\x0b\x32*.google.ads.googleads.v0.resources.AdGroup\x12\x41\n\x0b\x61\x64_group_ad\x18\x10 \x01(\x0b\x32,.google.ads.googleads.v0.resources.AdGroupAd\x12T\n\x15\x61\x64_group_bid_modifier\x18\x18 \x01(\x0b\x32\x35.google.ads.googleads.v0.resources.AdGroupBidModifier\x12O\n\x12\x61\x64_group_criterion\x18\x11 \x01(\x0b\x32\x33.google.ads.googleads.v0.resources.AdGroupCriterion\x12L\n\x10\x62idding_strategy\x18\x12 \x01(\x0b\x32\x32.google.ads.googleads.v0.resources.BiddingStrategy\x12\x46\n\rbilling_setup\x18) \x01(\x0b\x32/.google.ads.googleads.v0.resources.BillingSetup\x12J\n\x0f\x63\x61mpaign_budget\x18\x13 \x01(\x0b\x32\x31.google.ads.googleads.v0.resources.CampaignBudget\x12=\n\x08\x63\x61mpaign\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v0.resources.Campaign\x12U\n\x15\x63\x61mpaign_bid_modifier\x18\x1a \x01(\x0b\x32\x36.google.ads.googleads.v0.resources.CampaignBidModifier\x12P\n\x12\x63\x61mpaign_criterion\x18\x14 \x01(\x0b\x32\x34.google.ads.googleads.v0.resources.CampaignCriterion\x12H\n\x0e\x63\x61mpaign_group\x18\x19 \x01(\x0b\x32\x30.google.ads.googleads.v0.resources.CampaignGroup\x12Q\n\x13\x63\x61mpaign_shared_set\x18\x1e \x01(\x0b\x32\x34.google.ads.googleads.v0.resources.CampaignSharedSet\x12\x46\n\rchange_status\x18% \x01(\x0b\x32/.google.ads.googleads.v0.resources.ChangeStatus\x12=\n\x08\x63ustomer\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v0.resources.Customer\x12Q\n\x13geo_target_constant\x18\x17 \x01(\x0b\x32\x34.google.ads.googleads.v0.resources.GeoTargetConstant\x12\x44\n\x0ckeyword_view\x18\x15 \x01(\x0b\x32..google.ads.googleads.v0.resources.KeywordView\x12I\n\x0erecommendation\x18\x16 \x01(\x0b\x32\x31.google.ads.googleads.v0.resources.Recommendation\x12L\n\x10shared_criterion\x18\x1d \x01(\x0b\x32\x32.google.ads.googleads.v0.resources.SharedCriterion\x12@\n\nshared_set\x18\x1b \x01(\x0b\x32,.google.ads.googleads.v0.resources.SharedSet\x12\x37\n\x05video\x18\' \x01(\x0b\x32(.google.ads.googleads.v0.resources.Video\x12\x38\n\x07metrics\x18\x04 \x01(\x0b\x32\'.google.ads.googleads.v0.common.Metrics\x12W\n\x0f\x61\x64_network_type\x18\x05 \x01(\x0e\x32>.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType\x12*\n\x04\x64\x61te\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12K\n\x0b\x64\x61y_of_week\x18\x07 \x01(\x0e\x32\x36.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek\x12@\n\x06\x64\x65vice\x18\x08 \x01(\x0e\x32\x30.google.ads.googleads.v0.enums.DeviceEnum.Device\x12)\n\x04hour\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12+\n\x05month\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Q\n\rmonth_of_year\x18\x1c \x01(\x0e\x32:.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear\x12-\n\x07quarter\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x04slot\x18\r \x01(\x0e\x32,.google.ads.googleads.v0.enums.SlotEnum.Slot\x12*\n\x04week\x18\x0e \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12)\n\x04year\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int32Value2\xcd\x01\n\x10GoogleAdsService\x12\xb8\x01\n\x06Search\x12\x38.google.ads.googleads.v0.services.SearchGoogleAdsRequest\x1a\x39.google.ads.googleads.v0.services.SearchGoogleAdsResponse\"9\x82\xd3\xe4\x93\x02\x33\"./v0/customers/{customer_id=*}/googleAds:search:\x01*B\xd5\x01\n$com.google.ads.googleads.v0.servicesB\x15GoogleAdsServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v0/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V0.Services\xca\x02 Google\\Ads\\GoogleAds\\V0\\Servicesb\x06proto3') , - dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_metrics__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_ad__network__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_day__of__week__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_month__of__year__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_slot__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__ad__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_bidding__strategy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__budget__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__group__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__shared__set__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_customer__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_geo__target__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_keyword__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_recommendation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_shared__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_shared__set__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) + dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_metrics__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_ad__network__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_day__of__week__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_month__of__year__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_slot__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_account__budget__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_account__budget__proposal__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__ad__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_bidding__strategy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_billing__setup__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__budget__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__group__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__shared__set__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_change__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_customer__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_geo__target__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_keyword__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_recommendation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_shared__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_shared__set__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_video__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) @@ -99,8 +104,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1582, - serialized_end=1681, + serialized_start=1890, + serialized_end=1989, ) @@ -151,8 +156,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1684, - serialized_end=1876, + serialized_start=1992, + serialized_end=2184, ) @@ -164,203 +169,238 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='ad_group', full_name='google.ads.googleads.v0.services.GoogleAdsRow.ad_group', index=0, + name='account_budget', full_name='google.ads.googleads.v0.services.GoogleAdsRow.account_budget', index=0, + number=42, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='account_budget_proposal', full_name='google.ads.googleads.v0.services.GoogleAdsRow.account_budget_proposal', index=1, + number=43, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group', full_name='google.ads.googleads.v0.services.GoogleAdsRow.ad_group', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ad_group_ad', full_name='google.ads.googleads.v0.services.GoogleAdsRow.ad_group_ad', index=1, + name='ad_group_ad', full_name='google.ads.googleads.v0.services.GoogleAdsRow.ad_group_ad', index=3, number=16, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ad_group_bid_modifier', full_name='google.ads.googleads.v0.services.GoogleAdsRow.ad_group_bid_modifier', index=2, + name='ad_group_bid_modifier', full_name='google.ads.googleads.v0.services.GoogleAdsRow.ad_group_bid_modifier', index=4, number=24, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ad_group_criterion', full_name='google.ads.googleads.v0.services.GoogleAdsRow.ad_group_criterion', index=3, + name='ad_group_criterion', full_name='google.ads.googleads.v0.services.GoogleAdsRow.ad_group_criterion', index=5, number=17, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='bidding_strategy', full_name='google.ads.googleads.v0.services.GoogleAdsRow.bidding_strategy', index=4, + name='bidding_strategy', full_name='google.ads.googleads.v0.services.GoogleAdsRow.bidding_strategy', index=6, number=18, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='campaign_budget', full_name='google.ads.googleads.v0.services.GoogleAdsRow.campaign_budget', index=5, + name='billing_setup', full_name='google.ads.googleads.v0.services.GoogleAdsRow.billing_setup', index=7, + number=41, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_budget', full_name='google.ads.googleads.v0.services.GoogleAdsRow.campaign_budget', index=8, number=19, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='campaign', full_name='google.ads.googleads.v0.services.GoogleAdsRow.campaign', index=6, + name='campaign', full_name='google.ads.googleads.v0.services.GoogleAdsRow.campaign', index=9, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='campaign_bid_modifier', full_name='google.ads.googleads.v0.services.GoogleAdsRow.campaign_bid_modifier', index=7, + name='campaign_bid_modifier', full_name='google.ads.googleads.v0.services.GoogleAdsRow.campaign_bid_modifier', index=10, number=26, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='campaign_criterion', full_name='google.ads.googleads.v0.services.GoogleAdsRow.campaign_criterion', index=8, + name='campaign_criterion', full_name='google.ads.googleads.v0.services.GoogleAdsRow.campaign_criterion', index=11, number=20, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='campaign_group', full_name='google.ads.googleads.v0.services.GoogleAdsRow.campaign_group', index=9, + name='campaign_group', full_name='google.ads.googleads.v0.services.GoogleAdsRow.campaign_group', index=12, number=25, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='campaign_shared_set', full_name='google.ads.googleads.v0.services.GoogleAdsRow.campaign_shared_set', index=10, + name='campaign_shared_set', full_name='google.ads.googleads.v0.services.GoogleAdsRow.campaign_shared_set', index=13, number=30, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='customer', full_name='google.ads.googleads.v0.services.GoogleAdsRow.customer', index=11, + name='change_status', full_name='google.ads.googleads.v0.services.GoogleAdsRow.change_status', index=14, + number=37, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer', full_name='google.ads.googleads.v0.services.GoogleAdsRow.customer', index=15, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='geo_target_constant', full_name='google.ads.googleads.v0.services.GoogleAdsRow.geo_target_constant', index=12, + name='geo_target_constant', full_name='google.ads.googleads.v0.services.GoogleAdsRow.geo_target_constant', index=16, number=23, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='keyword_view', full_name='google.ads.googleads.v0.services.GoogleAdsRow.keyword_view', index=13, + name='keyword_view', full_name='google.ads.googleads.v0.services.GoogleAdsRow.keyword_view', index=17, number=21, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='recommendation', full_name='google.ads.googleads.v0.services.GoogleAdsRow.recommendation', index=14, + name='recommendation', full_name='google.ads.googleads.v0.services.GoogleAdsRow.recommendation', index=18, number=22, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='shared_criterion', full_name='google.ads.googleads.v0.services.GoogleAdsRow.shared_criterion', index=15, + name='shared_criterion', full_name='google.ads.googleads.v0.services.GoogleAdsRow.shared_criterion', index=19, number=29, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='shared_set', full_name='google.ads.googleads.v0.services.GoogleAdsRow.shared_set', index=16, + name='shared_set', full_name='google.ads.googleads.v0.services.GoogleAdsRow.shared_set', index=20, number=27, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='metrics', full_name='google.ads.googleads.v0.services.GoogleAdsRow.metrics', index=17, + name='video', full_name='google.ads.googleads.v0.services.GoogleAdsRow.video', index=21, + number=39, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='metrics', full_name='google.ads.googleads.v0.services.GoogleAdsRow.metrics', index=22, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ad_network_type', full_name='google.ads.googleads.v0.services.GoogleAdsRow.ad_network_type', index=18, + name='ad_network_type', full_name='google.ads.googleads.v0.services.GoogleAdsRow.ad_network_type', index=23, number=5, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='date', full_name='google.ads.googleads.v0.services.GoogleAdsRow.date', index=19, + name='date', full_name='google.ads.googleads.v0.services.GoogleAdsRow.date', index=24, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='day_of_week', full_name='google.ads.googleads.v0.services.GoogleAdsRow.day_of_week', index=20, + name='day_of_week', full_name='google.ads.googleads.v0.services.GoogleAdsRow.day_of_week', index=25, number=7, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='device', full_name='google.ads.googleads.v0.services.GoogleAdsRow.device', index=21, + name='device', full_name='google.ads.googleads.v0.services.GoogleAdsRow.device', index=26, number=8, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='hour', full_name='google.ads.googleads.v0.services.GoogleAdsRow.hour', index=22, + name='hour', full_name='google.ads.googleads.v0.services.GoogleAdsRow.hour', index=27, number=9, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='month', full_name='google.ads.googleads.v0.services.GoogleAdsRow.month', index=23, + name='month', full_name='google.ads.googleads.v0.services.GoogleAdsRow.month', index=28, number=10, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='month_of_year', full_name='google.ads.googleads.v0.services.GoogleAdsRow.month_of_year', index=24, + name='month_of_year', full_name='google.ads.googleads.v0.services.GoogleAdsRow.month_of_year', index=29, number=28, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='quarter', full_name='google.ads.googleads.v0.services.GoogleAdsRow.quarter', index=25, + name='quarter', full_name='google.ads.googleads.v0.services.GoogleAdsRow.quarter', index=30, number=12, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='slot', full_name='google.ads.googleads.v0.services.GoogleAdsRow.slot', index=26, + name='slot', full_name='google.ads.googleads.v0.services.GoogleAdsRow.slot', index=31, number=13, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='week', full_name='google.ads.googleads.v0.services.GoogleAdsRow.week', index=27, + name='week', full_name='google.ads.googleads.v0.services.GoogleAdsRow.week', index=32, number=14, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='year', full_name='google.ads.googleads.v0.services.GoogleAdsRow.year', index=28, + name='year', full_name='google.ads.googleads.v0.services.GoogleAdsRow.year', index=33, number=15, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -378,29 +418,34 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1879, - serialized_end=3866, + serialized_start=2187, + serialized_end=4540, ) _SEARCHGOOGLEADSRESPONSE.fields_by_name['results'].message_type = _GOOGLEADSROW _SEARCHGOOGLEADSRESPONSE.fields_by_name['field_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_GOOGLEADSROW.fields_by_name['account_budget'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_account__budget__pb2._ACCOUNTBUDGET +_GOOGLEADSROW.fields_by_name['account_budget_proposal'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_account__budget__proposal__pb2._ACCOUNTBUDGETPROPOSAL _GOOGLEADSROW.fields_by_name['ad_group'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__pb2._ADGROUP _GOOGLEADSROW.fields_by_name['ad_group_ad'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__ad__pb2._ADGROUPAD _GOOGLEADSROW.fields_by_name['ad_group_bid_modifier'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2._ADGROUPBIDMODIFIER _GOOGLEADSROW.fields_by_name['ad_group_criterion'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__criterion__pb2._ADGROUPCRITERION _GOOGLEADSROW.fields_by_name['bidding_strategy'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_bidding__strategy__pb2._BIDDINGSTRATEGY +_GOOGLEADSROW.fields_by_name['billing_setup'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_billing__setup__pb2._BILLINGSETUP _GOOGLEADSROW.fields_by_name['campaign_budget'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__budget__pb2._CAMPAIGNBUDGET _GOOGLEADSROW.fields_by_name['campaign'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__pb2._CAMPAIGN _GOOGLEADSROW.fields_by_name['campaign_bid_modifier'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2._CAMPAIGNBIDMODIFIER _GOOGLEADSROW.fields_by_name['campaign_criterion'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__criterion__pb2._CAMPAIGNCRITERION _GOOGLEADSROW.fields_by_name['campaign_group'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__group__pb2._CAMPAIGNGROUP _GOOGLEADSROW.fields_by_name['campaign_shared_set'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_campaign__shared__set__pb2._CAMPAIGNSHAREDSET +_GOOGLEADSROW.fields_by_name['change_status'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_change__status__pb2._CHANGESTATUS _GOOGLEADSROW.fields_by_name['customer'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_customer__pb2._CUSTOMER _GOOGLEADSROW.fields_by_name['geo_target_constant'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_geo__target__constant__pb2._GEOTARGETCONSTANT _GOOGLEADSROW.fields_by_name['keyword_view'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_keyword__view__pb2._KEYWORDVIEW _GOOGLEADSROW.fields_by_name['recommendation'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_recommendation__pb2._RECOMMENDATION _GOOGLEADSROW.fields_by_name['shared_criterion'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_shared__criterion__pb2._SHAREDCRITERION _GOOGLEADSROW.fields_by_name['shared_set'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_shared__set__pb2._SHAREDSET +_GOOGLEADSROW.fields_by_name['video'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_video__pb2._VIDEO _GOOGLEADSROW.fields_by_name['metrics'].message_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_common_dot_metrics__pb2._METRICS _GOOGLEADSROW.fields_by_name['ad_network_type'].enum_type = google_dot_ads_dot_googleads__v0_dot_proto_dot_enums_dot_ad__network__type__pb2._ADNETWORKTYPEENUM_ADNETWORKTYPE _GOOGLEADSROW.fields_by_name['date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE @@ -480,6 +525,10 @@ Attributes: + account_budget: + The account budget in the query. + account_budget_proposal: + The account budget proposal referenced in the query. ad_group: The ad group referenced in the query. ad_group_ad: @@ -490,6 +539,8 @@ The criterion referenced in the query. bidding_strategy: The bidding strategy referenced in the query. + billing_setup: + The billing setup referenced in the query. campaign_budget: The campaign budget referenced in the query. campaign: @@ -502,6 +553,8 @@ Campaign Group referenced in AWQL query. campaign_shared_set: Campaign Shared Set referenced in AWQL query. + change_status: + The ChangeStatus referenced in the query. customer: The customer referenced in the query. geo_target_constant: @@ -514,6 +567,8 @@ The shared set referenced in the query. shared_set: The shared set referenced in the query. + video: + The video referenced in the query. metrics: The metrics. ad_network_type: @@ -557,8 +612,8 @@ file=DESCRIPTOR, index=0, options=None, - serialized_start=3869, - serialized_end=4074, + serialized_start=4543, + serialized_end=4748, methods=[ _descriptor.MethodDescriptor( name='Search', diff --git a/google/ads/google_ads/v0/proto/services/video_service_pb2.py b/google/ads/google_ads/v0/proto/services/video_service_pb2.py new file mode 100644 index 000000000..ee0461860 --- /dev/null +++ b/google/ads/google_ads/v0/proto/services/video_service_pb2.py @@ -0,0 +1,107 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v0/proto/services/video_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v0.proto.resources import video_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_video__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v0/proto/services/video_service.proto', + package='google.ads.googleads.v0.services', + syntax='proto3', + serialized_pb=_b('\n:google/ads/googleads_v0/proto/services/video_service.proto\x12 google.ads.googleads.v0.services\x1a\x33google/ads/googleads_v0/proto/resources/video.proto\x1a\x1cgoogle/api/annotations.proto\"(\n\x0fGetVideoRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xaa\x01\n\x0cVideoService\x12\x99\x01\n\x08GetVideo\x12\x31.google.ads.googleads.v0.services.GetVideoRequest\x1a(.google.ads.googleads.v0.resources.Video\"0\x82\xd3\xe4\x93\x02*\x12(/v0/{resource_name=customers/*/videos/*}B\xd1\x01\n$com.google.ads.googleads.v0.servicesB\x11VideoServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v0/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V0.Services\xca\x02 Google\\Ads\\GoogleAds\\V0\\Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_video__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_GETVIDEOREQUEST = _descriptor.Descriptor( + name='GetVideoRequest', + full_name='google.ads.googleads.v0.services.GetVideoRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v0.services.GetVideoRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=179, + serialized_end=219, +) + +DESCRIPTOR.message_types_by_name['GetVideoRequest'] = _GETVIDEOREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetVideoRequest = _reflection.GeneratedProtocolMessageType('GetVideoRequest', (_message.Message,), dict( + DESCRIPTOR = _GETVIDEOREQUEST, + __module__ = 'google.ads.googleads_v0.proto.services.video_service_pb2' + , + __doc__ = """Request message for + [VideoService.GetVideo][google.ads.googleads.v0.services.VideoService.GetVideo]. + + + Attributes: + resource_name: + The resource name of the video to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.GetVideoRequest) + )) +_sym_db.RegisterMessage(GetVideoRequest) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n$com.google.ads.googleads.v0.servicesB\021VideoServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v0/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\Services')) + +_VIDEOSERVICE = _descriptor.ServiceDescriptor( + name='VideoService', + full_name='google.ads.googleads.v0.services.VideoService', + file=DESCRIPTOR, + index=0, + options=None, + serialized_start=222, + serialized_end=392, + methods=[ + _descriptor.MethodDescriptor( + name='GetVideo', + full_name='google.ads.googleads.v0.services.VideoService.GetVideo', + index=0, + containing_service=None, + input_type=_GETVIDEOREQUEST, + output_type=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_video__pb2._VIDEO, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002*\022(/v0/{resource_name=customers/*/videos/*}')), + ), +]) +_sym_db.RegisterServiceDescriptor(_VIDEOSERVICE) + +DESCRIPTOR.services_by_name['VideoService'] = _VIDEOSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v0/proto/services/video_service_pb2_grpc.py b/google/ads/google_ads/v0/proto/services/video_service_pb2_grpc.py new file mode 100644 index 000000000..34c11e98e --- /dev/null +++ b/google/ads/google_ads/v0/proto/services/video_service_pb2_grpc.py @@ -0,0 +1,47 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v0.proto.resources import video_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_video__pb2 +from google.ads.google_ads.v0.proto.services import video_service_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_video__service__pb2 + + +class VideoServiceStub(object): + """Service to manage videos. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetVideo = channel.unary_unary( + '/google.ads.googleads.v0.services.VideoService/GetVideo', + request_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_video__service__pb2.GetVideoRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_video__pb2.Video.FromString, + ) + + +class VideoServiceServicer(object): + """Service to manage videos. + """ + + def GetVideo(self, request, context): + """Returns the requested video in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_VideoServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetVideo': grpc.unary_unary_rpc_method_handler( + servicer.GetVideo, + request_deserializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_services_dot_video__service__pb2.GetVideoRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_video__pb2.Video.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v0.services.VideoService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v0/services/account_budget_proposal_service_client.py b/google/ads/google_ads/v0/services/account_budget_proposal_service_client.py new file mode 100644 index 000000000..5a4077813 --- /dev/null +++ b/google/ads/google_ads/v0/services/account_budget_proposal_service_client.py @@ -0,0 +1,277 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +"""Accesses the google.ads.googleads.v0.services AccountBudgetProposalService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v0.services import account_budget_proposal_service_client_config +from google.ads.google_ads.v0.services.transports import account_budget_proposal_service_grpc_transport +from google.ads.google_ads.v0.proto.services import account_budget_proposal_service_pb2 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class AccountBudgetProposalServiceClient(object): + """ + A service for managing account-level budgets via proposals. + + A proposal is a request to create a new budget or make changes to an + existing one. + + Reads for account-level budgets managed by these proposals will be + supported in a future version. Please use BudgetOrderService until then: + https://developers.google.com/adwords/api/docs/guides/budget-order + + Mutates: + The CREATE operation creates a new proposal. + UPDATE operations aren't supported. + The REMOVE operation cancels a pending proposal. + """ + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v0.services.AccountBudgetProposalService' + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + AccountBudgetProposalServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + @classmethod + def account_budget_proposal_path(cls, customer, account_budget_proposal): + """Return a fully-qualified account_budget_proposal string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/accountBudgetProposals/{account_budget_proposal}', + customer=customer, + account_budget_proposal=account_budget_proposal, + ) + + def __init__( + self, + transport=None, + channel=None, + credentials=None, + client_config=account_budget_proposal_service_client_config.config, + client_info=None): + """Constructor. + + Args: + transport (Union[~.AccountBudgetProposalServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AccountBudgetProposalServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning) + if channel: + warnings.warn( + 'The `channel` argument is deprecated; use ' + '`transport` instead.', PendingDeprecationWarning) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class= + account_budget_proposal_service_grpc_transport. + AccountBudgetProposalServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = account_budget_proposal_service_grpc_transport.AccountBudgetProposalServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = ( + google.api_core.gapic_v1.client_info.DEFAULT_CLIENT_INFO) + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_account_budget_proposal( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns an account-level budget proposal in full detail. + + Args: + resource_name (str): The resource name of the account-level budget proposal to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.google_ads.v0.types.AccountBudgetProposal` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_account_budget_proposal' not in self._inner_api_calls: + self._inner_api_calls[ + 'get_account_budget_proposal'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_account_budget_proposal, + default_retry=self._method_configs[ + 'GetAccountBudgetProposal'].retry, + default_timeout=self._method_configs[ + 'GetAccountBudgetProposal'].timeout, + client_info=self._client_info, + ) + + request = account_budget_proposal_service_pb2.GetAccountBudgetProposalRequest( + resource_name=resource_name, ) + return self._inner_api_calls['get_account_budget_proposal']( + request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_account_budget_proposal( + self, + customer_id, + operation, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes account budget proposals. Operation statuses + are returned. + + Args: + customer_id (str): The ID of the customer. + operation (Union[dict, ~google.ads.google_ads.v0.types.AccountBudgetProposalOperation]): The operation to perform on an individual account-level budget proposal. + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.google_ads.v0.types.AccountBudgetProposalOperation` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.google_ads.v0.types.MutateAccountBudgetProposalResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_account_budget_proposal' not in self._inner_api_calls: + self._inner_api_calls[ + 'mutate_account_budget_proposal'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_account_budget_proposal, + default_retry=self._method_configs[ + 'MutateAccountBudgetProposal'].retry, + default_timeout=self._method_configs[ + 'MutateAccountBudgetProposal'].timeout, + client_info=self._client_info, + ) + + request = account_budget_proposal_service_pb2.MutateAccountBudgetProposalRequest( + customer_id=customer_id, + operation=operation, + ) + return self._inner_api_calls['mutate_account_budget_proposal']( + request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v0/services/account_budget_proposal_service_client_config.py b/google/ads/google_ads/v0/services/account_budget_proposal_service_client_config.py new file mode 100644 index 000000000..7a0576550 --- /dev/null +++ b/google/ads/google_ads/v0/services/account_budget_proposal_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v0.services.AccountBudgetProposalService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "GetAccountBudgetProposal": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateAccountBudgetProposal": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v0/services/ad_group_ad_service_client.py b/google/ads/google_ads/v0/services/ad_group_ad_service_client.py index d63e22d73..f5caa6c23 100644 --- a/google/ads/google_ads/v0/services/ad_group_ad_service_client.py +++ b/google/ads/google_ads/v0/services/ad_group_ad_service_client.py @@ -167,15 +167,6 @@ def get_ad_group_ad(self, """ Returns the requested ad in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.AdGroupAdServiceClient() - >>> - >>> resource_name = client.ad_group_ad_path('[CUSTOMER]', '[AD_GROUP_AD]') - >>> - >>> response = client.get_ad_group_ad(resource_name) - Args: resource_name (str): The resource name of the ad to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -188,7 +179,7 @@ def get_ad_group_ad(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.AdGroupAd` instance. + A :class:`~google.ads.google_ads.v0.types.AdGroupAd` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -222,24 +213,11 @@ def mutate_ad_group_ads(self, """ Creates, updates, or removes ads. Operation statuses are returned. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.AdGroupAdServiceClient() - >>> - >>> # TODO: Initialize ``customer_id``: - >>> customer_id = '' - >>> - >>> # TODO: Initialize ``operations``: - >>> operations = [] - >>> - >>> response = client.mutate_ad_group_ads(customer_id, operations) - Args: customer_id (str): The ID of the customer whose ads are being modified. - operations (list[Union[dict, ~google.cloud.ads.googleads_v0.types.AdGroupAdOperation]]): The list of operations to perform on individual ads. + operations (list[Union[dict, ~google.ads.google_ads.v0.types.AdGroupAdOperation]]): The list of operations to perform on individual ads. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.ads.googleads_v0.types.AdGroupAdOperation` + message :class:`~google.ads.google_ads.v0.types.AdGroupAdOperation` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -250,7 +228,7 @@ def mutate_ad_group_ads(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.MutateAdGroupAdsResponse` instance. + A :class:`~google.ads.google_ads.v0.types.MutateAdGroupAdsResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/ad_group_bid_modifier_service_client.py b/google/ads/google_ads/v0/services/ad_group_bid_modifier_service_client.py index fa0b09afa..f603b80fb 100644 --- a/google/ads/google_ads/v0/services/ad_group_bid_modifier_service_client.py +++ b/google/ads/google_ads/v0/services/ad_group_bid_modifier_service_client.py @@ -169,15 +169,6 @@ def get_ad_group_bid_modifier( """ Returns the requested ad group bid modifier in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.AdGroupBidModifierServiceClient() - >>> - >>> resource_name = client.ad_group_bid_modifier_path('[CUSTOMER]', '[AD_GROUP_BID_MODIFIER]') - >>> - >>> response = client.get_ad_group_bid_modifier(resource_name) - Args: resource_name (str): The resource name of the ad group bid modifier to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -190,7 +181,7 @@ def get_ad_group_bid_modifier( that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.AdGroupBidModifier` instance. + A :class:`~google.ads.google_ads.v0.types.AdGroupBidModifier` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -227,24 +218,11 @@ def mutate_ad_group_bid_modifiers( Creates, updates, or removes ad group bid modifiers. Operation statuses are returned. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.AdGroupBidModifierServiceClient() - >>> - >>> # TODO: Initialize ``customer_id``: - >>> customer_id = '' - >>> - >>> # TODO: Initialize ``operations``: - >>> operations = [] - >>> - >>> response = client.mutate_ad_group_bid_modifiers(customer_id, operations) - Args: customer_id (str): ID of the customer whose ad group bid modifiers are being modified. - operations (list[Union[dict, ~google.cloud.ads.googleads_v0.types.AdGroupBidModifierOperation]]): The list of operations to perform on individual ad group bid modifiers. + operations (list[Union[dict, ~google.ads.google_ads.v0.types.AdGroupBidModifierOperation]]): The list of operations to perform on individual ad group bid modifiers. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.ads.googleads_v0.types.AdGroupBidModifierOperation` + message :class:`~google.ads.google_ads.v0.types.AdGroupBidModifierOperation` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -255,7 +233,7 @@ def mutate_ad_group_bid_modifiers( that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.MutateAdGroupBidModifiersResponse` instance. + A :class:`~google.ads.google_ads.v0.types.MutateAdGroupBidModifiersResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/ad_group_criterion_service_client.py b/google/ads/google_ads/v0/services/ad_group_criterion_service_client.py index f56746f16..2d3ec30b4 100644 --- a/google/ads/google_ads/v0/services/ad_group_criterion_service_client.py +++ b/google/ads/google_ads/v0/services/ad_group_criterion_service_client.py @@ -167,15 +167,6 @@ def get_ad_group_criterion(self, """ Returns the requested criterion in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.AdGroupCriterionServiceClient() - >>> - >>> resource_name = client.ad_group_criteria_path('[CUSTOMER]', '[AD_GROUP_CRITERIA]') - >>> - >>> response = client.get_ad_group_criterion(resource_name) - Args: resource_name (str): The resource name of the criterion to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -188,7 +179,7 @@ def get_ad_group_criterion(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.AdGroupCriterion` instance. + A :class:`~google.ads.google_ads.v0.types.AdGroupCriterion` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -224,24 +215,11 @@ def mutate_ad_group_criteria( """ Creates, updates, or removes criteria. Operation statuses are returned. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.AdGroupCriterionServiceClient() - >>> - >>> # TODO: Initialize ``customer_id``: - >>> customer_id = '' - >>> - >>> # TODO: Initialize ``operations``: - >>> operations = [] - >>> - >>> response = client.mutate_ad_group_criteria(customer_id, operations) - Args: customer_id (str): ID of the customer whose criteria are being modified. - operations (list[Union[dict, ~google.cloud.ads.googleads_v0.types.AdGroupCriterionOperation]]): The list of operations to perform on individual criteria. + operations (list[Union[dict, ~google.ads.google_ads.v0.types.AdGroupCriterionOperation]]): The list of operations to perform on individual criteria. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.ads.googleads_v0.types.AdGroupCriterionOperation` + message :class:`~google.ads.google_ads.v0.types.AdGroupCriterionOperation` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -252,7 +230,7 @@ def mutate_ad_group_criteria( that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.MutateAdGroupCriteriaResponse` instance. + A :class:`~google.ads.google_ads.v0.types.MutateAdGroupCriteriaResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/ad_group_service_client.py b/google/ads/google_ads/v0/services/ad_group_service_client.py index 3aef77f01..49db24610 100644 --- a/google/ads/google_ads/v0/services/ad_group_service_client.py +++ b/google/ads/google_ads/v0/services/ad_group_service_client.py @@ -167,15 +167,6 @@ def get_ad_group(self, """ Returns the requested ad group in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.AdGroupServiceClient() - >>> - >>> resource_name = client.ad_group_path('[CUSTOMER]', '[AD_GROUP]') - >>> - >>> response = client.get_ad_group(resource_name) - Args: resource_name (str): The resource name of the ad group to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -188,7 +179,7 @@ def get_ad_group(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.AdGroup` instance. + A :class:`~google.ads.google_ads.v0.types.AdGroup` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -221,24 +212,11 @@ def mutate_ad_groups(self, """ Creates, updates, or removes ad groups. Operation statuses are returned. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.AdGroupServiceClient() - >>> - >>> # TODO: Initialize ``customer_id``: - >>> customer_id = '' - >>> - >>> # TODO: Initialize ``operations``: - >>> operations = [] - >>> - >>> response = client.mutate_ad_groups(customer_id, operations) - Args: customer_id (str): The ID of the customer whose ad groups are being modified. - operations (list[Union[dict, ~google.cloud.ads.googleads_v0.types.AdGroupOperation]]): The list of operations to perform on individual ad groups. + operations (list[Union[dict, ~google.ads.google_ads.v0.types.AdGroupOperation]]): The list of operations to perform on individual ad groups. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.ads.googleads_v0.types.AdGroupOperation` + message :class:`~google.ads.google_ads.v0.types.AdGroupOperation` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -249,7 +227,7 @@ def mutate_ad_groups(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.MutateAdGroupsResponse` instance. + A :class:`~google.ads.google_ads.v0.types.MutateAdGroupsResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/bidding_strategy_service_client.py b/google/ads/google_ads/v0/services/bidding_strategy_service_client.py index fcbdc9eaf..16716703e 100644 --- a/google/ads/google_ads/v0/services/bidding_strategy_service_client.py +++ b/google/ads/google_ads/v0/services/bidding_strategy_service_client.py @@ -167,15 +167,6 @@ def get_bidding_strategy(self, """ Returns the requested bidding strategy in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.BiddingStrategyServiceClient() - >>> - >>> resource_name = client.bidding_strategy_path('[CUSTOMER]', '[BIDDING_STRATEGY]') - >>> - >>> response = client.get_bidding_strategy(resource_name) - Args: resource_name (str): The resource name of the bidding strategy to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -188,7 +179,7 @@ def get_bidding_strategy(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.BiddingStrategy` instance. + A :class:`~google.ads.google_ads.v0.types.BiddingStrategy` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -225,24 +216,11 @@ def mutate_bidding_strategies( Creates, updates, or removes bidding strategies. Operation statuses are returned. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.BiddingStrategyServiceClient() - >>> - >>> # TODO: Initialize ``customer_id``: - >>> customer_id = '' - >>> - >>> # TODO: Initialize ``operations``: - >>> operations = [] - >>> - >>> response = client.mutate_bidding_strategies(customer_id, operations) - Args: customer_id (str): The ID of the customer whose bidding strategies are being modified. - operations (list[Union[dict, ~google.cloud.ads.googleads_v0.types.BiddingStrategyOperation]]): The list of operations to perform on individual bidding strategies. + operations (list[Union[dict, ~google.ads.google_ads.v0.types.BiddingStrategyOperation]]): The list of operations to perform on individual bidding strategies. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.ads.googleads_v0.types.BiddingStrategyOperation` + message :class:`~google.ads.google_ads.v0.types.BiddingStrategyOperation` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -253,7 +231,7 @@ def mutate_bidding_strategies( that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.MutateBiddingStrategiesResponse` instance. + A :class:`~google.ads.google_ads.v0.types.MutateBiddingStrategiesResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/billing_setup_service_client.py b/google/ads/google_ads/v0/services/billing_setup_service_client.py new file mode 100644 index 000000000..154cd849e --- /dev/null +++ b/google/ads/google_ads/v0/services/billing_setup_service_client.py @@ -0,0 +1,269 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +"""Accesses the google.ads.googleads.v0.services BillingSetupService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v0.services import billing_setup_service_client_config +from google.ads.google_ads.v0.services.transports import billing_setup_service_grpc_transport +from google.ads.google_ads.v0.proto.services import billing_setup_service_pb2 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class BillingSetupServiceClient(object): + """ + A service for designating the business entity responsible for accrued costs. + + A billing setup is associated with a Payments account. Billing-related + activity for all billing setups associated with a particular Payments account + will appear on a single invoice generated monthly. + + Mutates: + The REMOVE operation cancels a pending billing setup. + Functionality for creating new billing setups will be supported in a future + version. + """ + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v0.services.BillingSetupService' + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + BillingSetupServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + @classmethod + def billing_setup_path(cls, customer, billing_setup): + """Return a fully-qualified billing_setup string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/billingSetups/{billing_setup}', + customer=customer, + billing_setup=billing_setup, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=billing_setup_service_client_config.config, + client_info=None): + """Constructor. + + Args: + transport (Union[~.BillingSetupServiceGrpcTransport, + Callable[[~.Credentials, type], ~.BillingSetupServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning) + if channel: + warnings.warn( + 'The `channel` argument is deprecated; use ' + '`transport` instead.', PendingDeprecationWarning) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=billing_setup_service_grpc_transport. + BillingSetupServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = billing_setup_service_grpc_transport.BillingSetupServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = ( + google.api_core.gapic_v1.client_info.DEFAULT_CLIENT_INFO) + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_billing_setup(self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns a billing setup. + + Args: + resource_name (str): The resource name of the billing setup to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.google_ads.v0.types.BillingSetup` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_billing_setup' not in self._inner_api_calls: + self._inner_api_calls[ + 'get_billing_setup'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_billing_setup, + default_retry=self._method_configs[ + 'GetBillingSetup'].retry, + default_timeout=self._method_configs['GetBillingSetup'] + .timeout, + client_info=self._client_info, + ) + + request = billing_setup_service_pb2.GetBillingSetupRequest( + resource_name=resource_name, ) + return self._inner_api_calls['get_billing_setup']( + request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_billing_setup(self, + customer_id, + operation, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Cancels a pending billing setup. + + Args: + customer_id (str): Id of the customer to apply the billing setup mutate operation to. + operation (Union[dict, ~google.ads.google_ads.v0.types.BillingSetupOperation]): The operation to perform. + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.google_ads.v0.types.BillingSetupOperation` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.google_ads.v0.types.MutateBillingSetupResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_billing_setup' not in self._inner_api_calls: + self._inner_api_calls[ + 'mutate_billing_setup'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_billing_setup, + default_retry=self._method_configs[ + 'MutateBillingSetup'].retry, + default_timeout=self._method_configs['MutateBillingSetup'] + .timeout, + client_info=self._client_info, + ) + + request = billing_setup_service_pb2.MutateBillingSetupRequest( + customer_id=customer_id, + operation=operation, + ) + return self._inner_api_calls['mutate_billing_setup']( + request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v0/services/billing_setup_service_client_config.py b/google/ads/google_ads/v0/services/billing_setup_service_client_config.py new file mode 100644 index 000000000..a3d9b92ae --- /dev/null +++ b/google/ads/google_ads/v0/services/billing_setup_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v0.services.BillingSetupService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "GetBillingSetup": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateBillingSetup": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v0/services/campaign_bid_modifier_service_client.py b/google/ads/google_ads/v0/services/campaign_bid_modifier_service_client.py index f1fef7a4d..613a3363f 100644 --- a/google/ads/google_ads/v0/services/campaign_bid_modifier_service_client.py +++ b/google/ads/google_ads/v0/services/campaign_bid_modifier_service_client.py @@ -169,15 +169,6 @@ def get_campaign_bid_modifier( """ Returns the requested campaign bid modifier in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.CampaignBidModifierServiceClient() - >>> - >>> resource_name = client.campaign_bid_modifier_path('[CUSTOMER]', '[CAMPAIGN_BID_MODIFIER]') - >>> - >>> response = client.get_campaign_bid_modifier(resource_name) - Args: resource_name (str): The resource name of the campaign bid modifier to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -190,7 +181,7 @@ def get_campaign_bid_modifier( that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.CampaignBidModifier` instance. + A :class:`~google.ads.google_ads.v0.types.CampaignBidModifier` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -227,24 +218,11 @@ def mutate_campaign_bid_modifiers( Creates, updates, or removes campaign bid modifiers. Operation statuses are returned. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.CampaignBidModifierServiceClient() - >>> - >>> # TODO: Initialize ``customer_id``: - >>> customer_id = '' - >>> - >>> # TODO: Initialize ``operations``: - >>> operations = [] - >>> - >>> response = client.mutate_campaign_bid_modifiers(customer_id, operations) - Args: customer_id (str): ID of the customer whose campaign bid modifiers are being modified. - operations (list[Union[dict, ~google.cloud.ads.googleads_v0.types.CampaignBidModifierOperation]]): The list of operations to perform on individual campaign bid modifiers. + operations (list[Union[dict, ~google.ads.google_ads.v0.types.CampaignBidModifierOperation]]): The list of operations to perform on individual campaign bid modifiers. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.ads.googleads_v0.types.CampaignBidModifierOperation` + message :class:`~google.ads.google_ads.v0.types.CampaignBidModifierOperation` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -255,7 +233,7 @@ def mutate_campaign_bid_modifiers( that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.MutateCampaignBidModifiersResponse` instance. + A :class:`~google.ads.google_ads.v0.types.MutateCampaignBidModifiersResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/campaign_budget_service_client.py b/google/ads/google_ads/v0/services/campaign_budget_service_client.py index 7542149c1..a069cc26d 100644 --- a/google/ads/google_ads/v0/services/campaign_budget_service_client.py +++ b/google/ads/google_ads/v0/services/campaign_budget_service_client.py @@ -167,15 +167,6 @@ def get_campaign_budget(self, """ Returns the requested Campaign Budget in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.CampaignBudgetServiceClient() - >>> - >>> resource_name = client.campaign_budget_path('[CUSTOMER]', '[CAMPAIGN_BUDGET]') - >>> - >>> response = client.get_campaign_budget(resource_name) - Args: resource_name (str): The resource name of the campaign budget to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -188,7 +179,7 @@ def get_campaign_budget(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.CampaignBudget` instance. + A :class:`~google.ads.google_ads.v0.types.CampaignBudget` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -225,24 +216,11 @@ def mutate_campaign_budgets( Creates, updates, or removes campaign budgets. Operation statuses are returned. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.CampaignBudgetServiceClient() - >>> - >>> # TODO: Initialize ``customer_id``: - >>> customer_id = '' - >>> - >>> # TODO: Initialize ``operations``: - >>> operations = [] - >>> - >>> response = client.mutate_campaign_budgets(customer_id, operations) - Args: customer_id (str): The ID of the customer whose campaign budgets are being modified. - operations (list[Union[dict, ~google.cloud.ads.googleads_v0.types.CampaignBudgetOperation]]): The list of operations to perform on individual campaign budgets. + operations (list[Union[dict, ~google.ads.google_ads.v0.types.CampaignBudgetOperation]]): The list of operations to perform on individual campaign budgets. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.ads.googleads_v0.types.CampaignBudgetOperation` + message :class:`~google.ads.google_ads.v0.types.CampaignBudgetOperation` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -253,7 +231,7 @@ def mutate_campaign_budgets( that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.MutateCampaignBudgetsResponse` instance. + A :class:`~google.ads.google_ads.v0.types.MutateCampaignBudgetsResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/campaign_criterion_service_client.py b/google/ads/google_ads/v0/services/campaign_criterion_service_client.py index ec4d6d455..51cf62939 100644 --- a/google/ads/google_ads/v0/services/campaign_criterion_service_client.py +++ b/google/ads/google_ads/v0/services/campaign_criterion_service_client.py @@ -167,15 +167,6 @@ def get_campaign_criterion(self, """ Returns the requested criterion in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.CampaignCriterionServiceClient() - >>> - >>> resource_name = client.campaign_criteria_path('[CUSTOMER]', '[CAMPAIGN_CRITERIA]') - >>> - >>> response = client.get_campaign_criterion(resource_name) - Args: resource_name (str): The resource name of the criterion to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -188,7 +179,7 @@ def get_campaign_criterion(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.CampaignCriterion` instance. + A :class:`~google.ads.google_ads.v0.types.CampaignCriterion` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -224,24 +215,11 @@ def mutate_campaign_criteria( """ Creates, updates, or removes criteria. Operation statuses are returned. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.CampaignCriterionServiceClient() - >>> - >>> # TODO: Initialize ``customer_id``: - >>> customer_id = '' - >>> - >>> # TODO: Initialize ``operations``: - >>> operations = [] - >>> - >>> response = client.mutate_campaign_criteria(customer_id, operations) - Args: customer_id (str): The ID of the customer whose criteria are being modified. - operations (list[Union[dict, ~google.cloud.ads.googleads_v0.types.CampaignCriterionOperation]]): The list of operations to perform on individual criteria. + operations (list[Union[dict, ~google.ads.google_ads.v0.types.CampaignCriterionOperation]]): The list of operations to perform on individual criteria. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.ads.googleads_v0.types.CampaignCriterionOperation` + message :class:`~google.ads.google_ads.v0.types.CampaignCriterionOperation` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -252,7 +230,7 @@ def mutate_campaign_criteria( that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.MutateCampaignCriteriaResponse` instance. + A :class:`~google.ads.google_ads.v0.types.MutateCampaignCriteriaResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/campaign_group_service_client.py b/google/ads/google_ads/v0/services/campaign_group_service_client.py index de217b244..29b04afd8 100644 --- a/google/ads/google_ads/v0/services/campaign_group_service_client.py +++ b/google/ads/google_ads/v0/services/campaign_group_service_client.py @@ -167,15 +167,6 @@ def get_campaign_group(self, """ Returns the requested campaign group in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.CampaignGroupServiceClient() - >>> - >>> resource_name = client.campaign_group_path('[CUSTOMER]', '[CAMPAIGN_GROUP]') - >>> - >>> response = client.get_campaign_group(resource_name) - Args: resource_name (str): The resource name of the campaign group to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -188,7 +179,7 @@ def get_campaign_group(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.CampaignGroup` instance. + A :class:`~google.ads.google_ads.v0.types.CampaignGroup` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -224,24 +215,11 @@ def mutate_campaign_groups(self, Creates, updates, or removes campaign groups. Operation statuses are returned. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.CampaignGroupServiceClient() - >>> - >>> # TODO: Initialize ``customer_id``: - >>> customer_id = '' - >>> - >>> # TODO: Initialize ``operations``: - >>> operations = [] - >>> - >>> response = client.mutate_campaign_groups(customer_id, operations) - Args: customer_id (str): The ID of the customer whose campaign groups are being modified. - operations (list[Union[dict, ~google.cloud.ads.googleads_v0.types.CampaignGroupOperation]]): The list of operations to perform on individual campaign groups. + operations (list[Union[dict, ~google.ads.google_ads.v0.types.CampaignGroupOperation]]): The list of operations to perform on individual campaign groups. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.ads.googleads_v0.types.CampaignGroupOperation` + message :class:`~google.ads.google_ads.v0.types.CampaignGroupOperation` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -252,7 +230,7 @@ def mutate_campaign_groups(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.MutateCampaignGroupsResponse` instance. + A :class:`~google.ads.google_ads.v0.types.MutateCampaignGroupsResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/campaign_service_client.py b/google/ads/google_ads/v0/services/campaign_service_client.py index 2aea37117..49e46f615 100644 --- a/google/ads/google_ads/v0/services/campaign_service_client.py +++ b/google/ads/google_ads/v0/services/campaign_service_client.py @@ -167,15 +167,6 @@ def get_campaign(self, """ Returns the requested campaign in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.CampaignServiceClient() - >>> - >>> resource_name = client.campaign_path('[CUSTOMER]', '[CAMPAIGN]') - >>> - >>> response = client.get_campaign(resource_name) - Args: resource_name (str): The resource name of the campaign to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -188,7 +179,7 @@ def get_campaign(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.Campaign` instance. + A :class:`~google.ads.google_ads.v0.types.Campaign` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -222,24 +213,11 @@ def mutate_campaigns(self, """ Creates, updates, or removes campaigns. Operation statuses are returned. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.CampaignServiceClient() - >>> - >>> # TODO: Initialize ``customer_id``: - >>> customer_id = '' - >>> - >>> # TODO: Initialize ``operations``: - >>> operations = [] - >>> - >>> response = client.mutate_campaigns(customer_id, operations) - Args: customer_id (str): The ID of the customer whose campaigns are being modified. - operations (list[Union[dict, ~google.cloud.ads.googleads_v0.types.CampaignOperation]]): The list of operations to perform on individual campaigns. + operations (list[Union[dict, ~google.ads.google_ads.v0.types.CampaignOperation]]): The list of operations to perform on individual campaigns. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.ads.googleads_v0.types.CampaignOperation` + message :class:`~google.ads.google_ads.v0.types.CampaignOperation` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -250,7 +228,7 @@ def mutate_campaigns(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.MutateCampaignsResponse` instance. + A :class:`~google.ads.google_ads.v0.types.MutateCampaignsResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/campaign_shared_set_service_client.py b/google/ads/google_ads/v0/services/campaign_shared_set_service_client.py index 8f14aebeb..07c3a1bac 100644 --- a/google/ads/google_ads/v0/services/campaign_shared_set_service_client.py +++ b/google/ads/google_ads/v0/services/campaign_shared_set_service_client.py @@ -169,15 +169,6 @@ def get_campaign_shared_set( """ Returns the requested campaign shared set in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.CampaignSharedSetServiceClient() - >>> - >>> resource_name = client.campaign_shared_set_path('[CUSTOMER]', '[CAMPAIGN_SHARED_SET]') - >>> - >>> response = client.get_campaign_shared_set(resource_name) - Args: resource_name (str): The resource name of the campaign shared set to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -190,7 +181,7 @@ def get_campaign_shared_set( that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.CampaignSharedSet` instance. + A :class:`~google.ads.google_ads.v0.types.CampaignSharedSet` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -226,24 +217,11 @@ def mutate_campaign_shared_sets( """ Creates or removes campaign shared sets. Operation statuses are returned. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.CampaignSharedSetServiceClient() - >>> - >>> # TODO: Initialize ``customer_id``: - >>> customer_id = '' - >>> - >>> # TODO: Initialize ``operations``: - >>> operations = [] - >>> - >>> response = client.mutate_campaign_shared_sets(customer_id, operations) - Args: customer_id (str): The ID of the customer whose campaign shared sets are being modified. - operations (list[Union[dict, ~google.cloud.ads.googleads_v0.types.CampaignSharedSetOperation]]): The list of operations to perform on individual campaign shared sets. + operations (list[Union[dict, ~google.ads.google_ads.v0.types.CampaignSharedSetOperation]]): The list of operations to perform on individual campaign shared sets. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.ads.googleads_v0.types.CampaignSharedSetOperation` + message :class:`~google.ads.google_ads.v0.types.CampaignSharedSetOperation` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -254,7 +232,7 @@ def mutate_campaign_shared_sets( that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.MutateCampaignSharedSetsResponse` instance. + A :class:`~google.ads.google_ads.v0.types.MutateCampaignSharedSetsResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/change_status_service_client.py b/google/ads/google_ads/v0/services/change_status_service_client.py new file mode 100644 index 000000000..96b640d2b --- /dev/null +++ b/google/ads/google_ads/v0/services/change_status_service_client.py @@ -0,0 +1,206 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +"""Accesses the google.ads.googleads.v0.services ChangeStatusService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v0.services import change_status_service_client_config +from google.ads.google_ads.v0.services.transports import change_status_service_grpc_transport +from google.ads.google_ads.v0.proto.services import change_status_service_pb2 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class ChangeStatusServiceClient(object): + """Service to fetch change statuses.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v0.services.ChangeStatusService' + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + ChangeStatusServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + @classmethod + def change_status_path(cls, customer, change_status): + """Return a fully-qualified change_status string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/changeStatus/{change_status}', + customer=customer, + change_status=change_status, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=change_status_service_client_config.config, + client_info=None): + """Constructor. + + Args: + transport (Union[~.ChangeStatusServiceGrpcTransport, + Callable[[~.Credentials, type], ~.ChangeStatusServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning) + if channel: + warnings.warn( + 'The `channel` argument is deprecated; use ' + '`transport` instead.', PendingDeprecationWarning) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=change_status_service_grpc_transport. + ChangeStatusServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = change_status_service_grpc_transport.ChangeStatusServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = ( + google.api_core.gapic_v1.client_info.DEFAULT_CLIENT_INFO) + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_change_status(self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested change status in full detail. + + Args: + resource_name (str): The resource name of the change status to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.google_ads.v0.types.ChangeStatus` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_change_status' not in self._inner_api_calls: + self._inner_api_calls[ + 'get_change_status'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_change_status, + default_retry=self._method_configs[ + 'GetChangeStatus'].retry, + default_timeout=self._method_configs['GetChangeStatus'] + .timeout, + client_info=self._client_info, + ) + + request = change_status_service_pb2.GetChangeStatusRequest( + resource_name=resource_name, ) + return self._inner_api_calls['get_change_status']( + request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v0/services/change_status_service_client_config.py b/google/ads/google_ads/v0/services/change_status_service_client_config.py new file mode 100644 index 000000000..75b72a442 --- /dev/null +++ b/google/ads/google_ads/v0/services/change_status_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v0.services.ChangeStatusService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "GetChangeStatus": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v0/services/conversion_action_service_client.py b/google/ads/google_ads/v0/services/conversion_action_service_client.py new file mode 100644 index 000000000..7130871cd --- /dev/null +++ b/google/ads/google_ads/v0/services/conversion_action_service_client.py @@ -0,0 +1,260 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +"""Accesses the google.ads.googleads.v0.services ConversionActionService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v0.services import conversion_action_service_client_config +from google.ads.google_ads.v0.services.transports import conversion_action_service_grpc_transport +from google.ads.google_ads.v0.proto.services import conversion_action_service_pb2 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class ConversionActionServiceClient(object): + """Service to manage conversion actions.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v0.services.ConversionActionService' + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + ConversionActionServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + @classmethod + def conversion_action_path(cls, customer, conversion_action): + """Return a fully-qualified conversion_action string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/conversionActions/{conversion_action}', + customer=customer, + conversion_action=conversion_action, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=conversion_action_service_client_config.config, + client_info=None): + """Constructor. + + Args: + transport (Union[~.ConversionActionServiceGrpcTransport, + Callable[[~.Credentials, type], ~.ConversionActionServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning) + if channel: + warnings.warn( + 'The `channel` argument is deprecated; use ' + '`transport` instead.', PendingDeprecationWarning) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=conversion_action_service_grpc_transport. + ConversionActionServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = conversion_action_service_grpc_transport.ConversionActionServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = ( + google.api_core.gapic_v1.client_info.DEFAULT_CLIENT_INFO) + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_conversion_action(self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested conversion action. + + Args: + resource_name (str): The resource name of the conversion action to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.google_ads.v0.types.ConversionAction` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_conversion_action' not in self._inner_api_calls: + self._inner_api_calls[ + 'get_conversion_action'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_conversion_action, + default_retry=self._method_configs[ + 'GetConversionAction'].retry, + default_timeout=self._method_configs['GetConversionAction'] + .timeout, + client_info=self._client_info, + ) + + request = conversion_action_service_pb2.GetConversionActionRequest( + resource_name=resource_name, ) + return self._inner_api_calls['get_conversion_action']( + request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_conversion_actions( + self, + customer_id, + operations, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates or removes conversion actions. Operation statuses are + returned. + + Args: + customer_id (str): The ID of the customer whose conversion actions are being modified. + operations (list[Union[dict, ~google.ads.google_ads.v0.types.ConversionActionOperation]]): The list of operations to perform on individual conversion actions. + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.google_ads.v0.types.ConversionActionOperation` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.google_ads.v0.types.MutateConversionActionsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_conversion_actions' not in self._inner_api_calls: + self._inner_api_calls[ + 'mutate_conversion_actions'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_conversion_actions, + default_retry=self._method_configs[ + 'MutateConversionActions'].retry, + default_timeout=self._method_configs[ + 'MutateConversionActions'].timeout, + client_info=self._client_info, + ) + + request = conversion_action_service_pb2.MutateConversionActionsRequest( + customer_id=customer_id, + operations=operations, + ) + return self._inner_api_calls['mutate_conversion_actions']( + request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v0/services/conversion_action_service_client_config.py b/google/ads/google_ads/v0/services/conversion_action_service_client_config.py new file mode 100644 index 000000000..214663a7b --- /dev/null +++ b/google/ads/google_ads/v0/services/conversion_action_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v0.services.ConversionActionService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "GetConversionAction": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateConversionActions": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v0/services/customer_service_client.py b/google/ads/google_ads/v0/services/customer_service_client.py index 5145f2a97..e87fd9440 100644 --- a/google/ads/google_ads/v0/services/customer_service_client.py +++ b/google/ads/google_ads/v0/services/customer_service_client.py @@ -166,15 +166,6 @@ def get_customer(self, """ Returns the requested customer in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.CustomerServiceClient() - >>> - >>> resource_name = client.customer_path('[CUSTOMER]') - >>> - >>> response = client.get_customer(resource_name) - Args: resource_name (str): The resource name of the customer to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -187,7 +178,7 @@ def get_customer(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.Customer` instance. + A :class:`~google.ads.google_ads.v0.types.Customer` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/enums.py b/google/ads/google_ads/v0/services/enums.py index a2234512b..43e92e87d 100644 --- a/google/ads/google_ads/v0/services/enums.py +++ b/google/ads/google_ads/v0/services/enums.py @@ -16,6 +16,23 @@ import enum +class PageOnePromotedStrategyGoalEnum(object): + class PageOnePromotedStrategyGoal(enum.IntEnum): + """ + Enum describing possible strategy goals. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + FIRST_PAGE (int): First page on google.com. + FIRST_PAGE_PROMOTED (int): Top slots of the first page on google.com. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + FIRST_PAGE = 2 + FIRST_PAGE_PROMOTED = 3 + + class PolicyTopicEntryTypeEnum(object): class PolicyTopicEntryType(enum.IntEnum): """ @@ -105,14 +122,12 @@ class Device(enum.IntEnum): MOBILE (int): Mobile devices with full browsers. TABLET (int): Tablets with full browsers. DESKTOP (int): Computers. - CONNECTED_TV (int): Connected TV. """ UNSPECIFIED = 0 UNKNOWN = 1 MOBILE = 2 TABLET = 3 DESKTOP = 4 - CONNECTED_TV = 5 class HotelDateSelectionTypeEnum(object): @@ -229,6 +244,42 @@ class MinuteOfHour(enum.IntEnum): FORTY_FIVE = 5 +class ProductChannelEnum(object): + class ProductChannel(enum.IntEnum): + """ + Enum describing the locality of a product offer. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ONLINE (int): The item is sold online. + LOCAL (int): The item is sold in local stores. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ONLINE = 2 + LOCAL = 3 + + +class ProductChannelExclusivityEnum(object): + class ProductChannelExclusivity(enum.IntEnum): + """ + Enum describing the availability of a product offer. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + SINGLE_CHANNEL (int): The item is sold through one channel only, either local stores or online + as indicated by its ProductChannel. + MULTI_CHANNEL (int): The item is matched to its online or local stores counterpart, indicating + it is available for purchase in both ShoppingProductChannels. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + SINGLE_CHANNEL = 2 + MULTI_CHANNEL = 3 + + class ProductConditionEnum(object): class ProductCondition(enum.IntEnum): """ @@ -273,311 +324,363 @@ class ProductTypeLevel(enum.IntEnum): PRODUCT_TYPE_L5 = 6 -class PageOnePromotedStrategyGoalEnum(object): - class PageOnePromotedStrategyGoal(enum.IntEnum): +class AdServingOptimizationStatusEnum(object): + class AdServingOptimizationStatus(enum.IntEnum): """ - Enum describing possible strategy goals. + Enum describing possible serving statuses. + + Attributes: + UNSPECIFIED (int): No value has been specified. + UNKNOWN (int): The received value is not known in this version. + + This is a response-only value. + OPTIMIZE (int): Ad serving is optimized based on CTR for the campaign. + CONVERSION_OPTIMIZE (int): Ad serving is optimized based on CTR * Conversion for the campaign. If + the campaign is not in the conversion optimizer bidding strategy, it will + default to OPTIMIZED. + ROTATE (int): Ads are rotated evenly for 90 days, then optimized for clicks. + ROTATE_INDEFINITELY (int): Show lower performing ads more evenly with higher performing ads, and do + not optimize. + UNAVAILABLE (int): Ad serving optimization status is not available. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + OPTIMIZE = 2 + CONVERSION_OPTIMIZE = 3 + ROTATE = 4 + ROTATE_INDEFINITELY = 5 + UNAVAILABLE = 6 + + +class TargetCpaOptInRecommendationGoalEnum(object): + class TargetCpaOptInRecommendationGoal(enum.IntEnum): + """ + Goal of TargetCpaOptIn recommendation. Attributes: UNSPECIFIED (int): Not specified. UNKNOWN (int): Used for return value only. Represents value unknown in this version. - FIRST_PAGE (int): First page on google.com. - FIRST_PAGE_PROMOTED (int): Top slots of the first page on google.com. + SAME_COST (int): Recommendation to set Target CPA to maintain the same cost. + SAME_CONVERSIONS (int): Recommendation to set Target CPA to maintain the same conversions. + SAME_CPA (int): Recommendation to set Target CPA to maintain the same CPA. + CLOSEST_CPA (int): Recommendation to set Target CPA to a value that is as close as possible + to, yet lower than, the actual CPA (computed for past 28 days). """ UNSPECIFIED = 0 UNKNOWN = 1 - FIRST_PAGE = 2 - FIRST_PAGE_PROMOTED = 3 + SAME_COST = 2 + SAME_CONVERSIONS = 3 + SAME_CPA = 4 + CLOSEST_CPA = 5 -class QualityScoreBucketEnum(object): - class QualityScoreBucket(enum.IntEnum): +class BiddingStrategyTypeEnum(object): + class BiddingStrategyType(enum.IntEnum): """ - Enum listing the possible quality score buckets. + Enum describing possible bidding strategy types. Attributes: UNSPECIFIED (int): Not specified. UNKNOWN (int): Used for return value only. Represents value unknown in this version. - BELOW_AVERAGE (int): Quality of the creative is below average. - AVERAGE (int): Quality of the creative is average. - ABOVE_AVERAGE (int): Quality of the creative is above average. + ENHANCED_CPC (int): Enhanced CPC is a bidding strategy that raises bids for clicks + that seem more likely to lead to a conversion and lowers + them for clicks where they seem less likely. + MANUAL_CPC (int): Manual click based bidding where user pays per click. + MANUAL_CPM (int): Manual impression based bidding + where user pays per thousand impressions. + MANUAL_CPV (int): A bidding strategy that pays a configurable amount per video view. + MAXIMIZE_CONVERSIONS (int): A bidding strategy that automatically maximizes number of conversions + given a daily budget. + MAXIMIZE_CONVERSION_VALUE (int): An automated bidding strategy that automatically sets bids to maximize + revenue while spending your budget. + PAGE_ONE_PROMOTED (int): Page-One Promoted bidding scheme, which sets max cpc bids to + target impressions on page one or page one promoted slots on google.com. + PERCENT_CPC (int): Percent Cpc is bidding strategy where bids are a fraction of the + advertised price for some good or service. + TARGET_CPA (int): Target CPA is an automated bid strategy that sets bids + to help get as many conversions as possible + at the target cost-per-acquisition (CPA) you set. + TARGET_OUTRANK_SHARE (int): Target Outrank Share is an automated bidding strategy that sets bids + based on the target fraction of auctions where the advertiser + should outrank a specific competitor. + TARGET_ROAS (int): Target ROAS is an automated bidding strategy + that helps you maximize revenue while averaging + a specific target Return On Average Spend (ROAS). + TARGET_SPEND (int): Target Spend is an automated bid strategy that sets your bids + to help get as many clicks as possible within your budget. """ UNSPECIFIED = 0 UNKNOWN = 1 - BELOW_AVERAGE = 2 - AVERAGE = 3 - ABOVE_AVERAGE = 4 + ENHANCED_CPC = 2 + MANUAL_CPC = 3 + MANUAL_CPM = 4 + MANUAL_CPV = 13 + MAXIMIZE_CONVERSIONS = 10 + MAXIMIZE_CONVERSION_VALUE = 11 + PAGE_ONE_PROMOTED = 5 + PERCENT_CPC = 12 + TARGET_CPA = 6 + TARGET_OUTRANK_SHARE = 7 + TARGET_ROAS = 8 + TARGET_SPEND = 9 -class AdGroupStatusEnum(object): - class AdGroupStatus(enum.IntEnum): +class CampaignGroupStatusEnum(object): + class CampaignGroupStatus(enum.IntEnum): """ - The possible statuses of an ad group. + Possible statuses of a CampaignGroup. Attributes: - UNSPECIFIED (int): The status has not been specified. - UNKNOWN (int): The received value is not known in this version. - - This is a response-only value. - ENABLED (int): The ad group is enabled. - PAUSED (int): The ad group is paused. - REMOVED (int): The ad group is removed. + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): Campaign group is currently serving ads depending on budget information. + REMOVED (int): Campaign group has been removed. """ UNSPECIFIED = 0 UNKNOWN = 1 ENABLED = 2 - PAUSED = 3 REMOVED = 4 -class AdGroupAdStatusEnum(object): - class AdGroupAdStatus(enum.IntEnum): +class CampaignServingStatusEnum(object): + class CampaignServingStatus(enum.IntEnum): """ - The possible statuses of an AdGroupAd. + Possible serving statuses of a campaign. Attributes: UNSPECIFIED (int): No value has been specified. UNKNOWN (int): The received value is not known in this version. This is a response-only value. - ENABLED (int): The ad group ad is enabled. - PAUSED (int): The ad group ad is paused. - REMOVED (int): The ad group ad is removed. + SERVING (int): Serving. + NONE (int): None. + ENDED (int): Ended. + PENDING (int): Pending. + SUSPENDED (int): Suspended. """ UNSPECIFIED = 0 UNKNOWN = 1 - ENABLED = 2 - PAUSED = 3 - REMOVED = 4 + SERVING = 2 + NONE = 3 + ENDED = 4 + PENDING = 5 + SUSPENDED = 6 -class CampaignGroupStatusEnum(object): - class CampaignGroupStatus(enum.IntEnum): +class TrackingCodePageFormatEnum(object): + class TrackingCodePageFormat(enum.IntEnum): """ - Possible statuses of a CampaignGroup. + The format of the web page where the tracking tag and snippet will be + installed. Attributes: UNSPECIFIED (int): Not specified. UNKNOWN (int): Used for return value only. Represents value unknown in this version. - ENABLED (int): Campaign group is currently serving ads depending on budget information. - REMOVED (int): Campaign group has been removed. + HTML (int): Standard HTML page format. """ UNSPECIFIED = 0 UNKNOWN = 1 - ENABLED = 2 - REMOVED = 4 + HTML = 2 -class MonthOfYearEnum(object): - class MonthOfYear(enum.IntEnum): +class ResourceTypeEnum(object): + class ResourceType(enum.IntEnum): """ - Enumerates months of the year, e.g., \"January\". + Enum listing the resource types support by the ChangeStatus resource. Attributes: - UNSPECIFIED (int): Not specified. - UNKNOWN (int): The value is unknown in this version. - JANUARY (int): January. - FEBRUARY (int): February. - MARCH (int): March. - APRIL (int): April. - MAY (int): May. - JUNE (int): June. - JULY (int): July. - AUGUST (int): August. - SEPTEMBER (int): September. - OCTOBER (int): October. - NOVEMBER (int): November. - DECEMBER (int): December. + UNSPECIFIED (int): No value has been specified. + UNKNOWN (int): Used for return value only. Represents an unclassified resource unknown + in this version. + AD (int): An Ad resource change. + AD_GROUP (int): An AdGroup resource change. + AD_GROUP_AD (int): An AdGroupAd resource change. + AD_GROUP_CRITERION (int): An AdGroupCriterion resource change. + CAMPAIGN (int): A Campaign resource change. + CAMPAIGN_CRITERION (int): A CampaignCriterion resource change. """ UNSPECIFIED = 0 UNKNOWN = 1 - JANUARY = 2 - FEBRUARY = 3 - MARCH = 4 - APRIL = 5 - MAY = 6 - JUNE = 7 - JULY = 8 - AUGUST = 9 - SEPTEMBER = 10 - OCTOBER = 11 - NOVEMBER = 12 - DECEMBER = 13 + AD = 2 + AD_GROUP = 3 + AD_GROUP_AD = 4 + AD_GROUP_CRITERION = 5 + CAMPAIGN = 6 + CAMPAIGN_CRITERION = 7 -class RecommendationTypeEnum(object): - class RecommendationType(enum.IntEnum): +class QualityScoreBucketEnum(object): + class QualityScoreBucket(enum.IntEnum): """ - Types of recommendations. + Enum listing the possible quality score buckets. Attributes: UNSPECIFIED (int): Not specified. UNKNOWN (int): Used for return value only. Represents value unknown in this version. - CAMPAIGN_BUDGET (int): Budget recommendation for budget constrained campaigns. - KEYWORD (int): Keyword recommendation. - TEXT_AD (int): Recommendation to add a new text ad. - TARGET_CPA_OPT_IN (int): Recommendation to update a campaign to use a Target CPA bidding strategy. - MAXIMIZE_CONVERSIONS_OPT_IN (int): Recommendation to update a campaign to use the Maximize Conversions - bidding strategy. - ENHANCED_CPC_OPT_IN (int): Recommendation to enable Enhanced Cost Per Click for a campaign. - SEARCH_PARTNERS_OPT_IN (int): Recommendation to start showing your campaign's ads on Google Search - Partners Websites. - MAXIMIZE_CLICKS_OPT_IN (int): Recommendation to update a campaign to use a Maximize Clicks bidding - strategy. - OPTIMIZE_AD_ROTATION (int): Recommendation to start using the \"Optimize\" ad rotation setting for the - given ad group. + BELOW_AVERAGE (int): Quality of the creative is below average. + AVERAGE (int): Quality of the creative is average. + ABOVE_AVERAGE (int): Quality of the creative is above average. """ UNSPECIFIED = 0 UNKNOWN = 1 - CAMPAIGN_BUDGET = 2 - KEYWORD = 3 - TEXT_AD = 4 - TARGET_CPA_OPT_IN = 5 - MAXIMIZE_CONVERSIONS_OPT_IN = 6 - ENHANCED_CPC_OPT_IN = 7 - SEARCH_PARTNERS_OPT_IN = 8 - MAXIMIZE_CLICKS_OPT_IN = 9 - OPTIMIZE_AD_ROTATION = 10 + BELOW_AVERAGE = 2 + AVERAGE = 3 + ABOVE_AVERAGE = 4 -class AdNetworkTypeEnum(object): - class AdNetworkType(enum.IntEnum): +class AdGroupStatusEnum(object): + class AdGroupStatus(enum.IntEnum): """ - Enumerates Google Ads network types. + The possible statuses of an ad group. Attributes: - UNSPECIFIED (int): Not specified. - UNKNOWN (int): The value is unknown in this version. - SEARCH (int): Google search. - SEARCH_PARTNERS (int): Search partners. - CONTENT (int): Display Network. - YOUTUBE_SEARCH (int): YouTube Search. - YOUTUBE_WATCH (int): YouTube Videos - MIXED (int): Cross-network. + UNSPECIFIED (int): The status has not been specified. + UNKNOWN (int): The received value is not known in this version. + + This is a response-only value. + ENABLED (int): The ad group is enabled. + PAUSED (int): The ad group is paused. + REMOVED (int): The ad group is removed. """ UNSPECIFIED = 0 UNKNOWN = 1 - SEARCH = 2 - SEARCH_PARTNERS = 3 - CONTENT = 4 - YOUTUBE_SEARCH = 5 - YOUTUBE_WATCH = 6 - MIXED = 7 + ENABLED = 2 + PAUSED = 3 + REMOVED = 4 -class TargetCpaOptInRecommendationGoalEnum(object): - class TargetCpaOptInRecommendationGoal(enum.IntEnum): +class GoogleAdsFieldDataTypeEnum(object): + class GoogleAdsFieldDataType(enum.IntEnum): """ - Goal of TargetCpaOptIn recommendation. + These are the various types a GoogleAdsService artifact may take on. Attributes: - UNSPECIFIED (int): Not specified. - UNKNOWN (int): Used for return value only. Represents value unknown in this version. - SAME_COST (int): Recommendation to set Target CPA to maintain the same cost. - SAME_CONVERSIONS (int): Recommendation to set Target CPA to maintain the same conversions. - SAME_CPA (int): Recommendation to set Target CPA to maintain the same CPA. - CLOSEST_CPA (int): Recommendation to set Target CPA to a value that is as close as possible - to, yet lower than, the actual CPA (computed for past 28 days). + UNSPECIFIED (int): Unspecified + UNKNOWN (int): Unknown + BOOLEAN (int): Maps to google.protobuf.BoolValue + + Applicable operators: =, != + DATE (int): Maps to google.protobuf.StringValue. It can be compared using the set of + operators specific to dates however. + + Applicable operators: =, <, >, <=, >=, BETWEEN, DURING, and IN + DOUBLE (int): Maps to google.protobuf.DoubleValue + + Applicable operators: =, !=, <, >, IN, NOT IN + ENUM (int): Maps to an enum. It's specific definition can be found at type_url. + + Applicable operators: =, !=, IN, NOT IN + FLOAT (int): Maps to google.protobuf.FloatValue + + Applicable operators: =, !=, <, >, IN, NOT IN + INT32 (int): Maps to google.protobuf.Int32Value + + Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN + INT64 (int): Maps to google.protobuf.Int64Value + + Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN + MESSAGE (int): Maps to a protocol buffer message type. The data type's details can be + found in type_url. + + No operators work with MESSAGE fields. + RESOURCE_NAME (int): Maps to google.protobuf.StringValue. Represents the resource name + (unique id) of a resource or one of its foreign keys. + + No operators work with RESOURCE_NAME fields. + STRING (int): Maps to google.protobuf.StringValue. + + Applicable operators: =, !=, LIKE, NOT LIKE, IN, NOT IN """ UNSPECIFIED = 0 UNKNOWN = 1 - SAME_COST = 2 - SAME_CONVERSIONS = 3 - SAME_CPA = 4 - CLOSEST_CPA = 5 + BOOLEAN = 2 + DATE = 3 + DOUBLE = 4 + ENUM = 5 + FLOAT = 6 + INT32 = 7 + INT64 = 8 + MESSAGE = 9 + RESOURCE_NAME = 10 + STRING = 11 -class AdGroupCriterionStatusEnum(object): - class AdGroupCriterionStatus(enum.IntEnum): +class TimeTypeEnum(object): + class TimeType(enum.IntEnum): """ - The possible statuses of an AdGroupCriterion. + The possible time types used by certain resources as an alternative to + absolute timestamps. Attributes: - UNSPECIFIED (int): No value has been specified. - UNKNOWN (int): The received value is not known in this version. - - This is a response-only value. - ENABLED (int): The ad group criterion is enabled. - PAUSED (int): The ad group criterion is paused. - REMOVED (int): The ad group criterion is removed. + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + NOW (int): As soon as possible. + FOREVER (int): An infinite point in the future. """ UNSPECIFIED = 0 UNKNOWN = 1 - ENABLED = 2 - PAUSED = 3 - REMOVED = 4 + NOW = 2 + FOREVER = 3 -class CampaignServingStatusEnum(object): - class CampaignServingStatus(enum.IntEnum): +class BudgetStatusEnum(object): + class BudgetStatus(enum.IntEnum): """ - Possible serving statuses of a campaign. + Possible statuses of a Budget. Attributes: - UNSPECIFIED (int): No value has been specified. - UNKNOWN (int): The received value is not known in this version. - - This is a response-only value. - SERVING (int): Serving. - NONE (int): None. - ENDED (int): Ended. - PENDING (int): Pending. - SUSPENDED (int): Suspended. + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): Budget is enabled. + REMOVED (int): Budget is removed. """ UNSPECIFIED = 0 UNKNOWN = 1 - SERVING = 2 - NONE = 3 - ENDED = 4 - PENDING = 5 - SUSPENDED = 6 + ENABLED = 2 + REMOVED = 3 -class CampaignStatusEnum(object): - class CampaignStatus(enum.IntEnum): +class TrackingCodeTypeEnum(object): + class TrackingCodeType(enum.IntEnum): """ - Possible statuses of a campaign. + The type of the generated tag snippets for tracking conversions. Attributes: UNSPECIFIED (int): Not specified. UNKNOWN (int): Used for return value only. Represents value unknown in this version. - ENABLED (int): Campaign is currently serving ads depending on budget information. - PAUSED (int): Campaign has been paused by the user. - REMOVED (int): Campaign has been removed. + WEBPAGE (int): The snippet that is fired as a result of a website page loading. + WEBPAGE_ONCLICK (int): The snippet contains a JavaScript function which fires the tag. This + function is typically called from an onClick handler added to a link or + button element on the page. + CLICK_TO_CALL (int): For embedding on a mobile webpage. The snippet contains a JavaScript + function which fires the tag. """ UNSPECIFIED = 0 UNKNOWN = 1 - ENABLED = 2 - PAUSED = 3 - REMOVED = 4 + WEBPAGE = 2 + WEBPAGE_ONCLICK = 3 + CLICK_TO_CALL = 4 -class AdServingOptimizationStatusEnum(object): - class AdServingOptimizationStatus(enum.IntEnum): +class AdGroupCriterionStatusEnum(object): + class AdGroupCriterionStatus(enum.IntEnum): """ - Enum describing possible serving statuses. + The possible statuses of an AdGroupCriterion. Attributes: UNSPECIFIED (int): No value has been specified. UNKNOWN (int): The received value is not known in this version. This is a response-only value. - OPTIMIZE (int): Ad serving is optimized based on CTR for the campaign. - CONVERSION_OPTIMIZE (int): Ad serving is optimized based on CTR * Conversion for the campaign. If - the campaign is not in the conversion optimizer bidding strategy, it will - default to OPTIMIZED. - ROTATE (int): Ads are rotated evenly for 90 days, then optimized for clicks. - ROTATE_INDEFINITELY (int): Show lower performing ads more evenly with higher performing ads, and do - not optimize. - UNAVAILABLE (int): Ad serving optimization status is not available. + ENABLED (int): The ad group criterion is enabled. + PAUSED (int): The ad group criterion is paused. + REMOVED (int): The ad group criterion is removed. """ UNSPECIFIED = 0 UNKNOWN = 1 - OPTIMIZE = 2 - CONVERSION_OPTIMIZE = 3 - ROTATE = 4 - ROTATE_INDEFINITELY = 5 - UNAVAILABLE = 6 + ENABLED = 2 + PAUSED = 3 + REMOVED = 4 class CampaignSharedSetStatusEnum(object): @@ -597,234 +700,252 @@ class CampaignSharedSetStatus(enum.IntEnum): REMOVED = 3 -class AdvertisingChannelSubTypeEnum(object): - class AdvertisingChannelSubType(enum.IntEnum): +class AttributionModelEnum(object): + class AttributionModel(enum.IntEnum): """ - Enum describing the different channel subtypes. + The attribution model that describes how to distribute credit for a + particular conversion across potentially many prior interactions. Attributes: UNSPECIFIED (int): Not specified. - UNKNOWN (int): Used as a return value only. Represents value unknown in this version. - SEARCH_MOBILE_APP (int): Mobile app campaigns for Search. - DISPLAY_MOBILE_APP (int): Mobile app campaigns for Display. - SEARCH_EXPRESS (int): AdWords express campaigns for search. - DISPLAY_EXPRESS (int): AdWords Express campaigns for display. - SHOPPING_SMART_ADS (int): Smart Shopping campaigns. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + EXTERNAL (int): Uses external attribution. + GOOGLE_ADS_LAST_CLICK (int): Attributes all credit for a conversion to its last click. + GOOGLE_SEARCH_ATTRIBUTION_FIRST_CLICK (int): Attributes all credit for a conversion to its first click using Google + Search attribution. + GOOGLE_SEARCH_ATTRIBUTION_LINEAR (int): Attributes credit for a conversion equally across all of its clicks using + Google Search attribution. + GOOGLE_SEARCH_ATTRIBUTION_TIME_DECAY (int): Attributes exponentially more credit for a conversion to its more recent + clicks using Google Search attribution (half-life is 1 week). + GOOGLE_SEARCH_ATTRIBUTION_POSITION_BASED (int): Attributes 40% of the credit for a conversion to its first and last + clicks. Remaining 20% is evenly distributed across all other clicks. This + uses Google Search attribution. + GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN (int): Flexible model that uses machine learning to determine the appropriate + distribution of credit among clicks using Google Search attribution. """ UNSPECIFIED = 0 UNKNOWN = 1 - SEARCH_MOBILE_APP = 2 - DISPLAY_MOBILE_APP = 3 - SEARCH_EXPRESS = 4 - DISPLAY_EXPRESS = 5 - SHOPPING_SMART_ADS = 6 + EXTERNAL = 100 + GOOGLE_ADS_LAST_CLICK = 101 + GOOGLE_SEARCH_ATTRIBUTION_FIRST_CLICK = 102 + GOOGLE_SEARCH_ATTRIBUTION_LINEAR = 103 + GOOGLE_SEARCH_ATTRIBUTION_TIME_DECAY = 104 + GOOGLE_SEARCH_ATTRIBUTION_POSITION_BASED = 105 + GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN = 106 -class BiddingStrategyTypeEnum(object): - class BiddingStrategyType(enum.IntEnum): +class AccountBudgetProposalStatusEnum(object): + class AccountBudgetProposalStatus(enum.IntEnum): """ - Enum describing possible bidding strategy types. + The possible statuses of an AccountBudgetProposal. Attributes: UNSPECIFIED (int): Not specified. UNKNOWN (int): Used for return value only. Represents value unknown in this version. - ENHANCED_CPC (int): Enhanced CPC is a bidding strategy that raises bids for clicks - that seem more likely to lead to a conversion and lowers - them for clicks where they seem less likely. - MANUAL_CPC (int): Manual click based bidding where user pays per click. - MANUAL_CPM (int): Manual impression based bidding - where user pays per thousand impressions. - MAXIMIZE_CONVERSIONS (int): A bidding strategy that automatically maximizes number of conversions - given a daily budget. - MAXIMIZE_CONVERSION_VALUE (int): An automated bidding strategy that automatically sets bids to maximize - revenue while spending your budget. - PAGE_ONE_PROMOTED (int): Page-One Promoted bidding scheme, which sets max cpc bids to - target impressions on page one or page one promoted slots on google.com. - PERCENT_CPC (int): Percent Cpc is bidding strategy where bids are a fraction of the - advertised price for some good or service. - TARGET_CPA (int): Target CPA is an automated bid strategy that sets bids - to help get as many conversions as possible - at the target cost-per-acquisition (CPA) you set. - TARGET_OUTRANK_SHARE (int): Target Outrank Share is an automated bidding strategy that sets bids - based on the target fraction of auctions where the advertiser - should outrank a specific competitor. - TARGET_ROAS (int): Target ROAS is an automated bidding strategy - that helps you maximize revenue while averaging - a specific target Return On Average Spend (ROAS). - TARGET_SPEND (int): Target Spend is an automated bid strategy that sets your bids - to help get as many clicks as possible within your budget. + PENDING (int): The proposal is pending approval. + APPROVED_HELD (int): The proposal has been approved but the corresponding billing setup + has not. This can occur for proposals that set up the first budget + when signing up for billing or when performing a change of bill-to + operation. + APPROVED (int): The proposal has been approved. + CANCELLED (int): The proposal has been cancelled by the user. + REJECTED (int): The proposal has been rejected by the user, e.g. by rejecting an + acceptance email. """ UNSPECIFIED = 0 UNKNOWN = 1 - ENHANCED_CPC = 2 - MANUAL_CPC = 3 - MANUAL_CPM = 4 - MAXIMIZE_CONVERSIONS = 10 - MAXIMIZE_CONVERSION_VALUE = 11 - PAGE_ONE_PROMOTED = 5 - PERCENT_CPC = 12 - TARGET_CPA = 6 - TARGET_OUTRANK_SHARE = 7 - TARGET_ROAS = 8 - TARGET_SPEND = 9 + PENDING = 2 + APPROVED_HELD = 3 + APPROVED = 4 + CANCELLED = 5 + REJECTED = 6 -class BudgetStatusEnum(object): - class BudgetStatus(enum.IntEnum): +class SlotEnum(object): + class Slot(enum.IntEnum): """ - Possible statuses of a Budget. + Enumerates possible positions of the Ad. Attributes: UNSPECIFIED (int): Not specified. - UNKNOWN (int): Used for return value only. Represents value unknown in this version. - ENABLED (int): Budget is enabled. - REMOVED (int): Budget is removed. + UNKNOWN (int): The value is unknown in this version. + SEARCH_SIDE (int): Google search: Side. + SEARCH_TOP (int): Google search: Top. + SEARCH_OTHER (int): Google search: Other. + CONTENT (int): Google Display Network. + SEARCH_PARTNER_TOP (int): Search partners: Top. + SEARCH_PARTNER_OTHER (int): Search partners: Other. + MIXED (int): Cross-network. """ UNSPECIFIED = 0 UNKNOWN = 1 - ENABLED = 2 - REMOVED = 3 + SEARCH_SIDE = 2 + SEARCH_TOP = 3 + SEARCH_OTHER = 4 + CONTENT = 5 + SEARCH_PARTNER_TOP = 6 + SEARCH_PARTNER_OTHER = 7 + MIXED = 8 -class BiddingSourceEnum(object): - class BiddingSource(enum.IntEnum): +class CampaignStatusEnum(object): + class CampaignStatus(enum.IntEnum): """ - Enum describing possible bidding sources. + Possible statuses of a campaign. Attributes: UNSPECIFIED (int): Not specified. UNKNOWN (int): Used for return value only. Represents value unknown in this version. - ADGROUP (int): Bidding entity is defined on the ad group. - CRITERION (int): Bidding entity is defined on the ad group criterion. - CAMPAIGN_BIDDING_STRATEGY (int): Effective bidding entity is inherited from campaign bidding strategy. + ENABLED (int): Campaign is currently serving ads depending on budget information. + PAUSED (int): Campaign has been paused by the user. + REMOVED (int): Campaign has been removed. """ UNSPECIFIED = 0 UNKNOWN = 1 - ADGROUP = 2 - CRITERION = 3 - CAMPAIGN_BIDDING_STRATEGY = 5 + ENABLED = 2 + PAUSED = 3 + REMOVED = 4 -class GoogleAdsFieldCategoryEnum(object): - class GoogleAdsFieldCategory(enum.IntEnum): - """ - The category of the artifact. +class MonthOfYearEnum(object): + class MonthOfYear(enum.IntEnum): + """ + Enumerates months of the year, e.g., \"January\". Attributes: - UNSPECIFIED (int): Unspecified - UNKNOWN (int): Unknown - RESOURCE (int): The described artifact is a resource. - ATTRIBUTE (int): The described artifact is a field and is an attribute of a resource. - Including a resource attribute field in a query may segment the query if - the resource to which it is attributed segments the resource found in - the FROM clause. - SEGMENT (int): The described artifact is a field and always segments search queries. - METRIC (int): The described artifact is a field and is a metric. It never segments - search queries. + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + JANUARY (int): January. + FEBRUARY (int): February. + MARCH (int): March. + APRIL (int): April. + MAY (int): May. + JUNE (int): June. + JULY (int): July. + AUGUST (int): August. + SEPTEMBER (int): September. + OCTOBER (int): October. + NOVEMBER (int): November. + DECEMBER (int): December. """ UNSPECIFIED = 0 UNKNOWN = 1 - RESOURCE = 2 - ATTRIBUTE = 3 - SEGMENT = 5 - METRIC = 6 + JANUARY = 2 + FEBRUARY = 3 + MARCH = 4 + APRIL = 5 + MAY = 6 + JUNE = 7 + JULY = 8 + AUGUST = 9 + SEPTEMBER = 10 + OCTOBER = 11 + NOVEMBER = 12 + DECEMBER = 13 -class AdvertisingChannelTypeEnum(object): - class AdvertisingChannelType(enum.IntEnum): +class ConversionActionCategoryEnum(object): + class ConversionActionCategory(enum.IntEnum): """ - Enum describing the various advertising channel types. + The category of conversions that are associated with a ConversionAction. Attributes: UNSPECIFIED (int): Not specified. UNKNOWN (int): Used for return value only. Represents value unknown in this version. - SEARCH (int): Search Network. Includes display bundled, and Search+ campaigns. - DISPLAY (int): Google Display Network only. - SHOPPING (int): Shopping campaigns serve on the shopping property - and on google.com search results. - HOTEL (int): Hotel Ads campaigns. + DEFAULT (int): Default category. + PAGE_VIEW (int): User visiting a page. + PURCHASE (int): Purchase, sales, or \"order placed\" event. + SIGNUP (int): Signup user action. + LEAD (int): Lead-generating action. + DOWNLOAD (int): Software download action (as for an app). """ UNSPECIFIED = 0 UNKNOWN = 1 - SEARCH = 2 - DISPLAY = 3 - SHOPPING = 4 - HOTEL = 5 + DEFAULT = 2 + PAGE_VIEW = 3 + PURCHASE = 4 + SIGNUP = 5 + LEAD = 6 + DOWNLOAD = 7 -class AdTypeEnum(object): - class AdType(enum.IntEnum): +class PolicyApprovalStatusEnum(object): + class PolicyApprovalStatus(enum.IntEnum): """ - The possible types of an ad. + The possible policy approval statuses. When there are several approval + statuses available the most severe one will be used. The order of severity + is DISAPPROVED, AREA_OF_INTEREST_ONLY, APPROVED_LIMITED and APPROVED. Attributes: UNSPECIFIED (int): No value has been specified. UNKNOWN (int): The received value is not known in this version. This is a response-only value. - TEXT_AD (int): The ad is a text ad. - EXPANDED_TEXT_AD (int): The ad is an expanded text ad. - DYNAMIC_SEARCH_AD (int): The ad is a dynamic search ad. - RESPONSIVE_DISPLAY_AD (int): The ad is a responsive display ad. - CALL_ONLY_AD (int): The ad is a call only ad. - EXPANDED_DYNAMIC_SEARCH_AD (int): The ad is an expanded dynamic search ad. - HOTEL_AD (int): The ad is a hotel ad. - SHOPPING_SMART_AD (int): The ad is a Smart Shopping ad. + DISAPPROVED (int): Will not serve. + APPROVED_LIMITED (int): Serves with restrictions. + APPROVED (int): Serves without restrictions. + AREA_OF_INTEREST_ONLY (int): Will not serve in targeted countries, but may serve for users who are + searching for information about the targeted countries. """ UNSPECIFIED = 0 UNKNOWN = 1 - TEXT_AD = 2 - EXPANDED_TEXT_AD = 3 - DYNAMIC_SEARCH_AD = 4 - RESPONSIVE_DISPLAY_AD = 5 - CALL_ONLY_AD = 6 - EXPANDED_DYNAMIC_SEARCH_AD = 7 - HOTEL_AD = 8 - SHOPPING_SMART_AD = 9 + DISAPPROVED = 2 + APPROVED_LIMITED = 3 + APPROVED = 4 + AREA_OF_INTEREST_ONLY = 5 -class SlotEnum(object): - class Slot(enum.IntEnum): +class ConversionActionTypeEnum(object): + class ConversionActionType(enum.IntEnum): """ - Enumerates possible positions of the Ad. + Possible types of a conversion action. Attributes: UNSPECIFIED (int): Not specified. - UNKNOWN (int): The value is unknown in this version. - SEARCH_SIDE (int): Google search: Side. - SEARCH_TOP (int): Google search: Top. - SEARCH_OTHER (int): Google search: Other. - CONTENT (int): Google Display Network. - SEARCH_PARTNER_TOP (int): Search partners: Top. - SEARCH_PARTNER_OTHER (int): Search partners: Other. - MIXED (int): Cross-network. - """ - UNSPECIFIED = 0 - UNKNOWN = 1 - SEARCH_SIDE = 2 - SEARCH_TOP = 3 - SEARCH_OTHER = 4 - CONTENT = 5 - SEARCH_PARTNER_TOP = 6 - SEARCH_PARTNER_OTHER = 7 - MIXED = 8 + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + AD_CALL (int): Conversions that occur when a user clicks on an ad's call extension. + CLICK_TO_CALL (int): Conversions that occur when a user on a mobile device clicks a phone + number. + GOOGLE_PLAY_DOWNLOAD (int): Conversions that occur when a user downloads a mobile app from the Google + Play Store. + GOOGLE_PLAY_IN_APP_PURCHASE (int): Conversions that occur when a user makes a purchase in an app through + Android billing. + UPLOAD_CALLS (int): Call conversions that are tracked by the advertiser and uploaded. + UPLOAD_CLICKS (int): Conversions that are tracked by the advertiser and uploaded with + attributed clicks. + WEBPAGE (int): Conversions that occur on a webpage. + WEBSITE_CALL (int): Conversions that occur when a user calls a dynamically-generated phone + number from an advertiser's website. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AD_CALL = 2 + CLICK_TO_CALL = 3 + GOOGLE_PLAY_DOWNLOAD = 4 + GOOGLE_PLAY_IN_APP_PURCHASE = 5 + UPLOAD_CALLS = 6 + UPLOAD_CLICKS = 7 + WEBPAGE = 8 + WEBSITE_CALL = 9 -class SharedSetStatusEnum(object): - class SharedSetStatus(enum.IntEnum): +class BiddingSourceEnum(object): + class BiddingSource(enum.IntEnum): """ - Enum listing the possible shared set statuses. + Enum describing possible bidding sources. Attributes: UNSPECIFIED (int): Not specified. UNKNOWN (int): Used for return value only. Represents value unknown in this version. - ENABLED (int): The shared set is enabled. - REMOVED (int): The shared set is removed and can no longer be used. + ADGROUP (int): Bidding entity is defined on the ad group. + CRITERION (int): Bidding entity is defined on the ad group criterion. + CAMPAIGN_BIDDING_STRATEGY (int): Effective bidding entity is inherited from campaign bidding strategy. """ UNSPECIFIED = 0 UNKNOWN = 1 - ENABLED = 2 - REMOVED = 3 + ADGROUP = 2 + CRITERION = 3 + CAMPAIGN_BIDDING_STRATEGY = 5 class BudgetDeliveryMethodEnum(object): @@ -846,106 +967,145 @@ class BudgetDeliveryMethod(enum.IntEnum): ACCELERATED = 3 -class GoogleAdsFieldDataTypeEnum(object): - class GoogleAdsFieldDataType(enum.IntEnum): +class RecommendationTypeEnum(object): + class RecommendationType(enum.IntEnum): """ - These are the various types a GoogleAdsService artifact may take on. + Types of recommendations. Attributes: - UNSPECIFIED (int): Unspecified - UNKNOWN (int): Unknown - BOOLEAN (int): Maps to google.protobuf.BoolValue - - Applicable operators: =, != - DATE (int): Maps to google.protobuf.StringValue. It can be compared using the set of - operators specific to dates however. + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + CAMPAIGN_BUDGET (int): Budget recommendation for budget constrained campaigns. + KEYWORD (int): Keyword recommendation. + TEXT_AD (int): Recommendation to add a new text ad. + TARGET_CPA_OPT_IN (int): Recommendation to update a campaign to use a Target CPA bidding strategy. + MAXIMIZE_CONVERSIONS_OPT_IN (int): Recommendation to update a campaign to use the Maximize Conversions + bidding strategy. + ENHANCED_CPC_OPT_IN (int): Recommendation to enable Enhanced Cost Per Click for a campaign. + SEARCH_PARTNERS_OPT_IN (int): Recommendation to start showing your campaign's ads on Google Search + Partners Websites. + MAXIMIZE_CLICKS_OPT_IN (int): Recommendation to update a campaign to use a Maximize Clicks bidding + strategy. + OPTIMIZE_AD_ROTATION (int): Recommendation to start using the \"Optimize\" ad rotation setting for the + given ad group. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CAMPAIGN_BUDGET = 2 + KEYWORD = 3 + TEXT_AD = 4 + TARGET_CPA_OPT_IN = 5 + MAXIMIZE_CONVERSIONS_OPT_IN = 6 + ENHANCED_CPC_OPT_IN = 7 + SEARCH_PARTNERS_OPT_IN = 8 + MAXIMIZE_CLICKS_OPT_IN = 9 + OPTIMIZE_AD_ROTATION = 10 - Applicable operators: =, <, >, <=, >=, BETWEEN, DURING, and IN - DOUBLE (int): Maps to google.protobuf.DoubleValue - Applicable operators: =, !=, <, >, IN, NOT IN - ENUM (int): Maps to an enum. It's specific definition can be found at type_url. +class GoogleAdsFieldCategoryEnum(object): + class GoogleAdsFieldCategory(enum.IntEnum): + """ + The category of the artifact. - Applicable operators: =, !=, IN, NOT IN - FLOAT (int): Maps to google.protobuf.FloatValue + Attributes: + UNSPECIFIED (int): Unspecified + UNKNOWN (int): Unknown + RESOURCE (int): The described artifact is a resource. + ATTRIBUTE (int): The described artifact is a field and is an attribute of a resource. + Including a resource attribute field in a query may segment the query if + the resource to which it is attributed segments the resource found in + the FROM clause. + SEGMENT (int): The described artifact is a field and always segments search queries. + METRIC (int): The described artifact is a field and is a metric. It never segments + search queries. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + RESOURCE = 2 + ATTRIBUTE = 3 + SEGMENT = 5 + METRIC = 6 - Applicable operators: =, !=, <, >, IN, NOT IN - INT32 (int): Maps to google.protobuf.Int32Value - Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN - INT64 (int): Maps to google.protobuf.Int64Value +class SharedSetStatusEnum(object): + class SharedSetStatus(enum.IntEnum): + """ + Enum listing the possible shared set statuses. - Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN - MESSAGE (int): Maps to a protocol buffer message type. The data type's details can be - found in type_url. + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): The shared set is enabled. + REMOVED (int): The shared set is removed and can no longer be used. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + REMOVED = 3 - No operators work with MESSAGE fields. - RESOURCE_NAME (int): Maps to google.protobuf.StringValue. Represents the resource name - (unique id) of a resource or one of its foreign keys. - No operators work with RESOURCE_NAME fields. - STRING (int): Maps to google.protobuf.StringValue. +class AccountBudgetProposalTypeEnum(object): + class AccountBudgetProposalType(enum.IntEnum): + """ + The possible types of an AccountBudgetProposal. - Applicable operators: =, !=, LIKE, NOT LIKE, IN, NOT IN + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + CREATE (int): Identifies a request to create a new budget. + UPDATE (int): Identifies a request to edit an existing budget. + END (int): Identifies a request to end a budget that has already started. + REMOVE (int): Identifies a request to remove a budget that hasn't started yet. """ UNSPECIFIED = 0 UNKNOWN = 1 - BOOLEAN = 2 - DATE = 3 - DOUBLE = 4 - ENUM = 5 - FLOAT = 6 - INT32 = 7 - INT64 = 8 - MESSAGE = 9 - RESOURCE_NAME = 10 - STRING = 11 + CREATE = 2 + UPDATE = 3 + END = 4 + REMOVE = 5 -class AdGroupTypeEnum(object): - class AdGroupType(enum.IntEnum): +class ConversionActionStatusEnum(object): + class ConversionActionStatus(enum.IntEnum): """ - Enum listing the possible types of an ad group. + Possible statuses of a conversion action. Attributes: - UNSPECIFIED (int): The type has not been specified. - UNKNOWN (int): The received value is not known in this version. - - This is a response-only value. - SEARCH_STANDARD (int): The default ad group type for Search campaigns. - DISPLAY_STANDARD (int): The default ad group type for Display campaigns. - HOTEL_ADS (int): The default ad group type for Hotel campaigns. - SHOPPING_SMART_ADS (int): The type for ad groups in Smart Shopping campaigns. + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): Conversions will be recorded. + REMOVED (int): Conversions will not be recorded. + HIDDEN (int): Conversions will not be recorded and the conversion action will not + appear in the UI. """ UNSPECIFIED = 0 UNKNOWN = 1 - SEARCH_STANDARD = 2 - DISPLAY_STANDARD = 3 - HOTEL_ADS = 6 - SHOPPING_SMART_ADS = 7 + ENABLED = 2 + REMOVED = 3 + HIDDEN = 4 -class CriterionTypeEnum(object): - class CriterionType(enum.IntEnum): +class BillingSetupStatusEnum(object): + class BillingSetupStatus(enum.IntEnum): """ - Enum describing possible criterion types. + The possible statuses of a BillingSetup. Attributes: UNSPECIFIED (int): Not specified. UNKNOWN (int): Used for return value only. Represents value unknown in this version. - KEYWORD (int): Keyword. e.g. 'mars cruise'. - DEVICE (int): Devices to target. - LOCATION (int): Locations to target. - LISTING_GROUP (int): Listing groups to target. - AD_SCHEDULE (int): Ad Schedule. + PENDING (int): The billing setup is pending approval. + APPROVED_HELD (int): The billing setup has been approved but the corresponding first budget + has not. This can only occur for billing setups configured for monthly + invoicing. + APPROVED (int): The billing setup has been approved. + CANCELLED (int): The billing setup was cancelled by the user prior to approval. """ UNSPECIFIED = 0 UNKNOWN = 1 - KEYWORD = 2 - DEVICE = 6 - LOCATION = 7 - LISTING_GROUP = 8 - AD_SCHEDULE = 9 + PENDING = 2 + APPROVED_HELD = 3 + APPROVED = 4 + CANCELLED = 5 class SharedSetTypeEnum(object): @@ -965,839 +1125,716 @@ class SharedSetType(enum.IntEnum): NEGATIVE_PLACEMENTS = 3 -class BidModifierSourceEnum(object): - class BidModifierSource(enum.IntEnum): +class CriterionTypeEnum(object): + class CriterionType(enum.IntEnum): """ - Enum describing possible bid modifier sources. + Enum describing possible criterion types. Attributes: UNSPECIFIED (int): Not specified. UNKNOWN (int): Used for return value only. Represents value unknown in this version. - CAMPAIGN (int): The bid modifier is specified at the campaign level, on the campaign - level criterion. - AD_GROUP (int): The bid modifier is specified (overridden) at the ad group level. + KEYWORD (int): Keyword. e.g. 'mars cruise'. + DEVICE (int): Devices to target. + LOCATION (int): Locations to target. + LISTING_GROUP (int): Listing groups to target. + AD_SCHEDULE (int): Ad Schedule. """ UNSPECIFIED = 0 UNKNOWN = 1 - CAMPAIGN = 2 - AD_GROUP = 3 + KEYWORD = 2 + DEVICE = 6 + LOCATION = 7 + LISTING_GROUP = 8 + AD_SCHEDULE = 9 -class AdGroupAdErrorEnum(object): - class AdGroupAdError(enum.IntEnum): +class PolicyReviewStatusEnum(object): + class PolicyReviewStatus(enum.IntEnum): """ - Enum describing possible ad group ad errors. + The possible policy review statuses. Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - AD_GROUP_AD_LABEL_DOES_NOT_EXIST (int): No link found between the adgroup ad and the label. - AD_GROUP_AD_LABEL_ALREADY_EXISTS (int): The label has already been attached to the adgroup ad. - AD_NOT_UNDER_ADGROUP (int): The specified ad was not found in the adgroup - CANNOT_OPERATE_ON_REMOVED_ADGROUPAD (int): Removed ads may not be modified - CANNOT_CREATE_DEPRECATED_ADS (int): An ad of this type is deprecated and cannot be created. Only deletions - are permitted. - CANNOT_CREATE_TEXT_ADS (int): Text ads are deprecated and cannot be created. Use expanded text ads - instead. - EMPTY_FIELD (int): A required field was not specified or is an empty string. - RESOURCE_REFERENCED_IN_MULTIPLE_OPS (int): An ad may only be modified once per call + UNSPECIFIED (int): No value has been specified. + UNKNOWN (int): The received value is not known in this version. + + This is a response-only value. + REVIEW_IN_PROGRESS (int): Currently under review. + REVIEWED (int): Primary review complete. Other reviews may be continuing. + UNDER_APPEAL (int): The resource has been resubmitted for approval or its policy decision has + been appealed. """ UNSPECIFIED = 0 UNKNOWN = 1 - AD_GROUP_AD_LABEL_DOES_NOT_EXIST = 2 - AD_GROUP_AD_LABEL_ALREADY_EXISTS = 3 - AD_NOT_UNDER_ADGROUP = 4 - CANNOT_OPERATE_ON_REMOVED_ADGROUPAD = 5 - CANNOT_CREATE_DEPRECATED_ADS = 6 - CANNOT_CREATE_TEXT_ADS = 7 - EMPTY_FIELD = 8 - RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 9 + REVIEW_IN_PROGRESS = 2 + REVIEWED = 3 + UNDER_APPEAL = 4 -class PolicyFindingErrorEnum(object): - class PolicyFindingError(enum.IntEnum): +class AdTypeEnum(object): + class AdType(enum.IntEnum): """ - Enum describing possible policy finding errors. + The possible types of an ad. Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - POLICY_FINDING (int): The resource has been disapproved since the policy summary includes - policy topics of type PROHIBITED. + UNSPECIFIED (int): No value has been specified. + UNKNOWN (int): The received value is not known in this version. + + This is a response-only value. + TEXT_AD (int): The ad is a text ad. + EXPANDED_TEXT_AD (int): The ad is an expanded text ad. + DYNAMIC_SEARCH_AD (int): The ad is a dynamic search ad. + RESPONSIVE_DISPLAY_AD (int): The ad is a responsive display ad. + CALL_ONLY_AD (int): The ad is a call only ad. + EXPANDED_DYNAMIC_SEARCH_AD (int): The ad is an expanded dynamic search ad. + HOTEL_AD (int): The ad is a hotel ad. + SHOPPING_SMART_AD (int): The ad is a Smart Shopping ad. + SHOPPING_PRODUCT_AD (int): The ad is a standard Shopping ad. """ UNSPECIFIED = 0 UNKNOWN = 1 - POLICY_FINDING = 2 + TEXT_AD = 2 + EXPANDED_TEXT_AD = 3 + DYNAMIC_SEARCH_AD = 4 + RESPONSIVE_DISPLAY_AD = 5 + CALL_ONLY_AD = 6 + EXPANDED_DYNAMIC_SEARCH_AD = 7 + HOTEL_AD = 8 + SHOPPING_SMART_AD = 9 + SHOPPING_PRODUCT_AD = 10 -class CampaignCriterionErrorEnum(object): - class CampaignCriterionError(enum.IntEnum): +class AdGroupTypeEnum(object): + class AdGroupType(enum.IntEnum): """ - Enum describing possible campaign criterion errors. + Enum listing the possible types of an ad group. Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - CONCRETE_TYPE_REQUIRED (int): Concrete type of criterion (keyword v.s. placement) is required for - CREATE and UPDATE operations. - INVALID_PLACEMENT_URL (int): Invalid placement URL. - CANNOT_EXCLUDE_CRITERIA_TYPE (int): Criteria type can not be excluded for the campaign by the customer. like - AOL account type cannot target site type criteria - CANNOT_SET_STATUS_FOR_CRITERIA_TYPE (int): Cannot set the campaign criterion status for this criteria type. - CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA (int): Cannot set the campaign criterion status for an excluded criteria. - CANNOT_TARGET_AND_EXCLUDE (int): Cannot target and exclude the same criterion. - TOO_MANY_OPERATIONS (int): The mutate contained too many operations. - OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE (int): This operator cannot be applied to a criterion of this type. - SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL (int): The Shopping campaign sales country is not supported for - ProductSalesChannel targeting. - CANNOT_ADD_EXISTING_FIELD (int): The existing field can't be updated with CREATE operation. It can be - updated with UPDATE operation only. - CANNOT_UPDATE_NEGATIVE_CRITERION (int): Negative criteria are immutable, so updates are not allowed. + UNSPECIFIED (int): The type has not been specified. + UNKNOWN (int): The received value is not known in this version. + + This is a response-only value. + SEARCH_STANDARD (int): The default ad group type for Search campaigns. + DISPLAY_STANDARD (int): The default ad group type for Display campaigns. + SHOPPING_PRODUCT_ADS (int): The ad group type for Shopping campaigns serving standard product ads. + HOTEL_ADS (int): The default ad group type for Hotel campaigns. + SHOPPING_SMART_ADS (int): The type for ad groups in Smart Shopping campaigns. + VIDEO_BUMPER (int): Short unskippable in-stream video ads. """ UNSPECIFIED = 0 UNKNOWN = 1 - CONCRETE_TYPE_REQUIRED = 2 - INVALID_PLACEMENT_URL = 3 - CANNOT_EXCLUDE_CRITERIA_TYPE = 4 - CANNOT_SET_STATUS_FOR_CRITERIA_TYPE = 5 - CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA = 6 - CANNOT_TARGET_AND_EXCLUDE = 7 - TOO_MANY_OPERATIONS = 8 - OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE = 9 - SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL = 10 - CANNOT_ADD_EXISTING_FIELD = 11 - CANNOT_UPDATE_NEGATIVE_CRITERION = 12 + SEARCH_STANDARD = 2 + DISPLAY_STANDARD = 3 + SHOPPING_PRODUCT_ADS = 4 + HOTEL_ADS = 6 + SHOPPING_SMART_ADS = 7 + VIDEO_BUMPER = 8 -class QueryErrorEnum(object): - class QueryError(enum.IntEnum): +class ConversionActionCountingTypeEnum(object): + class ConversionActionCountingType(enum.IntEnum): """ - Enum describing possible query errors. + Indicates how conversions for this action will be counted. For more + information, see https://support.google.com/google-ads/answer/3438531. Attributes: - UNSPECIFIED (int): Name unspecified. - UNKNOWN (int): The received error code is not known in this version. - QUERY_ERROR (int): Returned if all other query error reasons are not applicable. - BAD_ENUM_CONSTANT (int): A condition used in the query references an invalid enum constant. - BAD_ESCAPE_SEQUENCE (int): Query contains an invalid escape sequence. - BAD_FIELD_NAME (int): Field name is invalid. - BAD_LIMIT_VALUE (int): Limit value is invalid (i.e. not a number) - BAD_NUMBER (int): Encountered number can not be parsed. - BAD_OPERATOR (int): Invalid operator encountered. - BAD_RESOURCE_TYPE_IN_FROM_CLAUSE (int): Invalid resource type was specified in the FROM clause. - BAD_SYMBOL (int): Non-ASCII symbol encountered outside of strings. - BAD_VALUE (int): Value is invalid. - DATE_RANGE_TOO_WIDE (int): Date filters fail to restrict date to a range smaller than 31 days. - Applicable if the query is segmented by date. - EXPECTED_AND (int): Expected AND between values with BETWEEN operator. - EXPECTED_BY (int): Expecting ORDER BY to have BY. - EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE (int): There was no dimension field selected. - EXPECTED_FILTERS_ON_DATE_RANGE (int): Missing filters on date related fields. - EXPECTED_FROM (int): Missing FROM clause. - EXPECTED_LIST (int): The operator used in the conditions requires the value to be a list. - EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE (int): Fields used in WHERE or ORDER BY clauses are missing from the SELECT - clause. - EXPECTED_SELECT (int): SELECT is missing at the beginning of query. - EXPECTED_SINGLE_VALUE (int): A list was passed as a value to a condition whose operator expects a - single value. - EXPECTED_VALUE_WITH_BETWEEN_OPERATOR (int): Missing one or both values with BETWEEN operator. - INVALID_DATE_FORMAT (int): Invalid date format. Expected 'YYYY-MM-DD'. - INVALID_STRING_VALUE (int): Value passed was not a string when it should have been. I.e., it was a - number or unquoted literal. - INVALID_VALUE_WITH_BETWEEN_OPERATOR (int): A String value passed to the BETWEEN operator does not parse as a date. - INVALID_VALUE_WITH_DURING_OPERATOR (int): The value passed to the DURING operator is not a Date range literal - INVALID_VALUE_WITH_LIKE_OPERATOR (int): A non-string value was passed to the LIKE operator. - OPERATOR_FIELD_MISMATCH (int): An operator was provided that is inapplicable to the field being - filtered. - PROHIBITED_EMPTY_LIST_IN_CONDITION (int): A Condition was found with an empty list. - PROHIBITED_ENUM_CONSTANT (int): A condition used in the query references an unsupported enum constant. - PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE (int): Fields that are not allowed to be selected together were included in - the SELECT clause. - PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE (int): A field that is not orderable was included in the ORDER BY clause. - PROHIBITED_FIELD_IN_SELECT_CLAUSE (int): A field that is not selectable was included in the SELECT clause. - PROHIBITED_FIELD_IN_WHERE_CLAUSE (int): A field that is not filterable was included in the WHERE clause. - PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE (int): Resource type specified in the FROM clause is not supported by this - service. - PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE (int): A field that comes from an incompatible resource was included in the - SELECT clause. - PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE (int): A field that comes from an incompatible resource was included in the - WHERE clause. - PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE (int): A metric incompatible with the main resource or other selected - segmenting resources was included in the SELECT or WHERE clause. - PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE (int): A segment incompatible with the main resource or other selected - segmenting resources was included in the SELECT or WHERE clause. - PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE (int): A segment in the SELECT clause is incompatible with a metric in the - SELECT or WHERE clause. - LIMIT_VALUE_TOO_LOW (int): The value passed to the limit clause is too low. - PROHIBITED_NEWLINE_IN_STRING (int): Query has a string containing a newline character. - PROHIBITED_VALUE_COMBINATION_IN_LIST (int): List contains values of different types. - PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR (int): The values passed to the BETWEEN operator are not of the same type. - STRING_NOT_TERMINATED (int): Query contains unterminated string. - TOO_MANY_SEGMENTS (int): Too many segments are specified in SELECT clause. - UNEXPECTED_END_OF_QUERY (int): Query is incomplete and cannot be parsed. - UNEXPECTED_FROM_CLAUSE (int): FROM clause cannot be specified in this query. - UNRECOGNIZED_FIELD (int): Query contains one or more unrecognized fields. - UNEXPECTED_INPUT (int): Query has an unexpected extra part. + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ONE_PER_CLICK (int): Count only one conversion per click. + MANY_PER_CLICK (int): Count all conversions per click. """ UNSPECIFIED = 0 UNKNOWN = 1 - QUERY_ERROR = 50 - BAD_ENUM_CONSTANT = 18 - BAD_ESCAPE_SEQUENCE = 7 - BAD_FIELD_NAME = 12 - BAD_LIMIT_VALUE = 15 - BAD_NUMBER = 5 - BAD_OPERATOR = 3 - BAD_RESOURCE_TYPE_IN_FROM_CLAUSE = 45 - BAD_SYMBOL = 2 - BAD_VALUE = 4 - DATE_RANGE_TOO_WIDE = 36 - EXPECTED_AND = 30 - EXPECTED_BY = 14 - EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE = 37 - EXPECTED_FILTERS_ON_DATE_RANGE = 55 - EXPECTED_FROM = 44 - EXPECTED_LIST = 41 - EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE = 16 - EXPECTED_SELECT = 13 - EXPECTED_SINGLE_VALUE = 42 - EXPECTED_VALUE_WITH_BETWEEN_OPERATOR = 29 - INVALID_DATE_FORMAT = 38 - INVALID_STRING_VALUE = 57 - INVALID_VALUE_WITH_BETWEEN_OPERATOR = 26 - INVALID_VALUE_WITH_DURING_OPERATOR = 22 - INVALID_VALUE_WITH_LIKE_OPERATOR = 56 - OPERATOR_FIELD_MISMATCH = 35 - PROHIBITED_EMPTY_LIST_IN_CONDITION = 28 - PROHIBITED_ENUM_CONSTANT = 54 - PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE = 31 - PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE = 40 - PROHIBITED_FIELD_IN_SELECT_CLAUSE = 23 - PROHIBITED_FIELD_IN_WHERE_CLAUSE = 24 - PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE = 43 - PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE = 48 - PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE = 58 - PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE = 49 - PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE = 51 - PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE = 53 - LIMIT_VALUE_TOO_LOW = 25 - PROHIBITED_NEWLINE_IN_STRING = 8 - PROHIBITED_VALUE_COMBINATION_IN_LIST = 10 - PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR = 21 - STRING_NOT_TERMINATED = 6 - TOO_MANY_SEGMENTS = 34 - UNEXPECTED_END_OF_QUERY = 9 - UNEXPECTED_FROM_CLAUSE = 47 - UNRECOGNIZED_FIELD = 32 - UNEXPECTED_INPUT = 11 + ONE_PER_CLICK = 2 + MANY_PER_CLICK = 3 -class RequestErrorEnum(object): - class RequestError(enum.IntEnum): +class SpendingLimitTypeEnum(object): + class SpendingLimitType(enum.IntEnum): """ - Enum describing possible request errors. + The possible spending limit types used by certain resources as an + alternative to absolute money values in micros. Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - RESOURCE_NAME_MISSING (int): Resource name is required for this request. - RESOURCE_NAME_MALFORMED (int): Resource name provided is malformed. - BAD_RESOURCE_ID (int): Resource name provided is malformed. - INVALID_CUSTOMER_ID (int): Customer ID is invalid. - OPERATION_REQUIRED (int): Mutate operation should have either create, update, or remove specified. - RESOURCE_NOT_FOUND (int): Requested resource not found. - INVALID_PAGE_TOKEN (int): Next page token specified in user request is invalid. - EXPIRED_PAGE_TOKEN (int): Next page token specified in user request has expired. - REQUIRED_FIELD_MISSING (int): Required field is missing. - IMMUTABLE_FIELD (int): The field cannot be modified because it's immutable. It's also possible - that the field can be modified using 'create' operation but not 'update'. - TOO_MANY_MUTATE_OPERATIONS (int): Received too many entries in request. - CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT (int): Request cannot be executed by a manager account. - CANNOT_MODIFY_FOREIGN_FIELD (int): Mutate request was attempting to modify a readonly field. - For instance, Budget fields can be requested for Ad Group, - but are read-only for adGroups:mutate. - INVALID_ENUM_VALUE (int): Enum value is not permitted. - DEVELOPER_TOKEN_PARAMETER_MISSING (int): The developer-token parameter is required for all requests. + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + INFINITE (int): Infinite, indicates unlimited spending power. """ UNSPECIFIED = 0 UNKNOWN = 1 - RESOURCE_NAME_MISSING = 3 - RESOURCE_NAME_MALFORMED = 4 - BAD_RESOURCE_ID = 17 - INVALID_CUSTOMER_ID = 16 - OPERATION_REQUIRED = 5 - RESOURCE_NOT_FOUND = 6 - INVALID_PAGE_TOKEN = 7 - EXPIRED_PAGE_TOKEN = 8 - REQUIRED_FIELD_MISSING = 9 - IMMUTABLE_FIELD = 11 - TOO_MANY_MUTATE_OPERATIONS = 13 - CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT = 14 - CANNOT_MODIFY_FOREIGN_FIELD = 15 - INVALID_ENUM_VALUE = 18 - DEVELOPER_TOKEN_PARAMETER_MISSING = 19 + INFINITE = 2 -class ResourceAccessDeniedErrorEnum(object): - class ResourceAccessDeniedError(enum.IntEnum): +class DataDrivenModelStatusEnum(object): + class DataDrivenModelStatus(enum.IntEnum): """ - Enum describing possible resource access denied errors. + Enumerates data driven model statuses. Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - WRITE_ACCESS_DENIED (int): User did not have write access. + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + AVAILABLE (int): The data driven model is available. + STALE (int): The data driven model is stale. It hasn't been updated for at least 7 + days. It is still being used, but will become expired if it does not get + updated for 30 days. + EXPIRED (int): The data driven model expired. It hasn't been updated for at least 30 + days and cannot be used. Most commonly this is because there hasn't been + the required number of events in a recent 30-day period. + NEVER_GENERATED (int): The data driven model has never been generated. Most commonly this is + because there has never been the required number of events in any 30-day + period. """ UNSPECIFIED = 0 UNKNOWN = 1 - WRITE_ACCESS_DENIED = 3 + AVAILABLE = 2 + STALE = 3 + EXPIRED = 4 + NEVER_GENERATED = 5 -class DateErrorEnum(object): - class DateError(enum.IntEnum): +class ChangeStatusOperationEnum(object): + class ChangeStatusOperation(enum.IntEnum): """ - Enum describing possible date errors. + Status of the changed resource Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - INVALID_FIELD_VALUES_IN_DATE (int): Given field values do not correspond to a valid date. - INVALID_FIELD_VALUES_IN_DATE_TIME (int): Given field values do not correspond to a valid date time. - INVALID_STRING_DATE (int): The string date's format should be yyyymmdd. - INVALID_STRING_DATE_TIME (int): The string date time's format should be yyyymmdd hhmmss [tz]. - EARLIER_THAN_MINIMUM_DATE (int): Date is before allowed minimum. - LATER_THAN_MAXIMUM_DATE (int): Date is after allowed maximum. - DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE (int): Date range bounds are not in order. - DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL (int): Both dates in range are null. + UNSPECIFIED (int): No value has been specified. + UNKNOWN (int): Used for return value only. Represents an unclassified resource unknown + in this version. + ADDED (int): The resource was created. + CHANGED (int): The resource was modified. + REMOVED (int): The resource was removed. """ UNSPECIFIED = 0 UNKNOWN = 1 - INVALID_FIELD_VALUES_IN_DATE = 2 - INVALID_FIELD_VALUES_IN_DATE_TIME = 3 - INVALID_STRING_DATE = 4 - INVALID_STRING_DATE_TIME = 6 - EARLIER_THAN_MINIMUM_DATE = 7 - LATER_THAN_MAXIMUM_DATE = 8 - DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = 9 - DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = 10 + ADDED = 2 + CHANGED = 3 + REMOVED = 4 -class MultiplierErrorEnum(object): - class MultiplierError(enum.IntEnum): +class AdvertisingChannelSubTypeEnum(object): + class AdvertisingChannelSubType(enum.IntEnum): """ - Enum describing possible multiplier errors. + Enum describing the different channel subtypes. Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - MULTIPLIER_TOO_HIGH (int): Multiplier value is too high - MULTIPLIER_TOO_LOW (int): Multiplier value is too low - TOO_MANY_FRACTIONAL_DIGITS (int): Too many fractional digits - MULTIPLIER_NOT_ALLOWED_FOR_BIDDING_STRATEGY (int): A multiplier cannot be set for this bidding strategy - MULTIPLIER_NOT_ALLOWED_WHEN_BASE_BID_IS_MISSING (int): A multiplier cannot be set when there is no base bid (e.g., content max - cpc) - NO_MULTIPLIER_SPECIFIED (int): A bid multiplier must be specified - MULTIPLIER_CAUSES_BID_TO_EXCEED_DAILY_BUDGET (int): Multiplier causes bid to exceed daily budget - MULTIPLIER_CAUSES_BID_TO_EXCEED_MONTHLY_BUDGET (int): Multiplier causes bid to exceed monthly budget - MULTIPLIER_CAUSES_BID_TO_EXCEED_CUSTOM_BUDGET (int): Multiplier causes bid to exceed custom budget - MULTIPLIER_CAUSES_BID_TO_EXCEED_MAX_ALLOWED_BID (int): Multiplier causes bid to exceed maximum allowed bid - BID_LESS_THAN_MIN_ALLOWED_BID_WITH_MULTIPLIER (int): Multiplier causes bid to become less than the minimum bid allowed - MULTIPLIER_AND_BIDDING_STRATEGY_TYPE_MISMATCH (int): Multiplier type (cpc vs. cpm) needs to match campaign's bidding strategy + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used as a return value only. Represents value unknown in this version. + SEARCH_MOBILE_APP (int): Mobile app campaigns for Search. + DISPLAY_MOBILE_APP (int): Mobile app campaigns for Display. + SEARCH_EXPRESS (int): AdWords express campaigns for search. + DISPLAY_EXPRESS (int): AdWords Express campaigns for display. + SHOPPING_SMART_ADS (int): Smart Shopping campaigns. """ UNSPECIFIED = 0 UNKNOWN = 1 - MULTIPLIER_TOO_HIGH = 2 - MULTIPLIER_TOO_LOW = 3 - TOO_MANY_FRACTIONAL_DIGITS = 4 - MULTIPLIER_NOT_ALLOWED_FOR_BIDDING_STRATEGY = 5 - MULTIPLIER_NOT_ALLOWED_WHEN_BASE_BID_IS_MISSING = 6 - NO_MULTIPLIER_SPECIFIED = 7 - MULTIPLIER_CAUSES_BID_TO_EXCEED_DAILY_BUDGET = 8 - MULTIPLIER_CAUSES_BID_TO_EXCEED_MONTHLY_BUDGET = 9 - MULTIPLIER_CAUSES_BID_TO_EXCEED_CUSTOM_BUDGET = 10 - MULTIPLIER_CAUSES_BID_TO_EXCEED_MAX_ALLOWED_BID = 11 - BID_LESS_THAN_MIN_ALLOWED_BID_WITH_MULTIPLIER = 12 - MULTIPLIER_AND_BIDDING_STRATEGY_TYPE_MISMATCH = 13 + SEARCH_MOBILE_APP = 2 + DISPLAY_MOBILE_APP = 3 + SEARCH_EXPRESS = 4 + DISPLAY_EXPRESS = 5 + SHOPPING_SMART_ADS = 6 -class FieldErrorEnum(object): - class FieldError(enum.IntEnum): +class AdNetworkTypeEnum(object): + class AdNetworkType(enum.IntEnum): """ - Enum describing possible field errors. + Enumerates Google Ads network types. Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - REQUIRED (int): The required field was not present in the resource. - IMMUTABLE_FIELD (int): The field attempted to be mutated is immutable. - INVALID_VALUE (int): The field's value is invalid. - VALUE_MUST_BE_UNSET (int): The field cannot be set. - REQUIRED_NONEMPTY_LIST (int): The required repeated field was empty. + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + SEARCH (int): Google search. + SEARCH_PARTNERS (int): Search partners. + CONTENT (int): Display Network. + YOUTUBE_SEARCH (int): YouTube Search. + YOUTUBE_WATCH (int): YouTube Videos + MIXED (int): Cross-network. """ UNSPECIFIED = 0 UNKNOWN = 1 - REQUIRED = 2 - IMMUTABLE_FIELD = 3 - INVALID_VALUE = 4 - VALUE_MUST_BE_UNSET = 5 - REQUIRED_NONEMPTY_LIST = 6 + SEARCH = 2 + SEARCH_PARTNERS = 3 + CONTENT = 4 + YOUTUBE_SEARCH = 5 + YOUTUBE_WATCH = 6 + MIXED = 7 -class NullErrorEnum(object): - class NullError(enum.IntEnum): +class BidModifierSourceEnum(object): + class BidModifierSource(enum.IntEnum): """ - Enum describing possible null errors. + Enum describing possible bid modifier sources. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + CAMPAIGN (int): The bid modifier is specified at the campaign level, on the campaign + level criterion. + AD_GROUP (int): The bid modifier is specified (overridden) at the ad group level. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CAMPAIGN = 2 + AD_GROUP = 3 + + +class AdvertisingChannelTypeEnum(object): + class AdvertisingChannelType(enum.IntEnum): + """ + Enum describing the various advertising channel types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + SEARCH (int): Search Network. Includes display bundled, and Search+ campaigns. + DISPLAY (int): Google Display Network only. + SHOPPING (int): Shopping campaigns serve on the shopping property + and on google.com search results. + HOTEL (int): Hotel Ads campaigns. + VIDEO (int): Video campaigns. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + SEARCH = 2 + DISPLAY = 3 + SHOPPING = 4 + HOTEL = 5 + VIDEO = 6 + + +class AdGroupAdStatusEnum(object): + class AdGroupAdStatus(enum.IntEnum): + """ + The possible statuses of an AdGroupAd. + + Attributes: + UNSPECIFIED (int): No value has been specified. + UNKNOWN (int): The received value is not known in this version. + + This is a response-only value. + ENABLED (int): The ad group ad is enabled. + PAUSED (int): The ad group ad is paused. + REMOVED (int): The ad group ad is removed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + PAUSED = 3 + REMOVED = 4 + + +class AdGroupBidModifierErrorEnum(object): + class AdGroupBidModifierError(enum.IntEnum): + """ + Enum describing possible ad group bid modifier errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - NULL_CONTENT (int): Specified list/container must not contain any null elements + CRITERION_ID_NOT_SUPPORTED (int): The criterion ID does not support bid modification. + CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER (int): Cannot override the bid modifier for the given criterion ID if the parent + campaign is opted out of the same criterion. """ UNSPECIFIED = 0 UNKNOWN = 1 - NULL_CONTENT = 2 + CRITERION_ID_NOT_SUPPORTED = 2 + CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER = 3 -class AdErrorEnum(object): - class AdError(enum.IntEnum): +class MediaBundleErrorEnum(object): + class MediaBundleError(enum.IntEnum): """ - Enum describing possible ad errors. + Enum describing possible media bundle errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE (int): Ad customizers are not supported for ad type. - APPROXIMATELY_TOO_LONG (int): Estimating character sizes the string is too long. - APPROXIMATELY_TOO_SHORT (int): Estimating character sizes the string is too short. - BAD_SNIPPET (int): There is a problem with the snippet. - CANNOT_MODIFY_AD (int): Cannot modify an ad. - CANNOT_SET_BUSINESS_NAME_IF_URL_SET (int): business name and url cannot be set at the same time - CANNOT_SET_FIELD (int): The specified field is incompatible with this ad's type or settings. - CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET (int): Cannot set field when originAdId is set. - CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING (int): Cannot set field when an existing ad id is set for sharing. - CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE (int): Cannot set allowFlexibleColor false if no color is provided by user. - CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING (int): When user select native, no color control is allowed because we will - always respect publisher color for native format serving. - CANNOT_SET_URL (int): Cannot specify a url for the ad type - CANNOT_SET_WITHOUT_FINAL_URLS (int): Cannot specify a tracking or mobile url without also setting final urls - CANNOT_SET_WITH_FINAL_URLS (int): Cannot specify a legacy url and a final url simultaneously - CANNOT_SET_WITH_TRACKING_URL_TEMPLATE (int): Cannot specify a legacy url and a tracking url template simultaneously in - a DSA. - CANNOT_SET_WITH_URL_DATA (int): Cannot specify a urls in UrlData and in template fields simultaneously. - CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR (int): This operator cannot be used with a subclass of Ad. - CUSTOMER_NOT_APPROVED_MOBILEADS (int): Customer is not approved for mobile ads. - CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS (int): Customer is not approved for 3PAS richmedia ads. - CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS (int): Customer is not approved for 3PAS redirect richmedia (Ad Exchange) ads. - CUSTOMER_NOT_ELIGIBLE (int): Not an eligible customer - CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL (int): Customer is not eligible for updating beacon url - DIMENSION_ALREADY_IN_UNION (int): There already exists an ad with the same dimensions in the union. - DIMENSION_MUST_BE_SET (int): Ad's dimension must be set before setting union dimension. - DIMENSION_NOT_IN_UNION (int): Ad's dimension must be included in the union dimensions. - DISPLAY_URL_CANNOT_BE_SPECIFIED (int): Display Url cannot be specified (applies to Ad Exchange Ads) - DOMESTIC_PHONE_NUMBER_FORMAT (int): Telephone number contains invalid characters or invalid format. Please - re-enter your number using digits (0-9), dashes (-), and parentheses - only. - EMERGENCY_PHONE_NUMBER (int): Emergency telephone numbers are not allowed. Please enter a valid - domestic phone number to connect customers to your business. - EMPTY_FIELD (int): A required field was not specified or is an empty string. - FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID (int): A feed attribute referenced in an ad customizer tag is not in the ad - customizer mapping for the feed. - FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH (int): The ad customizer field mapping for the feed attribute does not match the - expected field type. - ILLEGAL_AD_CUSTOMIZER_TAG_USE (int): The use of ad customizer tags in the ad text is disallowed. Details in - trigger. - ILLEGAL_TAG_USE (int): Tags of the form {PH_x}, where x is a number, are disallowed in ad text. - INCONSISTENT_DIMENSIONS (int): The dimensions of the ad are specified or derived in multiple ways and - are not consistent. - INCONSISTENT_STATUS_IN_TEMPLATE_UNION (int): The status cannot differ among template ads of the same union. - INCORRECT_LENGTH (int): The length of the string is not valid. - INELIGIBLE_FOR_UPGRADE (int): The ad is ineligible for upgrade. - INVALID_AD_ADDRESS_CAMPAIGN_TARGET (int): User cannot create mobile ad for countries targeted in specified - campaign. - INVALID_AD_TYPE (int): Invalid Ad type. A specific type of Ad is required. - INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE (int): Headline, description or phone cannot be present when creating mobile - image ad. - INVALID_ATTRIBUTES_FOR_MOBILE_TEXT (int): Image cannot be present when creating mobile text ad. - INVALID_CALL_TO_ACTION_TEXT (int): Invalid call to action text. - INVALID_CHARACTER_FOR_URL (int): Invalid character in URL. - INVALID_COUNTRY_CODE (int): Creative's country code is not valid. - INVALID_DSA_URL_TAG (int): Invalid use of Dynamic Search Ads tags ({lpurl} etc.) - INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG (int): Invalid use of Expanded Dynamic Search Ads tags ({lpurl} etc.) - INVALID_INPUT (int): An input error whose real reason was not properly mapped (should not - happen). - INVALID_MARKUP_LANGUAGE (int): An invalid markup language was entered. - INVALID_MOBILE_CARRIER (int): An invalid mobile carrier was entered. - INVALID_MOBILE_CARRIER_TARGET (int): Specified mobile carriers target a country not targeted by the campaign. - INVALID_NUMBER_OF_ELEMENTS (int): Wrong number of elements for given element type - INVALID_PHONE_NUMBER_FORMAT (int): The format of the telephone number is incorrect. Please re-enter the - number using the correct format. - INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID (int): The certified vendor format id is incorrect. - INVALID_TEMPLATE_DATA (int): The template ad data contains validation errors. - INVALID_TEMPLATE_ELEMENT_FIELD_TYPE (int): The template field doesn't have have the correct type. - INVALID_TEMPLATE_ID (int): Invalid template id. - LINE_TOO_WIDE (int): After substituting replacement strings, the line is too wide. - MISSING_AD_CUSTOMIZER_MAPPING (int): The feed referenced must have ad customizer mapping to be used in a - customizer tag. - MISSING_ADDRESS_COMPONENT (int): Missing address component in template element address field. - MISSING_ADVERTISEMENT_NAME (int): An ad name must be entered. - MISSING_BUSINESS_NAME (int): Business name must be entered. - MISSING_DESCRIPTION1 (int): Description (line 2) must be entered. - MISSING_DESCRIPTION2 (int): Description (line 3) must be entered. - MISSING_DESTINATION_URL_TAG (int): The destination url must contain at least one tag (e.g. {lpurl}) - MISSING_LANDING_PAGE_URL_TAG (int): The tracking url template of ExpandedDynamicSearchAd must contain at - least one tag. (e.g. {lpurl}) - MISSING_DIMENSION (int): A valid dimension must be specified for this ad. - MISSING_DISPLAY_URL (int): A display URL must be entered. - MISSING_HEADLINE (int): Headline must be entered. - MISSING_HEIGHT (int): A height must be entered. - MISSING_IMAGE (int): An image must be entered. - MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS (int): Marketing image or product videos are required. - MISSING_MARKUP_LANGUAGES (int): The markup language in which your site is written must be entered. - MISSING_MOBILE_CARRIER (int): A mobile carrier must be entered. - MISSING_PHONE (int): Phone number must be entered. - MISSING_REQUIRED_TEMPLATE_FIELDS (int): Missing required template fields - MISSING_TEMPLATE_FIELD_VALUE (int): Missing a required field value - MISSING_TEXT (int): The ad must have text. - MISSING_VISIBLE_URL (int): A visible URL must be entered. - MISSING_WIDTH (int): A width must be entered. - MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED (int): Only 1 feed can be used as the source of ad customizer substitutions in a - single ad. - MUST_USE_TEMP_AD_UNION_ID_ON_ADD (int): TempAdUnionId must be use when adding template ads. - TOO_LONG (int): The string has too many characters. - TOO_SHORT (int): The string has too few characters. - UNION_DIMENSIONS_CANNOT_CHANGE (int): Ad union dimensions cannot change for saved ads. - UNKNOWN_ADDRESS_COMPONENT (int): Address component is not {country, lat, lng}. - UNKNOWN_FIELD_NAME (int): Unknown unique field name - UNKNOWN_UNIQUE_NAME (int): Unknown unique name (template element type specifier) - UNSUPPORTED_DIMENSIONS (int): Unsupported ad dimension - URL_INVALID_SCHEME (int): URL starts with an invalid scheme. - URL_INVALID_TOP_LEVEL_DOMAIN (int): URL ends with an invalid top-level domain name. - URL_MALFORMED (int): URL contains illegal characters. - URL_NO_HOST (int): URL must contain a host name. - URL_NOT_EQUIVALENT (int): URL not equivalent during upgrade. - URL_HOST_NAME_TOO_LONG (int): URL host name too long to be stored as visible URL (applies to Ad - Exchange ads) - URL_NO_SCHEME (int): URL must start with a scheme. - URL_NO_TOP_LEVEL_DOMAIN (int): URL should end in a valid domain extension, such as .com or .net. - URL_PATH_NOT_ALLOWED (int): URL must not end with a path. - URL_PORT_NOT_ALLOWED (int): URL must not specify a port. - URL_QUERY_NOT_ALLOWED (int): URL must not contain a query. - URL_SCHEME_BEFORE_DSA_TAG (int): A url scheme is not allowed in front of tag in dest url (e.g. - http://{lpurl}) - URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG (int): A url scheme is not allowed in front of tag in tracking url template - (e.g. http://{lpurl}) - USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE (int): The user does not have permissions to create a template ad for the given - template. - INCONSISTENT_EXPANDABLE_SETTINGS (int): Expandable setting is inconsistent/wrong. For example, an AdX ad is - invalid if it has a expandable vendor format but no expanding directions - specified, or expanding directions is specified, but the vendor format is - not expandable. - INVALID_FORMAT (int): Format is invalid - INVALID_FIELD_TEXT (int): The text of this field did not match a pattern of allowed values. - ELEMENT_NOT_PRESENT (int): Template element is mising - IMAGE_ERROR (int): Error occurred during image processing - VALUE_NOT_IN_RANGE (int): The value is not within the valid range - FIELD_NOT_PRESENT (int): Template element field is not present - ADDRESS_NOT_COMPLETE (int): Address is incomplete - ADDRESS_INVALID (int): Invalid address - VIDEO_RETRIEVAL_ERROR (int): Error retrieving specified video - AUDIO_ERROR (int): Error processing audio - INVALID_YOUTUBE_DISPLAY_URL (int): Display URL is incorrect for YouTube PYV ads - TOO_MANY_PRODUCT_IMAGES (int): Too many product Images in GmailAd - TOO_MANY_PRODUCT_VIDEOS (int): Too many product Videos in GmailAd - INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE (int): The device preference is not compatible with the ad type - CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY (int): Call tracking is not supported for specified country. - CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED (int): Carrier specific short number is not allowed. - DISALLOWED_NUMBER_TYPE (int): Specified phone number type is disallowed. - PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY (int): Phone number not supported for country. - PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY (int): Phone number not supported with call tracking enabled for country. - PREMIUM_RATE_NUMBER_NOT_ALLOWED (int): Premium rate phone number is not allowed. - VANITY_PHONE_NUMBER_NOT_ALLOWED (int): Vanity phone number is not allowed. - INVALID_CALL_CONVERSION_TYPE_ID (int): Invalid call conversion type id. - CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID (int): Cannot disable call conversion and set conversion type id. - CANNOT_SET_PATH2_WITHOUT_PATH1 (int): Cannot set path2 without path1. - MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME (int): Missing domain name in campaign setting when adding expanded dynamic - search ad. - INCOMPATIBLE_WITH_RESTRICTION_TYPE (int): The associated ad is not compatible with restriction type. + BAD_REQUEST (int): There was a problem with the request. + DOUBLECLICK_BUNDLE_NOT_ALLOWED (int): HTML5 ads using DoubleClick Studio created ZIP files are not supported. + EXTERNAL_URL_NOT_ALLOWED (int): Cannot reference URL external to the media bundle. + FILE_TOO_LARGE (int): Media bundle file is too large. + GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED (int): ZIP file from Google Web Designer is not published. + INVALID_INPUT (int): Input was invalid. + INVALID_MEDIA_BUNDLE (int): There was a problem with the media bundle. + INVALID_MEDIA_BUNDLE_ENTRY (int): There was a problem with one or more of the media bundle entries. + INVALID_MIME_TYPE (int): The media bundle contains a file with an unknown mime type + INVALID_PATH (int): The media bundle contain an invalid asset path. + INVALID_URL_REFERENCE (int): HTML5 ad is trying to reference an asset not in .ZIP file + MEDIA_DATA_TOO_LARGE (int): Media data is too large. + MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY (int): The media bundle contains no primary entry. + SERVER_ERROR (int): There was an error on the server. + STORAGE_ERROR (int): The image could not be stored. + SWIFFY_BUNDLE_NOT_ALLOWED (int): Media bundle created with the Swiffy tool is not allowed. + TOO_MANY_FILES (int): The media bundle contains too many files. + UNEXPECTED_SIZE (int): The media bundle is not of legal dimensions. + UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT (int): Google Web Designer not created for \"Google Ads\" environment. + UNSUPPORTED_HTML5_FEATURE (int): Unsupported HTML5 feature in HTML5 asset. + URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT (int): URL in HTML5 entry is not ssl compliant. + CUSTOM_EXIT_NOT_ALLOWED (int): Custom exits not allowed in HTML5 entry. """ UNSPECIFIED = 0 UNKNOWN = 1 - AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE = 2 - APPROXIMATELY_TOO_LONG = 3 - APPROXIMATELY_TOO_SHORT = 4 - BAD_SNIPPET = 5 - CANNOT_MODIFY_AD = 6 - CANNOT_SET_BUSINESS_NAME_IF_URL_SET = 7 - CANNOT_SET_FIELD = 8 - CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET = 9 - CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING = 10 - CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE = 11 - CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING = 12 - CANNOT_SET_URL = 13 - CANNOT_SET_WITHOUT_FINAL_URLS = 14 - CANNOT_SET_WITH_FINAL_URLS = 15 - CANNOT_SET_WITH_TRACKING_URL_TEMPLATE = 16 - CANNOT_SET_WITH_URL_DATA = 17 - CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR = 18 - CUSTOMER_NOT_APPROVED_MOBILEADS = 19 - CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS = 20 - CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS = 21 - CUSTOMER_NOT_ELIGIBLE = 22 - CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL = 23 - DIMENSION_ALREADY_IN_UNION = 24 - DIMENSION_MUST_BE_SET = 25 - DIMENSION_NOT_IN_UNION = 26 - DISPLAY_URL_CANNOT_BE_SPECIFIED = 27 - DOMESTIC_PHONE_NUMBER_FORMAT = 28 - EMERGENCY_PHONE_NUMBER = 29 - EMPTY_FIELD = 30 - FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID = 31 - FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH = 32 - ILLEGAL_AD_CUSTOMIZER_TAG_USE = 33 - ILLEGAL_TAG_USE = 34 - INCONSISTENT_DIMENSIONS = 35 - INCONSISTENT_STATUS_IN_TEMPLATE_UNION = 36 - INCORRECT_LENGTH = 37 - INELIGIBLE_FOR_UPGRADE = 38 - INVALID_AD_ADDRESS_CAMPAIGN_TARGET = 39 - INVALID_AD_TYPE = 40 - INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE = 41 - INVALID_ATTRIBUTES_FOR_MOBILE_TEXT = 42 - INVALID_CALL_TO_ACTION_TEXT = 43 - INVALID_CHARACTER_FOR_URL = 44 - INVALID_COUNTRY_CODE = 45 - INVALID_DSA_URL_TAG = 46 - INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 47 - INVALID_INPUT = 48 - INVALID_MARKUP_LANGUAGE = 49 - INVALID_MOBILE_CARRIER = 50 - INVALID_MOBILE_CARRIER_TARGET = 51 - INVALID_NUMBER_OF_ELEMENTS = 52 - INVALID_PHONE_NUMBER_FORMAT = 53 - INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID = 54 - INVALID_TEMPLATE_DATA = 55 - INVALID_TEMPLATE_ELEMENT_FIELD_TYPE = 56 - INVALID_TEMPLATE_ID = 57 - LINE_TOO_WIDE = 58 - MISSING_AD_CUSTOMIZER_MAPPING = 59 - MISSING_ADDRESS_COMPONENT = 60 - MISSING_ADVERTISEMENT_NAME = 61 - MISSING_BUSINESS_NAME = 62 - MISSING_DESCRIPTION1 = 63 - MISSING_DESCRIPTION2 = 64 - MISSING_DESTINATION_URL_TAG = 65 - MISSING_LANDING_PAGE_URL_TAG = 66 - MISSING_DIMENSION = 67 - MISSING_DISPLAY_URL = 68 - MISSING_HEADLINE = 69 - MISSING_HEIGHT = 70 - MISSING_IMAGE = 71 - MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS = 72 - MISSING_MARKUP_LANGUAGES = 73 - MISSING_MOBILE_CARRIER = 74 - MISSING_PHONE = 75 - MISSING_REQUIRED_TEMPLATE_FIELDS = 76 - MISSING_TEMPLATE_FIELD_VALUE = 77 - MISSING_TEXT = 78 - MISSING_VISIBLE_URL = 79 - MISSING_WIDTH = 80 - MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED = 81 - MUST_USE_TEMP_AD_UNION_ID_ON_ADD = 82 - TOO_LONG = 83 - TOO_SHORT = 84 - UNION_DIMENSIONS_CANNOT_CHANGE = 85 - UNKNOWN_ADDRESS_COMPONENT = 86 - UNKNOWN_FIELD_NAME = 87 - UNKNOWN_UNIQUE_NAME = 88 - UNSUPPORTED_DIMENSIONS = 89 - URL_INVALID_SCHEME = 90 - URL_INVALID_TOP_LEVEL_DOMAIN = 91 - URL_MALFORMED = 92 - URL_NO_HOST = 93 - URL_NOT_EQUIVALENT = 94 - URL_HOST_NAME_TOO_LONG = 95 - URL_NO_SCHEME = 96 - URL_NO_TOP_LEVEL_DOMAIN = 97 - URL_PATH_NOT_ALLOWED = 98 - URL_PORT_NOT_ALLOWED = 99 - URL_QUERY_NOT_ALLOWED = 100 - URL_SCHEME_BEFORE_DSA_TAG = 101 - URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 102 - USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE = 103 - INCONSISTENT_EXPANDABLE_SETTINGS = 104 - INVALID_FORMAT = 105 - INVALID_FIELD_TEXT = 106 - ELEMENT_NOT_PRESENT = 107 - IMAGE_ERROR = 108 - VALUE_NOT_IN_RANGE = 109 - FIELD_NOT_PRESENT = 110 - ADDRESS_NOT_COMPLETE = 111 - ADDRESS_INVALID = 112 - VIDEO_RETRIEVAL_ERROR = 113 - AUDIO_ERROR = 114 - INVALID_YOUTUBE_DISPLAY_URL = 115 - TOO_MANY_PRODUCT_IMAGES = 116 - TOO_MANY_PRODUCT_VIDEOS = 117 - INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE = 118 - CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 119 - CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 120 - DISALLOWED_NUMBER_TYPE = 121 - PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 122 - PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 123 - PREMIUM_RATE_NUMBER_NOT_ALLOWED = 124 - VANITY_PHONE_NUMBER_NOT_ALLOWED = 125 - INVALID_CALL_CONVERSION_TYPE_ID = 126 - CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID = 127 - CANNOT_SET_PATH2_WITHOUT_PATH1 = 128 - MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME = 129 - INCOMPATIBLE_WITH_RESTRICTION_TYPE = 130 + BAD_REQUEST = 3 + DOUBLECLICK_BUNDLE_NOT_ALLOWED = 4 + EXTERNAL_URL_NOT_ALLOWED = 5 + FILE_TOO_LARGE = 6 + GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED = 7 + INVALID_INPUT = 8 + INVALID_MEDIA_BUNDLE = 9 + INVALID_MEDIA_BUNDLE_ENTRY = 10 + INVALID_MIME_TYPE = 11 + INVALID_PATH = 12 + INVALID_URL_REFERENCE = 13 + MEDIA_DATA_TOO_LARGE = 14 + MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY = 15 + SERVER_ERROR = 16 + STORAGE_ERROR = 17 + SWIFFY_BUNDLE_NOT_ALLOWED = 18 + TOO_MANY_FILES = 19 + UNEXPECTED_SIZE = 20 + UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT = 21 + UNSUPPORTED_HTML5_FEATURE = 22 + URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT = 23 + CUSTOM_EXIT_NOT_ALLOWED = 24 + + +class AdxErrorEnum(object): + class AdxError(enum.IntEnum): + """ + Enum describing possible adx errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + UNSUPPORTED_FEATURE (int): Attempt to use non-AdX feature by AdX customer. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + UNSUPPORTED_FEATURE = 2 + + +class ListOperationErrorEnum(object): + class ListOperationError(enum.IntEnum): + """ + Enum describing possible list operation errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + REQUIRED_FIELD_MISSING (int): Field required in value is missing. + DUPLICATE_VALUES (int): Duplicate or identical value is sent in multiple list operations. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + REQUIRED_FIELD_MISSING = 7 + DUPLICATE_VALUES = 8 + + +class BiddingStrategyErrorEnum(object): + class BiddingStrategyError(enum.IntEnum): + """ + Enum describing possible bidding strategy errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + DUPLICATE_NAME (int): Each bidding strategy must have a unique name. + CANNOT_CHANGE_BIDDING_STRATEGY_TYPE (int): Bidding strategy type is immutable. + CANNOT_REMOVE_ASSOCIATED_STRATEGY (int): Only bidding strategies not linked to campaigns, adgroups or adgroup + criteria can be removed. + BIDDING_STRATEGY_NOT_SUPPORTED (int): The specified bidding strategy is not supported. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DUPLICATE_NAME = 2 + CANNOT_CHANGE_BIDDING_STRATEGY_TYPE = 3 + CANNOT_REMOVE_ASSOCIATED_STRATEGY = 4 + BIDDING_STRATEGY_NOT_SUPPORTED = 5 + + +class EnumErrorEnum(object): + class EnumError(enum.IntEnum): + """ + Enum describing possible enum errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + ENUM_VALUE_NOT_PERMITTED (int): The enum value is not permitted. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENUM_VALUE_NOT_PERMITTED = 3 + + +class RangeErrorEnum(object): + class RangeError(enum.IntEnum): + """ + Enum describing possible range errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + TOO_LOW (int): Too low. + TOO_HIGH (int): Too high. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + TOO_LOW = 2 + TOO_HIGH = 3 + + +class AdGroupErrorEnum(object): + class AdGroupError(enum.IntEnum): + """ + Enum describing possible ad group errors. + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + DUPLICATE_ADGROUP_NAME (int): AdGroup with the same name already exists for the campaign. + INVALID_ADGROUP_NAME (int): AdGroup name is not valid. + ADVERTISER_NOT_ON_CONTENT_NETWORK (int): Advertiser is not allowed to target sites or set site bids that are not + on the Google Search Network. + BID_TOO_BIG (int): Bid amount is too big. + BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH (int): AdGroup bid does not match the campaign's bidding strategy. + MISSING_ADGROUP_NAME (int): AdGroup name is required for Add. + ADGROUP_LABEL_DOES_NOT_EXIST (int): No link found between the ad group and the label. + ADGROUP_LABEL_ALREADY_EXISTS (int): The label has already been attached to the ad group. + INVALID_CONTENT_BID_CRITERION_TYPE_GROUP (int): The CriterionTypeGroup is not supported for the content bid dimension. + AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE (int): The ad group type is not compatible with the campaign channel type. + ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY (int): The ad group type is not supported in the country of sale of the + campaign. + CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING (int): Ad groups of AdGroupType.SEARCH_DYNAMIC_ADS can only be added to + campaigns that have DynamicSearchAdsSetting attached. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DUPLICATE_ADGROUP_NAME = 2 + INVALID_ADGROUP_NAME = 3 + ADVERTISER_NOT_ON_CONTENT_NETWORK = 5 + BID_TOO_BIG = 6 + BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH = 7 + MISSING_ADGROUP_NAME = 8 + ADGROUP_LABEL_DOES_NOT_EXIST = 9 + ADGROUP_LABEL_ALREADY_EXISTS = 10 + INVALID_CONTENT_BID_CRITERION_TYPE_GROUP = 11 + AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE = 12 + ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY = 13 + CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING = 14 -class AuthenticationErrorEnum(object): - class AuthenticationError(enum.IntEnum): + +class MediaErrorEnum(object): + class MediaError(enum.IntEnum): """ - Enum describing possible authentication errors. + Enum describing possible media errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - AUTHENTICATION_ERROR (int): Authentication of the request failed. - CLIENT_CUSTOMER_ID_INVALID (int): Client customer Id is not a number. - CUSTOMER_NOT_FOUND (int): No customer found for the provided customer id. - GOOGLE_ACCOUNT_DELETED (int): Client's Google Account is deleted. - GOOGLE_ACCOUNT_COOKIE_INVALID (int): Google account login token in the cookie is invalid. - FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT (int): A problem occurred during Google account authentication. - GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH (int): The user in the google account login token does not match the UserId in - the cookie. - LOGIN_COOKIE_REQUIRED (int): Login cookie is required for authentication. - NOT_ADS_USER (int): User in the cookie is not a valid Ads user. - OAUTH_TOKEN_INVALID (int): Oauth token in the header is not valid. - OAUTH_TOKEN_EXPIRED (int): Oauth token in the header has expired. - OAUTH_TOKEN_DISABLED (int): Oauth token in the header has been disabled. - OAUTH_TOKEN_REVOKED (int): Oauth token in the header has been revoked. - OAUTH_TOKEN_HEADER_INVALID (int): Oauth token HTTP header is malformed. - LOGIN_COOKIE_INVALID (int): Login cookie is not valid. - FAILED_TO_RETRIEVE_LOGIN_COOKIE (int): Failed to decrypt the login cookie. - USER_ID_INVALID (int): User Id in the header is not a valid id. - TWO_STEP_VERIFICATION_NOT_ENROLLED (int): An account administrator changed this account's authentication settings. - To access this Google Ads account, enable 2-Step Verification in your - Google account at https://www.google.com/landing/2step. - ADVANCED_PROTECTION_NOT_ENROLLED (int): An account administrator changed this account's authentication settings. - To access this Google Ads account, enable Advanced Protection in your - Google account at https://landing.google.com/advancedprotection. + CANNOT_ADD_STANDARD_ICON (int): Cannot add a standard icon type + CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES (int): May only select Standard Icons alone + CANNOT_SPECIFY_MEDIA_ID_AND_DATA (int): Image contains both a media ID and media data. + DUPLICATE_MEDIA (int): A media with given type and reference id already exists + EMPTY_FIELD (int): A required field was not specified or is an empty string. + RESOURCE_REFERENCED_IN_MULTIPLE_OPS (int): A media may only be modified once per call + FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE (int): Field is not supported for the media sub type. + INVALID_MEDIA_ID (int): The media id is invalid + INVALID_MEDIA_SUB_TYPE (int): The media subtype is invalid + INVALID_MEDIA_TYPE (int): The media type is invalid + INVALID_MIME_TYPE (int): The mimetype is invalid + INVALID_REFERENCE_ID (int): The media reference id is invalid + INVALID_YOU_TUBE_ID (int): The YouTube video id is invalid + MEDIA_FAILED_TRANSCODING (int): Media has failed transcoding + MEDIA_NOT_TRANSCODED (int): Media has not been transcoded + MEDIA_TYPE_DOES_NOT_MATCH_OBJECT_TYPE (int): The MediaType does not match the actual media object's type + NO_FIELDS_SPECIFIED (int): None of the fields have been specified. + NULL_REFERENCE_ID_AND_MEDIA_ID (int): One of reference Id or media Id must be specified + TOO_LONG (int): The string has too many characters. + UNSUPPORTED_OPERATION (int): The specified operation is not supported. Only ADD, SET, and REMOVE are + supported + UNSUPPORTED_TYPE (int): The specified type is not supported. + YOU_TUBE_SERVICE_UNAVAILABLE (int): YouTube is unavailable for requesting video data. + YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION (int): The YouTube video has a non positive duration. + YOU_TUBE_VIDEO_NOT_FOUND (int): The YouTube video id is syntactically valid but the video was not found. """ UNSPECIFIED = 0 UNKNOWN = 1 - AUTHENTICATION_ERROR = 2 - CLIENT_CUSTOMER_ID_INVALID = 5 - CUSTOMER_NOT_FOUND = 8 - GOOGLE_ACCOUNT_DELETED = 9 - GOOGLE_ACCOUNT_COOKIE_INVALID = 10 - FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT = 11 - GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = 12 - LOGIN_COOKIE_REQUIRED = 13 - NOT_ADS_USER = 14 - OAUTH_TOKEN_INVALID = 15 - OAUTH_TOKEN_EXPIRED = 16 - OAUTH_TOKEN_DISABLED = 17 - OAUTH_TOKEN_REVOKED = 18 - OAUTH_TOKEN_HEADER_INVALID = 19 - LOGIN_COOKIE_INVALID = 20 - FAILED_TO_RETRIEVE_LOGIN_COOKIE = 21 - USER_ID_INVALID = 22 - TWO_STEP_VERIFICATION_NOT_ENROLLED = 23 - ADVANCED_PROTECTION_NOT_ENROLLED = 24 + CANNOT_ADD_STANDARD_ICON = 2 + CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES = 3 + CANNOT_SPECIFY_MEDIA_ID_AND_DATA = 4 + DUPLICATE_MEDIA = 5 + EMPTY_FIELD = 6 + RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 7 + FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE = 8 + INVALID_MEDIA_ID = 9 + INVALID_MEDIA_SUB_TYPE = 10 + INVALID_MEDIA_TYPE = 11 + INVALID_MIME_TYPE = 12 + INVALID_REFERENCE_ID = 13 + INVALID_YOU_TUBE_ID = 14 + MEDIA_FAILED_TRANSCODING = 15 + MEDIA_NOT_TRANSCODED = 16 + MEDIA_TYPE_DOES_NOT_MATCH_OBJECT_TYPE = 17 + NO_FIELDS_SPECIFIED = 18 + NULL_REFERENCE_ID_AND_MEDIA_ID = 19 + TOO_LONG = 20 + UNSUPPORTED_OPERATION = 21 + UNSUPPORTED_TYPE = 22 + YOU_TUBE_SERVICE_UNAVAILABLE = 23 + YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION = 24 + YOU_TUBE_VIDEO_NOT_FOUND = 25 -class CampaignBudgetErrorEnum(object): - class CampaignBudgetError(enum.IntEnum): +class FieldMaskErrorEnum(object): + class FieldMaskError(enum.IntEnum): """ - Enum describing possible campaign budget errors. + Enum describing possible field mask errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - CAMPAIGN_BUDGET_REMOVED (int): The requested campaign budget no longer exists. - CAMPAIGN_BUDGET_IN_USE (int): The campaign budget is associated with at least one campaign, and so the - campaign budget cannot be removed. - CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE (int): Customer is not whitelisted for this campaign budget period. - CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET (int): This field is not mutable on implicitly shared campaign budgets - CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED (int): Cannot change explicitly shared campaign budgets back to implicitly - shared ones. - CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME (int): An implicit campaign budget without a name cannot be changed to - explicitly shared campaign budget. - CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED (int): Cannot change an implicitly shared campaign budget to an explicitly - shared one. - CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS (int): Only explicitly shared campaign budgets can be used with multiple - campaigns. - DUPLICATE_NAME (int): A campaign budget with this name already exists. - MONEY_AMOUNT_IN_WRONG_CURRENCY (int): A money amount was not in the expected currency. - MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC (int): A money amount was less than the minimum CPC for currency. - MONEY_AMOUNT_TOO_LARGE (int): A money amount was greater than the maximum allowed. - NEGATIVE_MONEY_AMOUNT (int): A money amount was negative. - NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT (int): A money amount was not a multiple of a minimum unit. + FIELD_MASK_MISSING (int): The field mask must be provided for update operations. + FIELD_MASK_NOT_ALLOWED (int): The field mask must be empty for create and remove operations. + FIELD_NOT_FOUND (int): The field mask contained an invalid field. + FIELD_HAS_SUBFIELDS (int): The field mask updated a field with subfields. Fields with subfields may + be cleared, but not updated. To fix this, the field mask should select + all the subfields of the invalid field. """ UNSPECIFIED = 0 UNKNOWN = 1 - CAMPAIGN_BUDGET_REMOVED = 2 - CAMPAIGN_BUDGET_IN_USE = 3 - CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE = 4 - CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET = 6 - CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED = 7 - CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME = 8 - CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED = 9 - CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS = 10 - DUPLICATE_NAME = 11 - MONEY_AMOUNT_IN_WRONG_CURRENCY = 12 - MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC = 13 - MONEY_AMOUNT_TOO_LARGE = 14 - NEGATIVE_MONEY_AMOUNT = 15 - NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT = 16 + FIELD_MASK_MISSING = 5 + FIELD_MASK_NOT_ALLOWED = 4 + FIELD_NOT_FOUND = 2 + FIELD_HAS_SUBFIELDS = 3 -class RecommendationErrorEnum(object): - class RecommendationError(enum.IntEnum): +class StringLengthErrorEnum(object): + class StringLengthError(enum.IntEnum): """ - Enum describing possible errors from applying a recommendation. + Enum describing possible string length errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - BUDGET_AMOUNT_TOO_SMALL (int): The specified budget amount is too low e.g. lower than minimum currency - unit or lower than ad group minimum cost-per-click. - BUDGET_AMOUNT_TOO_LARGE (int): The specified budget amount is too large. - INVALID_BUDGET_AMOUNT (int): The specified budget amount is not a valid amount. e.g. not a multiple - of minimum currency unit. - POLICY_ERROR (int): The specified keyword or ad violates ad policy. - INVALID_BID_AMOUNT (int): The specified bid amount is not valid. e.g. too many fractional digits, - or negative amount. - ADGROUP_KEYWORD_LIMIT (int): The number of keywords in ad group have reached the maximum allowed. - RECOMMENDATION_ALREADY_APPLIED (int): The recommendation requested to apply has already been applied. + TOO_SHORT (int): Too short. + TOO_LONG (int): Too long. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + TOO_SHORT = 2 + TOO_LONG = 3 + + +class AdGroupCriterionErrorEnum(object): + class AdGroupCriterionError(enum.IntEnum): + """ + Enum describing possible ad group criterion errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + AD_GROUP_CRITERION_LABEL_DOES_NOT_EXIST (int): No link found between the AdGroupCriterion and the label. + AD_GROUP_CRITERION_LABEL_ALREADY_EXISTS (int): The label has already been attached to the AdGroupCriterion. + CANNOT_ADD_LABEL_TO_NEGATIVE_CRITERION (int): Negative AdGroupCriterion cannot have labels. + TOO_MANY_OPERATIONS (int): Too many operations for a single call. + CANT_UPDATE_NEGATIVE (int): Negative ad group criteria are not updateable. + CONCRETE_TYPE_REQUIRED (int): Concrete type of criterion (keyword v.s. placement) is required for ADD + and SET operations. + BID_INCOMPATIBLE_WITH_ADGROUP (int): Bid is incompatible with ad group's bidding settings. + CANNOT_TARGET_AND_EXCLUDE (int): Cannot target and exclude the same criterion at once. + ILLEGAL_URL (int): The URL of a placement is invalid. + INVALID_KEYWORD_TEXT (int): Keyword text was invalid. + INVALID_DESTINATION_URL (int): Destination URL was invalid. + MISSING_DESTINATION_URL_TAG (int): The destination url must contain at least one tag (e.g. {lpurl}) + KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM (int): Keyword-level cpm bid is not supported + INVALID_USER_STATUS (int): For example, cannot add a biddable ad group criterion that had been + removed. + CANNOT_ADD_CRITERIA_TYPE (int): Criteria type cannot be targeted for the ad group. Either the account is + restricted to keywords only, the criteria type is incompatible with the + campaign's bidding strategy, or the criteria type can only be applied to + campaigns. + CANNOT_EXCLUDE_CRITERIA_TYPE (int): Criteria type cannot be excluded for the ad group. Refer to the + documentation for a specific criterion to check if it is excludable. + CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE (int): Partial failure is not supported for shopping campaign mutate operations. + OPERATIONS_FOR_TOO_MANY_SHOPPING_ADGROUPS (int): Operations in the mutate request changes too many shopping ad groups. + Please split requests for multiple shopping ad groups across multiple + requests. + CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS (int): Not allowed to modify url fields of an ad group criterion if there are + duplicate elements for that ad group criterion in the request. + CANNOT_SET_WITHOUT_FINAL_URLS (int): Cannot set url fields without also setting final urls. + CANNOT_CLEAR_FINAL_URLS_IF_FINAL_MOBILE_URLS_EXIST (int): Cannot clear final urls if final mobile urls exist. + CANNOT_CLEAR_FINAL_URLS_IF_FINAL_APP_URLS_EXIST (int): Cannot clear final urls if final app urls exist. + CANNOT_CLEAR_FINAL_URLS_IF_TRACKING_URL_TEMPLATE_EXISTS (int): Cannot clear final urls if tracking url template exists. + CANNOT_CLEAR_FINAL_URLS_IF_URL_CUSTOM_PARAMETERS_EXIST (int): Cannot clear final urls if url custom parameters exist. + CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS (int): Cannot set both destination url and final urls. + CANNOT_SET_BOTH_DESTINATION_URL_AND_TRACKING_URL_TEMPLATE (int): Cannot set both destination url and tracking url template. + FINAL_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE (int): Final urls are not supported for this criterion type. + FINAL_MOBILE_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE (int): Final mobile urls are not supported for this criterion type. + INVALID_LISTING_GROUP_HIERARCHY (int): Ad group is invalid due to the listing groups it contains. + LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN (int): Listing group unit cannot have children. + LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE (int): Subdivided listing groups must have an \"others\" case. + LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS (int): Dimension type of listing group must be the same as that of its siblings. + LISTING_GROUP_ALREADY_EXISTS (int): Listing group cannot be added to the ad group because it already exists. + LISTING_GROUP_DOES_NOT_EXIST (int): Listing group referenced in the operation was not found in the ad group. + LISTING_GROUP_CANNOT_BE_REMOVED (int): Recursive removal failed because listing group subdivision is being + created or modified in this request. + INVALID_LISTING_GROUP_TYPE (int): Listing group type is not allowed for specified ad group criterion type. + LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID (int): Listing group in an ADD operation specifies a non temporary criterion id. """ UNSPECIFIED = 0 UNKNOWN = 1 - BUDGET_AMOUNT_TOO_SMALL = 2 - BUDGET_AMOUNT_TOO_LARGE = 3 - INVALID_BUDGET_AMOUNT = 4 - POLICY_ERROR = 5 - INVALID_BID_AMOUNT = 6 - ADGROUP_KEYWORD_LIMIT = 7 - RECOMMENDATION_ALREADY_APPLIED = 8 + AD_GROUP_CRITERION_LABEL_DOES_NOT_EXIST = 2 + AD_GROUP_CRITERION_LABEL_ALREADY_EXISTS = 3 + CANNOT_ADD_LABEL_TO_NEGATIVE_CRITERION = 4 + TOO_MANY_OPERATIONS = 5 + CANT_UPDATE_NEGATIVE = 6 + CONCRETE_TYPE_REQUIRED = 7 + BID_INCOMPATIBLE_WITH_ADGROUP = 8 + CANNOT_TARGET_AND_EXCLUDE = 9 + ILLEGAL_URL = 10 + INVALID_KEYWORD_TEXT = 11 + INVALID_DESTINATION_URL = 12 + MISSING_DESTINATION_URL_TAG = 13 + KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM = 14 + INVALID_USER_STATUS = 15 + CANNOT_ADD_CRITERIA_TYPE = 16 + CANNOT_EXCLUDE_CRITERIA_TYPE = 17 + CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE = 27 + OPERATIONS_FOR_TOO_MANY_SHOPPING_ADGROUPS = 28 + CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS = 29 + CANNOT_SET_WITHOUT_FINAL_URLS = 30 + CANNOT_CLEAR_FINAL_URLS_IF_FINAL_MOBILE_URLS_EXIST = 31 + CANNOT_CLEAR_FINAL_URLS_IF_FINAL_APP_URLS_EXIST = 32 + CANNOT_CLEAR_FINAL_URLS_IF_TRACKING_URL_TEMPLATE_EXISTS = 33 + CANNOT_CLEAR_FINAL_URLS_IF_URL_CUSTOM_PARAMETERS_EXIST = 34 + CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS = 35 + CANNOT_SET_BOTH_DESTINATION_URL_AND_TRACKING_URL_TEMPLATE = 36 + FINAL_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE = 37 + FINAL_MOBILE_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE = 38 + INVALID_LISTING_GROUP_HIERARCHY = 39 + LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN = 40 + LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE = 41 + LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS = 42 + LISTING_GROUP_ALREADY_EXISTS = 43 + LISTING_GROUP_DOES_NOT_EXIST = 44 + LISTING_GROUP_CANNOT_BE_REMOVED = 45 + INVALID_LISTING_GROUP_TYPE = 46 + LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID = 47 -class NotEmptyErrorEnum(object): - class NotEmptyError(enum.IntEnum): +class CampaignSharedSetErrorEnum(object): + class CampaignSharedSetError(enum.IntEnum): """ - Enum describing possible not empty errors. + Enum describing possible campaign shared set errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - EMPTY_LIST (int): Empty list. + SHARED_SET_ACCESS_DENIED (int): The shared set belongs to another customer and permission isn't granted. """ UNSPECIFIED = 0 UNKNOWN = 1 - EMPTY_LIST = 2 + SHARED_SET_ACCESS_DENIED = 2 class QuotaErrorEnum(object): @@ -1819,115 +1856,52 @@ class QuotaError(enum.IntEnum): RESOURCE_TEMPORARILY_EXHAUSTED = 4 -class AuthorizationErrorEnum(object): - class AuthorizationError(enum.IntEnum): - """ - Enum describing possible authorization errors. - - Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - USER_PERMISSION_DENIED (int): User doesn't have permission to access customer. - DEVELOPER_TOKEN_NOT_WHITELISTED (int): The developer token is not whitelisted. - DEVELOPER_TOKEN_PROHIBITED (int): The developer token is not allowed with the project sent in the request. - PROJECT_DISABLED (int): The Google Cloud project sent in the request does not have permission to - access the api. - AUTHORIZATION_ERROR (int): Authorization of the client failed. - ACTION_NOT_PERMITTED (int): The user does not have permission to perform this action - (e.g., ADD, UPDATE, REMOVE) on the resource or call a method. - INCOMPLETE_SIGNUP (int): Signup not complete. - """ - UNSPECIFIED = 0 - UNKNOWN = 1 - USER_PERMISSION_DENIED = 2 - DEVELOPER_TOKEN_NOT_WHITELISTED = 3 - DEVELOPER_TOKEN_PROHIBITED = 4 - PROJECT_DISABLED = 5 - AUTHORIZATION_ERROR = 6 - ACTION_NOT_PERMITTED = 7 - INCOMPLETE_SIGNUP = 8 - - -class NewResourceCreationErrorEnum(object): - class NewResourceCreationError(enum.IntEnum): - """ - Enum describing possible new resource creation errors. - - Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - CANNOT_SET_ID_FOR_ADD (int): Do not set the id field while creating new entities. - DUPLICATE_TEMP_IDS (int): Creating more than one resource with the same temp ID is not allowed. - TEMP_ID_RESOURCE_HAD_ERRORS (int): Parent object with specified temp id failed validation, so no deep - validation will be done for this child resource. - """ - UNSPECIFIED = 0 - UNKNOWN = 1 - CANNOT_SET_ID_FOR_ADD = 2 - DUPLICATE_TEMP_IDS = 3 - TEMP_ID_RESOURCE_HAD_ERRORS = 4 - - -class ResourceCountLimitExceededErrorEnum(object): - class ResourceCountLimitExceededError(enum.IntEnum): +class FeedAttributeReferenceErrorEnum(object): + class FeedAttributeReferenceError(enum.IntEnum): """ - Enum describing possible resource count limit exceeded errors. + Enum describing possible feed attribute reference errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - ACCOUNT_LIMIT (int): Indicates that this request would exceed the number of allowed resources - for the Google Ads account. The exact resource type and limit being - checked - can be inferred from accountLimitType. - CAMPAIGN_LIMIT (int): Indicates that this request would exceed the number of allowed resources - in a Campaign. The exact resource type and limit being checked can be - inferred from accountLimitType, and the numeric id of the - Campaign involved is given by enclosingId. - ADGROUP_LIMIT (int): Indicates that this request would exceed the number of allowed resources - in an ad group. The exact resource type and limit being checked can be - inferred from accountLimitType, and the numeric id of the - ad group involved is given by enclosingId. - AD_GROUP_AD_LIMIT (int): Indicates that this request would exceed the number of allowed resources - in an ad group ad. The exact resource type and limit being checked can - be inferred from accountLimitType, and the enclosingId - contains the ad group id followed by the ad id, separated by a single - comma (,). - AD_GROUP_CRITERION_LIMIT (int): Indicates that this request would exceed the number of allowed resources - in an ad group criterion. The exact resource type and limit being checked - can be inferred from accountLimitType, and the - enclosingId contains the ad group id followed by the - criterion id, separated by a single comma (,). - SHARED_SET_LIMIT (int): Indicates that this request would exceed the number of allowed resources - in this shared set. The exact resource type and limit being checked can - be inferred from accountLimitType, and the numeric id of the - shared set involved is given by enclosingId. - MATCHING_FUNCTION_LIMIT (int): Exceeds a limit related to a matching function. + CANNOT_REFERENCE_DELETED_FEED (int): A feed referenced by ID has been deleted. + INVALID_FEED_NAME (int): There is no active feed with the given name. + INVALID_FEED_ATTRIBUTE_NAME (int): There is no feed attribute in an active feed with the given name. """ UNSPECIFIED = 0 UNKNOWN = 1 - ACCOUNT_LIMIT = 2 - CAMPAIGN_LIMIT = 3 - ADGROUP_LIMIT = 4 - AD_GROUP_AD_LIMIT = 5 - AD_GROUP_CRITERION_LIMIT = 6 - SHARED_SET_LIMIT = 7 - MATCHING_FUNCTION_LIMIT = 8 + CANNOT_REFERENCE_DELETED_FEED = 2 + INVALID_FEED_NAME = 3 + INVALID_FEED_ATTRIBUTE_NAME = 4 -class SharedCriterionErrorEnum(object): - class SharedCriterionError(enum.IntEnum): +class DateErrorEnum(object): + class DateError(enum.IntEnum): """ - Enum describing possible shared criterion errors. + Enum describing possible date errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE (int): The criterion is not appropriate for the shared set type. + INVALID_FIELD_VALUES_IN_DATE (int): Given field values do not correspond to a valid date. + INVALID_FIELD_VALUES_IN_DATE_TIME (int): Given field values do not correspond to a valid date time. + INVALID_STRING_DATE (int): The string date's format should be yyyymmdd. + INVALID_STRING_DATE_TIME (int): The string date time's format should be yyyymmdd hhmmss [tz]. + EARLIER_THAN_MINIMUM_DATE (int): Date is before allowed minimum. + LATER_THAN_MAXIMUM_DATE (int): Date is after allowed maximum. + DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE (int): Date range bounds are not in order. + DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL (int): Both dates in range are null. """ UNSPECIFIED = 0 UNKNOWN = 1 - CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE = 2 + INVALID_FIELD_VALUES_IN_DATE = 2 + INVALID_FIELD_VALUES_IN_DATE_TIME = 3 + INVALID_STRING_DATE = 4 + INVALID_STRING_DATE_TIME = 6 + EARLIER_THAN_MINIMUM_DATE = 7 + LATER_THAN_MAXIMUM_DATE = 8 + DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = 9 + DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = 10 class BiddingErrorEnum(object): @@ -2005,36 +1979,160 @@ class StringFormatError(enum.IntEnum): INVALID_FORMAT = 3 -class AdxErrorEnum(object): - class AdxError(enum.IntEnum): +class AdCustomizerErrorEnum(object): + class AdCustomizerError(enum.IntEnum): """ - Enum describing possible adx errors. + Enum describing possible ad customizer errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - UNSUPPORTED_FEATURE (int): Attempt to use non-AdX feature by AdX customer. + COUNTDOWN_INVALID_DATE_FORMAT (int): Invalid date argument in countdown function. + COUNTDOWN_DATE_IN_PAST (int): Countdown end date is in the past. + COUNTDOWN_INVALID_LOCALE (int): Invalid locale string in countdown function. + COUNTDOWN_INVALID_START_DAYS_BEFORE (int): Days-before argument to countdown function is not positive. + UNKNOWN_USER_LIST (int): A user list referenced in an IF function does not exist. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + COUNTDOWN_INVALID_DATE_FORMAT = 2 + COUNTDOWN_DATE_IN_PAST = 3 + COUNTDOWN_INVALID_LOCALE = 4 + COUNTDOWN_INVALID_START_DAYS_BEFORE = 5 + UNKNOWN_USER_LIST = 6 + + +class ChangeStatusErrorEnum(object): + class ChangeStatusError(enum.IntEnum): + """ + Enum describing possible change status errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INVALID_START_DATE (int): The requested start date is invalid. + START_DATE_TOO_OLD (int): The requested start date is too old. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_START_DATE = 2 + START_DATE_TOO_OLD = 3 + + +class FieldErrorEnum(object): + class FieldError(enum.IntEnum): + """ + Enum describing possible field errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + REQUIRED (int): The required field was not present in the resource. + IMMUTABLE_FIELD (int): The field attempted to be mutated is immutable. + INVALID_VALUE (int): The field's value is invalid. + VALUE_MUST_BE_UNSET (int): The field cannot be set. + REQUIRED_NONEMPTY_LIST (int): The required repeated field was empty. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + REQUIRED = 2 + IMMUTABLE_FIELD = 3 + INVALID_VALUE = 4 + VALUE_MUST_BE_UNSET = 5 + REQUIRED_NONEMPTY_LIST = 6 + + +class SettingErrorEnum(object): + class SettingError(enum.IntEnum): + """ + Enum describing possible setting errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + SETTING_TYPE_IS_NOT_AVAILABLE (int): The campaign setting is not available for this Google Ads account. + SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN (int): The setting is not compatible with the campaign. + TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP (int): The supplied TargetingSetting contains an invalid CriterionTypeGroup. See + CriterionTypeGroup documentation for CriterionTypeGroups allowed + in Campaign or AdGroup TargetingSettings. + TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL (int): TargetingSetting must not explicitly + set any of the Demographic CriterionTypeGroups (AGE_RANGE, GENDER, + PARENT, INCOME_RANGE) to false (it's okay to not set them at all, in + which case the system will set them to true automatically). + TARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP (int): TargetingSetting cannot change any of + the Demographic CriterionTypeGroups (AGE_RANGE, GENDER, PARENT, + INCOME_RANGE) from true to false. + DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT (int): At least one feed id should be present. + DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME (int): The supplied DynamicSearchAdsSetting contains an invalid domain name. + DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME (int): The supplied DynamicSearchAdsSetting contains a subdomain name. + DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE (int): The supplied DynamicSearchAdsSetting contains an invalid language code. + TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN (int): TargetingSettings in search campaigns should not have + CriterionTypeGroup.PLACEMENT set to targetAll. + UNIVERSAL_APP_CAMPAIGN_SETTING_DUPLICATE_DESCRIPTION (int): Duplicate description in universal app setting description field. + UNIVERSAL_APP_CAMPAIGN_SETTING_DESCRIPTION_LINE_WIDTH_TOO_LONG (int): Description line width is too long in universal app setting description + field. + UNIVERSAL_APP_CAMPAIGN_SETTING_APP_ID_CANNOT_BE_MODIFIED (int): Universal app setting appId field cannot be modified for COMPLETE + campaigns. + TOO_MANY_YOUTUBE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN (int): YoutubeVideoMediaIds in universal app setting cannot exceed size limit. + TOO_MANY_IMAGE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN (int): ImageMediaIds in universal app setting cannot exceed size limit. + MEDIA_INCOMPATIBLE_FOR_UNIVERSAL_APP_CAMPAIGN (int): Media is incompatible for universal app campaign. + TOO_MANY_EXCLAMATION_MARKS (int): Too many exclamation marks in universal app campaign ad text ideas. """ UNSPECIFIED = 0 UNKNOWN = 1 - UNSUPPORTED_FEATURE = 2 + SETTING_TYPE_IS_NOT_AVAILABLE = 3 + SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN = 4 + TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP = 5 + TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL = 6 + TARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP = 7 + DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT = 8 + DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME = 9 + DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME = 10 + DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE = 11 + TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN = 12 + UNIVERSAL_APP_CAMPAIGN_SETTING_DUPLICATE_DESCRIPTION = 13 + UNIVERSAL_APP_CAMPAIGN_SETTING_DESCRIPTION_LINE_WIDTH_TOO_LONG = 14 + UNIVERSAL_APP_CAMPAIGN_SETTING_APP_ID_CANNOT_BE_MODIFIED = 15 + TOO_MANY_YOUTUBE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN = 16 + TOO_MANY_IMAGE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN = 17 + MEDIA_INCOMPATIBLE_FOR_UNIVERSAL_APP_CAMPAIGN = 18 + TOO_MANY_EXCLAMATION_MARKS = 19 -class DistinctErrorEnum(object): - class DistinctError(enum.IntEnum): +class ConversionActionErrorEnum(object): + class ConversionActionError(enum.IntEnum): """ - Enum describing possible distinct errors. + Enum describing possible conversion action errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - DUPLICATE_ELEMENT (int): Duplicate element. - DUPLICATE_TYPE (int): Duplicate type. + DUPLICATE_NAME (int): The specified conversion action name already exists. + DUPLICATE_APP_ID (int): Another conversion action with the specified app id already exists. + TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD (int): Android first open action conflicts with Google play codeless download + action tracking the same app. + BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION (int): Android first open action conflicts with Google play codeless download + action tracking the same app. + DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED (int): The attribution model cannot be set to DATA_DRIVEN because a data-driven + model has never been generated. + DATA_DRIVEN_MODEL_EXPIRED (int): The attribution model cannot be set to DATA_DRIVEN because the + data-driven model is expired. + DATA_DRIVEN_MODEL_STALE (int): The attribution model cannot be set to DATA_DRIVEN because the + data-driven model is stale. + DATA_DRIVEN_MODEL_UNKNOWN (int): The attribution model cannot be set to DATA_DRIVEN because the + data-driven model is unavailable or the conversion action was newly + added. """ UNSPECIFIED = 0 UNKNOWN = 1 - DUPLICATE_ELEMENT = 2 - DUPLICATE_TYPE = 3 + DUPLICATE_NAME = 2 + DUPLICATE_APP_ID = 3 + TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD = 4 + BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION = 5 + DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED = 6 + DATA_DRIVEN_MODEL_EXPIRED = 7 + DATA_DRIVEN_MODEL_STALE = 8 + DATA_DRIVEN_MODEL_UNKNOWN = 9 class UrlFieldErrorEnum(object): @@ -2151,85 +2249,37 @@ class UrlFieldError(enum.IntEnum): INVALID_URL_ID = 49 -class AdGroupBidModifierErrorEnum(object): - class AdGroupBidModifierError(enum.IntEnum): - """ - Enum describing possible ad group bid modifier errors. - - Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - CRITERION_ID_NOT_SUPPORTED (int): The criterion ID does not support bid modification. - CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER (int): Cannot override the bid modifier for the given criterion ID if the parent - campaign is opted out of the same criterion. - """ - UNSPECIFIED = 0 - UNKNOWN = 1 - CRITERION_ID_NOT_SUPPORTED = 2 - CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER = 3 - - -class StringLengthErrorEnum(object): - class StringLengthError(enum.IntEnum): - """ - Enum describing possible string length errors. - - Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - TOO_SHORT (int): Too short. - TOO_LONG (int): Too long. - """ - UNSPECIFIED = 0 - UNKNOWN = 1 - TOO_SHORT = 2 - TOO_LONG = 3 - - -class AdCustomizerErrorEnum(object): - class AdCustomizerError(enum.IntEnum): +class PolicyFindingErrorEnum(object): + class PolicyFindingError(enum.IntEnum): """ - Enum describing possible ad customizer errors. + Enum describing possible policy finding errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - COUNTDOWN_INVALID_DATE_FORMAT (int): Invalid date argument in countdown function. - COUNTDOWN_DATE_IN_PAST (int): Countdown end date is in the past. - COUNTDOWN_INVALID_LOCALE (int): Invalid locale string in countdown function. - COUNTDOWN_INVALID_START_DAYS_BEFORE (int): Days-before argument to countdown function is not positive. - UNKNOWN_USER_LIST (int): A user list referenced in an IF function does not exist. + POLICY_FINDING (int): The resource has been disapproved since the policy summary includes + policy topics of type PROHIBITED. + POLICY_TOPIC_NOT_FOUND (int): The given policy topic does not exist. """ UNSPECIFIED = 0 UNKNOWN = 1 - COUNTDOWN_INVALID_DATE_FORMAT = 2 - COUNTDOWN_DATE_IN_PAST = 3 - COUNTDOWN_INVALID_LOCALE = 4 - COUNTDOWN_INVALID_START_DAYS_BEFORE = 5 - UNKNOWN_USER_LIST = 6 + POLICY_FINDING = 2 + POLICY_TOPIC_NOT_FOUND = 3 -class DateRangeErrorEnum(object): - class DateRangeError(enum.IntEnum): +class ResourceAccessDeniedErrorEnum(object): + class ResourceAccessDeniedError(enum.IntEnum): """ - Enum describing possible date range errors. + Enum describing possible resource access denied errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - INVALID_DATE (int): Invalid date. - START_DATE_AFTER_END_DATE (int): The start date was after the end date. - CANNOT_SET_DATE_TO_PAST (int): Cannot set date to past time - AFTER_MAXIMUM_ALLOWABLE_DATE (int): A date was used that is past the system \"last\" date. - CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED (int): Trying to change start date on a campaign that has started. + WRITE_ACCESS_DENIED (int): User did not have write access. """ UNSPECIFIED = 0 UNKNOWN = 1 - INVALID_DATE = 2 - START_DATE_AFTER_END_DATE = 3 - CANNOT_SET_DATE_TO_PAST = 4 - AFTER_MAXIMUM_ALLOWABLE_DATE = 5 - CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 6 + WRITE_ACCESS_DENIED = 3 class ImageErrorEnum(object): @@ -2281,374 +2331,861 @@ class ImageError(enum.IntEnum): """ UNSPECIFIED = 0 UNKNOWN = 1 - INVALID_IMAGE = 2 - STORAGE_ERROR = 3 - BAD_REQUEST = 4 - UNEXPECTED_SIZE = 5 - ANIMATED_NOT_ALLOWED = 6 - ANIMATION_TOO_LONG = 7 - SERVER_ERROR = 8 - CMYK_JPEG_NOT_ALLOWED = 9 - FLASH_NOT_ALLOWED = 10 - FLASH_WITHOUT_CLICKTAG = 11 - FLASH_ERROR_AFTER_FIXING_CLICK_TAG = 12 - ANIMATED_VISUAL_EFFECT = 13 - FLASH_ERROR = 14 - LAYOUT_PROBLEM = 15 - PROBLEM_READING_IMAGE_FILE = 16 - ERROR_STORING_IMAGE = 17 - ASPECT_RATIO_NOT_ALLOWED = 18 - FLASH_HAS_NETWORK_OBJECTS = 19 - FLASH_HAS_NETWORK_METHODS = 20 - FLASH_HAS_URL = 21 - FLASH_HAS_MOUSE_TRACKING = 22 - FLASH_HAS_RANDOM_NUM = 23 - FLASH_SELF_TARGETS = 24 - FLASH_BAD_GETURL_TARGET = 25 - FLASH_VERSION_NOT_SUPPORTED = 26 - FLASH_WITHOUT_HARD_CODED_CLICK_URL = 27 - INVALID_FLASH_FILE = 28 - FAILED_TO_FIX_CLICK_TAG_IN_FLASH = 29 - FLASH_ACCESSES_NETWORK_RESOURCES = 30 - FLASH_EXTERNAL_JS_CALL = 31 - FLASH_EXTERNAL_FS_CALL = 32 - FILE_TOO_LARGE = 33 - IMAGE_DATA_TOO_LARGE = 34 - IMAGE_PROCESSING_ERROR = 35 - IMAGE_TOO_SMALL = 36 - INVALID_INPUT = 37 - PROBLEM_READING_FILE = 38 + INVALID_IMAGE = 2 + STORAGE_ERROR = 3 + BAD_REQUEST = 4 + UNEXPECTED_SIZE = 5 + ANIMATED_NOT_ALLOWED = 6 + ANIMATION_TOO_LONG = 7 + SERVER_ERROR = 8 + CMYK_JPEG_NOT_ALLOWED = 9 + FLASH_NOT_ALLOWED = 10 + FLASH_WITHOUT_CLICKTAG = 11 + FLASH_ERROR_AFTER_FIXING_CLICK_TAG = 12 + ANIMATED_VISUAL_EFFECT = 13 + FLASH_ERROR = 14 + LAYOUT_PROBLEM = 15 + PROBLEM_READING_IMAGE_FILE = 16 + ERROR_STORING_IMAGE = 17 + ASPECT_RATIO_NOT_ALLOWED = 18 + FLASH_HAS_NETWORK_OBJECTS = 19 + FLASH_HAS_NETWORK_METHODS = 20 + FLASH_HAS_URL = 21 + FLASH_HAS_MOUSE_TRACKING = 22 + FLASH_HAS_RANDOM_NUM = 23 + FLASH_SELF_TARGETS = 24 + FLASH_BAD_GETURL_TARGET = 25 + FLASH_VERSION_NOT_SUPPORTED = 26 + FLASH_WITHOUT_HARD_CODED_CLICK_URL = 27 + INVALID_FLASH_FILE = 28 + FAILED_TO_FIX_CLICK_TAG_IN_FLASH = 29 + FLASH_ACCESSES_NETWORK_RESOURCES = 30 + FLASH_EXTERNAL_JS_CALL = 31 + FLASH_EXTERNAL_FS_CALL = 32 + FILE_TOO_LARGE = 33 + IMAGE_DATA_TOO_LARGE = 34 + IMAGE_PROCESSING_ERROR = 35 + IMAGE_TOO_SMALL = 36 + INVALID_INPUT = 37 + PROBLEM_READING_FILE = 38 + + +class AdSharingErrorEnum(object): + class AdSharingError(enum.IntEnum): + """ + Enum describing possible ad sharing errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + AD_GROUP_ALREADY_CONTAINS_AD (int): Error resulting in attempting to add an Ad to an AdGroup that already + contains the Ad. + INCOMPATIBLE_AD_UNDER_AD_GROUP (int): Ad is not compatible with the AdGroup it is being shared with. + CANNOT_SHARE_INACTIVE_AD (int): Cannot add AdGroupAd on inactive Ad. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AD_GROUP_ALREADY_CONTAINS_AD = 2 + INCOMPATIBLE_AD_UNDER_AD_GROUP = 3 + CANNOT_SHARE_INACTIVE_AD = 4 + + +class DistinctErrorEnum(object): + class DistinctError(enum.IntEnum): + """ + Enum describing possible distinct errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + DUPLICATE_ELEMENT (int): Duplicate element. + DUPLICATE_TYPE (int): Duplicate type. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DUPLICATE_ELEMENT = 2 + DUPLICATE_TYPE = 3 + + +class InternalErrorEnum(object): + class InternalError(enum.IntEnum): + """ + Enum describing possible internal errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INTERNAL_ERROR (int): Google Ads API encountered unexpected internal error. + ERROR_CODE_NOT_PUBLISHED (int): The intended error code doesn't exist in any API version. This will be + fixed by adding a new error code as soon as possible. + TRANSIENT_ERROR (int): Google Ads API encountered an unexpected transient error. The user + should retry their request in these cases. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INTERNAL_ERROR = 2 + ERROR_CODE_NOT_PUBLISHED = 3 + TRANSIENT_ERROR = 4 + + +class ResourceCountLimitExceededErrorEnum(object): + class ResourceCountLimitExceededError(enum.IntEnum): + """ + Enum describing possible resource count limit exceeded errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + ACCOUNT_LIMIT (int): Indicates that this request would exceed the number of allowed resources + for the Google Ads account. The exact resource type and limit being + checked + can be inferred from accountLimitType. + CAMPAIGN_LIMIT (int): Indicates that this request would exceed the number of allowed resources + in a Campaign. The exact resource type and limit being checked can be + inferred from accountLimitType, and the numeric id of the + Campaign involved is given by enclosingId. + ADGROUP_LIMIT (int): Indicates that this request would exceed the number of allowed resources + in an ad group. The exact resource type and limit being checked can be + inferred from accountLimitType, and the numeric id of the + ad group involved is given by enclosingId. + AD_GROUP_AD_LIMIT (int): Indicates that this request would exceed the number of allowed resources + in an ad group ad. The exact resource type and limit being checked can + be inferred from accountLimitType, and the enclosingId + contains the ad group id followed by the ad id, separated by a single + comma (,). + AD_GROUP_CRITERION_LIMIT (int): Indicates that this request would exceed the number of allowed resources + in an ad group criterion. The exact resource type and limit being checked + can be inferred from accountLimitType, and the + enclosingId contains the ad group id followed by the + criterion id, separated by a single comma (,). + SHARED_SET_LIMIT (int): Indicates that this request would exceed the number of allowed resources + in this shared set. The exact resource type and limit being checked can + be inferred from accountLimitType, and the numeric id of the + shared set involved is given by enclosingId. + MATCHING_FUNCTION_LIMIT (int): Exceeds a limit related to a matching function. + RESPONSE_ROW_LIMIT_EXCEEDED (int): The response for this request would exceed the maximum number of rows + that can be returned. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ACCOUNT_LIMIT = 2 + CAMPAIGN_LIMIT = 3 + ADGROUP_LIMIT = 4 + AD_GROUP_AD_LIMIT = 5 + AD_GROUP_CRITERION_LIMIT = 6 + SHARED_SET_LIMIT = 7 + MATCHING_FUNCTION_LIMIT = 8 + RESPONSE_ROW_LIMIT_EXCEEDED = 9 + + +class AccountBudgetProposalErrorEnum(object): + class AccountBudgetProposalError(enum.IntEnum): + """ + Enum describing possible account budget proposal errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + FIELD_MASK_NOT_ALLOWED (int): The field mask must be empty for create/end/remove proposals. + IMMUTABLE_FIELD (int): The field cannot be set because of the proposal type. + REQUIRED_FIELD_MISSING (int): The field is required because of the proposal type. + CANNOT_CANCEL_APPROVED_PROPOSAL (int): Proposals that have been approved cannot be cancelled. + CANNOT_REMOVE_UNAPPROVED_BUDGET (int): Budgets that haven't been approved cannot be removed. + CANNOT_REMOVE_RUNNING_BUDGET (int): Budgets that are currently running cannot be removed. + CANNOT_END_UNAPPROVED_BUDGET (int): Budgets that haven't been approved cannot be truncated. + CANNOT_END_INACTIVE_BUDGET (int): Only budgets that are currently running can be truncated. + BUDGET_NAME_REQUIRED (int): All budgets must have names. + CANNOT_UPDATE_OLD_BUDGET (int): Expired budgets cannot be edited after a sufficient amount of time has + passed. + CANNOT_END_IN_PAST (int): It is not permissible a propose a new budget that ends in the past. + CANNOT_EXTEND_END_TIME (int): An expired budget cannot be extended to overlap with the running budget. + PURCHASE_ORDER_NUMBER_REQUIRED (int): A purchase order number is required. + PENDING_UPDATE_PROPOSAL_EXISTS (int): Budgets that have a pending update cannot be updated. + MULTIPLE_BUDGETS_NOT_ALLOWED_FOR_UNAPPROVED_BILLING_SETUP (int): Cannot propose more than one budget when the corresponding billing setup + hasn't been approved. + CANNOT_UPDATE_START_TIME_FOR_STARTED_BUDGET (int): Cannot update the start time of a budget that has already started. + SPENDING_LIMIT_LOWER_THAN_ACCRUED_COST_NOT_ALLOWED (int): Cannot update the spending limit of a budget with an amount lower than + what has already been spent. + UPDATE_IS_NO_OP (int): Cannot propose a budget update without actually changing any fields. + END_TIME_MUST_FOLLOW_START_TIME (int): The end time must come after the start time. + BUDGET_DATE_RANGE_INCOMPATIBLE_WITH_BILLING_SETUP (int): The budget's date range must fall within the date range of its billing + setup. + NOT_AUTHORIZED (int): The user is not authorized to mutate budgets for the given billing setup. + INVALID_BILLING_SETUP (int): Mutates are not allowed for the given billing setup. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + FIELD_MASK_NOT_ALLOWED = 2 + IMMUTABLE_FIELD = 3 + REQUIRED_FIELD_MISSING = 4 + CANNOT_CANCEL_APPROVED_PROPOSAL = 5 + CANNOT_REMOVE_UNAPPROVED_BUDGET = 6 + CANNOT_REMOVE_RUNNING_BUDGET = 7 + CANNOT_END_UNAPPROVED_BUDGET = 8 + CANNOT_END_INACTIVE_BUDGET = 9 + BUDGET_NAME_REQUIRED = 10 + CANNOT_UPDATE_OLD_BUDGET = 11 + CANNOT_END_IN_PAST = 12 + CANNOT_EXTEND_END_TIME = 13 + PURCHASE_ORDER_NUMBER_REQUIRED = 14 + PENDING_UPDATE_PROPOSAL_EXISTS = 15 + MULTIPLE_BUDGETS_NOT_ALLOWED_FOR_UNAPPROVED_BILLING_SETUP = 16 + CANNOT_UPDATE_START_TIME_FOR_STARTED_BUDGET = 17 + SPENDING_LIMIT_LOWER_THAN_ACCRUED_COST_NOT_ALLOWED = 18 + UPDATE_IS_NO_OP = 19 + END_TIME_MUST_FOLLOW_START_TIME = 20 + BUDGET_DATE_RANGE_INCOMPATIBLE_WITH_BILLING_SETUP = 21 + NOT_AUTHORIZED = 22 + INVALID_BILLING_SETUP = 23 + + +class AdErrorEnum(object): + class AdError(enum.IntEnum): + """ + Enum describing possible ad errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE (int): Ad customizers are not supported for ad type. + APPROXIMATELY_TOO_LONG (int): Estimating character sizes the string is too long. + APPROXIMATELY_TOO_SHORT (int): Estimating character sizes the string is too short. + BAD_SNIPPET (int): There is a problem with the snippet. + CANNOT_MODIFY_AD (int): Cannot modify an ad. + CANNOT_SET_BUSINESS_NAME_IF_URL_SET (int): business name and url cannot be set at the same time + CANNOT_SET_FIELD (int): The specified field is incompatible with this ad's type or settings. + CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET (int): Cannot set field when originAdId is set. + CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING (int): Cannot set field when an existing ad id is set for sharing. + CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE (int): Cannot set allowFlexibleColor false if no color is provided by user. + CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING (int): When user select native, no color control is allowed because we will + always respect publisher color for native format serving. + CANNOT_SET_URL (int): Cannot specify a url for the ad type + CANNOT_SET_WITHOUT_FINAL_URLS (int): Cannot specify a tracking or mobile url without also setting final urls + CANNOT_SET_WITH_FINAL_URLS (int): Cannot specify a legacy url and a final url simultaneously + CANNOT_SET_WITH_TRACKING_URL_TEMPLATE (int): Cannot specify a legacy url and a tracking url template simultaneously in + a DSA. + CANNOT_SET_WITH_URL_DATA (int): Cannot specify a urls in UrlData and in template fields simultaneously. + CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR (int): This operator cannot be used with a subclass of Ad. + CUSTOMER_NOT_APPROVED_MOBILEADS (int): Customer is not approved for mobile ads. + CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS (int): Customer is not approved for 3PAS richmedia ads. + CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS (int): Customer is not approved for 3PAS redirect richmedia (Ad Exchange) ads. + CUSTOMER_NOT_ELIGIBLE (int): Not an eligible customer + CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL (int): Customer is not eligible for updating beacon url + DIMENSION_ALREADY_IN_UNION (int): There already exists an ad with the same dimensions in the union. + DIMENSION_MUST_BE_SET (int): Ad's dimension must be set before setting union dimension. + DIMENSION_NOT_IN_UNION (int): Ad's dimension must be included in the union dimensions. + DISPLAY_URL_CANNOT_BE_SPECIFIED (int): Display Url cannot be specified (applies to Ad Exchange Ads) + DOMESTIC_PHONE_NUMBER_FORMAT (int): Telephone number contains invalid characters or invalid format. Please + re-enter your number using digits (0-9), dashes (-), and parentheses + only. + EMERGENCY_PHONE_NUMBER (int): Emergency telephone numbers are not allowed. Please enter a valid + domestic phone number to connect customers to your business. + EMPTY_FIELD (int): A required field was not specified or is an empty string. + FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID (int): A feed attribute referenced in an ad customizer tag is not in the ad + customizer mapping for the feed. + FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH (int): The ad customizer field mapping for the feed attribute does not match the + expected field type. + ILLEGAL_AD_CUSTOMIZER_TAG_USE (int): The use of ad customizer tags in the ad text is disallowed. Details in + trigger. + ILLEGAL_TAG_USE (int): Tags of the form {PH_x}, where x is a number, are disallowed in ad text. + INCONSISTENT_DIMENSIONS (int): The dimensions of the ad are specified or derived in multiple ways and + are not consistent. + INCONSISTENT_STATUS_IN_TEMPLATE_UNION (int): The status cannot differ among template ads of the same union. + INCORRECT_LENGTH (int): The length of the string is not valid. + INELIGIBLE_FOR_UPGRADE (int): The ad is ineligible for upgrade. + INVALID_AD_ADDRESS_CAMPAIGN_TARGET (int): User cannot create mobile ad for countries targeted in specified + campaign. + INVALID_AD_TYPE (int): Invalid Ad type. A specific type of Ad is required. + INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE (int): Headline, description or phone cannot be present when creating mobile + image ad. + INVALID_ATTRIBUTES_FOR_MOBILE_TEXT (int): Image cannot be present when creating mobile text ad. + INVALID_CALL_TO_ACTION_TEXT (int): Invalid call to action text. + INVALID_CHARACTER_FOR_URL (int): Invalid character in URL. + INVALID_COUNTRY_CODE (int): Creative's country code is not valid. + INVALID_DSA_URL_TAG (int): Invalid use of Dynamic Search Ads tags ({lpurl} etc.) + INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG (int): Invalid use of Expanded Dynamic Search Ads tags ({lpurl} etc.) + INVALID_INPUT (int): An input error whose real reason was not properly mapped (should not + happen). + INVALID_MARKUP_LANGUAGE (int): An invalid markup language was entered. + INVALID_MOBILE_CARRIER (int): An invalid mobile carrier was entered. + INVALID_MOBILE_CARRIER_TARGET (int): Specified mobile carriers target a country not targeted by the campaign. + INVALID_NUMBER_OF_ELEMENTS (int): Wrong number of elements for given element type + INVALID_PHONE_NUMBER_FORMAT (int): The format of the telephone number is incorrect. Please re-enter the + number using the correct format. + INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID (int): The certified vendor format id is incorrect. + INVALID_TEMPLATE_DATA (int): The template ad data contains validation errors. + INVALID_TEMPLATE_ELEMENT_FIELD_TYPE (int): The template field doesn't have have the correct type. + INVALID_TEMPLATE_ID (int): Invalid template id. + LINE_TOO_WIDE (int): After substituting replacement strings, the line is too wide. + MISSING_AD_CUSTOMIZER_MAPPING (int): The feed referenced must have ad customizer mapping to be used in a + customizer tag. + MISSING_ADDRESS_COMPONENT (int): Missing address component in template element address field. + MISSING_ADVERTISEMENT_NAME (int): An ad name must be entered. + MISSING_BUSINESS_NAME (int): Business name must be entered. + MISSING_DESCRIPTION1 (int): Description (line 2) must be entered. + MISSING_DESCRIPTION2 (int): Description (line 3) must be entered. + MISSING_DESTINATION_URL_TAG (int): The destination url must contain at least one tag (e.g. {lpurl}) + MISSING_LANDING_PAGE_URL_TAG (int): The tracking url template of ExpandedDynamicSearchAd must contain at + least one tag. (e.g. {lpurl}) + MISSING_DIMENSION (int): A valid dimension must be specified for this ad. + MISSING_DISPLAY_URL (int): A display URL must be entered. + MISSING_HEADLINE (int): Headline must be entered. + MISSING_HEIGHT (int): A height must be entered. + MISSING_IMAGE (int): An image must be entered. + MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS (int): Marketing image or product videos are required. + MISSING_MARKUP_LANGUAGES (int): The markup language in which your site is written must be entered. + MISSING_MOBILE_CARRIER (int): A mobile carrier must be entered. + MISSING_PHONE (int): Phone number must be entered. + MISSING_REQUIRED_TEMPLATE_FIELDS (int): Missing required template fields + MISSING_TEMPLATE_FIELD_VALUE (int): Missing a required field value + MISSING_TEXT (int): The ad must have text. + MISSING_VISIBLE_URL (int): A visible URL must be entered. + MISSING_WIDTH (int): A width must be entered. + MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED (int): Only 1 feed can be used as the source of ad customizer substitutions in a + single ad. + MUST_USE_TEMP_AD_UNION_ID_ON_ADD (int): TempAdUnionId must be use when adding template ads. + TOO_LONG (int): The string has too many characters. + TOO_SHORT (int): The string has too few characters. + UNION_DIMENSIONS_CANNOT_CHANGE (int): Ad union dimensions cannot change for saved ads. + UNKNOWN_ADDRESS_COMPONENT (int): Address component is not {country, lat, lng}. + UNKNOWN_FIELD_NAME (int): Unknown unique field name + UNKNOWN_UNIQUE_NAME (int): Unknown unique name (template element type specifier) + UNSUPPORTED_DIMENSIONS (int): Unsupported ad dimension + URL_INVALID_SCHEME (int): URL starts with an invalid scheme. + URL_INVALID_TOP_LEVEL_DOMAIN (int): URL ends with an invalid top-level domain name. + URL_MALFORMED (int): URL contains illegal characters. + URL_NO_HOST (int): URL must contain a host name. + URL_NOT_EQUIVALENT (int): URL not equivalent during upgrade. + URL_HOST_NAME_TOO_LONG (int): URL host name too long to be stored as visible URL (applies to Ad + Exchange ads) + URL_NO_SCHEME (int): URL must start with a scheme. + URL_NO_TOP_LEVEL_DOMAIN (int): URL should end in a valid domain extension, such as .com or .net. + URL_PATH_NOT_ALLOWED (int): URL must not end with a path. + URL_PORT_NOT_ALLOWED (int): URL must not specify a port. + URL_QUERY_NOT_ALLOWED (int): URL must not contain a query. + URL_SCHEME_BEFORE_DSA_TAG (int): A url scheme is not allowed in front of tag in dest url (e.g. + http://{lpurl}) + URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG (int): A url scheme is not allowed in front of tag in tracking url template + (e.g. http://{lpurl}) + USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE (int): The user does not have permissions to create a template ad for the given + template. + INCONSISTENT_EXPANDABLE_SETTINGS (int): Expandable setting is inconsistent/wrong. For example, an AdX ad is + invalid if it has a expandable vendor format but no expanding directions + specified, or expanding directions is specified, but the vendor format is + not expandable. + INVALID_FORMAT (int): Format is invalid + INVALID_FIELD_TEXT (int): The text of this field did not match a pattern of allowed values. + ELEMENT_NOT_PRESENT (int): Template element is mising + IMAGE_ERROR (int): Error occurred during image processing + VALUE_NOT_IN_RANGE (int): The value is not within the valid range + FIELD_NOT_PRESENT (int): Template element field is not present + ADDRESS_NOT_COMPLETE (int): Address is incomplete + ADDRESS_INVALID (int): Invalid address + VIDEO_RETRIEVAL_ERROR (int): Error retrieving specified video + AUDIO_ERROR (int): Error processing audio + INVALID_YOUTUBE_DISPLAY_URL (int): Display URL is incorrect for YouTube PYV ads + TOO_MANY_PRODUCT_IMAGES (int): Too many product Images in GmailAd + TOO_MANY_PRODUCT_VIDEOS (int): Too many product Videos in GmailAd + INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE (int): The device preference is not compatible with the ad type + CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY (int): Call tracking is not supported for specified country. + CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED (int): Carrier specific short number is not allowed. + DISALLOWED_NUMBER_TYPE (int): Specified phone number type is disallowed. + PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY (int): Phone number not supported for country. + PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY (int): Phone number not supported with call tracking enabled for country. + PREMIUM_RATE_NUMBER_NOT_ALLOWED (int): Premium rate phone number is not allowed. + VANITY_PHONE_NUMBER_NOT_ALLOWED (int): Vanity phone number is not allowed. + INVALID_CALL_CONVERSION_TYPE_ID (int): Invalid call conversion type id. + CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID (int): Cannot disable call conversion and set conversion type id. + CANNOT_SET_PATH2_WITHOUT_PATH1 (int): Cannot set path2 without path1. + MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME (int): Missing domain name in campaign setting when adding expanded dynamic + search ad. + INCOMPATIBLE_WITH_RESTRICTION_TYPE (int): The associated ad is not compatible with restriction type. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE = 2 + APPROXIMATELY_TOO_LONG = 3 + APPROXIMATELY_TOO_SHORT = 4 + BAD_SNIPPET = 5 + CANNOT_MODIFY_AD = 6 + CANNOT_SET_BUSINESS_NAME_IF_URL_SET = 7 + CANNOT_SET_FIELD = 8 + CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET = 9 + CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING = 10 + CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE = 11 + CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING = 12 + CANNOT_SET_URL = 13 + CANNOT_SET_WITHOUT_FINAL_URLS = 14 + CANNOT_SET_WITH_FINAL_URLS = 15 + CANNOT_SET_WITH_TRACKING_URL_TEMPLATE = 16 + CANNOT_SET_WITH_URL_DATA = 17 + CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR = 18 + CUSTOMER_NOT_APPROVED_MOBILEADS = 19 + CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS = 20 + CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS = 21 + CUSTOMER_NOT_ELIGIBLE = 22 + CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL = 23 + DIMENSION_ALREADY_IN_UNION = 24 + DIMENSION_MUST_BE_SET = 25 + DIMENSION_NOT_IN_UNION = 26 + DISPLAY_URL_CANNOT_BE_SPECIFIED = 27 + DOMESTIC_PHONE_NUMBER_FORMAT = 28 + EMERGENCY_PHONE_NUMBER = 29 + EMPTY_FIELD = 30 + FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID = 31 + FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH = 32 + ILLEGAL_AD_CUSTOMIZER_TAG_USE = 33 + ILLEGAL_TAG_USE = 34 + INCONSISTENT_DIMENSIONS = 35 + INCONSISTENT_STATUS_IN_TEMPLATE_UNION = 36 + INCORRECT_LENGTH = 37 + INELIGIBLE_FOR_UPGRADE = 38 + INVALID_AD_ADDRESS_CAMPAIGN_TARGET = 39 + INVALID_AD_TYPE = 40 + INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE = 41 + INVALID_ATTRIBUTES_FOR_MOBILE_TEXT = 42 + INVALID_CALL_TO_ACTION_TEXT = 43 + INVALID_CHARACTER_FOR_URL = 44 + INVALID_COUNTRY_CODE = 45 + INVALID_DSA_URL_TAG = 46 + INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 47 + INVALID_INPUT = 48 + INVALID_MARKUP_LANGUAGE = 49 + INVALID_MOBILE_CARRIER = 50 + INVALID_MOBILE_CARRIER_TARGET = 51 + INVALID_NUMBER_OF_ELEMENTS = 52 + INVALID_PHONE_NUMBER_FORMAT = 53 + INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID = 54 + INVALID_TEMPLATE_DATA = 55 + INVALID_TEMPLATE_ELEMENT_FIELD_TYPE = 56 + INVALID_TEMPLATE_ID = 57 + LINE_TOO_WIDE = 58 + MISSING_AD_CUSTOMIZER_MAPPING = 59 + MISSING_ADDRESS_COMPONENT = 60 + MISSING_ADVERTISEMENT_NAME = 61 + MISSING_BUSINESS_NAME = 62 + MISSING_DESCRIPTION1 = 63 + MISSING_DESCRIPTION2 = 64 + MISSING_DESTINATION_URL_TAG = 65 + MISSING_LANDING_PAGE_URL_TAG = 66 + MISSING_DIMENSION = 67 + MISSING_DISPLAY_URL = 68 + MISSING_HEADLINE = 69 + MISSING_HEIGHT = 70 + MISSING_IMAGE = 71 + MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS = 72 + MISSING_MARKUP_LANGUAGES = 73 + MISSING_MOBILE_CARRIER = 74 + MISSING_PHONE = 75 + MISSING_REQUIRED_TEMPLATE_FIELDS = 76 + MISSING_TEMPLATE_FIELD_VALUE = 77 + MISSING_TEXT = 78 + MISSING_VISIBLE_URL = 79 + MISSING_WIDTH = 80 + MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED = 81 + MUST_USE_TEMP_AD_UNION_ID_ON_ADD = 82 + TOO_LONG = 83 + TOO_SHORT = 84 + UNION_DIMENSIONS_CANNOT_CHANGE = 85 + UNKNOWN_ADDRESS_COMPONENT = 86 + UNKNOWN_FIELD_NAME = 87 + UNKNOWN_UNIQUE_NAME = 88 + UNSUPPORTED_DIMENSIONS = 89 + URL_INVALID_SCHEME = 90 + URL_INVALID_TOP_LEVEL_DOMAIN = 91 + URL_MALFORMED = 92 + URL_NO_HOST = 93 + URL_NOT_EQUIVALENT = 94 + URL_HOST_NAME_TOO_LONG = 95 + URL_NO_SCHEME = 96 + URL_NO_TOP_LEVEL_DOMAIN = 97 + URL_PATH_NOT_ALLOWED = 98 + URL_PORT_NOT_ALLOWED = 99 + URL_QUERY_NOT_ALLOWED = 100 + URL_SCHEME_BEFORE_DSA_TAG = 101 + URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 102 + USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE = 103 + INCONSISTENT_EXPANDABLE_SETTINGS = 104 + INVALID_FORMAT = 105 + INVALID_FIELD_TEXT = 106 + ELEMENT_NOT_PRESENT = 107 + IMAGE_ERROR = 108 + VALUE_NOT_IN_RANGE = 109 + FIELD_NOT_PRESENT = 110 + ADDRESS_NOT_COMPLETE = 111 + ADDRESS_INVALID = 112 + VIDEO_RETRIEVAL_ERROR = 113 + AUDIO_ERROR = 114 + INVALID_YOUTUBE_DISPLAY_URL = 115 + TOO_MANY_PRODUCT_IMAGES = 116 + TOO_MANY_PRODUCT_VIDEOS = 117 + INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE = 118 + CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 119 + CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 120 + DISALLOWED_NUMBER_TYPE = 121 + PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 122 + PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 123 + PREMIUM_RATE_NUMBER_NOT_ALLOWED = 124 + VANITY_PHONE_NUMBER_NOT_ALLOWED = 125 + INVALID_CALL_CONVERSION_TYPE_ID = 126 + CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID = 127 + CANNOT_SET_PATH2_WITHOUT_PATH1 = 128 + MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME = 129 + INCOMPATIBLE_WITH_RESTRICTION_TYPE = 130 -class CollectionSizeErrorEnum(object): - class CollectionSizeError(enum.IntEnum): +class AdGroupAdErrorEnum(object): + class AdGroupAdError(enum.IntEnum): """ - Enum describing possible collection size errors. + Enum describing possible ad group ad errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - TOO_FEW (int): Too few. - TOO_MANY (int): Too many. + AD_GROUP_AD_LABEL_DOES_NOT_EXIST (int): No link found between the adgroup ad and the label. + AD_GROUP_AD_LABEL_ALREADY_EXISTS (int): The label has already been attached to the adgroup ad. + AD_NOT_UNDER_ADGROUP (int): The specified ad was not found in the adgroup + CANNOT_OPERATE_ON_REMOVED_ADGROUPAD (int): Removed ads may not be modified + CANNOT_CREATE_DEPRECATED_ADS (int): An ad of this type is deprecated and cannot be created. Only deletions + are permitted. + CANNOT_CREATE_TEXT_ADS (int): Text ads are deprecated and cannot be created. Use expanded text ads + instead. + EMPTY_FIELD (int): A required field was not specified or is an empty string. + RESOURCE_REFERENCED_IN_MULTIPLE_OPS (int): An ad may only be modified once per call """ UNSPECIFIED = 0 UNKNOWN = 1 - TOO_FEW = 2 - TOO_MANY = 3 + AD_GROUP_AD_LABEL_DOES_NOT_EXIST = 2 + AD_GROUP_AD_LABEL_ALREADY_EXISTS = 3 + AD_NOT_UNDER_ADGROUP = 4 + CANNOT_OPERATE_ON_REMOVED_ADGROUPAD = 5 + CANNOT_CREATE_DEPRECATED_ADS = 6 + CANNOT_CREATE_TEXT_ADS = 7 + EMPTY_FIELD = 8 + RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 9 -class MediaErrorEnum(object): - class MediaError(enum.IntEnum): +class AuthenticationErrorEnum(object): + class AuthenticationError(enum.IntEnum): """ - Enum describing possible media errors. + Enum describing possible authentication errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - CANNOT_ADD_STANDARD_ICON (int): Cannot add a standard icon type - CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES (int): May only select Standard Icons alone - CANNOT_SPECIFY_MEDIA_ID_AND_DATA (int): Image contains both a media ID and media data. - DUPLICATE_MEDIA (int): A media with given type and reference id already exists - EMPTY_FIELD (int): A required field was not specified or is an empty string. - RESOURCE_REFERENCED_IN_MULTIPLE_OPS (int): A media may only be modified once per call - FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE (int): Field is not supported for the media sub type. - INVALID_MEDIA_ID (int): The media id is invalid - INVALID_MEDIA_SUB_TYPE (int): The media subtype is invalid - INVALID_MEDIA_TYPE (int): The media type is invalid - INVALID_MIME_TYPE (int): The mimetype is invalid - INVALID_REFERENCE_ID (int): The media reference id is invalid - INVALID_YOU_TUBE_ID (int): The YouTube video id is invalid - MEDIA_FAILED_TRANSCODING (int): Media has failed transcoding - MEDIA_NOT_TRANSCODED (int): Media has not been transcoded - MEDIA_TYPE_DOES_NOT_MATCH_OBJECT_TYPE (int): The MediaType does not match the actual media object's type - NO_FIELDS_SPECIFIED (int): None of the fields have been specified. - NULL_REFERENCE_ID_AND_MEDIA_ID (int): One of reference Id or media Id must be specified - TOO_LONG (int): The string has too many characters. - UNSUPPORTED_OPERATION (int): The specified operation is not supported. Only ADD, SET, and REMOVE are - supported - UNSUPPORTED_TYPE (int): The specified type is not supported. - YOU_TUBE_SERVICE_UNAVAILABLE (int): YouTube is unavailable for requesting video data. - YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION (int): The YouTube video has a non positive duration. - YOU_TUBE_VIDEO_NOT_FOUND (int): The YouTube video id is syntactically valid but the video was not found. + AUTHENTICATION_ERROR (int): Authentication of the request failed. + CLIENT_CUSTOMER_ID_INVALID (int): Client customer Id is not a number. + CUSTOMER_NOT_FOUND (int): No customer found for the provided customer id. + GOOGLE_ACCOUNT_DELETED (int): Client's Google Account is deleted. + GOOGLE_ACCOUNT_COOKIE_INVALID (int): Google account login token in the cookie is invalid. + FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT (int): A problem occurred during Google account authentication. + GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH (int): The user in the google account login token does not match the UserId in + the cookie. + LOGIN_COOKIE_REQUIRED (int): Login cookie is required for authentication. + NOT_ADS_USER (int): User in the cookie is not a valid Ads user. + OAUTH_TOKEN_INVALID (int): Oauth token in the header is not valid. + OAUTH_TOKEN_EXPIRED (int): Oauth token in the header has expired. + OAUTH_TOKEN_DISABLED (int): Oauth token in the header has been disabled. + OAUTH_TOKEN_REVOKED (int): Oauth token in the header has been revoked. + OAUTH_TOKEN_HEADER_INVALID (int): Oauth token HTTP header is malformed. + LOGIN_COOKIE_INVALID (int): Login cookie is not valid. + FAILED_TO_RETRIEVE_LOGIN_COOKIE (int): Failed to decrypt the login cookie. + USER_ID_INVALID (int): User Id in the header is not a valid id. + TWO_STEP_VERIFICATION_NOT_ENROLLED (int): An account administrator changed this account's authentication settings. + To access this Google Ads account, enable 2-Step Verification in your + Google account at https://www.google.com/landing/2step. + ADVANCED_PROTECTION_NOT_ENROLLED (int): An account administrator changed this account's authentication settings. + To access this Google Ads account, enable Advanced Protection in your + Google account at https://landing.google.com/advancedprotection. """ UNSPECIFIED = 0 UNKNOWN = 1 - CANNOT_ADD_STANDARD_ICON = 2 - CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES = 3 - CANNOT_SPECIFY_MEDIA_ID_AND_DATA = 4 - DUPLICATE_MEDIA = 5 - EMPTY_FIELD = 6 - RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 7 - FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE = 8 - INVALID_MEDIA_ID = 9 - INVALID_MEDIA_SUB_TYPE = 10 - INVALID_MEDIA_TYPE = 11 - INVALID_MIME_TYPE = 12 - INVALID_REFERENCE_ID = 13 - INVALID_YOU_TUBE_ID = 14 - MEDIA_FAILED_TRANSCODING = 15 - MEDIA_NOT_TRANSCODED = 16 - MEDIA_TYPE_DOES_NOT_MATCH_OBJECT_TYPE = 17 - NO_FIELDS_SPECIFIED = 18 - NULL_REFERENCE_ID_AND_MEDIA_ID = 19 - TOO_LONG = 20 - UNSUPPORTED_OPERATION = 21 - UNSUPPORTED_TYPE = 22 - YOU_TUBE_SERVICE_UNAVAILABLE = 23 - YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION = 24 - YOU_TUBE_VIDEO_NOT_FOUND = 25 + AUTHENTICATION_ERROR = 2 + CLIENT_CUSTOMER_ID_INVALID = 5 + CUSTOMER_NOT_FOUND = 8 + GOOGLE_ACCOUNT_DELETED = 9 + GOOGLE_ACCOUNT_COOKIE_INVALID = 10 + FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT = 11 + GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = 12 + LOGIN_COOKIE_REQUIRED = 13 + NOT_ADS_USER = 14 + OAUTH_TOKEN_INVALID = 15 + OAUTH_TOKEN_EXPIRED = 16 + OAUTH_TOKEN_DISABLED = 17 + OAUTH_TOKEN_REVOKED = 18 + OAUTH_TOKEN_HEADER_INVALID = 19 + LOGIN_COOKIE_INVALID = 20 + FAILED_TO_RETRIEVE_LOGIN_COOKIE = 21 + USER_ID_INVALID = 22 + TWO_STEP_VERIFICATION_NOT_ENROLLED = 23 + ADVANCED_PROTECTION_NOT_ENROLLED = 24 -class AdSharingErrorEnum(object): - class AdSharingError(enum.IntEnum): +class AuthorizationErrorEnum(object): + class AuthorizationError(enum.IntEnum): """ - Enum describing possible ad sharing errors. + Enum describing possible authorization errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - AD_GROUP_ALREADY_CONTAINS_AD (int): Error resulting in attempting to add an Ad to an AdGroup that already - contains the Ad. - INCOMPATIBLE_AD_UNDER_AD_GROUP (int): Ad is not compatible with the AdGroup it is being shared with. - CANNOT_SHARE_INACTIVE_AD (int): Cannot add AdGroupAd on inactive Ad. + USER_PERMISSION_DENIED (int): User doesn't have permission to access customer. + DEVELOPER_TOKEN_NOT_WHITELISTED (int): The developer token is not whitelisted. + DEVELOPER_TOKEN_PROHIBITED (int): The developer token is not allowed with the project sent in the request. + PROJECT_DISABLED (int): The Google Cloud project sent in the request does not have permission to + access the api. + AUTHORIZATION_ERROR (int): Authorization of the client failed. + ACTION_NOT_PERMITTED (int): The user does not have permission to perform this action + (e.g., ADD, UPDATE, REMOVE) on the resource or call a method. + INCOMPLETE_SIGNUP (int): Signup not complete. """ UNSPECIFIED = 0 UNKNOWN = 1 - AD_GROUP_ALREADY_CONTAINS_AD = 2 - INCOMPATIBLE_AD_UNDER_AD_GROUP = 3 - CANNOT_SHARE_INACTIVE_AD = 4 + USER_PERMISSION_DENIED = 2 + DEVELOPER_TOKEN_NOT_WHITELISTED = 3 + DEVELOPER_TOKEN_PROHIBITED = 4 + PROJECT_DISABLED = 5 + AUTHORIZATION_ERROR = 6 + ACTION_NOT_PERMITTED = 7 + INCOMPLETE_SIGNUP = 8 -class HeaderErrorEnum(object): - class HeaderError(enum.IntEnum): +class CampaignBudgetErrorEnum(object): + class CampaignBudgetError(enum.IntEnum): """ - Enum describing possible header errors. + Enum describing possible campaign budget errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - INVALID_USER_SELECTED_CUSTOMER_ID (int): The user selected customer id could not be parsed. + CAMPAIGN_BUDGET_CANNOT_BE_SHARED (int): The campaign budget cannot be shared. + CAMPAIGN_BUDGET_REMOVED (int): The requested campaign budget no longer exists. + CAMPAIGN_BUDGET_IN_USE (int): The campaign budget is associated with at least one campaign, and so the + campaign budget cannot be removed. + CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE (int): Customer is not whitelisted for this campaign budget period. + CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET (int): This field is not mutable on implicitly shared campaign budgets + CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED (int): Cannot change explicitly shared campaign budgets back to implicitly + shared ones. + CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME (int): An implicit campaign budget without a name cannot be changed to + explicitly shared campaign budget. + CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED (int): Cannot change an implicitly shared campaign budget to an explicitly + shared one. + CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS (int): Only explicitly shared campaign budgets can be used with multiple + campaigns. + DUPLICATE_NAME (int): A campaign budget with this name already exists. + MONEY_AMOUNT_IN_WRONG_CURRENCY (int): A money amount was not in the expected currency. + MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC (int): A money amount was less than the minimum CPC for currency. + MONEY_AMOUNT_TOO_LARGE (int): A money amount was greater than the maximum allowed. + NEGATIVE_MONEY_AMOUNT (int): A money amount was negative. + NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT (int): A money amount was not a multiple of a minimum unit. """ UNSPECIFIED = 0 UNKNOWN = 1 - INVALID_USER_SELECTED_CUSTOMER_ID = 2 + CAMPAIGN_BUDGET_CANNOT_BE_SHARED = 17 + CAMPAIGN_BUDGET_REMOVED = 2 + CAMPAIGN_BUDGET_IN_USE = 3 + CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE = 4 + CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET = 6 + CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED = 7 + CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME = 8 + CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED = 9 + CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS = 10 + DUPLICATE_NAME = 11 + MONEY_AMOUNT_IN_WRONG_CURRENCY = 12 + MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC = 13 + MONEY_AMOUNT_TOO_LARGE = 14 + NEGATIVE_MONEY_AMOUNT = 15 + NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT = 16 -class AdGroupCriterionErrorEnum(object): - class AdGroupCriterionError(enum.IntEnum): +class CampaignCriterionErrorEnum(object): + class CampaignCriterionError(enum.IntEnum): """ - Enum describing possible ad group criterion errors. + Enum describing possible campaign criterion errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - AD_GROUP_CRITERION_LABEL_DOES_NOT_EXIST (int): No link found between the AdGroupCriterion and the label. - AD_GROUP_CRITERION_LABEL_ALREADY_EXISTS (int): The label has already been attached to the AdGroupCriterion. - CANNOT_ADD_LABEL_TO_NEGATIVE_CRITERION (int): Negative AdGroupCriterion cannot have labels. - TOO_MANY_OPERATIONS (int): Too many operations for a single call. - CANT_UPDATE_NEGATIVE (int): Negative ad group criteria are not updateable. - CONCRETE_TYPE_REQUIRED (int): Concrete type of criterion (keyword v.s. placement) is required for ADD - and SET operations. - BID_INCOMPATIBLE_WITH_ADGROUP (int): Bid is incompatible with ad group's bidding settings. - CANNOT_TARGET_AND_EXCLUDE (int): Cannot target and exclude the same criterion at once. - ILLEGAL_URL (int): The URL of a placement is invalid. - INVALID_KEYWORD_TEXT (int): Keyword text was invalid. - INVALID_DESTINATION_URL (int): Destination URL was invalid. - MISSING_DESTINATION_URL_TAG (int): The destination url must contain at least one tag (e.g. {lpurl}) - KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM (int): Keyword-level cpm bid is not supported - INVALID_USER_STATUS (int): For example, cannot add a biddable ad group criterion that had been - removed. - CANNOT_ADD_CRITERIA_TYPE (int): Criteria type cannot be targeted for the ad group. Either the account is - restricted to keywords only, the criteria type is incompatible with the - campaign's bidding strategy, or the criteria type can only be applied to - campaigns. - CANNOT_EXCLUDE_CRITERIA_TYPE (int): Criteria type cannot be excluded for the ad group. Refer to the - documentation for a specific criterion to check if it is excludable. - CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE (int): Partial failure is not supported for shopping campaign mutate operations. - OPERATIONS_FOR_TOO_MANY_SHOPPING_ADGROUPS (int): Operations in the mutate request changes too many shopping ad groups. - Please split requests for multiple shopping ad groups across multiple - requests. - CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS (int): Not allowed to modify url fields of an ad group criterion if there are - duplicate elements for that ad group criterion in the request. - CANNOT_SET_WITHOUT_FINAL_URLS (int): Cannot set url fields without also setting final urls. - CANNOT_CLEAR_FINAL_URLS_IF_FINAL_MOBILE_URLS_EXIST (int): Cannot clear final urls if final mobile urls exist. - CANNOT_CLEAR_FINAL_URLS_IF_FINAL_APP_URLS_EXIST (int): Cannot clear final urls if final app urls exist. - CANNOT_CLEAR_FINAL_URLS_IF_TRACKING_URL_TEMPLATE_EXISTS (int): Cannot clear final urls if tracking url template exists. - CANNOT_CLEAR_FINAL_URLS_IF_URL_CUSTOM_PARAMETERS_EXIST (int): Cannot clear final urls if url custom parameters exist. - CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS (int): Cannot set both destination url and final urls. - CANNOT_SET_BOTH_DESTINATION_URL_AND_TRACKING_URL_TEMPLATE (int): Cannot set both destination url and tracking url template. - FINAL_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE (int): Final urls are not supported for this criterion type. - FINAL_MOBILE_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE (int): Final mobile urls are not supported for this criterion type. - INVALID_LISTING_GROUP_HIERARCHY (int): Ad group is invalid due to the listing groups it contains. - LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN (int): Listing group unit cannot have children. - LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE (int): Subdivided listing groups must have an \"others\" case. - LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS (int): Dimension type of listing group must be the same as that of its siblings. - LISTING_GROUP_ALREADY_EXISTS (int): Listing group cannot be added to the ad group because it already exists. - LISTING_GROUP_DOES_NOT_EXIST (int): Listing group referenced in the operation was not found in the ad group. - LISTING_GROUP_CANNOT_BE_REMOVED (int): Recursive removal failed because listing group subdivision is being - created or modified in this request. - INVALID_LISTING_GROUP_TYPE (int): Listing group type is not allowed for specified ad group criterion type. - LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID (int): Listing group in an ADD operation specifies a non temporary criterion id. + CONCRETE_TYPE_REQUIRED (int): Concrete type of criterion (keyword v.s. placement) is required for + CREATE and UPDATE operations. + INVALID_PLACEMENT_URL (int): Invalid placement URL. + CANNOT_EXCLUDE_CRITERIA_TYPE (int): Criteria type can not be excluded for the campaign by the customer. like + AOL account type cannot target site type criteria + CANNOT_SET_STATUS_FOR_CRITERIA_TYPE (int): Cannot set the campaign criterion status for this criteria type. + CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA (int): Cannot set the campaign criterion status for an excluded criteria. + CANNOT_TARGET_AND_EXCLUDE (int): Cannot target and exclude the same criterion. + TOO_MANY_OPERATIONS (int): The mutate contained too many operations. + OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE (int): This operator cannot be applied to a criterion of this type. + SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL (int): The Shopping campaign sales country is not supported for + ProductSalesChannel targeting. + CANNOT_ADD_EXISTING_FIELD (int): The existing field can't be updated with CREATE operation. It can be + updated with UPDATE operation only. + CANNOT_UPDATE_NEGATIVE_CRITERION (int): Negative criteria are immutable, so updates are not allowed. """ UNSPECIFIED = 0 UNKNOWN = 1 - AD_GROUP_CRITERION_LABEL_DOES_NOT_EXIST = 2 - AD_GROUP_CRITERION_LABEL_ALREADY_EXISTS = 3 - CANNOT_ADD_LABEL_TO_NEGATIVE_CRITERION = 4 - TOO_MANY_OPERATIONS = 5 - CANT_UPDATE_NEGATIVE = 6 - CONCRETE_TYPE_REQUIRED = 7 - BID_INCOMPATIBLE_WITH_ADGROUP = 8 - CANNOT_TARGET_AND_EXCLUDE = 9 - ILLEGAL_URL = 10 - INVALID_KEYWORD_TEXT = 11 - INVALID_DESTINATION_URL = 12 - MISSING_DESTINATION_URL_TAG = 13 - KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM = 14 - INVALID_USER_STATUS = 15 - CANNOT_ADD_CRITERIA_TYPE = 16 - CANNOT_EXCLUDE_CRITERIA_TYPE = 17 - CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE = 27 - OPERATIONS_FOR_TOO_MANY_SHOPPING_ADGROUPS = 28 - CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS = 29 - CANNOT_SET_WITHOUT_FINAL_URLS = 30 - CANNOT_CLEAR_FINAL_URLS_IF_FINAL_MOBILE_URLS_EXIST = 31 - CANNOT_CLEAR_FINAL_URLS_IF_FINAL_APP_URLS_EXIST = 32 - CANNOT_CLEAR_FINAL_URLS_IF_TRACKING_URL_TEMPLATE_EXISTS = 33 - CANNOT_CLEAR_FINAL_URLS_IF_URL_CUSTOM_PARAMETERS_EXIST = 34 - CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS = 35 - CANNOT_SET_BOTH_DESTINATION_URL_AND_TRACKING_URL_TEMPLATE = 36 - FINAL_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE = 37 - FINAL_MOBILE_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE = 38 - INVALID_LISTING_GROUP_HIERARCHY = 39 - LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN = 40 - LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE = 41 - LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS = 42 - LISTING_GROUP_ALREADY_EXISTS = 43 - LISTING_GROUP_DOES_NOT_EXIST = 44 - LISTING_GROUP_CANNOT_BE_REMOVED = 45 - INVALID_LISTING_GROUP_TYPE = 46 - LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID = 47 + CONCRETE_TYPE_REQUIRED = 2 + INVALID_PLACEMENT_URL = 3 + CANNOT_EXCLUDE_CRITERIA_TYPE = 4 + CANNOT_SET_STATUS_FOR_CRITERIA_TYPE = 5 + CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA = 6 + CANNOT_TARGET_AND_EXCLUDE = 7 + TOO_MANY_OPERATIONS = 8 + OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE = 9 + SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL = 10 + CANNOT_ADD_EXISTING_FIELD = 11 + CANNOT_UPDATE_NEGATIVE_CRITERION = 12 -class RangeErrorEnum(object): - class RangeError(enum.IntEnum): +class CampaignErrorEnum(object): + class CampaignError(enum.IntEnum): """ - Enum describing possible range errors. + Enum describing possible campaign errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - TOO_LOW (int): Too low. - TOO_HIGH (int): Too high. + CANNOT_TARGET_CONTENT_NETWORK (int): Cannot target content network. + CANNOT_TARGET_SEARCH_NETWORK (int): Cannot target search network. + CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH (int): Cannot cover search network without google search network. + CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN (int): Cannot target Google Search network for a CPM campaign. + CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK (int): Must target at least one network. + CANNOT_TARGET_PARTNER_SEARCH_NETWORK (int): Only some Google partners are allowed to target partner search network. + CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY (int): Cannot target content network only as campaign has criteria-level bidding + strategy. + CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS (int): Cannot modify the start or end date such that the campaign duration would + not contain the durations of all runnable trials. + CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN (int): Cannot modify dates, budget or campaign name of a trial campaign. + DUPLICATE_CAMPAIGN_NAME (int): Trying to modify the name of an active or paused campaign, where the name + is already assigned to another active or paused campaign. + INCOMPATIBLE_CAMPAIGN_FIELD (int): Two fields are in conflicting modes. + INVALID_CAMPAIGN_NAME (int): Campaign name cannot be used. + INVALID_AD_SERVING_OPTIMIZATION_STATUS (int): Given status is invalid. + INVALID_TRACKING_URL (int): Error in the campaign level tracking url. + CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING (int): Cannot set both tracking url template and tracking setting. An user has + to clear legacy tracking setting in order to add tracking url template. + MAX_IMPRESSIONS_NOT_IN_RANGE (int): The maximum number of impressions for Frequency Cap should be an integer + greater than 0. + TIME_UNIT_NOT_SUPPORTED (int): Only the Day, Week and Month time units are supported. + INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED (int): Operation not allowed on a campaign whose serving status has ended + BUDGET_CANNOT_BE_SHARED (int): This budget is exclusively linked to a Campaign that is using experiments + so it cannot be shared. + CAMPAIGN_CANNOT_USE_SHARED_BUDGET (int): Campaigns using experiments cannot use a shared budget. + CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS (int): A different budget cannot be assigned to a campaign when there are + running or scheduled trials. + CAMPAIGN_LABEL_DOES_NOT_EXIST (int): No link found between the campaign and the label. + CAMPAIGN_LABEL_ALREADY_EXISTS (int): The label has already been attached to the campaign. + MISSING_SHOPPING_SETTING (int): A ShoppingSetting was not found when creating a shopping campaign. + INVALID_SHOPPING_SALES_COUNTRY (int): The country in shopping setting is not an allowed country. + MISSING_UNIVERSAL_APP_CAMPAIGN_SETTING (int): A Campaign with channel sub type UNIVERSAL_APP_CAMPAIGN must have a + UniversalAppCampaignSetting specified. + ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE (int): The requested channel type is not available according to the customer's + account setting. + INVALID_ADVERTISING_CHANNEL_SUB_TYPE (int): The AdvertisingChannelSubType is not a valid subtype of the primary + channel type. + AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED (int): At least one conversion must be selected. + CANNOT_SET_AD_ROTATION_MODE (int): Setting ad rotation mode for a campaign is not allowed. Ad rotation mode + at campaign is deprecated. + CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED (int): Trying to change start date on a campaign that has started. + CANNOT_SET_DATE_TO_PAST (int): Trying to modify a date into the past. + MISSING_HOTEL_CUSTOMER_LINK (int): Hotel center id in the hotel setting does not match any customer links. + INVALID_HOTEL_CUSTOMER_LINK (int): Hotel center id in the hotel setting must match an active customer link. + MISSING_HOTEL_SETTING (int): Hotel setting was not found when creating a hotel ads campaign. + CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP (int): A Campaign cannot use shared campaign budgets and be part of a campaign + group. """ UNSPECIFIED = 0 UNKNOWN = 1 - TOO_LOW = 2 - TOO_HIGH = 3 + CANNOT_TARGET_CONTENT_NETWORK = 3 + CANNOT_TARGET_SEARCH_NETWORK = 4 + CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH = 5 + CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN = 6 + CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK = 7 + CANNOT_TARGET_PARTNER_SEARCH_NETWORK = 8 + CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY = 9 + CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS = 10 + CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN = 11 + DUPLICATE_CAMPAIGN_NAME = 12 + INCOMPATIBLE_CAMPAIGN_FIELD = 13 + INVALID_CAMPAIGN_NAME = 14 + INVALID_AD_SERVING_OPTIMIZATION_STATUS = 15 + INVALID_TRACKING_URL = 16 + CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING = 17 + MAX_IMPRESSIONS_NOT_IN_RANGE = 18 + TIME_UNIT_NOT_SUPPORTED = 19 + INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED = 20 + BUDGET_CANNOT_BE_SHARED = 21 + CAMPAIGN_CANNOT_USE_SHARED_BUDGET = 22 + CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS = 23 + CAMPAIGN_LABEL_DOES_NOT_EXIST = 24 + CAMPAIGN_LABEL_ALREADY_EXISTS = 25 + MISSING_SHOPPING_SETTING = 26 + INVALID_SHOPPING_SALES_COUNTRY = 27 + MISSING_UNIVERSAL_APP_CAMPAIGN_SETTING = 30 + ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE = 31 + INVALID_ADVERTISING_CHANNEL_SUB_TYPE = 32 + AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED = 33 + CANNOT_SET_AD_ROTATION_MODE = 34 + CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 35 + CANNOT_SET_DATE_TO_PAST = 36 + MISSING_HOTEL_CUSTOMER_LINK = 37 + INVALID_HOTEL_CUSTOMER_LINK = 38 + MISSING_HOTEL_SETTING = 39 + CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP = 40 -class OperationAccessDeniedErrorEnum(object): - class OperationAccessDeniedError(enum.IntEnum): +class CampaignGroupErrorEnum(object): + class CampaignGroupError(enum.IntEnum): """ - Enum describing possible operation access denied errors. + Enum describing possible campaign group errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - ACTION_NOT_PERMITTED (int): Unauthorized invocation of a service's method (get, mutate, etc.) - CREATE_OPERATION_NOT_PERMITTED (int): Unauthorized CREATE operation in invoking a service's mutate method. - REMOVE_OPERATION_NOT_PERMITTED (int): Unauthorized REMOVE operation in invoking a service's mutate method. - UPDATE_OPERATION_NOT_PERMITTED (int): Unauthorized UPDATE operation in invoking a service's mutate method. - MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT (int): A mutate action is not allowed on this campaign, from this client. - OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE (int): This operation is not permitted on this campaign type - CREATE_AS_REMOVED_NOT_PERMITTED (int): A CREATE operation may not set status to REMOVED. - OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE (int): This operation is not allowed because the campaign or adgroup is removed. - OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE (int): This operation is not permitted on this ad group type. - """ - UNSPECIFIED = 0 - UNKNOWN = 1 - ACTION_NOT_PERMITTED = 2 - CREATE_OPERATION_NOT_PERMITTED = 3 - REMOVE_OPERATION_NOT_PERMITTED = 4 - UPDATE_OPERATION_NOT_PERMITTED = 5 - MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT = 6 - OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE = 7 - CREATE_AS_REMOVED_NOT_PERMITTED = 8 - OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 9 - OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE = 10 + CANNOT_REMOVE_CAMPAIGN_GROUP_WITH_ENABLED_OR_PAUSED_CAMPAIGNS (int): CampaignGroup was removed with ENABLED or PAUSED Campaigns associated + with it. + DUPLICATE_NAME (int): CampaignGroup with the given name already exists. + CANNOT_MODIFY_REMOVED_CAMPAIGN_GROUP (int): Cannot modify a removed campaign group. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CANNOT_REMOVE_CAMPAIGN_GROUP_WITH_ENABLED_OR_PAUSED_CAMPAIGNS = 2 + DUPLICATE_NAME = 3 + CANNOT_MODIFY_REMOVED_CAMPAIGN_GROUP = 4 -class RegionCodeErrorEnum(object): - class RegionCodeError(enum.IntEnum): +class CollectionSizeErrorEnum(object): + class CollectionSizeError(enum.IntEnum): """ - Enum describing possible region code errors. + Enum describing possible collection size errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - INVALID_REGION_CODE (int): Invalid region code. + TOO_FEW (int): Too few. + TOO_MANY (int): Too many. """ UNSPECIFIED = 0 UNKNOWN = 1 - INVALID_REGION_CODE = 2 + TOO_FEW = 2 + TOO_MANY = 3 -class SettingErrorEnum(object): - class SettingError(enum.IntEnum): +class ContextErrorEnum(object): + class ContextError(enum.IntEnum): """ - Enum describing possible setting errors. + Enum describing possible context errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - SETTING_TYPE_IS_NOT_AVAILABLE (int): The campaign setting is not available for this Google Ads account. - SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN (int): The setting is not compatible with the campaign. - TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP (int): The supplied TargetingSetting contains an invalid CriterionTypeGroup. See - CriterionTypeGroup documentation for CriterionTypeGroups allowed - in Campaign or AdGroup TargetingSettings. - TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL (int): TargetingSetting must not explicitly - set any of the Demographic CriterionTypeGroups (AGE_RANGE, GENDER, - PARENT, INCOME_RANGE) to false (it's okay to not set them at all, in - which case the system will set them to true automatically). - TARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP (int): TargetingSetting cannot change any of - the Demographic CriterionTypeGroups (AGE_RANGE, GENDER, PARENT, - INCOME_RANGE) from true to false. - DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT (int): At least one feed id should be present. - DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME (int): The supplied DynamicSearchAdsSetting contains an invalid domain name. - DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME (int): The supplied DynamicSearchAdsSetting contains a subdomain name. - DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE (int): The supplied DynamicSearchAdsSetting contains an invalid language code. - TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN (int): TargetingSettings in search campaigns should not have - CriterionTypeGroup.PLACEMENT set to targetAll. - UNIVERSAL_APP_CAMPAIGN_SETTING_DUPLICATE_DESCRIPTION (int): Duplicate description in universal app setting description field. - UNIVERSAL_APP_CAMPAIGN_SETTING_DESCRIPTION_LINE_WIDTH_TOO_LONG (int): Description line width is too long in universal app setting description - field. - UNIVERSAL_APP_CAMPAIGN_SETTING_APP_ID_CANNOT_BE_MODIFIED (int): Universal app setting appId field cannot be modified for COMPLETE - campaigns. - TOO_MANY_YOUTUBE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN (int): YoutubeVideoMediaIds in universal app setting cannot exceed size limit. - TOO_MANY_IMAGE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN (int): ImageMediaIds in universal app setting cannot exceed size limit. - MEDIA_INCOMPATIBLE_FOR_UNIVERSAL_APP_CAMPAIGN (int): Media is incompatible for universal app campaign. - TOO_MANY_EXCLAMATION_MARKS (int): Too many exclamation marks in universal app campaign ad text ideas. + OPERATION_NOT_PERMITTED_FOR_CONTEXT (int): The operation is not allowed for the given context. + OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE (int): The operation is not allowed for removed resources. """ UNSPECIFIED = 0 UNKNOWN = 1 - SETTING_TYPE_IS_NOT_AVAILABLE = 3 - SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN = 4 - TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP = 5 - TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL = 6 - TARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP = 7 - DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT = 8 - DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME = 9 - DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME = 10 - DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE = 11 - TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN = 12 - UNIVERSAL_APP_CAMPAIGN_SETTING_DUPLICATE_DESCRIPTION = 13 - UNIVERSAL_APP_CAMPAIGN_SETTING_DESCRIPTION_LINE_WIDTH_TOO_LONG = 14 - UNIVERSAL_APP_CAMPAIGN_SETTING_APP_ID_CANNOT_BE_MODIFIED = 15 - TOO_MANY_YOUTUBE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN = 16 - TOO_MANY_IMAGE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN = 17 - MEDIA_INCOMPATIBLE_FOR_UNIVERSAL_APP_CAMPAIGN = 18 - TOO_MANY_EXCLAMATION_MARKS = 19 + OPERATION_NOT_PERMITTED_FOR_CONTEXT = 2 + OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 3 class CriterionErrorEnum(object): @@ -2862,133 +3399,89 @@ class CriterionError(enum.IntEnum): FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING = 84 -class CampaignSharedSetErrorEnum(object): - class CampaignSharedSetError(enum.IntEnum): - """ - Enum describing possible campaign shared set errors. - - Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - SHARED_SET_ACCESS_DENIED (int): The shared set belongs to another customer and permission isn't granted. - """ - UNSPECIFIED = 0 - UNKNOWN = 1 - SHARED_SET_ACCESS_DENIED = 2 - - -class SharedSetErrorEnum(object): - class SharedSetError(enum.IntEnum): - """ - Enum describing possible shared set errors. - - Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE (int): The customer cannot create this type of shared set. - DUPLICATE_NAME (int): A shared set with this name already exists. - SHARED_SET_REMOVED (int): Removed shared sets cannot be mutated. - SHARED_SET_IN_USE (int): The shared set cannot be removed because it is in use. - """ - UNSPECIFIED = 0 - UNKNOWN = 1 - CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE = 2 - DUPLICATE_NAME = 3 - SHARED_SET_REMOVED = 4 - SHARED_SET_IN_USE = 5 - - -class InternalErrorEnum(object): - class InternalError(enum.IntEnum): +class DatabaseErrorEnum(object): + class DatabaseError(enum.IntEnum): """ - Enum describing possible internal errors. + Enum describing possible database errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - INTERNAL_ERROR (int): Google Ads API encountered unexpected internal error. - ERROR_CODE_NOT_PUBLISHED (int): The intended error code doesn't exist in any API version. This will be - fixed by adding a new error code as soon as possible. - TRANSIENT_ERROR (int): Google Ads API encountered an unexpected transient error. The user - should retry their request in these cases. + CONCURRENT_MODIFICATION (int): Multiple requests were attempting to modify the same resource at once. + Please retry the request. """ UNSPECIFIED = 0 UNKNOWN = 1 - INTERNAL_ERROR = 2 - ERROR_CODE_NOT_PUBLISHED = 3 - TRANSIENT_ERROR = 4 + CONCURRENT_MODIFICATION = 2 -class MediaBundleErrorEnum(object): - class MediaBundleError(enum.IntEnum): +class DateRangeErrorEnum(object): + class DateRangeError(enum.IntEnum): """ - Enum describing possible media bundle errors. + Enum describing possible date range errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - BAD_REQUEST (int): There was a problem with the request. - DOUBLECLICK_BUNDLE_NOT_ALLOWED (int): HTML5 ads using DoubleClick Studio created ZIP files are not supported. - EXTERNAL_URL_NOT_ALLOWED (int): Cannot reference URL external to the media bundle. - FILE_TOO_LARGE (int): Media bundle file is too large. - GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED (int): ZIP file from Google Web Designer is not published. - INVALID_INPUT (int): Input was invalid. - INVALID_MEDIA_BUNDLE (int): There was a problem with the media bundle. - INVALID_MEDIA_BUNDLE_ENTRY (int): There was a problem with one or more of the media bundle entries. - INVALID_MIME_TYPE (int): The media bundle contains a file with an unknown mime type - INVALID_PATH (int): The media bundle contain an invalid asset path. - INVALID_URL_REFERENCE (int): HTML5 ad is trying to reference an asset not in .ZIP file - MEDIA_DATA_TOO_LARGE (int): Media data is too large. - MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY (int): The media bundle contains no primary entry. - SERVER_ERROR (int): There was an error on the server. - STORAGE_ERROR (int): The image could not be stored. - SWIFFY_BUNDLE_NOT_ALLOWED (int): Media bundle created with the Swiffy tool is not allowed. - TOO_MANY_FILES (int): The media bundle contains too many files. - UNEXPECTED_SIZE (int): The media bundle is not of legal dimensions. - UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT (int): Google Web Designer not created for \"Google Ads\" environment. - UNSUPPORTED_HTML5_FEATURE (int): Unsupported HTML5 feature in HTML5 asset. - URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT (int): URL in HTML5 entry is not ssl compliant. - CUSTOM_EXIT_NOT_ALLOWED (int): Custom exits not allowed in HTML5 entry. + INVALID_DATE (int): Invalid date. + START_DATE_AFTER_END_DATE (int): The start date was after the end date. + CANNOT_SET_DATE_TO_PAST (int): Cannot set date to past time + AFTER_MAXIMUM_ALLOWABLE_DATE (int): A date was used that is past the system \"last\" date. + CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED (int): Trying to change start date on a campaign that has started. """ UNSPECIFIED = 0 UNKNOWN = 1 - BAD_REQUEST = 3 - DOUBLECLICK_BUNDLE_NOT_ALLOWED = 4 - EXTERNAL_URL_NOT_ALLOWED = 5 - FILE_TOO_LARGE = 6 - GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED = 7 - INVALID_INPUT = 8 - INVALID_MEDIA_BUNDLE = 9 - INVALID_MEDIA_BUNDLE_ENTRY = 10 - INVALID_MIME_TYPE = 11 - INVALID_PATH = 12 - INVALID_URL_REFERENCE = 13 - MEDIA_DATA_TOO_LARGE = 14 - MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY = 15 - SERVER_ERROR = 16 - STORAGE_ERROR = 17 - SWIFFY_BUNDLE_NOT_ALLOWED = 18 - TOO_MANY_FILES = 19 - UNEXPECTED_SIZE = 20 - UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT = 21 - UNSUPPORTED_HTML5_FEATURE = 22 - URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT = 23 - CUSTOM_EXIT_NOT_ALLOWED = 24 + INVALID_DATE = 2 + START_DATE_AFTER_END_DATE = 3 + CANNOT_SET_DATE_TO_PAST = 4 + AFTER_MAXIMUM_ALLOWABLE_DATE = 5 + CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 6 -class IdErrorEnum(object): - class IdError(enum.IntEnum): +class FunctionErrorEnum(object): + class FunctionError(enum.IntEnum): """ - Enum describing possible id errors. + Enum describing possible function errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - NOT_FOUND (int): Id not found + INVALID_FUNCTION_FORMAT (int): The format of the function is not recognized as a supported function + format. + DATA_TYPE_MISMATCH (int): Operand data types do not match. + INVALID_CONJUNCTION_OPERANDS (int): The operands cannot be used together in a conjunction. + INVALID_NUMBER_OF_OPERANDS (int): Invalid numer of Operands. + INVALID_OPERAND_TYPE (int): Operand Type not supported. + INVALID_OPERATOR (int): Operator not supported. + INVALID_REQUEST_CONTEXT_TYPE (int): Request context type not supported. + INVALID_FUNCTION_FOR_CALL_PLACEHOLDER (int): The matching function is not allowed for call placeholders + INVALID_FUNCTION_FOR_PLACEHOLDER (int): The matching function is not allowed for the specified placeholder + INVALID_OPERAND (int): Invalid operand. + MISSING_CONSTANT_OPERAND_VALUE (int): Missing value for the constant operand. + INVALID_CONSTANT_OPERAND_VALUE (int): The value of the constant operand is invalid. + INVALID_NESTING (int): Invalid function nesting. + MULTIPLE_FEED_IDS_NOT_SUPPORTED (int): The Feed ID was different from another Feed ID in the same function. + INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA (int): The matching function is invalid for use with a feed with a fixed schema. + INVALID_ATTRIBUTE_NAME (int): Invalid attribute name. """ UNSPECIFIED = 0 UNKNOWN = 1 - NOT_FOUND = 2 + INVALID_FUNCTION_FORMAT = 2 + DATA_TYPE_MISMATCH = 3 + INVALID_CONJUNCTION_OPERANDS = 4 + INVALID_NUMBER_OF_OPERANDS = 5 + INVALID_OPERAND_TYPE = 6 + INVALID_OPERATOR = 7 + INVALID_REQUEST_CONTEXT_TYPE = 8 + INVALID_FUNCTION_FOR_CALL_PLACEHOLDER = 9 + INVALID_FUNCTION_FOR_PLACEHOLDER = 10 + INVALID_OPERAND = 11 + MISSING_CONSTANT_OPERAND_VALUE = 12 + INVALID_CONSTANT_OPERAND_VALUE = 13 + INVALID_NESTING = 14 + MULTIPLE_FEED_IDS_NOT_SUPPORTED = 15 + INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA = 16 + INVALID_ATTRIBUTE_NAME = 17 class FunctionParsingErrorEnum(object): @@ -3013,57 +3506,85 @@ class FunctionParsingError(enum.IntEnum): """ UNSPECIFIED = 0 UNKNOWN = 1 - NO_MORE_INPUT = 2 - EXPECTED_CHARACTER = 3 - UNEXPECTED_SEPARATOR = 4 - UNMATCHED_LEFT_BRACKET = 5 - UNMATCHED_RIGHT_BRACKET = 6 - TOO_MANY_NESTED_FUNCTIONS = 7 - MISSING_RIGHT_HAND_OPERAND = 8 - INVALID_OPERATOR_NAME = 9 - FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER = 10 - NO_OPERANDS = 11 - TOO_MANY_OPERANDS = 12 + NO_MORE_INPUT = 2 + EXPECTED_CHARACTER = 3 + UNEXPECTED_SEPARATOR = 4 + UNMATCHED_LEFT_BRACKET = 5 + UNMATCHED_RIGHT_BRACKET = 6 + TOO_MANY_NESTED_FUNCTIONS = 7 + MISSING_RIGHT_HAND_OPERAND = 8 + INVALID_OPERATOR_NAME = 9 + FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER = 10 + NO_OPERANDS = 11 + TOO_MANY_OPERANDS = 12 + + +class HeaderErrorEnum(object): + class HeaderError(enum.IntEnum): + """ + Enum describing possible header errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INVALID_USER_SELECTED_CUSTOMER_ID (int): The user selected customer id could not be validated. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_USER_SELECTED_CUSTOMER_ID = 2 + + +class IdErrorEnum(object): + class IdError(enum.IntEnum): + """ + Enum describing possible id errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + NOT_FOUND (int): Id not found + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + NOT_FOUND = 2 -class AdGroupErrorEnum(object): - class AdGroupError(enum.IntEnum): +class MultiplierErrorEnum(object): + class MultiplierError(enum.IntEnum): """ - Enum describing possible ad group errors. + Enum describing possible multiplier errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - DUPLICATE_ADGROUP_NAME (int): AdGroup with the same name already exists for the campaign. - INVALID_ADGROUP_NAME (int): AdGroup name is not valid. - ADVERTISER_NOT_ON_CONTENT_NETWORK (int): Advertiser is not allowed to target sites or set site bids that are not - on the Google Search Network. - BID_TOO_BIG (int): Bid amount is too big. - BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH (int): AdGroup bid does not match the campaign's bidding strategy. - MISSING_ADGROUP_NAME (int): AdGroup name is required for Add. - ADGROUP_LABEL_DOES_NOT_EXIST (int): No link found between the ad group and the label. - ADGROUP_LABEL_ALREADY_EXISTS (int): The label has already been attached to the ad group. - INVALID_CONTENT_BID_CRITERION_TYPE_GROUP (int): The CriterionTypeGroup is not supported for the content bid dimension. - AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE (int): The ad group type is not compatible with the campaign channel type. - ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY (int): The ad group type is not supported in the country of sale of the - campaign. - CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING (int): Ad groups of AdGroupType.SEARCH_DYNAMIC_ADS can only be added to - campaigns that have DynamicSearchAdsSetting attached. + MULTIPLIER_TOO_HIGH (int): Multiplier value is too high + MULTIPLIER_TOO_LOW (int): Multiplier value is too low + TOO_MANY_FRACTIONAL_DIGITS (int): Too many fractional digits + MULTIPLIER_NOT_ALLOWED_FOR_BIDDING_STRATEGY (int): A multiplier cannot be set for this bidding strategy + MULTIPLIER_NOT_ALLOWED_WHEN_BASE_BID_IS_MISSING (int): A multiplier cannot be set when there is no base bid (e.g., content max + cpc) + NO_MULTIPLIER_SPECIFIED (int): A bid multiplier must be specified + MULTIPLIER_CAUSES_BID_TO_EXCEED_DAILY_BUDGET (int): Multiplier causes bid to exceed daily budget + MULTIPLIER_CAUSES_BID_TO_EXCEED_MONTHLY_BUDGET (int): Multiplier causes bid to exceed monthly budget + MULTIPLIER_CAUSES_BID_TO_EXCEED_CUSTOM_BUDGET (int): Multiplier causes bid to exceed custom budget + MULTIPLIER_CAUSES_BID_TO_EXCEED_MAX_ALLOWED_BID (int): Multiplier causes bid to exceed maximum allowed bid + BID_LESS_THAN_MIN_ALLOWED_BID_WITH_MULTIPLIER (int): Multiplier causes bid to become less than the minimum bid allowed + MULTIPLIER_AND_BIDDING_STRATEGY_TYPE_MISMATCH (int): Multiplier type (cpc vs. cpm) needs to match campaign's bidding strategy """ UNSPECIFIED = 0 UNKNOWN = 1 - DUPLICATE_ADGROUP_NAME = 2 - INVALID_ADGROUP_NAME = 3 - ADVERTISER_NOT_ON_CONTENT_NETWORK = 5 - BID_TOO_BIG = 6 - BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH = 7 - MISSING_ADGROUP_NAME = 8 - ADGROUP_LABEL_DOES_NOT_EXIST = 9 - ADGROUP_LABEL_ALREADY_EXISTS = 10 - INVALID_CONTENT_BID_CRITERION_TYPE_GROUP = 11 - AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE = 12 - ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY = 13 - CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING = 14 + MULTIPLIER_TOO_HIGH = 2 + MULTIPLIER_TOO_LOW = 3 + TOO_MANY_FRACTIONAL_DIGITS = 4 + MULTIPLIER_NOT_ALLOWED_FOR_BIDDING_STRATEGY = 5 + MULTIPLIER_NOT_ALLOWED_WHEN_BASE_BID_IS_MISSING = 6 + NO_MULTIPLIER_SPECIFIED = 7 + MULTIPLIER_CAUSES_BID_TO_EXCEED_DAILY_BUDGET = 8 + MULTIPLIER_CAUSES_BID_TO_EXCEED_MONTHLY_BUDGET = 9 + MULTIPLIER_CAUSES_BID_TO_EXCEED_CUSTOM_BUDGET = 10 + MULTIPLIER_CAUSES_BID_TO_EXCEED_MAX_ALLOWED_BID = 11 + BID_LESS_THAN_MIN_ALLOWED_BID_WITH_MULTIPLIER = 12 + MULTIPLIER_AND_BIDDING_STRATEGY_TYPE_MISMATCH = 13 class MutateErrorEnum(object): @@ -3078,313 +3599,359 @@ class MutateError(enum.IntEnum): ID_EXISTS_IN_MULTIPLE_MUTATES (int): Cannot mutate the same resource twice in one request. INCONSISTENT_FIELD_VALUES (int): The field's contents don't match another field that represents the same data. + MUTATE_NOT_ALLOWED (int): Mutates are not allowed for the requested resource. """ UNSPECIFIED = 0 UNKNOWN = 1 RESOURCE_NOT_FOUND = 3 ID_EXISTS_IN_MULTIPLE_MUTATES = 7 INCONSISTENT_FIELD_VALUES = 8 + MUTATE_NOT_ALLOWED = 9 -class DatabaseErrorEnum(object): - class DatabaseError(enum.IntEnum): +class NewResourceCreationErrorEnum(object): + class NewResourceCreationError(enum.IntEnum): """ - Enum describing possible database errors. + Enum describing possible new resource creation errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - CONCURRENT_MODIFICATION (int): Multiple requests were attempting to modify the same resource at once. - Please retry the request. + CANNOT_SET_ID_FOR_ADD (int): Do not set the id field while creating new entities. + DUPLICATE_TEMP_IDS (int): Creating more than one resource with the same temp ID is not allowed. + TEMP_ID_RESOURCE_HAD_ERRORS (int): Parent object with specified temp id failed validation, so no deep + validation will be done for this child resource. """ UNSPECIFIED = 0 UNKNOWN = 1 - CONCURRENT_MODIFICATION = 2 + CANNOT_SET_ID_FOR_ADD = 2 + DUPLICATE_TEMP_IDS = 3 + TEMP_ID_RESOURCE_HAD_ERRORS = 4 -class BiddingStrategyErrorEnum(object): - class BiddingStrategyError(enum.IntEnum): +class NotEmptyErrorEnum(object): + class NotEmptyError(enum.IntEnum): """ - Enum describing possible bidding strategy errors. + Enum describing possible not empty errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - DUPLICATE_NAME (int): Each bidding strategy must have a unique name. - CANNOT_CHANGE_BIDDING_STRATEGY_TYPE (int): Bidding strategy type is immutable. - CANNOT_REMOVE_ASSOCIATED_STRATEGY (int): Only bidding strategies not linked to campaigns, adgroups or adgroup - criteria can be removed. - BIDDING_STRATEGY_NOT_SUPPORTED (int): The specified bidding strategy is not supported. + EMPTY_LIST (int): Empty list. """ UNSPECIFIED = 0 UNKNOWN = 1 - DUPLICATE_NAME = 2 - CANNOT_CHANGE_BIDDING_STRATEGY_TYPE = 3 - CANNOT_REMOVE_ASSOCIATED_STRATEGY = 4 - BIDDING_STRATEGY_NOT_SUPPORTED = 5 + EMPTY_LIST = 2 -class CampaignErrorEnum(object): - class CampaignError(enum.IntEnum): +class NullErrorEnum(object): + class NullError(enum.IntEnum): """ - Enum describing possible campaign errors. + Enum describing possible null errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - CANNOT_TARGET_CONTENT_NETWORK (int): Cannot target content network. - CANNOT_TARGET_SEARCH_NETWORK (int): Cannot target search network. - CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH (int): Cannot cover search network without google search network. - CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN (int): Cannot target Google Search network for a CPM campaign. - CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK (int): Must target at least one network. - CANNOT_TARGET_PARTNER_SEARCH_NETWORK (int): Only some Google partners are allowed to target partner search network. - CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY (int): Cannot target content network only as campaign has criteria-level bidding - strategy. - CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS (int): Cannot modify the start or end date such that the campaign duration would - not contain the durations of all runnable trials. - CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN (int): Cannot modify dates, budget or campaign name of a trial campaign. - DUPLICATE_CAMPAIGN_NAME (int): Trying to modify the name of an active or paused campaign, where the name - is already assigned to another active or paused campaign. - INCOMPATIBLE_CAMPAIGN_FIELD (int): Two fields are in conflicting modes. - INVALID_CAMPAIGN_NAME (int): Campaign name cannot be used. - INVALID_AD_SERVING_OPTIMIZATION_STATUS (int): Given status is invalid. - INVALID_TRACKING_URL (int): Error in the campaign level tracking url. - CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING (int): Cannot set both tracking url template and tracking setting. An user has - to clear legacy tracking setting in order to add tracking url template. - MAX_IMPRESSIONS_NOT_IN_RANGE (int): The maximum number of impressions for Frequency Cap should be an integer - greater than 0. - TIME_UNIT_NOT_SUPPORTED (int): Only the Day, Week and Month time units are supported. - INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED (int): Operation not allowed on a campaign whose serving status has ended - BUDGET_CANNOT_BE_SHARED (int): This budget is exclusively linked to a Campaign that is using experiments - so it cannot be shared. - CAMPAIGN_CANNOT_USE_SHARED_BUDGET (int): Campaigns using experiments cannot use a shared budget. - CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS (int): A different budget cannot be assigned to a campaign when there are - running or scheduled trials. - CAMPAIGN_LABEL_DOES_NOT_EXIST (int): No link found between the campaign and the label. - CAMPAIGN_LABEL_ALREADY_EXISTS (int): The label has already been attached to the campaign. - MISSING_SHOPPING_SETTING (int): A ShoppingSetting was not found when creating a shopping campaign. - INVALID_SHOPPING_SALES_COUNTRY (int): The country in shopping setting is not an allowed country. - MISSING_UNIVERSAL_APP_CAMPAIGN_SETTING (int): A Campaign with channel sub type UNIVERSAL_APP_CAMPAIGN must have a - UniversalAppCampaignSetting specified. - ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE (int): The requested channel type is not available according to the customer's - account setting. - INVALID_ADVERTISING_CHANNEL_SUB_TYPE (int): The AdvertisingChannelSubType is not a valid subtype of the primary - channel type. - AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED (int): At least one conversion must be selected. - CANNOT_SET_AD_ROTATION_MODE (int): Setting ad rotation mode for a campaign is not allowed. Ad rotation mode - at campaign is deprecated. - CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED (int): Trying to change start date on a campaign that has started. - CANNOT_SET_DATE_TO_PAST (int): Trying to modify a date into the past. - MISSING_HOTEL_CUSTOMER_LINK (int): Hotel center id in the hotel setting does not match any customer links. - INVALID_HOTEL_CUSTOMER_LINK (int): Hotel center id in the hotel setting must match an active customer link. - MISSING_HOTEL_SETTING (int): Hotel setting was not found when creating a hotel ads campaign. + NULL_CONTENT (int): Specified list/container must not contain any null elements """ UNSPECIFIED = 0 UNKNOWN = 1 - CANNOT_TARGET_CONTENT_NETWORK = 3 - CANNOT_TARGET_SEARCH_NETWORK = 4 - CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH = 5 - CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN = 6 - CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK = 7 - CANNOT_TARGET_PARTNER_SEARCH_NETWORK = 8 - CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY = 9 - CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS = 10 - CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN = 11 - DUPLICATE_CAMPAIGN_NAME = 12 - INCOMPATIBLE_CAMPAIGN_FIELD = 13 - INVALID_CAMPAIGN_NAME = 14 - INVALID_AD_SERVING_OPTIMIZATION_STATUS = 15 - INVALID_TRACKING_URL = 16 - CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING = 17 - MAX_IMPRESSIONS_NOT_IN_RANGE = 18 - TIME_UNIT_NOT_SUPPORTED = 19 - INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED = 20 - BUDGET_CANNOT_BE_SHARED = 21 - CAMPAIGN_CANNOT_USE_SHARED_BUDGET = 22 - CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS = 23 - CAMPAIGN_LABEL_DOES_NOT_EXIST = 24 - CAMPAIGN_LABEL_ALREADY_EXISTS = 25 - MISSING_SHOPPING_SETTING = 26 - INVALID_SHOPPING_SALES_COUNTRY = 27 - MISSING_UNIVERSAL_APP_CAMPAIGN_SETTING = 30 - ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE = 31 - INVALID_ADVERTISING_CHANNEL_SUB_TYPE = 32 - AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED = 33 - CANNOT_SET_AD_ROTATION_MODE = 34 - CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 35 - CANNOT_SET_DATE_TO_PAST = 36 - MISSING_HOTEL_CUSTOMER_LINK = 37 - INVALID_HOTEL_CUSTOMER_LINK = 38 - MISSING_HOTEL_SETTING = 39 + NULL_CONTENT = 2 -class CampaignGroupErrorEnum(object): - class CampaignGroupError(enum.IntEnum): +class OperationAccessDeniedErrorEnum(object): + class OperationAccessDeniedError(enum.IntEnum): """ - Enum describing possible campaign group errors. + Enum describing possible operation access denied errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - CANNOT_REMOVE_CAMPAIGN_GROUP_WITH_ENABLED_OR_PAUSED_CAMPAIGNS (int): CampaignGroup was removed with ENABLED or PAUSED Campaigns associated - with it. - DUPLICATE_NAME (int): CampaignGroup with the given name already exists. - CANNOT_MODIFY_REMOVED_CAMPAIGN_GROUP (int): Cannot modify a removed campaign group. + ACTION_NOT_PERMITTED (int): Unauthorized invocation of a service's method (get, mutate, etc.) + CREATE_OPERATION_NOT_PERMITTED (int): Unauthorized CREATE operation in invoking a service's mutate method. + REMOVE_OPERATION_NOT_PERMITTED (int): Unauthorized REMOVE operation in invoking a service's mutate method. + UPDATE_OPERATION_NOT_PERMITTED (int): Unauthorized UPDATE operation in invoking a service's mutate method. + MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT (int): A mutate action is not allowed on this campaign, from this client. + OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE (int): This operation is not permitted on this campaign type + CREATE_AS_REMOVED_NOT_PERMITTED (int): A CREATE operation may not set status to REMOVED. + OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE (int): This operation is not allowed because the campaign or adgroup is removed. + OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE (int): This operation is not permitted on this ad group type. """ UNSPECIFIED = 0 UNKNOWN = 1 - CANNOT_REMOVE_CAMPAIGN_GROUP_WITH_ENABLED_OR_PAUSED_CAMPAIGNS = 2 - DUPLICATE_NAME = 3 - CANNOT_MODIFY_REMOVED_CAMPAIGN_GROUP = 4 + ACTION_NOT_PERMITTED = 2 + CREATE_OPERATION_NOT_PERMITTED = 3 + REMOVE_OPERATION_NOT_PERMITTED = 4 + UPDATE_OPERATION_NOT_PERMITTED = 5 + MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT = 6 + OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE = 7 + CREATE_AS_REMOVED_NOT_PERMITTED = 8 + OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 9 + OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE = 10 -class ContextErrorEnum(object): - class ContextError(enum.IntEnum): +class OperatorErrorEnum(object): + class OperatorError(enum.IntEnum): """ - Enum describing possible context errors. + Enum describing possible operator errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - OPERATION_NOT_PERMITTED_FOR_CONTEXT (int): The operation is not allowed for the given context. - OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE (int): The operation is not allowed for removed resources. + OPERATOR_NOT_SUPPORTED (int): Operator not supported. """ UNSPECIFIED = 0 UNKNOWN = 1 - OPERATION_NOT_PERMITTED_FOR_CONTEXT = 2 - OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 3 + OPERATOR_NOT_SUPPORTED = 2 -class EnumErrorEnum(object): - class EnumError(enum.IntEnum): +class QueryErrorEnum(object): + class QueryError(enum.IntEnum): """ - Enum describing possible enum errors. + Enum describing possible query errors. Attributes: - UNSPECIFIED (int): Enum unspecified. + UNSPECIFIED (int): Name unspecified. UNKNOWN (int): The received error code is not known in this version. - ENUM_VALUE_NOT_PERMITTED (int): The enum value is not permitted. + QUERY_ERROR (int): Returned if all other query error reasons are not applicable. + BAD_ENUM_CONSTANT (int): A condition used in the query references an invalid enum constant. + BAD_ESCAPE_SEQUENCE (int): Query contains an invalid escape sequence. + BAD_FIELD_NAME (int): Field name is invalid. + BAD_LIMIT_VALUE (int): Limit value is invalid (i.e. not a number) + BAD_NUMBER (int): Encountered number can not be parsed. + BAD_OPERATOR (int): Invalid operator encountered. + BAD_RESOURCE_TYPE_IN_FROM_CLAUSE (int): Invalid resource type was specified in the FROM clause. + BAD_SYMBOL (int): Non-ASCII symbol encountered outside of strings. + BAD_VALUE (int): Value is invalid. + DATE_RANGE_TOO_WIDE (int): Date filters fail to restrict date to a range smaller than 31 days. + Applicable if the query is segmented by date. + EXPECTED_AND (int): Expected AND between values with BETWEEN operator. + EXPECTED_BY (int): Expecting ORDER BY to have BY. + EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE (int): There was no dimension field selected. + EXPECTED_FILTERS_ON_DATE_RANGE (int): Missing filters on date related fields. + EXPECTED_FROM (int): Missing FROM clause. + EXPECTED_LIST (int): The operator used in the conditions requires the value to be a list. + EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE (int): Fields used in WHERE or ORDER BY clauses are missing from the SELECT + clause. + EXPECTED_SELECT (int): SELECT is missing at the beginning of query. + EXPECTED_SINGLE_VALUE (int): A list was passed as a value to a condition whose operator expects a + single value. + EXPECTED_VALUE_WITH_BETWEEN_OPERATOR (int): Missing one or both values with BETWEEN operator. + INVALID_DATE_FORMAT (int): Invalid date format. Expected 'YYYY-MM-DD'. + INVALID_STRING_VALUE (int): Value passed was not a string when it should have been. I.e., it was a + number or unquoted literal. + INVALID_VALUE_WITH_BETWEEN_OPERATOR (int): A String value passed to the BETWEEN operator does not parse as a date. + INVALID_VALUE_WITH_DURING_OPERATOR (int): The value passed to the DURING operator is not a Date range literal + INVALID_VALUE_WITH_LIKE_OPERATOR (int): A non-string value was passed to the LIKE operator. + OPERATOR_FIELD_MISMATCH (int): An operator was provided that is inapplicable to the field being + filtered. + PROHIBITED_EMPTY_LIST_IN_CONDITION (int): A Condition was found with an empty list. + PROHIBITED_ENUM_CONSTANT (int): A condition used in the query references an unsupported enum constant. + PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE (int): Fields that are not allowed to be selected together were included in + the SELECT clause. + PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE (int): A field that is not orderable was included in the ORDER BY clause. + PROHIBITED_FIELD_IN_SELECT_CLAUSE (int): A field that is not selectable was included in the SELECT clause. + PROHIBITED_FIELD_IN_WHERE_CLAUSE (int): A field that is not filterable was included in the WHERE clause. + PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE (int): Resource type specified in the FROM clause is not supported by this + service. + PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE (int): A field that comes from an incompatible resource was included in the + SELECT clause. + PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE (int): A field that comes from an incompatible resource was included in the + WHERE clause. + PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE (int): A metric incompatible with the main resource or other selected + segmenting resources was included in the SELECT or WHERE clause. + PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE (int): A segment incompatible with the main resource or other selected + segmenting resources was included in the SELECT or WHERE clause. + PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE (int): A segment in the SELECT clause is incompatible with a metric in the + SELECT or WHERE clause. + LIMIT_VALUE_TOO_LOW (int): The value passed to the limit clause is too low. + PROHIBITED_NEWLINE_IN_STRING (int): Query has a string containing a newline character. + PROHIBITED_VALUE_COMBINATION_IN_LIST (int): List contains values of different types. + PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR (int): The values passed to the BETWEEN operator are not of the same type. + STRING_NOT_TERMINATED (int): Query contains unterminated string. + TOO_MANY_SEGMENTS (int): Too many segments are specified in SELECT clause. + UNEXPECTED_END_OF_QUERY (int): Query is incomplete and cannot be parsed. + UNEXPECTED_FROM_CLAUSE (int): FROM clause cannot be specified in this query. + UNRECOGNIZED_FIELD (int): Query contains one or more unrecognized fields. + UNEXPECTED_INPUT (int): Query has an unexpected extra part. """ UNSPECIFIED = 0 UNKNOWN = 1 - ENUM_VALUE_NOT_PERMITTED = 3 + QUERY_ERROR = 50 + BAD_ENUM_CONSTANT = 18 + BAD_ESCAPE_SEQUENCE = 7 + BAD_FIELD_NAME = 12 + BAD_LIMIT_VALUE = 15 + BAD_NUMBER = 5 + BAD_OPERATOR = 3 + BAD_RESOURCE_TYPE_IN_FROM_CLAUSE = 45 + BAD_SYMBOL = 2 + BAD_VALUE = 4 + DATE_RANGE_TOO_WIDE = 36 + EXPECTED_AND = 30 + EXPECTED_BY = 14 + EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE = 37 + EXPECTED_FILTERS_ON_DATE_RANGE = 55 + EXPECTED_FROM = 44 + EXPECTED_LIST = 41 + EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE = 16 + EXPECTED_SELECT = 13 + EXPECTED_SINGLE_VALUE = 42 + EXPECTED_VALUE_WITH_BETWEEN_OPERATOR = 29 + INVALID_DATE_FORMAT = 38 + INVALID_STRING_VALUE = 57 + INVALID_VALUE_WITH_BETWEEN_OPERATOR = 26 + INVALID_VALUE_WITH_DURING_OPERATOR = 22 + INVALID_VALUE_WITH_LIKE_OPERATOR = 56 + OPERATOR_FIELD_MISMATCH = 35 + PROHIBITED_EMPTY_LIST_IN_CONDITION = 28 + PROHIBITED_ENUM_CONSTANT = 54 + PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE = 31 + PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE = 40 + PROHIBITED_FIELD_IN_SELECT_CLAUSE = 23 + PROHIBITED_FIELD_IN_WHERE_CLAUSE = 24 + PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE = 43 + PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE = 48 + PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE = 58 + PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE = 49 + PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE = 51 + PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE = 53 + LIMIT_VALUE_TOO_LOW = 25 + PROHIBITED_NEWLINE_IN_STRING = 8 + PROHIBITED_VALUE_COMBINATION_IN_LIST = 10 + PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR = 21 + STRING_NOT_TERMINATED = 6 + TOO_MANY_SEGMENTS = 34 + UNEXPECTED_END_OF_QUERY = 9 + UNEXPECTED_FROM_CLAUSE = 47 + UNRECOGNIZED_FIELD = 32 + UNEXPECTED_INPUT = 11 -class FeedAttributeReferenceErrorEnum(object): - class FeedAttributeReferenceError(enum.IntEnum): +class RecommendationErrorEnum(object): + class RecommendationError(enum.IntEnum): """ - Enum describing possible feed attribute reference errors. + Enum describing possible errors from applying a recommendation. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - CANNOT_REFERENCE_DELETED_FEED (int): A feed referenced by ID has been deleted. - INVALID_FEED_NAME (int): There is no active feed with the given name. - INVALID_FEED_ATTRIBUTE_NAME (int): There is no feed attribute in an active feed with the given name. + BUDGET_AMOUNT_TOO_SMALL (int): The specified budget amount is too low e.g. lower than minimum currency + unit or lower than ad group minimum cost-per-click. + BUDGET_AMOUNT_TOO_LARGE (int): The specified budget amount is too large. + INVALID_BUDGET_AMOUNT (int): The specified budget amount is not a valid amount. e.g. not a multiple + of minimum currency unit. + POLICY_ERROR (int): The specified keyword or ad violates ad policy. + INVALID_BID_AMOUNT (int): The specified bid amount is not valid. e.g. too many fractional digits, + or negative amount. + ADGROUP_KEYWORD_LIMIT (int): The number of keywords in ad group have reached the maximum allowed. + RECOMMENDATION_ALREADY_APPLIED (int): The recommendation requested to apply has already been applied. + RECOMMENDATION_INVALIDATED (int): The recommendation requested to apply has been invalidated. """ UNSPECIFIED = 0 UNKNOWN = 1 - CANNOT_REFERENCE_DELETED_FEED = 2 - INVALID_FEED_NAME = 3 - INVALID_FEED_ATTRIBUTE_NAME = 4 + BUDGET_AMOUNT_TOO_SMALL = 2 + BUDGET_AMOUNT_TOO_LARGE = 3 + INVALID_BUDGET_AMOUNT = 4 + POLICY_ERROR = 5 + INVALID_BID_AMOUNT = 6 + ADGROUP_KEYWORD_LIMIT = 7 + RECOMMENDATION_ALREADY_APPLIED = 8 + RECOMMENDATION_INVALIDATED = 9 -class FieldMaskErrorEnum(object): - class FieldMaskError(enum.IntEnum): +class RegionCodeErrorEnum(object): + class RegionCodeError(enum.IntEnum): """ - Enum describing possible field mask errors. + Enum describing possible region code errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - FIELD_MASK_MISSING (int): The field mask must be provided for update operations. - FIELD_MASK_NOT_ALLOWED (int): The field mask must be empty for create and remove operations. - FIELD_NOT_FOUND (int): The field mask contained an invalid field. - FIELD_HAS_SUBFIELDS (int): The field mask updated a field with subfields. Fields with subfields may - be cleared, but not updated. To fix this, the field mask should select - all the subfields of the invalid field. + INVALID_REGION_CODE (int): Invalid region code. """ UNSPECIFIED = 0 UNKNOWN = 1 - FIELD_MASK_MISSING = 5 - FIELD_MASK_NOT_ALLOWED = 4 - FIELD_NOT_FOUND = 2 - FIELD_HAS_SUBFIELDS = 3 + INVALID_REGION_CODE = 2 -class FunctionErrorEnum(object): - class FunctionError(enum.IntEnum): +class RequestErrorEnum(object): + class RequestError(enum.IntEnum): """ - Enum describing possible function errors. + Enum describing possible request errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - INVALID_FUNCTION_FORMAT (int): The format of the function is not recognized as a supported function - format. - DATA_TYPE_MISMATCH (int): Operand data types do not match. - INVALID_CONJUNCTION_OPERANDS (int): The operands cannot be used together in a conjunction. - INVALID_NUMBER_OF_OPERANDS (int): Invalid numer of Operands. - INVALID_OPERAND_TYPE (int): Operand Type not supported. - INVALID_OPERATOR (int): Operator not supported. - INVALID_REQUEST_CONTEXT_TYPE (int): Request context type not supported. - INVALID_FUNCTION_FOR_CALL_PLACEHOLDER (int): The matching function is not allowed for call placeholders - INVALID_FUNCTION_FOR_PLACEHOLDER (int): The matching function is not allowed for the specified placeholder - INVALID_OPERAND (int): Invalid operand. - MISSING_CONSTANT_OPERAND_VALUE (int): Missing value for the constant operand. - INVALID_CONSTANT_OPERAND_VALUE (int): The value of the constant operand is invalid. - INVALID_NESTING (int): Invalid function nesting. - MULTIPLE_FEED_IDS_NOT_SUPPORTED (int): The Feed ID was different from another Feed ID in the same function. - INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA (int): The matching function is invalid for use with a feed with a fixed schema. - INVALID_ATTRIBUTE_NAME (int): Invalid attribute name. + RESOURCE_NAME_MISSING (int): Resource name is required for this request. + RESOURCE_NAME_MALFORMED (int): Resource name provided is malformed. + BAD_RESOURCE_ID (int): Resource name provided is malformed. + INVALID_CUSTOMER_ID (int): Customer ID is invalid. + OPERATION_REQUIRED (int): Mutate operation should have either create, update, or remove specified. + RESOURCE_NOT_FOUND (int): Requested resource not found. + INVALID_PAGE_TOKEN (int): Next page token specified in user request is invalid. + EXPIRED_PAGE_TOKEN (int): Next page token specified in user request has expired. + REQUIRED_FIELD_MISSING (int): Required field is missing. + IMMUTABLE_FIELD (int): The field cannot be modified because it's immutable. It's also possible + that the field can be modified using 'create' operation but not 'update'. + TOO_MANY_MUTATE_OPERATIONS (int): Received too many entries in request. + CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT (int): Request cannot be executed by a manager account. + CANNOT_MODIFY_FOREIGN_FIELD (int): Mutate request was attempting to modify a readonly field. + For instance, Budget fields can be requested for Ad Group, + but are read-only for adGroups:mutate. + INVALID_ENUM_VALUE (int): Enum value is not permitted. + DEVELOPER_TOKEN_PARAMETER_MISSING (int): The developer-token parameter is required for all requests. """ UNSPECIFIED = 0 UNKNOWN = 1 - INVALID_FUNCTION_FORMAT = 2 - DATA_TYPE_MISMATCH = 3 - INVALID_CONJUNCTION_OPERANDS = 4 - INVALID_NUMBER_OF_OPERANDS = 5 - INVALID_OPERAND_TYPE = 6 - INVALID_OPERATOR = 7 - INVALID_REQUEST_CONTEXT_TYPE = 8 - INVALID_FUNCTION_FOR_CALL_PLACEHOLDER = 9 - INVALID_FUNCTION_FOR_PLACEHOLDER = 10 - INVALID_OPERAND = 11 - MISSING_CONSTANT_OPERAND_VALUE = 12 - INVALID_CONSTANT_OPERAND_VALUE = 13 - INVALID_NESTING = 14 - MULTIPLE_FEED_IDS_NOT_SUPPORTED = 15 - INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA = 16 - INVALID_ATTRIBUTE_NAME = 17 + RESOURCE_NAME_MISSING = 3 + RESOURCE_NAME_MALFORMED = 4 + BAD_RESOURCE_ID = 17 + INVALID_CUSTOMER_ID = 16 + OPERATION_REQUIRED = 5 + RESOURCE_NOT_FOUND = 6 + INVALID_PAGE_TOKEN = 7 + EXPIRED_PAGE_TOKEN = 8 + REQUIRED_FIELD_MISSING = 9 + IMMUTABLE_FIELD = 11 + TOO_MANY_MUTATE_OPERATIONS = 13 + CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT = 14 + CANNOT_MODIFY_FOREIGN_FIELD = 15 + INVALID_ENUM_VALUE = 18 + DEVELOPER_TOKEN_PARAMETER_MISSING = 19 -class ListOperationErrorEnum(object): - class ListOperationError(enum.IntEnum): +class SharedCriterionErrorEnum(object): + class SharedCriterionError(enum.IntEnum): """ - Enum describing possible list operation errors. + Enum describing possible shared criterion errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - REQUIRED_FIELD_MISSING (int): Field required in value is missing. - DUPLICATE_VALUES (int): Duplicate or identical value is sent in multiple list operations. + CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE (int): The criterion is not appropriate for the shared set type. """ UNSPECIFIED = 0 UNKNOWN = 1 - REQUIRED_FIELD_MISSING = 7 - DUPLICATE_VALUES = 8 + CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE = 2 -class OperatorErrorEnum(object): - class OperatorError(enum.IntEnum): +class SharedSetErrorEnum(object): + class SharedSetError(enum.IntEnum): """ - Enum describing possible operator errors. + Enum describing possible shared set errors. Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - OPERATOR_NOT_SUPPORTED (int): Operator not supported. + CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE (int): The customer cannot create this type of shared set. + DUPLICATE_NAME (int): A shared set with this name already exists. + SHARED_SET_REMOVED (int): Removed shared sets cannot be mutated. + SHARED_SET_IN_USE (int): The shared set cannot be removed because it is in use. """ UNSPECIFIED = 0 UNKNOWN = 1 - OPERATOR_NOT_SUPPORTED = 2 + CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE = 2 + DUPLICATE_NAME = 3 + SHARED_SET_REMOVED = 4 + SHARED_SET_IN_USE = 5 diff --git a/google/ads/google_ads/v0/services/geo_target_constant_service_client.py b/google/ads/google_ads/v0/services/geo_target_constant_service_client.py index a4e4acdf2..002dc5830 100644 --- a/google/ads/google_ads/v0/services/geo_target_constant_service_client.py +++ b/google/ads/google_ads/v0/services/geo_target_constant_service_client.py @@ -168,15 +168,6 @@ def get_geo_target_constant( """ Returns the requested geo target constant in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.GeoTargetConstantServiceClient() - >>> - >>> resource_name = client.geo_target_constant_path('[GEO_TARGET_CONSTANT]') - >>> - >>> response = client.get_geo_target_constant(resource_name) - Args: resource_name (str): The resource name of the geo target constant to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -189,7 +180,7 @@ def get_geo_target_constant( that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.GeoTargetConstant` instance. + A :class:`~google.ads.google_ads.v0.types.GeoTargetConstant` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/google_ads_field_service_client.py b/google/ads/google_ads/v0/services/google_ads_field_service_client.py index 8ee54fccf..8162820ca 100644 --- a/google/ads/google_ads/v0/services/google_ads_field_service_client.py +++ b/google/ads/google_ads/v0/services/google_ads_field_service_client.py @@ -168,15 +168,6 @@ def get_google_ads_field(self, """ Returns just the requested field. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.GoogleAdsFieldServiceClient() - >>> - >>> resource_name = client.google_ads_field_path('[GOOGLE_ADS_FIELD]') - >>> - >>> response = client.get_google_ads_field(resource_name) - Args: resource_name (str): The resource name of the field to get. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -189,7 +180,7 @@ def get_google_ads_field(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.GoogleAdsField` instance. + A :class:`~google.ads.google_ads.v0.types.GoogleAdsField` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -225,28 +216,6 @@ def search_google_ads_fields( """ Returns all fields that match the search query. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.GoogleAdsFieldServiceClient() - >>> - >>> # TODO: Initialize ``query``: - >>> query = '' - >>> - >>> # Iterate over all results - >>> for element in client.search_google_ads_fields(query): - ... # process element - ... pass - >>> - >>> - >>> # Alternatively: - >>> - >>> # Iterate over results one page at a time - >>> for page in client.search_google_ads_fields(query, options=CallOptions(page_token=INITIAL_PAGE)): - ... for element in page: - ... # process element - ... pass - Args: query (str): The query string. page_size (int): The maximum number of resources contained in the @@ -265,7 +234,7 @@ def search_google_ads_fields( Returns: A :class:`~google.gax.PageIterator` instance. By default, this - is an iterable of :class:`~google.cloud.ads.googleads_v0.types.GoogleAdsField` instances. + is an iterable of :class:`~google.ads.google_ads.v0.types.GoogleAdsField` instances. This object can also be configured to iterate over the pages of the response through the `options` parameter. diff --git a/google/ads/google_ads/v0/services/google_ads_service_client.py b/google/ads/google_ads/v0/services/google_ads_service_client.py index ae3fa3832..7f40125ed 100644 --- a/google/ads/google_ads/v0/services/google_ads_service_client.py +++ b/google/ads/google_ads/v0/services/google_ads_service_client.py @@ -161,31 +161,6 @@ def search(self, """ Returns all rows that match the search query. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.GoogleAdsServiceClient() - >>> - >>> # TODO: Initialize ``customer_id``: - >>> customer_id = '' - >>> - >>> # TODO: Initialize ``query``: - >>> query = '' - >>> - >>> # Iterate over all results - >>> for element in client.search(customer_id, query): - ... # process element - ... pass - >>> - >>> - >>> # Alternatively: - >>> - >>> # Iterate over results one page at a time - >>> for page in client.search(customer_id, query, options=CallOptions(page_token=INITIAL_PAGE)): - ... for element in page: - ... # process element - ... pass - Args: customer_id (str): The ID of the customer being queried. query (str): The query string. @@ -205,7 +180,7 @@ def search(self, Returns: A :class:`~google.gax.PageIterator` instance. By default, this - is an iterable of :class:`~google.cloud.ads.googleads_v0.types.GoogleAdsRow` instances. + is an iterable of :class:`~google.ads.google_ads.v0.types.GoogleAdsRow` instances. This object can also be configured to iterate over the pages of the response through the `options` parameter. diff --git a/google/ads/google_ads/v0/services/keyword_view_service_client.py b/google/ads/google_ads/v0/services/keyword_view_service_client.py index 335cd4e86..8124d5d6c 100644 --- a/google/ads/google_ads/v0/services/keyword_view_service_client.py +++ b/google/ads/google_ads/v0/services/keyword_view_service_client.py @@ -167,15 +167,6 @@ def get_keyword_view(self, """ Returns the requested keyword view in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.KeywordViewServiceClient() - >>> - >>> resource_name = client.keyword_view_path('[CUSTOMER]', '[KEYWORD_VIEW]') - >>> - >>> response = client.get_keyword_view(resource_name) - Args: resource_name (str): The resource name of the keyword view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -188,7 +179,7 @@ def get_keyword_view(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.KeywordView` instance. + A :class:`~google.ads.google_ads.v0.types.KeywordView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/recommendation_service_client.py b/google/ads/google_ads/v0/services/recommendation_service_client.py index be31d0c58..c635a4a4b 100644 --- a/google/ads/google_ads/v0/services/recommendation_service_client.py +++ b/google/ads/google_ads/v0/services/recommendation_service_client.py @@ -167,15 +167,6 @@ def get_recommendation(self, """ Returns the requested recommendation in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.RecommendationServiceClient() - >>> - >>> resource_name = client.recommendation_path('[CUSTOMER]', '[RECOMMENDATION]') - >>> - >>> response = client.get_recommendation(resource_name) - Args: resource_name (str): The resource name of the recommendation to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -188,7 +179,7 @@ def get_recommendation(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.Recommendation` instance. + A :class:`~google.ads.google_ads.v0.types.Recommendation` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -223,24 +214,11 @@ def apply_recommendation(self, """ Applies given recommendations with corresponding apply parameters. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.RecommendationServiceClient() - >>> - >>> # TODO: Initialize ``customer_id``: - >>> customer_id = '' - >>> - >>> # TODO: Initialize ``operations``: - >>> operations = [] - >>> - >>> response = client.apply_recommendation(customer_id, operations) - Args: customer_id (str): The ID of the customer with the recommendation. - operations (list[Union[dict, ~google.cloud.ads.googleads_v0.types.ApplyRecommendationOperation]]): The list of operations to apply recommendations. + operations (list[Union[dict, ~google.ads.google_ads.v0.types.ApplyRecommendationOperation]]): The list of operations to apply recommendations. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.ads.googleads_v0.types.ApplyRecommendationOperation` + message :class:`~google.ads.google_ads.v0.types.ApplyRecommendationOperation` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -251,7 +229,7 @@ def apply_recommendation(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.ApplyRecommendationResponse` instance. + A :class:`~google.ads.google_ads.v0.types.ApplyRecommendationResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/shared_criterion_service_client.py b/google/ads/google_ads/v0/services/shared_criterion_service_client.py index 073c6323c..90615387b 100644 --- a/google/ads/google_ads/v0/services/shared_criterion_service_client.py +++ b/google/ads/google_ads/v0/services/shared_criterion_service_client.py @@ -167,15 +167,6 @@ def get_shared_criterion(self, """ Returns the requested shared criterion in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.SharedCriterionServiceClient() - >>> - >>> resource_name = client.shared_criteria_path('[CUSTOMER]', '[SHARED_CRITERIA]') - >>> - >>> response = client.get_shared_criterion(resource_name) - Args: resource_name (str): The resource name of the shared criterion to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -188,7 +179,7 @@ def get_shared_criterion(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.SharedCriterion` instance. + A :class:`~google.ads.google_ads.v0.types.SharedCriterion` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -223,24 +214,11 @@ def mutate_shared_criteria(self, """ Creates or removes shared criteria. Operation statuses are returned. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.SharedCriterionServiceClient() - >>> - >>> # TODO: Initialize ``customer_id``: - >>> customer_id = '' - >>> - >>> # TODO: Initialize ``operations``: - >>> operations = [] - >>> - >>> response = client.mutate_shared_criteria(customer_id, operations) - Args: customer_id (str): The ID of the customer whose shared criteria are being modified. - operations (list[Union[dict, ~google.cloud.ads.googleads_v0.types.SharedCriterionOperation]]): The list of operations to perform on individual shared criteria. + operations (list[Union[dict, ~google.ads.google_ads.v0.types.SharedCriterionOperation]]): The list of operations to perform on individual shared criteria. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.ads.googleads_v0.types.SharedCriterionOperation` + message :class:`~google.ads.google_ads.v0.types.SharedCriterionOperation` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -251,7 +229,7 @@ def mutate_shared_criteria(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.MutateSharedCriteriaResponse` instance. + A :class:`~google.ads.google_ads.v0.types.MutateSharedCriteriaResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/shared_set_service_client.py b/google/ads/google_ads/v0/services/shared_set_service_client.py index 9a0ba472e..a0952cea5 100644 --- a/google/ads/google_ads/v0/services/shared_set_service_client.py +++ b/google/ads/google_ads/v0/services/shared_set_service_client.py @@ -167,15 +167,6 @@ def get_shared_set(self, """ Returns the requested shared set in full detail. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.SharedSetServiceClient() - >>> - >>> resource_name = client.shared_set_path('[CUSTOMER]', '[SHARED_SET]') - >>> - >>> response = client.get_shared_set(resource_name) - Args: resource_name (str): The resource name of the shared set to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -188,7 +179,7 @@ def get_shared_set(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.SharedSet` instance. + A :class:`~google.ads.google_ads.v0.types.SharedSet` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -222,24 +213,11 @@ def mutate_shared_sets(self, """ Creates, updates, or removes shared sets. Operation statuses are returned. - Example: - >>> from google.cloud.ads import googleads_v0 - >>> - >>> client = googleads_v0.SharedSetServiceClient() - >>> - >>> # TODO: Initialize ``customer_id``: - >>> customer_id = '' - >>> - >>> # TODO: Initialize ``operations``: - >>> operations = [] - >>> - >>> response = client.mutate_shared_sets(customer_id, operations) - Args: customer_id (str): The ID of the customer whose shared sets are being modified. - operations (list[Union[dict, ~google.cloud.ads.googleads_v0.types.SharedSetOperation]]): The list of operations to perform on individual shared sets. + operations (list[Union[dict, ~google.ads.google_ads.v0.types.SharedSetOperation]]): The list of operations to perform on individual shared sets. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.ads.googleads_v0.types.SharedSetOperation` + message :class:`~google.ads.google_ads.v0.types.SharedSetOperation` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -250,7 +228,7 @@ def mutate_shared_sets(self, that is provided to the method. Returns: - A :class:`~google.cloud.ads.googleads_v0.types.MutateSharedSetsResponse` instance. + A :class:`~google.ads.google_ads.v0.types.MutateSharedSetsResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request diff --git a/google/ads/google_ads/v0/services/transports/account_budget_proposal_service_grpc_transport.py b/google/ads/google_ads/v0/services/transports/account_budget_proposal_service_grpc_transport.py new file mode 100644 index 000000000..b80b88492 --- /dev/null +++ b/google/ads/google_ads/v0/services/transports/account_budget_proposal_service_grpc_transport.py @@ -0,0 +1,121 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v0.proto.services import account_budget_proposal_service_pb2_grpc + + +class AccountBudgetProposalServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v0.services AccountBudgetProposalService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = () + + def __init__(self, + channel=None, + credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'account_budget_proposal_service_stub': + account_budget_proposal_service_pb2_grpc. + AccountBudgetProposalServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def get_account_budget_proposal(self): + """Return the gRPC stub for {$apiMethod.name}. + + Returns an account-level budget proposal in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'account_budget_proposal_service_stub'].GetAccountBudgetProposal + + @property + def mutate_account_budget_proposal(self): + """Return the gRPC stub for {$apiMethod.name}. + + Creates, updates, or removes account budget proposals. Operation statuses + are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'account_budget_proposal_service_stub'].MutateAccountBudgetProposal diff --git a/google/ads/google_ads/v0/services/transports/billing_setup_service_grpc_transport.py b/google/ads/google_ads/v0/services/transports/billing_setup_service_grpc_transport.py new file mode 100644 index 000000000..699a2385d --- /dev/null +++ b/google/ads/google_ads/v0/services/transports/billing_setup_service_grpc_transport.py @@ -0,0 +1,117 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v0.proto.services import billing_setup_service_pb2_grpc + + +class BillingSetupServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v0.services BillingSetupService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = () + + def __init__(self, + channel=None, + credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'billing_setup_service_stub': + billing_setup_service_pb2_grpc.BillingSetupServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def get_billing_setup(self): + """Return the gRPC stub for {$apiMethod.name}. + + Returns a billing setup. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['billing_setup_service_stub'].GetBillingSetup + + @property + def mutate_billing_setup(self): + """Return the gRPC stub for {$apiMethod.name}. + + Cancels a pending billing setup. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['billing_setup_service_stub'].MutateBillingSetup diff --git a/google/ads/google_ads/v0/services/transports/change_status_service_grpc_transport.py b/google/ads/google_ads/v0/services/transports/change_status_service_grpc_transport.py new file mode 100644 index 000000000..6ec332f8e --- /dev/null +++ b/google/ads/google_ads/v0/services/transports/change_status_service_grpc_transport.py @@ -0,0 +1,104 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v0.proto.services import change_status_service_pb2_grpc + + +class ChangeStatusServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v0.services ChangeStatusService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = () + + def __init__(self, + channel=None, + credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'change_status_service_stub': + change_status_service_pb2_grpc.ChangeStatusServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def get_change_status(self): + """Return the gRPC stub for {$apiMethod.name}. + + Returns the requested change status in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['change_status_service_stub'].GetChangeStatus diff --git a/google/ads/google_ads/v0/services/transports/conversion_action_service_grpc_transport.py b/google/ads/google_ads/v0/services/transports/conversion_action_service_grpc_transport.py new file mode 100644 index 000000000..580811c28 --- /dev/null +++ b/google/ads/google_ads/v0/services/transports/conversion_action_service_grpc_transport.py @@ -0,0 +1,121 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v0.proto.services import conversion_action_service_pb2_grpc + + +class ConversionActionServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v0.services ConversionActionService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = () + + def __init__(self, + channel=None, + credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'conversion_action_service_stub': + conversion_action_service_pb2_grpc.ConversionActionServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def get_conversion_action(self): + """Return the gRPC stub for {$apiMethod.name}. + + Returns the requested conversion action. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'conversion_action_service_stub'].GetConversionAction + + @property + def mutate_conversion_actions(self): + """Return the gRPC stub for {$apiMethod.name}. + + Creates, updates or removes conversion actions. Operation statuses are + returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'conversion_action_service_stub'].MutateConversionActions diff --git a/google/ads/google_ads/v0/services/transports/video_service_grpc_transport.py b/google/ads/google_ads/v0/services/transports/video_service_grpc_transport.py new file mode 100644 index 000000000..0ec6e10d5 --- /dev/null +++ b/google/ads/google_ads/v0/services/transports/video_service_grpc_transport.py @@ -0,0 +1,104 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v0.proto.services import video_service_pb2_grpc + + +class VideoServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v0.services VideoService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = () + + def __init__(self, + channel=None, + credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'video_service_stub': + video_service_pb2_grpc.VideoServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def get_video(self): + """Return the gRPC stub for {$apiMethod.name}. + + Returns the requested video in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['video_service_stub'].GetVideo diff --git a/google/ads/google_ads/v0/services/video_service_client.py b/google/ads/google_ads/v0/services/video_service_client.py new file mode 100644 index 000000000..5f08ed96c --- /dev/null +++ b/google/ads/google_ads/v0/services/video_service_client.py @@ -0,0 +1,204 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +"""Accesses the google.ads.googleads.v0.services VideoService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v0.services import video_service_client_config +from google.ads.google_ads.v0.services.transports import video_service_grpc_transport +from google.ads.google_ads.v0.proto.services import video_service_pb2 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class VideoServiceClient(object): + """Service to manage videos.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v0.services.VideoService' + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + VideoServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + @classmethod + def video_path(cls, customer, video): + """Return a fully-qualified video string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/videos/{video}', + customer=customer, + video=video, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=video_service_client_config.config, + client_info=None): + """Constructor. + + Args: + transport (Union[~.VideoServiceGrpcTransport, + Callable[[~.Credentials, type], ~.VideoServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning) + if channel: + warnings.warn( + 'The `channel` argument is deprecated; use ' + '`transport` instead.', PendingDeprecationWarning) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=video_service_grpc_transport. + VideoServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = video_service_grpc_transport.VideoServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = ( + google.api_core.gapic_v1.client_info.DEFAULT_CLIENT_INFO) + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_video(self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested video in full detail. + + Args: + resource_name (str): The resource name of the video to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.google_ads.v0.types.Video` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_video' not in self._inner_api_calls: + self._inner_api_calls[ + 'get_video'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_video, + default_retry=self._method_configs['GetVideo'].retry, + default_timeout=self._method_configs['GetVideo'].timeout, + client_info=self._client_info, + ) + + request = video_service_pb2.GetVideoRequest( + resource_name=resource_name, ) + return self._inner_api_calls['get_video']( + request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v0/services/video_service_client_config.py b/google/ads/google_ads/v0/services/video_service_client_config.py new file mode 100644 index 000000000..b43e8809e --- /dev/null +++ b/google/ads/google_ads/v0/services/video_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v0.services.VideoService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "GetVideo": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v0/types.py b/google/ads/google_ads/v0/types.py index a091c3578..bd51052bf 100644 --- a/google/ads/google_ads/v0/types.py +++ b/google/ads/google_ads/v0/types.py @@ -17,80 +17,99 @@ from google.api_core.protobuf_helpers import get_messages -from google.api import http_pb2 -from google.ads.google_ads.v0.proto.errors import ad_customizer_error_pb2 -from google.ads.google_ads.v0.proto.errors import ad_error_pb2 -from google.ads.google_ads.v0.proto.errors import ad_group_ad_error_pb2 -from google.ads.google_ads.v0.proto.resources import ad_group_ad_pb2 -from google.ads.google_ads.v0.proto.services import ad_group_ad_service_pb2 +from google.ads.google_ads.v0.proto.common import ad_type_infos_pb2 +from google.ads.google_ads.v0.proto.common import bidding_pb2 +from google.ads.google_ads.v0.proto.common import criteria_pb2 +from google.ads.google_ads.v0.proto.common import custom_parameter_pb2 +from google.ads.google_ads.v0.proto.common import metrics_pb2 +from google.ads.google_ads.v0.proto.common import policy_pb2 +from google.ads.google_ads.v0.proto.common import value_pb2 +from google.ads.google_ads.v0.proto.enums import account_budget_proposal_status_pb2 +from google.ads.google_ads.v0.proto.enums import account_budget_proposal_type_pb2 from google.ads.google_ads.v0.proto.enums import ad_group_ad_status_pb2 -from google.ads.google_ads.v0.proto.errors import ad_group_bid_modifier_error_pb2 -from google.ads.google_ads.v0.proto.resources import ad_group_bid_modifier_pb2 -from google.ads.google_ads.v0.proto.services import ad_group_bid_modifier_service_pb2 -from google.ads.google_ads.v0.proto.errors import ad_group_criterion_error_pb2 -from google.ads.google_ads.v0.proto.resources import ad_group_criterion_pb2 -from google.ads.google_ads.v0.proto.services import ad_group_criterion_service_pb2 from google.ads.google_ads.v0.proto.enums import ad_group_criterion_status_pb2 -from google.ads.google_ads.v0.proto.errors import ad_group_error_pb2 -from google.ads.google_ads.v0.proto.resources import ad_group_pb2 -from google.ads.google_ads.v0.proto.services import ad_group_service_pb2 from google.ads.google_ads.v0.proto.enums import ad_group_status_pb2 from google.ads.google_ads.v0.proto.enums import ad_group_type_pb2 from google.ads.google_ads.v0.proto.enums import ad_network_type_pb2 -from google.ads.google_ads.v0.proto.resources import ad_pb2 from google.ads.google_ads.v0.proto.enums import ad_serving_optimization_status_pb2 -from google.ads.google_ads.v0.proto.errors import ad_sharing_error_pb2 -from google.ads.google_ads.v0.proto.common import ad_type_infos_pb2 from google.ads.google_ads.v0.proto.enums import ad_type_pb2 from google.ads.google_ads.v0.proto.enums import advertising_channel_sub_type_pb2 from google.ads.google_ads.v0.proto.enums import advertising_channel_type_pb2 -from google.ads.google_ads.v0.proto.errors import adx_error_pb2 -from google.ads.google_ads.v0.proto.errors import authentication_error_pb2 -from google.ads.google_ads.v0.proto.errors import authorization_error_pb2 -from google.ads.google_ads.v0.proto.errors import bidding_error_pb2 -from google.ads.google_ads.v0.proto.common import bidding_pb2 +from google.ads.google_ads.v0.proto.enums import attribution_model_pb2 from google.ads.google_ads.v0.proto.enums import bid_modifier_source_pb2 from google.ads.google_ads.v0.proto.enums import bidding_source_pb2 -from google.ads.google_ads.v0.proto.errors import bidding_strategy_error_pb2 -from google.ads.google_ads.v0.proto.resources import bidding_strategy_pb2 -from google.ads.google_ads.v0.proto.services import bidding_strategy_service_pb2 from google.ads.google_ads.v0.proto.enums import bidding_strategy_type_pb2 +from google.ads.google_ads.v0.proto.enums import billing_setup_status_pb2 from google.ads.google_ads.v0.proto.enums import budget_delivery_method_pb2 from google.ads.google_ads.v0.proto.enums import budget_status_pb2 -from google.ads.google_ads.v0.proto.resources import campaign_bid_modifier_pb2 -from google.ads.google_ads.v0.proto.services import campaign_bid_modifier_service_pb2 +from google.ads.google_ads.v0.proto.enums import campaign_group_status_pb2 +from google.ads.google_ads.v0.proto.enums import campaign_serving_status_pb2 +from google.ads.google_ads.v0.proto.enums import campaign_shared_set_status_pb2 +from google.ads.google_ads.v0.proto.enums import campaign_status_pb2 +from google.ads.google_ads.v0.proto.enums import change_status_operation_pb2 +from google.ads.google_ads.v0.proto.enums import conversion_action_category_pb2 +from google.ads.google_ads.v0.proto.enums import conversion_action_counting_type_pb2 +from google.ads.google_ads.v0.proto.enums import conversion_action_status_pb2 +from google.ads.google_ads.v0.proto.enums import conversion_action_type_pb2 +from google.ads.google_ads.v0.proto.enums import criterion_type_pb2 +from google.ads.google_ads.v0.proto.enums import data_driven_model_status_pb2 +from google.ads.google_ads.v0.proto.enums import day_of_week_pb2 +from google.ads.google_ads.v0.proto.enums import device_pb2 +from google.ads.google_ads.v0.proto.enums import google_ads_field_category_pb2 +from google.ads.google_ads.v0.proto.enums import google_ads_field_data_type_pb2 +from google.ads.google_ads.v0.proto.enums import hotel_date_selection_type_pb2 +from google.ads.google_ads.v0.proto.enums import interaction_type_pb2 +from google.ads.google_ads.v0.proto.enums import keyword_match_type_pb2 +from google.ads.google_ads.v0.proto.enums import listing_custom_attribute_index_pb2 +from google.ads.google_ads.v0.proto.enums import listing_group_type_pb2 +from google.ads.google_ads.v0.proto.enums import minute_of_hour_pb2 +from google.ads.google_ads.v0.proto.enums import month_of_year_pb2 +from google.ads.google_ads.v0.proto.enums import page_one_promoted_strategy_goal_pb2 +from google.ads.google_ads.v0.proto.enums import policy_approval_status_pb2 +from google.ads.google_ads.v0.proto.enums import policy_review_status_pb2 +from google.ads.google_ads.v0.proto.enums import policy_topic_entry_type_pb2 +from google.ads.google_ads.v0.proto.enums import policy_topic_evidence_destination_mismatch_url_type_pb2 +from google.ads.google_ads.v0.proto.enums import product_channel_exclusivity_pb2 +from google.ads.google_ads.v0.proto.enums import product_channel_pb2 +from google.ads.google_ads.v0.proto.enums import product_condition_pb2 +from google.ads.google_ads.v0.proto.enums import product_type_level_pb2 +from google.ads.google_ads.v0.proto.enums import quality_score_bucket_pb2 +from google.ads.google_ads.v0.proto.enums import recommendation_type_pb2 +from google.ads.google_ads.v0.proto.enums import resource_type_pb2 +from google.ads.google_ads.v0.proto.enums import shared_set_status_pb2 +from google.ads.google_ads.v0.proto.enums import shared_set_type_pb2 +from google.ads.google_ads.v0.proto.enums import slot_pb2 +from google.ads.google_ads.v0.proto.enums import spending_limit_type_pb2 +from google.ads.google_ads.v0.proto.enums import target_cpa_opt_in_recommendation_goal_pb2 +from google.ads.google_ads.v0.proto.enums import time_type_pb2 +from google.ads.google_ads.v0.proto.enums import tracking_code_page_format_pb2 +from google.ads.google_ads.v0.proto.enums import tracking_code_type_pb2 +from google.ads.google_ads.v0.proto.errors import account_budget_proposal_error_pb2 +from google.ads.google_ads.v0.proto.errors import ad_customizer_error_pb2 +from google.ads.google_ads.v0.proto.errors import ad_error_pb2 +from google.ads.google_ads.v0.proto.errors import ad_group_ad_error_pb2 +from google.ads.google_ads.v0.proto.errors import ad_group_bid_modifier_error_pb2 +from google.ads.google_ads.v0.proto.errors import ad_group_criterion_error_pb2 +from google.ads.google_ads.v0.proto.errors import ad_group_error_pb2 +from google.ads.google_ads.v0.proto.errors import ad_sharing_error_pb2 +from google.ads.google_ads.v0.proto.errors import adx_error_pb2 +from google.ads.google_ads.v0.proto.errors import authentication_error_pb2 +from google.ads.google_ads.v0.proto.errors import authorization_error_pb2 +from google.ads.google_ads.v0.proto.errors import bidding_error_pb2 +from google.ads.google_ads.v0.proto.errors import bidding_strategy_error_pb2 from google.ads.google_ads.v0.proto.errors import campaign_budget_error_pb2 -from google.ads.google_ads.v0.proto.resources import campaign_budget_pb2 -from google.ads.google_ads.v0.proto.services import campaign_budget_service_pb2 from google.ads.google_ads.v0.proto.errors import campaign_criterion_error_pb2 -from google.ads.google_ads.v0.proto.resources import campaign_criterion_pb2 -from google.ads.google_ads.v0.proto.services import campaign_criterion_service_pb2 from google.ads.google_ads.v0.proto.errors import campaign_error_pb2 from google.ads.google_ads.v0.proto.errors import campaign_group_error_pb2 -from google.ads.google_ads.v0.proto.resources import campaign_group_pb2 -from google.ads.google_ads.v0.proto.services import campaign_group_service_pb2 -from google.ads.google_ads.v0.proto.enums import campaign_group_status_pb2 -from google.ads.google_ads.v0.proto.resources import campaign_pb2 -from google.ads.google_ads.v0.proto.services import campaign_service_pb2 -from google.ads.google_ads.v0.proto.enums import campaign_serving_status_pb2 from google.ads.google_ads.v0.proto.errors import campaign_shared_set_error_pb2 -from google.ads.google_ads.v0.proto.resources import campaign_shared_set_pb2 -from google.ads.google_ads.v0.proto.services import campaign_shared_set_service_pb2 -from google.ads.google_ads.v0.proto.enums import campaign_shared_set_status_pb2 -from google.ads.google_ads.v0.proto.enums import campaign_status_pb2 +from google.ads.google_ads.v0.proto.errors import change_status_error_pb2 from google.ads.google_ads.v0.proto.errors import collection_size_error_pb2 from google.ads.google_ads.v0.proto.errors import context_error_pb2 -from google.ads.google_ads.v0.proto.common import criteria_pb2 +from google.ads.google_ads.v0.proto.errors import conversion_action_error_pb2 from google.ads.google_ads.v0.proto.errors import criterion_error_pb2 -from google.ads.google_ads.v0.proto.enums import criterion_type_pb2 -from google.ads.google_ads.v0.proto.common import custom_parameter_pb2 -from google.ads.google_ads.v0.proto.resources import customer_pb2 -from google.ads.google_ads.v0.proto.services import customer_service_pb2 from google.ads.google_ads.v0.proto.errors import database_error_pb2 from google.ads.google_ads.v0.proto.errors import date_error_pb2 from google.ads.google_ads.v0.proto.errors import date_range_error_pb2 -from google.ads.google_ads.v0.proto.enums import day_of_week_pb2 -from google.ads.google_ads.v0.proto.enums import device_pb2 from google.ads.google_ads.v0.proto.errors import distinct_error_pb2 from google.ads.google_ads.v0.proto.errors import enum_error_pb2 from google.ads.google_ads.v0.proto.errors import errors_pb2 @@ -99,30 +118,13 @@ from google.ads.google_ads.v0.proto.errors import field_mask_error_pb2 from google.ads.google_ads.v0.proto.errors import function_error_pb2 from google.ads.google_ads.v0.proto.errors import function_parsing_error_pb2 -from google.ads.google_ads.v0.proto.resources import geo_target_constant_pb2 -from google.ads.google_ads.v0.proto.services import geo_target_constant_service_pb2 -from google.ads.google_ads.v0.proto.enums import google_ads_field_category_pb2 -from google.ads.google_ads.v0.proto.enums import google_ads_field_data_type_pb2 -from google.ads.google_ads.v0.proto.resources import google_ads_field_pb2 -from google.ads.google_ads.v0.proto.services import google_ads_field_service_pb2 -from google.ads.google_ads.v0.proto.services import google_ads_service_pb2 from google.ads.google_ads.v0.proto.errors import header_error_pb2 -from google.ads.google_ads.v0.proto.enums import hotel_date_selection_type_pb2 from google.ads.google_ads.v0.proto.errors import id_error_pb2 from google.ads.google_ads.v0.proto.errors import image_error_pb2 -from google.ads.google_ads.v0.proto.enums import interaction_type_pb2 from google.ads.google_ads.v0.proto.errors import internal_error_pb2 -from google.ads.google_ads.v0.proto.enums import keyword_match_type_pb2 -from google.ads.google_ads.v0.proto.resources import keyword_view_pb2 -from google.ads.google_ads.v0.proto.services import keyword_view_service_pb2 from google.ads.google_ads.v0.proto.errors import list_operation_error_pb2 -from google.ads.google_ads.v0.proto.enums import listing_custom_attribute_index_pb2 -from google.ads.google_ads.v0.proto.enums import listing_group_type_pb2 from google.ads.google_ads.v0.proto.errors import media_bundle_error_pb2 from google.ads.google_ads.v0.proto.errors import media_error_pb2 -from google.ads.google_ads.v0.proto.common import metrics_pb2 -from google.ads.google_ads.v0.proto.enums import minute_of_hour_pb2 -from google.ads.google_ads.v0.proto.enums import month_of_year_pb2 from google.ads.google_ads.v0.proto.errors import multiplier_error_pb2 from google.ads.google_ads.v0.proto.errors import mutate_error_pb2 from google.ads.google_ads.v0.proto.errors import new_resource_creation_error_pb2 @@ -130,40 +132,71 @@ from google.ads.google_ads.v0.proto.errors import null_error_pb2 from google.ads.google_ads.v0.proto.errors import operation_access_denied_error_pb2 from google.ads.google_ads.v0.proto.errors import operator_error_pb2 -from google.ads.google_ads.v0.proto.enums import page_one_promoted_strategy_goal_pb2 from google.ads.google_ads.v0.proto.errors import policy_finding_error_pb2 -from google.ads.google_ads.v0.proto.common import policy_pb2 -from google.ads.google_ads.v0.proto.enums import policy_topic_entry_type_pb2 -from google.ads.google_ads.v0.proto.enums import policy_topic_evidence_destination_mismatch_url_type_pb2 -from google.ads.google_ads.v0.proto.enums import product_condition_pb2 -from google.ads.google_ads.v0.proto.enums import product_type_level_pb2 -from google.ads.google_ads.v0.proto.enums import quality_score_bucket_pb2 from google.ads.google_ads.v0.proto.errors import query_error_pb2 from google.ads.google_ads.v0.proto.errors import quota_error_pb2 from google.ads.google_ads.v0.proto.errors import range_error_pb2 from google.ads.google_ads.v0.proto.errors import recommendation_error_pb2 -from google.ads.google_ads.v0.proto.resources import recommendation_pb2 -from google.ads.google_ads.v0.proto.services import recommendation_service_pb2 -from google.ads.google_ads.v0.proto.enums import recommendation_type_pb2 from google.ads.google_ads.v0.proto.errors import region_code_error_pb2 from google.ads.google_ads.v0.proto.errors import request_error_pb2 from google.ads.google_ads.v0.proto.errors import resource_access_denied_error_pb2 from google.ads.google_ads.v0.proto.errors import resource_count_limit_exceeded_error_pb2 from google.ads.google_ads.v0.proto.errors import setting_error_pb2 from google.ads.google_ads.v0.proto.errors import shared_criterion_error_pb2 -from google.ads.google_ads.v0.proto.resources import shared_criterion_pb2 -from google.ads.google_ads.v0.proto.services import shared_criterion_service_pb2 from google.ads.google_ads.v0.proto.errors import shared_set_error_pb2 -from google.ads.google_ads.v0.proto.resources import shared_set_pb2 -from google.ads.google_ads.v0.proto.services import shared_set_service_pb2 -from google.ads.google_ads.v0.proto.enums import shared_set_status_pb2 -from google.ads.google_ads.v0.proto.enums import shared_set_type_pb2 -from google.ads.google_ads.v0.proto.enums import slot_pb2 from google.ads.google_ads.v0.proto.errors import string_format_error_pb2 from google.ads.google_ads.v0.proto.errors import string_length_error_pb2 -from google.ads.google_ads.v0.proto.enums import target_cpa_opt_in_recommendation_goal_pb2 from google.ads.google_ads.v0.proto.errors import url_field_error_pb2 -from google.ads.google_ads.v0.proto.common import value_pb2 +from google.ads.google_ads.v0.proto.resources import account_budget_pb2 +from google.ads.google_ads.v0.proto.resources import account_budget_proposal_pb2 +from google.ads.google_ads.v0.proto.resources import ad_group_ad_pb2 +from google.ads.google_ads.v0.proto.resources import ad_group_bid_modifier_pb2 +from google.ads.google_ads.v0.proto.resources import ad_group_criterion_pb2 +from google.ads.google_ads.v0.proto.resources import ad_group_pb2 +from google.ads.google_ads.v0.proto.resources import ad_pb2 +from google.ads.google_ads.v0.proto.resources import bidding_strategy_pb2 +from google.ads.google_ads.v0.proto.resources import billing_setup_pb2 +from google.ads.google_ads.v0.proto.resources import campaign_bid_modifier_pb2 +from google.ads.google_ads.v0.proto.resources import campaign_budget_pb2 +from google.ads.google_ads.v0.proto.resources import campaign_criterion_pb2 +from google.ads.google_ads.v0.proto.resources import campaign_group_pb2 +from google.ads.google_ads.v0.proto.resources import campaign_pb2 +from google.ads.google_ads.v0.proto.resources import campaign_shared_set_pb2 +from google.ads.google_ads.v0.proto.resources import change_status_pb2 +from google.ads.google_ads.v0.proto.resources import conversion_action_pb2 +from google.ads.google_ads.v0.proto.resources import customer_pb2 +from google.ads.google_ads.v0.proto.resources import geo_target_constant_pb2 +from google.ads.google_ads.v0.proto.resources import google_ads_field_pb2 +from google.ads.google_ads.v0.proto.resources import keyword_view_pb2 +from google.ads.google_ads.v0.proto.resources import recommendation_pb2 +from google.ads.google_ads.v0.proto.resources import shared_criterion_pb2 +from google.ads.google_ads.v0.proto.resources import shared_set_pb2 +from google.ads.google_ads.v0.proto.resources import video_pb2 +from google.ads.google_ads.v0.proto.services import account_budget_proposal_service_pb2 +from google.ads.google_ads.v0.proto.services import ad_group_ad_service_pb2 +from google.ads.google_ads.v0.proto.services import ad_group_bid_modifier_service_pb2 +from google.ads.google_ads.v0.proto.services import ad_group_criterion_service_pb2 +from google.ads.google_ads.v0.proto.services import ad_group_service_pb2 +from google.ads.google_ads.v0.proto.services import bidding_strategy_service_pb2 +from google.ads.google_ads.v0.proto.services import billing_setup_service_pb2 +from google.ads.google_ads.v0.proto.services import campaign_bid_modifier_service_pb2 +from google.ads.google_ads.v0.proto.services import campaign_budget_service_pb2 +from google.ads.google_ads.v0.proto.services import campaign_criterion_service_pb2 +from google.ads.google_ads.v0.proto.services import campaign_group_service_pb2 +from google.ads.google_ads.v0.proto.services import campaign_service_pb2 +from google.ads.google_ads.v0.proto.services import campaign_shared_set_service_pb2 +from google.ads.google_ads.v0.proto.services import change_status_service_pb2 +from google.ads.google_ads.v0.proto.services import conversion_action_service_pb2 +from google.ads.google_ads.v0.proto.services import customer_service_pb2 +from google.ads.google_ads.v0.proto.services import geo_target_constant_service_pb2 +from google.ads.google_ads.v0.proto.services import google_ads_field_service_pb2 +from google.ads.google_ads.v0.proto.services import google_ads_service_pb2 +from google.ads.google_ads.v0.proto.services import keyword_view_service_pb2 +from google.ads.google_ads.v0.proto.services import recommendation_service_pb2 +from google.ads.google_ads.v0.proto.services import shared_criterion_service_pb2 +from google.ads.google_ads.v0.proto.services import shared_set_service_pb2 +from google.ads.google_ads.v0.proto.services import video_service_pb2 +from google.api import http_pb2 from google.protobuf import any_pb2 from google.protobuf import descriptor_pb2 from google.protobuf import field_mask_pb2 @@ -171,68 +204,99 @@ from google.rpc import status_pb2 _shared_modules = [ - http_pb2, - ad_customizer_error_pb2, - ad_error_pb2, - ad_group_ad_error_pb2, - ad_group_ad_pb2, + ad_type_infos_pb2, + bidding_pb2, + criteria_pb2, + custom_parameter_pb2, + metrics_pb2, + policy_pb2, + value_pb2, + account_budget_proposal_status_pb2, + account_budget_proposal_type_pb2, ad_group_ad_status_pb2, - ad_group_bid_modifier_error_pb2, - ad_group_bid_modifier_pb2, - ad_group_criterion_error_pb2, - ad_group_criterion_pb2, ad_group_criterion_status_pb2, - ad_group_error_pb2, - ad_group_pb2, ad_group_status_pb2, ad_group_type_pb2, ad_network_type_pb2, - ad_pb2, ad_serving_optimization_status_pb2, - ad_sharing_error_pb2, - ad_type_infos_pb2, ad_type_pb2, advertising_channel_sub_type_pb2, advertising_channel_type_pb2, - adx_error_pb2, - authentication_error_pb2, - authorization_error_pb2, + attribution_model_pb2, bid_modifier_source_pb2, - bidding_error_pb2, - bidding_pb2, bidding_source_pb2, - bidding_strategy_error_pb2, - bidding_strategy_pb2, bidding_strategy_type_pb2, + billing_setup_status_pb2, budget_delivery_method_pb2, budget_status_pb2, - campaign_bid_modifier_pb2, + campaign_group_status_pb2, + campaign_serving_status_pb2, + campaign_shared_set_status_pb2, + campaign_status_pb2, + change_status_operation_pb2, + conversion_action_category_pb2, + conversion_action_counting_type_pb2, + conversion_action_status_pb2, + conversion_action_type_pb2, + criterion_type_pb2, + data_driven_model_status_pb2, + day_of_week_pb2, + device_pb2, + google_ads_field_category_pb2, + google_ads_field_data_type_pb2, + hotel_date_selection_type_pb2, + interaction_type_pb2, + keyword_match_type_pb2, + listing_custom_attribute_index_pb2, + listing_group_type_pb2, + minute_of_hour_pb2, + month_of_year_pb2, + page_one_promoted_strategy_goal_pb2, + policy_approval_status_pb2, + policy_review_status_pb2, + policy_topic_entry_type_pb2, + policy_topic_evidence_destination_mismatch_url_type_pb2, + product_channel_exclusivity_pb2, + product_channel_pb2, + product_condition_pb2, + product_type_level_pb2, + quality_score_bucket_pb2, + recommendation_type_pb2, + resource_type_pb2, + shared_set_status_pb2, + shared_set_type_pb2, + slot_pb2, + spending_limit_type_pb2, + target_cpa_opt_in_recommendation_goal_pb2, + time_type_pb2, + tracking_code_page_format_pb2, + tracking_code_type_pb2, + account_budget_proposal_error_pb2, + ad_customizer_error_pb2, + ad_error_pb2, + ad_group_ad_error_pb2, + ad_group_bid_modifier_error_pb2, + ad_group_criterion_error_pb2, + ad_group_error_pb2, + ad_sharing_error_pb2, + adx_error_pb2, + authentication_error_pb2, + authorization_error_pb2, + bidding_error_pb2, + bidding_strategy_error_pb2, campaign_budget_error_pb2, - campaign_budget_pb2, campaign_criterion_error_pb2, - campaign_criterion_pb2, campaign_error_pb2, campaign_group_error_pb2, - campaign_group_pb2, - campaign_group_status_pb2, - campaign_pb2, - campaign_serving_status_pb2, campaign_shared_set_error_pb2, - campaign_shared_set_pb2, - campaign_shared_set_status_pb2, - campaign_status_pb2, + change_status_error_pb2, collection_size_error_pb2, context_error_pb2, - criteria_pb2, + conversion_action_error_pb2, criterion_error_pb2, - criterion_type_pb2, - custom_parameter_pb2, - customer_pb2, database_error_pb2, date_error_pb2, date_range_error_pb2, - day_of_week_pb2, - device_pb2, distinct_error_pb2, enum_error_pb2, errors_pb2, @@ -241,26 +305,13 @@ field_mask_error_pb2, function_error_pb2, function_parsing_error_pb2, - geo_target_constant_pb2, - google_ads_field_category_pb2, - google_ads_field_data_type_pb2, - google_ads_field_pb2, header_error_pb2, - hotel_date_selection_type_pb2, id_error_pb2, image_error_pb2, - interaction_type_pb2, internal_error_pb2, - keyword_match_type_pb2, - keyword_view_pb2, list_operation_error_pb2, - listing_custom_attribute_index_pb2, - listing_group_type_pb2, media_bundle_error_pb2, media_error_pb2, - metrics_pb2, - minute_of_hour_pb2, - month_of_year_pb2, multiplier_error_pb2, mutate_error_pb2, new_resource_creation_error_pb2, @@ -268,37 +319,47 @@ null_error_pb2, operation_access_denied_error_pb2, operator_error_pb2, - page_one_promoted_strategy_goal_pb2, policy_finding_error_pb2, - policy_pb2, - policy_topic_entry_type_pb2, - policy_topic_evidence_destination_mismatch_url_type_pb2, - product_condition_pb2, - product_type_level_pb2, - quality_score_bucket_pb2, query_error_pb2, quota_error_pb2, range_error_pb2, recommendation_error_pb2, - recommendation_pb2, - recommendation_type_pb2, region_code_error_pb2, request_error_pb2, resource_access_denied_error_pb2, resource_count_limit_exceeded_error_pb2, setting_error_pb2, shared_criterion_error_pb2, - shared_criterion_pb2, shared_set_error_pb2, - shared_set_pb2, - shared_set_status_pb2, - shared_set_type_pb2, - slot_pb2, string_format_error_pb2, string_length_error_pb2, - target_cpa_opt_in_recommendation_goal_pb2, url_field_error_pb2, - value_pb2, + account_budget_pb2, + account_budget_proposal_pb2, + ad_group_ad_pb2, + ad_group_bid_modifier_pb2, + ad_group_criterion_pb2, + ad_group_pb2, + ad_pb2, + bidding_strategy_pb2, + billing_setup_pb2, + campaign_bid_modifier_pb2, + campaign_budget_pb2, + campaign_criterion_pb2, + campaign_group_pb2, + campaign_pb2, + campaign_shared_set_pb2, + change_status_pb2, + conversion_action_pb2, + customer_pb2, + geo_target_constant_pb2, + google_ads_field_pb2, + keyword_view_pb2, + recommendation_pb2, + shared_criterion_pb2, + shared_set_pb2, + video_pb2, + http_pb2, any_pb2, descriptor_pb2, field_mask_pb2, @@ -307,17 +368,21 @@ ] _local_modules = [ + account_budget_proposal_service_pb2, ad_group_ad_service_pb2, ad_group_bid_modifier_service_pb2, ad_group_criterion_service_pb2, ad_group_service_pb2, bidding_strategy_service_pb2, + billing_setup_service_pb2, campaign_bid_modifier_service_pb2, campaign_budget_service_pb2, campaign_criterion_service_pb2, campaign_group_service_pb2, campaign_service_pb2, campaign_shared_set_service_pb2, + change_status_service_pb2, + conversion_action_service_pb2, customer_service_pb2, geo_target_constant_service_pb2, google_ads_field_service_pb2, @@ -326,6 +391,7 @@ recommendation_service_pb2, shared_criterion_service_pb2, shared_set_service_pb2, + video_service_pb2, ] names = [] @@ -336,7 +402,7 @@ names.append(name) for module in _local_modules: for name, message in get_messages(module).items(): - message.__module__ = 'google.cloud.ads.googleads_v0.types' + message.__module__ = 'google.ads.googleads_v0.types' setattr(sys.modules[__name__], name, message) names.append(name) diff --git a/setup.py b/setup.py index 174a8567f..00f147509 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ setup( name='google-ads', - version='0.2.0', + version='0.3.0', author='Google LLC', author_email='googleapis-packages@google.com', classifiers=[ @@ -56,8 +56,8 @@ tests_require=tests_require, test_suite='tests', license='Apache 2.0', - packages=find_packages(exclude=('tests*', )), - namespace_packages=['google', 'google.ads', 'google.ads.google_ads'], + packages=find_packages(exclude=['examples', 'examples.*', 'tests', 'tests.*']), + namespace_packages=['google', 'google.ads'], url='https://github.com/googleads/google-ads-python', zip_safe=False, )