├── CONTRIBUTING.md ├── README.md ├── ad_manager_api ├── ChangeLog ├── README.md ├── Rakefile ├── ad_manager_api.yml ├── examples │ ├── v202411 │ │ ├── adjustment_service │ │ │ ├── create_forecast_adjustments.rb │ │ │ ├── create_traffic_forecast_segments.rb │ │ │ ├── get_all_forecast_adjustments.rb │ │ │ ├── get_all_traffic_forecast_segments.rb │ │ │ ├── get_forecast_adjustments_for_traffic_forecast_segment.rb │ │ │ └── update_forecast_adjustments.rb │ │ ├── audience_segment_service │ │ │ ├── create_audience_segments.rb │ │ │ ├── get_all_audience_segments.rb │ │ │ ├── get_first_party_audience_segments.rb │ │ │ ├── populate_first_party_audience_segments.rb │ │ │ └── update_audience_segments.rb │ │ ├── cdn_configuration_service │ │ │ ├── create_cdn_configurations.rb │ │ │ └── get_all_cdn_configurations.rb │ │ ├── cms_metadata_service │ │ │ ├── activate_cms_metadata_values.rb │ │ │ ├── get_all_cms_metadata_keys.rb │ │ │ ├── get_all_cms_metadata_values.rb │ │ │ └── get_cms_metadata_values_for_key.rb │ │ ├── common │ │ │ ├── error_handling.rb │ │ │ └── oauth2_jwt_handling.rb │ │ ├── company_service │ │ │ ├── create_companies.rb │ │ │ ├── get_advertisers.rb │ │ │ ├── get_all_companies.rb │ │ │ └── update_companies.rb │ │ ├── contact_service │ │ │ ├── create_contacts.rb │ │ │ ├── get_all_contacts.rb │ │ │ ├── get_uninvited_contacts.rb │ │ │ └── update_contacts.rb │ │ ├── content_service │ │ │ ├── get_all_content.rb │ │ │ └── get_recently_modified_content.rb │ │ ├── creative_service │ │ │ ├── copy_image_creatives.rb │ │ │ ├── create_creative_from_template.rb │ │ │ ├── create_creatives.rb │ │ │ ├── create_custom_creative.rb │ │ │ ├── create_native_creative.rb │ │ │ ├── create_video_creative.rb │ │ │ ├── get_all_creatives.rb │ │ │ ├── get_image_creatives.rb │ │ │ └── update_creatives.rb │ │ ├── creative_set_service │ │ │ ├── associate_creative_set_to_line_item.rb │ │ │ ├── create_creative_set.rb │ │ │ ├── get_all_creative_sets.rb │ │ │ ├── get_creative_sets_for_master_creative.rb │ │ │ └── update_creative_sets.rb │ │ ├── creative_template_service │ │ │ ├── get_all_creative_templates.rb │ │ │ └── get_system_defined_creative_templates.rb │ │ ├── creative_wrapper_service │ │ │ ├── create_creative_wrappers.rb │ │ │ ├── deactivate_creative_wrapper.rb │ │ │ ├── get_active_creative_wrappers.rb │ │ │ ├── get_all_creative_wrappers.rb │ │ │ └── update_creative_wrappers.rb │ │ ├── custom_field_service │ │ │ ├── create_custom_field_options.rb │ │ │ ├── create_custom_fields.rb │ │ │ ├── deactivate_all_line_item_custom_fields.rb │ │ │ ├── deactivate_custom_field.rb │ │ │ ├── get_all_custom_fields.rb │ │ │ ├── get_custom_fields_for_line_items.rb │ │ │ ├── set_line_item_custom_field_value.rb │ │ │ └── update_custom_fields.rb │ │ ├── custom_targeting_service │ │ │ ├── create_custom_targeting_keys_and_values.rb │ │ │ ├── delete_custom_targeting_keys.rb │ │ │ ├── delete_custom_targeting_values.rb │ │ │ ├── get_all_custom_targeting_keys_and_values.rb │ │ │ ├── get_predefined_custom_targeting_keys_and_values.rb │ │ │ ├── update_custom_targeting_keys.rb │ │ │ └── update_custom_targeting_values.rb │ │ ├── forecast_service │ │ │ ├── get_availability_forecast.rb │ │ │ ├── get_availability_forecast_for_line_item.rb │ │ │ ├── get_delivery_forecast_for_line_items.rb │ │ │ └── get_traffic_data.rb │ │ ├── inventory_service │ │ │ ├── archive_ad_units.rb │ │ │ ├── create_ad_units.rb │ │ │ ├── deactivate_ad_units.rb │ │ │ ├── get_ad_unit_hierarchy.rb │ │ │ ├── get_all_ad_unit_sizes.rb │ │ │ ├── get_all_ad_units.rb │ │ │ ├── get_top_level_ad_units.rb │ │ │ └── update_ad_units.rb │ │ ├── label_service │ │ │ ├── create_labels.rb │ │ │ ├── deactivate_labels.rb │ │ │ ├── get_active_labels.rb │ │ │ ├── get_all_labels.rb │ │ │ └── update_labels.rb │ │ ├── line_item_creative_association_service │ │ │ ├── create_licas.rb │ │ │ ├── deactivate_licas.rb │ │ │ ├── get_all_licas.rb │ │ │ ├── get_licas_for_line_item.rb │ │ │ └── update_licas.rb │ │ ├── line_item_service │ │ │ ├── activate_line_items.rb │ │ │ ├── create_line_items.rb │ │ │ ├── create_video_line_item.rb │ │ │ ├── get_all_line_items.rb │ │ │ ├── get_line_items_that_need_creatives.rb │ │ │ ├── get_recently_updated_line_items.rb │ │ │ ├── pause_line_item.rb │ │ │ ├── target_custom_criteria.rb │ │ │ └── update_line_items.rb │ │ ├── native_style_service │ │ │ ├── create_native_styles.rb │ │ │ └── get_all_native_styles.rb │ │ ├── network_service │ │ │ ├── get_all_networks.rb │ │ │ ├── get_current_network.rb │ │ │ ├── get_default_third_party_data_declaration.rb │ │ │ └── make_test_network.rb │ │ ├── order_service │ │ │ ├── approve_orders.rb │ │ │ ├── create_orders.rb │ │ │ ├── get_all_orders.rb │ │ │ ├── get_orders_starting_soon.rb │ │ │ └── update_orders.rb │ │ ├── placement_service │ │ │ ├── create_placements.rb │ │ │ ├── deactivate_placements.rb │ │ │ ├── get_active_placements.rb │ │ │ ├── get_all_placements.rb │ │ │ └── update_placements.rb │ │ ├── proposal_line_item_service │ │ │ ├── archive_proposal_line_item.rb │ │ │ ├── create_proposal_line_item.rb │ │ │ ├── get_all_proposal_line_items.rb │ │ │ ├── get_proposal_line_items_for_proposal.rb │ │ │ └── update_proposal_line_item.rb │ │ ├── proposal_service │ │ │ ├── create_proposal.rb │ │ │ ├── get_all_proposals.rb │ │ │ ├── get_marketplace_comments.rb │ │ │ ├── get_proposals_awaiting_seller_review.rb │ │ │ ├── request_buyer_acceptance.rb │ │ │ └── update_proposal.rb │ │ ├── publisher_query_language_service │ │ │ ├── fetch_match_tables.rb │ │ │ ├── get_all_browsers.rb │ │ │ ├── get_all_line_items.rb │ │ │ ├── get_all_programmatic_buyers.rb │ │ │ ├── get_geo_targets.rb │ │ │ ├── get_line_items_named_like.rb │ │ │ ├── get_mcm_earnings.rb │ │ │ └── get_recent_changes.rb │ │ ├── report_service │ │ │ ├── display_report.rb │ │ │ ├── download_report.rb │ │ │ ├── run_delivery_report.rb │ │ │ ├── run_inventory_report.rb │ │ │ ├── run_reach_report.rb │ │ │ ├── run_reach_report_with_ad_unit_dimensions.rb │ │ │ ├── run_report_with_custom_fields.rb │ │ │ ├── run_sales_report.rb │ │ │ └── run_saved_query.rb │ │ ├── site_service │ │ │ ├── create_sites.rb │ │ │ ├── get_all_sites.rb │ │ │ ├── get_sites_requiring_approval.rb │ │ │ └── submit_sites_for_approval.rb │ │ ├── suggested_ad_unit_service │ │ │ ├── approve_all_suggested_ad_units.rb │ │ │ ├── get_all_suggested_ad_units.rb │ │ │ └── get_highly_requested_suggested_ad_units.rb │ │ ├── targeting_preset_service │ │ │ └── get_all_targeting_presets.rb │ │ ├── team_service │ │ │ ├── create_teams.rb │ │ │ ├── get_all_teams.rb │ │ │ └── update_teams.rb │ │ ├── user_service │ │ │ ├── create_users.rb │ │ │ ├── deactivate_users.rb │ │ │ ├── get_all_roles.rb │ │ │ ├── get_all_users.rb │ │ │ ├── get_current_user.rb │ │ │ ├── get_user_by_email_address.rb │ │ │ └── update_users.rb │ │ └── user_team_association_service │ │ │ ├── create_user_team_associations.rb │ │ │ ├── delete_user_team_associations.rb │ │ │ ├── get_all_user_team_associations.rb │ │ │ ├── get_user_team_associations_for_user.rb │ │ │ └── update_user_team_associations.rb │ ├── v202502 │ │ ├── adjustment_service │ │ │ ├── create_forecast_adjustments.rb │ │ │ ├── create_traffic_forecast_segments.rb │ │ │ ├── get_all_forecast_adjustments.rb │ │ │ ├── get_all_traffic_forecast_segments.rb │ │ │ ├── get_forecast_adjustments_for_traffic_forecast_segment.rb │ │ │ └── update_forecast_adjustments.rb │ │ ├── audience_segment_service │ │ │ ├── create_audience_segments.rb │ │ │ ├── get_all_audience_segments.rb │ │ │ ├── get_first_party_audience_segments.rb │ │ │ ├── populate_first_party_audience_segments.rb │ │ │ └── update_audience_segments.rb │ │ ├── cdn_configuration_service │ │ │ ├── create_cdn_configurations.rb │ │ │ └── get_all_cdn_configurations.rb │ │ ├── cms_metadata_service │ │ │ ├── activate_cms_metadata_values.rb │ │ │ ├── get_all_cms_metadata_keys.rb │ │ │ ├── get_all_cms_metadata_values.rb │ │ │ └── get_cms_metadata_values_for_key.rb │ │ ├── common │ │ │ ├── error_handling.rb │ │ │ └── oauth2_jwt_handling.rb │ │ ├── company_service │ │ │ ├── create_companies.rb │ │ │ ├── get_advertisers.rb │ │ │ ├── get_all_companies.rb │ │ │ └── update_companies.rb │ │ ├── contact_service │ │ │ ├── create_contacts.rb │ │ │ ├── get_all_contacts.rb │ │ │ ├── get_uninvited_contacts.rb │ │ │ └── update_contacts.rb │ │ ├── content_service │ │ │ ├── get_all_content.rb │ │ │ └── get_recently_modified_content.rb │ │ ├── creative_service │ │ │ ├── copy_image_creatives.rb │ │ │ ├── create_creative_from_template.rb │ │ │ ├── create_creatives.rb │ │ │ ├── create_custom_creative.rb │ │ │ ├── create_native_creative.rb │ │ │ ├── create_video_creative.rb │ │ │ ├── get_all_creatives.rb │ │ │ ├── get_image_creatives.rb │ │ │ └── update_creatives.rb │ │ ├── creative_set_service │ │ │ ├── associate_creative_set_to_line_item.rb │ │ │ ├── create_creative_set.rb │ │ │ ├── get_all_creative_sets.rb │ │ │ ├── get_creative_sets_for_master_creative.rb │ │ │ └── update_creative_sets.rb │ │ ├── creative_template_service │ │ │ ├── get_all_creative_templates.rb │ │ │ └── get_system_defined_creative_templates.rb │ │ ├── creative_wrapper_service │ │ │ ├── create_creative_wrappers.rb │ │ │ ├── deactivate_creative_wrapper.rb │ │ │ ├── get_active_creative_wrappers.rb │ │ │ ├── get_all_creative_wrappers.rb │ │ │ └── update_creative_wrappers.rb │ │ ├── custom_field_service │ │ │ ├── create_custom_field_options.rb │ │ │ ├── create_custom_fields.rb │ │ │ ├── deactivate_all_line_item_custom_fields.rb │ │ │ ├── deactivate_custom_field.rb │ │ │ ├── get_all_custom_fields.rb │ │ │ ├── get_custom_fields_for_line_items.rb │ │ │ ├── set_line_item_custom_field_value.rb │ │ │ └── update_custom_fields.rb │ │ ├── custom_targeting_service │ │ │ ├── create_custom_targeting_keys_and_values.rb │ │ │ ├── delete_custom_targeting_keys.rb │ │ │ ├── delete_custom_targeting_values.rb │ │ │ ├── get_all_custom_targeting_keys_and_values.rb │ │ │ ├── get_predefined_custom_targeting_keys_and_values.rb │ │ │ ├── update_custom_targeting_keys.rb │ │ │ └── update_custom_targeting_values.rb │ │ ├── forecast_service │ │ │ ├── get_availability_forecast.rb │ │ │ ├── get_availability_forecast_for_line_item.rb │ │ │ ├── get_delivery_forecast_for_line_items.rb │ │ │ └── get_traffic_data.rb │ │ ├── inventory_service │ │ │ ├── archive_ad_units.rb │ │ │ ├── create_ad_units.rb │ │ │ ├── deactivate_ad_units.rb │ │ │ ├── get_ad_unit_hierarchy.rb │ │ │ ├── get_all_ad_unit_sizes.rb │ │ │ ├── get_all_ad_units.rb │ │ │ ├── get_top_level_ad_units.rb │ │ │ └── update_ad_units.rb │ │ ├── label_service │ │ │ ├── create_labels.rb │ │ │ ├── deactivate_labels.rb │ │ │ ├── get_active_labels.rb │ │ │ ├── get_all_labels.rb │ │ │ └── update_labels.rb │ │ ├── line_item_creative_association_service │ │ │ ├── create_licas.rb │ │ │ ├── deactivate_licas.rb │ │ │ ├── get_all_licas.rb │ │ │ ├── get_licas_for_line_item.rb │ │ │ └── update_licas.rb │ │ ├── line_item_service │ │ │ ├── activate_line_items.rb │ │ │ ├── create_line_items.rb │ │ │ ├── create_video_line_item.rb │ │ │ ├── get_all_line_items.rb │ │ │ ├── get_line_items_that_need_creatives.rb │ │ │ ├── get_recently_updated_line_items.rb │ │ │ ├── pause_line_item.rb │ │ │ ├── target_custom_criteria.rb │ │ │ └── update_line_items.rb │ │ ├── native_style_service │ │ │ ├── create_native_styles.rb │ │ │ └── get_all_native_styles.rb │ │ ├── network_service │ │ │ ├── get_all_networks.rb │ │ │ ├── get_current_network.rb │ │ │ ├── get_default_third_party_data_declaration.rb │ │ │ └── make_test_network.rb │ │ ├── order_service │ │ │ ├── approve_orders.rb │ │ │ ├── create_orders.rb │ │ │ ├── get_all_orders.rb │ │ │ ├── get_orders_starting_soon.rb │ │ │ └── update_orders.rb │ │ ├── placement_service │ │ │ ├── create_placements.rb │ │ │ ├── deactivate_placements.rb │ │ │ ├── get_active_placements.rb │ │ │ ├── get_all_placements.rb │ │ │ └── update_placements.rb │ │ ├── proposal_line_item_service │ │ │ ├── archive_proposal_line_item.rb │ │ │ ├── create_proposal_line_item.rb │ │ │ ├── get_all_proposal_line_items.rb │ │ │ ├── get_proposal_line_items_for_proposal.rb │ │ │ └── update_proposal_line_item.rb │ │ ├── proposal_service │ │ │ ├── create_proposal.rb │ │ │ ├── get_all_proposals.rb │ │ │ ├── get_marketplace_comments.rb │ │ │ ├── get_proposals_awaiting_seller_review.rb │ │ │ ├── request_buyer_acceptance.rb │ │ │ └── update_proposal.rb │ │ ├── publisher_query_language_service │ │ │ ├── fetch_match_tables.rb │ │ │ ├── get_all_browsers.rb │ │ │ ├── get_all_line_items.rb │ │ │ ├── get_all_programmatic_buyers.rb │ │ │ ├── get_geo_targets.rb │ │ │ ├── get_line_items_named_like.rb │ │ │ ├── get_mcm_earnings.rb │ │ │ └── get_recent_changes.rb │ │ ├── report_service │ │ │ ├── display_report.rb │ │ │ ├── download_report.rb │ │ │ ├── run_delivery_report.rb │ │ │ ├── run_inventory_report.rb │ │ │ ├── run_reach_report.rb │ │ │ ├── run_reach_report_with_ad_unit_dimensions.rb │ │ │ ├── run_report_with_custom_fields.rb │ │ │ ├── run_sales_report.rb │ │ │ └── run_saved_query.rb │ │ ├── site_service │ │ │ ├── create_sites.rb │ │ │ ├── get_all_sites.rb │ │ │ ├── get_sites_requiring_approval.rb │ │ │ └── submit_sites_for_approval.rb │ │ ├── suggested_ad_unit_service │ │ │ ├── approve_all_suggested_ad_units.rb │ │ │ ├── get_all_suggested_ad_units.rb │ │ │ └── get_highly_requested_suggested_ad_units.rb │ │ ├── targeting_preset_service │ │ │ └── get_all_targeting_presets.rb │ │ ├── team_service │ │ │ ├── create_teams.rb │ │ │ ├── get_all_teams.rb │ │ │ └── update_teams.rb │ │ ├── user_service │ │ │ ├── create_users.rb │ │ │ ├── deactivate_users.rb │ │ │ ├── get_all_roles.rb │ │ │ ├── get_all_users.rb │ │ │ ├── get_current_user.rb │ │ │ ├── get_user_by_email_address.rb │ │ │ └── update_users.rb │ │ └── user_team_association_service │ │ │ ├── create_user_team_associations.rb │ │ │ ├── delete_user_team_associations.rb │ │ │ ├── get_all_user_team_associations.rb │ │ │ ├── get_user_team_associations_for_user.rb │ │ │ └── update_user_team_associations.rb │ └── v202505 │ │ ├── adjustment_service │ │ ├── create_forecast_adjustments.rb │ │ ├── create_traffic_forecast_segments.rb │ │ ├── get_all_forecast_adjustments.rb │ │ ├── get_all_traffic_forecast_segments.rb │ │ ├── get_forecast_adjustments_for_traffic_forecast_segment.rb │ │ └── update_forecast_adjustments.rb │ │ ├── audience_segment_service │ │ ├── create_audience_segments.rb │ │ ├── get_all_audience_segments.rb │ │ ├── get_first_party_audience_segments.rb │ │ ├── populate_first_party_audience_segments.rb │ │ └── update_audience_segments.rb │ │ ├── cdn_configuration_service │ │ ├── create_cdn_configurations.rb │ │ └── get_all_cdn_configurations.rb │ │ ├── cms_metadata_service │ │ ├── activate_cms_metadata_values.rb │ │ ├── get_all_cms_metadata_keys.rb │ │ ├── get_all_cms_metadata_values.rb │ │ └── get_cms_metadata_values_for_key.rb │ │ ├── common │ │ ├── error_handling.rb │ │ └── oauth2_jwt_handling.rb │ │ ├── company_service │ │ ├── create_companies.rb │ │ ├── get_advertisers.rb │ │ ├── get_all_companies.rb │ │ └── update_companies.rb │ │ ├── contact_service │ │ ├── create_contacts.rb │ │ ├── get_all_contacts.rb │ │ ├── get_uninvited_contacts.rb │ │ └── update_contacts.rb │ │ ├── content_service │ │ ├── get_all_content.rb │ │ └── get_recently_modified_content.rb │ │ ├── creative_service │ │ ├── copy_image_creatives.rb │ │ ├── create_creative_from_template.rb │ │ ├── create_creatives.rb │ │ ├── create_custom_creative.rb │ │ ├── create_native_creative.rb │ │ ├── create_video_creative.rb │ │ ├── get_all_creatives.rb │ │ ├── get_image_creatives.rb │ │ └── update_creatives.rb │ │ ├── creative_set_service │ │ ├── associate_creative_set_to_line_item.rb │ │ ├── create_creative_set.rb │ │ ├── get_all_creative_sets.rb │ │ ├── get_creative_sets_for_master_creative.rb │ │ └── update_creative_sets.rb │ │ ├── creative_template_service │ │ ├── get_all_creative_templates.rb │ │ └── get_system_defined_creative_templates.rb │ │ ├── creative_wrapper_service │ │ ├── create_creative_wrappers.rb │ │ ├── deactivate_creative_wrapper.rb │ │ ├── get_active_creative_wrappers.rb │ │ ├── get_all_creative_wrappers.rb │ │ └── update_creative_wrappers.rb │ │ ├── custom_field_service │ │ ├── create_custom_field_options.rb │ │ ├── create_custom_fields.rb │ │ ├── deactivate_all_line_item_custom_fields.rb │ │ ├── deactivate_custom_field.rb │ │ ├── get_all_custom_fields.rb │ │ ├── get_custom_fields_for_line_items.rb │ │ ├── set_line_item_custom_field_value.rb │ │ └── update_custom_fields.rb │ │ ├── custom_targeting_service │ │ ├── create_custom_targeting_keys_and_values.rb │ │ ├── delete_custom_targeting_keys.rb │ │ ├── delete_custom_targeting_values.rb │ │ ├── get_all_custom_targeting_keys_and_values.rb │ │ ├── get_predefined_custom_targeting_keys_and_values.rb │ │ ├── update_custom_targeting_keys.rb │ │ └── update_custom_targeting_values.rb │ │ ├── forecast_service │ │ ├── get_availability_forecast.rb │ │ ├── get_availability_forecast_for_line_item.rb │ │ ├── get_delivery_forecast_for_line_items.rb │ │ └── get_traffic_data.rb │ │ ├── inventory_service │ │ ├── archive_ad_units.rb │ │ ├── create_ad_units.rb │ │ ├── deactivate_ad_units.rb │ │ ├── get_ad_unit_hierarchy.rb │ │ ├── get_all_ad_unit_sizes.rb │ │ ├── get_all_ad_units.rb │ │ ├── get_top_level_ad_units.rb │ │ └── update_ad_units.rb │ │ ├── label_service │ │ ├── create_labels.rb │ │ ├── deactivate_labels.rb │ │ ├── get_active_labels.rb │ │ ├── get_all_labels.rb │ │ └── update_labels.rb │ │ ├── line_item_creative_association_service │ │ ├── create_licas.rb │ │ ├── deactivate_licas.rb │ │ ├── get_all_licas.rb │ │ ├── get_licas_for_line_item.rb │ │ └── update_licas.rb │ │ ├── line_item_service │ │ ├── activate_line_items.rb │ │ ├── create_line_items.rb │ │ ├── create_video_line_item.rb │ │ ├── get_all_line_items.rb │ │ ├── get_line_items_that_need_creatives.rb │ │ ├── get_recently_updated_line_items.rb │ │ ├── pause_line_item.rb │ │ ├── target_custom_criteria.rb │ │ └── update_line_items.rb │ │ ├── native_style_service │ │ ├── create_native_styles.rb │ │ └── get_all_native_styles.rb │ │ ├── network_service │ │ ├── get_all_networks.rb │ │ ├── get_current_network.rb │ │ ├── get_default_third_party_data_declaration.rb │ │ └── make_test_network.rb │ │ ├── order_service │ │ ├── approve_orders.rb │ │ ├── create_orders.rb │ │ ├── get_all_orders.rb │ │ ├── get_orders_starting_soon.rb │ │ └── update_orders.rb │ │ ├── placement_service │ │ ├── create_placements.rb │ │ ├── deactivate_placements.rb │ │ ├── get_active_placements.rb │ │ ├── get_all_placements.rb │ │ └── update_placements.rb │ │ ├── proposal_line_item_service │ │ ├── archive_proposal_line_item.rb │ │ ├── create_proposal_line_item.rb │ │ ├── get_all_proposal_line_items.rb │ │ ├── get_proposal_line_items_for_proposal.rb │ │ └── update_proposal_line_item.rb │ │ ├── proposal_service │ │ ├── create_proposal.rb │ │ ├── get_all_proposals.rb │ │ ├── get_marketplace_comments.rb │ │ ├── get_proposals_awaiting_seller_review.rb │ │ ├── request_buyer_acceptance.rb │ │ └── update_proposal.rb │ │ ├── publisher_query_language_service │ │ ├── fetch_match_tables.rb │ │ ├── get_all_browsers.rb │ │ ├── get_all_line_items.rb │ │ ├── get_all_programmatic_buyers.rb │ │ ├── get_geo_targets.rb │ │ ├── get_line_items_named_like.rb │ │ ├── get_mcm_earnings.rb │ │ └── get_recent_changes.rb │ │ ├── report_service │ │ ├── display_report.rb │ │ ├── download_report.rb │ │ ├── run_delivery_report.rb │ │ ├── run_inventory_report.rb │ │ ├── run_reach_report.rb │ │ ├── run_reach_report_with_ad_unit_dimensions.rb │ │ ├── run_report_with_custom_fields.rb │ │ ├── run_sales_report.rb │ │ └── run_saved_query.rb │ │ ├── site_service │ │ ├── create_sites.rb │ │ ├── get_all_sites.rb │ │ ├── get_sites_requiring_approval.rb │ │ └── submit_sites_for_approval.rb │ │ ├── suggested_ad_unit_service │ │ ├── approve_all_suggested_ad_units.rb │ │ ├── get_all_suggested_ad_units.rb │ │ └── get_highly_requested_suggested_ad_units.rb │ │ ├── targeting_preset_service │ │ └── get_all_targeting_presets.rb │ │ ├── team_service │ │ ├── create_teams.rb │ │ ├── get_all_teams.rb │ │ └── update_teams.rb │ │ ├── user_service │ │ ├── create_users.rb │ │ ├── deactivate_users.rb │ │ ├── get_all_roles.rb │ │ ├── get_all_users.rb │ │ ├── get_current_user.rb │ │ ├── get_user_by_email_address.rb │ │ └── update_users.rb │ │ └── user_team_association_service │ │ ├── create_user_team_associations.rb │ │ ├── delete_user_team_associations.rb │ │ ├── get_all_user_team_associations.rb │ │ ├── get_user_team_associations_for_user.rb │ │ └── update_user_team_associations.rb ├── google-dfp-api.gemspec ├── lib │ ├── ad_manager_api.rb │ └── ad_manager_api │ │ ├── ad_manager_api_datetime.rb │ │ ├── ad_manager_api_statement.rb │ │ ├── api_config.rb │ │ ├── credential_handler.rb │ │ ├── errors.rb │ │ ├── pql_statement_utils.rb │ │ ├── utils.rb │ │ ├── utils_reporter.rb │ │ ├── v202408 │ │ ├── ad_rule_service.rb │ │ ├── ad_rule_service_registry.rb │ │ ├── adjustment_service.rb │ │ ├── adjustment_service_registry.rb │ │ ├── ads_txt_service.rb │ │ ├── ads_txt_service_registry.rb │ │ ├── audience_segment_service.rb │ │ ├── audience_segment_service_registry.rb │ │ ├── cdn_configuration_service.rb │ │ ├── cdn_configuration_service_registry.rb │ │ ├── cms_metadata_service.rb │ │ ├── cms_metadata_service_registry.rb │ │ ├── company_service.rb │ │ ├── company_service_registry.rb │ │ ├── contact_service.rb │ │ ├── contact_service_registry.rb │ │ ├── content_bundle_service.rb │ │ ├── content_bundle_service_registry.rb │ │ ├── content_service.rb │ │ ├── content_service_registry.rb │ │ ├── creative_service.rb │ │ ├── creative_service_registry.rb │ │ ├── creative_set_service.rb │ │ ├── creative_set_service_registry.rb │ │ ├── creative_template_service.rb │ │ ├── creative_template_service_registry.rb │ │ ├── creative_wrapper_service.rb │ │ ├── creative_wrapper_service_registry.rb │ │ ├── custom_field_service.rb │ │ ├── custom_field_service_registry.rb │ │ ├── custom_targeting_service.rb │ │ ├── custom_targeting_service_registry.rb │ │ ├── dai_authentication_key_service.rb │ │ ├── dai_authentication_key_service_registry.rb │ │ ├── dai_encoding_profile_service.rb │ │ ├── dai_encoding_profile_service_registry.rb │ │ ├── forecast_service.rb │ │ ├── forecast_service_registry.rb │ │ ├── inventory_service.rb │ │ ├── inventory_service_registry.rb │ │ ├── label_service.rb │ │ ├── label_service_registry.rb │ │ ├── line_item_creative_association_service.rb │ │ ├── line_item_creative_association_service_registry.rb │ │ ├── line_item_service.rb │ │ ├── line_item_service_registry.rb │ │ ├── line_item_template_service.rb │ │ ├── line_item_template_service_registry.rb │ │ ├── live_stream_event_service.rb │ │ ├── live_stream_event_service_registry.rb │ │ ├── mobile_application_service.rb │ │ ├── mobile_application_service_registry.rb │ │ ├── native_style_service.rb │ │ ├── native_style_service_registry.rb │ │ ├── network_service.rb │ │ ├── network_service_registry.rb │ │ ├── order_service.rb │ │ ├── order_service_registry.rb │ │ ├── placement_service.rb │ │ ├── placement_service_registry.rb │ │ ├── proposal_line_item_service.rb │ │ ├── proposal_line_item_service_registry.rb │ │ ├── proposal_service.rb │ │ ├── proposal_service_registry.rb │ │ ├── publisher_query_language_service.rb │ │ ├── publisher_query_language_service_registry.rb │ │ ├── report_service.rb │ │ ├── report_service_registry.rb │ │ ├── segment_population_service.rb │ │ ├── segment_population_service_registry.rb │ │ ├── site_service.rb │ │ ├── site_service_registry.rb │ │ ├── stream_activity_monitor_service.rb │ │ ├── stream_activity_monitor_service_registry.rb │ │ ├── suggested_ad_unit_service.rb │ │ ├── suggested_ad_unit_service_registry.rb │ │ ├── targeting_preset_service.rb │ │ ├── targeting_preset_service_registry.rb │ │ ├── team_service.rb │ │ ├── team_service_registry.rb │ │ ├── user_service.rb │ │ ├── user_service_registry.rb │ │ ├── user_team_association_service.rb │ │ ├── user_team_association_service_registry.rb │ │ ├── yield_group_service.rb │ │ └── yield_group_service_registry.rb │ │ ├── v202411 │ │ ├── ad_rule_service.rb │ │ ├── ad_rule_service_registry.rb │ │ ├── adjustment_service.rb │ │ ├── adjustment_service_registry.rb │ │ ├── ads_txt_service.rb │ │ ├── ads_txt_service_registry.rb │ │ ├── audience_segment_service.rb │ │ ├── audience_segment_service_registry.rb │ │ ├── cdn_configuration_service.rb │ │ ├── cdn_configuration_service_registry.rb │ │ ├── cms_metadata_service.rb │ │ ├── cms_metadata_service_registry.rb │ │ ├── company_service.rb │ │ ├── company_service_registry.rb │ │ ├── contact_service.rb │ │ ├── contact_service_registry.rb │ │ ├── content_bundle_service.rb │ │ ├── content_bundle_service_registry.rb │ │ ├── content_service.rb │ │ ├── content_service_registry.rb │ │ ├── creative_service.rb │ │ ├── creative_service_registry.rb │ │ ├── creative_set_service.rb │ │ ├── creative_set_service_registry.rb │ │ ├── creative_template_service.rb │ │ ├── creative_template_service_registry.rb │ │ ├── creative_wrapper_service.rb │ │ ├── creative_wrapper_service_registry.rb │ │ ├── custom_field_service.rb │ │ ├── custom_field_service_registry.rb │ │ ├── custom_targeting_service.rb │ │ ├── custom_targeting_service_registry.rb │ │ ├── dai_authentication_key_service.rb │ │ ├── dai_authentication_key_service_registry.rb │ │ ├── dai_encoding_profile_service.rb │ │ ├── dai_encoding_profile_service_registry.rb │ │ ├── forecast_service.rb │ │ ├── forecast_service_registry.rb │ │ ├── inventory_service.rb │ │ ├── inventory_service_registry.rb │ │ ├── label_service.rb │ │ ├── label_service_registry.rb │ │ ├── line_item_creative_association_service.rb │ │ ├── line_item_creative_association_service_registry.rb │ │ ├── line_item_service.rb │ │ ├── line_item_service_registry.rb │ │ ├── line_item_template_service.rb │ │ ├── line_item_template_service_registry.rb │ │ ├── live_stream_event_service.rb │ │ ├── live_stream_event_service_registry.rb │ │ ├── mobile_application_service.rb │ │ ├── mobile_application_service_registry.rb │ │ ├── native_style_service.rb │ │ ├── native_style_service_registry.rb │ │ ├── network_service.rb │ │ ├── network_service_registry.rb │ │ ├── order_service.rb │ │ ├── order_service_registry.rb │ │ ├── placement_service.rb │ │ ├── placement_service_registry.rb │ │ ├── proposal_line_item_service.rb │ │ ├── proposal_line_item_service_registry.rb │ │ ├── proposal_service.rb │ │ ├── proposal_service_registry.rb │ │ ├── publisher_query_language_service.rb │ │ ├── publisher_query_language_service_registry.rb │ │ ├── report_service.rb │ │ ├── report_service_registry.rb │ │ ├── segment_population_service.rb │ │ ├── segment_population_service_registry.rb │ │ ├── site_service.rb │ │ ├── site_service_registry.rb │ │ ├── stream_activity_monitor_service.rb │ │ ├── stream_activity_monitor_service_registry.rb │ │ ├── suggested_ad_unit_service.rb │ │ ├── suggested_ad_unit_service_registry.rb │ │ ├── targeting_preset_service.rb │ │ ├── targeting_preset_service_registry.rb │ │ ├── team_service.rb │ │ ├── team_service_registry.rb │ │ ├── user_service.rb │ │ ├── user_service_registry.rb │ │ ├── user_team_association_service.rb │ │ ├── user_team_association_service_registry.rb │ │ ├── yield_group_service.rb │ │ └── yield_group_service_registry.rb │ │ ├── v202502 │ │ ├── ad_rule_service.rb │ │ ├── ad_rule_service_registry.rb │ │ ├── adjustment_service.rb │ │ ├── adjustment_service_registry.rb │ │ ├── ads_txt_service.rb │ │ ├── ads_txt_service_registry.rb │ │ ├── audience_segment_service.rb │ │ ├── audience_segment_service_registry.rb │ │ ├── cdn_configuration_service.rb │ │ ├── cdn_configuration_service_registry.rb │ │ ├── cms_metadata_service.rb │ │ ├── cms_metadata_service_registry.rb │ │ ├── company_service.rb │ │ ├── company_service_registry.rb │ │ ├── contact_service.rb │ │ ├── contact_service_registry.rb │ │ ├── content_bundle_service.rb │ │ ├── content_bundle_service_registry.rb │ │ ├── content_service.rb │ │ ├── content_service_registry.rb │ │ ├── creative_service.rb │ │ ├── creative_service_registry.rb │ │ ├── creative_set_service.rb │ │ ├── creative_set_service_registry.rb │ │ ├── creative_template_service.rb │ │ ├── creative_template_service_registry.rb │ │ ├── creative_wrapper_service.rb │ │ ├── creative_wrapper_service_registry.rb │ │ ├── custom_field_service.rb │ │ ├── custom_field_service_registry.rb │ │ ├── custom_targeting_service.rb │ │ ├── custom_targeting_service_registry.rb │ │ ├── dai_authentication_key_service.rb │ │ ├── dai_authentication_key_service_registry.rb │ │ ├── dai_encoding_profile_service.rb │ │ ├── dai_encoding_profile_service_registry.rb │ │ ├── forecast_service.rb │ │ ├── forecast_service_registry.rb │ │ ├── inventory_service.rb │ │ ├── inventory_service_registry.rb │ │ ├── label_service.rb │ │ ├── label_service_registry.rb │ │ ├── line_item_creative_association_service.rb │ │ ├── line_item_creative_association_service_registry.rb │ │ ├── line_item_service.rb │ │ ├── line_item_service_registry.rb │ │ ├── line_item_template_service.rb │ │ ├── line_item_template_service_registry.rb │ │ ├── live_stream_event_service.rb │ │ ├── live_stream_event_service_registry.rb │ │ ├── mobile_application_service.rb │ │ ├── mobile_application_service_registry.rb │ │ ├── native_style_service.rb │ │ ├── native_style_service_registry.rb │ │ ├── network_service.rb │ │ ├── network_service_registry.rb │ │ ├── order_service.rb │ │ ├── order_service_registry.rb │ │ ├── placement_service.rb │ │ ├── placement_service_registry.rb │ │ ├── proposal_line_item_service.rb │ │ ├── proposal_line_item_service_registry.rb │ │ ├── proposal_service.rb │ │ ├── proposal_service_registry.rb │ │ ├── publisher_query_language_service.rb │ │ ├── publisher_query_language_service_registry.rb │ │ ├── report_service.rb │ │ ├── report_service_registry.rb │ │ ├── segment_population_service.rb │ │ ├── segment_population_service_registry.rb │ │ ├── site_service.rb │ │ ├── site_service_registry.rb │ │ ├── stream_activity_monitor_service.rb │ │ ├── stream_activity_monitor_service_registry.rb │ │ ├── suggested_ad_unit_service.rb │ │ ├── suggested_ad_unit_service_registry.rb │ │ ├── targeting_preset_service.rb │ │ ├── targeting_preset_service_registry.rb │ │ ├── team_service.rb │ │ ├── team_service_registry.rb │ │ ├── user_service.rb │ │ ├── user_service_registry.rb │ │ ├── user_team_association_service.rb │ │ ├── user_team_association_service_registry.rb │ │ ├── yield_group_service.rb │ │ └── yield_group_service_registry.rb │ │ ├── v202505 │ │ ├── ad_rule_service.rb │ │ ├── ad_rule_service_registry.rb │ │ ├── adjustment_service.rb │ │ ├── adjustment_service_registry.rb │ │ ├── ads_txt_service.rb │ │ ├── ads_txt_service_registry.rb │ │ ├── audience_segment_service.rb │ │ ├── audience_segment_service_registry.rb │ │ ├── cdn_configuration_service.rb │ │ ├── cdn_configuration_service_registry.rb │ │ ├── cms_metadata_service.rb │ │ ├── cms_metadata_service_registry.rb │ │ ├── company_service.rb │ │ ├── company_service_registry.rb │ │ ├── contact_service.rb │ │ ├── contact_service_registry.rb │ │ ├── content_bundle_service.rb │ │ ├── content_bundle_service_registry.rb │ │ ├── content_service.rb │ │ ├── content_service_registry.rb │ │ ├── creative_service.rb │ │ ├── creative_service_registry.rb │ │ ├── creative_set_service.rb │ │ ├── creative_set_service_registry.rb │ │ ├── creative_template_service.rb │ │ ├── creative_template_service_registry.rb │ │ ├── creative_wrapper_service.rb │ │ ├── creative_wrapper_service_registry.rb │ │ ├── custom_field_service.rb │ │ ├── custom_field_service_registry.rb │ │ ├── custom_targeting_service.rb │ │ ├── custom_targeting_service_registry.rb │ │ ├── dai_authentication_key_service.rb │ │ ├── dai_authentication_key_service_registry.rb │ │ ├── dai_encoding_profile_service.rb │ │ ├── dai_encoding_profile_service_registry.rb │ │ ├── forecast_service.rb │ │ ├── forecast_service_registry.rb │ │ ├── inventory_service.rb │ │ ├── inventory_service_registry.rb │ │ ├── label_service.rb │ │ ├── label_service_registry.rb │ │ ├── line_item_creative_association_service.rb │ │ ├── line_item_creative_association_service_registry.rb │ │ ├── line_item_service.rb │ │ ├── line_item_service_registry.rb │ │ ├── line_item_template_service.rb │ │ ├── line_item_template_service_registry.rb │ │ ├── live_stream_event_service.rb │ │ ├── live_stream_event_service_registry.rb │ │ ├── mobile_application_service.rb │ │ ├── mobile_application_service_registry.rb │ │ ├── native_style_service.rb │ │ ├── native_style_service_registry.rb │ │ ├── network_service.rb │ │ ├── network_service_registry.rb │ │ ├── order_service.rb │ │ ├── order_service_registry.rb │ │ ├── placement_service.rb │ │ ├── placement_service_registry.rb │ │ ├── proposal_line_item_service.rb │ │ ├── proposal_line_item_service_registry.rb │ │ ├── proposal_service.rb │ │ ├── proposal_service_registry.rb │ │ ├── publisher_query_language_service.rb │ │ ├── publisher_query_language_service_registry.rb │ │ ├── report_service.rb │ │ ├── report_service_registry.rb │ │ ├── segment_population_service.rb │ │ ├── segment_population_service_registry.rb │ │ ├── site_service.rb │ │ ├── site_service_registry.rb │ │ ├── stream_activity_monitor_service.rb │ │ ├── stream_activity_monitor_service_registry.rb │ │ ├── suggested_ad_unit_service.rb │ │ ├── suggested_ad_unit_service_registry.rb │ │ ├── targeting_preset_service.rb │ │ ├── targeting_preset_service_registry.rb │ │ ├── team_service.rb │ │ ├── team_service_registry.rb │ │ ├── user_service.rb │ │ ├── user_service_registry.rb │ │ ├── user_team_association_service.rb │ │ ├── user_team_association_service_registry.rb │ │ ├── yield_group_service.rb │ │ └── yield_group_service_registry.rb │ │ └── version.rb └── test │ ├── ad_manager_api │ ├── test_ad_manager_api.rb │ ├── test_ad_manager_datetime.rb │ ├── test_ad_manager_statement.rb │ ├── test_ad_manager_utils.rb │ ├── test_config.yml │ └── test_credential_handler.rb │ ├── bugs │ ├── test_issue_00000007.rb │ └── test_issue_00000081.rb │ └── suite_unittests.rb ├── ads_common ├── ChangeLog ├── README.md ├── Rakefile ├── google-ads-common.gemspec ├── lib │ └── ads_common │ │ ├── api.rb │ │ ├── api_config.rb │ │ ├── auth │ │ ├── base_handler.rb │ │ ├── oauth2_handler.rb │ │ └── oauth2_service_account_handler.rb │ │ ├── build │ │ ├── savon_abstract_generator.rb │ │ ├── savon_generator.rb │ │ ├── savon_registry.rb │ │ ├── savon_registry_generator.rb │ │ └── savon_service_generator.rb │ │ ├── config.rb │ │ ├── credential_handler.rb │ │ ├── env_check.rb │ │ ├── errors.rb │ │ ├── http.rb │ │ ├── parameters_validator.rb │ │ ├── results_extractor.rb │ │ ├── savon_headers │ │ ├── base_header_handler.rb │ │ └── oauth_header_handler.rb │ │ ├── savon_service.rb │ │ ├── utils.rb │ │ └── version.rb └── test │ ├── coverage.rb │ ├── suite_unittests.rb │ ├── test_config.rb │ ├── test_config.yml │ ├── test_credential_handler.rb │ ├── test_env.rb │ ├── test_oauth2_handler.rb │ ├── test_oauth2_service_account_handler.rb │ ├── test_parameters_validator.rb │ ├── test_results_extractor.rb │ ├── test_savon_service.rb │ └── test_utils.rb └── ads_savon ├── CONTRIBUTING ├── ChangeLog ├── LICENSE ├── README.md ├── Rakefile ├── google-ads-savon.gemspec └── lib ├── ads_savon.rb └── ads_savon ├── client.rb ├── config.rb ├── core_ext └── string.rb ├── error.rb ├── hooks ├── group.rb └── hook.rb ├── http └── error.rb ├── log_message.rb ├── logger.rb ├── model.rb ├── null_logger.rb ├── soap.rb ├── soap ├── fault.rb ├── invalid_response_error.rb ├── request.rb ├── request_builder.rb ├── response.rb └── xml.rb └── version.rb /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributor License Agreements 2 | 3 | We'd love to accept your code patches! However, before we can take them, we 4 | have to clear a couple of legal hurdles. 5 | 6 | - Please fill out either the individual or corporate Contributor License 7 | Agreement. 8 | - If you are an individual writing original source code and are sure you 9 | own the intellectual property, then you'll need to sign an individual CLA 10 | available at https://developers.google.com/open-source/cla/individual. 11 | - If you work for a company that wants to allow you to contribute your work 12 | to this client library, then you'll need to sign a corporate CLA available 13 | at https://developers.google.com/open-source/cla/corporate. 14 | 15 | Follow either of the two links above to access the appropriate CLA and 16 | instructions on how to sign and return it. Once we receive the CLA, we'll 17 | add you to the official list of contributors and will be able to accept 18 | your patches. 19 | 20 | # Submitting Patches 21 | 22 | - Sign a Contributor License Agreement (see above). 23 | - Join the appropriate product discussion forum. 24 | - Ad Manager API: https://developers.google.com/ad-manager/community 25 | - Create an issue on the library issue tracker if there isn't one already. 26 | Use this issue to co-ordinate the changes with the library maintainer. 27 | - Fork the library, make the changes and send a 28 | [pull request](https://help.github.com/articles/using-pull-requests). 29 | - The library maintainer will work with you to review and apply the patch. 30 | 31 | # If you can't become a contributor 32 | 33 | If you can't become a contributor, but wish to share some code that illustrates 34 | an issue / shows how an issue may be fixed, then you can attach your changes on 35 | the issue tracker. We will use this code to troubleshoot the issue and fix it, 36 | but will not use this code in the library unless the steps to submit patches 37 | are done. 38 | -------------------------------------------------------------------------------- /ad_manager_api/examples/v202411/user_service/get_current_user.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # Encoding: utf-8 3 | # 4 | # Copyright:: Copyright 2011, Google Inc. All Rights Reserved. 5 | # 6 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 15 | # implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | # This example gets the current user. 20 | 21 | require 'ad_manager_api' 22 | 23 | def get_current_user(ad_manager) 24 | # Get the UserService. 25 | user_service = ad_manager.service(:UserService, API_VERSION) 26 | 27 | # Get the current user. 28 | user = user_service.get_current_user() 29 | 30 | puts 'Current user has ID %d, email "%s", and role "%s".' % 31 | [user[:id], user[:email], user[:role_name]] 32 | end 33 | 34 | if __FILE__ == $0 35 | API_VERSION = :v202411 36 | 37 | # Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml. 38 | ad_manager = AdManagerApi::Api.new 39 | 40 | # To enable logging of SOAP requests, set the log_level value to 'DEBUG' in 41 | # the configuration file or provide your own logger: 42 | # ad_manager.logger = Logger.new('ad_manager_xml.log') 43 | 44 | begin 45 | get_current_user(ad_manager) 46 | 47 | # HTTP errors. 48 | rescue AdsCommon::Errors::HttpError => e 49 | puts "HTTP Error: %s" % e 50 | 51 | # API errors. 52 | rescue AdManagerApi::Errors::ApiException => e 53 | puts "Message: %s" % e.message 54 | puts 'Errors:' 55 | e.errors.each_with_index do |error, index| 56 | puts "\tError [%d]:" % (index + 1) 57 | error.each do |field, value| 58 | puts "\t\t%s: %s" % [field, value] 59 | end 60 | end 61 | end 62 | end 63 | -------------------------------------------------------------------------------- /ad_manager_api/examples/v202502/user_service/get_current_user.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # Encoding: utf-8 3 | # 4 | # Copyright:: Copyright 2011, Google Inc. All Rights Reserved. 5 | # 6 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 15 | # implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | # This example gets the current user. 20 | 21 | require 'ad_manager_api' 22 | 23 | def get_current_user(ad_manager) 24 | # Get the UserService. 25 | user_service = ad_manager.service(:UserService, API_VERSION) 26 | 27 | # Get the current user. 28 | user = user_service.get_current_user() 29 | 30 | puts 'Current user has ID %d, email "%s", and role "%s".' % 31 | [user[:id], user[:email], user[:role_name]] 32 | end 33 | 34 | if __FILE__ == $0 35 | API_VERSION = :v202502 36 | 37 | # Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml. 38 | ad_manager = AdManagerApi::Api.new 39 | 40 | # To enable logging of SOAP requests, set the log_level value to 'DEBUG' in 41 | # the configuration file or provide your own logger: 42 | # ad_manager.logger = Logger.new('ad_manager_xml.log') 43 | 44 | begin 45 | get_current_user(ad_manager) 46 | 47 | # HTTP errors. 48 | rescue AdsCommon::Errors::HttpError => e 49 | puts "HTTP Error: %s" % e 50 | 51 | # API errors. 52 | rescue AdManagerApi::Errors::ApiException => e 53 | puts "Message: %s" % e.message 54 | puts 'Errors:' 55 | e.errors.each_with_index do |error, index| 56 | puts "\tError [%d]:" % (index + 1) 57 | error.each do |field, value| 58 | puts "\t\t%s: %s" % [field, value] 59 | end 60 | end 61 | end 62 | end 63 | -------------------------------------------------------------------------------- /ad_manager_api/examples/v202505/user_service/get_current_user.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # Encoding: utf-8 3 | # 4 | # Copyright:: Copyright 2011, Google Inc. All Rights Reserved. 5 | # 6 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 15 | # implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | # This example gets the current user. 20 | 21 | require 'ad_manager_api' 22 | 23 | def get_current_user(ad_manager) 24 | # Get the UserService. 25 | user_service = ad_manager.service(:UserService, API_VERSION) 26 | 27 | # Get the current user. 28 | user = user_service.get_current_user() 29 | 30 | puts 'Current user has ID %d, email "%s", and role "%s".' % 31 | [user[:id], user[:email], user[:role_name]] 32 | end 33 | 34 | if __FILE__ == $0 35 | API_VERSION = :v202505 36 | 37 | # Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml. 38 | ad_manager = AdManagerApi::Api.new 39 | 40 | # To enable logging of SOAP requests, set the log_level value to 'DEBUG' in 41 | # the configuration file or provide your own logger: 42 | # ad_manager.logger = Logger.new('ad_manager_xml.log') 43 | 44 | begin 45 | get_current_user(ad_manager) 46 | 47 | # HTTP errors. 48 | rescue AdsCommon::Errors::HttpError => e 49 | puts "HTTP Error: %s" % e 50 | 51 | # API errors. 52 | rescue AdManagerApi::Errors::ApiException => e 53 | puts "Message: %s" % e.message 54 | puts 'Errors:' 55 | e.errors.each_with_index do |error, index| 56 | puts "\tError [%d]:" % (index + 1) 57 | error.each do |field, value| 58 | puts "\t\t%s: %s" % [field, value] 59 | end 60 | end 61 | end 62 | end 63 | -------------------------------------------------------------------------------- /ad_manager_api/google-dfp-api.gemspec: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # Copyright:: Copyright 2012, Google Inc. All Rights Reserved. 4 | # 5 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 14 | # implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | lib = File.expand_path('../lib/', __FILE__) 19 | $:.unshift lib unless $:.include?(lib) 20 | 21 | require 'ad_manager_api/version' 22 | 23 | Gem::Specification.new do |s| 24 | s.name = 'google-dfp-api' 25 | s.version = AdManagerApi::ApiConfig::CLIENT_LIB_VERSION 26 | s.summary = 'Ruby Client libraries for Google Ad Manager API' 27 | s.description = "%s is a Google Ad Manager API client library for Ruby" % s.name 28 | s.homepage = 'https://github.com/googleads/google-api-ads-ruby' 29 | s.authors = ['Danial Klimkin', 'Nicholas Chen'] 30 | s.email = ['dfpapi-advisor@google.com'] 31 | s.license = 'Apache-2.0' 32 | s.platform = Gem::Platform::RUBY 33 | s.required_ruby_version = '>= 3.1' 34 | s.required_rubygems_version = '>= 1.3.6' 35 | s.require_path = 'lib' 36 | s.files = Dir.glob('lib/**/*') + 37 | %w(README.md ChangeLog ad_manager_api.yml) 38 | s.add_dependency('google-ads-common', '~> 3.0') 39 | s.add_dependency('tzinfo', '>= 1.0', '< 3.0') 40 | end 41 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/utils.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # Copyright:: Copyright 2017, Google Inc. All Rights Reserved. 4 | # 5 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 14 | # implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | # Misc Ad Manager utilities. 19 | 20 | require 'set' 21 | require 'thread' 22 | require 'singleton' 23 | 24 | 25 | module AdManagerApi 26 | module Utils 27 | # Class to keep a list of unique utilities used in order to perform tracking 28 | # of client library features. 29 | class UtilityRegistry 30 | include Singleton 31 | attr_accessor :enabled 32 | 33 | def initialize 34 | @enabled = true 35 | @registry = Set.new 36 | @lock = Mutex.new 37 | end 38 | 39 | def extract! 40 | @lock.synchronize do 41 | registry = @registry.dup 42 | @registry.clear 43 | return registry 44 | end 45 | end 46 | 47 | def length 48 | @lock.synchronize { @registry.length } 49 | end 50 | 51 | def add(util) 52 | @lock.synchronize { @registry.add(util) if @enabled } 53 | end 54 | end 55 | end 56 | end 57 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/utils_reporter.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # Copyright:: Copyright 2017, Google Inc. All Rights Reserved. 4 | # 5 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 14 | # implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | # Contains methods to help configure the user agent string to report on utility 19 | # usage. 20 | 21 | require 'ad_manager_api/credential_handler' 22 | 23 | module AdManagerApi 24 | class UtilsReporter 25 | # Default constructor. 26 | # 27 | # Args: 28 | # - credential_handler: The CredentialHandler being used by the current 29 | # AdManagerApi instance. 30 | def initialize(credential_handler) 31 | @credential_handler = credential_handler 32 | end 33 | 34 | # A callback method for StatementBuilder to indicate that it has been 35 | # used, and that its usage should be recorded in the next user agent string. 36 | def statement_builder_used() 37 | @credential_handler.include_in_user_agent("StatementBuilder") 38 | end 39 | 40 | # A callback method for AdManagerDate to indicate that it has been 41 | # used, and that its usage should be recorded in the next user agent string. 42 | def ad_manager_date_used() 43 | @credential_handler.include_in_user_agent("AdManagerDate") 44 | end 45 | 46 | # A callback method for AdManagerDateTime to indicate that it has been 47 | # used, and that its usage should be recorded in the next user agent string. 48 | def ad_manager_date_time_used() 49 | @credential_handler.include_in_user_agent("AdManagerDateTime") 50 | end 51 | end 52 | end 53 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/ads_txt_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:01. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/ads_txt_service_registry' 12 | 13 | module AdManagerApi; module V202408; module AdsTxtService 14 | class AdsTxtService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def get_mcm_supply_chain_diagnostics_download_url(*args, &block) 21 | return execute_action('get_mcm_supply_chain_diagnostics_download_url', args, &block) 22 | end 23 | 24 | def get_mcm_supply_chain_diagnostics_download_url_to_xml(*args) 25 | return get_soap_xml('get_mcm_supply_chain_diagnostics_download_url', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return AdsTxtServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202408::AdsTxtService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/audience_segment_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:01. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/audience_segment_service_registry' 12 | 13 | module AdManagerApi; module V202408; module AudienceSegmentService 14 | class AudienceSegmentService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def create_audience_segments(*args, &block) 21 | return execute_action('create_audience_segments', args, &block) 22 | end 23 | 24 | def create_audience_segments_to_xml(*args) 25 | return get_soap_xml('create_audience_segments', args) 26 | end 27 | 28 | def get_audience_segments_by_statement(*args, &block) 29 | return execute_action('get_audience_segments_by_statement', args, &block) 30 | end 31 | 32 | def get_audience_segments_by_statement_to_xml(*args) 33 | return get_soap_xml('get_audience_segments_by_statement', args) 34 | end 35 | 36 | def perform_audience_segment_action(*args, &block) 37 | return execute_action('perform_audience_segment_action', args, &block) 38 | end 39 | 40 | def perform_audience_segment_action_to_xml(*args) 41 | return get_soap_xml('perform_audience_segment_action', args) 42 | end 43 | 44 | def update_audience_segments(*args, &block) 45 | return execute_action('update_audience_segments', args, &block) 46 | end 47 | 48 | def update_audience_segments_to_xml(*args) 49 | return get_soap_xml('update_audience_segments', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return AudienceSegmentServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202408::AudienceSegmentService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/company_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:03. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/company_service_registry' 12 | 13 | module AdManagerApi; module V202408; module CompanyService 14 | class CompanyService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def create_companies(*args, &block) 21 | return execute_action('create_companies', args, &block) 22 | end 23 | 24 | def create_companies_to_xml(*args) 25 | return get_soap_xml('create_companies', args) 26 | end 27 | 28 | def get_companies_by_statement(*args, &block) 29 | return execute_action('get_companies_by_statement', args, &block) 30 | end 31 | 32 | def get_companies_by_statement_to_xml(*args) 33 | return get_soap_xml('get_companies_by_statement', args) 34 | end 35 | 36 | def perform_company_action(*args, &block) 37 | return execute_action('perform_company_action', args, &block) 38 | end 39 | 40 | def perform_company_action_to_xml(*args) 41 | return get_soap_xml('perform_company_action', args) 42 | end 43 | 44 | def update_companies(*args, &block) 45 | return execute_action('update_companies', args, &block) 46 | end 47 | 48 | def update_companies_to_xml(*args) 49 | return get_soap_xml('update_companies', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return CompanyServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202408::CompanyService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/contact_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:06. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/contact_service_registry' 12 | 13 | module AdManagerApi; module V202408; module ContactService 14 | class ContactService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def create_contacts(*args, &block) 21 | return execute_action('create_contacts', args, &block) 22 | end 23 | 24 | def create_contacts_to_xml(*args) 25 | return get_soap_xml('create_contacts', args) 26 | end 27 | 28 | def get_contacts_by_statement(*args, &block) 29 | return execute_action('get_contacts_by_statement', args, &block) 30 | end 31 | 32 | def get_contacts_by_statement_to_xml(*args) 33 | return get_soap_xml('get_contacts_by_statement', args) 34 | end 35 | 36 | def update_contacts(*args, &block) 37 | return execute_action('update_contacts', args, &block) 38 | end 39 | 40 | def update_contacts_to_xml(*args) 41 | return get_soap_xml('update_contacts', args) 42 | end 43 | 44 | private 45 | 46 | def get_service_registry() 47 | return ContactServiceRegistry 48 | end 49 | 50 | def get_module() 51 | return AdManagerApi::V202408::ContactService 52 | end 53 | end 54 | end; end; end 55 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/content_bundle_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:07. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/content_bundle_service_registry' 12 | 13 | module AdManagerApi; module V202408; module ContentBundleService 14 | class ContentBundleService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def create_content_bundles(*args, &block) 21 | return execute_action('create_content_bundles', args, &block) 22 | end 23 | 24 | def create_content_bundles_to_xml(*args) 25 | return get_soap_xml('create_content_bundles', args) 26 | end 27 | 28 | def get_content_bundles_by_statement(*args, &block) 29 | return execute_action('get_content_bundles_by_statement', args, &block) 30 | end 31 | 32 | def get_content_bundles_by_statement_to_xml(*args) 33 | return get_soap_xml('get_content_bundles_by_statement', args) 34 | end 35 | 36 | def perform_content_bundle_action(*args, &block) 37 | return execute_action('perform_content_bundle_action', args, &block) 38 | end 39 | 40 | def perform_content_bundle_action_to_xml(*args) 41 | return get_soap_xml('perform_content_bundle_action', args) 42 | end 43 | 44 | def update_content_bundles(*args, &block) 45 | return execute_action('update_content_bundles', args, &block) 46 | end 47 | 48 | def update_content_bundles_to_xml(*args) 49 | return get_soap_xml('update_content_bundles', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return ContentBundleServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202408::ContentBundleService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/content_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:07. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/content_service_registry' 12 | 13 | module AdManagerApi; module V202408; module ContentService 14 | class ContentService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def get_content_by_statement(*args, &block) 21 | return execute_action('get_content_by_statement', args, &block) 22 | end 23 | 24 | def get_content_by_statement_to_xml(*args) 25 | return get_soap_xml('get_content_by_statement', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return ContentServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202408::ContentService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/creative_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:08. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/creative_service_registry' 12 | 13 | module AdManagerApi; module V202408; module CreativeService 14 | class CreativeService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def create_creatives(*args, &block) 21 | return execute_action('create_creatives', args, &block) 22 | end 23 | 24 | def create_creatives_to_xml(*args) 25 | return get_soap_xml('create_creatives', args) 26 | end 27 | 28 | def get_creatives_by_statement(*args, &block) 29 | return execute_action('get_creatives_by_statement', args, &block) 30 | end 31 | 32 | def get_creatives_by_statement_to_xml(*args) 33 | return get_soap_xml('get_creatives_by_statement', args) 34 | end 35 | 36 | def perform_creative_action(*args, &block) 37 | return execute_action('perform_creative_action', args, &block) 38 | end 39 | 40 | def perform_creative_action_to_xml(*args) 41 | return get_soap_xml('perform_creative_action', args) 42 | end 43 | 44 | def update_creatives(*args, &block) 45 | return execute_action('update_creatives', args, &block) 46 | end 47 | 48 | def update_creatives_to_xml(*args) 49 | return get_soap_xml('update_creatives', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return CreativeServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202408::CreativeService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/creative_set_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:11. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/creative_set_service_registry' 12 | 13 | module AdManagerApi; module V202408; module CreativeSetService 14 | class CreativeSetService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def create_creative_set(*args, &block) 21 | return execute_action('create_creative_set', args, &block) 22 | end 23 | 24 | def create_creative_set_to_xml(*args) 25 | return get_soap_xml('create_creative_set', args) 26 | end 27 | 28 | def get_creative_sets_by_statement(*args, &block) 29 | return execute_action('get_creative_sets_by_statement', args, &block) 30 | end 31 | 32 | def get_creative_sets_by_statement_to_xml(*args) 33 | return get_soap_xml('get_creative_sets_by_statement', args) 34 | end 35 | 36 | def update_creative_set(*args, &block) 37 | return execute_action('update_creative_set', args, &block) 38 | end 39 | 40 | def update_creative_set_to_xml(*args) 41 | return get_soap_xml('update_creative_set', args) 42 | end 43 | 44 | private 45 | 46 | def get_service_registry() 47 | return CreativeSetServiceRegistry 48 | end 49 | 50 | def get_module() 51 | return AdManagerApi::V202408::CreativeSetService 52 | end 53 | end 54 | end; end; end 55 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/creative_template_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:12. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/creative_template_service_registry' 12 | 13 | module AdManagerApi; module V202408; module CreativeTemplateService 14 | class CreativeTemplateService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def get_creative_templates_by_statement(*args, &block) 21 | return execute_action('get_creative_templates_by_statement', args, &block) 22 | end 23 | 24 | def get_creative_templates_by_statement_to_xml(*args) 25 | return get_soap_xml('get_creative_templates_by_statement', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return CreativeTemplateServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202408::CreativeTemplateService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/creative_wrapper_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:13. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/creative_wrapper_service_registry' 12 | 13 | module AdManagerApi; module V202408; module CreativeWrapperService 14 | class CreativeWrapperService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def create_creative_wrappers(*args, &block) 21 | return execute_action('create_creative_wrappers', args, &block) 22 | end 23 | 24 | def create_creative_wrappers_to_xml(*args) 25 | return get_soap_xml('create_creative_wrappers', args) 26 | end 27 | 28 | def get_creative_wrappers_by_statement(*args, &block) 29 | return execute_action('get_creative_wrappers_by_statement', args, &block) 30 | end 31 | 32 | def get_creative_wrappers_by_statement_to_xml(*args) 33 | return get_soap_xml('get_creative_wrappers_by_statement', args) 34 | end 35 | 36 | def perform_creative_wrapper_action(*args, &block) 37 | return execute_action('perform_creative_wrapper_action', args, &block) 38 | end 39 | 40 | def perform_creative_wrapper_action_to_xml(*args) 41 | return get_soap_xml('perform_creative_wrapper_action', args) 42 | end 43 | 44 | def update_creative_wrappers(*args, &block) 45 | return execute_action('update_creative_wrappers', args, &block) 46 | end 47 | 48 | def update_creative_wrappers_to_xml(*args) 49 | return get_soap_xml('update_creative_wrappers', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return CreativeWrapperServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202408::CreativeWrapperService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/label_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:25. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/label_service_registry' 12 | 13 | module AdManagerApi; module V202408; module LabelService 14 | class LabelService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def create_labels(*args, &block) 21 | return execute_action('create_labels', args, &block) 22 | end 23 | 24 | def create_labels_to_xml(*args) 25 | return get_soap_xml('create_labels', args) 26 | end 27 | 28 | def get_labels_by_statement(*args, &block) 29 | return execute_action('get_labels_by_statement', args, &block) 30 | end 31 | 32 | def get_labels_by_statement_to_xml(*args) 33 | return get_soap_xml('get_labels_by_statement', args) 34 | end 35 | 36 | def perform_label_action(*args, &block) 37 | return execute_action('perform_label_action', args, &block) 38 | end 39 | 40 | def perform_label_action_to_xml(*args) 41 | return get_soap_xml('perform_label_action', args) 42 | end 43 | 44 | def update_labels(*args, &block) 45 | return execute_action('update_labels', args, &block) 46 | end 47 | 48 | def update_labels_to_xml(*args) 49 | return get_soap_xml('update_labels', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return LabelServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202408::LabelService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/line_item_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:29. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/line_item_service_registry' 12 | 13 | module AdManagerApi; module V202408; module LineItemService 14 | class LineItemService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def create_line_items(*args, &block) 21 | return execute_action('create_line_items', args, &block) 22 | end 23 | 24 | def create_line_items_to_xml(*args) 25 | return get_soap_xml('create_line_items', args) 26 | end 27 | 28 | def get_line_items_by_statement(*args, &block) 29 | return execute_action('get_line_items_by_statement', args, &block) 30 | end 31 | 32 | def get_line_items_by_statement_to_xml(*args) 33 | return get_soap_xml('get_line_items_by_statement', args) 34 | end 35 | 36 | def perform_line_item_action(*args, &block) 37 | return execute_action('perform_line_item_action', args, &block) 38 | end 39 | 40 | def perform_line_item_action_to_xml(*args) 41 | return get_soap_xml('perform_line_item_action', args) 42 | end 43 | 44 | def update_line_items(*args, &block) 45 | return execute_action('update_line_items', args, &block) 46 | end 47 | 48 | def update_line_items_to_xml(*args) 49 | return get_soap_xml('update_line_items', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return LineItemServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202408::LineItemService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/line_item_template_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:32. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/line_item_template_service_registry' 12 | 13 | module AdManagerApi; module V202408; module LineItemTemplateService 14 | class LineItemTemplateService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def get_line_item_templates_by_statement(*args, &block) 21 | return execute_action('get_line_item_templates_by_statement', args, &block) 22 | end 23 | 24 | def get_line_item_templates_by_statement_to_xml(*args) 25 | return get_soap_xml('get_line_item_templates_by_statement', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return LineItemTemplateServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202408::LineItemTemplateService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/native_style_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:36. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/native_style_service_registry' 12 | 13 | module AdManagerApi; module V202408; module NativeStyleService 14 | class NativeStyleService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def create_native_styles(*args, &block) 21 | return execute_action('create_native_styles', args, &block) 22 | end 23 | 24 | def create_native_styles_to_xml(*args) 25 | return get_soap_xml('create_native_styles', args) 26 | end 27 | 28 | def get_native_styles_by_statement(*args, &block) 29 | return execute_action('get_native_styles_by_statement', args, &block) 30 | end 31 | 32 | def get_native_styles_by_statement_to_xml(*args) 33 | return get_soap_xml('get_native_styles_by_statement', args) 34 | end 35 | 36 | def perform_native_style_action(*args, &block) 37 | return execute_action('perform_native_style_action', args, &block) 38 | end 39 | 40 | def perform_native_style_action_to_xml(*args) 41 | return get_soap_xml('perform_native_style_action', args) 42 | end 43 | 44 | def update_native_styles(*args, &block) 45 | return execute_action('update_native_styles', args, &block) 46 | end 47 | 48 | def update_native_styles_to_xml(*args) 49 | return get_soap_xml('update_native_styles', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return NativeStyleServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202408::NativeStyleService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/order_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:39. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/order_service_registry' 12 | 13 | module AdManagerApi; module V202408; module OrderService 14 | class OrderService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def create_orders(*args, &block) 21 | return execute_action('create_orders', args, &block) 22 | end 23 | 24 | def create_orders_to_xml(*args) 25 | return get_soap_xml('create_orders', args) 26 | end 27 | 28 | def get_orders_by_statement(*args, &block) 29 | return execute_action('get_orders_by_statement', args, &block) 30 | end 31 | 32 | def get_orders_by_statement_to_xml(*args) 33 | return get_soap_xml('get_orders_by_statement', args) 34 | end 35 | 36 | def perform_order_action(*args, &block) 37 | return execute_action('perform_order_action', args, &block) 38 | end 39 | 40 | def perform_order_action_to_xml(*args) 41 | return get_soap_xml('perform_order_action', args) 42 | end 43 | 44 | def update_orders(*args, &block) 45 | return execute_action('update_orders', args, &block) 46 | end 47 | 48 | def update_orders_to_xml(*args) 49 | return get_soap_xml('update_orders', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return OrderServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202408::OrderService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/placement_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:41. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/placement_service_registry' 12 | 13 | module AdManagerApi; module V202408; module PlacementService 14 | class PlacementService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def create_placements(*args, &block) 21 | return execute_action('create_placements', args, &block) 22 | end 23 | 24 | def create_placements_to_xml(*args) 25 | return get_soap_xml('create_placements', args) 26 | end 27 | 28 | def get_placements_by_statement(*args, &block) 29 | return execute_action('get_placements_by_statement', args, &block) 30 | end 31 | 32 | def get_placements_by_statement_to_xml(*args) 33 | return get_soap_xml('get_placements_by_statement', args) 34 | end 35 | 36 | def perform_placement_action(*args, &block) 37 | return execute_action('perform_placement_action', args, &block) 38 | end 39 | 40 | def perform_placement_action_to_xml(*args) 41 | return get_soap_xml('perform_placement_action', args) 42 | end 43 | 44 | def update_placements(*args, &block) 45 | return execute_action('update_placements', args, &block) 46 | end 47 | 48 | def update_placements_to_xml(*args) 49 | return get_soap_xml('update_placements', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return PlacementServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202408::PlacementService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/publisher_query_language_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:49. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/publisher_query_language_service_registry' 12 | 13 | module AdManagerApi; module V202408; module PublisherQueryLanguageService 14 | class PublisherQueryLanguageService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def select(*args, &block) 21 | return execute_action('select', args, &block) 22 | end 23 | 24 | def select_to_xml(*args) 25 | return get_soap_xml('select', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return PublisherQueryLanguageServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202408::PublisherQueryLanguageService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/segment_population_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:52. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/segment_population_service_registry' 12 | 13 | module AdManagerApi; module V202408; module SegmentPopulationService 14 | class SegmentPopulationService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def get_segment_population_results_by_ids(*args, &block) 21 | return execute_action('get_segment_population_results_by_ids', args, &block) 22 | end 23 | 24 | def get_segment_population_results_by_ids_to_xml(*args) 25 | return get_soap_xml('get_segment_population_results_by_ids', args) 26 | end 27 | 28 | def perform_segment_population_action(*args, &block) 29 | return execute_action('perform_segment_population_action', args, &block) 30 | end 31 | 32 | def perform_segment_population_action_to_xml(*args) 33 | return get_soap_xml('perform_segment_population_action', args) 34 | end 35 | 36 | def update_segment_memberships(*args, &block) 37 | return execute_action('update_segment_memberships', args, &block) 38 | end 39 | 40 | def update_segment_memberships_to_xml(*args) 41 | return get_soap_xml('update_segment_memberships', args) 42 | end 43 | 44 | private 45 | 46 | def get_service_registry() 47 | return SegmentPopulationServiceRegistry 48 | end 49 | 50 | def get_module() 51 | return AdManagerApi::V202408::SegmentPopulationService 52 | end 53 | end 54 | end; end; end 55 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/site_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:53. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/site_service_registry' 12 | 13 | module AdManagerApi; module V202408; module SiteService 14 | class SiteService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def create_sites(*args, &block) 21 | return execute_action('create_sites', args, &block) 22 | end 23 | 24 | def create_sites_to_xml(*args) 25 | return get_soap_xml('create_sites', args) 26 | end 27 | 28 | def get_sites_by_statement(*args, &block) 29 | return execute_action('get_sites_by_statement', args, &block) 30 | end 31 | 32 | def get_sites_by_statement_to_xml(*args) 33 | return get_soap_xml('get_sites_by_statement', args) 34 | end 35 | 36 | def perform_site_action(*args, &block) 37 | return execute_action('perform_site_action', args, &block) 38 | end 39 | 40 | def perform_site_action_to_xml(*args) 41 | return get_soap_xml('perform_site_action', args) 42 | end 43 | 44 | def update_sites(*args, &block) 45 | return execute_action('update_sites', args, &block) 46 | end 47 | 48 | def update_sites_to_xml(*args) 49 | return get_soap_xml('update_sites', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return SiteServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202408::SiteService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/stream_activity_monitor_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:53. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/stream_activity_monitor_service_registry' 12 | 13 | module AdManagerApi; module V202408; module StreamActivityMonitorService 14 | class StreamActivityMonitorService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def get_sam_sessions_by_statement(*args, &block) 21 | return execute_action('get_sam_sessions_by_statement', args, &block) 22 | end 23 | 24 | def get_sam_sessions_by_statement_to_xml(*args) 25 | return get_soap_xml('get_sam_sessions_by_statement', args) 26 | end 27 | 28 | def register_sessions_for_monitoring(*args, &block) 29 | return execute_action('register_sessions_for_monitoring', args, &block) 30 | end 31 | 32 | def register_sessions_for_monitoring_to_xml(*args) 33 | return get_soap_xml('register_sessions_for_monitoring', args) 34 | end 35 | 36 | private 37 | 38 | def get_service_registry() 39 | return StreamActivityMonitorServiceRegistry 40 | end 41 | 42 | def get_module() 43 | return AdManagerApi::V202408::StreamActivityMonitorService 44 | end 45 | end 46 | end; end; end 47 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/suggested_ad_unit_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:54. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/suggested_ad_unit_service_registry' 12 | 13 | module AdManagerApi; module V202408; module SuggestedAdUnitService 14 | class SuggestedAdUnitService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def get_suggested_ad_units_by_statement(*args, &block) 21 | return execute_action('get_suggested_ad_units_by_statement', args, &block) 22 | end 23 | 24 | def get_suggested_ad_units_by_statement_to_xml(*args) 25 | return get_soap_xml('get_suggested_ad_units_by_statement', args) 26 | end 27 | 28 | def perform_suggested_ad_unit_action(*args, &block) 29 | return execute_action('perform_suggested_ad_unit_action', args, &block) 30 | end 31 | 32 | def perform_suggested_ad_unit_action_to_xml(*args) 33 | return get_soap_xml('perform_suggested_ad_unit_action', args) 34 | end 35 | 36 | private 37 | 38 | def get_service_registry() 39 | return SuggestedAdUnitServiceRegistry 40 | end 41 | 42 | def get_module() 43 | return AdManagerApi::V202408::SuggestedAdUnitService 44 | end 45 | end 46 | end; end; end 47 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/targeting_preset_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:55. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/targeting_preset_service_registry' 12 | 13 | module AdManagerApi; module V202408; module TargetingPresetService 14 | class TargetingPresetService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def create_targeting_presets(*args, &block) 21 | return execute_action('create_targeting_presets', args, &block) 22 | end 23 | 24 | def create_targeting_presets_to_xml(*args) 25 | return get_soap_xml('create_targeting_presets', args) 26 | end 27 | 28 | def get_targeting_presets_by_statement(*args, &block) 29 | return execute_action('get_targeting_presets_by_statement', args, &block) 30 | end 31 | 32 | def get_targeting_presets_by_statement_to_xml(*args) 33 | return get_soap_xml('get_targeting_presets_by_statement', args) 34 | end 35 | 36 | def perform_targeting_preset_action(*args, &block) 37 | return execute_action('perform_targeting_preset_action', args, &block) 38 | end 39 | 40 | def perform_targeting_preset_action_to_xml(*args) 41 | return get_soap_xml('perform_targeting_preset_action', args) 42 | end 43 | 44 | def update_targeting_presets(*args, &block) 45 | return execute_action('update_targeting_presets', args, &block) 46 | end 47 | 48 | def update_targeting_presets_to_xml(*args) 49 | return get_soap_xml('update_targeting_presets', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return TargetingPresetServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202408::TargetingPresetService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/team_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:56. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/team_service_registry' 12 | 13 | module AdManagerApi; module V202408; module TeamService 14 | class TeamService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def create_teams(*args, &block) 21 | return execute_action('create_teams', args, &block) 22 | end 23 | 24 | def create_teams_to_xml(*args) 25 | return get_soap_xml('create_teams', args) 26 | end 27 | 28 | def get_teams_by_statement(*args, &block) 29 | return execute_action('get_teams_by_statement', args, &block) 30 | end 31 | 32 | def get_teams_by_statement_to_xml(*args) 33 | return get_soap_xml('get_teams_by_statement', args) 34 | end 35 | 36 | def perform_team_action(*args, &block) 37 | return execute_action('perform_team_action', args, &block) 38 | end 39 | 40 | def perform_team_action_to_xml(*args) 41 | return get_soap_xml('perform_team_action', args) 42 | end 43 | 44 | def update_teams(*args, &block) 45 | return execute_action('update_teams', args, &block) 46 | end 47 | 48 | def update_teams_to_xml(*args) 49 | return get_soap_xml('update_teams', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return TeamServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202408::TeamService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202408/yield_group_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:47:59. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202408/yield_group_service_registry' 12 | 13 | module AdManagerApi; module V202408; module YieldGroupService 14 | class YieldGroupService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202408' 17 | super(config, endpoint, namespace, :v202408) 18 | end 19 | 20 | def create_yield_groups(*args, &block) 21 | return execute_action('create_yield_groups', args, &block) 22 | end 23 | 24 | def create_yield_groups_to_xml(*args) 25 | return get_soap_xml('create_yield_groups', args) 26 | end 27 | 28 | def get_yield_groups_by_statement(*args, &block) 29 | return execute_action('get_yield_groups_by_statement', args, &block) 30 | end 31 | 32 | def get_yield_groups_by_statement_to_xml(*args) 33 | return get_soap_xml('get_yield_groups_by_statement', args) 34 | end 35 | 36 | def get_yield_partners(*args, &block) 37 | return execute_action('get_yield_partners', args, &block) 38 | end 39 | 40 | def get_yield_partners_to_xml(*args) 41 | return get_soap_xml('get_yield_partners', args) 42 | end 43 | 44 | def update_yield_groups(*args, &block) 45 | return execute_action('update_yield_groups', args, &block) 46 | end 47 | 48 | def update_yield_groups_to_xml(*args) 49 | return get_soap_xml('update_yield_groups', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return YieldGroupServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202408::YieldGroupService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/ads_txt_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:07. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/ads_txt_service_registry' 12 | 13 | module AdManagerApi; module V202411; module AdsTxtService 14 | class AdsTxtService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def get_mcm_supply_chain_diagnostics_download_url(*args, &block) 21 | return execute_action('get_mcm_supply_chain_diagnostics_download_url', args, &block) 22 | end 23 | 24 | def get_mcm_supply_chain_diagnostics_download_url_to_xml(*args) 25 | return get_soap_xml('get_mcm_supply_chain_diagnostics_download_url', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return AdsTxtServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202411::AdsTxtService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/audience_segment_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:08. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/audience_segment_service_registry' 12 | 13 | module AdManagerApi; module V202411; module AudienceSegmentService 14 | class AudienceSegmentService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def create_audience_segments(*args, &block) 21 | return execute_action('create_audience_segments', args, &block) 22 | end 23 | 24 | def create_audience_segments_to_xml(*args) 25 | return get_soap_xml('create_audience_segments', args) 26 | end 27 | 28 | def get_audience_segments_by_statement(*args, &block) 29 | return execute_action('get_audience_segments_by_statement', args, &block) 30 | end 31 | 32 | def get_audience_segments_by_statement_to_xml(*args) 33 | return get_soap_xml('get_audience_segments_by_statement', args) 34 | end 35 | 36 | def perform_audience_segment_action(*args, &block) 37 | return execute_action('perform_audience_segment_action', args, &block) 38 | end 39 | 40 | def perform_audience_segment_action_to_xml(*args) 41 | return get_soap_xml('perform_audience_segment_action', args) 42 | end 43 | 44 | def update_audience_segments(*args, &block) 45 | return execute_action('update_audience_segments', args, &block) 46 | end 47 | 48 | def update_audience_segments_to_xml(*args) 49 | return get_soap_xml('update_audience_segments', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return AudienceSegmentServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202411::AudienceSegmentService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/company_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:09. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/company_service_registry' 12 | 13 | module AdManagerApi; module V202411; module CompanyService 14 | class CompanyService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def create_companies(*args, &block) 21 | return execute_action('create_companies', args, &block) 22 | end 23 | 24 | def create_companies_to_xml(*args) 25 | return get_soap_xml('create_companies', args) 26 | end 27 | 28 | def get_companies_by_statement(*args, &block) 29 | return execute_action('get_companies_by_statement', args, &block) 30 | end 31 | 32 | def get_companies_by_statement_to_xml(*args) 33 | return get_soap_xml('get_companies_by_statement', args) 34 | end 35 | 36 | def perform_company_action(*args, &block) 37 | return execute_action('perform_company_action', args, &block) 38 | end 39 | 40 | def perform_company_action_to_xml(*args) 41 | return get_soap_xml('perform_company_action', args) 42 | end 43 | 44 | def update_companies(*args, &block) 45 | return execute_action('update_companies', args, &block) 46 | end 47 | 48 | def update_companies_to_xml(*args) 49 | return get_soap_xml('update_companies', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return CompanyServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202411::CompanyService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/contact_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:12. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/contact_service_registry' 12 | 13 | module AdManagerApi; module V202411; module ContactService 14 | class ContactService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def create_contacts(*args, &block) 21 | return execute_action('create_contacts', args, &block) 22 | end 23 | 24 | def create_contacts_to_xml(*args) 25 | return get_soap_xml('create_contacts', args) 26 | end 27 | 28 | def get_contacts_by_statement(*args, &block) 29 | return execute_action('get_contacts_by_statement', args, &block) 30 | end 31 | 32 | def get_contacts_by_statement_to_xml(*args) 33 | return get_soap_xml('get_contacts_by_statement', args) 34 | end 35 | 36 | def update_contacts(*args, &block) 37 | return execute_action('update_contacts', args, &block) 38 | end 39 | 40 | def update_contacts_to_xml(*args) 41 | return get_soap_xml('update_contacts', args) 42 | end 43 | 44 | private 45 | 46 | def get_service_registry() 47 | return ContactServiceRegistry 48 | end 49 | 50 | def get_module() 51 | return AdManagerApi::V202411::ContactService 52 | end 53 | end 54 | end; end; end 55 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/content_bundle_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:13. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/content_bundle_service_registry' 12 | 13 | module AdManagerApi; module V202411; module ContentBundleService 14 | class ContentBundleService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def create_content_bundles(*args, &block) 21 | return execute_action('create_content_bundles', args, &block) 22 | end 23 | 24 | def create_content_bundles_to_xml(*args) 25 | return get_soap_xml('create_content_bundles', args) 26 | end 27 | 28 | def get_content_bundles_by_statement(*args, &block) 29 | return execute_action('get_content_bundles_by_statement', args, &block) 30 | end 31 | 32 | def get_content_bundles_by_statement_to_xml(*args) 33 | return get_soap_xml('get_content_bundles_by_statement', args) 34 | end 35 | 36 | def perform_content_bundle_action(*args, &block) 37 | return execute_action('perform_content_bundle_action', args, &block) 38 | end 39 | 40 | def perform_content_bundle_action_to_xml(*args) 41 | return get_soap_xml('perform_content_bundle_action', args) 42 | end 43 | 44 | def update_content_bundles(*args, &block) 45 | return execute_action('update_content_bundles', args, &block) 46 | end 47 | 48 | def update_content_bundles_to_xml(*args) 49 | return get_soap_xml('update_content_bundles', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return ContentBundleServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202411::ContentBundleService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/content_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:14. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/content_service_registry' 12 | 13 | module AdManagerApi; module V202411; module ContentService 14 | class ContentService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def get_content_by_statement(*args, &block) 21 | return execute_action('get_content_by_statement', args, &block) 22 | end 23 | 24 | def get_content_by_statement_to_xml(*args) 25 | return get_soap_xml('get_content_by_statement', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return ContentServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202411::ContentService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/creative_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:14. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/creative_service_registry' 12 | 13 | module AdManagerApi; module V202411; module CreativeService 14 | class CreativeService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def create_creatives(*args, &block) 21 | return execute_action('create_creatives', args, &block) 22 | end 23 | 24 | def create_creatives_to_xml(*args) 25 | return get_soap_xml('create_creatives', args) 26 | end 27 | 28 | def get_creatives_by_statement(*args, &block) 29 | return execute_action('get_creatives_by_statement', args, &block) 30 | end 31 | 32 | def get_creatives_by_statement_to_xml(*args) 33 | return get_soap_xml('get_creatives_by_statement', args) 34 | end 35 | 36 | def perform_creative_action(*args, &block) 37 | return execute_action('perform_creative_action', args, &block) 38 | end 39 | 40 | def perform_creative_action_to_xml(*args) 41 | return get_soap_xml('perform_creative_action', args) 42 | end 43 | 44 | def update_creatives(*args, &block) 45 | return execute_action('update_creatives', args, &block) 46 | end 47 | 48 | def update_creatives_to_xml(*args) 49 | return get_soap_xml('update_creatives', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return CreativeServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202411::CreativeService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/creative_set_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:17. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/creative_set_service_registry' 12 | 13 | module AdManagerApi; module V202411; module CreativeSetService 14 | class CreativeSetService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def create_creative_set(*args, &block) 21 | return execute_action('create_creative_set', args, &block) 22 | end 23 | 24 | def create_creative_set_to_xml(*args) 25 | return get_soap_xml('create_creative_set', args) 26 | end 27 | 28 | def get_creative_sets_by_statement(*args, &block) 29 | return execute_action('get_creative_sets_by_statement', args, &block) 30 | end 31 | 32 | def get_creative_sets_by_statement_to_xml(*args) 33 | return get_soap_xml('get_creative_sets_by_statement', args) 34 | end 35 | 36 | def update_creative_set(*args, &block) 37 | return execute_action('update_creative_set', args, &block) 38 | end 39 | 40 | def update_creative_set_to_xml(*args) 41 | return get_soap_xml('update_creative_set', args) 42 | end 43 | 44 | private 45 | 46 | def get_service_registry() 47 | return CreativeSetServiceRegistry 48 | end 49 | 50 | def get_module() 51 | return AdManagerApi::V202411::CreativeSetService 52 | end 53 | end 54 | end; end; end 55 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/creative_template_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:18. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/creative_template_service_registry' 12 | 13 | module AdManagerApi; module V202411; module CreativeTemplateService 14 | class CreativeTemplateService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def get_creative_templates_by_statement(*args, &block) 21 | return execute_action('get_creative_templates_by_statement', args, &block) 22 | end 23 | 24 | def get_creative_templates_by_statement_to_xml(*args) 25 | return get_soap_xml('get_creative_templates_by_statement', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return CreativeTemplateServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202411::CreativeTemplateService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/creative_wrapper_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:18. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/creative_wrapper_service_registry' 12 | 13 | module AdManagerApi; module V202411; module CreativeWrapperService 14 | class CreativeWrapperService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def create_creative_wrappers(*args, &block) 21 | return execute_action('create_creative_wrappers', args, &block) 22 | end 23 | 24 | def create_creative_wrappers_to_xml(*args) 25 | return get_soap_xml('create_creative_wrappers', args) 26 | end 27 | 28 | def get_creative_wrappers_by_statement(*args, &block) 29 | return execute_action('get_creative_wrappers_by_statement', args, &block) 30 | end 31 | 32 | def get_creative_wrappers_by_statement_to_xml(*args) 33 | return get_soap_xml('get_creative_wrappers_by_statement', args) 34 | end 35 | 36 | def perform_creative_wrapper_action(*args, &block) 37 | return execute_action('perform_creative_wrapper_action', args, &block) 38 | end 39 | 40 | def perform_creative_wrapper_action_to_xml(*args) 41 | return get_soap_xml('perform_creative_wrapper_action', args) 42 | end 43 | 44 | def update_creative_wrappers(*args, &block) 45 | return execute_action('update_creative_wrappers', args, &block) 46 | end 47 | 48 | def update_creative_wrappers_to_xml(*args) 49 | return get_soap_xml('update_creative_wrappers', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return CreativeWrapperServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202411::CreativeWrapperService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/label_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:31. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/label_service_registry' 12 | 13 | module AdManagerApi; module V202411; module LabelService 14 | class LabelService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def create_labels(*args, &block) 21 | return execute_action('create_labels', args, &block) 22 | end 23 | 24 | def create_labels_to_xml(*args) 25 | return get_soap_xml('create_labels', args) 26 | end 27 | 28 | def get_labels_by_statement(*args, &block) 29 | return execute_action('get_labels_by_statement', args, &block) 30 | end 31 | 32 | def get_labels_by_statement_to_xml(*args) 33 | return get_soap_xml('get_labels_by_statement', args) 34 | end 35 | 36 | def perform_label_action(*args, &block) 37 | return execute_action('perform_label_action', args, &block) 38 | end 39 | 40 | def perform_label_action_to_xml(*args) 41 | return get_soap_xml('perform_label_action', args) 42 | end 43 | 44 | def update_labels(*args, &block) 45 | return execute_action('update_labels', args, &block) 46 | end 47 | 48 | def update_labels_to_xml(*args) 49 | return get_soap_xml('update_labels', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return LabelServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202411::LabelService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/line_item_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:34. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/line_item_service_registry' 12 | 13 | module AdManagerApi; module V202411; module LineItemService 14 | class LineItemService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def create_line_items(*args, &block) 21 | return execute_action('create_line_items', args, &block) 22 | end 23 | 24 | def create_line_items_to_xml(*args) 25 | return get_soap_xml('create_line_items', args) 26 | end 27 | 28 | def get_line_items_by_statement(*args, &block) 29 | return execute_action('get_line_items_by_statement', args, &block) 30 | end 31 | 32 | def get_line_items_by_statement_to_xml(*args) 33 | return get_soap_xml('get_line_items_by_statement', args) 34 | end 35 | 36 | def perform_line_item_action(*args, &block) 37 | return execute_action('perform_line_item_action', args, &block) 38 | end 39 | 40 | def perform_line_item_action_to_xml(*args) 41 | return get_soap_xml('perform_line_item_action', args) 42 | end 43 | 44 | def update_line_items(*args, &block) 45 | return execute_action('update_line_items', args, &block) 46 | end 47 | 48 | def update_line_items_to_xml(*args) 49 | return get_soap_xml('update_line_items', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return LineItemServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202411::LineItemService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/line_item_template_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:37. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/line_item_template_service_registry' 12 | 13 | module AdManagerApi; module V202411; module LineItemTemplateService 14 | class LineItemTemplateService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def get_line_item_templates_by_statement(*args, &block) 21 | return execute_action('get_line_item_templates_by_statement', args, &block) 22 | end 23 | 24 | def get_line_item_templates_by_statement_to_xml(*args) 25 | return get_soap_xml('get_line_item_templates_by_statement', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return LineItemTemplateServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202411::LineItemTemplateService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/native_style_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:41. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/native_style_service_registry' 12 | 13 | module AdManagerApi; module V202411; module NativeStyleService 14 | class NativeStyleService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def create_native_styles(*args, &block) 21 | return execute_action('create_native_styles', args, &block) 22 | end 23 | 24 | def create_native_styles_to_xml(*args) 25 | return get_soap_xml('create_native_styles', args) 26 | end 27 | 28 | def get_native_styles_by_statement(*args, &block) 29 | return execute_action('get_native_styles_by_statement', args, &block) 30 | end 31 | 32 | def get_native_styles_by_statement_to_xml(*args) 33 | return get_soap_xml('get_native_styles_by_statement', args) 34 | end 35 | 36 | def perform_native_style_action(*args, &block) 37 | return execute_action('perform_native_style_action', args, &block) 38 | end 39 | 40 | def perform_native_style_action_to_xml(*args) 41 | return get_soap_xml('perform_native_style_action', args) 42 | end 43 | 44 | def update_native_styles(*args, &block) 45 | return execute_action('update_native_styles', args, &block) 46 | end 47 | 48 | def update_native_styles_to_xml(*args) 49 | return get_soap_xml('update_native_styles', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return NativeStyleServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202411::NativeStyleService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/order_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:44. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/order_service_registry' 12 | 13 | module AdManagerApi; module V202411; module OrderService 14 | class OrderService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def create_orders(*args, &block) 21 | return execute_action('create_orders', args, &block) 22 | end 23 | 24 | def create_orders_to_xml(*args) 25 | return get_soap_xml('create_orders', args) 26 | end 27 | 28 | def get_orders_by_statement(*args, &block) 29 | return execute_action('get_orders_by_statement', args, &block) 30 | end 31 | 32 | def get_orders_by_statement_to_xml(*args) 33 | return get_soap_xml('get_orders_by_statement', args) 34 | end 35 | 36 | def perform_order_action(*args, &block) 37 | return execute_action('perform_order_action', args, &block) 38 | end 39 | 40 | def perform_order_action_to_xml(*args) 41 | return get_soap_xml('perform_order_action', args) 42 | end 43 | 44 | def update_orders(*args, &block) 45 | return execute_action('update_orders', args, &block) 46 | end 47 | 48 | def update_orders_to_xml(*args) 49 | return get_soap_xml('update_orders', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return OrderServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202411::OrderService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/placement_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:46. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/placement_service_registry' 12 | 13 | module AdManagerApi; module V202411; module PlacementService 14 | class PlacementService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def create_placements(*args, &block) 21 | return execute_action('create_placements', args, &block) 22 | end 23 | 24 | def create_placements_to_xml(*args) 25 | return get_soap_xml('create_placements', args) 26 | end 27 | 28 | def get_placements_by_statement(*args, &block) 29 | return execute_action('get_placements_by_statement', args, &block) 30 | end 31 | 32 | def get_placements_by_statement_to_xml(*args) 33 | return get_soap_xml('get_placements_by_statement', args) 34 | end 35 | 36 | def perform_placement_action(*args, &block) 37 | return execute_action('perform_placement_action', args, &block) 38 | end 39 | 40 | def perform_placement_action_to_xml(*args) 41 | return get_soap_xml('perform_placement_action', args) 42 | end 43 | 44 | def update_placements(*args, &block) 45 | return execute_action('update_placements', args, &block) 46 | end 47 | 48 | def update_placements_to_xml(*args) 49 | return get_soap_xml('update_placements', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return PlacementServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202411::PlacementService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/publisher_query_language_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:53. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/publisher_query_language_service_registry' 12 | 13 | module AdManagerApi; module V202411; module PublisherQueryLanguageService 14 | class PublisherQueryLanguageService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def select(*args, &block) 21 | return execute_action('select', args, &block) 22 | end 23 | 24 | def select_to_xml(*args) 25 | return get_soap_xml('select', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return PublisherQueryLanguageServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202411::PublisherQueryLanguageService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/segment_population_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:57. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/segment_population_service_registry' 12 | 13 | module AdManagerApi; module V202411; module SegmentPopulationService 14 | class SegmentPopulationService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def get_segment_population_results_by_ids(*args, &block) 21 | return execute_action('get_segment_population_results_by_ids', args, &block) 22 | end 23 | 24 | def get_segment_population_results_by_ids_to_xml(*args) 25 | return get_soap_xml('get_segment_population_results_by_ids', args) 26 | end 27 | 28 | def perform_segment_population_action(*args, &block) 29 | return execute_action('perform_segment_population_action', args, &block) 30 | end 31 | 32 | def perform_segment_population_action_to_xml(*args) 33 | return get_soap_xml('perform_segment_population_action', args) 34 | end 35 | 36 | def update_segment_memberships(*args, &block) 37 | return execute_action('update_segment_memberships', args, &block) 38 | end 39 | 40 | def update_segment_memberships_to_xml(*args) 41 | return get_soap_xml('update_segment_memberships', args) 42 | end 43 | 44 | private 45 | 46 | def get_service_registry() 47 | return SegmentPopulationServiceRegistry 48 | end 49 | 50 | def get_module() 51 | return AdManagerApi::V202411::SegmentPopulationService 52 | end 53 | end 54 | end; end; end 55 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/site_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:58. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/site_service_registry' 12 | 13 | module AdManagerApi; module V202411; module SiteService 14 | class SiteService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def create_sites(*args, &block) 21 | return execute_action('create_sites', args, &block) 22 | end 23 | 24 | def create_sites_to_xml(*args) 25 | return get_soap_xml('create_sites', args) 26 | end 27 | 28 | def get_sites_by_statement(*args, &block) 29 | return execute_action('get_sites_by_statement', args, &block) 30 | end 31 | 32 | def get_sites_by_statement_to_xml(*args) 33 | return get_soap_xml('get_sites_by_statement', args) 34 | end 35 | 36 | def perform_site_action(*args, &block) 37 | return execute_action('perform_site_action', args, &block) 38 | end 39 | 40 | def perform_site_action_to_xml(*args) 41 | return get_soap_xml('perform_site_action', args) 42 | end 43 | 44 | def update_sites(*args, &block) 45 | return execute_action('update_sites', args, &block) 46 | end 47 | 48 | def update_sites_to_xml(*args) 49 | return get_soap_xml('update_sites', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return SiteServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202411::SiteService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/stream_activity_monitor_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:58. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/stream_activity_monitor_service_registry' 12 | 13 | module AdManagerApi; module V202411; module StreamActivityMonitorService 14 | class StreamActivityMonitorService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def get_sam_sessions_by_statement(*args, &block) 21 | return execute_action('get_sam_sessions_by_statement', args, &block) 22 | end 23 | 24 | def get_sam_sessions_by_statement_to_xml(*args) 25 | return get_soap_xml('get_sam_sessions_by_statement', args) 26 | end 27 | 28 | def register_sessions_for_monitoring(*args, &block) 29 | return execute_action('register_sessions_for_monitoring', args, &block) 30 | end 31 | 32 | def register_sessions_for_monitoring_to_xml(*args) 33 | return get_soap_xml('register_sessions_for_monitoring', args) 34 | end 35 | 36 | private 37 | 38 | def get_service_registry() 39 | return StreamActivityMonitorServiceRegistry 40 | end 41 | 42 | def get_module() 43 | return AdManagerApi::V202411::StreamActivityMonitorService 44 | end 45 | end 46 | end; end; end 47 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/suggested_ad_unit_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:59. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/suggested_ad_unit_service_registry' 12 | 13 | module AdManagerApi; module V202411; module SuggestedAdUnitService 14 | class SuggestedAdUnitService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def get_suggested_ad_units_by_statement(*args, &block) 21 | return execute_action('get_suggested_ad_units_by_statement', args, &block) 22 | end 23 | 24 | def get_suggested_ad_units_by_statement_to_xml(*args) 25 | return get_soap_xml('get_suggested_ad_units_by_statement', args) 26 | end 27 | 28 | def perform_suggested_ad_unit_action(*args, &block) 29 | return execute_action('perform_suggested_ad_unit_action', args, &block) 30 | end 31 | 32 | def perform_suggested_ad_unit_action_to_xml(*args) 33 | return get_soap_xml('perform_suggested_ad_unit_action', args) 34 | end 35 | 36 | private 37 | 38 | def get_service_registry() 39 | return SuggestedAdUnitServiceRegistry 40 | end 41 | 42 | def get_module() 43 | return AdManagerApi::V202411::SuggestedAdUnitService 44 | end 45 | end 46 | end; end; end 47 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/targeting_preset_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:48:59. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/targeting_preset_service_registry' 12 | 13 | module AdManagerApi; module V202411; module TargetingPresetService 14 | class TargetingPresetService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def create_targeting_presets(*args, &block) 21 | return execute_action('create_targeting_presets', args, &block) 22 | end 23 | 24 | def create_targeting_presets_to_xml(*args) 25 | return get_soap_xml('create_targeting_presets', args) 26 | end 27 | 28 | def get_targeting_presets_by_statement(*args, &block) 29 | return execute_action('get_targeting_presets_by_statement', args, &block) 30 | end 31 | 32 | def get_targeting_presets_by_statement_to_xml(*args) 33 | return get_soap_xml('get_targeting_presets_by_statement', args) 34 | end 35 | 36 | def perform_targeting_preset_action(*args, &block) 37 | return execute_action('perform_targeting_preset_action', args, &block) 38 | end 39 | 40 | def perform_targeting_preset_action_to_xml(*args) 41 | return get_soap_xml('perform_targeting_preset_action', args) 42 | end 43 | 44 | def update_targeting_presets(*args, &block) 45 | return execute_action('update_targeting_presets', args, &block) 46 | end 47 | 48 | def update_targeting_presets_to_xml(*args) 49 | return get_soap_xml('update_targeting_presets', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return TargetingPresetServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202411::TargetingPresetService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/team_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:01. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/team_service_registry' 12 | 13 | module AdManagerApi; module V202411; module TeamService 14 | class TeamService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def create_teams(*args, &block) 21 | return execute_action('create_teams', args, &block) 22 | end 23 | 24 | def create_teams_to_xml(*args) 25 | return get_soap_xml('create_teams', args) 26 | end 27 | 28 | def get_teams_by_statement(*args, &block) 29 | return execute_action('get_teams_by_statement', args, &block) 30 | end 31 | 32 | def get_teams_by_statement_to_xml(*args) 33 | return get_soap_xml('get_teams_by_statement', args) 34 | end 35 | 36 | def perform_team_action(*args, &block) 37 | return execute_action('perform_team_action', args, &block) 38 | end 39 | 40 | def perform_team_action_to_xml(*args) 41 | return get_soap_xml('perform_team_action', args) 42 | end 43 | 44 | def update_teams(*args, &block) 45 | return execute_action('update_teams', args, &block) 46 | end 47 | 48 | def update_teams_to_xml(*args) 49 | return get_soap_xml('update_teams', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return TeamServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202411::TeamService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202411/yield_group_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:04. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202411/yield_group_service_registry' 12 | 13 | module AdManagerApi; module V202411; module YieldGroupService 14 | class YieldGroupService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202411' 17 | super(config, endpoint, namespace, :v202411) 18 | end 19 | 20 | def create_yield_groups(*args, &block) 21 | return execute_action('create_yield_groups', args, &block) 22 | end 23 | 24 | def create_yield_groups_to_xml(*args) 25 | return get_soap_xml('create_yield_groups', args) 26 | end 27 | 28 | def get_yield_groups_by_statement(*args, &block) 29 | return execute_action('get_yield_groups_by_statement', args, &block) 30 | end 31 | 32 | def get_yield_groups_by_statement_to_xml(*args) 33 | return get_soap_xml('get_yield_groups_by_statement', args) 34 | end 35 | 36 | def get_yield_partners(*args, &block) 37 | return execute_action('get_yield_partners', args, &block) 38 | end 39 | 40 | def get_yield_partners_to_xml(*args) 41 | return get_soap_xml('get_yield_partners', args) 42 | end 43 | 44 | def update_yield_groups(*args, &block) 45 | return execute_action('update_yield_groups', args, &block) 46 | end 47 | 48 | def update_yield_groups_to_xml(*args) 49 | return get_soap_xml('update_yield_groups', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return YieldGroupServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202411::YieldGroupService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/ads_txt_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:11. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/ads_txt_service_registry' 12 | 13 | module AdManagerApi; module V202502; module AdsTxtService 14 | class AdsTxtService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def get_mcm_supply_chain_diagnostics_download_url(*args, &block) 21 | return execute_action('get_mcm_supply_chain_diagnostics_download_url', args, &block) 22 | end 23 | 24 | def get_mcm_supply_chain_diagnostics_download_url_to_xml(*args) 25 | return get_soap_xml('get_mcm_supply_chain_diagnostics_download_url', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return AdsTxtServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202502::AdsTxtService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/audience_segment_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:12. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/audience_segment_service_registry' 12 | 13 | module AdManagerApi; module V202502; module AudienceSegmentService 14 | class AudienceSegmentService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def create_audience_segments(*args, &block) 21 | return execute_action('create_audience_segments', args, &block) 22 | end 23 | 24 | def create_audience_segments_to_xml(*args) 25 | return get_soap_xml('create_audience_segments', args) 26 | end 27 | 28 | def get_audience_segments_by_statement(*args, &block) 29 | return execute_action('get_audience_segments_by_statement', args, &block) 30 | end 31 | 32 | def get_audience_segments_by_statement_to_xml(*args) 33 | return get_soap_xml('get_audience_segments_by_statement', args) 34 | end 35 | 36 | def perform_audience_segment_action(*args, &block) 37 | return execute_action('perform_audience_segment_action', args, &block) 38 | end 39 | 40 | def perform_audience_segment_action_to_xml(*args) 41 | return get_soap_xml('perform_audience_segment_action', args) 42 | end 43 | 44 | def update_audience_segments(*args, &block) 45 | return execute_action('update_audience_segments', args, &block) 46 | end 47 | 48 | def update_audience_segments_to_xml(*args) 49 | return get_soap_xml('update_audience_segments', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return AudienceSegmentServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202502::AudienceSegmentService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/company_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:13. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/company_service_registry' 12 | 13 | module AdManagerApi; module V202502; module CompanyService 14 | class CompanyService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def create_companies(*args, &block) 21 | return execute_action('create_companies', args, &block) 22 | end 23 | 24 | def create_companies_to_xml(*args) 25 | return get_soap_xml('create_companies', args) 26 | end 27 | 28 | def get_companies_by_statement(*args, &block) 29 | return execute_action('get_companies_by_statement', args, &block) 30 | end 31 | 32 | def get_companies_by_statement_to_xml(*args) 33 | return get_soap_xml('get_companies_by_statement', args) 34 | end 35 | 36 | def perform_company_action(*args, &block) 37 | return execute_action('perform_company_action', args, &block) 38 | end 39 | 40 | def perform_company_action_to_xml(*args) 41 | return get_soap_xml('perform_company_action', args) 42 | end 43 | 44 | def update_companies(*args, &block) 45 | return execute_action('update_companies', args, &block) 46 | end 47 | 48 | def update_companies_to_xml(*args) 49 | return get_soap_xml('update_companies', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return CompanyServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202502::CompanyService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/contact_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:16. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/contact_service_registry' 12 | 13 | module AdManagerApi; module V202502; module ContactService 14 | class ContactService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def create_contacts(*args, &block) 21 | return execute_action('create_contacts', args, &block) 22 | end 23 | 24 | def create_contacts_to_xml(*args) 25 | return get_soap_xml('create_contacts', args) 26 | end 27 | 28 | def get_contacts_by_statement(*args, &block) 29 | return execute_action('get_contacts_by_statement', args, &block) 30 | end 31 | 32 | def get_contacts_by_statement_to_xml(*args) 33 | return get_soap_xml('get_contacts_by_statement', args) 34 | end 35 | 36 | def update_contacts(*args, &block) 37 | return execute_action('update_contacts', args, &block) 38 | end 39 | 40 | def update_contacts_to_xml(*args) 41 | return get_soap_xml('update_contacts', args) 42 | end 43 | 44 | private 45 | 46 | def get_service_registry() 47 | return ContactServiceRegistry 48 | end 49 | 50 | def get_module() 51 | return AdManagerApi::V202502::ContactService 52 | end 53 | end 54 | end; end; end 55 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/content_bundle_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:17. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/content_bundle_service_registry' 12 | 13 | module AdManagerApi; module V202502; module ContentBundleService 14 | class ContentBundleService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def create_content_bundles(*args, &block) 21 | return execute_action('create_content_bundles', args, &block) 22 | end 23 | 24 | def create_content_bundles_to_xml(*args) 25 | return get_soap_xml('create_content_bundles', args) 26 | end 27 | 28 | def get_content_bundles_by_statement(*args, &block) 29 | return execute_action('get_content_bundles_by_statement', args, &block) 30 | end 31 | 32 | def get_content_bundles_by_statement_to_xml(*args) 33 | return get_soap_xml('get_content_bundles_by_statement', args) 34 | end 35 | 36 | def perform_content_bundle_action(*args, &block) 37 | return execute_action('perform_content_bundle_action', args, &block) 38 | end 39 | 40 | def perform_content_bundle_action_to_xml(*args) 41 | return get_soap_xml('perform_content_bundle_action', args) 42 | end 43 | 44 | def update_content_bundles(*args, &block) 45 | return execute_action('update_content_bundles', args, &block) 46 | end 47 | 48 | def update_content_bundles_to_xml(*args) 49 | return get_soap_xml('update_content_bundles', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return ContentBundleServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202502::ContentBundleService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/content_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:18. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/content_service_registry' 12 | 13 | module AdManagerApi; module V202502; module ContentService 14 | class ContentService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def get_content_by_statement(*args, &block) 21 | return execute_action('get_content_by_statement', args, &block) 22 | end 23 | 24 | def get_content_by_statement_to_xml(*args) 25 | return get_soap_xml('get_content_by_statement', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return ContentServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202502::ContentService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/creative_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:19. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/creative_service_registry' 12 | 13 | module AdManagerApi; module V202502; module CreativeService 14 | class CreativeService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def create_creatives(*args, &block) 21 | return execute_action('create_creatives', args, &block) 22 | end 23 | 24 | def create_creatives_to_xml(*args) 25 | return get_soap_xml('create_creatives', args) 26 | end 27 | 28 | def get_creatives_by_statement(*args, &block) 29 | return execute_action('get_creatives_by_statement', args, &block) 30 | end 31 | 32 | def get_creatives_by_statement_to_xml(*args) 33 | return get_soap_xml('get_creatives_by_statement', args) 34 | end 35 | 36 | def perform_creative_action(*args, &block) 37 | return execute_action('perform_creative_action', args, &block) 38 | end 39 | 40 | def perform_creative_action_to_xml(*args) 41 | return get_soap_xml('perform_creative_action', args) 42 | end 43 | 44 | def update_creatives(*args, &block) 45 | return execute_action('update_creatives', args, &block) 46 | end 47 | 48 | def update_creatives_to_xml(*args) 49 | return get_soap_xml('update_creatives', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return CreativeServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202502::CreativeService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/creative_set_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:21. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/creative_set_service_registry' 12 | 13 | module AdManagerApi; module V202502; module CreativeSetService 14 | class CreativeSetService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def create_creative_set(*args, &block) 21 | return execute_action('create_creative_set', args, &block) 22 | end 23 | 24 | def create_creative_set_to_xml(*args) 25 | return get_soap_xml('create_creative_set', args) 26 | end 27 | 28 | def get_creative_sets_by_statement(*args, &block) 29 | return execute_action('get_creative_sets_by_statement', args, &block) 30 | end 31 | 32 | def get_creative_sets_by_statement_to_xml(*args) 33 | return get_soap_xml('get_creative_sets_by_statement', args) 34 | end 35 | 36 | def update_creative_set(*args, &block) 37 | return execute_action('update_creative_set', args, &block) 38 | end 39 | 40 | def update_creative_set_to_xml(*args) 41 | return get_soap_xml('update_creative_set', args) 42 | end 43 | 44 | private 45 | 46 | def get_service_registry() 47 | return CreativeSetServiceRegistry 48 | end 49 | 50 | def get_module() 51 | return AdManagerApi::V202502::CreativeSetService 52 | end 53 | end 54 | end; end; end 55 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/creative_template_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:23. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/creative_template_service_registry' 12 | 13 | module AdManagerApi; module V202502; module CreativeTemplateService 14 | class CreativeTemplateService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def get_creative_templates_by_statement(*args, &block) 21 | return execute_action('get_creative_templates_by_statement', args, &block) 22 | end 23 | 24 | def get_creative_templates_by_statement_to_xml(*args) 25 | return get_soap_xml('get_creative_templates_by_statement', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return CreativeTemplateServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202502::CreativeTemplateService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/creative_wrapper_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:23. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/creative_wrapper_service_registry' 12 | 13 | module AdManagerApi; module V202502; module CreativeWrapperService 14 | class CreativeWrapperService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def create_creative_wrappers(*args, &block) 21 | return execute_action('create_creative_wrappers', args, &block) 22 | end 23 | 24 | def create_creative_wrappers_to_xml(*args) 25 | return get_soap_xml('create_creative_wrappers', args) 26 | end 27 | 28 | def get_creative_wrappers_by_statement(*args, &block) 29 | return execute_action('get_creative_wrappers_by_statement', args, &block) 30 | end 31 | 32 | def get_creative_wrappers_by_statement_to_xml(*args) 33 | return get_soap_xml('get_creative_wrappers_by_statement', args) 34 | end 35 | 36 | def perform_creative_wrapper_action(*args, &block) 37 | return execute_action('perform_creative_wrapper_action', args, &block) 38 | end 39 | 40 | def perform_creative_wrapper_action_to_xml(*args) 41 | return get_soap_xml('perform_creative_wrapper_action', args) 42 | end 43 | 44 | def update_creative_wrappers(*args, &block) 45 | return execute_action('update_creative_wrappers', args, &block) 46 | end 47 | 48 | def update_creative_wrappers_to_xml(*args) 49 | return get_soap_xml('update_creative_wrappers', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return CreativeWrapperServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202502::CreativeWrapperService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/label_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:36. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/label_service_registry' 12 | 13 | module AdManagerApi; module V202502; module LabelService 14 | class LabelService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def create_labels(*args, &block) 21 | return execute_action('create_labels', args, &block) 22 | end 23 | 24 | def create_labels_to_xml(*args) 25 | return get_soap_xml('create_labels', args) 26 | end 27 | 28 | def get_labels_by_statement(*args, &block) 29 | return execute_action('get_labels_by_statement', args, &block) 30 | end 31 | 32 | def get_labels_by_statement_to_xml(*args) 33 | return get_soap_xml('get_labels_by_statement', args) 34 | end 35 | 36 | def perform_label_action(*args, &block) 37 | return execute_action('perform_label_action', args, &block) 38 | end 39 | 40 | def perform_label_action_to_xml(*args) 41 | return get_soap_xml('perform_label_action', args) 42 | end 43 | 44 | def update_labels(*args, &block) 45 | return execute_action('update_labels', args, &block) 46 | end 47 | 48 | def update_labels_to_xml(*args) 49 | return get_soap_xml('update_labels', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return LabelServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202502::LabelService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/line_item_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:39. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/line_item_service_registry' 12 | 13 | module AdManagerApi; module V202502; module LineItemService 14 | class LineItemService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def create_line_items(*args, &block) 21 | return execute_action('create_line_items', args, &block) 22 | end 23 | 24 | def create_line_items_to_xml(*args) 25 | return get_soap_xml('create_line_items', args) 26 | end 27 | 28 | def get_line_items_by_statement(*args, &block) 29 | return execute_action('get_line_items_by_statement', args, &block) 30 | end 31 | 32 | def get_line_items_by_statement_to_xml(*args) 33 | return get_soap_xml('get_line_items_by_statement', args) 34 | end 35 | 36 | def perform_line_item_action(*args, &block) 37 | return execute_action('perform_line_item_action', args, &block) 38 | end 39 | 40 | def perform_line_item_action_to_xml(*args) 41 | return get_soap_xml('perform_line_item_action', args) 42 | end 43 | 44 | def update_line_items(*args, &block) 45 | return execute_action('update_line_items', args, &block) 46 | end 47 | 48 | def update_line_items_to_xml(*args) 49 | return get_soap_xml('update_line_items', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return LineItemServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202502::LineItemService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/line_item_template_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:42. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/line_item_template_service_registry' 12 | 13 | module AdManagerApi; module V202502; module LineItemTemplateService 14 | class LineItemTemplateService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def get_line_item_templates_by_statement(*args, &block) 21 | return execute_action('get_line_item_templates_by_statement', args, &block) 22 | end 23 | 24 | def get_line_item_templates_by_statement_to_xml(*args) 25 | return get_soap_xml('get_line_item_templates_by_statement', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return LineItemTemplateServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202502::LineItemTemplateService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/native_style_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:46. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/native_style_service_registry' 12 | 13 | module AdManagerApi; module V202502; module NativeStyleService 14 | class NativeStyleService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def create_native_styles(*args, &block) 21 | return execute_action('create_native_styles', args, &block) 22 | end 23 | 24 | def create_native_styles_to_xml(*args) 25 | return get_soap_xml('create_native_styles', args) 26 | end 27 | 28 | def get_native_styles_by_statement(*args, &block) 29 | return execute_action('get_native_styles_by_statement', args, &block) 30 | end 31 | 32 | def get_native_styles_by_statement_to_xml(*args) 33 | return get_soap_xml('get_native_styles_by_statement', args) 34 | end 35 | 36 | def perform_native_style_action(*args, &block) 37 | return execute_action('perform_native_style_action', args, &block) 38 | end 39 | 40 | def perform_native_style_action_to_xml(*args) 41 | return get_soap_xml('perform_native_style_action', args) 42 | end 43 | 44 | def update_native_styles(*args, &block) 45 | return execute_action('update_native_styles', args, &block) 46 | end 47 | 48 | def update_native_styles_to_xml(*args) 49 | return get_soap_xml('update_native_styles', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return NativeStyleServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202502::NativeStyleService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/order_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:49. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/order_service_registry' 12 | 13 | module AdManagerApi; module V202502; module OrderService 14 | class OrderService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def create_orders(*args, &block) 21 | return execute_action('create_orders', args, &block) 22 | end 23 | 24 | def create_orders_to_xml(*args) 25 | return get_soap_xml('create_orders', args) 26 | end 27 | 28 | def get_orders_by_statement(*args, &block) 29 | return execute_action('get_orders_by_statement', args, &block) 30 | end 31 | 32 | def get_orders_by_statement_to_xml(*args) 33 | return get_soap_xml('get_orders_by_statement', args) 34 | end 35 | 36 | def perform_order_action(*args, &block) 37 | return execute_action('perform_order_action', args, &block) 38 | end 39 | 40 | def perform_order_action_to_xml(*args) 41 | return get_soap_xml('perform_order_action', args) 42 | end 43 | 44 | def update_orders(*args, &block) 45 | return execute_action('update_orders', args, &block) 46 | end 47 | 48 | def update_orders_to_xml(*args) 49 | return get_soap_xml('update_orders', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return OrderServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202502::OrderService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/placement_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:51. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/placement_service_registry' 12 | 13 | module AdManagerApi; module V202502; module PlacementService 14 | class PlacementService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def create_placements(*args, &block) 21 | return execute_action('create_placements', args, &block) 22 | end 23 | 24 | def create_placements_to_xml(*args) 25 | return get_soap_xml('create_placements', args) 26 | end 27 | 28 | def get_placements_by_statement(*args, &block) 29 | return execute_action('get_placements_by_statement', args, &block) 30 | end 31 | 32 | def get_placements_by_statement_to_xml(*args) 33 | return get_soap_xml('get_placements_by_statement', args) 34 | end 35 | 36 | def perform_placement_action(*args, &block) 37 | return execute_action('perform_placement_action', args, &block) 38 | end 39 | 40 | def perform_placement_action_to_xml(*args) 41 | return get_soap_xml('perform_placement_action', args) 42 | end 43 | 44 | def update_placements(*args, &block) 45 | return execute_action('update_placements', args, &block) 46 | end 47 | 48 | def update_placements_to_xml(*args) 49 | return get_soap_xml('update_placements', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return PlacementServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202502::PlacementService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/publisher_query_language_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:49:58. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/publisher_query_language_service_registry' 12 | 13 | module AdManagerApi; module V202502; module PublisherQueryLanguageService 14 | class PublisherQueryLanguageService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def select(*args, &block) 21 | return execute_action('select', args, &block) 22 | end 23 | 24 | def select_to_xml(*args) 25 | return get_soap_xml('select', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return PublisherQueryLanguageServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202502::PublisherQueryLanguageService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/segment_population_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:02. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/segment_population_service_registry' 12 | 13 | module AdManagerApi; module V202502; module SegmentPopulationService 14 | class SegmentPopulationService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def get_segment_population_results_by_ids(*args, &block) 21 | return execute_action('get_segment_population_results_by_ids', args, &block) 22 | end 23 | 24 | def get_segment_population_results_by_ids_to_xml(*args) 25 | return get_soap_xml('get_segment_population_results_by_ids', args) 26 | end 27 | 28 | def perform_segment_population_action(*args, &block) 29 | return execute_action('perform_segment_population_action', args, &block) 30 | end 31 | 32 | def perform_segment_population_action_to_xml(*args) 33 | return get_soap_xml('perform_segment_population_action', args) 34 | end 35 | 36 | def update_segment_memberships(*args, &block) 37 | return execute_action('update_segment_memberships', args, &block) 38 | end 39 | 40 | def update_segment_memberships_to_xml(*args) 41 | return get_soap_xml('update_segment_memberships', args) 42 | end 43 | 44 | private 45 | 46 | def get_service_registry() 47 | return SegmentPopulationServiceRegistry 48 | end 49 | 50 | def get_module() 51 | return AdManagerApi::V202502::SegmentPopulationService 52 | end 53 | end 54 | end; end; end 55 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/site_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:03. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/site_service_registry' 12 | 13 | module AdManagerApi; module V202502; module SiteService 14 | class SiteService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def create_sites(*args, &block) 21 | return execute_action('create_sites', args, &block) 22 | end 23 | 24 | def create_sites_to_xml(*args) 25 | return get_soap_xml('create_sites', args) 26 | end 27 | 28 | def get_sites_by_statement(*args, &block) 29 | return execute_action('get_sites_by_statement', args, &block) 30 | end 31 | 32 | def get_sites_by_statement_to_xml(*args) 33 | return get_soap_xml('get_sites_by_statement', args) 34 | end 35 | 36 | def perform_site_action(*args, &block) 37 | return execute_action('perform_site_action', args, &block) 38 | end 39 | 40 | def perform_site_action_to_xml(*args) 41 | return get_soap_xml('perform_site_action', args) 42 | end 43 | 44 | def update_sites(*args, &block) 45 | return execute_action('update_sites', args, &block) 46 | end 47 | 48 | def update_sites_to_xml(*args) 49 | return get_soap_xml('update_sites', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return SiteServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202502::SiteService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/stream_activity_monitor_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:03. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/stream_activity_monitor_service_registry' 12 | 13 | module AdManagerApi; module V202502; module StreamActivityMonitorService 14 | class StreamActivityMonitorService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def get_sam_sessions_by_statement(*args, &block) 21 | return execute_action('get_sam_sessions_by_statement', args, &block) 22 | end 23 | 24 | def get_sam_sessions_by_statement_to_xml(*args) 25 | return get_soap_xml('get_sam_sessions_by_statement', args) 26 | end 27 | 28 | def register_sessions_for_monitoring(*args, &block) 29 | return execute_action('register_sessions_for_monitoring', args, &block) 30 | end 31 | 32 | def register_sessions_for_monitoring_to_xml(*args) 33 | return get_soap_xml('register_sessions_for_monitoring', args) 34 | end 35 | 36 | private 37 | 38 | def get_service_registry() 39 | return StreamActivityMonitorServiceRegistry 40 | end 41 | 42 | def get_module() 43 | return AdManagerApi::V202502::StreamActivityMonitorService 44 | end 45 | end 46 | end; end; end 47 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/suggested_ad_unit_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:04. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/suggested_ad_unit_service_registry' 12 | 13 | module AdManagerApi; module V202502; module SuggestedAdUnitService 14 | class SuggestedAdUnitService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def get_suggested_ad_units_by_statement(*args, &block) 21 | return execute_action('get_suggested_ad_units_by_statement', args, &block) 22 | end 23 | 24 | def get_suggested_ad_units_by_statement_to_xml(*args) 25 | return get_soap_xml('get_suggested_ad_units_by_statement', args) 26 | end 27 | 28 | def perform_suggested_ad_unit_action(*args, &block) 29 | return execute_action('perform_suggested_ad_unit_action', args, &block) 30 | end 31 | 32 | def perform_suggested_ad_unit_action_to_xml(*args) 33 | return get_soap_xml('perform_suggested_ad_unit_action', args) 34 | end 35 | 36 | private 37 | 38 | def get_service_registry() 39 | return SuggestedAdUnitServiceRegistry 40 | end 41 | 42 | def get_module() 43 | return AdManagerApi::V202502::SuggestedAdUnitService 44 | end 45 | end 46 | end; end; end 47 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/team_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:06. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/team_service_registry' 12 | 13 | module AdManagerApi; module V202502; module TeamService 14 | class TeamService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def create_teams(*args, &block) 21 | return execute_action('create_teams', args, &block) 22 | end 23 | 24 | def create_teams_to_xml(*args) 25 | return get_soap_xml('create_teams', args) 26 | end 27 | 28 | def get_teams_by_statement(*args, &block) 29 | return execute_action('get_teams_by_statement', args, &block) 30 | end 31 | 32 | def get_teams_by_statement_to_xml(*args) 33 | return get_soap_xml('get_teams_by_statement', args) 34 | end 35 | 36 | def perform_team_action(*args, &block) 37 | return execute_action('perform_team_action', args, &block) 38 | end 39 | 40 | def perform_team_action_to_xml(*args) 41 | return get_soap_xml('perform_team_action', args) 42 | end 43 | 44 | def update_teams(*args, &block) 45 | return execute_action('update_teams', args, &block) 46 | end 47 | 48 | def update_teams_to_xml(*args) 49 | return get_soap_xml('update_teams', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return TeamServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202502::TeamService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202502/yield_group_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:09. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202502/yield_group_service_registry' 12 | 13 | module AdManagerApi; module V202502; module YieldGroupService 14 | class YieldGroupService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202502' 17 | super(config, endpoint, namespace, :v202502) 18 | end 19 | 20 | def create_yield_groups(*args, &block) 21 | return execute_action('create_yield_groups', args, &block) 22 | end 23 | 24 | def create_yield_groups_to_xml(*args) 25 | return get_soap_xml('create_yield_groups', args) 26 | end 27 | 28 | def get_yield_groups_by_statement(*args, &block) 29 | return execute_action('get_yield_groups_by_statement', args, &block) 30 | end 31 | 32 | def get_yield_groups_by_statement_to_xml(*args) 33 | return get_soap_xml('get_yield_groups_by_statement', args) 34 | end 35 | 36 | def get_yield_partners(*args, &block) 37 | return execute_action('get_yield_partners', args, &block) 38 | end 39 | 40 | def get_yield_partners_to_xml(*args) 41 | return get_soap_xml('get_yield_partners', args) 42 | end 43 | 44 | def update_yield_groups(*args, &block) 45 | return execute_action('update_yield_groups', args, &block) 46 | end 47 | 48 | def update_yield_groups_to_xml(*args) 49 | return get_soap_xml('update_yield_groups', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return YieldGroupServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202502::YieldGroupService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/ads_txt_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:16. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/ads_txt_service_registry' 12 | 13 | module AdManagerApi; module V202505; module AdsTxtService 14 | class AdsTxtService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def get_mcm_supply_chain_diagnostics_download_url(*args, &block) 21 | return execute_action('get_mcm_supply_chain_diagnostics_download_url', args, &block) 22 | end 23 | 24 | def get_mcm_supply_chain_diagnostics_download_url_to_xml(*args) 25 | return get_soap_xml('get_mcm_supply_chain_diagnostics_download_url', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return AdsTxtServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202505::AdsTxtService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/company_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:17. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/company_service_registry' 12 | 13 | module AdManagerApi; module V202505; module CompanyService 14 | class CompanyService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def create_companies(*args, &block) 21 | return execute_action('create_companies', args, &block) 22 | end 23 | 24 | def create_companies_to_xml(*args) 25 | return get_soap_xml('create_companies', args) 26 | end 27 | 28 | def get_companies_by_statement(*args, &block) 29 | return execute_action('get_companies_by_statement', args, &block) 30 | end 31 | 32 | def get_companies_by_statement_to_xml(*args) 33 | return get_soap_xml('get_companies_by_statement', args) 34 | end 35 | 36 | def perform_company_action(*args, &block) 37 | return execute_action('perform_company_action', args, &block) 38 | end 39 | 40 | def perform_company_action_to_xml(*args) 41 | return get_soap_xml('perform_company_action', args) 42 | end 43 | 44 | def update_companies(*args, &block) 45 | return execute_action('update_companies', args, &block) 46 | end 47 | 48 | def update_companies_to_xml(*args) 49 | return get_soap_xml('update_companies', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return CompanyServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202505::CompanyService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/contact_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:20. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/contact_service_registry' 12 | 13 | module AdManagerApi; module V202505; module ContactService 14 | class ContactService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def create_contacts(*args, &block) 21 | return execute_action('create_contacts', args, &block) 22 | end 23 | 24 | def create_contacts_to_xml(*args) 25 | return get_soap_xml('create_contacts', args) 26 | end 27 | 28 | def get_contacts_by_statement(*args, &block) 29 | return execute_action('get_contacts_by_statement', args, &block) 30 | end 31 | 32 | def get_contacts_by_statement_to_xml(*args) 33 | return get_soap_xml('get_contacts_by_statement', args) 34 | end 35 | 36 | def update_contacts(*args, &block) 37 | return execute_action('update_contacts', args, &block) 38 | end 39 | 40 | def update_contacts_to_xml(*args) 41 | return get_soap_xml('update_contacts', args) 42 | end 43 | 44 | private 45 | 46 | def get_service_registry() 47 | return ContactServiceRegistry 48 | end 49 | 50 | def get_module() 51 | return AdManagerApi::V202505::ContactService 52 | end 53 | end 54 | end; end; end 55 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/content_bundle_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:20. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/content_bundle_service_registry' 12 | 13 | module AdManagerApi; module V202505; module ContentBundleService 14 | class ContentBundleService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def create_content_bundles(*args, &block) 21 | return execute_action('create_content_bundles', args, &block) 22 | end 23 | 24 | def create_content_bundles_to_xml(*args) 25 | return get_soap_xml('create_content_bundles', args) 26 | end 27 | 28 | def get_content_bundles_by_statement(*args, &block) 29 | return execute_action('get_content_bundles_by_statement', args, &block) 30 | end 31 | 32 | def get_content_bundles_by_statement_to_xml(*args) 33 | return get_soap_xml('get_content_bundles_by_statement', args) 34 | end 35 | 36 | def perform_content_bundle_action(*args, &block) 37 | return execute_action('perform_content_bundle_action', args, &block) 38 | end 39 | 40 | def perform_content_bundle_action_to_xml(*args) 41 | return get_soap_xml('perform_content_bundle_action', args) 42 | end 43 | 44 | def update_content_bundles(*args, &block) 45 | return execute_action('update_content_bundles', args, &block) 46 | end 47 | 48 | def update_content_bundles_to_xml(*args) 49 | return get_soap_xml('update_content_bundles', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return ContentBundleServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202505::ContentBundleService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/content_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:21. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/content_service_registry' 12 | 13 | module AdManagerApi; module V202505; module ContentService 14 | class ContentService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def get_content_by_statement(*args, &block) 21 | return execute_action('get_content_by_statement', args, &block) 22 | end 23 | 24 | def get_content_by_statement_to_xml(*args) 25 | return get_soap_xml('get_content_by_statement', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return ContentServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202505::ContentService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/creative_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:22. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/creative_service_registry' 12 | 13 | module AdManagerApi; module V202505; module CreativeService 14 | class CreativeService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def create_creatives(*args, &block) 21 | return execute_action('create_creatives', args, &block) 22 | end 23 | 24 | def create_creatives_to_xml(*args) 25 | return get_soap_xml('create_creatives', args) 26 | end 27 | 28 | def get_creatives_by_statement(*args, &block) 29 | return execute_action('get_creatives_by_statement', args, &block) 30 | end 31 | 32 | def get_creatives_by_statement_to_xml(*args) 33 | return get_soap_xml('get_creatives_by_statement', args) 34 | end 35 | 36 | def perform_creative_action(*args, &block) 37 | return execute_action('perform_creative_action', args, &block) 38 | end 39 | 40 | def perform_creative_action_to_xml(*args) 41 | return get_soap_xml('perform_creative_action', args) 42 | end 43 | 44 | def update_creatives(*args, &block) 45 | return execute_action('update_creatives', args, &block) 46 | end 47 | 48 | def update_creatives_to_xml(*args) 49 | return get_soap_xml('update_creatives', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return CreativeServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202505::CreativeService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/creative_set_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:24. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/creative_set_service_registry' 12 | 13 | module AdManagerApi; module V202505; module CreativeSetService 14 | class CreativeSetService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def create_creative_set(*args, &block) 21 | return execute_action('create_creative_set', args, &block) 22 | end 23 | 24 | def create_creative_set_to_xml(*args) 25 | return get_soap_xml('create_creative_set', args) 26 | end 27 | 28 | def get_creative_sets_by_statement(*args, &block) 29 | return execute_action('get_creative_sets_by_statement', args, &block) 30 | end 31 | 32 | def get_creative_sets_by_statement_to_xml(*args) 33 | return get_soap_xml('get_creative_sets_by_statement', args) 34 | end 35 | 36 | def update_creative_set(*args, &block) 37 | return execute_action('update_creative_set', args, &block) 38 | end 39 | 40 | def update_creative_set_to_xml(*args) 41 | return get_soap_xml('update_creative_set', args) 42 | end 43 | 44 | private 45 | 46 | def get_service_registry() 47 | return CreativeSetServiceRegistry 48 | end 49 | 50 | def get_module() 51 | return AdManagerApi::V202505::CreativeSetService 52 | end 53 | end 54 | end; end; end 55 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/creative_template_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:25. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/creative_template_service_registry' 12 | 13 | module AdManagerApi; module V202505; module CreativeTemplateService 14 | class CreativeTemplateService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def get_creative_templates_by_statement(*args, &block) 21 | return execute_action('get_creative_templates_by_statement', args, &block) 22 | end 23 | 24 | def get_creative_templates_by_statement_to_xml(*args) 25 | return get_soap_xml('get_creative_templates_by_statement', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return CreativeTemplateServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202505::CreativeTemplateService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/label_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:37. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/label_service_registry' 12 | 13 | module AdManagerApi; module V202505; module LabelService 14 | class LabelService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def create_labels(*args, &block) 21 | return execute_action('create_labels', args, &block) 22 | end 23 | 24 | def create_labels_to_xml(*args) 25 | return get_soap_xml('create_labels', args) 26 | end 27 | 28 | def get_labels_by_statement(*args, &block) 29 | return execute_action('get_labels_by_statement', args, &block) 30 | end 31 | 32 | def get_labels_by_statement_to_xml(*args) 33 | return get_soap_xml('get_labels_by_statement', args) 34 | end 35 | 36 | def perform_label_action(*args, &block) 37 | return execute_action('perform_label_action', args, &block) 38 | end 39 | 40 | def perform_label_action_to_xml(*args) 41 | return get_soap_xml('perform_label_action', args) 42 | end 43 | 44 | def update_labels(*args, &block) 45 | return execute_action('update_labels', args, &block) 46 | end 47 | 48 | def update_labels_to_xml(*args) 49 | return get_soap_xml('update_labels', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return LabelServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202505::LabelService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/line_item_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:40. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/line_item_service_registry' 12 | 13 | module AdManagerApi; module V202505; module LineItemService 14 | class LineItemService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def create_line_items(*args, &block) 21 | return execute_action('create_line_items', args, &block) 22 | end 23 | 24 | def create_line_items_to_xml(*args) 25 | return get_soap_xml('create_line_items', args) 26 | end 27 | 28 | def get_line_items_by_statement(*args, &block) 29 | return execute_action('get_line_items_by_statement', args, &block) 30 | end 31 | 32 | def get_line_items_by_statement_to_xml(*args) 33 | return get_soap_xml('get_line_items_by_statement', args) 34 | end 35 | 36 | def perform_line_item_action(*args, &block) 37 | return execute_action('perform_line_item_action', args, &block) 38 | end 39 | 40 | def perform_line_item_action_to_xml(*args) 41 | return get_soap_xml('perform_line_item_action', args) 42 | end 43 | 44 | def update_line_items(*args, &block) 45 | return execute_action('update_line_items', args, &block) 46 | end 47 | 48 | def update_line_items_to_xml(*args) 49 | return get_soap_xml('update_line_items', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return LineItemServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202505::LineItemService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/line_item_template_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:43. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/line_item_template_service_registry' 12 | 13 | module AdManagerApi; module V202505; module LineItemTemplateService 14 | class LineItemTemplateService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def get_line_item_templates_by_statement(*args, &block) 21 | return execute_action('get_line_item_templates_by_statement', args, &block) 22 | end 23 | 24 | def get_line_item_templates_by_statement_to_xml(*args) 25 | return get_soap_xml('get_line_item_templates_by_statement', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return LineItemTemplateServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202505::LineItemTemplateService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/native_style_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:47. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/native_style_service_registry' 12 | 13 | module AdManagerApi; module V202505; module NativeStyleService 14 | class NativeStyleService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def create_native_styles(*args, &block) 21 | return execute_action('create_native_styles', args, &block) 22 | end 23 | 24 | def create_native_styles_to_xml(*args) 25 | return get_soap_xml('create_native_styles', args) 26 | end 27 | 28 | def get_native_styles_by_statement(*args, &block) 29 | return execute_action('get_native_styles_by_statement', args, &block) 30 | end 31 | 32 | def get_native_styles_by_statement_to_xml(*args) 33 | return get_soap_xml('get_native_styles_by_statement', args) 34 | end 35 | 36 | def perform_native_style_action(*args, &block) 37 | return execute_action('perform_native_style_action', args, &block) 38 | end 39 | 40 | def perform_native_style_action_to_xml(*args) 41 | return get_soap_xml('perform_native_style_action', args) 42 | end 43 | 44 | def update_native_styles(*args, &block) 45 | return execute_action('update_native_styles', args, &block) 46 | end 47 | 48 | def update_native_styles_to_xml(*args) 49 | return get_soap_xml('update_native_styles', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return NativeStyleServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202505::NativeStyleService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/order_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:49. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/order_service_registry' 12 | 13 | module AdManagerApi; module V202505; module OrderService 14 | class OrderService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def create_orders(*args, &block) 21 | return execute_action('create_orders', args, &block) 22 | end 23 | 24 | def create_orders_to_xml(*args) 25 | return get_soap_xml('create_orders', args) 26 | end 27 | 28 | def get_orders_by_statement(*args, &block) 29 | return execute_action('get_orders_by_statement', args, &block) 30 | end 31 | 32 | def get_orders_by_statement_to_xml(*args) 33 | return get_soap_xml('get_orders_by_statement', args) 34 | end 35 | 36 | def perform_order_action(*args, &block) 37 | return execute_action('perform_order_action', args, &block) 38 | end 39 | 40 | def perform_order_action_to_xml(*args) 41 | return get_soap_xml('perform_order_action', args) 42 | end 43 | 44 | def update_orders(*args, &block) 45 | return execute_action('update_orders', args, &block) 46 | end 47 | 48 | def update_orders_to_xml(*args) 49 | return get_soap_xml('update_orders', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return OrderServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202505::OrderService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/placement_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:52. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/placement_service_registry' 12 | 13 | module AdManagerApi; module V202505; module PlacementService 14 | class PlacementService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def create_placements(*args, &block) 21 | return execute_action('create_placements', args, &block) 22 | end 23 | 24 | def create_placements_to_xml(*args) 25 | return get_soap_xml('create_placements', args) 26 | end 27 | 28 | def get_placements_by_statement(*args, &block) 29 | return execute_action('get_placements_by_statement', args, &block) 30 | end 31 | 32 | def get_placements_by_statement_to_xml(*args) 33 | return get_soap_xml('get_placements_by_statement', args) 34 | end 35 | 36 | def perform_placement_action(*args, &block) 37 | return execute_action('perform_placement_action', args, &block) 38 | end 39 | 40 | def perform_placement_action_to_xml(*args) 41 | return get_soap_xml('perform_placement_action', args) 42 | end 43 | 44 | def update_placements(*args, &block) 45 | return execute_action('update_placements', args, &block) 46 | end 47 | 48 | def update_placements_to_xml(*args) 49 | return get_soap_xml('update_placements', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return PlacementServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202505::PlacementService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/publisher_query_language_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:50:59. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/publisher_query_language_service_registry' 12 | 13 | module AdManagerApi; module V202505; module PublisherQueryLanguageService 14 | class PublisherQueryLanguageService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def select(*args, &block) 21 | return execute_action('select', args, &block) 22 | end 23 | 24 | def select_to_xml(*args) 25 | return get_soap_xml('select', args) 26 | end 27 | 28 | private 29 | 30 | def get_service_registry() 31 | return PublisherQueryLanguageServiceRegistry 32 | end 33 | 34 | def get_module() 35 | return AdManagerApi::V202505::PublisherQueryLanguageService 36 | end 37 | end 38 | end; end; end 39 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/segment_population_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:51:03. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/segment_population_service_registry' 12 | 13 | module AdManagerApi; module V202505; module SegmentPopulationService 14 | class SegmentPopulationService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def get_segment_population_results_by_ids(*args, &block) 21 | return execute_action('get_segment_population_results_by_ids', args, &block) 22 | end 23 | 24 | def get_segment_population_results_by_ids_to_xml(*args) 25 | return get_soap_xml('get_segment_population_results_by_ids', args) 26 | end 27 | 28 | def perform_segment_population_action(*args, &block) 29 | return execute_action('perform_segment_population_action', args, &block) 30 | end 31 | 32 | def perform_segment_population_action_to_xml(*args) 33 | return get_soap_xml('perform_segment_population_action', args) 34 | end 35 | 36 | def update_segment_memberships(*args, &block) 37 | return execute_action('update_segment_memberships', args, &block) 38 | end 39 | 40 | def update_segment_memberships_to_xml(*args) 41 | return get_soap_xml('update_segment_memberships', args) 42 | end 43 | 44 | private 45 | 46 | def get_service_registry() 47 | return SegmentPopulationServiceRegistry 48 | end 49 | 50 | def get_module() 51 | return AdManagerApi::V202505::SegmentPopulationService 52 | end 53 | end 54 | end; end; end 55 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/site_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:51:03. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/site_service_registry' 12 | 13 | module AdManagerApi; module V202505; module SiteService 14 | class SiteService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def create_sites(*args, &block) 21 | return execute_action('create_sites', args, &block) 22 | end 23 | 24 | def create_sites_to_xml(*args) 25 | return get_soap_xml('create_sites', args) 26 | end 27 | 28 | def get_sites_by_statement(*args, &block) 29 | return execute_action('get_sites_by_statement', args, &block) 30 | end 31 | 32 | def get_sites_by_statement_to_xml(*args) 33 | return get_soap_xml('get_sites_by_statement', args) 34 | end 35 | 36 | def perform_site_action(*args, &block) 37 | return execute_action('perform_site_action', args, &block) 38 | end 39 | 40 | def perform_site_action_to_xml(*args) 41 | return get_soap_xml('perform_site_action', args) 42 | end 43 | 44 | def update_sites(*args, &block) 45 | return execute_action('update_sites', args, &block) 46 | end 47 | 48 | def update_sites_to_xml(*args) 49 | return get_soap_xml('update_sites', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return SiteServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202505::SiteService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/stream_activity_monitor_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:51:03. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/stream_activity_monitor_service_registry' 12 | 13 | module AdManagerApi; module V202505; module StreamActivityMonitorService 14 | class StreamActivityMonitorService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def get_sam_sessions_by_statement(*args, &block) 21 | return execute_action('get_sam_sessions_by_statement', args, &block) 22 | end 23 | 24 | def get_sam_sessions_by_statement_to_xml(*args) 25 | return get_soap_xml('get_sam_sessions_by_statement', args) 26 | end 27 | 28 | def register_sessions_for_monitoring(*args, &block) 29 | return execute_action('register_sessions_for_monitoring', args, &block) 30 | end 31 | 32 | def register_sessions_for_monitoring_to_xml(*args) 33 | return get_soap_xml('register_sessions_for_monitoring', args) 34 | end 35 | 36 | private 37 | 38 | def get_service_registry() 39 | return StreamActivityMonitorServiceRegistry 40 | end 41 | 42 | def get_module() 43 | return AdManagerApi::V202505::StreamActivityMonitorService 44 | end 45 | end 46 | end; end; end 47 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/suggested_ad_unit_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:51:04. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/suggested_ad_unit_service_registry' 12 | 13 | module AdManagerApi; module V202505; module SuggestedAdUnitService 14 | class SuggestedAdUnitService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def get_suggested_ad_units_by_statement(*args, &block) 21 | return execute_action('get_suggested_ad_units_by_statement', args, &block) 22 | end 23 | 24 | def get_suggested_ad_units_by_statement_to_xml(*args) 25 | return get_soap_xml('get_suggested_ad_units_by_statement', args) 26 | end 27 | 28 | def perform_suggested_ad_unit_action(*args, &block) 29 | return execute_action('perform_suggested_ad_unit_action', args, &block) 30 | end 31 | 32 | def perform_suggested_ad_unit_action_to_xml(*args) 33 | return get_soap_xml('perform_suggested_ad_unit_action', args) 34 | end 35 | 36 | private 37 | 38 | def get_service_registry() 39 | return SuggestedAdUnitServiceRegistry 40 | end 41 | 42 | def get_module() 43 | return AdManagerApi::V202505::SuggestedAdUnitService 44 | end 45 | end 46 | end; end; end 47 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/team_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:51:06. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/team_service_registry' 12 | 13 | module AdManagerApi; module V202505; module TeamService 14 | class TeamService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def create_teams(*args, &block) 21 | return execute_action('create_teams', args, &block) 22 | end 23 | 24 | def create_teams_to_xml(*args) 25 | return get_soap_xml('create_teams', args) 26 | end 27 | 28 | def get_teams_by_statement(*args, &block) 29 | return execute_action('get_teams_by_statement', args, &block) 30 | end 31 | 32 | def get_teams_by_statement_to_xml(*args) 33 | return get_soap_xml('get_teams_by_statement', args) 34 | end 35 | 36 | def perform_team_action(*args, &block) 37 | return execute_action('perform_team_action', args, &block) 38 | end 39 | 40 | def perform_team_action_to_xml(*args) 41 | return get_soap_xml('perform_team_action', args) 42 | end 43 | 44 | def update_teams(*args, &block) 45 | return execute_action('update_teams', args, &block) 46 | end 47 | 48 | def update_teams_to_xml(*args) 49 | return get_soap_xml('update_teams', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return TeamServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202505::TeamService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/v202505/yield_group_service.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # This is auto-generated code, changes will be overwritten. 4 | # 5 | # Copyright:: Copyright 2025, Google Inc. All Rights Reserved. 6 | # License:: Licensed under the Apache License, Version 2.0. 7 | # 8 | # Code generated by AdsCommon library 3.0.0 on 2025-05-13 20:51:08. 9 | 10 | require 'ads_common/savon_service' 11 | require 'ad_manager_api/v202505/yield_group_service_registry' 12 | 13 | module AdManagerApi; module V202505; module YieldGroupService 14 | class YieldGroupService < AdsCommon::SavonService 15 | def initialize(config, endpoint) 16 | namespace = 'https://www.google.com/apis/ads/publisher/v202505' 17 | super(config, endpoint, namespace, :v202505) 18 | end 19 | 20 | def create_yield_groups(*args, &block) 21 | return execute_action('create_yield_groups', args, &block) 22 | end 23 | 24 | def create_yield_groups_to_xml(*args) 25 | return get_soap_xml('create_yield_groups', args) 26 | end 27 | 28 | def get_yield_groups_by_statement(*args, &block) 29 | return execute_action('get_yield_groups_by_statement', args, &block) 30 | end 31 | 32 | def get_yield_groups_by_statement_to_xml(*args) 33 | return get_soap_xml('get_yield_groups_by_statement', args) 34 | end 35 | 36 | def get_yield_partners(*args, &block) 37 | return execute_action('get_yield_partners', args, &block) 38 | end 39 | 40 | def get_yield_partners_to_xml(*args) 41 | return get_soap_xml('get_yield_partners', args) 42 | end 43 | 44 | def update_yield_groups(*args, &block) 45 | return execute_action('update_yield_groups', args, &block) 46 | end 47 | 48 | def update_yield_groups_to_xml(*args) 49 | return get_soap_xml('update_yield_groups', args) 50 | end 51 | 52 | private 53 | 54 | def get_service_registry() 55 | return YieldGroupServiceRegistry 56 | end 57 | 58 | def get_module() 59 | return AdManagerApi::V202505::YieldGroupService 60 | end 61 | end 62 | end; end; end 63 | -------------------------------------------------------------------------------- /ad_manager_api/lib/ad_manager_api/version.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # Copyright:: Copyright 2011, Google Inc. All Rights Reserved. 4 | # 5 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 14 | # implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | # Module to keep the current library version. 19 | 20 | module AdManagerApi 21 | module ApiConfig 22 | CLIENT_LIB_VERSION = '4.1.0' 23 | end 24 | end 25 | -------------------------------------------------------------------------------- /ad_manager_api/test/ad_manager_api/test_ad_manager_utils.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # Encoding: utf-8 3 | # 4 | # Copyright:: Copyright 2017, Google Inc. All Rights Reserved. 5 | # 6 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 15 | # implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | # Tests the Ad Manager utils. 20 | 21 | require 'test/unit' 22 | require 'ad_manager_api/utils' 23 | require 'thread' 24 | 25 | 26 | class TestUtils < Test::Unit::TestCase 27 | @@lock = Mutex.new 28 | 29 | def test_utility_registry() 30 | util_registry = AdManagerApi::Utils::UtilityRegistry.instance 31 | @@lock.synchronize do 32 | util_registry.extract! # clear any previously recorded utilities 33 | assert_equal(0, util_registry.length) 34 | util_registry.add('item1') 35 | assert_equal(1, util_registry.length) 36 | util_registry.add('item2') 37 | assert_equal(2, util_registry.length) 38 | assert_equal(Set.new(['item1', 'item2']), util_registry.extract!) 39 | assert_equal(0, util_registry.length) 40 | end 41 | end 42 | 43 | def test_utility_registry_disabled() 44 | util_registry = AdManagerApi::Utils::UtilityRegistry.instance 45 | @@lock.synchronize do 46 | util_registry.extract! # clear any previously recorded utilities 47 | util_registry.enabled = false 48 | assert_equal(0, util_registry.length) 49 | util_registry.add('item1') 50 | assert_equal(0, util_registry.length) 51 | util_registry.enabled = true # re-enable to restore default state 52 | end 53 | end 54 | end 55 | -------------------------------------------------------------------------------- /ad_manager_api/test/ad_manager_api/test_config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # This is a test configuration file for Ad Manager API library. 3 | :authentication: 4 | :method : 'OAuth2' 5 | :oauth2_client_id : 'myClientId' 6 | :oauth2_client_secret : 'This is MY secret!' 7 | :oauth2_token : 'my access token' 8 | :application_name : 'ruby_test_suite' 9 | :network_code : 1234567 10 | -------------------------------------------------------------------------------- /ad_manager_api/test/suite_unittests.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # Encoding: utf-8 3 | # 4 | # Copyright:: Copyright 2012, Google Inc. All Rights Reserved. 5 | # 6 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 15 | # implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | # Test suite for unit tests. 20 | 21 | $:.unshift File.expand_path('../../lib/', __FILE__) 22 | $:.unshift File.expand_path('../../', __FILE__) 23 | 24 | # Ad Manager API units tests. 25 | ad_manager_mask = File.join( 26 | File.dirname(__FILE__), 'ad_manager_api', 'test_*.rb' 27 | ) 28 | Dir.glob(ad_manager_mask).each { |file| require file } 29 | 30 | # Ad Manager API bug tests. 31 | bugs_mask = File.join(File.dirname(__FILE__), 'bugs', 'test_*.rb') 32 | Dir.glob(bugs_mask).each { |file| require file } 33 | -------------------------------------------------------------------------------- /ads_common/Rakefile: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # Copyright:: Copyright 2010, Google Inc. All Rights Reserved. 4 | # 5 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 14 | # implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | # Rakefile for the ads_common package. 19 | 20 | require 'rake/testtask' 21 | 22 | desc 'Default target - build.' 23 | task :default => [:build, :test] 24 | 25 | desc 'Package the Common library into a gem file.' 26 | task :build do 27 | result = system('/usr/bin/env gem build google-ads-common.gemspec') 28 | raise 'Build failed.' unless result 29 | end 30 | 31 | desc 'Perform the unit testing.' 32 | Rake::TestTask.new do |t| 33 | test_files_mask = File.join(File.dirname(__FILE__), 'test', 'test_*.rb') 34 | t.test_files = FileList[Dir.glob(test_files_mask)] 35 | end 36 | 37 | desc 'Run tests coverage tool.' 38 | task :coverage do 39 | result = system('/usr/bin/env ruby test/coverage.rb') 40 | raise 'Coverage run failed.' unless result 41 | end 42 | -------------------------------------------------------------------------------- /ads_common/lib/ads_common/env_check.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # Copyright:: Copyright 2016, Google Inc. All Rights Reserved. 4 | # 5 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 14 | # implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | # Check whether the current version of Ruby is supported by the client library. 19 | 20 | require 'ads_common/errors' 21 | 22 | MIN_RUBY_RECOMMENDED_VERSION = Gem::Version.new('2.1') 23 | 24 | # Checks current ruby version to make sure it's supported. 25 | def check_version(logger) 26 | if Gem::Version.new(RUBY_VERSION.dup()) < MIN_RUBY_RECOMMENDED_VERSION 27 | logger.warn( 28 | ('You are using a deprecated version of Ruby (%s). ' + 29 | 'Consider upgrading to a fully supported version %s or later') % 30 | [RUBY_VERSION, MIN_RUBY_RECOMMENDED_VERSION] 31 | ) 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /ads_common/lib/ads_common/savon_headers/oauth_header_handler.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # Copyright:: Copyright 2011, Google Inc. All Rights Reserved. 4 | # 5 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 14 | # implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | # Handles SOAP headers and namespaces definition for OAuth type header. 19 | 20 | require 'ads_common/savon_headers/base_header_handler' 21 | 22 | module AdsCommon 23 | module SavonHeaders 24 | class OAuthHeaderHandler < BaseHeaderHandler 25 | 26 | private 27 | 28 | # Generates SOAP request header with login credentials and namespace 29 | # definition for OAuth authentication. 30 | # 31 | # Args: 32 | # - request: a HTTPI Request to generate headers for 33 | # - soap: a Savon soap object to fill fields in 34 | # 35 | # Returns: 36 | # - Hash containing a header with filled in credentials 37 | # 38 | def generate_headers(request, soap) 39 | super(request, soap) 40 | credentials = @credential_handler.credentials 41 | request.url = soap.endpoint 42 | request.headers['Authorization'] = 43 | @auth_handler.auth_string(credentials) 44 | end 45 | end 46 | end 47 | end 48 | -------------------------------------------------------------------------------- /ads_common/lib/ads_common/version.rb: -------------------------------------------------------------------------------- 1 | # Encoding: utf-8 2 | # 3 | # Copyright:: Copyright 2012, Google Inc. All Rights Reserved. 4 | # 5 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 14 | # implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | # Module to keep the current library version. 19 | 20 | module AdsCommon 21 | module ApiConfig 22 | CLIENT_LIB_VERSION = '3.0.0' 23 | end 24 | end 25 | -------------------------------------------------------------------------------- /ads_common/test/coverage.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # Encoding: utf-8 3 | # 4 | # Copyright:: Copyright 2012, Google Inc. All Rights Reserved. 5 | # 6 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 15 | # implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | # Runs test with coverage tool. 20 | 21 | require 'simplecov' 22 | 23 | SimpleCov.start 24 | 25 | $:.unshift File.expand_path('../../', __FILE__) 26 | require File.join(File.dirname(__FILE__), 'suite_unittests.rb') 27 | 28 | # Now loading all files in the library to make sure we hit all untested files. 29 | lib_base_path = File.expand_path('../../lib', __FILE__) 30 | $:.unshift lib_base_path 31 | 32 | code_files_mask = File.join(lib_base_path, '**/*.rb') 33 | Dir.glob(code_files_mask).each {|file| require file} 34 | -------------------------------------------------------------------------------- /ads_common/test/suite_unittests.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # Encoding: utf-8 3 | # 4 | # Copyright:: Copyright 2012, Google Inc. All Rights Reserved. 5 | # 6 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 15 | # implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | # Test suite for unit tests. 20 | 21 | require 'test/unit' 22 | 23 | $:.unshift File.expand_path('../../lib/', __FILE__) 24 | $:.unshift File.expand_path('../../', __FILE__) 25 | 26 | # Ads Common units tests. 27 | test_files_mask = File.join(File.dirname(__FILE__), 'test_*.rb') 28 | Dir.glob(test_files_mask).each {|file| require file} 29 | -------------------------------------------------------------------------------- /ads_common/test/test_config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # This is a test configuration file for Ads Common library. 3 | :authentication: 4 | :method: ClientLogin 5 | :application_name: ruby_test_suit 6 | :password: mySecretPassword 7 | :email: root@example.com 8 | :network_code: 1234567 9 | :service: 10 | :environment: sandbox 11 | :use_ruby_names: false 12 | -------------------------------------------------------------------------------- /ads_common/test/test_env.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # Encoding: utf-8 3 | # 4 | # Copyright:: Copyright 2016, Google Inc. All Rights Reserved. 5 | # 6 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 15 | # implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | # Tests environment is correct. 20 | 21 | require 'rake' 22 | require 'openssl' 23 | require 'test/unit' 24 | 25 | class TestEnv < Test::Unit::TestCase 26 | 27 | # Output ruby interpreter version to the tests log. 28 | def test_ruby_version 29 | puts "\nRunning tests with %s-%s-%s.\n" % 30 | [RUBY_ENGINE, RUBY_VERSION, RUBY_PATCHLEVEL] 31 | end 32 | 33 | # Output SSL version to the tests log. There is a known issue with this 34 | # required property not defined in some JRuby implementations. 35 | def test_openssl_version 36 | puts "\nUsing OpenSSL %s with %d methods.\n" % 37 | [OpenSSL::OPENSSL_VERSION, OpenSSL::SSL::SSLContext::METHODS.count] 38 | end 39 | 40 | # Output rake version to the tests log. 41 | def test_rake_version 42 | puts "\nRunning with rake %s.\n" % Rake::VERSION if defined?(Rake::VERSION) 43 | end 44 | end 45 | -------------------------------------------------------------------------------- /ads_common/test/test_oauth2_service_account_handler.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # Encoding: utf-8 3 | # 4 | # Copyright:: Copyright 2016, Google Inc. All Rights Reserved. 5 | # 6 | # License:: Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 15 | # implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | # Test OAuth2 service account authentication. 20 | 21 | require 'tempfile' 22 | require 'test/unit' 23 | require 'ads_common/auth/oauth2_service_account_handler' 24 | require 'ads_common/config' 25 | 26 | module AdsCommon 27 | module Auth 28 | class OAuth2ServiceAccountHandler 29 | public :validate_credentials 30 | end 31 | end 32 | end 33 | 34 | class TestOAuthServiceAccount < Test::Unit::TestCase 35 | def test_file_extension_check() 36 | assert_nothing_raised do 37 | validate_credentials(['test', '.json']) 38 | end 39 | assert_raise(AdsCommon::Errors::AuthError) do 40 | validate_credentials(['test', '.p12']) 41 | end 42 | assert_raises(AdsCommon::Errors::AuthError) do 43 | validate_credentials(['test', '.other']) 44 | end 45 | end 46 | 47 | def validate_credentials(filename) 48 | file = Tempfile.new(filename) 49 | credentials = { 50 | :method => 'OAUTH2_SERVICE_ACCOUNT', 51 | :oauth2_keyfile => file.path, 52 | :oauth2_issuer => 'issuer', 53 | :oauth2_secret => 'secret' 54 | } 55 | handler = AdsCommon::Auth::OAuth2ServiceAccountHandler.new( 56 | AdsCommon::Config.new(), 'https://www.googleapis.com/auth/adwords') 57 | handler.validate_credentials(credentials) 58 | file.close 59 | file.unlink 60 | end 61 | end 62 | -------------------------------------------------------------------------------- /ads_savon/CONTRIBUTING: -------------------------------------------------------------------------------- 1 | Want to contribute? Great! First, read this page (including the small print at the end). 2 | 3 | ### Before you contribute 4 | Before we can use your code, you must sign the 5 | [Google Individual Contributor License Agreement](https://developers.google.com/open-source/cla/individual?csw=1) 6 | (CLA), which you can do online. The CLA is necessary mainly because you own the 7 | copyright to your changes, even after your contribution becomes part of our 8 | codebase, so we need your permission to use and distribute your code. We also 9 | need to be sure of various other things—for instance that you'll tell us if you 10 | know that your code infringes on other people's patents. You don't have to sign 11 | the CLA until after you've submitted your code for review and a member has 12 | approved it, but you must do it before we can put your code into our codebase. 13 | Before you start working on a larger contribution, you should get in touch with 14 | us first through the issue tracker with your idea so that we can help out and 15 | possibly guide you. Coordinating up front makes it much easier to avoid 16 | frustration later on. 17 | 18 | ### Code reviews 19 | All submissions, including submissions by project members, require review. We 20 | use Github pull requests for this purpose. 21 | 22 | ### The small print 23 | Contributions made by corporations are covered by a different agreement than 24 | the one above, the Software Grant and Corporate Contributor License Agreement. 25 | -------------------------------------------------------------------------------- /ads_savon/ChangeLog: -------------------------------------------------------------------------------- 1 | 1.0.3: 2 | - Relaxed builder dependencies to improve compatibility with Rails. 3 | 4 | 1.0.2: 5 | - Fixing https://github.com/googleads/google-api-ads-ruby/issues/7 6 | - Updating nokogiri and builder dependencies to newer versions. 7 | 8 | 1.0.1: 9 | - Releasing a new version to fix RubyGems file permissions bug. 10 | 11 | 1.0.0: 12 | - Initial release of Google Ads Savon. This is a fork of Savon version 1, 13 | which can be found here: https://github.com/savonrb/savon/tree/version1 14 | -------------------------------------------------------------------------------- /ads_savon/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Daniel Harrington 2 | Copyright (c) 2015 Google, Inc. 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining 5 | a copy of this software and associated documentation files (the 6 | "Software"), to deal in the Software without restriction, including 7 | without limitation the rights to use, copy, modify, merge, publish, 8 | distribute, sublicense, and/or sell copies of the Software, and to 9 | permit persons to whom the Software is furnished to do so, subject to 10 | the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /ads_savon/README.md: -------------------------------------------------------------------------------- 1 | # Google Ads Savon 2 | 3 | Google Ads Savon is a fork of [Savon 1](http://savonrb.com/version1/) 4 | specific for use with the Google Ads Ruby Client Library. 5 | 6 | Google Ads Savon is available through [Rubygems](http://rubygems.org/gems/google-ads-savon) and can be installed via: 7 | 8 | $ gem install google-ads-savon 9 | 10 | This library is not intended for re-use outside of google-ads-common. 11 | 12 | This is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google. 13 | 14 | Documentation 15 | ------------- 16 | 17 | Read about the original library at [savonrb.com/version1/](http://savonrb.com/version1/) 18 | -------------------------------------------------------------------------------- /ads_savon/Rakefile: -------------------------------------------------------------------------------- 1 | desc 'Package the Google Ads Savon library into a gem file.' 2 | task :build do 3 | result = system('/usr/bin/env gem build google-ads-savon.gemspec') 4 | raise 'Build failed.' unless result 5 | end 6 | -------------------------------------------------------------------------------- /ads_savon/google-ads-savon.gemspec: -------------------------------------------------------------------------------- 1 | # -*- encoding : utf-8 -*- 2 | lib = File.expand_path("../lib", __FILE__) 3 | $:.unshift lib unless $:.include? lib 4 | 5 | require "ads_savon/version" 6 | 7 | Gem::Specification.new do |s| 8 | s.name = "google-ads-savon" 9 | s.version = GoogleAdsSavon::VERSION 10 | s.authors = "Daniel Harrington" 11 | s.email = "me@rubiii.com" 12 | s.homepage = "http://savonrb.com" 13 | s.summary = "Heavy metal SOAP client" 14 | s.description = "Delicious SOAP for the Ruby community" 15 | 16 | s.rubyforge_project = s.name 17 | s.license = 'MIT' 18 | 19 | s.add_dependency "nori", "~> 2.6" 20 | s.add_dependency "httpi", "~> 2.3" 21 | s.add_dependency "wasabi", "~> 3.4" 22 | s.add_dependency "akami", "~> 1.2" 23 | s.add_dependency "gyoku", "~> 1.2" 24 | 25 | s.add_dependency "builder", "~> 3.0" 26 | s.add_dependency "nokogiri", "~> 1.6" 27 | 28 | s.add_development_dependency "rake", "~> 10.1" 29 | s.add_development_dependency "rspec", "~> 2.14" 30 | s.add_development_dependency "mocha", "~> 0.14" 31 | s.add_development_dependency "timecop", "~> 0.3" 32 | 33 | s.files = Dir.glob('lib/**/*') + %w(LICENSE README.md ChangeLog) 34 | s.require_path = "lib" 35 | end 36 | -------------------------------------------------------------------------------- /ads_savon/lib/ads_savon.rb: -------------------------------------------------------------------------------- 1 | require "ads_savon/version" 2 | require "ads_savon/config" 3 | require "ads_savon/client" 4 | require "ads_savon/model" 5 | 6 | module GoogleAdsSavon 7 | extend self 8 | 9 | def client(*args, &block) 10 | Client.new(*args, &block) 11 | end 12 | 13 | def configure 14 | yield config 15 | end 16 | 17 | def config 18 | @config ||= Config.default 19 | end 20 | 21 | attr_writer :config 22 | 23 | end 24 | -------------------------------------------------------------------------------- /ads_savon/lib/ads_savon/config.rb: -------------------------------------------------------------------------------- 1 | require "ads_savon/logger" 2 | require "ads_savon/null_logger" 3 | require "ads_savon/hooks/group" 4 | require "ads_savon/soap" 5 | 6 | module GoogleAdsSavon 7 | Config = Struct.new(:_logger, :pretty_print_xml, :raise_errors, :soap_version, :env_namespace, :soap_header) do 8 | 9 | def self.default 10 | config = new 11 | config._logger = Logger.new 12 | config.raise_errors = true 13 | config.soap_version = SOAP::DEFAULT_VERSION 14 | config 15 | end 16 | 17 | alias_method :logger, :_logger 18 | 19 | def logger=(logger) 20 | _logger.subject = logger 21 | end 22 | 23 | def log_level=(level) 24 | _logger.level = level 25 | end 26 | 27 | def log=(log) 28 | if log == true 29 | self._logger = Logger.new 30 | else 31 | self._logger = NullLogger.new 32 | end 33 | end 34 | 35 | def hooks 36 | @hooks ||= Hooks::Group.new 37 | end 38 | 39 | def clone 40 | config = super 41 | config._logger = config._logger.clone 42 | config 43 | end 44 | 45 | end 46 | end 47 | -------------------------------------------------------------------------------- /ads_savon/lib/ads_savon/core_ext/string.rb: -------------------------------------------------------------------------------- 1 | require "ads_savon/soap" 2 | 3 | module GoogleAdsSavon 4 | module CoreExt 5 | module String 6 | 7 | def self.included(base) 8 | unless "savon".respond_to?(:snakecase) 9 | base.send(:include, Extension) 10 | end 11 | end 12 | 13 | module Extension 14 | def snakecase 15 | str = dup 16 | str.gsub! /::/, '/' 17 | str.gsub! /([A-Z]+)([A-Z][a-z])/, '\1_\2' 18 | str.gsub! /([a-z\d])([A-Z])/, '\1_\2' 19 | str.tr! ".", "_" 20 | str.tr! "-", "_" 21 | str.downcase! 22 | str 23 | end 24 | end 25 | 26 | end 27 | end 28 | end 29 | 30 | String.send :include, GoogleAdsSavon::CoreExt::String 31 | -------------------------------------------------------------------------------- /ads_savon/lib/ads_savon/error.rb: -------------------------------------------------------------------------------- 1 | module GoogleAdsSavon 2 | 3 | # Base class for GoogleAdsSavon errors. 4 | class Error < RuntimeError; end 5 | 6 | end 7 | -------------------------------------------------------------------------------- /ads_savon/lib/ads_savon/hooks/group.rb: -------------------------------------------------------------------------------- 1 | require "ads_savon/hooks/hook" 2 | 3 | module GoogleAdsSavon 4 | module Hooks 5 | 6 | # = GoogleAdsSavon::Hooks::Group 7 | # 8 | # Manages a list of hooks. 9 | class Group 10 | 11 | # Accepts an Array of +hooks+ to start with. 12 | def initialize(hooks = []) 13 | @hooks = hooks 14 | end 15 | 16 | # Returns whether this group contains hooks. 17 | def empty? 18 | hooks.empty? 19 | end 20 | 21 | # Returns the number of hooks in this group. 22 | def count 23 | hooks.count 24 | end 25 | 26 | # Adds a new hook. 27 | def define(id, hook, &block) 28 | hooks << Hook.new(id, hook, &block) 29 | end 30 | 31 | # Removes hooks matching the given +ids+. 32 | def reject(*ids) 33 | ids = ids.flatten 34 | hooks.reject! { |hook| ids.include? hook.id } 35 | end 36 | 37 | # Fire a given +hook+ with any given +args+. 38 | def fire(hook, *args, &callback) 39 | callable = select(hook) 40 | 41 | if callable.empty? 42 | callback.call 43 | else 44 | args.unshift(callback) if callback 45 | callable.call(*args) 46 | end 47 | end 48 | 49 | # Calls the hooks with the given +args+ and returns the 50 | # value of the last hooks. 51 | def call(*args) 52 | hooks.inject(nil) { |memo, hook| hook.call(*args) } 53 | end 54 | 55 | private 56 | 57 | def hooks 58 | @hooks ||= [] 59 | end 60 | 61 | # Returns a new group for a given +hook+. 62 | def select(hook) 63 | Group.new hooks.select { |h| h.hook == hook } 64 | end 65 | 66 | end 67 | end 68 | end 69 | -------------------------------------------------------------------------------- /ads_savon/lib/ads_savon/hooks/hook.rb: -------------------------------------------------------------------------------- 1 | module GoogleAdsSavon 2 | module Hooks 3 | 4 | # = GoogleAdsSavon::Hooks::Hook 5 | # 6 | # A hook used somewhere in the system. 7 | class Hook 8 | 9 | HOOKS = [ 10 | 11 | # :soap_request 12 | # 13 | # Around filter wrapping the POST request executed to call a SOAP service. 14 | # See: GoogleAdsSavon::SOAP::Request#response 15 | # 16 | # Arguments 17 | # 18 | # [callback] A block to execute the SOAP request 19 | # [request] The current GoogleAdsSavon::SOAP::Request 20 | # 21 | # Examples 22 | # 23 | # Log the time before and after the SOAP call: 24 | # 25 | # GoogleAdsSavon.config.hooks.define(:my_hook, :soap_request) do |callback, request| 26 | # Timer.log(:start, Time.now) 27 | # response = callback.call 28 | # Timer.log(:end, Time.now) 29 | # response 30 | # end 31 | # 32 | # Replace the SOAP call and return a custom response: 33 | # 34 | # GoogleAdsSavon.config.hooks.define(:mock_hook, :soap_request) do |_, request| 35 | # HTTPI::Response.new(200, {}, "") 36 | # end 37 | :soap_request 38 | 39 | ] 40 | 41 | # Expects an +id+, the name of the +hook+ to use and a +block+ to be called. 42 | def initialize(id, hook, &block) 43 | unless HOOKS.include?(hook) 44 | raise ArgumentError, "No such hook: #{hook}. Expected one of: #{HOOKS.join(', ')}" 45 | end 46 | 47 | self.id = id 48 | self.hook = hook 49 | self.block = block 50 | end 51 | 52 | attr_accessor :id, :hook, :block 53 | 54 | # Calls the +block+ with the given +args+. 55 | def call(*args) 56 | block.call(*args) 57 | end 58 | 59 | end 60 | end 61 | end 62 | -------------------------------------------------------------------------------- /ads_savon/lib/ads_savon/http/error.rb: -------------------------------------------------------------------------------- 1 | require "ads_savon/error" 2 | require "ads_savon/soap/xml" 3 | 4 | module GoogleAdsSavon 5 | module HTTP 6 | 7 | # = GoogleAdsSavon::HTTP::Error 8 | # 9 | # Represents an HTTP error. Contains the original HTTPI::Response. 10 | class Error < Error 11 | 12 | # Expects an HTTPI::Response. 13 | def initialize(http) 14 | self.http = http 15 | end 16 | 17 | # Accessor for the HTTPI::Response. 18 | attr_accessor :http 19 | 20 | # Returns whether an HTTP error is present. 21 | def present? 22 | http.error? 23 | end 24 | 25 | # Returns the HTTP error message. 26 | def to_s 27 | return "" unless present? 28 | 29 | @message ||= begin 30 | message = "HTTP error (#{http.code})" 31 | message << ": #{http.body}" unless http.body.empty? 32 | end 33 | end 34 | 35 | # Returns the HTTP response as a Hash. 36 | def to_hash 37 | @hash = { :code => http.code, :headers => http.headers, :body => http.body } 38 | end 39 | 40 | end 41 | end 42 | end 43 | -------------------------------------------------------------------------------- /ads_savon/lib/ads_savon/log_message.rb: -------------------------------------------------------------------------------- 1 | module GoogleAdsSavon 2 | class LogMessage 3 | 4 | def initialize(message, filters, options = {}) 5 | @message = message 6 | @filters = filters 7 | @options = options 8 | end 9 | 10 | def to_s 11 | return @message unless pretty? || filter? 12 | 13 | doc = Nokogiri.XML(@message) 14 | doc = apply_filter(doc) if filter? 15 | doc.to_xml(pretty_options) 16 | end 17 | 18 | private 19 | 20 | def filter? 21 | @options[:filter] && @filters.any? 22 | end 23 | 24 | def pretty? 25 | @options[:pretty] 26 | end 27 | 28 | def apply_filter(doc) 29 | return doc unless doc.errors.empty? 30 | 31 | @filters.each do |filter| 32 | apply_filter!(doc, filter) 33 | end 34 | 35 | doc 36 | end 37 | 38 | def apply_filter!(doc, filter) 39 | doc.xpath("//*[local-name()='#{filter}']").each do |node| 40 | node.content = "***FILTERED***" 41 | end 42 | end 43 | 44 | def pretty_options 45 | return {} unless pretty? 46 | { :indent => 2 } 47 | end 48 | 49 | end 50 | end 51 | -------------------------------------------------------------------------------- /ads_savon/lib/ads_savon/logger.rb: -------------------------------------------------------------------------------- 1 | require "logger" 2 | require "nokogiri" 3 | require "ads_savon/log_message" 4 | 5 | module GoogleAdsSavon 6 | class Logger 7 | 8 | def initialize(device = $stdout) 9 | self.device = device 10 | end 11 | 12 | attr_accessor :device 13 | 14 | def log(message, options = {}) 15 | log_raw LogMessage.new(message, filter, options).to_s 16 | end 17 | 18 | attr_writer :subject, :level, :filter 19 | 20 | def subject 21 | @subject ||= ::Logger.new(device) 22 | end 23 | 24 | def level 25 | @level ||= :debug 26 | end 27 | 28 | def filter 29 | @filter ||= [] 30 | end 31 | 32 | private 33 | 34 | def log_raw(message) 35 | subject.send(level, message) 36 | end 37 | 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /ads_savon/lib/ads_savon/null_logger.rb: -------------------------------------------------------------------------------- 1 | require "ads_savon/logger" 2 | 3 | module GoogleAdsSavon 4 | class NullLogger < Logger 5 | 6 | def log(*) 7 | end 8 | 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /ads_savon/lib/ads_savon/soap.rb: -------------------------------------------------------------------------------- 1 | module GoogleAdsSavon 2 | 3 | # = GoogleAdsSavon::SOAP 4 | # 5 | # Contains various SOAP details. 6 | module SOAP 7 | 8 | # Default SOAP version. 9 | DEFAULT_VERSION = 1 10 | 11 | # Supported SOAP versions. 12 | VERSIONS = 1..2 13 | 14 | # SOAP namespaces by SOAP version. 15 | NAMESPACE = { 16 | 1 => "http://schemas.xmlsoap.org/soap/envelope/", 17 | 2 => "http://www.w3.org/2003/05/soap-envelope" 18 | } 19 | 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /ads_savon/lib/ads_savon/soap/invalid_response_error.rb: -------------------------------------------------------------------------------- 1 | require "ads_savon/error" 2 | 3 | module GoogleAdsSavon 4 | module SOAP 5 | 6 | # = GoogleAdsSavon::SOAP::InvalidResponseError 7 | # 8 | # Represents an error when the response was not a valid SOAP envelope. 9 | class InvalidResponseError < Error 10 | end 11 | 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /ads_savon/lib/ads_savon/version.rb: -------------------------------------------------------------------------------- 1 | # Module to keep the current library version. 2 | 3 | module GoogleAdsSavon 4 | VERSION = "1.0.3" 5 | end 6 | --------------------------------------------------------------------------------