From 0eade60531d9409160d63def0ef21599d112b559 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 13 Mar 2024 03:18:12 +0000 Subject: [PATCH] feat: Automated regeneration of SearchAds360 client --- clients/search_ads360/.gitignore | 37 ++ clients/search_ads360/LICENSE | 201 ++++++++ clients/search_ads360/README.md | 23 + clients/search_ads360/config/config.exs | 20 + .../search_ads360/v0/api/customers.ex | 324 +++++++++++++ .../v0/api/search_ads360_fields.ex | 170 +++++++ .../google_api/search_ads360/v0/connection.ex | 32 ++ .../google_api/search_ads360/v0/metadata.ex | 26 ++ ...earchads360_v0_common__ad_schedule_info.ex | 63 +++ ..._searchads360_v0_common__age_range_info.ex | 51 +++ ...360_v0_common__asset_interaction_target.ex | 54 +++ ...ads_searchads360_v0_common__asset_usage.ex | 54 +++ ...s_searchads360_v0_common__audience_info.ex | 51 +++ ...60_v0_common__business_profile_location.ex | 57 +++ ...hads360_v0_common__call_to_action_asset.ex | 51 +++ ...earchads360_v0_common__custom_parameter.ex | 54 +++ ...ads_searchads360_v0_common__device_info.ex | 51 +++ ...ds_searchads360_v0_common__enhanced_cpc.ex | 46 ++ ...chads360_v0_common__frequency_cap_entry.ex | 46 ++ ...ads_searchads360_v0_common__gender_info.ex | 51 +++ ...ads_searchads360_v0_common__image_asset.ex | 62 +++ ...searchads360_v0_common__image_dimension.ex | 57 +++ ...gle_ads_searchads360_v0_common__keyword.ex | 50 ++ ...ds_searchads360_v0_common__keyword_info.ex | 54 +++ ...s_searchads360_v0_common__language_info.ex | 51 +++ ...rchads360_v0_common__listing_group_info.ex | 51 +++ ...chads360_v0_common__location_group_info.ex | 60 +++ ...s_searchads360_v0_common__location_info.ex | 51 +++ ..._ads_searchads360_v0_common__manual_cpa.ex | 43 ++ ..._ads_searchads360_v0_common__manual_cpc.ex | 48 ++ ..._ads_searchads360_v0_common__manual_cpm.ex | 43 ++ ...60_v0_common__maximize_conversion_value.ex | 57 +++ ...hads360_v0_common__maximize_conversions.ex | 57 +++ ...gle_ads_searchads360_v0_common__metrics.ex | 310 +++++++++++++ ...earchads360_v0_common__mobile_app_asset.ex | 54 +++ ...ads_searchads360_v0_common__percent_cpc.ex | 54 +++ ...60_v0_common__real_time_bidding_setting.ex | 51 +++ ..._ads360_expanded_dynamic_search_ad_info.ex | 59 +++ ...on__search_ads360_expanded_text_ad_info.ex | 74 +++ ...0_common__search_ads360_product_ad_info.ex | 46 ++ ...search_ads360_responsive_search_ad_info.ex | 59 +++ ...0_v0_common__search_ads360_text_ad_info.ex | 66 +++ ...le_ads_searchads360_v0_common__segments.ex | 238 ++++++++++ ..._ads_searchads360_v0_common__target_cpa.ex | 54 +++ ..._ads_searchads360_v0_common__target_cpm.ex | 43 ++ ...s360_v0_common__target_impression_share.ex | 57 +++ ...hads360_v0_common__target_outrank_share.ex | 51 +++ ...rchads360_v0_common__target_restriction.ex | 54 +++ ...ads_searchads360_v0_common__target_roas.ex | 57 +++ ...ds_searchads360_v0_common__target_spend.ex | 54 +++ ...archads360_v0_common__targeting_setting.ex | 58 +++ ..._ads_searchads360_v0_common__text_asset.ex | 48 ++ ..._ads_searchads360_v0_common__text_label.ex | 51 +++ ...rchads360_v0_common__unified_call_asset.ex | 84 ++++ ...ads360_v0_common__unified_callout_asset.ex | 69 +++ ...ds360_v0_common__unified_location_asset.ex | 65 +++ ...s360_v0_common__unified_page_feed_asset.ex | 54 +++ ...ds360_v0_common__unified_sitelink_asset.ex | 81 ++++ ..._searchads360_v0_common__user_list_info.ex | 51 +++ ...oogle_ads_searchads360_v0_common__value.ex | 58 +++ ...ds360_v0_common__webpage_condition_info.ex | 57 +++ ...ds_searchads360_v0_common__webpage_info.ex | 65 +++ ...chads360_v0_common__youtube_video_asset.ex | 54 +++ ..._ads_searchads360_v0_errors__error_code.ex | 84 ++++ ...s_searchads360_v0_errors__error_details.ex | 59 +++ ..._searchads360_v0_errors__error_location.ex | 59 +++ ...ors__error_location__field_path_element.ex | 56 +++ ...chads360_v0_errors__quota_error_details.ex | 57 +++ ...chads360_v0_errors__search_ads360_error.ex | 69 +++ ...ads360_v0_errors__search_ads360_failure.ex | 62 +++ ...oogle_ads_searchads360_v0_resources__ad.ex | 107 +++++ ...ads_searchads360_v0_resources__ad_group.ex | 102 +++++ ..._searchads360_v0_resources__ad_group_ad.ex | 72 +++ ...hads360_v0_resources__ad_group_ad_label.ex | 57 +++ ...archads360_v0_resources__ad_group_asset.ex | 60 +++ ...ads360_v0_resources__ad_group_asset_set.ex | 60 +++ ...60_v0_resources__ad_group_audience_view.ex | 51 +++ ...360_v0_resources__ad_group_bid_modifier.ex | 58 +++ ...ads360_v0_resources__ad_group_criterion.ex | 151 ++++++ ..._ad_group_criterion__position_estimates.ex | 53 +++ ...urces__ad_group_criterion__quality_info.ex | 53 +++ ..._v0_resources__ad_group_criterion_label.ex | 57 +++ ...archads360_v0_resources__ad_group_label.ex | 57 +++ ...archads360_v0_resources__age_range_view.ex | 51 +++ ...le_ads_searchads360_v0_resources__asset.ex | 149 ++++++ ..._searchads360_v0_resources__asset_group.ex | 78 ++++ ...hads360_v0_resources__asset_group_asset.ex | 63 +++ ...ces__asset_group_asset_combination_data.ex | 58 +++ ...urces__asset_group_listing_group_filter.ex | 88 ++++ ...ads360_v0_resources__asset_group_signal.ex | 58 +++ ...urces__asset_group_top_combination_view.ex | 65 +++ ...ds_searchads360_v0_resources__asset_set.ex | 54 +++ ...rchads360_v0_resources__asset_set_asset.ex | 60 +++ ...ads_searchads360_v0_resources__audience.ex | 60 +++ ...chads360_v0_resources__bidding_strategy.ex | 133 ++++++ ...ads_searchads360_v0_resources__campaign.ex | 276 +++++++++++ ...s__campaign__dynamic_search_ads_setting.ex | 59 +++ ...rces__campaign__geo_target_type_setting.ex | 56 +++ ...0_resources__campaign__network_settings.ex | 60 +++ ...es__campaign__optimization_goal_setting.ex | 53 +++ ...urces__campaign__selective_optimization.ex | 53 +++ ...0_resources__campaign__shopping_setting.ex | 66 +++ ...0_resources__campaign__tracking_setting.ex | 51 +++ ...archads360_v0_resources__campaign_asset.ex | 60 +++ ...ads360_v0_resources__campaign_asset_set.ex | 60 +++ ...60_v0_resources__campaign_audience_view.ex | 51 +++ ...rchads360_v0_resources__campaign_budget.ex | 60 +++ ...ads360_v0_resources__campaign_criterion.ex | 113 +++++ ...archads360_v0_resources__campaign_label.ex | 57 +++ ...s360_v0_resources__cart_data_sales_view.ex | 51 +++ ...s_searchads360_v0_resources__conversion.ex | 120 +++++ ...hads360_v0_resources__conversion_action.ex | 116 +++++ ...sion_action__attribution_model_settings.ex | 56 +++ ..._conversion_action__floodlight_settings.ex | 59 +++ ...rces__conversion_action__value_settings.ex | 59 +++ ...0_resources__conversion_custom_variable.ex | 85 ++++ ...odlight_conversion_custom_variable_info.ex | 56 +++ ..._resources__conversion_tracking_setting.ex | 69 +++ ...earchads360_v0_resources__custom_column.ex | 75 +++ ...ads_searchads360_v0_resources__customer.ex | 112 +++++ ...archads360_v0_resources__customer_asset.ex | 57 +++ ...ads360_v0_resources__customer_asset_set.ex | 60 +++ ...rchads360_v0_resources__customer_client.ex | 84 ++++ ...360_v0_resources__customer_manager_link.ex | 60 +++ ...__double_click_campaign_manager_setting.ex | 59 +++ ...es__dynamic_search_ads_search_term_view.ex | 56 +++ ..._searchads360_v0_resources__gender_view.ex | 51 +++ ...ds360_v0_resources__geo_target_constant.ex | 72 +++ ...searchads360_v0_resources__keyword_view.ex | 51 +++ ...le_ads_searchads360_v0_resources__label.ex | 61 +++ ...hads360_v0_resources__language_constant.ex | 63 +++ ...sources__listing_group_filter_dimension.ex | 112 +++++ ...ter_dimension__product_bidding_category.ex | 56 +++ ...g_group_filter_dimension__product_brand.ex | 53 +++ ...group_filter_dimension__product_channel.ex | 53 +++ ...oup_filter_dimension__product_condition.ex | 53 +++ ...ter_dimension__product_custom_attribute.ex | 56 +++ ...group_filter_dimension__product_item_id.ex | 53 +++ ...ng_group_filter_dimension__product_type.ex | 56 +++ ...es__listing_group_filter_dimension_path.ex | 61 +++ ...earchads360_v0_resources__location_view.ex | 51 +++ ...rces__product_bidding_category_constant.ex | 74 +++ ...ads360_v0_resources__product_group_view.ex | 51 +++ ...ds360_v0_resources__search_ads360_field.ex | 90 ++++ ...v0_resources__shopping_performance_view.ex | 51 +++ ...ds_searchads360_v0_resources__user_list.ex | 60 +++ ...le_ads_searchads360_v0_resources__visit.ex | 87 ++++ ...searchads360_v0_resources__webpage_view.ex | 51 +++ ...ces__conversion_custom_dimension_header.ex | 56 +++ ...rvices__conversion_custom_metric_header.ex | 56 +++ ...ds360_v0_services__custom_column_header.ex | 57 +++ ...ces__list_accessible_customers_response.ex | 53 +++ ..._services__list_custom_columns_response.ex | 58 +++ ...__raw_event_conversion_dimension_header.ex | 56 +++ ...ces__raw_event_conversion_metric_header.ex | 56 +++ ...chads360_v0_services__search_ads360_row.ex | 432 ++++++++++++++++++ ...es__search_search_ads360_fields_request.ex | 59 +++ ...s__search_search_ads360_fields_response.ex | 68 +++ ..._services__search_search_ads360_request.ex | 66 +++ ...services__search_search_ads360_response.ex | 136 ++++++ clients/search_ads360/mix.exs | 66 +++ clients/search_ads360/test/test_helper.exs | 35 ++ 162 files changed, 11552 insertions(+) create mode 100644 clients/search_ads360/.gitignore create mode 100644 clients/search_ads360/LICENSE create mode 100644 clients/search_ads360/README.md create mode 100644 clients/search_ads360/config/config.exs create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/api/customers.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/api/search_ads360_fields.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/connection.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/metadata.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__ad_schedule_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__age_range_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__asset_interaction_target.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__asset_usage.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__audience_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__business_profile_location.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__call_to_action_asset.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__custom_parameter.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__device_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__enhanced_cpc.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__frequency_cap_entry.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__gender_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__image_asset.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__image_dimension.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__keyword.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__keyword_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__language_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__listing_group_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__location_group_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__location_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__manual_cpa.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__manual_cpc.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__manual_cpm.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__maximize_conversion_value.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__maximize_conversions.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__metrics.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__mobile_app_asset.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__percent_cpc.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__real_time_bidding_setting.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_expanded_dynamic_search_ad_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_expanded_text_ad_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_product_ad_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_responsive_search_ad_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_text_ad_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__segments.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_cpa.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_cpm.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_impression_share.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_outrank_share.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_restriction.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_roas.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_spend.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__targeting_setting.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__text_asset.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__text_label.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_call_asset.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_callout_asset.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_location_asset.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_page_feed_asset.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_sitelink_asset.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__user_list_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__value.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__webpage_condition_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__webpage_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__youtube_video_asset.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__error_code.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__error_details.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__error_location.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__error_location__field_path_element.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__quota_error_details.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__search_ads360_error.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__search_ads360_failure.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_ad.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_ad_label.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_asset.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_asset_set.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_audience_view.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_bid_modifier.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_criterion.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_criterion__position_estimates.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_criterion__quality_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_criterion_label.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_label.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__age_range_view.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_asset.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_asset_combination_data.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_listing_group_filter.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_signal.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_top_combination_view.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_set.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_set_asset.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__audience.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__bidding_strategy.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__dynamic_search_ads_setting.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__geo_target_type_setting.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__network_settings.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__optimization_goal_setting.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__selective_optimization.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__shopping_setting.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__tracking_setting.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_asset.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_asset_set.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_audience_view.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_budget.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_criterion.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_label.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__cart_data_sales_view.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_action.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_action__attribution_model_settings.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_action__floodlight_settings.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_action__value_settings.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_custom_variable.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_custom_variable__floodlight_conversion_custom_variable_info.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_tracking_setting.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__custom_column.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer_asset.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer_asset_set.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer_client.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer_manager_link.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__double_click_campaign_manager_setting.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__dynamic_search_ads_search_term_view.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__gender_view.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__geo_target_constant.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__keyword_view.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__label.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__language_constant.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_bidding_category.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_brand.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_channel.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_condition.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_custom_attribute.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_item_id.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_type.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension_path.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__location_view.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__product_bidding_category_constant.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__product_group_view.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__search_ads360_field.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__shopping_performance_view.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__user_list.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__visit.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__webpage_view.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__conversion_custom_dimension_header.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__conversion_custom_metric_header.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__custom_column_header.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__list_accessible_customers_response.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__list_custom_columns_response.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__raw_event_conversion_dimension_header.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__raw_event_conversion_metric_header.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_ads360_row.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_search_ads360_fields_request.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_search_ads360_fields_response.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_search_ads360_request.ex create mode 100644 clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_search_ads360_response.ex create mode 100644 clients/search_ads360/mix.exs create mode 100644 clients/search_ads360/test/test_helper.exs diff --git a/clients/search_ads360/.gitignore b/clients/search_ads360/.gitignore new file mode 100644 index 0000000000..6bf4496152 --- /dev/null +++ b/clients/search_ads360/.gitignore @@ -0,0 +1,37 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +# The directory Mix will write compiled artifacts to. +/_build + +# If you run "mix test --cover", coverage assets end up here. +/cover + +# The directory Mix downloads your dependencies sources to. +/deps + +# Where 3rd-party dependencies like ExDoc output generated docs. +/doc + +# Ignore .fetch files in case you like to edit your project deps locally. +/.fetch + +# If the VM crashes, it generates a dump, let's ignore it too. +erl_crash.dump + +# Also ignore archive artifacts (built via "mix archive.build"). +*.ez diff --git a/clients/search_ads360/LICENSE b/clients/search_ads360/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/clients/search_ads360/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + 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 + + http://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. diff --git a/clients/search_ads360/README.md b/clients/search_ads360/README.md new file mode 100644 index 0000000000..49d489b54e --- /dev/null +++ b/clients/search_ads360/README.md @@ -0,0 +1,23 @@ +# GoogleApi.SearchAds360 + +Search Ads 360 Reporting API client library. + +The Search Ads 360 API allows developers to automate downloading reports from Search Ads 360. + +## Installation + +Install this package from [Hex](https://hex.pm) by adding +`google_api_search_ads360` to your list of dependencies in `mix.exs`: + +```elixir +def deps do + [{:google_api_search_ads360, "~> 0.2"}] +end +``` + +## For more information + +Product documentation is available at [https://developers.google.com/search-ads/reporting](https://developers.google.com/search-ads/reporting). + +Library reference documentation is published on Hexdocs at +[https://hexdocs.pm/google_api_search_ads360](https://hexdocs.pm/google_api_search_ads360). diff --git a/clients/search_ads360/config/config.exs b/clients/search_ads360/config/config.exs new file mode 100644 index 0000000000..07afe5f311 --- /dev/null +++ b/clients/search_ads360/config/config.exs @@ -0,0 +1,20 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +use Mix.Config + + diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/api/customers.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/api/customers.ex new file mode 100644 index 0000000000..160335ca65 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/api/customers.ex @@ -0,0 +1,324 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Api.Customers do + @moduledoc """ + API calls for all endpoints tagged `Customers`. + """ + + alias GoogleApi.SearchAds360.V0.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Returns resource names of customers directly accessible by the user authenticating the call. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QuotaError]() [RequestError]() + + ## Parameters + + * `connection` (*type:* `GoogleApi.SearchAds360.V0.Connection.t`) - Connection to server + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ListAccessibleCustomersResponse{}}` on success + * `{:error, info}` on failure + """ + @spec searchads360_customers_list_accessible_customers(Tesla.Env.client(), keyword(), keyword()) :: + {:ok, + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ListAccessibleCustomersResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def searchads360_customers_list_accessible_customers( + connection, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v0/customers:listAccessibleCustomers", %{}) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ListAccessibleCustomersResponse{} + ] + ) + end + + @doc """ + Returns the requested custom column in full detail. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SearchAds360.V0.Connection.t`) - Connection to server + * `resource_name` (*type:* `String.t`) - Required. The resource name of the custom column to fetch. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomColumn{}}` on success + * `{:error, info}` on failure + """ + @spec searchads360_customers_custom_columns_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomColumn.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def searchads360_customers_custom_columns_get( + connection, + resource_name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v0/{+resourceName}", %{ + "resourceName" => URI.encode(resource_name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomColumn{}] + ) + end + + @doc """ + Returns all the custom columns associated with the customer in full detail. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SearchAds360.V0.Connection.t`) - Connection to server + * `customer_id` (*type:* `String.t`) - Required. The ID of the customer to apply the CustomColumn list operation to. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ListCustomColumnsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec searchads360_customers_custom_columns_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ListCustomColumnsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def searchads360_customers_custom_columns_list( + connection, + customer_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v0/customers/{+customerId}/customColumns", %{ + "customerId" => URI.encode(customer_id, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ListCustomColumnsResponse{} + ] + ) + end + + @doc """ + Returns all rows that match the search query. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QueryError]() [QuotaError]() [RequestError]() + + ## Parameters + + * `connection` (*type:* `GoogleApi.SearchAds360.V0.Connection.t`) - Connection to server + * `customer_id` (*type:* `String.t`) - Required. The ID of the customer being queried. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360Request.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360Response{}}` on success + * `{:error, info}` on failure + """ + @spec searchads360_customers_search_ads360_search( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360Response.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def searchads360_customers_search_ads360_search( + connection, + customer_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v0/customers/{+customerId}/searchAds360:search", %{ + "customerId" => URI.encode(customer_id, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360Response{} + ] + ) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/api/search_ads360_fields.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/api/search_ads360_fields.ex new file mode 100644 index 0000000000..5617633299 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/api/search_ads360_fields.ex @@ -0,0 +1,170 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Api.SearchAds360Fields do + @moduledoc """ + API calls for all endpoints tagged `SearchAds360Fields`. + """ + + alias GoogleApi.SearchAds360.V0.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Returns just the requested field. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QuotaError]() [RequestError]() + + ## Parameters + + * `connection` (*type:* `GoogleApi.SearchAds360.V0.Connection.t`) - Connection to server + * `resource_name` (*type:* `String.t`) - Required. The resource name of the field to get. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_SearchAds360Field{}}` on success + * `{:error, info}` on failure + """ + @spec searchads360_search_ads360_fields_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_SearchAds360Field.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def searchads360_search_ads360_fields_get( + connection, + resource_name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v0/{+resourceName}", %{ + "resourceName" => URI.encode(resource_name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_SearchAds360Field{} + ] + ) + end + + @doc """ + Returns all fields that match the search query. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QueryError]() [QuotaError]() [RequestError]() + + ## Parameters + + * `connection` (*type:* `GoogleApi.SearchAds360.V0.Connection.t`) - Connection to server + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360FieldsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360FieldsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec searchads360_search_ads360_fields_search(Tesla.Env.client(), keyword(), keyword()) :: + {:ok, + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360FieldsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def searchads360_search_ads360_fields_search(connection, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v0/searchAds360Fields:search", %{}) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360FieldsResponse{} + ] + ) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/connection.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/connection.ex new file mode 100644 index 0000000000..f4cd312479 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/connection.ex @@ -0,0 +1,32 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Connection do + @moduledoc """ + Handle Tesla connections for GoogleApi.SearchAds360.V0. + """ + + @type t :: Tesla.Env.client() + + use GoogleApi.Gax.Connection, + scopes: [ + # View and manage your advertising data in DoubleClick Search + "https://www.googleapis.com/auth/doubleclicksearch" + ], + otp_app: :google_api_search_ads360, + base_url: "https://searchads360.googleapis.com/" +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/metadata.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/metadata.ex new file mode 100644 index 0000000000..6992cd7c7f --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/metadata.ex @@ -0,0 +1,26 @@ +# Copyright 2020 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0 do + @moduledoc """ + API client metadata for GoogleApi.SearchAds360.V0. + """ + + @discovery_revision "20240213" + + def discovery_revision(), do: @discovery_revision +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__ad_schedule_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__ad_schedule_info.ex new file mode 100644 index 0000000000..b2ad44b1e4 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__ad_schedule_info.ex @@ -0,0 +1,63 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AdScheduleInfo do + @moduledoc """ + Represents an AdSchedule criterion. AdSchedule is specified as the day of the week and a time interval within which ads will be shown. No more than six AdSchedules can be added for the same day. + + ## Attributes + + * `dayOfWeek` (*type:* `String.t`, *default:* `nil`) - Day of the week the schedule applies to. This field is required for CREATE operations and is prohibited on UPDATE operations. + * `endHour` (*type:* `integer()`, *default:* `nil`) - Ending hour in 24 hour time; 24 signifies end of the day. This field must be between 0 and 24, inclusive. This field is required for CREATE operations and is prohibited on UPDATE operations. + * `endMinute` (*type:* `String.t`, *default:* `nil`) - Minutes after the end hour at which this schedule ends. The schedule is exclusive of the end minute. This field is required for CREATE operations and is prohibited on UPDATE operations. + * `startHour` (*type:* `integer()`, *default:* `nil`) - Starting hour in 24 hour time. This field must be between 0 and 23, inclusive. This field is required for CREATE operations and is prohibited on UPDATE operations. + * `startMinute` (*type:* `String.t`, *default:* `nil`) - Minutes after the start hour at which this schedule starts. This field is required for CREATE operations and is prohibited on UPDATE operations. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dayOfWeek => String.t() | nil, + :endHour => integer() | nil, + :endMinute => String.t() | nil, + :startHour => integer() | nil, + :startMinute => String.t() | nil + } + + field(:dayOfWeek) + field(:endHour) + field(:endMinute) + field(:startHour) + field(:startMinute) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AdScheduleInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AdScheduleInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AdScheduleInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__age_range_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__age_range_info.ex new file mode 100644 index 0000000000..41a0a54dce --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__age_range_info.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AgeRangeInfo do + @moduledoc """ + An age range criterion. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - Type of the age range. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AgeRangeInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AgeRangeInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AgeRangeInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__asset_interaction_target.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__asset_interaction_target.ex new file mode 100644 index 0000000000..1adcf2a1f7 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__asset_interaction_target.ex @@ -0,0 +1,54 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AssetInteractionTarget do + @moduledoc """ + An AssetInteractionTarget segment. + + ## Attributes + + * `asset` (*type:* `String.t`, *default:* `nil`) - The asset resource name. + * `interactionOnThisAsset` (*type:* `boolean()`, *default:* `nil`) - Only used with CustomerAsset, CampaignAsset and AdGroupAsset metrics. Indicates whether the interaction metrics occurred on the asset itself or a different asset or ad unit. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :asset => String.t() | nil, + :interactionOnThisAsset => boolean() | nil + } + + field(:asset) + field(:interactionOnThisAsset) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AssetInteractionTarget do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AssetInteractionTarget.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AssetInteractionTarget do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__asset_usage.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__asset_usage.ex new file mode 100644 index 0000000000..6fa833b397 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__asset_usage.ex @@ -0,0 +1,54 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AssetUsage do + @moduledoc """ + Contains the usage information of the asset. + + ## Attributes + + * `asset` (*type:* `String.t`, *default:* `nil`) - Resource name of the asset. + * `servedAssetFieldType` (*type:* `String.t`, *default:* `nil`) - The served field type of the asset. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :asset => String.t() | nil, + :servedAssetFieldType => String.t() | nil + } + + field(:asset) + field(:servedAssetFieldType) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AssetUsage do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AssetUsage.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AssetUsage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__audience_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__audience_info.ex new file mode 100644 index 0000000000..8c6636ce4a --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__audience_info.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AudienceInfo do + @moduledoc """ + An audience criterion. + + ## Attributes + + * `audience` (*type:* `String.t`, *default:* `nil`) - The Audience resource name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :audience => String.t() | nil + } + + field(:audience) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AudienceInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AudienceInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AudienceInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__business_profile_location.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__business_profile_location.ex new file mode 100644 index 0000000000..9aa0af6d27 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__business_profile_location.ex @@ -0,0 +1,57 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_BusinessProfileLocation do + @moduledoc """ + Business Profile location data synced from the linked Business Profile account. + + ## Attributes + + * `labels` (*type:* `list(String.t)`, *default:* `nil`) - Advertiser specified label for the location on the Business Profile account. This is synced from the Business Profile account. + * `listingId` (*type:* `String.t`, *default:* `nil`) - Listing ID of this Business Profile location. This is synced from the linked Business Profile account. + * `storeCode` (*type:* `String.t`, *default:* `nil`) - Business Profile store code of this location. This is synced from the Business Profile account. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :labels => list(String.t()) | nil, + :listingId => String.t() | nil, + :storeCode => String.t() | nil + } + + field(:labels, type: :list) + field(:listingId) + field(:storeCode) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_BusinessProfileLocation do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_BusinessProfileLocation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_BusinessProfileLocation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__call_to_action_asset.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__call_to_action_asset.ex new file mode 100644 index 0000000000..6acd387db1 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__call_to_action_asset.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_CallToActionAsset do + @moduledoc """ + A call to action asset. + + ## Attributes + + * `callToAction` (*type:* `String.t`, *default:* `nil`) - Call to action. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :callToAction => String.t() | nil + } + + field(:callToAction) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_CallToActionAsset do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_CallToActionAsset.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_CallToActionAsset do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__custom_parameter.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__custom_parameter.ex new file mode 100644 index 0000000000..2d1bd12f8a --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__custom_parameter.ex @@ -0,0 +1,54 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_CustomParameter do + @moduledoc """ + A mapping that can be used by custom parameter tags in a `tracking_url_template`, `final_urls`, or `mobile_final_urls`. + + ## Attributes + + * `key` (*type:* `String.t`, *default:* `nil`) - The key matching the parameter tag name. + * `value` (*type:* `String.t`, *default:* `nil`) - The value to be substituted. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :key => String.t() | nil, + :value => String.t() | nil + } + + field(:key) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_CustomParameter do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_CustomParameter.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_CustomParameter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__device_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__device_info.ex new file mode 100644 index 0000000000..72bfce5cfb --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__device_info.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_DeviceInfo do + @moduledoc """ + A device criterion. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - Type of the device. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_DeviceInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_DeviceInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_DeviceInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__enhanced_cpc.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__enhanced_cpc.ex new file mode 100644 index 0000000000..2fbe4564d5 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__enhanced_cpc.ex @@ -0,0 +1,46 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_EnhancedCpc do + @moduledoc """ + An automated 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. This bidding strategy is deprecated and cannot be created anymore. Use ManualCpc with enhanced_cpc_enabled set to true for equivalent functionality. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_EnhancedCpc do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_EnhancedCpc.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_EnhancedCpc do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__frequency_cap_entry.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__frequency_cap_entry.ex new file mode 100644 index 0000000000..ab793fed06 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__frequency_cap_entry.ex @@ -0,0 +1,46 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_FrequencyCapEntry do + @moduledoc """ + A rule specifying the maximum number of times an ad (or some set of ads) can be shown to a user over a particular time period. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_FrequencyCapEntry do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_FrequencyCapEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_FrequencyCapEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__gender_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__gender_info.ex new file mode 100644 index 0000000000..a07444fde9 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__gender_info.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_GenderInfo do + @moduledoc """ + A gender criterion. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - Type of the gender. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_GenderInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_GenderInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_GenderInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__image_asset.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__image_asset.ex new file mode 100644 index 0000000000..9f19c3451f --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__image_asset.ex @@ -0,0 +1,62 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ImageAsset do + @moduledoc """ + An Image asset. + + ## Attributes + + * `fileSize` (*type:* `String.t`, *default:* `nil`) - File size of the image asset in bytes. + * `fullSize` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ImageDimension.t`, *default:* `nil`) - Metadata for this image at its original size. + * `mimeType` (*type:* `String.t`, *default:* `nil`) - MIME type of the image asset. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fileSize => String.t() | nil, + :fullSize => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ImageDimension.t() | nil, + :mimeType => String.t() | nil + } + + field(:fileSize) + + field(:fullSize, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ImageDimension + ) + + field(:mimeType) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ImageAsset do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ImageAsset.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ImageAsset do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__image_dimension.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__image_dimension.ex new file mode 100644 index 0000000000..df86b48042 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__image_dimension.ex @@ -0,0 +1,57 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ImageDimension do + @moduledoc """ + Metadata for an image at a certain size, either original or resized. + + ## Attributes + + * `heightPixels` (*type:* `String.t`, *default:* `nil`) - Height of the image. + * `url` (*type:* `String.t`, *default:* `nil`) - A URL that returns the image with this height and width. + * `widthPixels` (*type:* `String.t`, *default:* `nil`) - Width of the image. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :heightPixels => String.t() | nil, + :url => String.t() | nil, + :widthPixels => String.t() | nil + } + + field(:heightPixels) + field(:url) + field(:widthPixels) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ImageDimension do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ImageDimension.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ImageDimension do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__keyword.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__keyword.ex new file mode 100644 index 0000000000..42c85f8941 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__keyword.ex @@ -0,0 +1,50 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Keyword do + @moduledoc """ + A Keyword criterion segment. + + ## Attributes + + * `adGroupCriterion` (*type:* `String.t`, *default:* `nil`) - The AdGroupCriterion resource name. + * `info` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_KeywordInfo.t`, *default:* `nil`) - Keyword info. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adGroupCriterion => String.t() | nil, + :info => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_KeywordInfo.t() | nil + } + + field(:adGroupCriterion) + field(:info, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_KeywordInfo) +end + +defimpl Poison.Decoder, for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Keyword do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Keyword.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Keyword do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__keyword_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__keyword_info.ex new file mode 100644 index 0000000000..d6b02d3ec0 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__keyword_info.ex @@ -0,0 +1,54 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_KeywordInfo do + @moduledoc """ + A keyword criterion. + + ## Attributes + + * `matchType` (*type:* `String.t`, *default:* `nil`) - The match type of the keyword. + * `text` (*type:* `String.t`, *default:* `nil`) - The text of the keyword (at most 80 characters and 10 words). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :matchType => String.t() | nil, + :text => String.t() | nil + } + + field(:matchType) + field(:text) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_KeywordInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_KeywordInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_KeywordInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__language_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__language_info.ex new file mode 100644 index 0000000000..b1f2d968ea --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__language_info.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LanguageInfo do + @moduledoc """ + A language criterion. + + ## Attributes + + * `languageConstant` (*type:* `String.t`, *default:* `nil`) - The language constant resource name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :languageConstant => String.t() | nil + } + + field(:languageConstant) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LanguageInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LanguageInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LanguageInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__listing_group_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__listing_group_info.ex new file mode 100644 index 0000000000..f95fd6e140 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__listing_group_info.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ListingGroupInfo do + @moduledoc """ + A listing group criterion. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - Type of the listing group. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ListingGroupInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ListingGroupInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ListingGroupInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__location_group_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__location_group_info.ex new file mode 100644 index 0000000000..32ce1631de --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__location_group_info.ex @@ -0,0 +1,60 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationGroupInfo do + @moduledoc """ + A radius around a list of locations specified through a feed. + + ## Attributes + + * `feedItemSets` (*type:* `list(String.t)`, *default:* `nil`) - FeedItemSets whose FeedItems are targeted. If multiple IDs are specified, then all items that appear in at least one set are targeted. This field cannot be used with geo_target_constants. This is optional and can only be set in CREATE operations. + * `geoTargetConstants` (*type:* `list(String.t)`, *default:* `nil`) - Geo target constant(s) restricting the scope of the geographic area within the feed. Currently only one geo target constant is allowed. + * `radius` (*type:* `String.t`, *default:* `nil`) - Distance in units specifying the radius around targeted locations. This is required and must be set in CREATE operations. + * `radiusUnits` (*type:* `String.t`, *default:* `nil`) - Unit of the radius. Miles and meters are supported for geo target constants. Milli miles and meters are supported for feed item sets. This is required and must be set in CREATE operations. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :feedItemSets => list(String.t()) | nil, + :geoTargetConstants => list(String.t()) | nil, + :radius => String.t() | nil, + :radiusUnits => String.t() | nil + } + + field(:feedItemSets, type: :list) + field(:geoTargetConstants, type: :list) + field(:radius) + field(:radiusUnits) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationGroupInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationGroupInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationGroupInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__location_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__location_info.ex new file mode 100644 index 0000000000..80db97996a --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__location_info.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationInfo do + @moduledoc """ + A location criterion. + + ## Attributes + + * `geoTargetConstant` (*type:* `String.t`, *default:* `nil`) - The geo target constant resource name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :geoTargetConstant => String.t() | nil + } + + field(:geoTargetConstant) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__manual_cpa.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__manual_cpa.ex new file mode 100644 index 0000000000..42f1139c11 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__manual_cpa.ex @@ -0,0 +1,43 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpa do + @moduledoc """ + Manual bidding strategy that allows advertiser to set the bid per advertiser-specified action. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpa do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpa.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpa do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__manual_cpc.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__manual_cpc.ex new file mode 100644 index 0000000000..8fe89cc7ca --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__manual_cpc.ex @@ -0,0 +1,48 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpc do + @moduledoc """ + Manual click-based bidding where user pays per click. + + ## Attributes + + * `enhancedCpcEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether bids are to be enhanced based on conversion optimizer data. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enhancedCpcEnabled => boolean() | nil + } + + field(:enhancedCpcEnabled) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpc do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpc.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpc do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__manual_cpm.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__manual_cpm.ex new file mode 100644 index 0000000000..06df2b1825 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__manual_cpm.ex @@ -0,0 +1,43 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpm do + @moduledoc """ + Manual impression-based bidding where user pays per thousand impressions. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpm do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpm.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpm do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__maximize_conversion_value.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__maximize_conversion_value.ex new file mode 100644 index 0000000000..3ef1a38291 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__maximize_conversion_value.ex @@ -0,0 +1,57 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversionValue do + @moduledoc """ + An automated bidding strategy to help get the most conversion value for your campaigns while spending your budget. + + ## Attributes + + * `cpcBidCeilingMicros` (*type:* `String.t`, *default:* `nil`) - Maximum bid limit that can be set by the bid strategy. The limit applies to all keywords managed by the strategy. Mutable for portfolio bidding strategies only. + * `cpcBidFloorMicros` (*type:* `String.t`, *default:* `nil`) - Minimum bid limit that can be set by the bid strategy. The limit applies to all keywords managed by the strategy. Mutable for portfolio bidding strategies only. + * `targetRoas` (*type:* `float()`, *default:* `nil`) - The target return on ad spend (ROAS) option. If set, the bid strategy will maximize revenue while averaging the target return on ad spend. If the target ROAS is high, the bid strategy may not be able to spend the full budget. If the target ROAS is not set, the bid strategy will aim to achieve the highest possible ROAS for the budget. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cpcBidCeilingMicros => String.t() | nil, + :cpcBidFloorMicros => String.t() | nil, + :targetRoas => float() | nil + } + + field(:cpcBidCeilingMicros) + field(:cpcBidFloorMicros) + field(:targetRoas) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversionValue do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversionValue.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversionValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__maximize_conversions.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__maximize_conversions.ex new file mode 100644 index 0000000000..574ca651b0 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__maximize_conversions.ex @@ -0,0 +1,57 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversions do + @moduledoc """ + An automated bidding strategy to help get the most conversions for your campaigns while spending your budget. + + ## Attributes + + * `cpcBidCeilingMicros` (*type:* `String.t`, *default:* `nil`) - Maximum bid limit that can be set by the bid strategy. The limit applies to all keywords managed by the strategy. Mutable for portfolio bidding strategies only. + * `cpcBidFloorMicros` (*type:* `String.t`, *default:* `nil`) - Minimum bid limit that can be set by the bid strategy. The limit applies to all keywords managed by the strategy. Mutable for portfolio bidding strategies only. + * `targetCpaMicros` (*type:* `String.t`, *default:* `nil`) - The target cost-per-action (CPA) option. This is the average amount that you would like to spend per conversion action specified in micro units of the bidding strategy's currency. If set, the bid strategy will get as many conversions as possible at or below the target cost-per-action. If the target CPA is not set, the bid strategy will aim to achieve the lowest possible CPA given the budget. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cpcBidCeilingMicros => String.t() | nil, + :cpcBidFloorMicros => String.t() | nil, + :targetCpaMicros => String.t() | nil + } + + field(:cpcBidCeilingMicros) + field(:cpcBidFloorMicros) + field(:targetCpaMicros) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversions do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__metrics.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__metrics.ex new file mode 100644 index 0000000000..53fc8ede49 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__metrics.ex @@ -0,0 +1,310 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Metrics do + @moduledoc """ + Metrics data. + + ## Attributes + + * `clientAccountCrossSellGrossProfitMicros` (*type:* `String.t`, *default:* `nil`) - Client account cross-sell gross profit is the profit you made from products sold as a result of advertising a different product, minus cost of goods sold (COGS). How it works: You report conversions with cart data for completed purchases on your website. If the ad that was interacted with before the purchase has an associated product (see Shopping Ads) then this product is considered the advertised product. Any product included in the purchase is a sold product. If these products don't match then this is considered cross-sell. Cross-sell gross profit is the revenue you made from cross-sell attributed to your ads minus the cost of the goods sold. Example: Someone clicked on a Shopping ad for a hat then bought the same hat and a shirt. The shirt is priced $20 and has a cost of goods sold value of $5. The cross-sell gross profit of this order is $15 = $20 - $5. This metric is only available if you report conversions with cart data. This metric is a monetary value and returned in the customer's currency by default. See the metrics_currency parameter at https://developers.google.com/search-ads/reporting/query/query-structure#parameters_clause + * `clicks` (*type:* `String.t`, *default:* `nil`) - The number of clicks. + * `conversionsValuePerCost` (*type:* `float()`, *default:* `nil`) - The value of biddable conversion divided by the total cost of conversion eligible interactions. + * `leadRevenueMicros` (*type:* `String.t`, *default:* `nil`) - Lead revenue is the total amount you made from products sold as a result of advertising the same product. How it works: You report conversions with cart data for completed purchases on your website. If the ad that was interacted with before the purchase has an associated product (see Shopping Ads) then this product is considered the advertised product. Any product included in the order the customer places is a sold product. If the advertised and sold products match, then the total value you made from the sales of these products is shown under lead revenue. Example: Someone clicked on a Shopping ad for a hat then bought the same hat and a shirt. The hat is priced $10 and the shirt is priced $20. The lead revenue of this order is $10. This metric is only available if you report conversions with cart data. This metric is a monetary value and returned in the customer's currency by default. See the metrics_currency parameter at https://developers.google.com/search-ads/reporting/query/query-structure#parameters_clause + * `clientAccountConversions` (*type:* `float()`, *default:* `nil`) - The number of client account conversions. This only includes conversion actions which include_in_client_account_conversions_metric attribute is set to true. If you use conversion-based bidding, your bid strategies will optimize for these conversions. + * `searchRankLostAbsoluteTopImpressionShare` (*type:* `float()`, *default:* `nil`) - The number estimating how often your ad wasn't the very first ad above the organic search results due to poor Ad Rank. Note: Search rank lost absolute top impression share is reported in the range of 0 to 0.9. Any value above 0.9 is reported as 0.9001. + * `visits` (*type:* `float()`, *default:* `nil`) - Clicks that Search Ads 360 has successfully recorded and forwarded to an advertiser's landing page. + * `searchBudgetLostAbsoluteTopImpressionShare` (*type:* `float()`, *default:* `nil`) - The number estimating how often your ad wasn't the very first ad above the organic search results due to a low budget. Note: Search budget lost absolute top impression share is reported in the range of 0 to 0.9. Any value above 0.9 is reported as 0.9001. + * `allConversionsFromStoreWebsite` (*type:* `float()`, *default:* `nil`) - The number of times that people were taken to a store's URL after clicking an ad. This metric applies to feed items only. + * `allConversionsFromMenu` (*type:* `float()`, *default:* `nil`) - The number of times people clicked a link to view a store's menu after clicking an ad. This metric applies to feed items only. + * `absoluteTopImpressionPercentage` (*type:* `float()`, *default:* `nil`) - The percent of your ad impressions that are shown as the very first ad above the organic search results. + * `allConversionsFromOtherEngagement` (*type:* `float()`, *default:* `nil`) - The number of other conversions (for example, posting a review or saving a location for a store) that occurred after people clicked an ad. This metric applies to feed items only. + * `invalidClicks` (*type:* `String.t`, *default:* `nil`) - Number of clicks Google considers illegitimate and doesn't charge you for. + * `crossSellUnitsSold` (*type:* `float()`, *default:* `nil`) - Cross-sell units sold is the total number of products sold as a result of advertising a different product. How it works: You report conversions with cart data for completed purchases on your website. If the ad that was interacted with before the purchase has an associated product (see Shopping Ads) then this product is considered the advertised product. Any product included in the order the customer places is a sold product. If these products don't match then this is considered cross-sell. Cross-sell units sold is the total number of cross-sold products from all orders attributed to your ads. Example: Someone clicked on a Shopping ad for a hat then bought the same hat, a shirt and a jacket. The cross-sell units sold in this order is 2. This metric is only available if you report conversions with cart data. + * `conversions` (*type:* `float()`, *default:* `nil`) - The number of conversions. This only includes conversion actions which include_in_conversions_metric attribute is set to true. If you use conversion-based bidding, your bid strategies will optimize for these conversions. + * `conversionsByConversionDate` (*type:* `float()`, *default:* `nil`) - The sum of conversions by conversion date for biddable conversion types. Can be fractional due to attribution modeling. When this column is selected with date, the values in date column means the conversion date. + * `allConversions` (*type:* `float()`, *default:* `nil`) - The total number of conversions. This includes all conversions regardless of the value of include_in_conversions_metric. + * `costMicros` (*type:* `String.t`, *default:* `nil`) - The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period. This metric is a monetary value and returned in the customer's currency by default. See the metrics_currency parameter at https://developers.google.com/search-ads/reporting/query/query-structure#parameters_clause + * `searchClickShare` (*type:* `float()`, *default:* `nil`) - The number of clicks you've received on the Search Network divided by the estimated number of clicks you were eligible to receive. Note: Search click share is reported in the range of 0.1 to 1. Any value below 0.1 is reported as 0.0999. + * `costPerCurrentModelAttributedConversion` (*type:* `float()`, *default:* `nil`) - The cost of ad interactions divided by current model attributed conversions. This only includes conversion actions which include_in_conversions_metric attribute is set to true. If you use conversion-based bidding, your bid strategies will optimize for these conversions. + * `allConversionsFromStoreVisit` (*type:* `float()`, *default:* `nil`) - Estimated number of times people visited a store after clicking an ad. This metric applies to feed items only. + * `ctr` (*type:* `float()`, *default:* `nil`) - The number of clicks your ad receives (Clicks) divided by the number of times your ad is shown (Impressions). + * `allConversionsFromOrder` (*type:* `float()`, *default:* `nil`) - The number of times people placed an order at a store after clicking an ad. This metric applies to feed items only. + * `searchTopImpressionShare` (*type:* `float()`, *default:* `nil`) - The impressions you've received in the top location (anywhere above the organic search results) compared to the estimated number of impressions you were eligible to receive in the top location. Note: Search top impression share is reported in the range of 0.1 to 1. Any value below 0.1 is reported as 0.0999. + * `allConversionsFromInteractionsRate` (*type:* `float()`, *default:* `nil`) - All conversions from interactions (as oppose to view through conversions) divided by the number of ad interactions. + * `conversionsFromInteractionsValuePerInteraction` (*type:* `float()`, *default:* `nil`) - The value of conversions from interactions divided by the number of ad interactions. This only includes conversion actions which include_in_conversions_metric attribute is set to true. If you use conversion-based bidding, your bid strategies will optimize for these conversions. + * `clientAccountLeadRevenueMicros` (*type:* `String.t`, *default:* `nil`) - Client account lead revenue is the total amount you made from products sold as a result of advertising the same product. How it works: You report conversions with cart data for completed purchases on your website. If the ad that was interacted with before the purchase has an associated product (see Shopping Ads) then this product is considered the advertised product. Any product included in the order the customer places is a sold product. If the advertised and sold products match, then the total value you made from the sales of these products is shown under lead revenue. Example: Someone clicked on a Shopping ad for a hat then bought the same hat and a shirt. The hat is priced $10 and the shirt is priced $20. The lead revenue of this order is $10. This metric is only available if you report conversions with cart data. This metric is a monetary value and returned in the customer's currency by default. See the metrics_currency parameter at https://developers.google.com/search-ads/reporting/query/query-structure#parameters_clause + * `leadGrossProfitMicros` (*type:* `String.t`, *default:* `nil`) - Lead gross profit is the profit you made from products sold as a result of advertising the same product, minus cost of goods sold (COGS). How it works: You report conversions with cart data for completed purchases on your website. If the ad that was interacted with before the purchase has an associated product (see Shopping Ads) then this product is considered the advertised product. Any product included in the order the customer places is a sold product. If the advertised and sold products match, then the revenue you made from these sales minus the cost of goods sold is your lead gross profit. Example: Someone clicked on a Shopping ad for a hat then bought the same hat and a shirt. The hat is priced $10 and has a cost of goods sold value of $3. The lead gross profit of this order is $7 = $10 - $3. This metric is only available if you report conversions with cart data. This metric is a monetary value and returned in the customer's currency by default. See the metrics_currency parameter at https://developers.google.com/search-ads/reporting/query/query-structure#parameters_clause + * `historicalSearchPredictedCtr` (*type:* `String.t`, *default:* `nil`) - The historical search predicted click through rate (CTR). + * `valuePerAllConversions` (*type:* `float()`, *default:* `nil`) - The value of all conversions divided by the number of all conversions. + * `averageCpc` (*type:* `float()`, *default:* `nil`) - The total cost of all clicks divided by the total number of clicks received. This metric is a monetary value and returned in the customer's currency by default. See the metrics_currency parameter at https://developers.google.com/search-ads/reporting/query/query-structure#parameters_clause + * `allConversionsValueByConversionDate` (*type:* `float()`, *default:* `nil`) - The value of all conversions. When this column is selected with date, the values in date column means the conversion date. Details for the by_conversion_date columns are available at https://support.google.com/sa360/answer/9250611. + * `valuePerConversion` (*type:* `float()`, *default:* `nil`) - The value of biddable conversion divided by the number of biddable conversions. Shows how much, on average, each of the biddable conversions is worth. + * `interactionEventTypes` (*type:* `list(String.t)`, *default:* `nil`) - The types of payable and free interactions. + * `crossSellGrossProfitMicros` (*type:* `String.t`, *default:* `nil`) - Cross-sell gross profit is the profit you made from products sold as a result of advertising a different product, minus cost of goods sold (COGS). How it works: You report conversions with cart data for completed purchases on your website. If the ad that was interacted with before the purchase has an associated product (see Shopping Ads) then this product is considered the advertised product. Any product included in the purchase is a sold product. If these products don't match then this is considered cross-sell. Cross-sell gross profit is the revenue you made from cross-sell attributed to your ads minus the cost of the goods sold. Example: Someone clicked on a Shopping ad for a hat then bought the same hat and a shirt. The shirt is priced $20 and has a cost of goods sold value of $5. The cross-sell gross profit of this order is $15 = $20 - $5. This metric is only available if you report conversions with cart data. This metric is a monetary value and returned in the customer's currency by default. See the metrics_currency parameter at https://developers.google.com/search-ads/reporting/query/query-structure#parameters_clause + * `clientAccountLeadGrossProfitMicros` (*type:* `String.t`, *default:* `nil`) - Client account lead gross profit is the profit you made from products sold as a result of advertising the same product, minus cost of goods sold (COGS). How it works: You report conversions with cart data for completed purchases on your website. If the ad that was interacted with before the purchase has an associated product (see Shopping Ads) then this product is considered the advertised product. Any product included in the order the customer places is a sold product. If the advertised and sold products match, then the revenue you made from these sales minus the cost of goods sold is your lead gross profit. Example: Someone clicked on a Shopping ad for a hat then bought the same hat and a shirt. The hat is priced $10 and has a cost of goods sold value of $3. The lead gross profit of this order is $7 = $10 - $3. This metric is only available if you report conversions with cart data. This metric is a monetary value and returned in the customer's currency by default. See the metrics_currency parameter at https://developers.google.com/search-ads/reporting/query/query-structure#parameters_clause + * `crossSellRevenueMicros` (*type:* `String.t`, *default:* `nil`) - Cross-sell revenue is the total amount you made from products sold as a result of advertising a different product. How it works: You report conversions with cart data for completed purchases on your website. If the ad that was interacted with before the purchase has an associated product (see Shopping Ads) then this product is considered the advertised product. Any product included in the order the customer places is a sold product. If these products don't match then this is considered cross-sell. Cross-sell revenue is the total value you made from cross-sell attributed to your ads. Example: Someone clicked on a Shopping ad for a hat then bought the same hat and a shirt. The hat is priced $10 and the shirt is priced $20. The cross-sell revenue of this order is $20. This metric is only available if you report conversions with cart data. This metric is a monetary value and returned in the customer's currency by default. See the metrics_currency parameter at https://developers.google.com/search-ads/reporting/query/query-structure#parameters_clause + * `contentImpressionShare` (*type:* `float()`, *default:* `nil`) - The impressions you've received on the Display Network divided 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. + * `clientAccountViewThroughConversions` (*type:* `String.t`, *default:* `nil`) - The total number of view-through conversions. These happen when a customer sees an image or rich media ad, then later completes a conversion on your site without interacting with (for example, clicking on) another ad. + * `crossSellCostOfGoodsSoldMicros` (*type:* `String.t`, *default:* `nil`) - Cross-sell cost of goods sold (COGS) is the total cost of products sold as a result of advertising a different product. How it works: You report conversions with cart data for completed purchases on your website. If the ad that was interacted with before the purchase has an associated product (see Shopping Ads) then this product is considered the advertised product. Any product included in the order the customer places is a sold product. If these products don't match then this is considered cross-sell. Cross-sell cost of goods sold is the total cost of the products sold that weren't advertised. Example: Someone clicked on a Shopping ad for a hat then bought the same hat and a shirt. The hat has a cost of goods sold value of $3, the shirt has a cost of goods sold value of $5. The cross-sell cost of goods sold for this order is $5. This metric is only available if you report conversions with cart data. This metric is a monetary value and returned in the customer's currency by default. See the metrics_currency parameter at https://developers.google.com/search-ads/reporting/query/query-structure#parameters_clause + * `invalidClickRate` (*type:* `float()`, *default:* `nil`) - The percentage of clicks filtered out of your total number of clicks (filtered + non-filtered clicks) during the reporting period. + * `searchBudgetLostTopImpressionShare` (*type:* `float()`, *default:* `nil`) - The number estimating how often your ad didn't show anywhere above the organic search results due to a low budget. Note: Search budget lost top impression share is reported in the range of 0 to 0.9. Any value above 0.9 is reported as 0.9001. + * `valuePerConversionsByConversionDate` (*type:* `float()`, *default:* `nil`) - Biddable conversions value by conversion date divided by biddable conversions by conversion date. Shows how much, on average, each of the biddable conversions is worth (by conversion date). When this column is selected with date, the values in date column means the conversion date. + * `averageCpm` (*type:* `float()`, *default:* `nil`) - Average cost-per-thousand impressions (CPM). This metric is a monetary value and returned in the customer's currency by default. See the metrics_currency parameter at https://developers.google.com/search-ads/reporting/query/query-structure#parameters_clause + * `allConversionsValuePerCost` (*type:* `float()`, *default:* `nil`) - The value of all conversions divided by the total cost of ad interactions (such as clicks for text ads or views for video ads). + * `clientAccountCrossSellRevenueMicros` (*type:* `String.t`, *default:* `nil`) - Client account cross-sell revenue is the total amount you made from products sold as a result of advertising a different product. How it works: You report conversions with cart data for completed purchases on your website. If the ad that was interacted with before the purchase has an associated product (see Shopping Ads) then this product is considered the advertised product. Any product included in the order the customer places is a sold product. If these products don't match then this is considered cross-sell. Cross-sell revenue is the total value you made from cross-sell attributed to your ads. Example: Someone clicked on a Shopping ad for a hat then bought the same hat and a shirt. The hat is priced $10 and the shirt is priced $20. The cross-sell revenue of this order is $20. This metric is only available if you report conversions with cart data. This metric is a monetary value and returned in the customer's currency by default. See the metrics_currency parameter at https://developers.google.com/search-ads/reporting/query/query-structure#parameters_clause + * `allConversionsFromClickToCall` (*type:* `float()`, *default:* `nil`) - The number of times people clicked the "Call" button to call a store during or after clicking an ad. This number doesn't include whether or not calls were connected, or the duration of any calls. This metric applies to feed items only. + * `contentBudgetLostImpressionShare` (*type:* `float()`, *default:* `nil`) - The estimated percent of times that your ad was eligible to show on the Display Network but didn't because your budget was too low. Note: Content budget lost impression share is reported in the range of 0 to 0.9. Any value above 0.9 is reported as 0.9001. + * `historicalLandingPageQualityScore` (*type:* `String.t`, *default:* `nil`) - The quality of historical landing page experience. + * `crossDeviceConversionsValue` (*type:* `float()`, *default:* `nil`) - The sum of the value of cross-device conversions. + * `averageCost` (*type:* `float()`, *default:* `nil`) - The average amount you pay per interaction. This amount is the total cost of your ads divided by the total number of interactions. + * `allConversionsValue` (*type:* `float()`, *default:* `nil`) - The value of all conversions. + * `historicalQualityScore` (*type:* `String.t`, *default:* `nil`) - The historical quality score. + * `impressions` (*type:* `String.t`, *default:* `nil`) - Count of how often your ad has appeared on a search results page or website on the Google Network. + * `historicalCreativeQualityScore` (*type:* `String.t`, *default:* `nil`) - The creative historical quality score. + * `valuePerAllConversionsByConversionDate` (*type:* `float()`, *default:* `nil`) - The value of all conversions divided by the number of all conversions. When this column is selected with date, the values in date column means the conversion date. Details for the by_conversion_date columns are available at https://support.google.com/sa360/answer/9250611. + * `clientAccountCrossSellUnitsSold` (*type:* `float()`, *default:* `nil`) - Client account cross-sell units sold is the total number of products sold as a result of advertising a different product. How it works: You report conversions with cart data for completed purchases on your website. If the ad that was interacted with before the purchase has an associated product (see Shopping Ads) then this product is considered the advertised product. Any product included in the order the customer places is a sold product. If these products don't match then this is considered cross-sell. Cross-sell units sold is the total number of cross-sold products from all orders attributed to your ads. Example: Someone clicked on a Shopping ad for a hat then bought the same hat, a shirt and a jacket. The cross-sell units sold in this order is 2. This metric is only available if you report conversions with cart data. + * `topImpressionPercentage` (*type:* `float()`, *default:* `nil`) - The percent of your ad impressions that are shown anywhere above the organic search results. + * `allConversionsFromInteractionsValuePerInteraction` (*type:* `float()`, *default:* `nil`) - The value of all conversions from interactions divided by the total number of interactions. + * `clientAccountLeadCostOfGoodsSoldMicros` (*type:* `String.t`, *default:* `nil`) - Client account lead cost of goods sold (COGS) is the total cost of products sold as a result of advertising the same product. How it works: You report conversions with cart data for completed purchases on your website. If the ad that was interacted with has an associated product (see Shopping Ads) then this product is considered the advertised product. Any product included in the order the customer places is a sold product. If the advertised and sold products match, then the cost of these goods is counted under lead cost of goods sold. Example: Someone clicked on a Shopping ad for a hat then bought the same hat and a shirt. The hat has a cost of goods sold value of $3, the shirt has a cost of goods sold value of $5. The lead cost of goods sold for this order is $3. This metric is only available if you report conversions with cart data. This metric is a monetary value and returned in the customer's currency by default. See the metrics_currency parameter at https://developers.google.com/search-ads/reporting/query/query-structure#parameters_clause + * `interactionRate` (*type:* `float()`, *default:* `nil`) - How often people interact with your ad after it is shown to them. This is the number of interactions divided by the number of times your ad is shown. + * `searchAbsoluteTopImpressionShare` (*type:* `float()`, *default:* `nil`) - The percentage of the customer's Shopping or Search ad impressions that are shown in the most prominent Shopping position. See https://support.google.com/sa360/answer/9566729 for details. Any value below 0.1 is reported as 0.0999. + * `allConversionsByConversionDate` (*type:* `float()`, *default:* `nil`) - The total number of conversions. This includes all conversions regardless of the value of include_in_conversions_metric. When this column is selected with date, the values in date column means the conversion date. Details for the by_conversion_date columns are available at https://support.google.com/sa360/answer/9250611. + * `costPerConversion` (*type:* `float()`, *default:* `nil`) - Average conversion eligible cost per biddable conversion. + * `leadUnitsSold` (*type:* `float()`, *default:* `nil`) - Lead units sold is the total number of products sold as a result of advertising the same product. How it works: You report conversions with cart data for completed purchases on your website. If the ad that was interacted with before the purchase has an associated product (see Shopping Ads) then this product is considered the advertised product. Any product included in the order the customer places is a sold product. If the advertised and sold products match, then the total number of these products sold is shown under lead units sold. Example: Someone clicked on a Shopping ad for a hat then bought the same hat, a shirt and a jacket. The lead units sold in this order is 1. This metric is only available if you report conversions with cart data. + * `searchImpressionShare` (*type:* `float()`, *default:* `nil`) - The impressions you've received on the Search Network divided by the estimated number of impressions you were eligible to receive. Note: Search impression share is reported in the range of 0.1 to 1. Any value below 0.1 is reported as 0.0999. + * `allConversionsFromDirections` (*type:* `float()`, *default:* `nil`) - The number of times people clicked a "Get directions" button to navigate to a store after clicking an ad. This metric applies to feed items only. + * `conversionsValue` (*type:* `float()`, *default:* `nil`) - The sum of conversion values for the conversions included in the "conversions" field. This metric is useful only if you entered a value for your conversion actions. + * `conversionCustomMetrics` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value.t)`, *default:* `nil`) - The conversion custom metrics. + * `conversionsValueByConversionDate` (*type:* `float()`, *default:* `nil`) - The sum of biddable conversions value by conversion date. When this column is selected with date, the values in date column means the conversion date. + * `crossDeviceConversions` (*type:* `float()`, *default:* `nil`) - Conversions from when a customer clicks on an ad on one device, then converts on a different device or browser. Cross-device conversions are already included in all_conversions. + * `conversionsFromInteractionsRate` (*type:* `float()`, *default:* `nil`) - Average biddable conversions (from interaction) per conversion eligible interaction. Shows how often, on average, an ad interaction leads to a biddable conversion. + * `interactions` (*type:* `String.t`, *default:* `nil`) - The number of interactions. An interaction is the main user action associated with an ad format-clicks for text and shopping ads, views for video ads, and so on. + * `searchRankLostTopImpressionShare` (*type:* `float()`, *default:* `nil`) - The number estimating how often your ad didn't show anywhere above the organic search results due to poor Ad Rank. Note: Search rank lost top impression share is reported in the range of 0 to 0.9. Any value above 0.9 is reported as 0.9001. + * `clientAccountLeadUnitsSold` (*type:* `float()`, *default:* `nil`) - Client account lead units sold is the total number of products sold as a result of advertising the same product. How it works: You report conversions with cart data for completed purchases on your website. If the ad that was interacted with before the purchase has an associated product (see Shopping Ads) then this product is considered the advertised product. Any product included in the order the customer places is a sold product. If the advertised and sold products match, then the total number of these products sold is shown under lead units sold. Example: Someone clicked on a Shopping ad for a hat then bought the same hat, a shirt and a jacket. The lead units sold in this order is 1. This metric is only available if you report conversions with cart data. + * `rawEventConversionMetrics` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value.t)`, *default:* `nil`) - The raw event conversion metrics. + * `searchExactMatchImpressionShare` (*type:* `float()`, *default:* `nil`) - The impressions you've received divided by the estimated number of impressions you were eligible to receive on the Search Network for search terms that matched your keywords exactly (or were close variants of your keyword), regardless of your keyword match types. Note: Search exact match impression share is reported in the range of 0.1 to 1. Any value below 0.1 is reported as 0.0999. + * `clientAccountConversionsValue` (*type:* `float()`, *default:* `nil`) - The value of client account conversions. This only includes conversion actions which include_in_client_account_conversions_metric attribute is set to true. If you use conversion-based bidding, your bid strategies will optimize for these conversions. + * `mobileFriendlyClicksPercentage` (*type:* `float()`, *default:* `nil`) - The percentage of mobile clicks that go to a mobile-friendly page. + * `clientAccountCrossSellCostOfGoodsSoldMicros` (*type:* `String.t`, *default:* `nil`) - Client account cross-sell cost of goods sold (COGS) is the total cost of products sold as a result of advertising a different product. How it works: You report conversions with cart data for completed purchases on your website. If the ad that was interacted with before the purchase has an associated product (see Shopping Ads) then this product is considered the advertised product. Any product included in the order the customer places is a sold product. If these products don't match then this is considered cross-sell. Cross-sell cost of goods sold is the total cost of the products sold that weren't advertised. Example: Someone clicked on a Shopping ad for a hat then bought the same hat and a shirt. The hat has a cost of goods sold value of $3, the shirt has a cost of goods sold value of $5. The cross-sell cost of goods sold for this order is $5. This metric is only available if you report conversions with cart data. This metric is a monetary value and returned in the customer's currency by default. See the metrics_currency parameter at https://developers.google.com/search-ads/reporting/query/query-structure#parameters_clause + * `searchBudgetLostImpressionShare` (*type:* `float()`, *default:* `nil`) - The estimated percent of times that your ad was eligible to show on the Search Network but didn't because your budget was too low. Note: Search budget lost impression share is reported in the range of 0 to 0.9. Any value above 0.9 is reported as 0.9001. + * `costPerAllConversions` (*type:* `float()`, *default:* `nil`) - The cost of ad interactions divided by all conversions. + * `searchRankLostImpressionShare` (*type:* `float()`, *default:* `nil`) - The estimated percentage of impressions on the Search Network that your ads didn't receive due to poor Ad Rank. Note: Search rank lost impression share is reported in the range of 0 to 0.9. Any value above 0.9 is reported as 0.9001. + * `leadCostOfGoodsSoldMicros` (*type:* `String.t`, *default:* `nil`) - Lead cost of goods sold (COGS) is the total cost of products sold as a result of advertising the same product. How it works: You report conversions with cart data for completed purchases on your website. If the ad that was interacted with has an associated product (see Shopping Ads) then this product is considered the advertised product. Any product included in the order the customer places is a sold product. If the advertised and sold products match, then the cost of these goods is counted under lead cost of goods sold. Example: Someone clicked on a Shopping ad for a hat then bought the same hat and a shirt. The hat has a cost of goods sold value of $3, the shirt has a cost of goods sold value of $5. The lead cost of goods sold for this order is $3. This metric is only available if you report conversions with cart data. This metric is a monetary value and returned in the customer's currency by default. See the metrics_currency parameter at https://developers.google.com/search-ads/reporting/query/query-structure#parameters_clause + * `contentRankLostImpressionShare` (*type:* `float()`, *default:* `nil`) - The estimated percentage of impressions on the Display Network that your ads didn't receive due to poor Ad Rank. Note: Content rank lost impression share is reported in the range of 0 to 0.9. Any value above 0.9 is reported as 0.9001. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clientAccountCrossSellGrossProfitMicros => String.t() | nil, + :clicks => String.t() | nil, + :conversionsValuePerCost => float() | nil, + :leadRevenueMicros => String.t() | nil, + :clientAccountConversions => float() | nil, + :searchRankLostAbsoluteTopImpressionShare => float() | nil, + :visits => float() | nil, + :searchBudgetLostAbsoluteTopImpressionShare => float() | nil, + :allConversionsFromStoreWebsite => float() | nil, + :allConversionsFromMenu => float() | nil, + :absoluteTopImpressionPercentage => float() | nil, + :allConversionsFromOtherEngagement => float() | nil, + :invalidClicks => String.t() | nil, + :crossSellUnitsSold => float() | nil, + :conversions => float() | nil, + :conversionsByConversionDate => float() | nil, + :allConversions => float() | nil, + :costMicros => String.t() | nil, + :searchClickShare => float() | nil, + :costPerCurrentModelAttributedConversion => float() | nil, + :allConversionsFromStoreVisit => float() | nil, + :ctr => float() | nil, + :allConversionsFromOrder => float() | nil, + :searchTopImpressionShare => float() | nil, + :allConversionsFromInteractionsRate => float() | nil, + :conversionsFromInteractionsValuePerInteraction => float() | nil, + :clientAccountLeadRevenueMicros => String.t() | nil, + :leadGrossProfitMicros => String.t() | nil, + :historicalSearchPredictedCtr => String.t() | nil, + :valuePerAllConversions => float() | nil, + :averageCpc => float() | nil, + :allConversionsValueByConversionDate => float() | nil, + :valuePerConversion => float() | nil, + :interactionEventTypes => list(String.t()) | nil, + :crossSellGrossProfitMicros => String.t() | nil, + :clientAccountLeadGrossProfitMicros => String.t() | nil, + :crossSellRevenueMicros => String.t() | nil, + :contentImpressionShare => float() | nil, + :clientAccountViewThroughConversions => String.t() | nil, + :crossSellCostOfGoodsSoldMicros => String.t() | nil, + :invalidClickRate => float() | nil, + :searchBudgetLostTopImpressionShare => float() | nil, + :valuePerConversionsByConversionDate => float() | nil, + :averageCpm => float() | nil, + :allConversionsValuePerCost => float() | nil, + :clientAccountCrossSellRevenueMicros => String.t() | nil, + :allConversionsFromClickToCall => float() | nil, + :contentBudgetLostImpressionShare => float() | nil, + :historicalLandingPageQualityScore => String.t() | nil, + :crossDeviceConversionsValue => float() | nil, + :averageCost => float() | nil, + :allConversionsValue => float() | nil, + :historicalQualityScore => String.t() | nil, + :impressions => String.t() | nil, + :historicalCreativeQualityScore => String.t() | nil, + :valuePerAllConversionsByConversionDate => float() | nil, + :clientAccountCrossSellUnitsSold => float() | nil, + :topImpressionPercentage => float() | nil, + :allConversionsFromInteractionsValuePerInteraction => float() | nil, + :clientAccountLeadCostOfGoodsSoldMicros => String.t() | nil, + :interactionRate => float() | nil, + :searchAbsoluteTopImpressionShare => float() | nil, + :allConversionsByConversionDate => float() | nil, + :costPerConversion => float() | nil, + :leadUnitsSold => float() | nil, + :searchImpressionShare => float() | nil, + :allConversionsFromDirections => float() | nil, + :conversionsValue => float() | nil, + :conversionCustomMetrics => + list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value.t()) | nil, + :conversionsValueByConversionDate => float() | nil, + :crossDeviceConversions => float() | nil, + :conversionsFromInteractionsRate => float() | nil, + :interactions => String.t() | nil, + :searchRankLostTopImpressionShare => float() | nil, + :clientAccountLeadUnitsSold => float() | nil, + :rawEventConversionMetrics => + list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value.t()) | nil, + :searchExactMatchImpressionShare => float() | nil, + :clientAccountConversionsValue => float() | nil, + :mobileFriendlyClicksPercentage => float() | nil, + :clientAccountCrossSellCostOfGoodsSoldMicros => String.t() | nil, + :searchBudgetLostImpressionShare => float() | nil, + :costPerAllConversions => float() | nil, + :searchRankLostImpressionShare => float() | nil, + :leadCostOfGoodsSoldMicros => String.t() | nil, + :contentRankLostImpressionShare => float() | nil + } + + field(:clientAccountCrossSellGrossProfitMicros) + field(:clicks) + field(:conversionsValuePerCost) + field(:leadRevenueMicros) + field(:clientAccountConversions) + field(:searchRankLostAbsoluteTopImpressionShare) + field(:visits) + field(:searchBudgetLostAbsoluteTopImpressionShare) + field(:allConversionsFromStoreWebsite) + field(:allConversionsFromMenu) + field(:absoluteTopImpressionPercentage) + field(:allConversionsFromOtherEngagement) + field(:invalidClicks) + field(:crossSellUnitsSold) + field(:conversions) + field(:conversionsByConversionDate) + field(:allConversions) + field(:costMicros) + field(:searchClickShare) + field(:costPerCurrentModelAttributedConversion) + field(:allConversionsFromStoreVisit) + field(:ctr) + field(:allConversionsFromOrder) + field(:searchTopImpressionShare) + field(:allConversionsFromInteractionsRate) + field(:conversionsFromInteractionsValuePerInteraction) + field(:clientAccountLeadRevenueMicros) + field(:leadGrossProfitMicros) + field(:historicalSearchPredictedCtr) + field(:valuePerAllConversions) + field(:averageCpc) + field(:allConversionsValueByConversionDate) + field(:valuePerConversion) + field(:interactionEventTypes, type: :list) + field(:crossSellGrossProfitMicros) + field(:clientAccountLeadGrossProfitMicros) + field(:crossSellRevenueMicros) + field(:contentImpressionShare) + field(:clientAccountViewThroughConversions) + field(:crossSellCostOfGoodsSoldMicros) + field(:invalidClickRate) + field(:searchBudgetLostTopImpressionShare) + field(:valuePerConversionsByConversionDate) + field(:averageCpm) + field(:allConversionsValuePerCost) + field(:clientAccountCrossSellRevenueMicros) + field(:allConversionsFromClickToCall) + field(:contentBudgetLostImpressionShare) + field(:historicalLandingPageQualityScore) + field(:crossDeviceConversionsValue) + field(:averageCost) + field(:allConversionsValue) + field(:historicalQualityScore) + field(:impressions) + field(:historicalCreativeQualityScore) + field(:valuePerAllConversionsByConversionDate) + field(:clientAccountCrossSellUnitsSold) + field(:topImpressionPercentage) + field(:allConversionsFromInteractionsValuePerInteraction) + field(:clientAccountLeadCostOfGoodsSoldMicros) + field(:interactionRate) + field(:searchAbsoluteTopImpressionShare) + field(:allConversionsByConversionDate) + field(:costPerConversion) + field(:leadUnitsSold) + field(:searchImpressionShare) + field(:allConversionsFromDirections) + field(:conversionsValue) + + field(:conversionCustomMetrics, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value, + type: :list + ) + + field(:conversionsValueByConversionDate) + field(:crossDeviceConversions) + field(:conversionsFromInteractionsRate) + field(:interactions) + field(:searchRankLostTopImpressionShare) + field(:clientAccountLeadUnitsSold) + + field(:rawEventConversionMetrics, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value, + type: :list + ) + + field(:searchExactMatchImpressionShare) + field(:clientAccountConversionsValue) + field(:mobileFriendlyClicksPercentage) + field(:clientAccountCrossSellCostOfGoodsSoldMicros) + field(:searchBudgetLostImpressionShare) + field(:costPerAllConversions) + field(:searchRankLostImpressionShare) + field(:leadCostOfGoodsSoldMicros) + field(:contentRankLostImpressionShare) +end + +defimpl Poison.Decoder, for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Metrics do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Metrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Metrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__mobile_app_asset.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__mobile_app_asset.ex new file mode 100644 index 0000000000..f08c26c2b5 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__mobile_app_asset.ex @@ -0,0 +1,54 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MobileAppAsset do + @moduledoc """ + An asset representing a mobile app. + + ## Attributes + + * `appId` (*type:* `String.t`, *default:* `nil`) - Required. A string that uniquely identifies a mobile application. It should just contain the platform native id, like "com.android.ebay" for Android or "12345689" for iOS. + * `appStore` (*type:* `String.t`, *default:* `nil`) - Required. The application store that distributes this specific app. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appId => String.t() | nil, + :appStore => String.t() | nil + } + + field(:appId) + field(:appStore) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MobileAppAsset do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MobileAppAsset.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MobileAppAsset do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__percent_cpc.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__percent_cpc.ex new file mode 100644 index 0000000000..ed7be37126 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__percent_cpc.ex @@ -0,0 +1,54 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_PercentCpc do + @moduledoc """ + A bidding strategy where bids are a fraction of the advertised price for some good or service. + + ## Attributes + + * `cpcBidCeilingMicros` (*type:* `String.t`, *default:* `nil`) - Maximum bid limit that can be set by the bid strategy. This is an optional field entered by the advertiser and specified in local micros. Note: A zero value is interpreted in the same way as having bid_ceiling undefined. + * `enhancedCpcEnabled` (*type:* `boolean()`, *default:* `nil`) - Adjusts the bid for each auction upward or downward, depending on the likelihood of a conversion. Individual bids may exceed cpc_bid_ceiling_micros, but the average bid amount for a campaign should not. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cpcBidCeilingMicros => String.t() | nil, + :enhancedCpcEnabled => boolean() | nil + } + + field(:cpcBidCeilingMicros) + field(:enhancedCpcEnabled) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_PercentCpc do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_PercentCpc.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_PercentCpc do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__real_time_bidding_setting.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__real_time_bidding_setting.ex new file mode 100644 index 0000000000..9b3c59f2b7 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__real_time_bidding_setting.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_RealTimeBiddingSetting do + @moduledoc """ + Settings for Real-Time Bidding, a feature only available for campaigns targeting the Ad Exchange network. + + ## Attributes + + * `optIn` (*type:* `boolean()`, *default:* `nil`) - Whether the campaign is opted in to real-time bidding. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :optIn => boolean() | nil + } + + field(:optIn) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_RealTimeBiddingSetting do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_RealTimeBiddingSetting.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_RealTimeBiddingSetting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_expanded_dynamic_search_ad_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_expanded_dynamic_search_ad_info.ex new file mode 100644 index 0000000000..b565e8b678 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_expanded_dynamic_search_ad_info.ex @@ -0,0 +1,59 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ExpandedDynamicSearchAdInfo do + @moduledoc """ + An expanded dynamic search ad. + + ## Attributes + + * `adTrackingId` (*type:* `String.t`, *default:* `nil`) - The tracking id of the ad. + * `description1` (*type:* `String.t`, *default:* `nil`) - The first line of the ad's description. + * `description2` (*type:* `String.t`, *default:* `nil`) - The second line of the ad's description. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adTrackingId => String.t() | nil, + :description1 => String.t() | nil, + :description2 => String.t() | nil + } + + field(:adTrackingId) + field(:description1) + field(:description2) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ExpandedDynamicSearchAdInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ExpandedDynamicSearchAdInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ExpandedDynamicSearchAdInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_expanded_text_ad_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_expanded_text_ad_info.ex new file mode 100644 index 0000000000..ded385a3f6 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_expanded_text_ad_info.ex @@ -0,0 +1,74 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ExpandedTextAdInfo do + @moduledoc """ + A Search Ads 360 expanded text ad. + + ## Attributes + + * `adTrackingId` (*type:* `String.t`, *default:* `nil`) - The tracking id of the ad. + * `description1` (*type:* `String.t`, *default:* `nil`) - The first line of the ad's description. + * `description2` (*type:* `String.t`, *default:* `nil`) - The second line of the ad's description. + * `headline` (*type:* `String.t`, *default:* `nil`) - The headline of the ad. + * `headline2` (*type:* `String.t`, *default:* `nil`) - The second headline of the ad. + * `headline3` (*type:* `String.t`, *default:* `nil`) - The third headline of the ad. + * `path1` (*type:* `String.t`, *default:* `nil`) - Text appended to the auto-generated visible URL with a delimiter. + * `path2` (*type:* `String.t`, *default:* `nil`) - Text appended to path1 with a delimiter. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adTrackingId => String.t() | nil, + :description1 => String.t() | nil, + :description2 => String.t() | nil, + :headline => String.t() | nil, + :headline2 => String.t() | nil, + :headline3 => String.t() | nil, + :path1 => String.t() | nil, + :path2 => String.t() | nil + } + + field(:adTrackingId) + field(:description1) + field(:description2) + field(:headline) + field(:headline2) + field(:headline3) + field(:path1) + field(:path2) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ExpandedTextAdInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ExpandedTextAdInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ExpandedTextAdInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_product_ad_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_product_ad_info.ex new file mode 100644 index 0000000000..fae2d63a42 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_product_ad_info.ex @@ -0,0 +1,46 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ProductAdInfo do + @moduledoc """ + A Search Ads 360 product ad. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ProductAdInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ProductAdInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ProductAdInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_responsive_search_ad_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_responsive_search_ad_info.ex new file mode 100644 index 0000000000..788e8c5be2 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_responsive_search_ad_info.ex @@ -0,0 +1,59 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ResponsiveSearchAdInfo do + @moduledoc """ + A Search Ads 360 responsive search ad. + + ## Attributes + + * `adTrackingId` (*type:* `String.t`, *default:* `nil`) - The tracking id of the ad. + * `path1` (*type:* `String.t`, *default:* `nil`) - Text appended to the auto-generated visible URL with a delimiter. + * `path2` (*type:* `String.t`, *default:* `nil`) - Text appended to path1 with a delimiter. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adTrackingId => String.t() | nil, + :path1 => String.t() | nil, + :path2 => String.t() | nil + } + + field(:adTrackingId) + field(:path1) + field(:path2) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ResponsiveSearchAdInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ResponsiveSearchAdInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ResponsiveSearchAdInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_text_ad_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_text_ad_info.ex new file mode 100644 index 0000000000..ab1c81cd35 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__search_ads360_text_ad_info.ex @@ -0,0 +1,66 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360TextAdInfo do + @moduledoc """ + A Search Ads 360 text ad. + + ## Attributes + + * `adTrackingId` (*type:* `String.t`, *default:* `nil`) - The tracking id of the ad. + * `description1` (*type:* `String.t`, *default:* `nil`) - The first line of the ad's description. + * `description2` (*type:* `String.t`, *default:* `nil`) - The second line of the ad's description. + * `displayMobileUrl` (*type:* `String.t`, *default:* `nil`) - The displayed mobile URL of the ad. + * `displayUrl` (*type:* `String.t`, *default:* `nil`) - The displayed URL of the ad. + * `headline` (*type:* `String.t`, *default:* `nil`) - The headline of the ad. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adTrackingId => String.t() | nil, + :description1 => String.t() | nil, + :description2 => String.t() | nil, + :displayMobileUrl => String.t() | nil, + :displayUrl => String.t() | nil, + :headline => String.t() | nil + } + + field(:adTrackingId) + field(:description1) + field(:description2) + field(:displayMobileUrl) + field(:displayUrl) + field(:headline) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360TextAdInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360TextAdInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360TextAdInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__segments.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__segments.ex new file mode 100644 index 0000000000..fe7f7f7afa --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__segments.ex @@ -0,0 +1,238 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Segments do + @moduledoc """ + Segment only fields. + + ## Attributes + + * `productSoldCustomAttribute4` (*type:* `String.t`, *default:* `nil`) - Custom attribute 4 of the product sold. + * `quarter` (*type:* `String.t`, *default:* `nil`) - Quarter as represented by the date of the first day of a quarter. Uses the calendar year for quarters, for example, the second quarter of 2018 starts on 2018-04-01. Formatted as yyyy-MM-dd. + * `adNetworkType` (*type:* `String.t`, *default:* `nil`) - Ad network type. + * `productBiddingCategoryLevel5` (*type:* `String.t`, *default:* `nil`) - Bidding category (level 5) of the product. + * `conversionActionName` (*type:* `String.t`, *default:* `nil`) - Conversion action name. + * `productCustomAttribute3` (*type:* `String.t`, *default:* `nil`) - Custom attribute 3 of the product. + * `productSoldTypeL3` (*type:* `String.t`, *default:* `nil`) - Type (level 3) of the product sold. + * `week` (*type:* `String.t`, *default:* `nil`) - Week as defined as Monday through Sunday, and represented by the date of Monday. Formatted as yyyy-MM-dd. + * `productSoldBiddingCategoryLevel3` (*type:* `String.t`, *default:* `nil`) - Bidding category (level 3) of the product sold. + * `productSoldTypeL1` (*type:* `String.t`, *default:* `nil`) - Type (level 1) of the product sold. + * `productSoldBiddingCategoryLevel1` (*type:* `String.t`, *default:* `nil`) - Bidding category (level 1) of the product sold. + * `productSoldCustomAttribute0` (*type:* `String.t`, *default:* `nil`) - Custom attribute 0 of the product sold. + * `productSoldTypeL4` (*type:* `String.t`, *default:* `nil`) - Type (level 4) of the product sold. + * `productSoldTypeL2` (*type:* `String.t`, *default:* `nil`) - Type (level 2) of the product sold. + * `productSoldBiddingCategoryLevel2` (*type:* `String.t`, *default:* `nil`) - Bidding category (level 2) of the product sold. + * `productSoldBrand` (*type:* `String.t`, *default:* `nil`) - Brand of the product sold. + * `date` (*type:* `String.t`, *default:* `nil`) - Date to which metrics apply. yyyy-MM-dd format, for example, 2018-04-17. + * `productCustomAttribute0` (*type:* `String.t`, *default:* `nil`) - Custom attribute 0 of the product. + * `productBiddingCategoryLevel1` (*type:* `String.t`, *default:* `nil`) - Bidding category (level 1) of the product. + * `productSoldItemId` (*type:* `String.t`, *default:* `nil`) - Item ID of the product sold. + * `productCountry` (*type:* `String.t`, *default:* `nil`) - Resource name of the geo target constant for the country of sale of the product. + * `keyword` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Keyword.t`, *default:* `nil`) - Keyword criterion. + * `assetInteractionTarget` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AssetInteractionTarget.t`, *default:* `nil`) - Only used with CustomerAsset, CampaignAsset and AdGroupAsset metrics. Indicates whether the interaction metrics occurred on the asset itself or a different asset or ad unit. Interactions (for example, clicks) are counted across all the parts of the served ad (for example, Ad itself and other components like Sitelinks) when they are served together. When interaction_on_this_asset is true, it means the interactions are on this specific asset and when interaction_on_this_asset is false, it means the interactions is not on this specific asset but on other parts of the served ad this asset is served with. + * `productBiddingCategoryLevel3` (*type:* `String.t`, *default:* `nil`) - Bidding category (level 3) of the product. + * `conversionAction` (*type:* `String.t`, *default:* `nil`) - Resource name of the conversion action. + * `productTypeL4` (*type:* `String.t`, *default:* `nil`) - Type (level 4) of the product. + * `productTypeL3` (*type:* `String.t`, *default:* `nil`) - Type (level 3) of the product. + * `rawEventConversionDimensions` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value.t)`, *default:* `nil`) - The raw event conversion dimensions. + * `productChannel` (*type:* `String.t`, *default:* `nil`) - Channel of the product. + * `productSoldBiddingCategoryLevel5` (*type:* `String.t`, *default:* `nil`) - Bidding category (level 5) of the product sold. + * `productSoldTypeL5` (*type:* `String.t`, *default:* `nil`) - Type (level 5) of the product sold. + * `productSoldCondition` (*type:* `String.t`, *default:* `nil`) - Condition of the product sold. + * `productCustomAttribute1` (*type:* `String.t`, *default:* `nil`) - Custom attribute 1 of the product. + * `productCustomAttribute4` (*type:* `String.t`, *default:* `nil`) - Custom attribute 4 of the product. + * `conversionCustomDimensions` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value.t)`, *default:* `nil`) - The conversion custom dimensions. + * `device` (*type:* `String.t`, *default:* `nil`) - Device to which metrics apply. + * `productChannelExclusivity` (*type:* `String.t`, *default:* `nil`) - Channel exclusivity of the product. + * `productSoldCustomAttribute2` (*type:* `String.t`, *default:* `nil`) - Custom attribute 2 of the product sold. + * `productTypeL2` (*type:* `String.t`, *default:* `nil`) - Type (level 2) of the product. + * `productCondition` (*type:* `String.t`, *default:* `nil`) - Condition of the product. + * `productBiddingCategoryLevel2` (*type:* `String.t`, *default:* `nil`) - Bidding category (level 2) of the product. + * `productBrand` (*type:* `String.t`, *default:* `nil`) - Brand of the product. + * `productSoldTitle` (*type:* `String.t`, *default:* `nil`) - Title of the product sold. + * `productStoreId` (*type:* `String.t`, *default:* `nil`) - Store ID of the product. + * `productCustomAttribute2` (*type:* `String.t`, *default:* `nil`) - Custom attribute 2 of the product. + * `productSoldBiddingCategoryLevel4` (*type:* `String.t`, *default:* `nil`) - Bidding category (level 4) of the product sold. + * `conversionActionCategory` (*type:* `String.t`, *default:* `nil`) - Conversion action category. + * `productSoldCustomAttribute3` (*type:* `String.t`, *default:* `nil`) - Custom attribute 3 of the product sold. + * `productSoldCustomAttribute1` (*type:* `String.t`, *default:* `nil`) - Custom attribute 1 of the product sold. + * `productBiddingCategoryLevel4` (*type:* `String.t`, *default:* `nil`) - Bidding category (level 4) of the product. + * `productLanguage` (*type:* `String.t`, *default:* `nil`) - Resource name of the language constant for the language of the product. + * `year` (*type:* `integer()`, *default:* `nil`) - Year, formatted as yyyy. + * `month` (*type:* `String.t`, *default:* `nil`) - Month as represented by the date of the first day of a month. Formatted as yyyy-MM-dd. + * `productTitle` (*type:* `String.t`, *default:* `nil`) - Title of the product. + * `dayOfWeek` (*type:* `String.t`, *default:* `nil`) - Day of the week, for example, MONDAY. + * `productTypeL5` (*type:* `String.t`, *default:* `nil`) - Type (level 5) of the product. + * `productItemId` (*type:* `String.t`, *default:* `nil`) - Item ID of the product. + * `productTypeL1` (*type:* `String.t`, *default:* `nil`) - Type (level 1) of the product. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :productSoldCustomAttribute4 => String.t() | nil, + :quarter => String.t() | nil, + :adNetworkType => String.t() | nil, + :productBiddingCategoryLevel5 => String.t() | nil, + :conversionActionName => String.t() | nil, + :productCustomAttribute3 => String.t() | nil, + :productSoldTypeL3 => String.t() | nil, + :week => String.t() | nil, + :productSoldBiddingCategoryLevel3 => String.t() | nil, + :productSoldTypeL1 => String.t() | nil, + :productSoldBiddingCategoryLevel1 => String.t() | nil, + :productSoldCustomAttribute0 => String.t() | nil, + :productSoldTypeL4 => String.t() | nil, + :productSoldTypeL2 => String.t() | nil, + :productSoldBiddingCategoryLevel2 => String.t() | nil, + :productSoldBrand => String.t() | nil, + :date => String.t() | nil, + :productCustomAttribute0 => String.t() | nil, + :productBiddingCategoryLevel1 => String.t() | nil, + :productSoldItemId => String.t() | nil, + :productCountry => String.t() | nil, + :keyword => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Keyword.t() | nil, + :assetInteractionTarget => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AssetInteractionTarget.t() + | nil, + :productBiddingCategoryLevel3 => String.t() | nil, + :conversionAction => String.t() | nil, + :productTypeL4 => String.t() | nil, + :productTypeL3 => String.t() | nil, + :rawEventConversionDimensions => + list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value.t()) | nil, + :productChannel => String.t() | nil, + :productSoldBiddingCategoryLevel5 => String.t() | nil, + :productSoldTypeL5 => String.t() | nil, + :productSoldCondition => String.t() | nil, + :productCustomAttribute1 => String.t() | nil, + :productCustomAttribute4 => String.t() | nil, + :conversionCustomDimensions => + list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value.t()) | nil, + :device => String.t() | nil, + :productChannelExclusivity => String.t() | nil, + :productSoldCustomAttribute2 => String.t() | nil, + :productTypeL2 => String.t() | nil, + :productCondition => String.t() | nil, + :productBiddingCategoryLevel2 => String.t() | nil, + :productBrand => String.t() | nil, + :productSoldTitle => String.t() | nil, + :productStoreId => String.t() | nil, + :productCustomAttribute2 => String.t() | nil, + :productSoldBiddingCategoryLevel4 => String.t() | nil, + :conversionActionCategory => String.t() | nil, + :productSoldCustomAttribute3 => String.t() | nil, + :productSoldCustomAttribute1 => String.t() | nil, + :productBiddingCategoryLevel4 => String.t() | nil, + :productLanguage => String.t() | nil, + :year => integer() | nil, + :month => String.t() | nil, + :productTitle => String.t() | nil, + :dayOfWeek => String.t() | nil, + :productTypeL5 => String.t() | nil, + :productItemId => String.t() | nil, + :productTypeL1 => String.t() | nil + } + + field(:productSoldCustomAttribute4) + field(:quarter) + field(:adNetworkType) + field(:productBiddingCategoryLevel5) + field(:conversionActionName) + field(:productCustomAttribute3) + field(:productSoldTypeL3) + field(:week) + field(:productSoldBiddingCategoryLevel3) + field(:productSoldTypeL1) + field(:productSoldBiddingCategoryLevel1) + field(:productSoldCustomAttribute0) + field(:productSoldTypeL4) + field(:productSoldTypeL2) + field(:productSoldBiddingCategoryLevel2) + field(:productSoldBrand) + field(:date) + field(:productCustomAttribute0) + field(:productBiddingCategoryLevel1) + field(:productSoldItemId) + field(:productCountry) + field(:keyword, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Keyword) + + field(:assetInteractionTarget, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AssetInteractionTarget + ) + + field(:productBiddingCategoryLevel3) + field(:conversionAction) + field(:productTypeL4) + field(:productTypeL3) + + field(:rawEventConversionDimensions, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value, + type: :list + ) + + field(:productChannel) + field(:productSoldBiddingCategoryLevel5) + field(:productSoldTypeL5) + field(:productSoldCondition) + field(:productCustomAttribute1) + field(:productCustomAttribute4) + + field(:conversionCustomDimensions, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value, + type: :list + ) + + field(:device) + field(:productChannelExclusivity) + field(:productSoldCustomAttribute2) + field(:productTypeL2) + field(:productCondition) + field(:productBiddingCategoryLevel2) + field(:productBrand) + field(:productSoldTitle) + field(:productStoreId) + field(:productCustomAttribute2) + field(:productSoldBiddingCategoryLevel4) + field(:conversionActionCategory) + field(:productSoldCustomAttribute3) + field(:productSoldCustomAttribute1) + field(:productBiddingCategoryLevel4) + field(:productLanguage) + field(:year) + field(:month) + field(:productTitle) + field(:dayOfWeek) + field(:productTypeL5) + field(:productItemId) + field(:productTypeL1) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Segments do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Segments.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Segments do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_cpa.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_cpa.ex new file mode 100644 index 0000000000..2dcb6d1298 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_cpa.ex @@ -0,0 +1,54 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpa do + @moduledoc """ + An automated bid strategy that sets bids to help get as many conversions as possible at the target cost-per-acquisition (CPA) you set. + + ## Attributes + + * `cpcBidCeilingMicros` (*type:* `String.t`, *default:* `nil`) - Maximum bid limit that can be set by the bid strategy. The limit applies to all keywords managed by the strategy. This should only be set for portfolio bid strategies. + * `cpcBidFloorMicros` (*type:* `String.t`, *default:* `nil`) - Minimum bid limit that can be set by the bid strategy. The limit applies to all keywords managed by the strategy. This should only be set for portfolio bid strategies. + * `targetCpaMicros` (*type:* `String.t`, *default:* `nil`) - Average CPA target. This target should be greater than or equal to minimum billable unit based on the currency for the account. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cpcBidCeilingMicros => String.t() | nil, + :cpcBidFloorMicros => String.t() | nil, + :targetCpaMicros => String.t() | nil + } + + field(:cpcBidCeilingMicros) + field(:cpcBidFloorMicros) + field(:targetCpaMicros) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpa do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpa.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpa do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_cpm.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_cpm.ex new file mode 100644 index 0000000000..028ff5439d --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_cpm.ex @@ -0,0 +1,43 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpm do + @moduledoc """ + Target CPM (cost per thousand impressions) is an automated bidding strategy that sets bids to optimize performance given the target CPM you set. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpm do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpm.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpm do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_impression_share.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_impression_share.ex new file mode 100644 index 0000000000..8ed64417e3 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_impression_share.ex @@ -0,0 +1,57 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetImpressionShare do + @moduledoc """ + An automated bidding strategy that sets bids so that a certain percentage of search ads are shown at the top of the first page (or other targeted location). + + ## Attributes + + * `cpcBidCeilingMicros` (*type:* `String.t`, *default:* `nil`) - The highest CPC bid the automated bidding system is permitted to specify. This is a required field entered by the advertiser that sets the ceiling and specified in local micros. + * `location` (*type:* `String.t`, *default:* `nil`) - The targeted location on the search results page. + * `locationFractionMicros` (*type:* `String.t`, *default:* `nil`) - The chosen fraction of ads to be shown in the targeted location in micros. For example, 1% equals 10,000. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cpcBidCeilingMicros => String.t() | nil, + :location => String.t() | nil, + :locationFractionMicros => String.t() | nil + } + + field(:cpcBidCeilingMicros) + field(:location) + field(:locationFractionMicros) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetImpressionShare do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetImpressionShare.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetImpressionShare do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_outrank_share.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_outrank_share.ex new file mode 100644 index 0000000000..46d397275d --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_outrank_share.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetOutrankShare do + @moduledoc """ + An automated bidding strategy that sets bids based on the target fraction of auctions where the advertiser should outrank a specific competitor. This strategy is deprecated. + + ## Attributes + + * `cpcBidCeilingMicros` (*type:* `String.t`, *default:* `nil`) - Maximum bid limit that can be set by the bid strategy. The limit applies to all keywords managed by the strategy. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cpcBidCeilingMicros => String.t() | nil + } + + field(:cpcBidCeilingMicros) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetOutrankShare do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetOutrankShare.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetOutrankShare do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_restriction.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_restriction.ex new file mode 100644 index 0000000000..71472321e9 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_restriction.ex @@ -0,0 +1,54 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRestriction do + @moduledoc """ + The list of per-targeting-dimension targeting settings. + + ## Attributes + + * `bidOnly` (*type:* `boolean()`, *default:* `nil`) - Indicates whether to restrict your ads to show only for the criteria you have selected for this targeting_dimension, or to target all values for this targeting_dimension and show ads based on your targeting in other TargetingDimensions. A value of `true` means that these criteria will only apply bid modifiers, and not affect targeting. A value of `false` means that these criteria will restrict targeting as well as applying bid modifiers. + * `targetingDimension` (*type:* `String.t`, *default:* `nil`) - The targeting dimension that these settings apply to. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bidOnly => boolean() | nil, + :targetingDimension => String.t() | nil + } + + field(:bidOnly) + field(:targetingDimension) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRestriction do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRestriction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRestriction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_roas.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_roas.ex new file mode 100644 index 0000000000..2b3242247c --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_roas.ex @@ -0,0 +1,57 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRoas do + @moduledoc """ + An automated bidding strategy that helps you maximize revenue while averaging a specific target return on ad spend (ROAS). + + ## Attributes + + * `cpcBidCeilingMicros` (*type:* `String.t`, *default:* `nil`) - Maximum bid limit that can be set by the bid strategy. The limit applies to all keywords managed by the strategy. This should only be set for portfolio bid strategies. + * `cpcBidFloorMicros` (*type:* `String.t`, *default:* `nil`) - Minimum bid limit that can be set by the bid strategy. The limit applies to all keywords managed by the strategy. This should only be set for portfolio bid strategies. + * `targetRoas` (*type:* `float()`, *default:* `nil`) - Required. The chosen revenue (based on conversion data) per unit of spend. Value must be between 0.01 and 1000.0, inclusive. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cpcBidCeilingMicros => String.t() | nil, + :cpcBidFloorMicros => String.t() | nil, + :targetRoas => float() | nil + } + + field(:cpcBidCeilingMicros) + field(:cpcBidFloorMicros) + field(:targetRoas) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRoas do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRoas.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRoas do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_spend.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_spend.ex new file mode 100644 index 0000000000..d169a8e10b --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__target_spend.ex @@ -0,0 +1,54 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetSpend do + @moduledoc """ + An automated bid strategy that sets your bids to help get as many clicks as possible within your budget. + + ## Attributes + + * `cpcBidCeilingMicros` (*type:* `String.t`, *default:* `nil`) - Maximum bid limit that can be set by the bid strategy. The limit applies to all keywords managed by the strategy. + * `targetSpendMicros` (*type:* `String.t`, *default:* `nil`) - The spend target under which to maximize clicks. A TargetSpend bidder will attempt to spend the smaller of this value or the natural throttling spend amount. If not specified, the budget is used as the spend target. This field is deprecated and should no longer be used. See https://ads-developers.googleblog.com/2020/05/reminder-about-sunset-creation-of.html for details. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cpcBidCeilingMicros => String.t() | nil, + :targetSpendMicros => String.t() | nil + } + + field(:cpcBidCeilingMicros) + field(:targetSpendMicros) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetSpend do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetSpend.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetSpend do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__targeting_setting.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__targeting_setting.ex new file mode 100644 index 0000000000..f11e0af751 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__targeting_setting.ex @@ -0,0 +1,58 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetingSetting do + @moduledoc """ + Settings for the targeting-related features, at the campaign and ad group levels. For more details about the targeting setting, visit https://support.google.com/google-ads/answer/7365594 + + ## Attributes + + * `targetRestrictions` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRestriction.t)`, *default:* `nil`) - The per-targeting-dimension setting to restrict the reach of your campaign or ad group. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :targetRestrictions => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRestriction.t() + ) + | nil + } + + field(:targetRestrictions, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRestriction, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetingSetting do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetingSetting.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetingSetting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__text_asset.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__text_asset.ex new file mode 100644 index 0000000000..3e2b72ed9f --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__text_asset.ex @@ -0,0 +1,48 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TextAsset do + @moduledoc """ + A Text asset. + + ## Attributes + + * `text` (*type:* `String.t`, *default:* `nil`) - Text content of the text asset. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :text => String.t() | nil + } + + field(:text) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TextAsset do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TextAsset.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TextAsset do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__text_label.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__text_label.ex new file mode 100644 index 0000000000..93ef8568d6 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__text_label.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TextLabel do + @moduledoc """ + A type of label displaying text on a colored background. + + ## Attributes + + * `backgroundColor` (*type:* `String.t`, *default:* `nil`) - Background color of the label in RGB format. This string must match the regular expression '^\\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$'. Note: The background color may not be visible for manager accounts. + * `description` (*type:* `String.t`, *default:* `nil`) - A short description of the label. The length must be no more than 200 characters. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :backgroundColor => String.t() | nil, + :description => String.t() | nil + } + + field(:backgroundColor) + field(:description) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TextLabel do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TextLabel.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TextLabel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_call_asset.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_call_asset.ex new file mode 100644 index 0000000000..f21b3ff31f --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_call_asset.ex @@ -0,0 +1,84 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedCallAsset do + @moduledoc """ + A unified call asset. + + ## Attributes + + * `adScheduleTargets` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AdScheduleInfo.t)`, *default:* `nil`) - List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total. + * `callConversionAction` (*type:* `String.t`, *default:* `nil`) - The conversion action to attribute a call conversion to. If not set, the default conversion action is used. This field only has effect if call_conversion_reporting_state is set to USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION. + * `callConversionReportingState` (*type:* `String.t`, *default:* `nil`) - Output only. Indicates whether this CallAsset should use its own call conversion setting, follow the account level setting, or disable call conversion. + * `callOnly` (*type:* `boolean()`, *default:* `nil`) - Whether the call only shows the phone number without a link to the website. Applies to Microsoft Ads. + * `callTrackingEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether the call should be enabled on call tracking. Applies to Microsoft Ads. + * `countryCode` (*type:* `String.t`, *default:* `nil`) - Two-letter country code of the phone number. Examples: 'US', 'us'. + * `endDate` (*type:* `String.t`, *default:* `nil`) - Last date of when this asset is effective and still serving, in yyyy-MM-dd format. + * `phoneNumber` (*type:* `String.t`, *default:* `nil`) - The advertiser's raw phone number. Examples: '1234567890', '(123)456-7890' + * `startDate` (*type:* `String.t`, *default:* `nil`) - Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format. + * `useSearcherTimeZone` (*type:* `boolean()`, *default:* `nil`) - Whether to show the call extension in search user's time zone. Applies to Microsoft Ads. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adScheduleTargets => + list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AdScheduleInfo.t()) + | nil, + :callConversionAction => String.t() | nil, + :callConversionReportingState => String.t() | nil, + :callOnly => boolean() | nil, + :callTrackingEnabled => boolean() | nil, + :countryCode => String.t() | nil, + :endDate => String.t() | nil, + :phoneNumber => String.t() | nil, + :startDate => String.t() | nil, + :useSearcherTimeZone => boolean() | nil + } + + field(:adScheduleTargets, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AdScheduleInfo, + type: :list + ) + + field(:callConversionAction) + field(:callConversionReportingState) + field(:callOnly) + field(:callTrackingEnabled) + field(:countryCode) + field(:endDate) + field(:phoneNumber) + field(:startDate) + field(:useSearcherTimeZone) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedCallAsset do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedCallAsset.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedCallAsset do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_callout_asset.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_callout_asset.ex new file mode 100644 index 0000000000..6c32dc5404 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_callout_asset.ex @@ -0,0 +1,69 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedCalloutAsset do + @moduledoc """ + A unified callout asset. + + ## Attributes + + * `adScheduleTargets` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AdScheduleInfo.t)`, *default:* `nil`) - List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total. + * `calloutText` (*type:* `String.t`, *default:* `nil`) - The callout text. The length of this string should be between 1 and 25, inclusive. + * `endDate` (*type:* `String.t`, *default:* `nil`) - Last date of when this asset is effective and still serving, in yyyy-MM-dd format. + * `startDate` (*type:* `String.t`, *default:* `nil`) - Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format. + * `useSearcherTimeZone` (*type:* `boolean()`, *default:* `nil`) - Whether to show the asset in search user's time zone. Applies to Microsoft Ads. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adScheduleTargets => + list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AdScheduleInfo.t()) + | nil, + :calloutText => String.t() | nil, + :endDate => String.t() | nil, + :startDate => String.t() | nil, + :useSearcherTimeZone => boolean() | nil + } + + field(:adScheduleTargets, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AdScheduleInfo, + type: :list + ) + + field(:calloutText) + field(:endDate) + field(:startDate) + field(:useSearcherTimeZone) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedCalloutAsset do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedCalloutAsset.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedCalloutAsset do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_location_asset.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_location_asset.ex new file mode 100644 index 0000000000..4270727f2a --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_location_asset.ex @@ -0,0 +1,65 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedLocationAsset do + @moduledoc """ + A unified location asset. + + ## Attributes + + * `businessProfileLocations` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_BusinessProfileLocation.t)`, *default:* `nil`) - The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID. + * `locationOwnershipType` (*type:* `String.t`, *default:* `nil`) - The type of location ownership. If the type is BUSINESS_OWNER, it will be served as a location extension. If the type is AFFILIATE, it will be served as an affiliate location. + * `placeId` (*type:* `String.t`, *default:* `nil`) - Place IDs uniquely identify a place in the Google Places database and on Google Maps. This field is unique for a given customer ID and asset type. See https://developers.google.com/places/web-service/place-id to learn more about Place ID. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :businessProfileLocations => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_BusinessProfileLocation.t() + ) + | nil, + :locationOwnershipType => String.t() | nil, + :placeId => String.t() | nil + } + + field(:businessProfileLocations, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_BusinessProfileLocation, + type: :list + ) + + field(:locationOwnershipType) + field(:placeId) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedLocationAsset do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedLocationAsset.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedLocationAsset do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_page_feed_asset.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_page_feed_asset.ex new file mode 100644 index 0000000000..ba642fe5d6 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_page_feed_asset.ex @@ -0,0 +1,54 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedPageFeedAsset do + @moduledoc """ + A Unified Page Feed asset. + + ## Attributes + + * `labels` (*type:* `list(String.t)`, *default:* `nil`) - Labels used to group the page urls. + * `pageUrl` (*type:* `String.t`, *default:* `nil`) - The webpage that advertisers want to target. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :labels => list(String.t()) | nil, + :pageUrl => String.t() | nil + } + + field(:labels, type: :list) + field(:pageUrl) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedPageFeedAsset do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedPageFeedAsset.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedPageFeedAsset do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_sitelink_asset.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_sitelink_asset.ex new file mode 100644 index 0000000000..9d57cabd02 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__unified_sitelink_asset.ex @@ -0,0 +1,81 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedSitelinkAsset do + @moduledoc """ + A unified sitelink asset. + + ## Attributes + + * `adScheduleTargets` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AdScheduleInfo.t)`, *default:* `nil`) - List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total. + * `description1` (*type:* `String.t`, *default:* `nil`) - First line of the description for the sitelink. If set, the length should be between 1 and 35, inclusive, and description2 must also be set. + * `description2` (*type:* `String.t`, *default:* `nil`) - Second line of the description for the sitelink. If set, the length should be between 1 and 35, inclusive, and description1 must also be set. + * `endDate` (*type:* `String.t`, *default:* `nil`) - Last date of when this asset is effective and still serving, in yyyy-MM-dd format. + * `linkText` (*type:* `String.t`, *default:* `nil`) - URL display text for the sitelink. The length of this string should be between 1 and 25, inclusive. + * `mobilePreferred` (*type:* `boolean()`, *default:* `nil`) - Whether the preference is for the sitelink asset to be displayed on mobile devices. Applies to Microsoft Ads. + * `startDate` (*type:* `String.t`, *default:* `nil`) - Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format. + * `trackingId` (*type:* `String.t`, *default:* `nil`) - ID used for tracking clicks for the sitelink asset. This is a Yahoo! Japan only field. + * `useSearcherTimeZone` (*type:* `boolean()`, *default:* `nil`) - Whether to show the sitelink asset in search user's time zone. Applies to Microsoft Ads. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adScheduleTargets => + list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AdScheduleInfo.t()) + | nil, + :description1 => String.t() | nil, + :description2 => String.t() | nil, + :endDate => String.t() | nil, + :linkText => String.t() | nil, + :mobilePreferred => boolean() | nil, + :startDate => String.t() | nil, + :trackingId => String.t() | nil, + :useSearcherTimeZone => boolean() | nil + } + + field(:adScheduleTargets, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AdScheduleInfo, + type: :list + ) + + field(:description1) + field(:description2) + field(:endDate) + field(:linkText) + field(:mobilePreferred) + field(:startDate) + field(:trackingId) + field(:useSearcherTimeZone) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedSitelinkAsset do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedSitelinkAsset.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedSitelinkAsset do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__user_list_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__user_list_info.ex new file mode 100644 index 0000000000..109096b6a0 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__user_list_info.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UserListInfo do + @moduledoc """ + A User List criterion. Represents a user list that is defined by the advertiser to be targeted. + + ## Attributes + + * `userList` (*type:* `String.t`, *default:* `nil`) - The User List resource name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :userList => String.t() | nil + } + + field(:userList) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UserListInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UserListInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UserListInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__value.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__value.ex new file mode 100644 index 0000000000..61fc00e51d --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__value.ex @@ -0,0 +1,58 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value do + @moduledoc """ + A generic data container. + + ## Attributes + + * `booleanValue` (*type:* `boolean()`, *default:* `nil`) - A boolean. + * `doubleValue` (*type:* `float()`, *default:* `nil`) - A double. + * `floatValue` (*type:* `number()`, *default:* `nil`) - A float. + * `int64Value` (*type:* `String.t`, *default:* `nil`) - An int64. + * `stringValue` (*type:* `String.t`, *default:* `nil`) - A string. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :booleanValue => boolean() | nil, + :doubleValue => float() | nil, + :floatValue => number() | nil, + :int64Value => String.t() | nil, + :stringValue => String.t() | nil + } + + field(:booleanValue) + field(:doubleValue) + field(:floatValue) + field(:int64Value) + field(:stringValue) +end + +defimpl Poison.Decoder, for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__webpage_condition_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__webpage_condition_info.ex new file mode 100644 index 0000000000..f5392a71bf --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__webpage_condition_info.ex @@ -0,0 +1,57 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageConditionInfo do + @moduledoc """ + Logical expression for targeting webpages of an advertiser's website. + + ## Attributes + + * `argument` (*type:* `String.t`, *default:* `nil`) - Argument of webpage targeting condition. + * `operand` (*type:* `String.t`, *default:* `nil`) - Operand of webpage targeting condition. + * `operator` (*type:* `String.t`, *default:* `nil`) - Operator of webpage targeting condition. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :argument => String.t() | nil, + :operand => String.t() | nil, + :operator => String.t() | nil + } + + field(:argument) + field(:operand) + field(:operator) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageConditionInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageConditionInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageConditionInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__webpage_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__webpage_info.ex new file mode 100644 index 0000000000..fd14a50138 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__webpage_info.ex @@ -0,0 +1,65 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageInfo do + @moduledoc """ + Represents a criterion for targeting webpages of an advertiser's website. + + ## Attributes + + * `conditions` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageConditionInfo.t)`, *default:* `nil`) - Conditions, or logical expressions, for webpage targeting. The list of webpage targeting conditions are and-ed together when evaluated for targeting. An empty list of conditions indicates all pages of the campaign's website are targeted. This field is required for CREATE operations and is prohibited on UPDATE operations. + * `coveragePercentage` (*type:* `float()`, *default:* `nil`) - Website criteria coverage percentage. This is the computed percentage of website coverage based on the website target, negative website target and negative keywords in the ad group and campaign. For instance, when coverage returns as 1, it indicates it has 100% coverage. This field is read-only. + * `criterionName` (*type:* `String.t`, *default:* `nil`) - The name of the criterion that is defined by this parameter. The name value will be used for identifying, sorting and filtering criteria with this type of parameters. This field is required for CREATE operations and is prohibited on UPDATE operations. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conditions => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageConditionInfo.t() + ) + | nil, + :coveragePercentage => float() | nil, + :criterionName => String.t() | nil + } + + field(:conditions, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageConditionInfo, + type: :list + ) + + field(:coveragePercentage) + field(:criterionName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__youtube_video_asset.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__youtube_video_asset.ex new file mode 100644 index 0000000000..df1a0a8369 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_common__youtube_video_asset.ex @@ -0,0 +1,54 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_YoutubeVideoAsset do + @moduledoc """ + A YouTube asset. + + ## Attributes + + * `youtubeVideoId` (*type:* `String.t`, *default:* `nil`) - YouTube video id. This is the 11 character string value used in the YouTube video URL. + * `youtubeVideoTitle` (*type:* `String.t`, *default:* `nil`) - YouTube video title. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :youtubeVideoId => String.t() | nil, + :youtubeVideoTitle => String.t() | nil + } + + field(:youtubeVideoId) + field(:youtubeVideoTitle) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_YoutubeVideoAsset do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_YoutubeVideoAsset.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_YoutubeVideoAsset do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__error_code.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__error_code.ex new file mode 100644 index 0000000000..abf54133e7 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__error_code.ex @@ -0,0 +1,84 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorCode do + @moduledoc """ + The error reason represented by type and enum. + + ## Attributes + + * `authenticationError` (*type:* `String.t`, *default:* `nil`) - Indicates failure to properly authenticate user. + * `authorizationError` (*type:* `String.t`, *default:* `nil`) - An error encountered when trying to authorize a user. + * `customColumnError` (*type:* `String.t`, *default:* `nil`) - The reasons for the custom column error + * `dateError` (*type:* `String.t`, *default:* `nil`) - The reasons for the date error + * `dateRangeError` (*type:* `String.t`, *default:* `nil`) - The reasons for the date range error + * `distinctError` (*type:* `String.t`, *default:* `nil`) - The reasons for the distinct error + * `headerError` (*type:* `String.t`, *default:* `nil`) - The reasons for the header error. + * `internalError` (*type:* `String.t`, *default:* `nil`) - An unexpected server-side error. + * `invalidParameterError` (*type:* `String.t`, *default:* `nil`) - The reasons for invalid parameter errors. + * `queryError` (*type:* `String.t`, *default:* `nil`) - An error with the query + * `quotaError` (*type:* `String.t`, *default:* `nil`) - An error with the amount of quota remaining. + * `requestError` (*type:* `String.t`, *default:* `nil`) - An error caused by the request + * `sizeLimitError` (*type:* `String.t`, *default:* `nil`) - The reasons for the size limit error + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :authenticationError => String.t() | nil, + :authorizationError => String.t() | nil, + :customColumnError => String.t() | nil, + :dateError => String.t() | nil, + :dateRangeError => String.t() | nil, + :distinctError => String.t() | nil, + :headerError => String.t() | nil, + :internalError => String.t() | nil, + :invalidParameterError => String.t() | nil, + :queryError => String.t() | nil, + :quotaError => String.t() | nil, + :requestError => String.t() | nil, + :sizeLimitError => String.t() | nil + } + + field(:authenticationError) + field(:authorizationError) + field(:customColumnError) + field(:dateError) + field(:dateRangeError) + field(:distinctError) + field(:headerError) + field(:internalError) + field(:invalidParameterError) + field(:queryError) + field(:quotaError) + field(:requestError) + field(:sizeLimitError) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorCode do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorCode.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorCode do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__error_details.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__error_details.ex new file mode 100644 index 0000000000..4273a39cdf --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__error_details.ex @@ -0,0 +1,59 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorDetails do + @moduledoc """ + Additional error details. + + ## Attributes + + * `quotaErrorDetails` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_QuotaErrorDetails.t`, *default:* `nil`) - Details on the quota error, including the scope (account or developer), the rate bucket name and the retry delay. + * `unpublishedErrorCode` (*type:* `String.t`, *default:* `nil`) - The error code that should have been returned, but wasn't. This is used when the error code is not published in the client specified version. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :quotaErrorDetails => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_QuotaErrorDetails.t() + | nil, + :unpublishedErrorCode => String.t() | nil + } + + field(:quotaErrorDetails, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_QuotaErrorDetails + ) + + field(:unpublishedErrorCode) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorDetails do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorDetails.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__error_location.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__error_location.ex new file mode 100644 index 0000000000..5f93bc6530 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__error_location.ex @@ -0,0 +1,59 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorLocation do + @moduledoc """ + Describes the part of the request proto that caused the error. + + ## Attributes + + * `fieldPathElements` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorLocation_FieldPathElement.t)`, *default:* `nil`) - A field path that indicates which field was invalid in the request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fieldPathElements => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorLocation_FieldPathElement.t() + ) + | nil + } + + field(:fieldPathElements, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorLocation_FieldPathElement, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorLocation do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorLocation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorLocation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__error_location__field_path_element.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__error_location__field_path_element.ex new file mode 100644 index 0000000000..32aa742c28 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__error_location__field_path_element.ex @@ -0,0 +1,56 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorLocation_FieldPathElement do + @moduledoc """ + A part of a field path. + + ## Attributes + + * `fieldName` (*type:* `String.t`, *default:* `nil`) - The name of a field or a oneof + * `index` (*type:* `integer()`, *default:* `nil`) - If field_name is a repeated field, this is the element that failed + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fieldName => String.t() | nil, + :index => integer() | nil + } + + field(:fieldName) + field(:index) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorLocation_FieldPathElement do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorLocation_FieldPathElement.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorLocation_FieldPathElement do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__quota_error_details.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__quota_error_details.ex new file mode 100644 index 0000000000..c0902f52b8 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__quota_error_details.ex @@ -0,0 +1,57 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_QuotaErrorDetails do + @moduledoc """ + Additional quota error details when there is QuotaError. + + ## Attributes + + * `rateName` (*type:* `String.t`, *default:* `nil`) - The high level description of the quota bucket. Examples are "Get requests for standard access" or "Requests per account". + * `rateScope` (*type:* `String.t`, *default:* `nil`) - The rate scope of the quota limit. + * `retryDelay` (*type:* `String.t`, *default:* `nil`) - Backoff period that customers should wait before sending next request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :rateName => String.t() | nil, + :rateScope => String.t() | nil, + :retryDelay => String.t() | nil + } + + field(:rateName) + field(:rateScope) + field(:retryDelay) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_QuotaErrorDetails do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_QuotaErrorDetails.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_QuotaErrorDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__search_ads360_error.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__search_ads360_error.ex new file mode 100644 index 0000000000..ea8f519a16 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__search_ads360_error.ex @@ -0,0 +1,69 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_SearchAds360Error do + @moduledoc """ + SearchAds360-specific error. + + ## Attributes + + * `details` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorDetails.t`, *default:* `nil`) - Additional error details, which are returned by certain error codes. Most error codes do not include details. + * `errorCode` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorCode.t`, *default:* `nil`) - An enum value that indicates which error occurred. + * `location` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorLocation.t`, *default:* `nil`) - Describes the part of the request proto that caused the error. + * `message` (*type:* `String.t`, *default:* `nil`) - A human-readable description of the error. + * `trigger` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value.t`, *default:* `nil`) - The value that triggered the error. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :details => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorDetails.t() | nil, + :errorCode => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorCode.t() | nil, + :location => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorLocation.t() | nil, + :message => String.t() | nil, + :trigger => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value.t() | nil + } + + field(:details, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorDetails) + field(:errorCode, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorCode) + + field(:location, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_ErrorLocation) + + field(:message) + field(:trigger, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_SearchAds360Error do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_SearchAds360Error.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_SearchAds360Error do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__search_ads360_failure.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__search_ads360_failure.ex new file mode 100644 index 0000000000..4c69b88933 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_errors__search_ads360_failure.ex @@ -0,0 +1,62 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_SearchAds360Failure do + @moduledoc """ + Describes how a Search Ads 360 API call failed. It's returned inside google.rpc.Status.details when a call fails. + + ## Attributes + + * `errors` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_SearchAds360Error.t)`, *default:* `nil`) - The list of errors that occurred. + * `requestId` (*type:* `String.t`, *default:* `nil`) - The unique ID of the request that is used for debugging purposes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :errors => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_SearchAds360Error.t() + ) + | nil, + :requestId => String.t() | nil + } + + field(:errors, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_SearchAds360Error, + type: :list + ) + + field(:requestId) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_SearchAds360Failure do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_SearchAds360Failure.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Errors_SearchAds360Failure do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad.ex new file mode 100644 index 0000000000..56de466e62 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad.ex @@ -0,0 +1,107 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Ad do + @moduledoc """ + An ad. + + ## Attributes + + * `displayUrl` (*type:* `String.t`, *default:* `nil`) - The URL that appears in the ad description for some ad formats. + * `expandedDynamicSearchAd` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ExpandedDynamicSearchAdInfo.t`, *default:* `nil`) - Immutable. Details pertaining to an expanded dynamic search ad. + * `expandedTextAd` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ExpandedTextAdInfo.t`, *default:* `nil`) - Immutable. Details pertaining to an expanded text ad. + * `finalUrls` (*type:* `list(String.t)`, *default:* `nil`) - The list of possible final URLs after all cross-domain redirects for the ad. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the ad. + * `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The name of the ad. This is only used to be able to identify the ad. It does not need to be unique and does not affect the served ad. The name field is currently only supported for DisplayUploadAd, ImageAd, ShoppingComparisonListingAd and VideoAd. + * `productAd` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ProductAdInfo.t`, *default:* `nil`) - Immutable. Details pertaining to a product ad. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the ad. Ad resource names have the form: `customers/{customer_id}/ads/{ad_id}` + * `responsiveSearchAd` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ResponsiveSearchAdInfo.t`, *default:* `nil`) - Immutable. Details pertaining to a responsive search ad. + * `textAd` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360TextAdInfo.t`, *default:* `nil`) - Immutable. Details pertaining to a text ad. + * `type` (*type:* `String.t`, *default:* `nil`) - Output only. The type of ad. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayUrl => String.t() | nil, + :expandedDynamicSearchAd => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ExpandedDynamicSearchAdInfo.t() + | nil, + :expandedTextAd => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ExpandedTextAdInfo.t() + | nil, + :finalUrls => list(String.t()) | nil, + :id => String.t() | nil, + :name => String.t() | nil, + :productAd => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ProductAdInfo.t() + | nil, + :resourceName => String.t() | nil, + :responsiveSearchAd => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ResponsiveSearchAdInfo.t() + | nil, + :textAd => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360TextAdInfo.t() + | nil, + :type => String.t() | nil + } + + field(:displayUrl) + + field(:expandedDynamicSearchAd, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ExpandedDynamicSearchAdInfo + ) + + field(:expandedTextAd, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ExpandedTextAdInfo + ) + + field(:finalUrls, type: :list) + field(:id) + field(:name) + + field(:productAd, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ProductAdInfo + ) + + field(:resourceName) + + field(:responsiveSearchAd, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360ResponsiveSearchAdInfo + ) + + field(:textAd, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_SearchAds360TextAdInfo + ) + + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Ad do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Ad.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Ad do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group.ex new file mode 100644 index 0000000000..afc56df1c9 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group.ex @@ -0,0 +1,102 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroup do + @moduledoc """ + An ad group. + + ## Attributes + + * `adRotationMode` (*type:* `String.t`, *default:* `nil`) - The ad rotation mode of the ad group. + * `cpcBidMicros` (*type:* `String.t`, *default:* `nil`) - The maximum CPC (cost-per-click) bid. + * `creationTime` (*type:* `String.t`, *default:* `nil`) - Output only. The timestamp when this ad_group was created. The timestamp is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss" format. + * `endDate` (*type:* `String.t`, *default:* `nil`) - Output only. Date when the ad group ends serving ads. By default, the ad group ends on the ad group's end date. If this field is set, then the ad group ends at the end of the specified date in the customer's time zone. This field is only available for Microsoft Advertising and Facebook gateway accounts. Format: YYYY-MM-DD Example: 2019-03-14 + * `engineId` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the ad group in the external engine account. This field is for non-Google Ads account only, for example, Yahoo Japan, Microsoft, Baidu etc. For Google Ads entity, use "ad_group.id" instead. + * `engineStatus` (*type:* `String.t`, *default:* `nil`) - Output only. The Engine Status for ad group. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the ad group. + * `labels` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The resource names of labels attached to this ad group. + * `languageCode` (*type:* `String.t`, *default:* `nil`) - Output only. The language of the ads and keywords in an ad group. This field is only available for Microsoft Advertising accounts. More details: https://docs.microsoft.com/en-us/advertising/guides/ad-languages?view=bingads-13#adlanguage + * `lastModifiedTime` (*type:* `String.t`, *default:* `nil`) - Output only. The datetime when this ad group was last modified. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format. + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the ad group. This field is required and should not be empty when creating new ad groups. It must contain fewer than 255 UTF-8 full-width characters. It must not contain any null (code point 0x0), NL line feed (code point 0xA) or carriage return (code point 0xD) characters. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the ad group. Ad group resource names have the form: `customers/{customer_id}/adGroups/{ad_group_id}` + * `startDate` (*type:* `String.t`, *default:* `nil`) - Output only. Date when this ad group starts serving ads. By default, the ad group starts now or the ad group's start date, whichever is later. If this field is set, then the ad group starts at the beginning of the specified date in the customer's time zone. This field is only available for Microsoft Advertising and Facebook gateway accounts. Format: YYYY-MM-DD Example: 2019-03-14 + * `status` (*type:* `String.t`, *default:* `nil`) - The status of the ad group. + * `targetingSetting` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetingSetting.t`, *default:* `nil`) - Setting for targeting related features. + * `type` (*type:* `String.t`, *default:* `nil`) - Immutable. The type of the ad group. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adRotationMode => String.t() | nil, + :cpcBidMicros => String.t() | nil, + :creationTime => String.t() | nil, + :endDate => String.t() | nil, + :engineId => String.t() | nil, + :engineStatus => String.t() | nil, + :id => String.t() | nil, + :labels => list(String.t()) | nil, + :languageCode => String.t() | nil, + :lastModifiedTime => String.t() | nil, + :name => String.t() | nil, + :resourceName => String.t() | nil, + :startDate => String.t() | nil, + :status => String.t() | nil, + :targetingSetting => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetingSetting.t() + | nil, + :type => String.t() | nil + } + + field(:adRotationMode) + field(:cpcBidMicros) + field(:creationTime) + field(:endDate) + field(:engineId) + field(:engineStatus) + field(:id) + field(:labels, type: :list) + field(:languageCode) + field(:lastModifiedTime) + field(:name) + field(:resourceName) + field(:startDate) + field(:status) + + field(:targetingSetting, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetingSetting + ) + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroup do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroup.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroup do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_ad.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_ad.ex new file mode 100644 index 0000000000..0503bcfd8c --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_ad.ex @@ -0,0 +1,72 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAd do + @moduledoc """ + An ad group ad. + + ## Attributes + + * `ad` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Ad.t`, *default:* `nil`) - Immutable. The ad. + * `creationTime` (*type:* `String.t`, *default:* `nil`) - Output only. The timestamp when this ad_group_ad was created. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format. + * `engineId` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the ad in the external engine account. This field is for SearchAds 360 account only, for example, Yahoo Japan, Microsoft, Baidu etc. For non-SearchAds 360 entity, use "ad_group_ad.ad.id" instead. + * `engineStatus` (*type:* `String.t`, *default:* `nil`) - Output only. Additional status of the ad in the external engine account. Possible statuses (depending on the type of external account) include active, eligible, pending review, etc. + * `labels` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The resource names of labels attached to this ad group ad. + * `lastModifiedTime` (*type:* `String.t`, *default:* `nil`) - Output only. The datetime when this ad group ad was last modified. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the ad. Ad group ad resource names have the form: `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - The status of the ad. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ad => GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Ad.t() | nil, + :creationTime => String.t() | nil, + :engineId => String.t() | nil, + :engineStatus => String.t() | nil, + :labels => list(String.t()) | nil, + :lastModifiedTime => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil + } + + field(:ad, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Ad) + field(:creationTime) + field(:engineId) + field(:engineStatus) + field(:labels, type: :list) + field(:lastModifiedTime) + field(:resourceName) + field(:status) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAd do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAd.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAd do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_ad_label.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_ad_label.ex new file mode 100644 index 0000000000..f82bf895fe --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_ad_label.ex @@ -0,0 +1,57 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAdLabel do + @moduledoc """ + A relationship between an ad group ad and a label. + + ## Attributes + + * `adGroupAd` (*type:* `String.t`, *default:* `nil`) - Immutable. The ad group ad to which the label is attached. + * `label` (*type:* `String.t`, *default:* `nil`) - Immutable. The label assigned to the ad group ad. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the ad group ad label. Ad group ad label resource names have the form: `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adGroupAd => String.t() | nil, + :label => String.t() | nil, + :resourceName => String.t() | nil + } + + field(:adGroupAd) + field(:label) + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAdLabel do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAdLabel.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAdLabel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_asset.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_asset.ex new file mode 100644 index 0000000000..93255e8c91 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_asset.ex @@ -0,0 +1,60 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAsset do + @moduledoc """ + A link between an ad group and an asset. + + ## Attributes + + * `adGroup` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. The ad group to which the asset is linked. + * `asset` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. The asset which is linked to the ad group. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the ad group asset. AdGroupAsset resource names have the form: `customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}` + * `status` (*type:* `String.t`, *default:* `nil`) - Status of the ad group asset. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adGroup => String.t() | nil, + :asset => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil + } + + field(:adGroup) + field(:asset) + field(:resourceName) + field(:status) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAsset do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAsset.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAsset do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_asset_set.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_asset_set.ex new file mode 100644 index 0000000000..aa9efde83e --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_asset_set.ex @@ -0,0 +1,60 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAssetSet do + @moduledoc """ + AdGroupAssetSet is the linkage between an ad group and an asset set. Creating an AdGroupAssetSet links an asset set with an ad group. + + ## Attributes + + * `adGroup` (*type:* `String.t`, *default:* `nil`) - Immutable. The ad group to which this asset set is linked. + * `assetSet` (*type:* `String.t`, *default:* `nil`) - Immutable. The asset set which is linked to the ad group. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the ad group asset set. Ad group asset set resource names have the form: `customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. The status of the ad group asset set. Read-only. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adGroup => String.t() | nil, + :assetSet => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil + } + + field(:adGroup) + field(:assetSet) + field(:resourceName) + field(:status) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAssetSet do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAssetSet.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAssetSet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_audience_view.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_audience_view.ex new file mode 100644 index 0000000000..7271844765 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_audience_view.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAudienceView do + @moduledoc """ + An ad group audience view. Includes performance data from interests and remarketing lists for Display Network and YouTube Network ads, and remarketing lists for search ads (RLSA), aggregated at the audience level. + + ## Attributes + + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the ad group audience view. Ad group audience view resource names have the form: `customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resourceName => String.t() | nil + } + + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAudienceView do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAudienceView.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAudienceView do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_bid_modifier.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_bid_modifier.ex new file mode 100644 index 0000000000..5e447719aa --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_bid_modifier.ex @@ -0,0 +1,58 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupBidModifier do + @moduledoc """ + Represents an ad group bid modifier. + + ## Attributes + + * `bidModifier` (*type:* `float()`, *default:* `nil`) - The modifier for the bid when the criterion matches. The modifier must be in the range: 0.1 - 10.0. The range is 1.0 - 6.0 for PreferredContent. Use 0 to opt out of a Device type. + * `device` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_DeviceInfo.t`, *default:* `nil`) - Immutable. A device criterion. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the ad group bid modifier. Ad group bid modifier resource names have the form: `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bidModifier => float() | nil, + :device => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_DeviceInfo.t() | nil, + :resourceName => String.t() | nil + } + + field(:bidModifier) + field(:device, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_DeviceInfo) + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupBidModifier do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupBidModifier.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupBidModifier do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_criterion.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_criterion.ex new file mode 100644 index 0000000000..88dfb71e79 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_criterion.ex @@ -0,0 +1,151 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion do + @moduledoc """ + An ad group criterion. + + ## Attributes + + * `adGroup` (*type:* `String.t`, *default:* `nil`) - Immutable. The ad group to which the criterion belongs. + * `ageRange` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AgeRangeInfo.t`, *default:* `nil`) - Immutable. Age range. + * `bidModifier` (*type:* `float()`, *default:* `nil`) - The modifier for the bid when the criterion matches. The modifier must be in the range: 0.1 - 10.0. Most targetable criteria types support modifiers. + * `cpcBidMicros` (*type:* `String.t`, *default:* `nil`) - The CPC (cost-per-click) bid. + * `creationTime` (*type:* `String.t`, *default:* `nil`) - Output only. The timestamp when this ad group criterion was created. The timestamp is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss" format. + * `criterionId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the criterion. + * `effectiveCpcBidMicros` (*type:* `String.t`, *default:* `nil`) - Output only. The effective CPC (cost-per-click) bid. + * `engineId` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the ad group criterion in the external engine account. This field is for non-Google Ads account only, for example, Yahoo Japan, Microsoft, Baidu etc. For Google Ads entity, use "ad_group_criterion.criterion_id" instead. + * `engineStatus` (*type:* `String.t`, *default:* `nil`) - Output only. The Engine Status for ad group criterion. + * `finalUrlSuffix` (*type:* `String.t`, *default:* `nil`) - URL template for appending params to final URL. + * `finalUrls` (*type:* `list(String.t)`, *default:* `nil`) - The list of possible final URLs after all cross-domain redirects for the ad. + * `gender` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_GenderInfo.t`, *default:* `nil`) - Immutable. Gender. + * `keyword` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_KeywordInfo.t`, *default:* `nil`) - Immutable. Keyword. + * `labels` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The resource names of labels attached to this ad group criterion. + * `lastModifiedTime` (*type:* `String.t`, *default:* `nil`) - Output only. The datetime when this ad group criterion was last modified. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format. + * `listingGroup` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ListingGroupInfo.t`, *default:* `nil`) - Immutable. Listing group. + * `location` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationInfo.t`, *default:* `nil`) - Immutable. Location. + * `negative` (*type:* `boolean()`, *default:* `nil`) - Immutable. Whether to target (`false`) or exclude (`true`) the criterion. This field is immutable. To switch a criterion from positive to negative, remove then re-add it. + * `positionEstimates` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion_PositionEstimates.t`, *default:* `nil`) - Output only. Estimates for criterion bids at various positions. + * `qualityInfo` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion_QualityInfo.t`, *default:* `nil`) - Output only. Information regarding the quality of the criterion. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the ad group criterion. Ad group criterion resource names have the form: `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - The status of the criterion. This is the status of the ad group criterion entity, set by the client. Note: UI reports may incorporate additional information that affects whether a criterion is eligible to run. In some cases a criterion that's REMOVED in the API can still show as enabled in the UI. For example, campaigns by default show to users of all age ranges unless excluded. The UI will show each age range as "enabled", since they're eligible to see the ads; but AdGroupCriterion.status will show "removed", since no positive criterion was added. + * `trackingUrlTemplate` (*type:* `String.t`, *default:* `nil`) - The URL template for constructing a tracking URL. + * `type` (*type:* `String.t`, *default:* `nil`) - Output only. The type of the criterion. + * `userList` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UserListInfo.t`, *default:* `nil`) - Immutable. User List. The Similar Audiences sunset starts May 2023. Refer to https://ads-developers.googleblog.com/2022/11/announcing-deprecation-and-sunset-of.html for other options. + * `webpage` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageInfo.t`, *default:* `nil`) - Immutable. Webpage + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adGroup => String.t() | nil, + :ageRange => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AgeRangeInfo.t() | nil, + :bidModifier => float() | nil, + :cpcBidMicros => String.t() | nil, + :creationTime => String.t() | nil, + :criterionId => String.t() | nil, + :effectiveCpcBidMicros => String.t() | nil, + :engineId => String.t() | nil, + :engineStatus => String.t() | nil, + :finalUrlSuffix => String.t() | nil, + :finalUrls => list(String.t()) | nil, + :gender => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_GenderInfo.t() | nil, + :keyword => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_KeywordInfo.t() | nil, + :labels => list(String.t()) | nil, + :lastModifiedTime => String.t() | nil, + :listingGroup => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ListingGroupInfo.t() + | nil, + :location => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationInfo.t() | nil, + :negative => boolean() | nil, + :positionEstimates => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion_PositionEstimates.t() + | nil, + :qualityInfo => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion_QualityInfo.t() + | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil, + :trackingUrlTemplate => String.t() | nil, + :type => String.t() | nil, + :userList => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UserListInfo.t() | nil, + :webpage => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageInfo.t() | nil + } + + field(:adGroup) + field(:ageRange, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AgeRangeInfo) + field(:bidModifier) + field(:cpcBidMicros) + field(:creationTime) + field(:criterionId) + field(:effectiveCpcBidMicros) + field(:engineId) + field(:engineStatus) + field(:finalUrlSuffix) + field(:finalUrls, type: :list) + field(:gender, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_GenderInfo) + field(:keyword, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_KeywordInfo) + field(:labels, type: :list) + field(:lastModifiedTime) + + field(:listingGroup, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ListingGroupInfo + ) + + field(:location, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationInfo) + field(:negative) + + field(:positionEstimates, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion_PositionEstimates + ) + + field(:qualityInfo, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion_QualityInfo + ) + + field(:resourceName) + field(:status) + field(:trackingUrlTemplate) + field(:type) + field(:userList, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UserListInfo) + field(:webpage, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageInfo) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_criterion__position_estimates.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_criterion__position_estimates.ex new file mode 100644 index 0000000000..eb25f557c5 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_criterion__position_estimates.ex @@ -0,0 +1,53 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion_PositionEstimates do + @moduledoc """ + Estimates for criterion bids at various positions. + + ## Attributes + + * `topOfPageCpcMicros` (*type:* `String.t`, *default:* `nil`) - Output only. The estimate of the CPC bid required for ad to be displayed at the top of the first page of search results. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :topOfPageCpcMicros => String.t() | nil + } + + field(:topOfPageCpcMicros) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion_PositionEstimates do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion_PositionEstimates.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion_PositionEstimates do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_criterion__quality_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_criterion__quality_info.ex new file mode 100644 index 0000000000..631545b351 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_criterion__quality_info.ex @@ -0,0 +1,53 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion_QualityInfo do + @moduledoc """ + A container for ad group criterion quality information. + + ## Attributes + + * `qualityScore` (*type:* `integer()`, *default:* `nil`) - Output only. The quality score. This field may not be populated if Google does not have enough information to determine a value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :qualityScore => integer() | nil + } + + field(:qualityScore) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion_QualityInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion_QualityInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion_QualityInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_criterion_label.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_criterion_label.ex new file mode 100644 index 0000000000..2c3e64f832 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_criterion_label.ex @@ -0,0 +1,57 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterionLabel do + @moduledoc """ + A relationship between an ad group criterion and a label. + + ## Attributes + + * `adGroupCriterion` (*type:* `String.t`, *default:* `nil`) - Immutable. The ad group criterion to which the label is attached. + * `label` (*type:* `String.t`, *default:* `nil`) - Immutable. The label assigned to the ad group criterion. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the ad group criterion label. Ad group criterion label resource names have the form: `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adGroupCriterion => String.t() | nil, + :label => String.t() | nil, + :resourceName => String.t() | nil + } + + field(:adGroupCriterion) + field(:label) + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterionLabel do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterionLabel.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterionLabel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_label.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_label.ex new file mode 100644 index 0000000000..450ef68e49 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__ad_group_label.ex @@ -0,0 +1,57 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupLabel do + @moduledoc """ + A relationship between an ad group and a label. + + ## Attributes + + * `adGroup` (*type:* `String.t`, *default:* `nil`) - Immutable. The ad group to which the label is attached. + * `label` (*type:* `String.t`, *default:* `nil`) - Immutable. The label assigned to the ad group. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the ad group label. Ad group label resource names have the form: `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adGroup => String.t() | nil, + :label => String.t() | nil, + :resourceName => String.t() | nil + } + + field(:adGroup) + field(:label) + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupLabel do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupLabel.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupLabel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__age_range_view.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__age_range_view.ex new file mode 100644 index 0000000000..9abb3b91b9 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__age_range_view.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AgeRangeView do + @moduledoc """ + An age range view. + + ## Attributes + + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the age range view. Age range view resource names have the form: `customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resourceName => String.t() | nil + } + + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AgeRangeView do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AgeRangeView.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AgeRangeView do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset.ex new file mode 100644 index 0000000000..463b55a4b6 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset.ex @@ -0,0 +1,149 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Asset do + @moduledoc """ + Asset is a part of an ad which can be shared across multiple ads. It can be an image (ImageAsset), a video (YoutubeVideoAsset), etc. Assets are immutable and cannot be removed. To stop an asset from serving, remove the asset from the entity that is using it. + + ## Attributes + + * `callAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedCallAsset.t`, *default:* `nil`) - Output only. A unified call asset. + * `callToActionAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_CallToActionAsset.t`, *default:* `nil`) - Immutable. A call to action asset. + * `calloutAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedCalloutAsset.t`, *default:* `nil`) - Output only. A unified callout asset. + * `creationTime` (*type:* `String.t`, *default:* `nil`) - Output only. The timestamp when this asset was created. The timestamp is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss" format. + * `engineStatus` (*type:* `String.t`, *default:* `nil`) - Output only. The Engine Status for an asset. + * `finalUrls` (*type:* `list(String.t)`, *default:* `nil`) - A list of possible final URLs after all cross domain redirects. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the asset. + * `imageAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ImageAsset.t`, *default:* `nil`) - Output only. An image asset. + * `lastModifiedTime` (*type:* `String.t`, *default:* `nil`) - Output only. The datetime when this asset was last modified. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format. + * `locationAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedLocationAsset.t`, *default:* `nil`) - Output only. A unified location asset. + * `mobileAppAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MobileAppAsset.t`, *default:* `nil`) - A mobile app asset. + * `name` (*type:* `String.t`, *default:* `nil`) - Optional name of the asset. + * `pageFeedAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedPageFeedAsset.t`, *default:* `nil`) - Output only. A unified page feed asset. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the asset. Asset resource names have the form: `customers/{customer_id}/assets/{asset_id}` + * `sitelinkAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedSitelinkAsset.t`, *default:* `nil`) - Output only. A unified sitelink asset. + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. The status of the asset. + * `textAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TextAsset.t`, *default:* `nil`) - Output only. A text asset. + * `trackingUrlTemplate` (*type:* `String.t`, *default:* `nil`) - URL template for constructing a tracking URL. + * `type` (*type:* `String.t`, *default:* `nil`) - Output only. Type of the asset. + * `youtubeVideoAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_YoutubeVideoAsset.t`, *default:* `nil`) - Immutable. A YouTube video asset. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :callAsset => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedCallAsset.t() + | nil, + :callToActionAsset => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_CallToActionAsset.t() + | nil, + :calloutAsset => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedCalloutAsset.t() + | nil, + :creationTime => String.t() | nil, + :engineStatus => String.t() | nil, + :finalUrls => list(String.t()) | nil, + :id => String.t() | nil, + :imageAsset => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ImageAsset.t() | nil, + :lastModifiedTime => String.t() | nil, + :locationAsset => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedLocationAsset.t() + | nil, + :mobileAppAsset => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MobileAppAsset.t() | nil, + :name => String.t() | nil, + :pageFeedAsset => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedPageFeedAsset.t() + | nil, + :resourceName => String.t() | nil, + :sitelinkAsset => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedSitelinkAsset.t() + | nil, + :status => String.t() | nil, + :textAsset => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TextAsset.t() | nil, + :trackingUrlTemplate => String.t() | nil, + :type => String.t() | nil, + :youtubeVideoAsset => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_YoutubeVideoAsset.t() + | nil + } + + field(:callAsset, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedCallAsset + ) + + field(:callToActionAsset, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_CallToActionAsset + ) + + field(:calloutAsset, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedCalloutAsset + ) + + field(:creationTime) + field(:engineStatus) + field(:finalUrls, type: :list) + field(:id) + field(:imageAsset, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ImageAsset) + field(:lastModifiedTime) + + field(:locationAsset, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedLocationAsset + ) + + field(:mobileAppAsset, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MobileAppAsset + ) + + field(:name) + + field(:pageFeedAsset, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedPageFeedAsset + ) + + field(:resourceName) + + field(:sitelinkAsset, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UnifiedSitelinkAsset + ) + + field(:status) + field(:textAsset, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TextAsset) + field(:trackingUrlTemplate) + field(:type) + + field(:youtubeVideoAsset, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_YoutubeVideoAsset + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Asset do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Asset.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Asset do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group.ex new file mode 100644 index 0000000000..2697f2720d --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group.ex @@ -0,0 +1,78 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroup do + @moduledoc """ + An asset group. AssetGroupAsset is used to link an asset to the asset group. AssetGroupSignal is used to associate a signal to an asset group. + + ## Attributes + + * `adStrength` (*type:* `String.t`, *default:* `nil`) - Output only. Overall ad strength of this asset group. + * `campaign` (*type:* `String.t`, *default:* `nil`) - Immutable. The campaign with which this asset group is associated. The asset which is linked to the asset group. + * `finalMobileUrls` (*type:* `list(String.t)`, *default:* `nil`) - A list of final mobile URLs after all cross domain redirects. In performance max, by default, the urls are eligible for expansion unless opted out. + * `finalUrls` (*type:* `list(String.t)`, *default:* `nil`) - A list of final URLs after all cross domain redirects. In performance max, by default, the urls are eligible for expansion unless opted out. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the asset group. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the asset group. Required. It must have a minimum length of 1 and maximum length of 128. It must be unique under a campaign. + * `path1` (*type:* `String.t`, *default:* `nil`) - First part of text that may appear appended to the url displayed in the ad. + * `path2` (*type:* `String.t`, *default:* `nil`) - Second part of text that may appear appended to the url displayed in the ad. This field can only be set when path1 is set. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the asset group. Asset group resource names have the form: `customers/{customer_id}/assetGroups/{asset_group_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - The status of the asset group. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adStrength => String.t() | nil, + :campaign => String.t() | nil, + :finalMobileUrls => list(String.t()) | nil, + :finalUrls => list(String.t()) | nil, + :id => String.t() | nil, + :name => String.t() | nil, + :path1 => String.t() | nil, + :path2 => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil + } + + field(:adStrength) + field(:campaign) + field(:finalMobileUrls, type: :list) + field(:finalUrls, type: :list) + field(:id) + field(:name) + field(:path1) + field(:path2) + field(:resourceName) + field(:status) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroup do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroup.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroup do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_asset.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_asset.ex new file mode 100644 index 0000000000..f6ea18955a --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_asset.ex @@ -0,0 +1,63 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupAsset do + @moduledoc """ + AssetGroupAsset is the link between an asset and an asset group. Adding an AssetGroupAsset links an asset with an asset group. + + ## Attributes + + * `asset` (*type:* `String.t`, *default:* `nil`) - Immutable. The asset which this asset group asset is linking. + * `assetGroup` (*type:* `String.t`, *default:* `nil`) - Immutable. The asset group which this asset group asset is linking. + * `fieldType` (*type:* `String.t`, *default:* `nil`) - The description of the placement of the asset within the asset group. For example: HEADLINE, YOUTUBE_VIDEO etc + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the asset group asset. Asset group asset resource name have the form: `customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}` + * `status` (*type:* `String.t`, *default:* `nil`) - The status of the link between an asset and asset group. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :asset => String.t() | nil, + :assetGroup => String.t() | nil, + :fieldType => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil + } + + field(:asset) + field(:assetGroup) + field(:fieldType) + field(:resourceName) + field(:status) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupAsset do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupAsset.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupAsset do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_asset_combination_data.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_asset_combination_data.ex new file mode 100644 index 0000000000..d4f41a39a3 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_asset_combination_data.ex @@ -0,0 +1,58 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupAssetCombinationData do + @moduledoc """ + Asset group asset combination data + + ## Attributes + + * `assetCombinationServedAssets` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AssetUsage.t)`, *default:* `nil`) - Output only. Served assets. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :assetCombinationServedAssets => + list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AssetUsage.t()) + | nil + } + + field(:assetCombinationServedAssets, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AssetUsage, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupAssetCombinationData do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupAssetCombinationData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupAssetCombinationData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_listing_group_filter.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_listing_group_filter.ex new file mode 100644 index 0000000000..cbc394b3a8 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_listing_group_filter.ex @@ -0,0 +1,88 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupListingGroupFilter do + @moduledoc """ + AssetGroupListingGroupFilter represents a listing group filter tree node in an asset group. + + ## Attributes + + * `assetGroup` (*type:* `String.t`, *default:* `nil`) - Immutable. The asset group which this asset group listing group filter is part of. + * `caseValue` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension.t`, *default:* `nil`) - Dimension value with which this listing group is refining its parent. Undefined for the root group. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the ListingGroupFilter. + * `parentListingGroupFilter` (*type:* `String.t`, *default:* `nil`) - Immutable. Resource name of the parent listing group subdivision. Null for the root listing group filter node. + * `path` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimensionPath.t`, *default:* `nil`) - Output only. The path of dimensions defining this listing group filter. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the asset group listing group filter. Asset group listing group filter resource name have the form: `customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}` + * `type` (*type:* `String.t`, *default:* `nil`) - Immutable. Type of a listing group filter node. + * `vertical` (*type:* `String.t`, *default:* `nil`) - Immutable. The vertical the current node tree represents. All nodes in the same tree must belong to the same vertical. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :assetGroup => String.t() | nil, + :caseValue => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension.t() + | nil, + :id => String.t() | nil, + :parentListingGroupFilter => String.t() | nil, + :path => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimensionPath.t() + | nil, + :resourceName => String.t() | nil, + :type => String.t() | nil, + :vertical => String.t() | nil + } + + field(:assetGroup) + + field(:caseValue, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension + ) + + field(:id) + field(:parentListingGroupFilter) + + field(:path, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimensionPath + ) + + field(:resourceName) + field(:type) + field(:vertical) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupListingGroupFilter do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupListingGroupFilter.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupListingGroupFilter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_signal.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_signal.ex new file mode 100644 index 0000000000..69ef7c6cf8 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_signal.ex @@ -0,0 +1,58 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupSignal do + @moduledoc """ + AssetGroupSignal represents a signal in an asset group. The existence of a signal tells the performance max campaign who's most likely to convert. Performance Max uses the signal to look for new people with similar or stronger intent to find conversions across Search, Display, Video, and more. + + ## Attributes + + * `assetGroup` (*type:* `String.t`, *default:* `nil`) - Immutable. The asset group which this asset group signal belongs to. + * `audience` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AudienceInfo.t`, *default:* `nil`) - Immutable. The audience signal to be used by the performance max campaign. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the asset group signal. Asset group signal resource name have the form: `customers/{customer_id}/assetGroupSignals/{asset_group_id}~{signal_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :assetGroup => String.t() | nil, + :audience => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AudienceInfo.t() | nil, + :resourceName => String.t() | nil + } + + field(:assetGroup) + field(:audience, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AudienceInfo) + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupSignal do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupSignal.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupSignal do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_top_combination_view.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_top_combination_view.ex new file mode 100644 index 0000000000..b682b39d64 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_group_top_combination_view.ex @@ -0,0 +1,65 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupTopCombinationView do + @moduledoc """ + A view on the usage of ad group ad asset combination. + + ## Attributes + + * `assetGroupTopCombinations` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupAssetCombinationData.t)`, *default:* `nil`) - Output only. The top combinations of assets that served together. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the asset group top combination view. AssetGroup Top Combination view resource names have the form: `"customers/{customer_id}/assetGroupTopCombinationViews/{asset_group_id}~{asset_combination_category}" + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :assetGroupTopCombinations => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupAssetCombinationData.t() + ) + | nil, + :resourceName => String.t() | nil + } + + field(:assetGroupTopCombinations, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupAssetCombinationData, + type: :list + ) + + field(:resourceName) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupTopCombinationView do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupTopCombinationView.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupTopCombinationView do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_set.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_set.ex new file mode 100644 index 0000000000..f9cdb92e62 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_set.ex @@ -0,0 +1,54 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetSet do + @moduledoc """ + An asset set representing a collection of assets. Use AssetSetAsset to link an asset to the asset set. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the asset set. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the asset set. Asset set resource names have the form: `customers/{customer_id}/assetSets/{asset_set_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :resourceName => String.t() | nil + } + + field(:id) + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetSet do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetSet.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetSet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_set_asset.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_set_asset.ex new file mode 100644 index 0000000000..f5fda00755 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__asset_set_asset.ex @@ -0,0 +1,60 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetSetAsset do + @moduledoc """ + AssetSetAsset is the link between an asset and an asset set. Adding an AssetSetAsset links an asset with an asset set. + + ## Attributes + + * `asset` (*type:* `String.t`, *default:* `nil`) - Immutable. The asset which this asset set asset is linking to. + * `assetSet` (*type:* `String.t`, *default:* `nil`) - Immutable. The asset set which this asset set asset is linking to. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the asset set asset. Asset set asset resource names have the form: `customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. The status of the asset set asset. Read-only. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :asset => String.t() | nil, + :assetSet => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil + } + + field(:asset) + field(:assetSet) + field(:resourceName) + field(:status) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetSetAsset do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetSetAsset.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetSetAsset do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__audience.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__audience.ex new file mode 100644 index 0000000000..1a2f2e78a5 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__audience.ex @@ -0,0 +1,60 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Audience do + @moduledoc """ + Audience is an effective targeting option that lets you intersect different segment attributes, such as detailed demographics and affinities, to create audiences that represent sections of your target segments. + + ## Attributes + + * `description` (*type:* `String.t`, *default:* `nil`) - Description of this audience. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the audience. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the audience. It should be unique across all audiences. It must have a minimum length of 1 and maximum length of 255. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the audience. Audience names have the form: `customers/{customer_id}/audiences/{audience_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :description => String.t() | nil, + :id => String.t() | nil, + :name => String.t() | nil, + :resourceName => String.t() | nil + } + + field(:description) + field(:id) + field(:name) + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Audience do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Audience.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Audience do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__bidding_strategy.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__bidding_strategy.ex new file mode 100644 index 0000000000..49c65e5db5 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__bidding_strategy.ex @@ -0,0 +1,133 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_BiddingStrategy do + @moduledoc """ + A bidding strategy. + + ## Attributes + + * `campaignCount` (*type:* `String.t`, *default:* `nil`) - Output only. The number of campaigns attached to this bidding strategy. This field is read-only. + * `currencyCode` (*type:* `String.t`, *default:* `nil`) - Immutable. The currency used by the bidding strategy (ISO 4217 three-letter code). For bidding strategies in manager customers, this currency can be set on creation and defaults to the manager customer's currency. For serving customers, this field cannot be set; all strategies in a serving customer implicitly use the serving customer's currency. In all cases the effective_currency_code field returns the currency used by the strategy. + * `effectiveCurrencyCode` (*type:* `String.t`, *default:* `nil`) - Output only. The currency used by the bidding strategy (ISO 4217 three-letter code). For bidding strategies in manager customers, this is the currency set by the advertiser when creating the strategy. For serving customers, this is the customer's currency_code. Bidding strategy metrics are reported in this currency. This field is read-only. + * `enhancedCpc` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_EnhancedCpc.t`, *default:* `nil`) - 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. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the bidding strategy. + * `maximizeConversionValue` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversionValue.t`, *default:* `nil`) - An automated bidding strategy to help get the most conversion value for your campaigns while spending your budget. + * `maximizeConversions` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversions.t`, *default:* `nil`) - An automated bidding strategy to help get the most conversions for your campaigns while spending your budget. + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the bidding strategy. All bidding strategies within an account must be named distinctly. The length of this string should be between 1 and 255, inclusive, in UTF-8 bytes, (trimmed). + * `nonRemovedCampaignCount` (*type:* `String.t`, *default:* `nil`) - Output only. The number of non-removed campaigns attached to this bidding strategy. This field is read-only. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the bidding strategy. Bidding strategy resource names have the form: `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. The status of the bidding strategy. This field is read-only. + * `targetCpa` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpa.t`, *default:* `nil`) - A bidding strategy that sets bids to help get as many conversions as possible at the target cost-per-acquisition (CPA) you set. + * `targetImpressionShare` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetImpressionShare.t`, *default:* `nil`) - A bidding strategy that automatically optimizes towards a chosen percentage of impressions. + * `targetOutrankShare` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetOutrankShare.t`, *default:* `nil`) - A bidding strategy that sets bids based on the target fraction of auctions where the advertiser should outrank a specific competitor. This field is deprecated. Creating a new bidding strategy with this field or attaching bidding strategies with this field to a campaign will fail. Mutates to strategies that already have this scheme populated are allowed. + * `targetRoas` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRoas.t`, *default:* `nil`) - A bidding strategy that helps you maximize revenue while averaging a specific target Return On Ad Spend (ROAS). + * `targetSpend` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetSpend.t`, *default:* `nil`) - A bid strategy that sets your bids to help get as many clicks as possible within your budget. + * `type` (*type:* `String.t`, *default:* `nil`) - Output only. The type of the bidding strategy. Create a bidding strategy by setting the bidding scheme. This field is read-only. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :campaignCount => String.t() | nil, + :currencyCode => String.t() | nil, + :effectiveCurrencyCode => String.t() | nil, + :enhancedCpc => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_EnhancedCpc.t() | nil, + :id => String.t() | nil, + :maximizeConversionValue => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversionValue.t() + | nil, + :maximizeConversions => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversions.t() + | nil, + :name => String.t() | nil, + :nonRemovedCampaignCount => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil, + :targetCpa => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpa.t() | nil, + :targetImpressionShare => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetImpressionShare.t() + | nil, + :targetOutrankShare => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetOutrankShare.t() + | nil, + :targetRoas => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRoas.t() | nil, + :targetSpend => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetSpend.t() | nil, + :type => String.t() | nil + } + + field(:campaignCount) + field(:currencyCode) + field(:effectiveCurrencyCode) + + field(:enhancedCpc, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_EnhancedCpc + ) + + field(:id) + + field(:maximizeConversionValue, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversionValue + ) + + field(:maximizeConversions, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversions + ) + + field(:name) + field(:nonRemovedCampaignCount) + field(:resourceName) + field(:status) + field(:targetCpa, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpa) + + field(:targetImpressionShare, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetImpressionShare + ) + + field(:targetOutrankShare, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetOutrankShare + ) + + field(:targetRoas, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRoas) + + field(:targetSpend, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetSpend + ) + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_BiddingStrategy do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_BiddingStrategy.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_BiddingStrategy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign.ex new file mode 100644 index 0000000000..f8846c56f4 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign.ex @@ -0,0 +1,276 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign do + @moduledoc """ + A campaign. + + ## Attributes + + * `advertisingChannelType` (*type:* `String.t`, *default:* `nil`) - Immutable. The primary serving target for ads within the campaign. The targeting options can be refined in `network_settings`. This field is required and should not be empty when creating new campaigns. Can be set only when creating campaigns. After the campaign is created, the field can not be changed. + * `selectiveOptimization` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_SelectiveOptimization.t`, *default:* `nil`) - Selective optimization setting for this campaign, which includes a set of conversion actions to optimize this campaign towards. This feature only applies to app campaigns that use MULTI_CHANNEL as AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as AdvertisingChannelSubType. + * `advertisingChannelSubType` (*type:* `String.t`, *default:* `nil`) - Immutable. Optional refinement to `advertising_channel_type`. Must be a valid sub-type of the parent channel type. Can be set only when creating campaigns. After campaign is created, the field can not be changed. + * `biddingStrategy` (*type:* `String.t`, *default:* `nil`) - Portfolio bidding strategy used by campaign. + * `createTime` (*type:* `String.t`, *default:* `nil`) - Output only. The timestamp when this campaign was created. The timestamp is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss" format. create_time will be deprecated in v1. Use creation_time instead. + * `servingStatus` (*type:* `String.t`, *default:* `nil`) - Output only. The ad serving status of the campaign. + * `engineId` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the campaign in the external engine account. This field is for non-Google Ads account only, for example, Yahoo Japan, Microsoft, Baidu etc. For Google Ads entity, use "campaign.id" instead. + * `manualCpm` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpm.t`, *default:* `nil`) - Standard Manual CPM bidding strategy. Manual impression-based bidding where user pays per thousand impressions. + * `dynamicSearchAdsSetting` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_DynamicSearchAdsSetting.t`, *default:* `nil`) - The setting for controlling Dynamic Search Ads (DSA). + * `biddingStrategySystemStatus` (*type:* `String.t`, *default:* `nil`) - Output only. The system status of the campaign's bidding strategy. + * `trackingSetting` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_TrackingSetting.t`, *default:* `nil`) - Output only. Campaign-level settings for tracking information. + * `maximizeConversionValue` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversionValue.t`, *default:* `nil`) - Standard Maximize Conversion Value bidding strategy that automatically sets bids to maximize revenue while spending your budget. + * `percentCpc` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_PercentCpc.t`, *default:* `nil`) - Standard Percent Cpc bidding strategy where bids are a fraction of the advertised price for some good or service. + * `targetRoas` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRoas.t`, *default:* `nil`) - Standard Target ROAS bidding strategy that automatically maximizes revenue while averaging a specific target return on ad spend (ROAS). + * `targetImpressionShare` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetImpressionShare.t`, *default:* `nil`) - Target Impression Share bidding strategy. An automated bidding strategy that sets bids to achieve a chosen percentage of impressions. + * `realTimeBiddingSetting` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_RealTimeBiddingSetting.t`, *default:* `nil`) - Settings for Real-Time Bidding, a feature only available for campaigns targeting the Ad Exchange network. + * `lastModifiedTime` (*type:* `String.t`, *default:* `nil`) - Output only. The datetime when this campaign was last modified. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format. + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the campaign. This field is required and should not be empty when creating new campaigns. It must not contain any null (code point 0x0), NL line feed (code point 0xA) or carriage return (code point 0xD) characters. + * `targetCpa` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpa.t`, *default:* `nil`) - Standard Target CPA bidding strategy that automatically sets bids to help get as many conversions as possible at the target cost-per-acquisition (CPA) you set. + * `urlExpansionOptOut` (*type:* `boolean()`, *default:* `nil`) - Represents opting out of URL expansion to more targeted URLs. If opted out (true), only the final URLs in the asset group or URLs specified in the advertiser's Google Merchant Center or business data feeds are targeted. If opted in (false), the entire domain will be targeted. This field can only be set for Performance Max campaigns, where the default value is false. + * `trackingUrlTemplate` (*type:* `String.t`, *default:* `nil`) - The URL template for constructing a tracking URL. + * `geoTargetTypeSetting` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_GeoTargetTypeSetting.t`, *default:* `nil`) - The setting for ads geotargeting. + * `shoppingSetting` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_ShoppingSetting.t`, *default:* `nil`) - The setting for controlling Shopping campaigns. + * `status` (*type:* `String.t`, *default:* `nil`) - The status of the campaign. When a new campaign is added, the status defaults to ENABLED. + * `targetCpm` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpm.t`, *default:* `nil`) - A bidding strategy that automatically optimizes cost per thousand impressions. + * `optimizationGoalSetting` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_OptimizationGoalSetting.t`, *default:* `nil`) - Optimization goal setting for this campaign, which includes a set of optimization goal types. + * `manualCpa` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpa.t`, *default:* `nil`) - Standard Manual CPA bidding strategy. Manual bidding strategy that allows advertiser to set the bid per advertiser-specified action. Supported only for Local Services campaigns. + * `networkSettings` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_NetworkSettings.t`, *default:* `nil`) - The network settings for the campaign. + * `creationTime` (*type:* `String.t`, *default:* `nil`) - Output only. The timestamp when this campaign was created. The timestamp is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss" format. + * `campaignBudget` (*type:* `String.t`, *default:* `nil`) - The budget of the campaign. + * `frequencyCaps` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_FrequencyCapEntry.t)`, *default:* `nil`) - A list that limits how often each user will see this campaign's ads. + * `adServingOptimizationStatus` (*type:* `String.t`, *default:* `nil`) - The ad serving optimization status of the campaign. + * `excludedParentAssetFieldTypes` (*type:* `list(String.t)`, *default:* `nil`) - The asset field types that should be excluded from this campaign. Asset links with these field types will not be inherited by this campaign from the upper level. + * `endDate` (*type:* `String.t`, *default:* `nil`) - The last day of the campaign in serving customer's timezone in YYYY-MM-DD format. On create, defaults to 2037-12-30, which means the campaign will run indefinitely. To set an existing campaign to run indefinitely, set this field to 2037-12-30. + * `biddingStrategyType` (*type:* `String.t`, *default:* `nil`) - Output only. The type of bidding strategy. A bidding strategy can be created by setting either the bidding scheme to create a standard bidding strategy or the `bidding_strategy` field to create a portfolio bidding strategy. This field is read-only. + * `targetSpend` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetSpend.t`, *default:* `nil`) - Standard Target Spend bidding strategy that automatically sets your bids to help get as many clicks as possible within your budget. + * `urlCustomParameters` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_CustomParameter.t)`, *default:* `nil`) - The list of mappings used to substitute custom parameter tags in a `tracking_url_template`, `final_urls`, or `mobile_final_urls`. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the campaign. + * `maximizeConversions` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversions.t`, *default:* `nil`) - Standard Maximize Conversions bidding strategy that automatically maximizes number of conversions while spending your budget. + * `labels` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The resource names of labels attached to this campaign. + * `manualCpc` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpc.t`, *default:* `nil`) - Standard Manual CPC bidding strategy. Manual click-based bidding where user pays per click. + * `finalUrlSuffix` (*type:* `String.t`, *default:* `nil`) - Suffix used to append query parameters to landing pages that are served with parallel tracking. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the campaign. Campaign resource names have the form: `customers/{customer_id}/campaigns/{campaign_id}` + * `startDate` (*type:* `String.t`, *default:* `nil`) - The date when campaign started in serving customer's timezone in YYYY-MM-DD format. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :advertisingChannelType => String.t() | nil, + :selectiveOptimization => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_SelectiveOptimization.t() + | nil, + :advertisingChannelSubType => String.t() | nil, + :biddingStrategy => String.t() | nil, + :createTime => String.t() | nil, + :servingStatus => String.t() | nil, + :engineId => String.t() | nil, + :manualCpm => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpm.t() | nil, + :dynamicSearchAdsSetting => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_DynamicSearchAdsSetting.t() + | nil, + :biddingStrategySystemStatus => String.t() | nil, + :trackingSetting => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_TrackingSetting.t() + | nil, + :maximizeConversionValue => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversionValue.t() + | nil, + :percentCpc => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_PercentCpc.t() | nil, + :targetRoas => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRoas.t() | nil, + :targetImpressionShare => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetImpressionShare.t() + | nil, + :realTimeBiddingSetting => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_RealTimeBiddingSetting.t() + | nil, + :lastModifiedTime => String.t() | nil, + :name => String.t() | nil, + :targetCpa => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpa.t() | nil, + :urlExpansionOptOut => boolean() | nil, + :trackingUrlTemplate => String.t() | nil, + :geoTargetTypeSetting => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_GeoTargetTypeSetting.t() + | nil, + :shoppingSetting => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_ShoppingSetting.t() + | nil, + :status => String.t() | nil, + :targetCpm => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpm.t() | nil, + :optimizationGoalSetting => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_OptimizationGoalSetting.t() + | nil, + :manualCpa => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpa.t() | nil, + :networkSettings => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_NetworkSettings.t() + | nil, + :creationTime => String.t() | nil, + :campaignBudget => String.t() | nil, + :frequencyCaps => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_FrequencyCapEntry.t() + ) + | nil, + :adServingOptimizationStatus => String.t() | nil, + :excludedParentAssetFieldTypes => list(String.t()) | nil, + :endDate => String.t() | nil, + :biddingStrategyType => String.t() | nil, + :targetSpend => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetSpend.t() | nil, + :urlCustomParameters => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_CustomParameter.t() + ) + | nil, + :id => String.t() | nil, + :maximizeConversions => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversions.t() + | nil, + :labels => list(String.t()) | nil, + :manualCpc => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpc.t() | nil, + :finalUrlSuffix => String.t() | nil, + :resourceName => String.t() | nil, + :startDate => String.t() | nil + } + + field(:advertisingChannelType) + + field(:selectiveOptimization, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_SelectiveOptimization + ) + + field(:advertisingChannelSubType) + field(:biddingStrategy) + field(:createTime) + field(:servingStatus) + field(:engineId) + field(:manualCpm, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpm) + + field(:dynamicSearchAdsSetting, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_DynamicSearchAdsSetting + ) + + field(:biddingStrategySystemStatus) + + field(:trackingSetting, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_TrackingSetting + ) + + field(:maximizeConversionValue, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversionValue + ) + + field(:percentCpc, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_PercentCpc) + field(:targetRoas, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetRoas) + + field(:targetImpressionShare, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetImpressionShare + ) + + field(:realTimeBiddingSetting, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_RealTimeBiddingSetting + ) + + field(:lastModifiedTime) + field(:name) + field(:targetCpa, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpa) + field(:urlExpansionOptOut) + field(:trackingUrlTemplate) + + field(:geoTargetTypeSetting, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_GeoTargetTypeSetting + ) + + field(:shoppingSetting, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_ShoppingSetting + ) + + field(:status) + field(:targetCpm, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetCpm) + + field(:optimizationGoalSetting, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_OptimizationGoalSetting + ) + + field(:manualCpa, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpa) + + field(:networkSettings, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_NetworkSettings + ) + + field(:creationTime) + field(:campaignBudget) + + field(:frequencyCaps, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_FrequencyCapEntry, + type: :list + ) + + field(:adServingOptimizationStatus) + field(:excludedParentAssetFieldTypes, type: :list) + field(:endDate) + field(:biddingStrategyType) + + field(:targetSpend, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TargetSpend + ) + + field(:urlCustomParameters, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_CustomParameter, + type: :list + ) + + field(:id) + + field(:maximizeConversions, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_MaximizeConversions + ) + + field(:labels, type: :list) + field(:manualCpc, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_ManualCpc) + field(:finalUrlSuffix) + field(:resourceName) + field(:startDate) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__dynamic_search_ads_setting.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__dynamic_search_ads_setting.ex new file mode 100644 index 0000000000..d24ea88ccb --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__dynamic_search_ads_setting.ex @@ -0,0 +1,59 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_DynamicSearchAdsSetting do + @moduledoc """ + The setting for controlling Dynamic Search Ads (DSA). + + ## Attributes + + * `domainName` (*type:* `String.t`, *default:* `nil`) - Required. The Internet domain name that this setting represents, for example, "google.com" or "www.google.com". + * `languageCode` (*type:* `String.t`, *default:* `nil`) - Required. The language code specifying the language of the domain, for example, "en". + * `useSuppliedUrlsOnly` (*type:* `boolean()`, *default:* `nil`) - Whether the campaign uses advertiser supplied URLs exclusively. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :domainName => String.t() | nil, + :languageCode => String.t() | nil, + :useSuppliedUrlsOnly => boolean() | nil + } + + field(:domainName) + field(:languageCode) + field(:useSuppliedUrlsOnly) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_DynamicSearchAdsSetting do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_DynamicSearchAdsSetting.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_DynamicSearchAdsSetting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__geo_target_type_setting.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__geo_target_type_setting.ex new file mode 100644 index 0000000000..fee6cf558b --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__geo_target_type_setting.ex @@ -0,0 +1,56 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_GeoTargetTypeSetting do + @moduledoc """ + Represents a collection of settings related to ads geotargeting. + + ## Attributes + + * `negativeGeoTargetType` (*type:* `String.t`, *default:* `nil`) - The setting used for negative geotargeting in this particular campaign. + * `positiveGeoTargetType` (*type:* `String.t`, *default:* `nil`) - The setting used for positive geotargeting in this particular campaign. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :negativeGeoTargetType => String.t() | nil, + :positiveGeoTargetType => String.t() | nil + } + + field(:negativeGeoTargetType) + field(:positiveGeoTargetType) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_GeoTargetTypeSetting do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_GeoTargetTypeSetting.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_GeoTargetTypeSetting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__network_settings.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__network_settings.ex new file mode 100644 index 0000000000..2166322095 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__network_settings.ex @@ -0,0 +1,60 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_NetworkSettings do + @moduledoc """ + The network settings for the campaign. + + ## Attributes + + * `targetContentNetwork` (*type:* `boolean()`, *default:* `nil`) - Whether ads will be served on specified placements in the Google Display Network. Placements are specified using the Placement criterion. + * `targetGoogleSearch` (*type:* `boolean()`, *default:* `nil`) - Whether ads will be served with google.com search results. + * `targetPartnerSearchNetwork` (*type:* `boolean()`, *default:* `nil`) - Whether ads will be served on the Google Partner Network. This is available only to some select Google partner accounts. + * `targetSearchNetwork` (*type:* `boolean()`, *default:* `nil`) - Whether ads will be served on partner sites in the Google Search Network (requires `target_google_search` to also be `true`). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :targetContentNetwork => boolean() | nil, + :targetGoogleSearch => boolean() | nil, + :targetPartnerSearchNetwork => boolean() | nil, + :targetSearchNetwork => boolean() | nil + } + + field(:targetContentNetwork) + field(:targetGoogleSearch) + field(:targetPartnerSearchNetwork) + field(:targetSearchNetwork) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_NetworkSettings do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_NetworkSettings.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_NetworkSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__optimization_goal_setting.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__optimization_goal_setting.ex new file mode 100644 index 0000000000..a1c36e359e --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__optimization_goal_setting.ex @@ -0,0 +1,53 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_OptimizationGoalSetting do + @moduledoc """ + Optimization goal setting for this campaign, which includes a set of optimization goal types. + + ## Attributes + + * `optimizationGoalTypes` (*type:* `list(String.t)`, *default:* `nil`) - The list of optimization goal types. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :optimizationGoalTypes => list(String.t()) | nil + } + + field(:optimizationGoalTypes, type: :list) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_OptimizationGoalSetting do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_OptimizationGoalSetting.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_OptimizationGoalSetting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__selective_optimization.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__selective_optimization.ex new file mode 100644 index 0000000000..e85228cd98 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__selective_optimization.ex @@ -0,0 +1,53 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_SelectiveOptimization do + @moduledoc """ + Selective optimization setting for this campaign, which includes a set of conversion actions to optimize this campaign towards. This feature only applies to app campaigns that use MULTI_CHANNEL as AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as AdvertisingChannelSubType. + + ## Attributes + + * `conversionActions` (*type:* `list(String.t)`, *default:* `nil`) - The selected set of conversion actions for optimizing this campaign. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conversionActions => list(String.t()) | nil + } + + field(:conversionActions, type: :list) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_SelectiveOptimization do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_SelectiveOptimization.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_SelectiveOptimization do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__shopping_setting.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__shopping_setting.ex new file mode 100644 index 0000000000..155b353bf0 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__shopping_setting.ex @@ -0,0 +1,66 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_ShoppingSetting do + @moduledoc """ + The setting for Shopping campaigns. Defines the universe of products that can be advertised by the campaign, and how this campaign interacts with other Shopping campaigns. + + ## Attributes + + * `campaignPriority` (*type:* `integer()`, *default:* `nil`) - Priority of the campaign. Campaigns with numerically higher priorities take precedence over those with lower priorities. 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. + * `enableLocal` (*type:* `boolean()`, *default:* `nil`) - Whether to include local products. + * `feedLabel` (*type:* `String.t`, *default:* `nil`) - Feed label of products to include in the campaign. Only one of feed_label or sales_country can be set. If used instead of sales_country, the feed_label field accepts country codes in the same format for example: 'XX'. Otherwise can be any string used for feed label in Google Merchant Center. + * `merchantId` (*type:* `String.t`, *default:* `nil`) - Immutable. ID of the Merchant Center account. This field is required for create operations. This field is immutable for Shopping campaigns. + * `salesCountry` (*type:* `String.t`, *default:* `nil`) - Sales country of products to include in the campaign. + * `useVehicleInventory` (*type:* `boolean()`, *default:* `nil`) - Immutable. Whether to target Vehicle Listing inventory. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :campaignPriority => integer() | nil, + :enableLocal => boolean() | nil, + :feedLabel => String.t() | nil, + :merchantId => String.t() | nil, + :salesCountry => String.t() | nil, + :useVehicleInventory => boolean() | nil + } + + field(:campaignPriority) + field(:enableLocal) + field(:feedLabel) + field(:merchantId) + field(:salesCountry) + field(:useVehicleInventory) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_ShoppingSetting do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_ShoppingSetting.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_ShoppingSetting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__tracking_setting.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__tracking_setting.ex new file mode 100644 index 0000000000..74b48b5ed3 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign__tracking_setting.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_TrackingSetting do + @moduledoc """ + Campaign-level settings for tracking information. + + ## Attributes + + * `trackingUrl` (*type:* `String.t`, *default:* `nil`) - Output only. The url used for dynamic tracking. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :trackingUrl => String.t() | nil + } + + field(:trackingUrl) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_TrackingSetting do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_TrackingSetting.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign_TrackingSetting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_asset.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_asset.ex new file mode 100644 index 0000000000..f2512b4eae --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_asset.ex @@ -0,0 +1,60 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAsset do + @moduledoc """ + A link between a Campaign and an Asset. + + ## Attributes + + * `asset` (*type:* `String.t`, *default:* `nil`) - Immutable. The asset which is linked to the campaign. + * `campaign` (*type:* `String.t`, *default:* `nil`) - Immutable. The campaign to which the asset is linked. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the campaign asset. CampaignAsset resource names have the form: `customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}` + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. Status of the campaign asset. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :asset => String.t() | nil, + :campaign => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil + } + + field(:asset) + field(:campaign) + field(:resourceName) + field(:status) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAsset do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAsset.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAsset do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_asset_set.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_asset_set.ex new file mode 100644 index 0000000000..98f0dabf77 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_asset_set.ex @@ -0,0 +1,60 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAssetSet do + @moduledoc """ + CampaignAssetSet is the linkage between a campaign and an asset set. Adding a CampaignAssetSet links an asset set with a campaign. + + ## Attributes + + * `assetSet` (*type:* `String.t`, *default:* `nil`) - Immutable. The asset set which is linked to the campaign. + * `campaign` (*type:* `String.t`, *default:* `nil`) - Immutable. The campaign to which this asset set is linked. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the campaign asset set. Asset set asset resource names have the form: `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. The status of the campaign asset set asset. Read-only. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :assetSet => String.t() | nil, + :campaign => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil + } + + field(:assetSet) + field(:campaign) + field(:resourceName) + field(:status) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAssetSet do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAssetSet.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAssetSet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_audience_view.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_audience_view.ex new file mode 100644 index 0000000000..f74590e3c8 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_audience_view.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAudienceView do + @moduledoc """ + A campaign audience view. Includes performance data from interests and remarketing lists for Display Network and YouTube Network ads, and remarketing lists for search ads (RLSA), aggregated by campaign and audience criterion. This view only includes audiences attached at the campaign level. + + ## Attributes + + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the campaign audience view. Campaign audience view resource names have the form: `customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resourceName => String.t() | nil + } + + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAudienceView do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAudienceView.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAudienceView do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_budget.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_budget.ex new file mode 100644 index 0000000000..76646be8d7 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_budget.ex @@ -0,0 +1,60 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignBudget do + @moduledoc """ + A campaign budget. + + ## Attributes + + * `amountMicros` (*type:* `String.t`, *default:* `nil`) - The amount of the budget, in the local currency for the account. Amount is specified in micros, where one million is equivalent to one currency unit. Monthly spend is capped at 30.4 times this amount. + * `deliveryMethod` (*type:* `String.t`, *default:* `nil`) - The delivery method that determines the rate at which the campaign budget is spent. Defaults to STANDARD if unspecified in a create operation. + * `period` (*type:* `String.t`, *default:* `nil`) - Immutable. Period over which to spend the budget. Defaults to DAILY if not specified. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the campaign budget. Campaign budget resource names have the form: `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :amountMicros => String.t() | nil, + :deliveryMethod => String.t() | nil, + :period => String.t() | nil, + :resourceName => String.t() | nil + } + + field(:amountMicros) + field(:deliveryMethod) + field(:period) + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignBudget do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignBudget.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignBudget do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_criterion.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_criterion.ex new file mode 100644 index 0000000000..3d6eab2bcf --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_criterion.ex @@ -0,0 +1,113 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignCriterion do + @moduledoc """ + A campaign criterion. + + ## Attributes + + * `ageRange` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AgeRangeInfo.t`, *default:* `nil`) - Immutable. Age range. + * `bidModifier` (*type:* `number()`, *default:* `nil`) - The modifier for the bids when the criterion matches. The modifier must be in the range: 0.1 - 10.0. Most targetable criteria types support modifiers. Use 0 to opt out of a Device type. + * `criterionId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the criterion. This field is ignored during mutate. + * `device` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_DeviceInfo.t`, *default:* `nil`) - Immutable. Device. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Output only. The display name of the criterion. This field is ignored for mutates. + * `gender` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_GenderInfo.t`, *default:* `nil`) - Immutable. Gender. + * `keyword` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_KeywordInfo.t`, *default:* `nil`) - Immutable. Keyword. + * `language` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LanguageInfo.t`, *default:* `nil`) - Immutable. Language. + * `lastModifiedTime` (*type:* `String.t`, *default:* `nil`) - Output only. The datetime when this campaign criterion was last modified. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format. + * `location` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationInfo.t`, *default:* `nil`) - Immutable. Location. + * `locationGroup` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationGroupInfo.t`, *default:* `nil`) - Immutable. Location Group + * `negative` (*type:* `boolean()`, *default:* `nil`) - Immutable. Whether to target (`false`) or exclude (`true`) the criterion. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the campaign criterion. Campaign criterion resource names have the form: `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - The status of the criterion. + * `type` (*type:* `String.t`, *default:* `nil`) - Output only. The type of the criterion. + * `userList` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UserListInfo.t`, *default:* `nil`) - Immutable. User List. The Similar Audiences sunset starts May 2023. Refer to https://ads-developers.googleblog.com/2022/11/announcing-deprecation-and-sunset-of.html for other options. + * `webpage` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageInfo.t`, *default:* `nil`) - Immutable. Webpage. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ageRange => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AgeRangeInfo.t() | nil, + :bidModifier => number() | nil, + :criterionId => String.t() | nil, + :device => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_DeviceInfo.t() | nil, + :displayName => String.t() | nil, + :gender => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_GenderInfo.t() | nil, + :keyword => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_KeywordInfo.t() | nil, + :language => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LanguageInfo.t() | nil, + :lastModifiedTime => String.t() | nil, + :location => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationInfo.t() | nil, + :locationGroup => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationGroupInfo.t() + | nil, + :negative => boolean() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil, + :type => String.t() | nil, + :userList => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UserListInfo.t() | nil, + :webpage => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageInfo.t() | nil + } + + field(:ageRange, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_AgeRangeInfo) + field(:bidModifier) + field(:criterionId) + field(:device, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_DeviceInfo) + field(:displayName) + field(:gender, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_GenderInfo) + field(:keyword, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_KeywordInfo) + field(:language, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LanguageInfo) + field(:lastModifiedTime) + field(:location, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationInfo) + + field(:locationGroup, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_LocationGroupInfo + ) + + field(:negative) + field(:resourceName) + field(:status) + field(:type) + field(:userList, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_UserListInfo) + field(:webpage, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_WebpageInfo) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignCriterion do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignCriterion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignCriterion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_label.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_label.ex new file mode 100644 index 0000000000..eabe26aaf4 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__campaign_label.ex @@ -0,0 +1,57 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignLabel do + @moduledoc """ + Represents a relationship between a campaign and a label. + + ## Attributes + + * `campaign` (*type:* `String.t`, *default:* `nil`) - Immutable. The campaign to which the label is attached. + * `label` (*type:* `String.t`, *default:* `nil`) - Immutable. The label assigned to the campaign. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. Name of the resource. Campaign label resource names have the form: `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :campaign => String.t() | nil, + :label => String.t() | nil, + :resourceName => String.t() | nil + } + + field(:campaign) + field(:label) + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignLabel do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignLabel.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignLabel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__cart_data_sales_view.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__cart_data_sales_view.ex new file mode 100644 index 0000000000..2a0169d7a5 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__cart_data_sales_view.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CartDataSalesView do + @moduledoc """ + Cart data sales view. + + ## Attributes + + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the Cart data sales view. Cart data sales view resource names have the form: `customers/{customer_id}/cartDataSalesView` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resourceName => String.t() | nil + } + + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CartDataSalesView do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CartDataSalesView.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CartDataSalesView do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion.ex new file mode 100644 index 0000000000..52842d2100 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion.ex @@ -0,0 +1,120 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Conversion do + @moduledoc """ + A conversion. + + ## Attributes + + * `adId` (*type:* `String.t`, *default:* `nil`) - Output only. Ad ID. A value of 0 indicates that the ad is unattributed. + * `advertiserConversionId` (*type:* `String.t`, *default:* `nil`) - Output only. For offline conversions, this is an ID provided by advertisers. If an advertiser doesn't specify such an ID, Search Ads 360 generates one. For online conversions, this is equal to the id column or the floodlight_order_id column depending on the advertiser's Floodlight instructions. + * `assetFieldType` (*type:* `String.t`, *default:* `nil`) - Output only. Asset field type of the conversion event. + * `assetId` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the asset which was interacted with during the conversion event. + * `attributionType` (*type:* `String.t`, *default:* `nil`) - Output only. What the conversion is attributed to: Visit or Keyword+Ad. + * `clickId` (*type:* `String.t`, *default:* `nil`) - Output only. A unique string, for the visit that the conversion is attributed to, that is passed to the landing page as the click id URL parameter. + * `conversionDateTime` (*type:* `String.t`, *default:* `nil`) - Output only. The timestamp of the conversion event. + * `conversionLastModifiedDateTime` (*type:* `String.t`, *default:* `nil`) - Output only. The timestamp of the last time the conversion was modified. + * `conversionQuantity` (*type:* `String.t`, *default:* `nil`) - Output only. The quantity of items recorded by the conversion, as determined by the qty url parameter. The advertiser is responsible for dynamically populating the parameter (such as number of items sold in the conversion), otherwise it defaults to 1. + * `conversionRevenueMicros` (*type:* `String.t`, *default:* `nil`) - Output only. The adjusted revenue in micros for the conversion event. This will always be in the currency of the serving account. + * `conversionVisitDateTime` (*type:* `String.t`, *default:* `nil`) - Output only. The timestamp of the visit that the conversion is attributed to. + * `criterionId` (*type:* `String.t`, *default:* `nil`) - Output only. Search Ads 360 criterion ID. A value of 0 indicates that the criterion is unattributed. + * `floodlightOrderId` (*type:* `String.t`, *default:* `nil`) - Output only. The Floodlight order ID provided by the advertiser for the conversion. + * `floodlightOriginalRevenue` (*type:* `String.t`, *default:* `nil`) - Output only. The original, unchanged revenue associated with the Floodlight event (in the currency of the current report), before Floodlight currency instruction modifications. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the conversion + * `merchantId` (*type:* `String.t`, *default:* `nil`) - Output only. The SearchAds360 inventory account ID containing the product that was clicked on. SearchAds360 generates this ID when you link an inventory account in SearchAds360. + * `productChannel` (*type:* `String.t`, *default:* `nil`) - Output only. The sales channel of the product that was clicked on: Online or Local. + * `productCountryCode` (*type:* `String.t`, *default:* `nil`) - Output only. The country (ISO-3166-format) registered for the inventory feed that contains the product clicked on. + * `productId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the product clicked on. + * `productLanguageCode` (*type:* `String.t`, *default:* `nil`) - Output only. The language (ISO-639-1) that has been set for the Merchant Center feed containing data about the product. + * `productStoreId` (*type:* `String.t`, *default:* `nil`) - Output only. The store in the Local Inventory Ad that was clicked on. This should match the store IDs used in your local products feed. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the conversion. Conversion resource names have the form: `customers/{customer_id}/conversions/{ad_group_id}~{criterion_id}~{ds_conversion_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. The status of the conversion, either ENABLED or REMOVED.. + * `visitId` (*type:* `String.t`, *default:* `nil`) - Output only. The SearchAds360 visit ID that the conversion is attributed to. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adId => String.t() | nil, + :advertiserConversionId => String.t() | nil, + :assetFieldType => String.t() | nil, + :assetId => String.t() | nil, + :attributionType => String.t() | nil, + :clickId => String.t() | nil, + :conversionDateTime => String.t() | nil, + :conversionLastModifiedDateTime => String.t() | nil, + :conversionQuantity => String.t() | nil, + :conversionRevenueMicros => String.t() | nil, + :conversionVisitDateTime => String.t() | nil, + :criterionId => String.t() | nil, + :floodlightOrderId => String.t() | nil, + :floodlightOriginalRevenue => String.t() | nil, + :id => String.t() | nil, + :merchantId => String.t() | nil, + :productChannel => String.t() | nil, + :productCountryCode => String.t() | nil, + :productId => String.t() | nil, + :productLanguageCode => String.t() | nil, + :productStoreId => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil, + :visitId => String.t() | nil + } + + field(:adId) + field(:advertiserConversionId) + field(:assetFieldType) + field(:assetId) + field(:attributionType) + field(:clickId) + field(:conversionDateTime) + field(:conversionLastModifiedDateTime) + field(:conversionQuantity) + field(:conversionRevenueMicros) + field(:conversionVisitDateTime) + field(:criterionId) + field(:floodlightOrderId) + field(:floodlightOriginalRevenue) + field(:id) + field(:merchantId) + field(:productChannel) + field(:productCountryCode) + field(:productId) + field(:productLanguageCode) + field(:productStoreId) + field(:resourceName) + field(:status) + field(:visitId) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Conversion do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Conversion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Conversion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_action.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_action.ex new file mode 100644 index 0000000000..75aabf29a0 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_action.ex @@ -0,0 +1,116 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction do + @moduledoc """ + A conversion action. + + ## Attributes + + * `appId` (*type:* `String.t`, *default:* `nil`) - App ID for an app conversion action. + * `attributionModelSettings` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_AttributionModelSettings.t`, *default:* `nil`) - Settings related to this conversion action's attribution model. + * `category` (*type:* `String.t`, *default:* `nil`) - The category of conversions reported for this conversion action. + * `clickThroughLookbackWindowDays` (*type:* `String.t`, *default:* `nil`) - The maximum number of days that may elapse between an interaction (for example, a click) and a conversion event. + * `creationTime` (*type:* `String.t`, *default:* `nil`) - Output only. Timestamp of the Floodlight activity's creation, formatted in ISO 8601. + * `floodlightSettings` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_FloodlightSettings.t`, *default:* `nil`) - Output only. Floodlight settings for Floodlight conversion types. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the conversion action. + * `includeInClientAccountConversionsMetric` (*type:* `boolean()`, *default:* `nil`) - Whether this conversion action should be included in the "client_account_conversions" metric. + * `includeInConversionsMetric` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether this conversion action should be included in the "conversions" metric. + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the conversion action. This field is required and should not be empty when creating new conversion actions. + * `ownerCustomer` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the conversion action owner customer, or null if this is a system-defined conversion action. + * `primaryForGoal` (*type:* `boolean()`, *default:* `nil`) - If a conversion action's primary_for_goal bit is false, the conversion action is non-biddable for all campaigns regardless of their customer conversion goal or campaign conversion goal. However, custom conversion goals do not respect primary_for_goal, so if a campaign has a custom conversion goal configured with a primary_for_goal = false conversion action, that conversion action is still biddable. By default, primary_for_goal will be true if not set. In V9, primary_for_goal can only be set to false after creation through an 'update' operation because it's not declared as optional. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the conversion action. Conversion action resource names have the form: `customers/{customer_id}/conversionActions/{conversion_action_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - The status of this conversion action for conversion event accrual. + * `type` (*type:* `String.t`, *default:* `nil`) - Immutable. The type of this conversion action. + * `valueSettings` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_ValueSettings.t`, *default:* `nil`) - Settings related to the value for conversion events associated with this conversion action. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appId => String.t() | nil, + :attributionModelSettings => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_AttributionModelSettings.t() + | nil, + :category => String.t() | nil, + :clickThroughLookbackWindowDays => String.t() | nil, + :creationTime => String.t() | nil, + :floodlightSettings => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_FloodlightSettings.t() + | nil, + :id => String.t() | nil, + :includeInClientAccountConversionsMetric => boolean() | nil, + :includeInConversionsMetric => boolean() | nil, + :name => String.t() | nil, + :ownerCustomer => String.t() | nil, + :primaryForGoal => boolean() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil, + :type => String.t() | nil, + :valueSettings => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_ValueSettings.t() + | nil + } + + field(:appId) + + field(:attributionModelSettings, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_AttributionModelSettings + ) + + field(:category) + field(:clickThroughLookbackWindowDays) + field(:creationTime) + + field(:floodlightSettings, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_FloodlightSettings + ) + + field(:id) + field(:includeInClientAccountConversionsMetric) + field(:includeInConversionsMetric) + field(:name) + field(:ownerCustomer) + field(:primaryForGoal) + field(:resourceName) + field(:status) + field(:type) + + field(:valueSettings, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_ValueSettings + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_action__attribution_model_settings.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_action__attribution_model_settings.ex new file mode 100644 index 0000000000..c027ac3d90 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_action__attribution_model_settings.ex @@ -0,0 +1,56 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_AttributionModelSettings do + @moduledoc """ + Settings related to this conversion action's attribution model. + + ## Attributes + + * `attributionModel` (*type:* `String.t`, *default:* `nil`) - The attribution model type of this conversion action. + * `dataDrivenModelStatus` (*type:* `String.t`, *default:* `nil`) - Output only. The status of the data-driven attribution model for the conversion action. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributionModel => String.t() | nil, + :dataDrivenModelStatus => String.t() | nil + } + + field(:attributionModel) + field(:dataDrivenModelStatus) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_AttributionModelSettings do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_AttributionModelSettings.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_AttributionModelSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_action__floodlight_settings.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_action__floodlight_settings.ex new file mode 100644 index 0000000000..1a65aa9e6a --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_action__floodlight_settings.ex @@ -0,0 +1,59 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_FloodlightSettings do + @moduledoc """ + Settings related to a Floodlight conversion action. + + ## Attributes + + * `activityGroupTag` (*type:* `String.t`, *default:* `nil`) - Output only. String used to identify a Floodlight activity group when reporting conversions. + * `activityId` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the Floodlight activity in DoubleClick Campaign Manager (DCM). + * `activityTag` (*type:* `String.t`, *default:* `nil`) - Output only. String used to identify a Floodlight activity when reporting conversions. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :activityGroupTag => String.t() | nil, + :activityId => String.t() | nil, + :activityTag => String.t() | nil + } + + field(:activityGroupTag) + field(:activityId) + field(:activityTag) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_FloodlightSettings do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_FloodlightSettings.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_FloodlightSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_action__value_settings.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_action__value_settings.ex new file mode 100644 index 0000000000..1f4c5acde6 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_action__value_settings.ex @@ -0,0 +1,59 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_ValueSettings do + @moduledoc """ + Settings related to the value for conversion events associated with this conversion action. + + ## Attributes + + * `alwaysUseDefaultValue` (*type:* `boolean()`, *default:* `nil`) - 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. + * `defaultCurrencyCode` (*type:* `String.t`, *default:* `nil`) - 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. + * `defaultValue` (*type:* `float()`, *default:* `nil`) - 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. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alwaysUseDefaultValue => boolean() | nil, + :defaultCurrencyCode => String.t() | nil, + :defaultValue => float() | nil + } + + field(:alwaysUseDefaultValue) + field(:defaultCurrencyCode) + field(:defaultValue) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_ValueSettings do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_ValueSettings.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction_ValueSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_custom_variable.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_custom_variable.ex new file mode 100644 index 0000000000..97cfae27c2 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_custom_variable.ex @@ -0,0 +1,85 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionCustomVariable do + @moduledoc """ + A conversion custom variable. See "About custom Floodlight metrics and dimensions in the new Search Ads 360" at https://support.google.com/sa360/answer/13567857 + + ## Attributes + + * `cardinality` (*type:* `String.t`, *default:* `nil`) - Output only. Cardinality of the conversion custom variable. + * `customColumnIds` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The IDs of custom columns that use this conversion custom variable. + * `family` (*type:* `String.t`, *default:* `nil`) - Output only. Family of the conversion custom variable. + * `floodlightConversionCustomVariableInfo` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionCustomVariable_FloodlightConversionCustomVariableInfo.t`, *default:* `nil`) - Output only. Fields for Search Ads 360 floodlight conversion custom variables. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the conversion custom variable. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. The name of the conversion custom variable. Name should be unique. The maximum length of name is 100 characters. There should not be any extra spaces before and after. + * `ownerCustomer` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the customer that owns the conversion custom variable. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the conversion custom variable. Conversion custom variable resource names have the form: `customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - The status of the conversion custom variable for conversion event accrual. + * `tag` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. The tag of the conversion custom variable. Tag should be unique and consist of a "u" character directly followed with a number less than ormequal to 100. For example: "u4". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cardinality => String.t() | nil, + :customColumnIds => list(String.t()) | nil, + :family => String.t() | nil, + :floodlightConversionCustomVariableInfo => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionCustomVariable_FloodlightConversionCustomVariableInfo.t() + | nil, + :id => String.t() | nil, + :name => String.t() | nil, + :ownerCustomer => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil, + :tag => String.t() | nil + } + + field(:cardinality) + field(:customColumnIds, type: :list) + field(:family) + + field(:floodlightConversionCustomVariableInfo, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionCustomVariable_FloodlightConversionCustomVariableInfo + ) + + field(:id) + field(:name) + field(:ownerCustomer) + field(:resourceName) + field(:status) + field(:tag) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionCustomVariable do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionCustomVariable.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionCustomVariable do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_custom_variable__floodlight_conversion_custom_variable_info.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_custom_variable__floodlight_conversion_custom_variable_info.ex new file mode 100644 index 0000000000..48bd5b7848 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_custom_variable__floodlight_conversion_custom_variable_info.ex @@ -0,0 +1,56 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionCustomVariable_FloodlightConversionCustomVariableInfo do + @moduledoc """ + Information for Search Ads 360 Floodlight Conversion Custom Variables. + + ## Attributes + + * `floodlightVariableDataType` (*type:* `String.t`, *default:* `nil`) - Output only. Floodlight variable data type defined in Search Ads 360. + * `floodlightVariableType` (*type:* `String.t`, *default:* `nil`) - Output only. Floodlight variable type defined in Search Ads 360. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :floodlightVariableDataType => String.t() | nil, + :floodlightVariableType => String.t() | nil + } + + field(:floodlightVariableDataType) + field(:floodlightVariableType) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionCustomVariable_FloodlightConversionCustomVariableInfo do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionCustomVariable_FloodlightConversionCustomVariableInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionCustomVariable_FloodlightConversionCustomVariableInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_tracking_setting.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_tracking_setting.ex new file mode 100644 index 0000000000..3a60708ff4 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__conversion_tracking_setting.ex @@ -0,0 +1,69 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionTrackingSetting do + @moduledoc """ + A collection of customer-wide settings related to Search Ads 360 Conversion Tracking. + + ## Attributes + + * `acceptedCustomerDataTerms` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the customer has accepted customer data terms. If using cross-account conversion tracking, this value is inherited from the manager. This field is read-only. For more information, see https://support.google.com/adspolicy/answer/7475709. + * `conversionTrackingId` (*type:* `String.t`, *default:* `nil`) - Output only. The conversion tracking id used for this account. This id doesn't indicate whether the customer uses conversion tracking (conversion_tracking_status does). This field is read-only. + * `conversionTrackingStatus` (*type:* `String.t`, *default:* `nil`) - Output only. Conversion tracking status. It indicates whether the customer is using conversion tracking, and who is the conversion tracking owner of this customer. If this customer is using cross-account conversion tracking, the value returned will differ based on the `login-customer-id` of the request. + * `crossAccountConversionTrackingId` (*type:* `String.t`, *default:* `nil`) - Output only. The conversion tracking id of the customer's manager. This is set when the customer is opted into cross-account conversion tracking, and it overrides conversion_tracking_id. + * `enhancedConversionsForLeadsEnabled` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the customer is opted-in for enhanced conversions for leads. If using cross-account conversion tracking, this value is inherited from the manager. This field is read-only. + * `googleAdsConversionCustomer` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the customer where conversions are created and managed. This field is read-only. + * `googleAdsCrossAccountConversionTrackingId` (*type:* `String.t`, *default:* `nil`) - Output only. The conversion tracking id of the customer's manager. This is set when the customer is opted into conversion tracking, and it overrides conversion_tracking_id. This field can only be managed through the Google Ads UI. This field is read-only. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :acceptedCustomerDataTerms => boolean() | nil, + :conversionTrackingId => String.t() | nil, + :conversionTrackingStatus => String.t() | nil, + :crossAccountConversionTrackingId => String.t() | nil, + :enhancedConversionsForLeadsEnabled => boolean() | nil, + :googleAdsConversionCustomer => String.t() | nil, + :googleAdsCrossAccountConversionTrackingId => String.t() | nil + } + + field(:acceptedCustomerDataTerms) + field(:conversionTrackingId) + field(:conversionTrackingStatus) + field(:crossAccountConversionTrackingId) + field(:enhancedConversionsForLeadsEnabled) + field(:googleAdsConversionCustomer) + field(:googleAdsCrossAccountConversionTrackingId) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionTrackingSetting do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionTrackingSetting.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionTrackingSetting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__custom_column.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__custom_column.ex new file mode 100644 index 0000000000..f82770c63b --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__custom_column.ex @@ -0,0 +1,75 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomColumn do + @moduledoc """ + A custom column. See Search Ads 360 custom column at https://support.google.com/sa360/answer/9633916 + + ## Attributes + + * `description` (*type:* `String.t`, *default:* `nil`) - Output only. User-defined description of the custom column. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the custom column. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. User-defined name of the custom column. + * `queryable` (*type:* `boolean()`, *default:* `nil`) - Output only. True when the custom column is available to be used in the query of SearchAds360Service.Search and SearchAds360Service.SearchStream. + * `referencedSystemColumns` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The list of the referenced system columns of this custom column. For example, A custom column "sum of impressions and clicks" has referenced system columns of {"metrics.clicks", "metrics.impressions"}. + * `referencesAttributes` (*type:* `boolean()`, *default:* `nil`) - Output only. True when the custom column is referring to one or more attributes. + * `referencesMetrics` (*type:* `boolean()`, *default:* `nil`) - Output only. True when the custom column is referring to one or more metrics. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the custom column. Custom column resource names have the form: `customers/{customer_id}/customColumns/{custom_column_id}` + * `valueType` (*type:* `String.t`, *default:* `nil`) - Output only. The type of the result value of the custom column. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :description => String.t() | nil, + :id => String.t() | nil, + :name => String.t() | nil, + :queryable => boolean() | nil, + :referencedSystemColumns => list(String.t()) | nil, + :referencesAttributes => boolean() | nil, + :referencesMetrics => boolean() | nil, + :resourceName => String.t() | nil, + :valueType => String.t() | nil + } + + field(:description) + field(:id) + field(:name) + field(:queryable) + field(:referencedSystemColumns, type: :list) + field(:referencesAttributes) + field(:referencesMetrics) + field(:resourceName) + field(:valueType) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomColumn do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomColumn.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomColumn do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer.ex new file mode 100644 index 0000000000..c53fb0363b --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer.ex @@ -0,0 +1,112 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Customer do + @moduledoc """ + A customer. + + ## Attributes + + * `accountStatus` (*type:* `String.t`, *default:* `nil`) - Output only. Account status, for example, Enabled, Paused, Removed, etc. + * `accountType` (*type:* `String.t`, *default:* `nil`) - Output only. Engine account type, for example, Google Ads, Microsoft Advertising, Yahoo Japan, Baidu, Facebook, Engine Track, etc. + * `autoTaggingEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether auto-tagging is enabled for the customer. + * `conversionTrackingSetting` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionTrackingSetting.t`, *default:* `nil`) - Output only. Conversion tracking setting for a customer. + * `creationTime` (*type:* `String.t`, *default:* `nil`) - Output only. The timestamp when this customer was created. The timestamp is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss" format. + * `currencyCode` (*type:* `String.t`, *default:* `nil`) - Immutable. The currency in which the account operates. A subset of the currency codes from the ISO 4217 standard is supported. + * `descriptiveName` (*type:* `String.t`, *default:* `nil`) - Optional, non-unique descriptive name of the customer. + * `doubleClickCampaignManagerSetting` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_DoubleClickCampaignManagerSetting.t`, *default:* `nil`) - Output only. DoubleClick Campaign Manager (DCM) setting for a manager customer. + * `engineId` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the account in the external engine account. + * `finalUrlSuffix` (*type:* `String.t`, *default:* `nil`) - The URL template for appending params to the final URL. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the customer. + * `lastModifiedTime` (*type:* `String.t`, *default:* `nil`) - Output only. The datetime when this customer was last modified. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format. + * `manager` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the customer is a manager. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the customer. Customer resource names have the form: `customers/{customer_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. The status of the customer. + * `timeZone` (*type:* `String.t`, *default:* `nil`) - Immutable. The local timezone ID of the customer. + * `trackingUrlTemplate` (*type:* `String.t`, *default:* `nil`) - The URL template for constructing a tracking URL out of parameters. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accountStatus => String.t() | nil, + :accountType => String.t() | nil, + :autoTaggingEnabled => boolean() | nil, + :conversionTrackingSetting => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionTrackingSetting.t() + | nil, + :creationTime => String.t() | nil, + :currencyCode => String.t() | nil, + :descriptiveName => String.t() | nil, + :doubleClickCampaignManagerSetting => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_DoubleClickCampaignManagerSetting.t() + | nil, + :engineId => String.t() | nil, + :finalUrlSuffix => String.t() | nil, + :id => String.t() | nil, + :lastModifiedTime => String.t() | nil, + :manager => boolean() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil, + :timeZone => String.t() | nil, + :trackingUrlTemplate => String.t() | nil + } + + field(:accountStatus) + field(:accountType) + field(:autoTaggingEnabled) + + field(:conversionTrackingSetting, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionTrackingSetting + ) + + field(:creationTime) + field(:currencyCode) + field(:descriptiveName) + + field(:doubleClickCampaignManagerSetting, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_DoubleClickCampaignManagerSetting + ) + + field(:engineId) + field(:finalUrlSuffix) + field(:id) + field(:lastModifiedTime) + field(:manager) + field(:resourceName) + field(:status) + field(:timeZone) + field(:trackingUrlTemplate) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Customer do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Customer.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Customer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer_asset.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer_asset.ex new file mode 100644 index 0000000000..1cbe64bf53 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer_asset.ex @@ -0,0 +1,57 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerAsset do + @moduledoc """ + A link between a customer and an asset. + + ## Attributes + + * `asset` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. The asset which is linked to the customer. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the customer asset. CustomerAsset resource names have the form: `customers/{customer_id}/customerAssets/{asset_id}~{field_type}` + * `status` (*type:* `String.t`, *default:* `nil`) - Status of the customer asset. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :asset => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil + } + + field(:asset) + field(:resourceName) + field(:status) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerAsset do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerAsset.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerAsset do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer_asset_set.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer_asset_set.ex new file mode 100644 index 0000000000..060024bb52 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer_asset_set.ex @@ -0,0 +1,60 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerAssetSet do + @moduledoc """ + CustomerAssetSet is the linkage between a customer and an asset set. Adding a CustomerAssetSet links an asset set with a customer. + + ## Attributes + + * `assetSet` (*type:* `String.t`, *default:* `nil`) - Immutable. The asset set which is linked to the customer. + * `customer` (*type:* `String.t`, *default:* `nil`) - Immutable. The customer to which this asset set is linked. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the customer asset set. Asset set asset resource names have the form: `customers/{customer_id}/customerAssetSets/{asset_set_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. The status of the customer asset set asset. Read-only. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :assetSet => String.t() | nil, + :customer => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil + } + + field(:assetSet) + field(:customer) + field(:resourceName) + field(:status) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerAssetSet do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerAssetSet.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerAssetSet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer_client.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer_client.ex new file mode 100644 index 0000000000..3ebf7aad02 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer_client.ex @@ -0,0 +1,84 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerClient do + @moduledoc """ + A link between the given customer and a client customer. CustomerClients only exist for manager customers. All direct and indirect client customers are included, as well as the manager itself. + + ## Attributes + + * `appliedLabels` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The resource names of the labels owned by the requesting customer that are applied to the client customer. Label resource names have the form: `customers/{customer_id}/labels/{label_id}` + * `clientCustomer` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the client-customer which is linked to the given customer. Read only. + * `currencyCode` (*type:* `String.t`, *default:* `nil`) - Output only. Currency code (for example, 'USD', 'EUR') for the client. Read only. + * `descriptiveName` (*type:* `String.t`, *default:* `nil`) - Output only. Descriptive name for the client. Read only. + * `hidden` (*type:* `boolean()`, *default:* `nil`) - Output only. Specifies whether this is a hidden account. Read only. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the client customer. Read only. + * `level` (*type:* `String.t`, *default:* `nil`) - Output only. Distance between given customer and client. For self link, the level value will be 0. Read only. + * `manager` (*type:* `boolean()`, *default:* `nil`) - Output only. Identifies if the client is a manager. Read only. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the customer client. CustomerClient resource names have the form: `customers/{customer_id}/customerClients/{client_customer_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. The status of the client customer. Read only. + * `testAccount` (*type:* `boolean()`, *default:* `nil`) - Output only. Identifies if the client is a test account. Read only. + * `timeZone` (*type:* `String.t`, *default:* `nil`) - Output only. Common Locale Data Repository (CLDR) string representation of the time zone of the client, for example, America/Los_Angeles. Read only. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appliedLabels => list(String.t()) | nil, + :clientCustomer => String.t() | nil, + :currencyCode => String.t() | nil, + :descriptiveName => String.t() | nil, + :hidden => boolean() | nil, + :id => String.t() | nil, + :level => String.t() | nil, + :manager => boolean() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil, + :testAccount => boolean() | nil, + :timeZone => String.t() | nil + } + + field(:appliedLabels, type: :list) + field(:clientCustomer) + field(:currencyCode) + field(:descriptiveName) + field(:hidden) + field(:id) + field(:level) + field(:manager) + field(:resourceName) + field(:status) + field(:testAccount) + field(:timeZone) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerClient do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerClient.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerClient do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer_manager_link.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer_manager_link.ex new file mode 100644 index 0000000000..4602f1da43 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__customer_manager_link.ex @@ -0,0 +1,60 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerManagerLink do + @moduledoc """ + Represents customer-manager link relationship. + + ## Attributes + + * `managerCustomer` (*type:* `String.t`, *default:* `nil`) - Output only. The manager customer linked to the customer. + * `managerLinkId` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the customer-manager link. This field is read only. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. Name of the resource. CustomerManagerLink resource names have the form: `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - Status of the link between the customer and the manager. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :managerCustomer => String.t() | nil, + :managerLinkId => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil + } + + field(:managerCustomer) + field(:managerLinkId) + field(:resourceName) + field(:status) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerManagerLink do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerManagerLink.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerManagerLink do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__double_click_campaign_manager_setting.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__double_click_campaign_manager_setting.ex new file mode 100644 index 0000000000..26e1c2dff5 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__double_click_campaign_manager_setting.ex @@ -0,0 +1,59 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_DoubleClickCampaignManagerSetting do + @moduledoc """ + DoubleClick Campaign Manager (DCM) setting for a manager customer. + + ## Attributes + + * `advertiserId` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the Campaign Manager advertiser associated with this customer. + * `networkId` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the Campaign Manager network associated with this customer. + * `timeZone` (*type:* `String.t`, *default:* `nil`) - Output only. Time zone of the Campaign Manager network associated with this customer in IANA Time Zone Database format, such as America/New_York. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :advertiserId => String.t() | nil, + :networkId => String.t() | nil, + :timeZone => String.t() | nil + } + + field(:advertiserId) + field(:networkId) + field(:timeZone) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_DoubleClickCampaignManagerSetting do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_DoubleClickCampaignManagerSetting.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_DoubleClickCampaignManagerSetting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__dynamic_search_ads_search_term_view.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__dynamic_search_ads_search_term_view.ex new file mode 100644 index 0000000000..60e107b40c --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__dynamic_search_ads_search_term_view.ex @@ -0,0 +1,56 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_DynamicSearchAdsSearchTermView do + @moduledoc """ + A dynamic search ads search term view. + + ## Attributes + + * `landingPage` (*type:* `String.t`, *default:* `nil`) - Output only. The dynamically selected landing page URL of the impression. This field is read-only. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the dynamic search ads search term view. Dynamic search ads search term view resource names have the form: `customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :landingPage => String.t() | nil, + :resourceName => String.t() | nil + } + + field(:landingPage) + field(:resourceName) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_DynamicSearchAdsSearchTermView do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_DynamicSearchAdsSearchTermView.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_DynamicSearchAdsSearchTermView do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__gender_view.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__gender_view.ex new file mode 100644 index 0000000000..16f294f67c --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__gender_view.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GenderView do + @moduledoc """ + A gender view. + + ## Attributes + + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the gender view. Gender view resource names have the form: `customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resourceName => String.t() | nil + } + + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GenderView do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GenderView.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GenderView do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__geo_target_constant.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__geo_target_constant.ex new file mode 100644 index 0000000000..86e84d8d6b --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__geo_target_constant.ex @@ -0,0 +1,72 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GeoTargetConstant do + @moduledoc """ + A geo target constant. + + ## Attributes + + * `canonicalName` (*type:* `String.t`, *default:* `nil`) - Output only. The fully qualified English name, consisting of the target's name and that of its parent and country. + * `countryCode` (*type:* `String.t`, *default:* `nil`) - Output only. The ISO-3166-1 alpha-2 country code that is associated with the target. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the geo target constant. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Geo target constant English name. + * `parentGeoTarget` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the parent geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{parent_geo_target_constant_id}` + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{geo_target_constant_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. Geo target constant status. + * `targetType` (*type:* `String.t`, *default:* `nil`) - Output only. Geo target constant target type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canonicalName => String.t() | nil, + :countryCode => String.t() | nil, + :id => String.t() | nil, + :name => String.t() | nil, + :parentGeoTarget => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil, + :targetType => String.t() | nil + } + + field(:canonicalName) + field(:countryCode) + field(:id) + field(:name) + field(:parentGeoTarget) + field(:resourceName) + field(:status) + field(:targetType) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GeoTargetConstant do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GeoTargetConstant.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GeoTargetConstant do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__keyword_view.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__keyword_view.ex new file mode 100644 index 0000000000..4e9e8c0044 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__keyword_view.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_KeywordView do + @moduledoc """ + A keyword view. + + ## Attributes + + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the keyword view. Keyword view resource names have the form: `customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resourceName => String.t() | nil + } + + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_KeywordView do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_KeywordView.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_KeywordView do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__label.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__label.ex new file mode 100644 index 0000000000..91a0a7f4e3 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__label.ex @@ -0,0 +1,61 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Label do + @moduledoc """ + A label. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the label. Read only. + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the label. This field is required and should not be empty when creating a new label. The length of this string should be between 1 and 80, inclusive. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. Name of the resource. Label resource names have the form: `customers/{customer_id}/labels/{label_id}` + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. Status of the label. Read only. + * `textLabel` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TextLabel.t`, *default:* `nil`) - A type of label displaying text on a colored background. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :name => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil, + :textLabel => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TextLabel.t() | nil + } + + field(:id) + field(:name) + field(:resourceName) + field(:status) + field(:textLabel, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_TextLabel) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Label do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Label.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Label do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__language_constant.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__language_constant.ex new file mode 100644 index 0000000000..7cac98622a --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__language_constant.ex @@ -0,0 +1,63 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LanguageConstant do + @moduledoc """ + A language. + + ## Attributes + + * `code` (*type:* `String.t`, *default:* `nil`) - Output only. The language code, for example, "en_US", "en_AU", "es", "fr", etc. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the language constant. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The full name of the language in English, for example, "English (US)", "Spanish", etc. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the language constant. Language constant resource names have the form: `languageConstants/{criterion_id}` + * `targetable` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the language is targetable. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :code => String.t() | nil, + :id => String.t() | nil, + :name => String.t() | nil, + :resourceName => String.t() | nil, + :targetable => boolean() | nil + } + + field(:code) + field(:id) + field(:name) + field(:resourceName) + field(:targetable) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LanguageConstant do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LanguageConstant.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LanguageConstant do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension.ex new file mode 100644 index 0000000000..9450931cf4 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension.ex @@ -0,0 +1,112 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension do + @moduledoc """ + Listing dimensions for the asset group listing group filter. + + ## Attributes + + * `productBiddingCategory` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBiddingCategory.t`, *default:* `nil`) - Bidding category of a product offer. + * `productBrand` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBrand.t`, *default:* `nil`) - Brand of a product offer. + * `productChannel` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductChannel.t`, *default:* `nil`) - Locality of a product offer. + * `productCondition` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCondition.t`, *default:* `nil`) - Condition of a product offer. + * `productCustomAttribute` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCustomAttribute.t`, *default:* `nil`) - Custom attribute of a product offer. + * `productItemId` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductItemId.t`, *default:* `nil`) - Item id of a product offer. + * `productType` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductType.t`, *default:* `nil`) - Type of a product offer. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :productBiddingCategory => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBiddingCategory.t() + | nil, + :productBrand => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBrand.t() + | nil, + :productChannel => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductChannel.t() + | nil, + :productCondition => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCondition.t() + | nil, + :productCustomAttribute => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCustomAttribute.t() + | nil, + :productItemId => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductItemId.t() + | nil, + :productType => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductType.t() + | nil + } + + field(:productBiddingCategory, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBiddingCategory + ) + + field(:productBrand, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBrand + ) + + field(:productChannel, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductChannel + ) + + field(:productCondition, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCondition + ) + + field(:productCustomAttribute, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCustomAttribute + ) + + field(:productItemId, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductItemId + ) + + field(:productType, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductType + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_bidding_category.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_bidding_category.ex new file mode 100644 index 0000000000..aff93a6ff2 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_bidding_category.ex @@ -0,0 +1,56 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBiddingCategory do + @moduledoc """ + One element of a bidding category at a certain level. Top-level categories are at level 1, their children at level 2, and so on. We currently support up to 5 levels. The user must specify a dimension type that indicates the level of the category. All cases of the same subdivision must have the same dimension type (category level). + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - ID of the product bidding category. This ID is equivalent to the google_product_category ID as described in this article: https://support.google.com/merchants/answer/6324436 + * `level` (*type:* `String.t`, *default:* `nil`) - Indicates the level of the category in the taxonomy. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :level => String.t() | nil + } + + field(:id) + field(:level) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBiddingCategory do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBiddingCategory.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBiddingCategory do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_brand.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_brand.ex new file mode 100644 index 0000000000..efff29d3d4 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_brand.ex @@ -0,0 +1,53 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBrand do + @moduledoc """ + Brand of the product. + + ## Attributes + + * `value` (*type:* `String.t`, *default:* `nil`) - String value of the product brand. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :value => String.t() | nil + } + + field(:value) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBrand do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBrand.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductBrand do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_channel.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_channel.ex new file mode 100644 index 0000000000..8d6e96cf29 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_channel.ex @@ -0,0 +1,53 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductChannel do + @moduledoc """ + Locality of a product offer. + + ## Attributes + + * `channel` (*type:* `String.t`, *default:* `nil`) - Value of the locality. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :channel => String.t() | nil + } + + field(:channel) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductChannel do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductChannel.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductChannel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_condition.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_condition.ex new file mode 100644 index 0000000000..5bfaa96cb5 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_condition.ex @@ -0,0 +1,53 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCondition do + @moduledoc """ + Condition of a product offer. + + ## Attributes + + * `condition` (*type:* `String.t`, *default:* `nil`) - Value of the condition. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :condition => String.t() | nil + } + + field(:condition) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCondition do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCondition.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCondition do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_custom_attribute.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_custom_attribute.ex new file mode 100644 index 0000000000..66846e3032 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_custom_attribute.ex @@ -0,0 +1,56 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCustomAttribute do + @moduledoc """ + Custom attribute of a product offer. + + ## Attributes + + * `index` (*type:* `String.t`, *default:* `nil`) - Indicates the index of the custom attribute. + * `value` (*type:* `String.t`, *default:* `nil`) - String value of the product custom attribute. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :index => String.t() | nil, + :value => String.t() | nil + } + + field(:index) + field(:value) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCustomAttribute do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCustomAttribute.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductCustomAttribute do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_item_id.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_item_id.ex new file mode 100644 index 0000000000..228e3062d6 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_item_id.ex @@ -0,0 +1,53 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductItemId do + @moduledoc """ + Item id of a product offer. + + ## Attributes + + * `value` (*type:* `String.t`, *default:* `nil`) - Value of the id. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :value => String.t() | nil + } + + field(:value) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductItemId do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductItemId.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductItemId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_type.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_type.ex new file mode 100644 index 0000000000..ece5d0459f --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension__product_type.ex @@ -0,0 +1,56 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductType do + @moduledoc """ + Type of a product offer. + + ## Attributes + + * `level` (*type:* `String.t`, *default:* `nil`) - Level of the type. + * `value` (*type:* `String.t`, *default:* `nil`) - Value of the type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :level => String.t() | nil, + :value => String.t() | nil + } + + field(:level) + field(:value) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductType do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductType.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension_ProductType do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension_path.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension_path.ex new file mode 100644 index 0000000000..ee1fff4a2c --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__listing_group_filter_dimension_path.ex @@ -0,0 +1,61 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimensionPath do + @moduledoc """ + The path defining of dimensions defining a listing group filter. + + ## Attributes + + * `dimensions` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension.t)`, *default:* `nil`) - Output only. The complete path of dimensions through the listing group filter hierarchy (excluding the root node) to this listing group filter. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dimensions => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension.t() + ) + | nil + } + + field(:dimensions, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimension, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimensionPath do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimensionPath.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ListingGroupFilterDimensionPath do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__location_view.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__location_view.ex new file mode 100644 index 0000000000..e35cd85627 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__location_view.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LocationView do + @moduledoc """ + A location view summarizes the performance of campaigns by Location criteria. + + ## Attributes + + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the location view. Location view resource names have the form: `customers/{customer_id}/locationViews/{campaign_id}~{criterion_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resourceName => String.t() | nil + } + + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LocationView do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LocationView.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LocationView do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__product_bidding_category_constant.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__product_bidding_category_constant.ex new file mode 100644 index 0000000000..64c6f17d63 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__product_bidding_category_constant.ex @@ -0,0 +1,74 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ProductBiddingCategoryConstant do + @moduledoc """ + A Product Bidding Category. + + ## Attributes + + * `countryCode` (*type:* `String.t`, *default:* `nil`) - Output only. Two-letter upper-case country code of the product bidding category. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the product bidding category. This ID is equivalent to the google_product_category ID as described in this article: https://support.google.com/merchants/answer/6324436. + * `languageCode` (*type:* `String.t`, *default:* `nil`) - Output only. Language code of the product bidding category. + * `level` (*type:* `String.t`, *default:* `nil`) - Output only. Level of the product bidding category. + * `localizedName` (*type:* `String.t`, *default:* `nil`) - Output only. Display value of the product bidding category localized according to language_code. + * `productBiddingCategoryConstantParent` (*type:* `String.t`, *default:* `nil`) - Output only. Resource name of the parent product bidding category. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the product bidding category. Product bidding category resource names have the form: `productBiddingCategoryConstants/{country_code}~{level}~{id}` + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. Status of the product bidding category. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :countryCode => String.t() | nil, + :id => String.t() | nil, + :languageCode => String.t() | nil, + :level => String.t() | nil, + :localizedName => String.t() | nil, + :productBiddingCategoryConstantParent => String.t() | nil, + :resourceName => String.t() | nil, + :status => String.t() | nil + } + + field(:countryCode) + field(:id) + field(:languageCode) + field(:level) + field(:localizedName) + field(:productBiddingCategoryConstantParent) + field(:resourceName) + field(:status) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ProductBiddingCategoryConstant do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ProductBiddingCategoryConstant.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ProductBiddingCategoryConstant do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__product_group_view.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__product_group_view.ex new file mode 100644 index 0000000000..141131bb2f --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__product_group_view.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ProductGroupView do + @moduledoc """ + A product group view. + + ## Attributes + + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the product group view. Product group view resource names have the form: `customers/{customer_id}/productGroupViews/{ad_group_id}~{criterion_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resourceName => String.t() | nil + } + + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ProductGroupView do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ProductGroupView.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ProductGroupView do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__search_ads360_field.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__search_ads360_field.ex new file mode 100644 index 0000000000..406f7314f8 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__search_ads360_field.ex @@ -0,0 +1,90 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_SearchAds360Field do + @moduledoc """ + A field or resource (artifact) used by SearchAds360Service. + + ## Attributes + + * `attributeResources` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The names of all resources that are selectable with the described artifact. Fields from these resources do not segment metrics when included in search queries. This field is only set for artifacts whose category is RESOURCE. + * `category` (*type:* `String.t`, *default:* `nil`) - Output only. The category of the artifact. + * `dataType` (*type:* `String.t`, *default:* `nil`) - Output only. This field determines the operators that can be used with the artifact in WHERE clauses. + * `enumValues` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Values the artifact can assume if it is a field of type ENUM. This field is only set for artifacts of category SEGMENT or ATTRIBUTE. + * `filterable` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the artifact can be used in a WHERE clause in search queries. + * `isRepeated` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the field artifact is repeated. + * `metrics` (*type:* `list(String.t)`, *default:* `nil`) - Output only. This field lists the names of all metrics that are selectable with the described artifact when it is used in the FROM clause. It is only set for artifacts whose category is RESOURCE. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the artifact. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the artifact. Artifact resource names have the form: `SearchAds360Fields/{name}` + * `segments` (*type:* `list(String.t)`, *default:* `nil`) - Output only. This field lists the names of all artifacts, whether a segment or another resource, that segment metrics when included in search queries and when the described artifact is used in the FROM clause. It is only set for artifacts whose category is RESOURCE. + * `selectable` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the artifact can be used in a SELECT clause in search queries. + * `selectableWith` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The names of all resources, segments, and metrics that are selectable with the described artifact. + * `sortable` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the artifact can be used in a ORDER BY clause in search queries. + * `typeUrl` (*type:* `String.t`, *default:* `nil`) - Output only. The URL of proto describing the artifact's data type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributeResources => list(String.t()) | nil, + :category => String.t() | nil, + :dataType => String.t() | nil, + :enumValues => list(String.t()) | nil, + :filterable => boolean() | nil, + :isRepeated => boolean() | nil, + :metrics => list(String.t()) | nil, + :name => String.t() | nil, + :resourceName => String.t() | nil, + :segments => list(String.t()) | nil, + :selectable => boolean() | nil, + :selectableWith => list(String.t()) | nil, + :sortable => boolean() | nil, + :typeUrl => String.t() | nil + } + + field(:attributeResources, type: :list) + field(:category) + field(:dataType) + field(:enumValues, type: :list) + field(:filterable) + field(:isRepeated) + field(:metrics, type: :list) + field(:name) + field(:resourceName) + field(:segments, type: :list) + field(:selectable) + field(:selectableWith, type: :list) + field(:sortable) + field(:typeUrl) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_SearchAds360Field do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_SearchAds360Field.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_SearchAds360Field do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__shopping_performance_view.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__shopping_performance_view.ex new file mode 100644 index 0000000000..63061bc5a7 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__shopping_performance_view.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ShoppingPerformanceView do + @moduledoc """ + Shopping performance view. Provides Shopping campaign statistics aggregated at several product dimension levels. Product dimension values from Merchant Center such as brand, category, custom attributes, product condition and product type will reflect the state of each dimension as of the date and time when the corresponding event was recorded. + + ## Attributes + + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the Shopping performance view. Shopping performance view resource names have the form: `customers/{customer_id}/shoppingPerformanceView` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resourceName => String.t() | nil + } + + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ShoppingPerformanceView do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ShoppingPerformanceView.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ShoppingPerformanceView do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__user_list.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__user_list.ex new file mode 100644 index 0000000000..e7e4e961de --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__user_list.ex @@ -0,0 +1,60 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserList do + @moduledoc """ + A user list. This is a list of users a customer may target. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. Id of the user list. + * `name` (*type:* `String.t`, *default:* `nil`) - Name of this user list. Depending on its access_reason, the user list name may not be unique (for example, if access_reason=SHARED) + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the user list. User list resource names have the form: `customers/{customer_id}/userLists/{user_list_id}` + * `type` (*type:* `String.t`, *default:* `nil`) - Output only. Type of this list. This field is read-only. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :name => String.t() | nil, + :resourceName => String.t() | nil, + :type => String.t() | nil + } + + field(:id) + field(:name) + field(:resourceName) + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserList do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserList.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserList do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__visit.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__visit.ex new file mode 100644 index 0000000000..500de1ade8 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__visit.ex @@ -0,0 +1,87 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Visit do + @moduledoc """ + A visit. + + ## Attributes + + * `adId` (*type:* `String.t`, *default:* `nil`) - Output only. Ad ID. A value of 0 indicates that the ad is unattributed. + * `assetFieldType` (*type:* `String.t`, *default:* `nil`) - Output only. Asset field type of the visit event. + * `assetId` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the asset which was interacted with during the visit event. + * `clickId` (*type:* `String.t`, *default:* `nil`) - Output only. A unique string for each visit that is passed to the landing page as the click id URL parameter. + * `criterionId` (*type:* `String.t`, *default:* `nil`) - Output only. Search Ads 360 keyword ID. A value of 0 indicates that the keyword is unattributed. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the visit. + * `merchantId` (*type:* `String.t`, *default:* `nil`) - Output only. The Search Ads 360 inventory account ID containing the product that was clicked on. Search Ads 360 generates this ID when you link an inventory account in Search Ads 360. + * `productChannel` (*type:* `String.t`, *default:* `nil`) - Output only. The sales channel of the product that was clicked on: Online or Local. + * `productCountryCode` (*type:* `String.t`, *default:* `nil`) - Output only. The country (ISO-3166 format) registered for the inventory feed that contains the product clicked on. + * `productId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the product clicked on. + * `productLanguageCode` (*type:* `String.t`, *default:* `nil`) - Output only. The language (ISO-639-1) that has been set for the Merchant Center feed containing data about the product. + * `productStoreId` (*type:* `String.t`, *default:* `nil`) - Output only. The store in the Local Inventory Ad that was clicked on. This should match the store IDs used in your local products feed. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the visit. Visit resource names have the form: `customers/{customer_id}/visits/{ad_group_id}~{criterion_id}~{ds_visit_id}` + * `visitDateTime` (*type:* `String.t`, *default:* `nil`) - Output only. The timestamp of the visit event. The timestamp is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss" format. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adId => String.t() | nil, + :assetFieldType => String.t() | nil, + :assetId => String.t() | nil, + :clickId => String.t() | nil, + :criterionId => String.t() | nil, + :id => String.t() | nil, + :merchantId => String.t() | nil, + :productChannel => String.t() | nil, + :productCountryCode => String.t() | nil, + :productId => String.t() | nil, + :productLanguageCode => String.t() | nil, + :productStoreId => String.t() | nil, + :resourceName => String.t() | nil, + :visitDateTime => String.t() | nil + } + + field(:adId) + field(:assetFieldType) + field(:assetId) + field(:clickId) + field(:criterionId) + field(:id) + field(:merchantId) + field(:productChannel) + field(:productCountryCode) + field(:productId) + field(:productLanguageCode) + field(:productStoreId) + field(:resourceName) + field(:visitDateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Visit do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Visit.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Visit do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__webpage_view.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__webpage_view.ex new file mode 100644 index 0000000000..c640ce2ead --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_resources__webpage_view.ex @@ -0,0 +1,51 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_WebpageView do + @moduledoc """ + A webpage view. + + ## Attributes + + * `resourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the webpage view. Webpage view resource names have the form: `customers/{customer_id}/webpageViews/{ad_group_id}~{criterion_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resourceName => String.t() | nil + } + + field(:resourceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_WebpageView do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_WebpageView.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_WebpageView do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__conversion_custom_dimension_header.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__conversion_custom_dimension_header.ex new file mode 100644 index 0000000000..9d2b796524 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__conversion_custom_dimension_header.ex @@ -0,0 +1,56 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ConversionCustomDimensionHeader do + @moduledoc """ + Message for conversion custom dimension header. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - The conversion custom dimension ID. + * `name` (*type:* `String.t`, *default:* `nil`) - The user defined name of the conversion custom dimension. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :name => String.t() | nil + } + + field(:id) + field(:name) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ConversionCustomDimensionHeader do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ConversionCustomDimensionHeader.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ConversionCustomDimensionHeader do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__conversion_custom_metric_header.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__conversion_custom_metric_header.ex new file mode 100644 index 0000000000..5dba791d98 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__conversion_custom_metric_header.ex @@ -0,0 +1,56 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ConversionCustomMetricHeader do + @moduledoc """ + Message for conversion custom metric header. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - The conversion custom metric ID. + * `name` (*type:* `String.t`, *default:* `nil`) - The user defined name of the conversion custom metric. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :name => String.t() | nil + } + + field(:id) + field(:name) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ConversionCustomMetricHeader do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ConversionCustomMetricHeader.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ConversionCustomMetricHeader do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__custom_column_header.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__custom_column_header.ex new file mode 100644 index 0000000000..66b98ce4db --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__custom_column_header.ex @@ -0,0 +1,57 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_CustomColumnHeader do + @moduledoc """ + Message for custom column header. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - The custom column ID. + * `name` (*type:* `String.t`, *default:* `nil`) - The user defined name of the custom column. + * `referencesMetrics` (*type:* `boolean()`, *default:* `nil`) - True when the custom column references metrics. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :name => String.t() | nil, + :referencesMetrics => boolean() | nil + } + + field(:id) + field(:name) + field(:referencesMetrics) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_CustomColumnHeader do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_CustomColumnHeader.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_CustomColumnHeader do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__list_accessible_customers_response.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__list_accessible_customers_response.ex new file mode 100644 index 0000000000..6ff3ee0397 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__list_accessible_customers_response.ex @@ -0,0 +1,53 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ListAccessibleCustomersResponse do + @moduledoc """ + Response message for CustomerService.ListAccessibleCustomers. + + ## Attributes + + * `resourceNames` (*type:* `list(String.t)`, *default:* `nil`) - Resource name of customers directly accessible by the user authenticating the call. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resourceNames => list(String.t()) | nil + } + + field(:resourceNames, type: :list) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ListAccessibleCustomersResponse do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ListAccessibleCustomersResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ListAccessibleCustomersResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__list_custom_columns_response.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__list_custom_columns_response.ex new file mode 100644 index 0000000000..89781f757b --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__list_custom_columns_response.ex @@ -0,0 +1,58 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ListCustomColumnsResponse do + @moduledoc """ + Response message for fetching all custom columns associated with a customer. + + ## Attributes + + * `customColumns` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomColumn.t)`, *default:* `nil`) - The CustomColumns owned by the provided customer. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :customColumns => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomColumn.t() + ) + | nil + } + + field(:customColumns, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomColumn, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ListCustomColumnsResponse do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ListCustomColumnsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ListCustomColumnsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__raw_event_conversion_dimension_header.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__raw_event_conversion_dimension_header.ex new file mode 100644 index 0000000000..4c82da8f92 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__raw_event_conversion_dimension_header.ex @@ -0,0 +1,56 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_RawEventConversionDimensionHeader do + @moduledoc """ + Message for raw event conversion dimension header. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - The conversion custom variable ID. + * `name` (*type:* `String.t`, *default:* `nil`) - The user defined name of the raw event dimension. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :name => String.t() | nil + } + + field(:id) + field(:name) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_RawEventConversionDimensionHeader do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_RawEventConversionDimensionHeader.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_RawEventConversionDimensionHeader do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__raw_event_conversion_metric_header.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__raw_event_conversion_metric_header.ex new file mode 100644 index 0000000000..0698d26afd --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__raw_event_conversion_metric_header.ex @@ -0,0 +1,56 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_RawEventConversionMetricHeader do + @moduledoc """ + Message for raw event conversion metric header. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - The conversion custom variable ID. + * `name` (*type:* `String.t`, *default:* `nil`) - The user defined name of the raw event metric. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :name => String.t() | nil + } + + field(:id) + field(:name) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_RawEventConversionMetricHeader do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_RawEventConversionMetricHeader.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_RawEventConversionMetricHeader do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_ads360_row.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_ads360_row.ex new file mode 100644 index 0000000000..67bd9ca837 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_ads360_row.ex @@ -0,0 +1,432 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchAds360Row do + @moduledoc """ + A returned row from the query. + + ## Attributes + + * `adGroupCriterionLabel` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterionLabel.t`, *default:* `nil`) - The ad group criterion label referenced in the query. + * `geoTargetConstant` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GeoTargetConstant.t`, *default:* `nil`) - The geo target constant referenced in the query. + * `campaignAudienceView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAudienceView.t`, *default:* `nil`) - The campaign audience view referenced in the query. + * `adGroupLabel` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupLabel.t`, *default:* `nil`) - The ad group label referenced in the query. + * `locationView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LocationView.t`, *default:* `nil`) - The location view referenced in the query. + * `assetGroupListingGroupFilter` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupListingGroupFilter.t`, *default:* `nil`) - The asset group listing group filter referenced in the query. + * `customerAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerAsset.t`, *default:* `nil`) - The customer asset referenced in the query. + * `visit` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Visit.t`, *default:* `nil`) - The event level visit referenced in the query. + * `metrics` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Metrics.t`, *default:* `nil`) - The metrics. + * `customerManagerLink` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerManagerLink.t`, *default:* `nil`) - The CustomerManagerLink referenced in the query. + * `biddingStrategy` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_BiddingStrategy.t`, *default:* `nil`) - The bidding strategy referenced in the query. + * `assetGroupSignal` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupSignal.t`, *default:* `nil`) - The asset group signal referenced in the query. + * `adGroupAssetSet` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAssetSet.t`, *default:* `nil`) - The ad group asset set referenced in the query. + * `asset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Asset.t`, *default:* `nil`) - The asset referenced in the query. + * `languageConstant` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LanguageConstant.t`, *default:* `nil`) - The language constant referenced in the query. + * `shoppingPerformanceView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ShoppingPerformanceView.t`, *default:* `nil`) - The shopping performance view referenced in the query. + * `adGroup` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroup.t`, *default:* `nil`) - The ad group referenced in the query. + * `keywordView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_KeywordView.t`, *default:* `nil`) - The keyword view referenced in the query. + * `label` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Label.t`, *default:* `nil`) - The label referenced in the query. + * `campaignCriterion` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignCriterion.t`, *default:* `nil`) - The campaign criterion referenced in the query. + * `adGroupBidModifier` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupBidModifier.t`, *default:* `nil`) - The bid modifier referenced in the query. + * `cartDataSalesView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CartDataSalesView.t`, *default:* `nil`) - The cart data sales view referenced in the query. + * `ageRangeView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AgeRangeView.t`, *default:* `nil`) - The age range view referenced in the query. + * `assetGroupAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupAsset.t`, *default:* `nil`) - The asset group asset referenced in the query. + * `conversionCustomVariable` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionCustomVariable.t`, *default:* `nil`) - The conversion custom variable referenced in the query. + * `genderView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GenderView.t`, *default:* `nil`) - The gender view referenced in the query. + * `campaign` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign.t`, *default:* `nil`) - The campaign referenced in the query. + * `conversionAction` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction.t`, *default:* `nil`) - The conversion action referenced in the query. + * `campaignBudget` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignBudget.t`, *default:* `nil`) - The campaign budget referenced in the query. + * `customerAssetSet` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerAssetSet.t`, *default:* `nil`) - The customer asset set referenced in the query. + * `campaignAssetSet` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAssetSet.t`, *default:* `nil`) - The campaign asset set referenced in the query. + * `productGroupView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ProductGroupView.t`, *default:* `nil`) - The product group view referenced in the query. + * `adGroupCriterion` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion.t`, *default:* `nil`) - The criterion referenced in the query. + * `conversion` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Conversion.t`, *default:* `nil`) - The event level conversion referenced in the query. + * `dynamicSearchAdsSearchTermView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_DynamicSearchAdsSearchTermView.t`, *default:* `nil`) - The dynamic search ads search term view referenced in the query. + * `customerClient` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerClient.t`, *default:* `nil`) - The CustomerClient referenced in the query. + * `userList` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserList.t`, *default:* `nil`) - The user list referenced in the query. + * `assetGroup` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroup.t`, *default:* `nil`) - The asset group referenced in the query. + * `webpageView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_WebpageView.t`, *default:* `nil`) - The webpage view referenced in the query. + * `campaignLabel` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignLabel.t`, *default:* `nil`) - The campaign label referenced in the query. + * `campaignAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAsset.t`, *default:* `nil`) - The campaign asset referenced in the query. + * `customColumns` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value.t)`, *default:* `nil`) - The custom columns. + * `adGroupAd` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAd.t`, *default:* `nil`) - The ad referenced in the query. + * `segments` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Segments.t`, *default:* `nil`) - The segments. + * `adGroupAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAsset.t`, *default:* `nil`) - The ad group asset referenced in the query. + * `adGroupAudienceView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAudienceView.t`, *default:* `nil`) - The ad group audience view referenced in the query. + * `assetGroupTopCombinationView` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupTopCombinationView.t`, *default:* `nil`) - The asset group top combination view referenced in the query. + * `productBiddingCategoryConstant` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ProductBiddingCategoryConstant.t`, *default:* `nil`) - The Product Bidding Category referenced in the query. + * `audience` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Audience.t`, *default:* `nil`) - The Audience referenced in the query. + * `assetSetAsset` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetSetAsset.t`, *default:* `nil`) - The asset set asset referenced in the query. + * `assetSet` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetSet.t`, *default:* `nil`) - The asset set referenced in the query. + * `customer` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Customer.t`, *default:* `nil`) - The customer referenced in the query. + * `adGroupAdLabel` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAdLabel.t`, *default:* `nil`) - The ad group ad label referenced in the query. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adGroupCriterionLabel => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterionLabel.t() + | nil, + :geoTargetConstant => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GeoTargetConstant.t() + | nil, + :campaignAudienceView => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAudienceView.t() + | nil, + :adGroupLabel => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupLabel.t() + | nil, + :locationView => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LocationView.t() + | nil, + :assetGroupListingGroupFilter => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupListingGroupFilter.t() + | nil, + :customerAsset => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerAsset.t() + | nil, + :visit => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Visit.t() | nil, + :metrics => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Metrics.t() | nil, + :customerManagerLink => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerManagerLink.t() + | nil, + :biddingStrategy => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_BiddingStrategy.t() + | nil, + :assetGroupSignal => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupSignal.t() + | nil, + :adGroupAssetSet => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAssetSet.t() + | nil, + :asset => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Asset.t() | nil, + :languageConstant => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LanguageConstant.t() + | nil, + :shoppingPerformanceView => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ShoppingPerformanceView.t() + | nil, + :adGroup => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroup.t() | nil, + :keywordView => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_KeywordView.t() | nil, + :label => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Label.t() | nil, + :campaignCriterion => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignCriterion.t() + | nil, + :adGroupBidModifier => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupBidModifier.t() + | nil, + :cartDataSalesView => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CartDataSalesView.t() + | nil, + :ageRangeView => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AgeRangeView.t() + | nil, + :assetGroupAsset => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupAsset.t() + | nil, + :conversionCustomVariable => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionCustomVariable.t() + | nil, + :genderView => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GenderView.t() | nil, + :campaign => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign.t() | nil, + :conversionAction => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction.t() + | nil, + :campaignBudget => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignBudget.t() + | nil, + :customerAssetSet => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerAssetSet.t() + | nil, + :campaignAssetSet => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAssetSet.t() + | nil, + :productGroupView => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ProductGroupView.t() + | nil, + :adGroupCriterion => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion.t() + | nil, + :conversion => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Conversion.t() | nil, + :dynamicSearchAdsSearchTermView => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_DynamicSearchAdsSearchTermView.t() + | nil, + :customerClient => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerClient.t() + | nil, + :userList => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserList.t() | nil, + :assetGroup => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroup.t() | nil, + :webpageView => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_WebpageView.t() | nil, + :campaignLabel => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignLabel.t() + | nil, + :campaignAsset => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAsset.t() + | nil, + :customColumns => + list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value.t()) | nil, + :adGroupAd => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAd.t() | nil, + :segments => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Segments.t() | nil, + :adGroupAsset => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAsset.t() + | nil, + :adGroupAudienceView => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAudienceView.t() + | nil, + :assetGroupTopCombinationView => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupTopCombinationView.t() + | nil, + :productBiddingCategoryConstant => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ProductBiddingCategoryConstant.t() + | nil, + :audience => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Audience.t() | nil, + :assetSetAsset => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetSetAsset.t() + | nil, + :assetSet => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetSet.t() | nil, + :customer => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Customer.t() | nil, + :adGroupAdLabel => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAdLabel.t() + | nil + } + + field(:adGroupCriterionLabel, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterionLabel + ) + + field(:geoTargetConstant, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GeoTargetConstant + ) + + field(:campaignAudienceView, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAudienceView + ) + + field(:adGroupLabel, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupLabel + ) + + field(:locationView, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LocationView + ) + + field(:assetGroupListingGroupFilter, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupListingGroupFilter + ) + + field(:customerAsset, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerAsset + ) + + field(:visit, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Visit) + field(:metrics, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Metrics) + + field(:customerManagerLink, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerManagerLink + ) + + field(:biddingStrategy, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_BiddingStrategy + ) + + field(:assetGroupSignal, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupSignal + ) + + field(:adGroupAssetSet, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAssetSet + ) + + field(:asset, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Asset) + + field(:languageConstant, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_LanguageConstant + ) + + field(:shoppingPerformanceView, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ShoppingPerformanceView + ) + + field(:adGroup, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroup) + + field(:keywordView, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_KeywordView + ) + + field(:label, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Label) + + field(:campaignCriterion, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignCriterion + ) + + field(:adGroupBidModifier, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupBidModifier + ) + + field(:cartDataSalesView, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CartDataSalesView + ) + + field(:ageRangeView, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AgeRangeView + ) + + field(:assetGroupAsset, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupAsset + ) + + field(:conversionCustomVariable, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionCustomVariable + ) + + field(:genderView, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_GenderView + ) + + field(:campaign, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Campaign) + + field(:conversionAction, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ConversionAction + ) + + field(:campaignBudget, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignBudget + ) + + field(:customerAssetSet, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerAssetSet + ) + + field(:campaignAssetSet, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAssetSet + ) + + field(:productGroupView, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ProductGroupView + ) + + field(:adGroupCriterion, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupCriterion + ) + + field(:conversion, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Conversion + ) + + field(:dynamicSearchAdsSearchTermView, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_DynamicSearchAdsSearchTermView + ) + + field(:customerClient, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CustomerClient + ) + + field(:userList, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_UserList) + + field(:assetGroup, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroup + ) + + field(:webpageView, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_WebpageView + ) + + field(:campaignLabel, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignLabel + ) + + field(:campaignAsset, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_CampaignAsset + ) + + field(:customColumns, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Value, + type: :list + ) + + field(:adGroupAd, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAd) + + field(:segments, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Common_Segments) + + field(:adGroupAsset, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAsset + ) + + field(:adGroupAudienceView, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAudienceView + ) + + field(:assetGroupTopCombinationView, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroupTopCombinationView + ) + + field(:productBiddingCategoryConstant, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_ProductBiddingCategoryConstant + ) + + field(:audience, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Audience) + + field(:assetSetAsset, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetSetAsset + ) + + field(:assetSet, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetSet) + field(:customer, as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_Customer) + + field(:adGroupAdLabel, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AdGroupAdLabel + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchAds360Row do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchAds360Row.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchAds360Row do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_search_ads360_fields_request.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_search_ads360_fields_request.ex new file mode 100644 index 0000000000..7f17ad670c --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_search_ads360_fields_request.ex @@ -0,0 +1,59 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360FieldsRequest do + @moduledoc """ + Request message for SearchAds360FieldService.SearchSearchAds360Fields. + + ## Attributes + + * `pageSize` (*type:* `integer()`, *default:* `nil`) - Number of elements to retrieve in a single page. When too large a page is requested, the server may decide to further limit the number of returned resources. + * `pageToken` (*type:* `String.t`, *default:* `nil`) - Token of the page to retrieve. If not specified, the first page of results will be returned. Use the value obtained from `next_page_token` in the previous response in order to request the next page of results. + * `query` (*type:* `String.t`, *default:* `nil`) - Required. The query string. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :pageSize => integer() | nil, + :pageToken => String.t() | nil, + :query => String.t() | nil + } + + field(:pageSize) + field(:pageToken) + field(:query) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360FieldsRequest do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360FieldsRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360FieldsRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_search_ads360_fields_response.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_search_ads360_fields_response.ex new file mode 100644 index 0000000000..d537e2bb3c --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_search_ads360_fields_response.ex @@ -0,0 +1,68 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360FieldsResponse do + @moduledoc """ + Response message for SearchAds360FieldService.SearchSearchAds360Fields. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Pagination token used to retrieve the next page of results. Pass the content of this string as the `page_token` attribute of the next request. `next_page_token` is not returned for the last page. + * `results` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_SearchAds360Field.t)`, *default:* `nil`) - The list of fields that matched the query. + * `totalResultsCount` (*type:* `String.t`, *default:* `nil`) - Total number of results that match the query ignoring the LIMIT clause. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :results => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_SearchAds360Field.t() + ) + | nil, + :totalResultsCount => String.t() | nil + } + + field(:nextPageToken) + + field(:results, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_SearchAds360Field, + type: :list + ) + + field(:totalResultsCount) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360FieldsResponse do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360FieldsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360FieldsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_search_ads360_request.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_search_ads360_request.ex new file mode 100644 index 0000000000..25dbdec3f2 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_search_ads360_request.ex @@ -0,0 +1,66 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360Request do + @moduledoc """ + Request message for SearchAds360Service.Search. + + ## Attributes + + * `pageSize` (*type:* `integer()`, *default:* `nil`) - Number of elements to retrieve in a single page. When too large a page is requested, the server may decide to further limit the number of returned resources. + * `pageToken` (*type:* `String.t`, *default:* `nil`) - Token of the page to retrieve. If not specified, the first page of results will be returned. Use the value obtained from `next_page_token` in the previous response in order to request the next page of results. + * `query` (*type:* `String.t`, *default:* `nil`) - Required. The query string. + * `returnTotalResultsCount` (*type:* `boolean()`, *default:* `nil`) - If true, the total number of results that match the query ignoring the LIMIT clause will be included in the response. Default is false. + * `summaryRowSetting` (*type:* `String.t`, *default:* `nil`) - Determines whether a summary row will be returned. By default, summary row is not returned. If requested, the summary row will be sent in a response by itself after all other query results are returned. + * `validateOnly` (*type:* `boolean()`, *default:* `nil`) - If true, the request is validated but not executed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :pageSize => integer() | nil, + :pageToken => String.t() | nil, + :query => String.t() | nil, + :returnTotalResultsCount => boolean() | nil, + :summaryRowSetting => String.t() | nil, + :validateOnly => boolean() | nil + } + + field(:pageSize) + field(:pageToken) + field(:query) + field(:returnTotalResultsCount) + field(:summaryRowSetting) + field(:validateOnly) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360Request do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360Request.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360Request do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_search_ads360_response.ex b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_search_ads360_response.ex new file mode 100644 index 0000000000..e3a2686e21 --- /dev/null +++ b/clients/search_ads360/lib/google_api/search_ads360/v0/model/google_ads_searchads360_v0_services__search_search_ads360_response.ex @@ -0,0 +1,136 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360Response do + @moduledoc """ + Response message for SearchAds360Service.Search. + + ## Attributes + + * `conversionCustomDimensionHeaders` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ConversionCustomDimensionHeader.t)`, *default:* `nil`) - The headers of the conversion custom dimensions in the results. + * `conversionCustomMetricHeaders` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ConversionCustomMetricHeader.t)`, *default:* `nil`) - The headers of the conversion custom metrics in the results. + * `customColumnHeaders` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_CustomColumnHeader.t)`, *default:* `nil`) - The headers of the custom columns in the results. + * `fieldMask` (*type:* `String.t`, *default:* `nil`) - FieldMask that represents what fields were requested by the user. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Pagination token used to retrieve the next page of results. Pass the content of this string as the `page_token` attribute of the next request. `next_page_token` is not returned for the last page. + * `rawEventConversionDimensionHeaders` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_RawEventConversionDimensionHeader.t)`, *default:* `nil`) - The headers of the raw event conversion dimensions in the results. + * `rawEventConversionMetricHeaders` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_RawEventConversionMetricHeader.t)`, *default:* `nil`) - The headers of the raw event conversion metrics in the results. + * `results` (*type:* `list(GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchAds360Row.t)`, *default:* `nil`) - The list of rows that matched the query. + * `summaryRow` (*type:* `GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchAds360Row.t`, *default:* `nil`) - Summary row that contains summary of metrics in results. Summary of metrics means aggregation of metrics across all results, here aggregation could be sum, average, rate, etc. + * `totalResultsCount` (*type:* `String.t`, *default:* `nil`) - Total number of results that match the query ignoring the LIMIT clause. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conversionCustomDimensionHeaders => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ConversionCustomDimensionHeader.t() + ) + | nil, + :conversionCustomMetricHeaders => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ConversionCustomMetricHeader.t() + ) + | nil, + :customColumnHeaders => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_CustomColumnHeader.t() + ) + | nil, + :fieldMask => String.t() | nil, + :nextPageToken => String.t() | nil, + :rawEventConversionDimensionHeaders => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_RawEventConversionDimensionHeader.t() + ) + | nil, + :rawEventConversionMetricHeaders => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_RawEventConversionMetricHeader.t() + ) + | nil, + :results => + list( + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchAds360Row.t() + ) + | nil, + :summaryRow => + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchAds360Row.t() + | nil, + :totalResultsCount => String.t() | nil + } + + field(:conversionCustomDimensionHeaders, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ConversionCustomDimensionHeader, + type: :list + ) + + field(:conversionCustomMetricHeaders, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_ConversionCustomMetricHeader, + type: :list + ) + + field(:customColumnHeaders, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_CustomColumnHeader, + type: :list + ) + + field(:fieldMask) + field(:nextPageToken) + + field(:rawEventConversionDimensionHeaders, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_RawEventConversionDimensionHeader, + type: :list + ) + + field(:rawEventConversionMetricHeaders, + as: + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_RawEventConversionMetricHeader, + type: :list + ) + + field(:results, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchAds360Row, + type: :list + ) + + field(:summaryRow, + as: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchAds360Row + ) + + field(:totalResultsCount) +end + +defimpl Poison.Decoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360Response do + def decode(value, options) do + GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360Response.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Services_SearchSearchAds360Response do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/search_ads360/mix.exs b/clients/search_ads360/mix.exs new file mode 100644 index 0000000000..f1b256cf6c --- /dev/null +++ b/clients/search_ads360/mix.exs @@ -0,0 +1,66 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SearchAds360.Mixfile do + use Mix.Project + + @version "0.2.0" + + def project() do + [ + app: :google_api_search_ads360, + version: @version, + elixir: "~> 1.6", + build_embedded: Mix.env == :prod, + start_permanent: Mix.env == :prod, + description: description(), + package: package(), + deps: deps(), + source_url: "https://github.com/googleapis/elixir-google-api/tree/master/clients/search_ads360" + ] + end + + def application() do + [extra_applications: [:logger]] + end + + defp deps() do + [ + {:google_gax, "~> 0.4"}, + + {:ex_doc, "~> 0.16", only: :dev} + ] + end + + defp description() do + """ + Search Ads 360 Reporting API client library. The Search Ads 360 API allows developers to automate downloading reports from Search Ads 360. + """ + end + + defp package() do + [ + files: ["lib", "mix.exs", "README*", "LICENSE"], + maintainers: ["Jeff Ching", "Daniel Azuma"], + licenses: ["Apache 2.0"], + links: %{ + "GitHub" => "https://github.com/googleapis/elixir-google-api/tree/master/clients/search_ads360", + "Homepage" => "https://developers.google.com/search-ads/reporting" + } + ] + end +end diff --git a/clients/search_ads360/test/test_helper.exs b/clients/search_ads360/test/test_helper.exs new file mode 100644 index 0000000000..36bf26a605 --- /dev/null +++ b/clients/search_ads360/test/test_helper.exs @@ -0,0 +1,35 @@ +# Copyright 2019 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 +# +# http://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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +ExUnit.start() + +defmodule GoogleApi.SearchAds360.TestHelper do + + defmacro __using__(opts) do + quote do + use ExUnit.Case, unquote(opts) + import GoogleApi.SearchAds360.TestHelper + end + end + + def for_scope(scopes) when is_list(scopes), do: for_scope(Enum.join(scopes, " ")) + def for_scope(scope) do + {:ok, token} = Goth.Token.for_scope(scope) + token.token + end + +end