From 8028228d41763dd9dfa5fd531bbaf4eb7e310680 Mon Sep 17 00:00:00 2001 From: Mark Saniscalchi Date: Tue, 13 Feb 2024 22:00:35 +0000 Subject: [PATCH] Ad Manager v202402 release. --- ChangeLog | 5 ++++ .../activity_group_service/__init__.py | 0 .../create_activity_groups.py | 2 +- .../get_active_activity_groups.py | 4 ++-- .../get_all_activity_groups.py | 4 ++-- .../update_activity_groups.py | 4 ++-- .../activity_service/__init__.py | 0 .../activity_service/create_activities.py | 2 +- .../activity_service/get_active_activities.py | 4 ++-- .../activity_service/get_all_activities.py | 4 ++-- .../activity_service/update_activities.py | 4 ++-- .../create_forecast_adjustments.py | 2 +- .../create_traffic_forecast_segments.py | 4 ++-- .../get_all_forecast_adjustments.py | 4 ++-- .../get_all_traffic_forecast_segments.py | 4 ++-- ...djustments_for_traffic_forecast_segment.py | 4 ++-- .../update_forecast_adjustments.py | 4 ++-- .../audience_segment_service/__init__.py | 0 .../create_audience_segments.py | 4 ++-- .../get_all_audience_segments.py | 4 ++-- .../get_first_party_audience_segments.py | 4 ++-- .../populate_first_party_audience_segments.py | 4 ++-- .../update_audience_segments.py | 4 ++-- .../cdn_configuration_service/__init__.py | 0 .../create_cdn_configurations.py | 2 +- .../get_all_cdn_configurations.py | 4 ++-- .../activate_cms_metadata_values.py | 4 ++-- .../get_all_cms_metadata_keys.py | 4 ++-- .../get_all_cms_metadata_values.py | 4 ++-- .../get_cms_metadata_values_for_key.py | 4 ++-- .../company_service/__init__.py | 0 .../company_service/create_companies.py | 2 +- .../company_service/get_advertisers.py | 4 ++-- .../company_service/get_all_companies.py | 4 ++-- .../company_service/update_companies.py | 4 ++-- .../contact_service/__init__.py | 0 .../contact_service/create_contacts.py | 2 +- .../contact_service/get_all_contacts.py | 4 ++-- .../contact_service/get_uninvited_contacts.py | 4 ++-- .../contact_service/update_contacts.py | 4 ++-- .../content_service/__init__.py | 0 .../content_service/get_all_content.py | 4 ++-- .../get_recently_modified_content.py | 4 ++-- .../creative_service/__init__.py | 0 .../creative_service/copy_image_creatives.py | 4 ++-- .../create_creative_from_template.py | 2 +- .../creative_service/create_creatives.py | 2 +- .../create_custom_creative.py | 2 +- .../create_native_creative.py | 2 +- .../create_video_creatives.py | 2 +- .../creative_service/get_all_creatives.py | 4 ++-- .../creative_service/get_image_creatives.py | 4 ++-- .../creative_service/update_creatives.py | 4 ++-- .../creative_set_service/__init__.py | 0 .../associate_creative_set_to_line_item.py | 2 +- .../create_creative_set.py | 2 +- .../get_all_creative_sets.py | 4 ++-- .../get_creative_sets_for_master_creative.py | 4 ++-- .../update_creative_set.py | 4 ++-- .../creative_template_service/__init__.py | 0 .../get_all_creative_templates.py | 4 ++-- .../get_system_defined_creative_templates.py | 4 ++-- .../create_creative_wrappers.py | 2 +- .../deactivate_creative_wrapper.py | 4 ++-- .../get_active_creative_wrappers.py | 4 ++-- .../get_all_creative_wrappers.py | 4 ++-- .../update_creative_wrappers.py | 4 ++-- .../custom_field_service/__init__.py | 0 .../create_custom_field_options.py | 2 +- .../create_custom_fields.py | 2 +- .../deactivate_all_line_item_custom_fields.py | 4 ++-- .../get_all_custom_fields.py | 4 ++-- .../get_custom_fields_for_line_items.py | 4 ++-- .../set_line_item_custom_field_value.py | 10 ++++---- .../update_custom_fields.py | 4 ++-- .../custom_targeting_service/__init__.py | 0 ...create_custom_targeting_keys_and_values.py | 2 +- .../delete_custom_targeting_keys.py | 6 ++--- .../delete_custom_targeting_values.py | 6 ++--- ...et_all_custom_targeting_keys_and_values.py | 6 ++--- ...efined_custom_targeting_keys_and_values.py | 6 ++--- .../update_custom_targeting_keys.py | 4 ++-- .../update_custom_targeting_values.py | 4 ++-- .../get_availability_forecast.py | 4 ++-- ...get_availability_forecast_for_line_item.py | 2 +- .../get_delivery_forecast_for_line_items.py | 2 +- .../forecast_service/get_traffic_data.py | 4 ++-- .../inventory_service/__init__.py | 0 .../inventory_service/archive_ad_units.py | 4 ++-- .../inventory_service/create_ad_units.py | 2 +- .../get_ad_unit_hierarchy.py | 8 +++---- .../get_all_ad_unit_sizes.py | 4 ++-- .../inventory_service/get_all_ad_units.py | 4 ++-- .../get_top_level_ad_units.py | 6 ++--- .../inventory_service/update_ad_units.py | 4 ++-- .../label_service/__init__.py | 0 .../label_service/create_labels.py | 2 +- .../label_service/deactivate_labels.py | 4 ++-- .../label_service/get_active_labels.py | 4 ++-- .../label_service/get_all_labels.py | 4 ++-- .../label_service/update_labels.py | 4 ++-- .../__init__.py | 0 .../create_licas.py | 2 +- .../deactivate_licas.py | 4 ++-- .../get_all_licas.py | 4 ++-- .../get_licas_for_line_item.py | 4 ++-- .../push_creative_to_devices.py | 4 ++-- .../update_licas.py | 4 ++-- .../line_item_service/__init__.py | 0 .../line_item_service/activate_line_items.py | 4 ++-- .../line_item_service/create_line_items.py | 2 +- .../create_video_line_item.py | 2 +- .../line_item_service/get_all_line_items.py | 4 ++-- .../get_line_items_that_need_creatives.py | 4 ++-- .../get_recently_updated_line_items.py | 4 ++-- .../line_item_service/pause_line_items.py | 4 ++-- .../target_custom_criteria.py | 4 ++-- .../line_item_service/update_line_items.py | 4 ++-- .../activate_live_stream_events.py | 4 ++-- .../create_live_stream_events.py | 2 +- .../get_all_live_stream_events.py | 4 ++-- .../register_sessions_for_monitoring.py | 2 +- .../update_live_stream_events.py | 4 ++-- .../native_style_service/__init__.py | 0 .../create_native_styles.py | 2 +- .../get_all_native_styles.py | 4 ++-- .../network_service/__init__.py | 0 .../network_service/get_all_networks.py | 2 +- .../network_service/get_current_network.py | 2 +- ...et_default_third_party_data_declaration.py | 6 ++--- .../network_service/make_test_network.py | 2 +- .../order_service/__init__.py | 0 .../order_service/approve_orders.py | 4 ++-- .../order_service/create_orders.py | 2 +- .../order_service/get_all_orders.py | 4 ++-- .../order_service/get_orders_starting_soon.py | 4 ++-- .../order_service/update_orders.py | 4 ++-- .../placement_service/create_placements.py | 6 ++--- .../deactivate_placements.py | 4 ++-- .../get_active_placements.py | 4 ++-- .../placement_service/get_all_placements.py | 4 ++-- .../placement_service/update_placements.py | 4 ++-- .../proposal_line_item_service/__init__.py | 0 .../archive_proposal_line_items.py | 4 ++-- .../create_proposal_line_items.py | 4 ++-- .../get_all_proposal_line_items.py | 4 ++-- .../get_proposal_line_items_for_proposal.py | 4 ++-- .../update_proposal_line_items.py | 4 ++-- .../proposal_service/__init__.py | 0 .../proposal_service/create_proposals.py | 2 +- .../proposal_service/get_all_proposals.py | 4 ++-- .../get_marketplace_comments.py | 2 +- .../get_proposals_awaiting_seller_review.py | 4 ++-- .../request_buyers_acceptance.py | 4 ++-- .../proposal_service/update_proposals.py | 4 ++-- .../__init__.py | 0 .../fetch_match_tables.py | 2 +- .../get_all_browsers.py | 2 +- .../get_all_programmatic_buyers.py | 2 +- .../get_geo_targets.py | 2 +- .../get_line_items_named_like.py | 2 +- .../get_mcm_earnings.py | 2 +- .../get_recent_changes.py | 4 ++-- .../report_service/__init__.py | 0 .../report_service/run_delivery_report.py | 4 ++-- .../report_service/run_inventory_report.py | 2 +- .../report_service/run_reach_report.py | 2 +- ...un_reach_report_with_ad_unit_dimensions.py | 2 +- .../run_report_and_create_match_table.py | 2 +- .../run_report_with_custom_fields.py | 2 +- .../report_service/run_sales_report.py | 2 +- .../report_service/run_saved_query.py | 6 ++--- .../site_service/create_sites.py | 24 +------------------ .../site_service/get_all_sites.py | 4 ++-- .../get_sites_requiring_approval.py | 4 ++-- .../site_service/submit_sites_for_approval.py | 4 ++-- .../suggested_ad_unit_service/__init__.py | 0 .../approve_all_suggested_ad_units.py | 4 ++-- .../get_all_suggested_ad_units.py | 4 ++-- ...get_highly_requested_suggested_ad_units.py | 4 ++-- .../targeting_preset_service/__init__.py | 0 .../get_all_targeting_presets.py | 4 ++-- .../team_service/__init__.py | 0 .../team_service/create_teams.py | 2 +- .../team_service/get_all_teams.py | 4 ++-- .../team_service/update_teams.py | 4 ++-- .../user_service/__init__.py | 0 .../user_service/create_users.py | 2 +- .../user_service/deactivate_users.py | 4 ++-- .../user_service/get_all_roles.py | 2 +- .../user_service/get_all_users.py | 4 ++-- .../user_service/get_current_user.py | 2 +- .../user_service/get_user_by_email_address.py | 4 ++-- .../user_service/update_users.py | 4 ++-- .../user_team_association_service/__init__.py | 0 .../create_user_team_associations.py | 2 +- .../delete_user_team_associations.py | 4 ++-- .../get_all_user_team_associations.py | 4 ++-- .../get_user_team_associations_for_user.py | 4 ++-- .../update_user_team_associations.py | 4 ++-- googleads/ad_manager.py | 10 ++++---- googleads/common.py | 2 +- tests/common_test.py | 2 +- 203 files changed, 316 insertions(+), 333 deletions(-) rename examples/ad_manager/{v202305 => v202402}/activity_group_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/activity_group_service/create_activity_groups.py (97%) rename examples/ad_manager/{v202305 => v202402}/activity_group_service/get_active_activity_groups.py (94%) rename examples/ad_manager/{v202305 => v202402}/activity_group_service/get_all_activity_groups.py (94%) rename examples/ad_manager/{v202305 => v202402}/activity_group_service/update_activity_groups.py (95%) rename examples/ad_manager/{v202305 => v202402}/activity_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/activity_service/create_activities.py (99%) rename examples/ad_manager/{v202305 => v202402}/activity_service/get_active_activities.py (96%) rename examples/ad_manager/{v202305 => v202402}/activity_service/get_all_activities.py (95%) rename examples/ad_manager/{v202305 => v202402}/activity_service/update_activities.py (96%) rename examples/ad_manager/{v202305 => v202402}/adjustment_service/create_forecast_adjustments.py (99%) rename examples/ad_manager/{v202305 => v202402}/adjustment_service/create_traffic_forecast_segments.py (98%) rename examples/ad_manager/{v202305 => v202402}/adjustment_service/get_all_forecast_adjustments.py (95%) rename examples/ad_manager/{v202305 => v202402}/adjustment_service/get_all_traffic_forecast_segments.py (95%) rename examples/ad_manager/{v202305 => v202402}/adjustment_service/get_forecast_adjustments_for_traffic_forecast_segment.py (96%) rename examples/ad_manager/{v202305 => v202402}/adjustment_service/update_forecast_adjustments.py (96%) rename examples/ad_manager/{v202305 => v202402}/audience_segment_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/audience_segment_service/create_audience_segments.py (98%) rename examples/ad_manager/{v202305 => v202402}/audience_segment_service/get_all_audience_segments.py (94%) rename examples/ad_manager/{v202305 => v202402}/audience_segment_service/get_first_party_audience_segments.py (94%) rename examples/ad_manager/{v202305 => v202402}/audience_segment_service/populate_first_party_audience_segments.py (95%) rename examples/ad_manager/{v202305 => v202402}/audience_segment_service/update_audience_segments.py (95%) rename examples/ad_manager/{v202305 => v202402}/cdn_configuration_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/cdn_configuration_service/create_cdn_configurations.py (97%) rename examples/ad_manager/{v202305 => v202402}/cdn_configuration_service/get_all_cdn_configurations.py (93%) rename examples/ad_manager/{v202305 => v202402}/cms_metadata_service/activate_cms_metadata_values.py (95%) rename examples/ad_manager/{v202305 => v202402}/cms_metadata_service/get_all_cms_metadata_keys.py (94%) rename examples/ad_manager/{v202305 => v202402}/cms_metadata_service/get_all_cms_metadata_values.py (94%) rename examples/ad_manager/{v202305 => v202402}/cms_metadata_service/get_cms_metadata_values_for_key.py (95%) rename examples/ad_manager/{v202305 => v202402}/company_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/company_service/create_companies.py (99%) rename examples/ad_manager/{v202305 => v202402}/company_service/get_advertisers.py (96%) rename examples/ad_manager/{v202305 => v202402}/company_service/get_all_companies.py (95%) rename examples/ad_manager/{v202305 => v202402}/company_service/update_companies.py (96%) rename examples/ad_manager/{v202305 => v202402}/contact_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/contact_service/create_contacts.py (99%) rename examples/ad_manager/{v202305 => v202402}/contact_service/get_all_contacts.py (95%) rename examples/ad_manager/{v202305 => v202402}/contact_service/get_uninvited_contacts.py (96%) rename examples/ad_manager/{v202305 => v202402}/contact_service/update_contacts.py (96%) rename examples/ad_manager/{v202305 => v202402}/content_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/content_service/get_all_content.py (96%) rename examples/ad_manager/{v202305 => v202402}/content_service/get_recently_modified_content.py (97%) rename examples/ad_manager/{v202305 => v202402}/creative_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/creative_service/copy_image_creatives.py (96%) rename examples/ad_manager/{v202305 => v202402}/creative_service/create_creative_from_template.py (99%) rename examples/ad_manager/{v202305 => v202402}/creative_service/create_creatives.py (99%) rename examples/ad_manager/{v202305 => v202402}/creative_service/create_custom_creative.py (99%) rename examples/ad_manager/{v202305 => v202402}/creative_service/create_native_creative.py (99%) rename examples/ad_manager/{v202305 => v202402}/creative_service/create_video_creatives.py (99%) rename examples/ad_manager/{v202305 => v202402}/creative_service/get_all_creatives.py (95%) rename examples/ad_manager/{v202305 => v202402}/creative_service/get_image_creatives.py (96%) rename examples/ad_manager/{v202305 => v202402}/creative_service/update_creatives.py (97%) rename examples/ad_manager/{v202305 => v202402}/creative_set_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/creative_set_service/associate_creative_set_to_line_item.py (96%) rename examples/ad_manager/{v202305 => v202402}/creative_set_service/create_creative_set.py (97%) rename examples/ad_manager/{v202305 => v202402}/creative_set_service/get_all_creative_sets.py (94%) rename examples/ad_manager/{v202305 => v202402}/creative_set_service/get_creative_sets_for_master_creative.py (94%) rename examples/ad_manager/{v202305 => v202402}/creative_set_service/update_creative_set.py (95%) rename examples/ad_manager/{v202305 => v202402}/creative_template_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/creative_template_service/get_all_creative_templates.py (94%) rename examples/ad_manager/{v202305 => v202402}/creative_template_service/get_system_defined_creative_templates.py (94%) rename examples/ad_manager/{v202305 => v202402}/creative_wrapper_service/create_creative_wrappers.py (97%) rename examples/ad_manager/{v202305 => v202402}/creative_wrapper_service/deactivate_creative_wrapper.py (95%) rename examples/ad_manager/{v202305 => v202402}/creative_wrapper_service/get_active_creative_wrappers.py (94%) rename examples/ad_manager/{v202305 => v202402}/creative_wrapper_service/get_all_creative_wrappers.py (94%) rename examples/ad_manager/{v202305 => v202402}/creative_wrapper_service/update_creative_wrappers.py (95%) rename examples/ad_manager/{v202305 => v202402}/custom_field_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/custom_field_service/create_custom_field_options.py (97%) rename examples/ad_manager/{v202305 => v202402}/custom_field_service/create_custom_fields.py (97%) rename examples/ad_manager/{v202305 => v202402}/custom_field_service/deactivate_all_line_item_custom_fields.py (95%) rename examples/ad_manager/{v202305 => v202402}/custom_field_service/get_all_custom_fields.py (94%) rename examples/ad_manager/{v202305 => v202402}/custom_field_service/get_custom_fields_for_line_items.py (94%) rename examples/ad_manager/{v202305 => v202402}/custom_field_service/set_line_item_custom_field_value.py (97%) rename examples/ad_manager/{v202305 => v202402}/custom_field_service/update_custom_fields.py (95%) rename examples/ad_manager/{v202305 => v202402}/custom_targeting_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/custom_targeting_service/create_custom_targeting_keys_and_values.py (98%) rename examples/ad_manager/{v202305 => v202402}/custom_targeting_service/delete_custom_targeting_keys.py (95%) rename examples/ad_manager/{v202305 => v202402}/custom_targeting_service/delete_custom_targeting_values.py (95%) rename examples/ad_manager/{v202305 => v202402}/custom_targeting_service/get_all_custom_targeting_keys_and_values.py (95%) rename examples/ad_manager/{v202305 => v202402}/custom_targeting_service/get_predefined_custom_targeting_keys_and_values.py (95%) rename examples/ad_manager/{v202305 => v202402}/custom_targeting_service/update_custom_targeting_keys.py (95%) rename examples/ad_manager/{v202305 => v202402}/custom_targeting_service/update_custom_targeting_values.py (95%) rename examples/ad_manager/{v202305 => v202402}/forecast_service/get_availability_forecast.py (99%) rename examples/ad_manager/{v202305 => v202402}/forecast_service/get_availability_forecast_for_line_item.py (99%) rename examples/ad_manager/{v202305 => v202402}/forecast_service/get_delivery_forecast_for_line_items.py (99%) rename examples/ad_manager/{v202305 => v202402}/forecast_service/get_traffic_data.py (99%) rename examples/ad_manager/{v202305 => v202402}/inventory_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/inventory_service/archive_ad_units.py (97%) rename examples/ad_manager/{v202305 => v202402}/inventory_service/create_ad_units.py (99%) rename examples/ad_manager/{v202305 => v202402}/inventory_service/get_ad_unit_hierarchy.py (96%) rename examples/ad_manager/{v202305 => v202402}/inventory_service/get_all_ad_unit_sizes.py (93%) rename examples/ad_manager/{v202305 => v202402}/inventory_service/get_all_ad_units.py (95%) rename examples/ad_manager/{v202305 => v202402}/inventory_service/get_top_level_ad_units.py (96%) rename examples/ad_manager/{v202305 => v202402}/inventory_service/update_ad_units.py (97%) rename examples/ad_manager/{v202305 => v202402}/label_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/label_service/create_labels.py (99%) rename examples/ad_manager/{v202305 => v202402}/label_service/deactivate_labels.py (96%) rename examples/ad_manager/{v202305 => v202402}/label_service/get_active_labels.py (96%) rename examples/ad_manager/{v202305 => v202402}/label_service/get_all_labels.py (96%) rename examples/ad_manager/{v202305 => v202402}/label_service/update_labels.py (96%) rename examples/ad_manager/{v202305 => v202402}/line_item_creative_association_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/line_item_creative_association_service/create_licas.py (96%) rename examples/ad_manager/{v202305 => v202402}/line_item_creative_association_service/deactivate_licas.py (95%) rename examples/ad_manager/{v202305 => v202402}/line_item_creative_association_service/get_all_licas.py (94%) rename examples/ad_manager/{v202305 => v202402}/line_item_creative_association_service/get_licas_for_line_item.py (94%) rename examples/ad_manager/{v202305 => v202402}/line_item_creative_association_service/push_creative_to_devices.py (94%) rename examples/ad_manager/{v202305 => v202402}/line_item_creative_association_service/update_licas.py (94%) rename examples/ad_manager/{v202305 => v202402}/line_item_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/line_item_service/activate_line_items.py (97%) rename examples/ad_manager/{v202305 => v202402}/line_item_service/create_line_items.py (99%) rename examples/ad_manager/{v202305 => v202402}/line_item_service/create_video_line_item.py (99%) rename examples/ad_manager/{v202305 => v202402}/line_item_service/get_all_line_items.py (95%) rename examples/ad_manager/{v202305 => v202402}/line_item_service/get_line_items_that_need_creatives.py (96%) rename examples/ad_manager/{v202305 => v202402}/line_item_service/get_recently_updated_line_items.py (96%) rename examples/ad_manager/{v202305 => v202402}/line_item_service/pause_line_items.py (97%) rename examples/ad_manager/{v202305 => v202402}/line_item_service/target_custom_criteria.py (97%) rename examples/ad_manager/{v202305 => v202402}/line_item_service/update_line_items.py (97%) rename examples/ad_manager/{v202305 => v202402}/live_stream_event_service/activate_live_stream_events.py (95%) rename examples/ad_manager/{v202305 => v202402}/live_stream_event_service/create_live_stream_events.py (97%) rename examples/ad_manager/{v202305 => v202402}/live_stream_event_service/get_all_live_stream_events.py (94%) rename examples/ad_manager/{v202305 => v202402}/live_stream_event_service/register_sessions_for_monitoring.py (96%) rename examples/ad_manager/{v202305 => v202402}/live_stream_event_service/update_live_stream_events.py (95%) rename examples/ad_manager/{v202305 => v202402}/native_style_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/native_style_service/create_native_styles.py (98%) rename examples/ad_manager/{v202305 => v202402}/native_style_service/get_all_native_styles.py (93%) rename examples/ad_manager/{v202305 => v202402}/network_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/network_service/get_all_networks.py (99%) rename examples/ad_manager/{v202305 => v202402}/network_service/get_current_network.py (99%) rename examples/ad_manager/{v202305 => v202402}/network_service/get_default_third_party_data_declaration.py (95%) rename examples/ad_manager/{v202305 => v202402}/network_service/make_test_network.py (99%) rename examples/ad_manager/{v202305 => v202402}/order_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/order_service/approve_orders.py (97%) rename examples/ad_manager/{v202305 => v202402}/order_service/create_orders.py (99%) rename examples/ad_manager/{v202305 => v202402}/order_service/get_all_orders.py (96%) rename examples/ad_manager/{v202305 => v202402}/order_service/get_orders_starting_soon.py (96%) rename examples/ad_manager/{v202305 => v202402}/order_service/update_orders.py (97%) rename examples/ad_manager/{v202305 => v202402}/placement_service/create_placements.py (97%) rename examples/ad_manager/{v202305 => v202402}/placement_service/deactivate_placements.py (96%) rename examples/ad_manager/{v202305 => v202402}/placement_service/get_active_placements.py (95%) rename examples/ad_manager/{v202305 => v202402}/placement_service/get_all_placements.py (95%) rename examples/ad_manager/{v202305 => v202402}/placement_service/update_placements.py (96%) rename examples/ad_manager/{v202305 => v202402}/proposal_line_item_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/proposal_line_item_service/archive_proposal_line_items.py (95%) rename examples/ad_manager/{v202305 => v202402}/proposal_line_item_service/create_proposal_line_items.py (98%) rename examples/ad_manager/{v202305 => v202402}/proposal_line_item_service/get_all_proposal_line_items.py (94%) rename examples/ad_manager/{v202305 => v202402}/proposal_line_item_service/get_proposal_line_items_for_proposal.py (94%) rename examples/ad_manager/{v202305 => v202402}/proposal_line_item_service/update_proposal_line_items.py (95%) rename examples/ad_manager/{v202305 => v202402}/proposal_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/proposal_service/create_proposals.py (99%) rename examples/ad_manager/{v202305 => v202402}/proposal_service/get_all_proposals.py (95%) rename examples/ad_manager/{v202305 => v202402}/proposal_service/get_marketplace_comments.py (97%) rename examples/ad_manager/{v202305 => v202402}/proposal_service/get_proposals_awaiting_seller_review.py (96%) rename examples/ad_manager/{v202305 => v202402}/proposal_service/request_buyers_acceptance.py (97%) rename examples/ad_manager/{v202305 => v202402}/proposal_service/update_proposals.py (96%) rename examples/ad_manager/{v202305 => v202402}/publisher_query_language_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/publisher_query_language_service/fetch_match_tables.py (96%) rename examples/ad_manager/{v202305 => v202402}/publisher_query_language_service/get_all_browsers.py (96%) rename examples/ad_manager/{v202305 => v202402}/publisher_query_language_service/get_all_programmatic_buyers.py (96%) rename examples/ad_manager/{v202305 => v202402}/publisher_query_language_service/get_geo_targets.py (96%) rename examples/ad_manager/{v202305 => v202402}/publisher_query_language_service/get_line_items_named_like.py (96%) rename examples/ad_manager/{v202305 => v202402}/publisher_query_language_service/get_mcm_earnings.py (97%) rename examples/ad_manager/{v202305 => v202402}/publisher_query_language_service/get_recent_changes.py (98%) rename examples/ad_manager/{v202305 => v202402}/report_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/report_service/run_delivery_report.py (95%) rename examples/ad_manager/{v202305 => v202402}/report_service/run_inventory_report.py (97%) rename examples/ad_manager/{v202305 => v202402}/report_service/run_reach_report.py (96%) rename examples/ad_manager/{v202305 => v202402}/report_service/run_reach_report_with_ad_unit_dimensions.py (97%) rename examples/ad_manager/{v202305 => v202402}/report_service/run_report_and_create_match_table.py (97%) rename examples/ad_manager/{v202305 => v202402}/report_service/run_report_with_custom_fields.py (97%) rename examples/ad_manager/{v202305 => v202402}/report_service/run_sales_report.py (96%) rename examples/ad_manager/{v202305 => v202402}/report_service/run_saved_query.py (94%) rename examples/ad_manager/{v202305 => v202402}/site_service/create_sites.py (60%) rename examples/ad_manager/{v202305 => v202402}/site_service/get_all_sites.py (92%) rename examples/ad_manager/{v202305 => v202402}/site_service/get_sites_requiring_approval.py (92%) rename examples/ad_manager/{v202305 => v202402}/site_service/submit_sites_for_approval.py (91%) rename examples/ad_manager/{v202305 => v202402}/suggested_ad_unit_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/suggested_ad_unit_service/approve_all_suggested_ad_units.py (95%) rename examples/ad_manager/{v202305 => v202402}/suggested_ad_unit_service/get_all_suggested_ad_units.py (94%) rename examples/ad_manager/{v202305 => v202402}/suggested_ad_unit_service/get_highly_requested_suggested_ad_units.py (94%) rename examples/ad_manager/{v202305 => v202402}/targeting_preset_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/targeting_preset_service/get_all_targeting_presets.py (94%) rename examples/ad_manager/{v202305 => v202402}/team_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/team_service/create_teams.py (96%) rename examples/ad_manager/{v202305 => v202402}/team_service/get_all_teams.py (92%) rename examples/ad_manager/{v202305 => v202402}/team_service/update_teams.py (94%) rename examples/ad_manager/{v202305 => v202402}/user_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/user_service/create_users.py (96%) rename examples/ad_manager/{v202305 => v202402}/user_service/deactivate_users.py (94%) rename examples/ad_manager/{v202305 => v202402}/user_service/get_all_roles.py (94%) rename examples/ad_manager/{v202305 => v202402}/user_service/get_all_users.py (92%) rename examples/ad_manager/{v202305 => v202402}/user_service/get_current_user.py (94%) rename examples/ad_manager/{v202305 => v202402}/user_service/get_user_by_email_address.py (93%) rename examples/ad_manager/{v202305 => v202402}/user_service/update_users.py (92%) rename examples/ad_manager/{v202305 => v202402}/user_team_association_service/__init__.py (100%) rename examples/ad_manager/{v202305 => v202402}/user_team_association_service/create_user_team_associations.py (97%) rename examples/ad_manager/{v202305 => v202402}/user_team_association_service/delete_user_team_associations.py (95%) rename examples/ad_manager/{v202305 => v202402}/user_team_association_service/get_all_user_team_associations.py (94%) rename examples/ad_manager/{v202305 => v202402}/user_team_association_service/get_user_team_associations_for_user.py (94%) rename examples/ad_manager/{v202305 => v202402}/user_team_association_service/update_user_team_associations.py (96%) diff --git a/ChangeLog b/ChangeLog index 797a7f22..1f3ed14f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +41.0.0 -- 02/06/2024 +* Added support for v202402. +* Removed support for v202302. +* Removed examples for v202305. + 40.0.0 -- 11/03/2023 * Added support for v202311. * Removed support for v202211. diff --git a/examples/ad_manager/v202305/activity_group_service/__init__.py b/examples/ad_manager/v202402/activity_group_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/activity_group_service/__init__.py rename to examples/ad_manager/v202402/activity_group_service/__init__.py diff --git a/examples/ad_manager/v202305/activity_group_service/create_activity_groups.py b/examples/ad_manager/v202402/activity_group_service/create_activity_groups.py similarity index 97% rename from examples/ad_manager/v202305/activity_group_service/create_activity_groups.py rename to examples/ad_manager/v202402/activity_group_service/create_activity_groups.py index 4da108e8..0fce5d5d 100755 --- a/examples/ad_manager/v202305/activity_group_service/create_activity_groups.py +++ b/examples/ad_manager/v202402/activity_group_service/create_activity_groups.py @@ -38,7 +38,7 @@ def main(client, advertiser_company_id): # Initialize appropriate service. activity_group_service = client.GetService('ActivityGroupService', - version='v202305') + version='v202402') # Create a short-term activity group. short_term_activity_group = { diff --git a/examples/ad_manager/v202305/activity_group_service/get_active_activity_groups.py b/examples/ad_manager/v202402/activity_group_service/get_active_activity_groups.py similarity index 94% rename from examples/ad_manager/v202305/activity_group_service/get_active_activity_groups.py rename to examples/ad_manager/v202402/activity_group_service/get_active_activity_groups.py index d087b1a3..40022535 100755 --- a/examples/ad_manager/v202305/activity_group_service/get_active_activity_groups.py +++ b/examples/ad_manager/v202402/activity_group_service/get_active_activity_groups.py @@ -23,9 +23,9 @@ def main(client): # Initialize appropriate service. activity_group_service = client.GetService( - 'ActivityGroupService', version='v202305') + 'ActivityGroupService', version='v202402') # Create a statement to select activity groups. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('status = :status') .WithBindVariable('status', 'ACTIVE')) diff --git a/examples/ad_manager/v202305/activity_group_service/get_all_activity_groups.py b/examples/ad_manager/v202402/activity_group_service/get_all_activity_groups.py similarity index 94% rename from examples/ad_manager/v202305/activity_group_service/get_all_activity_groups.py rename to examples/ad_manager/v202402/activity_group_service/get_all_activity_groups.py index 8b53c398..8be94d38 100755 --- a/examples/ad_manager/v202305/activity_group_service/get_all_activity_groups.py +++ b/examples/ad_manager/v202402/activity_group_service/get_all_activity_groups.py @@ -23,10 +23,10 @@ def main(client): # Initialize appropriate service. activity_group_service = client.GetService( - 'ActivityGroupService', version='v202305') + 'ActivityGroupService', version='v202402') # Create a statement to select activity groups. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of activity groups at a time, paging # through until all activity groups have been retrieved. diff --git a/examples/ad_manager/v202305/activity_group_service/update_activity_groups.py b/examples/ad_manager/v202402/activity_group_service/update_activity_groups.py similarity index 95% rename from examples/ad_manager/v202305/activity_group_service/update_activity_groups.py rename to examples/ad_manager/v202402/activity_group_service/update_activity_groups.py index 02fe6088..b31ded4d 100755 --- a/examples/ad_manager/v202305/activity_group_service/update_activity_groups.py +++ b/examples/ad_manager/v202402/activity_group_service/update_activity_groups.py @@ -37,10 +37,10 @@ def main(client, activity_group_id, advertiser_company_id): # Initialize appropriate service. activity_group_service = client.GetService('ActivityGroupService', - version='v202305') + version='v202402') # Create statement object to select a single activity groups by ID. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :activityGroupId') .WithBindVariable('activityGroupId', int(activity_group_id)) .Limit(1)) diff --git a/examples/ad_manager/v202305/activity_service/__init__.py b/examples/ad_manager/v202402/activity_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/activity_service/__init__.py rename to examples/ad_manager/v202402/activity_service/__init__.py diff --git a/examples/ad_manager/v202305/activity_service/create_activities.py b/examples/ad_manager/v202402/activity_service/create_activities.py similarity index 99% rename from examples/ad_manager/v202305/activity_service/create_activities.py rename to examples/ad_manager/v202402/activity_service/create_activities.py index 3203b1f4..5255edf7 100755 --- a/examples/ad_manager/v202305/activity_service/create_activities.py +++ b/examples/ad_manager/v202402/activity_service/create_activities.py @@ -37,7 +37,7 @@ def main(client, activity_group_id): # Initialize appropriate service. - activity_service = client.GetService('ActivityService', version='v202305') + activity_service = client.GetService('ActivityService', version='v202402') # Create a daily visits activity. daily_visits_activity = { diff --git a/examples/ad_manager/v202305/activity_service/get_active_activities.py b/examples/ad_manager/v202402/activity_service/get_active_activities.py similarity index 96% rename from examples/ad_manager/v202305/activity_service/get_active_activities.py rename to examples/ad_manager/v202402/activity_service/get_active_activities.py index e680c993..3086c117 100755 --- a/examples/ad_manager/v202305/activity_service/get_active_activities.py +++ b/examples/ad_manager/v202402/activity_service/get_active_activities.py @@ -22,9 +22,9 @@ def main(client): # Initialize appropriate service. - activity_service = client.GetService('ActivityService', version='v202305') + activity_service = client.GetService('ActivityService', version='v202402') # Create a statement to select activities. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('status = :status') .WithBindVariable('status', 'ACTIVE')) diff --git a/examples/ad_manager/v202305/activity_service/get_all_activities.py b/examples/ad_manager/v202402/activity_service/get_all_activities.py similarity index 95% rename from examples/ad_manager/v202305/activity_service/get_all_activities.py rename to examples/ad_manager/v202402/activity_service/get_all_activities.py index 654e1887..2aee2884 100755 --- a/examples/ad_manager/v202305/activity_service/get_all_activities.py +++ b/examples/ad_manager/v202402/activity_service/get_all_activities.py @@ -22,10 +22,10 @@ def main(client): # Initialize appropriate service. - activity_service = client.GetService('ActivityService', version='v202305') + activity_service = client.GetService('ActivityService', version='v202402') # Create a statement to select activities. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of activities at a time, paging # through until all activities have been retrieved. diff --git a/examples/ad_manager/v202305/activity_service/update_activities.py b/examples/ad_manager/v202402/activity_service/update_activities.py similarity index 96% rename from examples/ad_manager/v202305/activity_service/update_activities.py rename to examples/ad_manager/v202402/activity_service/update_activities.py index 7e335bb7..d2d4d606 100755 --- a/examples/ad_manager/v202305/activity_service/update_activities.py +++ b/examples/ad_manager/v202402/activity_service/update_activities.py @@ -35,10 +35,10 @@ def main(client, activity_id): # Initialize appropriate service. - activity_service = client.GetService('ActivityService', version='v202305') + activity_service = client.GetService('ActivityService', version='v202402') # Create statement object to select one activity by ID to update. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :activityId') .WithBindVariable('activityId', int(activity_id)) .Limit(1)) diff --git a/examples/ad_manager/v202305/adjustment_service/create_forecast_adjustments.py b/examples/ad_manager/v202402/adjustment_service/create_forecast_adjustments.py similarity index 99% rename from examples/ad_manager/v202305/adjustment_service/create_forecast_adjustments.py rename to examples/ad_manager/v202402/adjustment_service/create_forecast_adjustments.py index ab955a9c..4b32eec0 100755 --- a/examples/ad_manager/v202305/adjustment_service/create_forecast_adjustments.py +++ b/examples/ad_manager/v202402/adjustment_service/create_forecast_adjustments.py @@ -27,7 +27,7 @@ def main(client, traffic_forecast_segment_id): # Initialize the adjustment service. - adjustment_service = client.GetService('AdjustmentService', version='v202305') + adjustment_service = client.GetService('AdjustmentService', version='v202402') # Create a new forecast adjustment for New Year's Day traffic. this_new_years = datetime.date(datetime.date.today().year, 1, 1) diff --git a/examples/ad_manager/v202305/adjustment_service/create_traffic_forecast_segments.py b/examples/ad_manager/v202402/adjustment_service/create_traffic_forecast_segments.py similarity index 98% rename from examples/ad_manager/v202305/adjustment_service/create_traffic_forecast_segments.py rename to examples/ad_manager/v202402/adjustment_service/create_traffic_forecast_segments.py index 4e66bac2..681f5d58 100755 --- a/examples/ad_manager/v202305/adjustment_service/create_traffic_forecast_segments.py +++ b/examples/ad_manager/v202402/adjustment_service/create_traffic_forecast_segments.py @@ -25,8 +25,8 @@ def main(client): # Initialize the adjustment service and the network service. - adjustment_service = client.GetService('AdjustmentService', version='v202305') - network_service = client.GetService('NetworkService', version='v202305') + adjustment_service = client.GetService('AdjustmentService', version='v202402') + network_service = client.GetService('NetworkService', version='v202402') # Get the root ad unit id to target the whole site. current_network = network_service.getCurrentNetwork() diff --git a/examples/ad_manager/v202305/adjustment_service/get_all_forecast_adjustments.py b/examples/ad_manager/v202402/adjustment_service/get_all_forecast_adjustments.py similarity index 95% rename from examples/ad_manager/v202305/adjustment_service/get_all_forecast_adjustments.py rename to examples/ad_manager/v202402/adjustment_service/get_all_forecast_adjustments.py index 5bc6f545..142e5f50 100755 --- a/examples/ad_manager/v202305/adjustment_service/get_all_forecast_adjustments.py +++ b/examples/ad_manager/v202402/adjustment_service/get_all_forecast_adjustments.py @@ -22,10 +22,10 @@ def main(client): # Initialize the adjustment service. - adjustment_service = client.GetService('AdjustmentService', version='v202305') + adjustment_service = client.GetService('AdjustmentService', version='v202402') # Create a statement to get all forecast adjustments. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small number of forecast adjustments at a time, paging # through until all forecast adjustments have been retrieved. diff --git a/examples/ad_manager/v202305/adjustment_service/get_all_traffic_forecast_segments.py b/examples/ad_manager/v202402/adjustment_service/get_all_traffic_forecast_segments.py similarity index 95% rename from examples/ad_manager/v202305/adjustment_service/get_all_traffic_forecast_segments.py rename to examples/ad_manager/v202402/adjustment_service/get_all_traffic_forecast_segments.py index a529fd46..7b2cd8dd 100755 --- a/examples/ad_manager/v202305/adjustment_service/get_all_traffic_forecast_segments.py +++ b/examples/ad_manager/v202402/adjustment_service/get_all_traffic_forecast_segments.py @@ -22,10 +22,10 @@ def main(client): # Initialize the adjustment service. - adjustment_service = client.GetService('AdjustmentService', version='v202305') + adjustment_service = client.GetService('AdjustmentService', version='v202402') # Create a statement to get all traffic forecast segments. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small number of segments at a time, paging through until all # segments have been retrieved. diff --git a/examples/ad_manager/v202305/adjustment_service/get_forecast_adjustments_for_traffic_forecast_segment.py b/examples/ad_manager/v202402/adjustment_service/get_forecast_adjustments_for_traffic_forecast_segment.py similarity index 96% rename from examples/ad_manager/v202305/adjustment_service/get_forecast_adjustments_for_traffic_forecast_segment.py rename to examples/ad_manager/v202402/adjustment_service/get_forecast_adjustments_for_traffic_forecast_segment.py index cb10f85c..2a1325e8 100755 --- a/examples/ad_manager/v202305/adjustment_service/get_forecast_adjustments_for_traffic_forecast_segment.py +++ b/examples/ad_manager/v202402/adjustment_service/get_forecast_adjustments_for_traffic_forecast_segment.py @@ -24,11 +24,11 @@ def main(client, traffic_forecast_segment_id): # Initialize the adjustment service. - adjustment_service = client.GetService('AdjustmentService', version='v202305') + adjustment_service = client.GetService('AdjustmentService', version='v202402') # Create a statement to get forecast adjustments for a given traffic forecast # segment id. - statement = ad_manager.StatementBuilder(version='v202305').Where( + statement = ad_manager.StatementBuilder(version='v202402').Where( 'trafficForecastSegmentId = :segmentId').WithBindVariable( 'segmentId', traffic_forecast_segment_id) diff --git a/examples/ad_manager/v202305/adjustment_service/update_forecast_adjustments.py b/examples/ad_manager/v202402/adjustment_service/update_forecast_adjustments.py similarity index 96% rename from examples/ad_manager/v202305/adjustment_service/update_forecast_adjustments.py rename to examples/ad_manager/v202402/adjustment_service/update_forecast_adjustments.py index f0d3d697..7351b8c3 100755 --- a/examples/ad_manager/v202305/adjustment_service/update_forecast_adjustments.py +++ b/examples/ad_manager/v202402/adjustment_service/update_forecast_adjustments.py @@ -24,12 +24,12 @@ def main(client, adjustment_id): # Initialize the adjustment service. - adjustment_service = client.GetService('AdjustmentService', version='v202305') + adjustment_service = client.GetService('AdjustmentService', version='v202402') # Create a statement to select a single forecast adjustment by id. statement = ( ad_manager.StatementBuilder( - version='v202305').Where('id = :id').WithBindVariable( + version='v202402').Where('id = :id').WithBindVariable( 'id', adjustment_id)) # Get the forecast adjustment. diff --git a/examples/ad_manager/v202305/audience_segment_service/__init__.py b/examples/ad_manager/v202402/audience_segment_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/audience_segment_service/__init__.py rename to examples/ad_manager/v202402/audience_segment_service/__init__.py diff --git a/examples/ad_manager/v202305/audience_segment_service/create_audience_segments.py b/examples/ad_manager/v202402/audience_segment_service/create_audience_segments.py similarity index 98% rename from examples/ad_manager/v202305/audience_segment_service/create_audience_segments.py rename to examples/ad_manager/v202402/audience_segment_service/create_audience_segments.py index 0e8a63eb..89dedfd9 100755 --- a/examples/ad_manager/v202305/audience_segment_service/create_audience_segments.py +++ b/examples/ad_manager/v202402/audience_segment_service/create_audience_segments.py @@ -30,8 +30,8 @@ def main(client, custom_targeting_key_id, custom_targeting_value_id): # Initialize appropriate services. audience_segment_service = client.GetService( - 'AudienceSegmentService', version='v202305') - network_service = client.GetService('NetworkService', version='v202305') + 'AudienceSegmentService', version='v202402') + network_service = client.GetService('NetworkService', version='v202402') # Get the root ad unit ID used to target the entire network. root_ad_unit_id = ( diff --git a/examples/ad_manager/v202305/audience_segment_service/get_all_audience_segments.py b/examples/ad_manager/v202402/audience_segment_service/get_all_audience_segments.py similarity index 94% rename from examples/ad_manager/v202305/audience_segment_service/get_all_audience_segments.py rename to examples/ad_manager/v202402/audience_segment_service/get_all_audience_segments.py index df4d3314..bad60ec0 100755 --- a/examples/ad_manager/v202305/audience_segment_service/get_all_audience_segments.py +++ b/examples/ad_manager/v202402/audience_segment_service/get_all_audience_segments.py @@ -23,10 +23,10 @@ def main(client): # Initialize appropriate service. audience_segment_service = client.GetService( - 'AudienceSegmentService', version='v202305') + 'AudienceSegmentService', version='v202402') # Create a statement to select audience segments. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of audience segments at a time, paging # through until all audience segments have been retrieved. diff --git a/examples/ad_manager/v202305/audience_segment_service/get_first_party_audience_segments.py b/examples/ad_manager/v202402/audience_segment_service/get_first_party_audience_segments.py similarity index 94% rename from examples/ad_manager/v202305/audience_segment_service/get_first_party_audience_segments.py rename to examples/ad_manager/v202402/audience_segment_service/get_first_party_audience_segments.py index ddafa1ab..3bc54fbf 100755 --- a/examples/ad_manager/v202305/audience_segment_service/get_first_party_audience_segments.py +++ b/examples/ad_manager/v202402/audience_segment_service/get_first_party_audience_segments.py @@ -23,9 +23,9 @@ def main(client): # Initialize appropriate service. audience_segment_service = client.GetService( - 'AudienceSegmentService', version='v202305') + 'AudienceSegmentService', version='v202402') # Create a statement to select audience segments. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('type = :type') .WithBindVariable('type', 'FIRST_PARTY')) diff --git a/examples/ad_manager/v202305/audience_segment_service/populate_first_party_audience_segments.py b/examples/ad_manager/v202402/audience_segment_service/populate_first_party_audience_segments.py similarity index 95% rename from examples/ad_manager/v202305/audience_segment_service/populate_first_party_audience_segments.py rename to examples/ad_manager/v202402/audience_segment_service/populate_first_party_audience_segments.py index a76c8f76..98fa644a 100755 --- a/examples/ad_manager/v202305/audience_segment_service/populate_first_party_audience_segments.py +++ b/examples/ad_manager/v202402/audience_segment_service/populate_first_party_audience_segments.py @@ -30,10 +30,10 @@ def main(client, audience_segment_id): # Initialize appropriate service. audience_segment_service = client.GetService( - 'AudienceSegmentService', version='v202305') + 'AudienceSegmentService', version='v202402') # Create statement object to get the specified first party audience segment. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('Type = :type AND Id = :audience_segment_id') .WithBindVariable('audience_segment_id', int(audience_segment_id)) diff --git a/examples/ad_manager/v202305/audience_segment_service/update_audience_segments.py b/examples/ad_manager/v202402/audience_segment_service/update_audience_segments.py similarity index 95% rename from examples/ad_manager/v202305/audience_segment_service/update_audience_segments.py rename to examples/ad_manager/v202402/audience_segment_service/update_audience_segments.py index ba166d89..68098ba8 100755 --- a/examples/ad_manager/v202305/audience_segment_service/update_audience_segments.py +++ b/examples/ad_manager/v202402/audience_segment_service/update_audience_segments.py @@ -29,10 +29,10 @@ def main(client, audience_segment_id): # Initialize appropriate service. audience_segment_service = client.GetService( - 'AudienceSegmentService', version='v202305') + 'AudienceSegmentService', version='v202402') # Create statement object to get the specified first party audience segment. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('Type = :type AND Id = :audience_segment_id') .WithBindVariable('audience_segment_id', int(audience_segment_id)) diff --git a/examples/ad_manager/v202305/cdn_configuration_service/__init__.py b/examples/ad_manager/v202402/cdn_configuration_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/cdn_configuration_service/__init__.py rename to examples/ad_manager/v202402/cdn_configuration_service/__init__.py diff --git a/examples/ad_manager/v202305/cdn_configuration_service/create_cdn_configurations.py b/examples/ad_manager/v202402/cdn_configuration_service/create_cdn_configurations.py similarity index 97% rename from examples/ad_manager/v202305/cdn_configuration_service/create_cdn_configurations.py rename to examples/ad_manager/v202402/cdn_configuration_service/create_cdn_configurations.py index d2e3baa3..811af949 100755 --- a/examples/ad_manager/v202305/cdn_configuration_service/create_cdn_configurations.py +++ b/examples/ad_manager/v202402/cdn_configuration_service/create_cdn_configurations.py @@ -27,7 +27,7 @@ def main(client): # Initialize appropriate service. cdn_config_service = client.GetService('CdnConfigurationService', - version='v202305') + version='v202402') # Create cdn config objects. # Only LIVE_STREAM_SOURCE_CONTENT is currently supported by the API. diff --git a/examples/ad_manager/v202305/cdn_configuration_service/get_all_cdn_configurations.py b/examples/ad_manager/v202402/cdn_configuration_service/get_all_cdn_configurations.py similarity index 93% rename from examples/ad_manager/v202305/cdn_configuration_service/get_all_cdn_configurations.py rename to examples/ad_manager/v202402/cdn_configuration_service/get_all_cdn_configurations.py index fb2339b1..24d85ec7 100755 --- a/examples/ad_manager/v202305/cdn_configuration_service/get_all_cdn_configurations.py +++ b/examples/ad_manager/v202402/cdn_configuration_service/get_all_cdn_configurations.py @@ -26,10 +26,10 @@ def main(client): # Initialize appropriate service. cdn_config_service = client.GetService('CdnConfigurationService', - version='v202305') + version='v202402') # Create a statement to select cdn configurations. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small number of configs at a time, paging # through until all have been retrieved. diff --git a/examples/ad_manager/v202305/cms_metadata_service/activate_cms_metadata_values.py b/examples/ad_manager/v202402/cms_metadata_service/activate_cms_metadata_values.py similarity index 95% rename from examples/ad_manager/v202305/cms_metadata_service/activate_cms_metadata_values.py rename to examples/ad_manager/v202402/cms_metadata_service/activate_cms_metadata_values.py index 1f05978a..3dd5db5d 100755 --- a/examples/ad_manager/v202305/cms_metadata_service/activate_cms_metadata_values.py +++ b/examples/ad_manager/v202402/cms_metadata_service/activate_cms_metadata_values.py @@ -28,10 +28,10 @@ def main(client, cms_metadata_key_id): # Initialize appropriate service. cms_metadata_service = client.GetService('CmsMetadataService', - version='v202305') + version='v202402') # Create query. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('cmsKeyId = :cmsKeyId AND status = :status') .WithBindVariable('status', 'INACTIVE') .WithBindVariable('cmsKeyId', int(cms_metadata_key_id))) diff --git a/examples/ad_manager/v202305/cms_metadata_service/get_all_cms_metadata_keys.py b/examples/ad_manager/v202402/cms_metadata_service/get_all_cms_metadata_keys.py similarity index 94% rename from examples/ad_manager/v202305/cms_metadata_service/get_all_cms_metadata_keys.py rename to examples/ad_manager/v202402/cms_metadata_service/get_all_cms_metadata_keys.py index e2ca5e00..3e75d7b0 100755 --- a/examples/ad_manager/v202305/cms_metadata_service/get_all_cms_metadata_keys.py +++ b/examples/ad_manager/v202402/cms_metadata_service/get_all_cms_metadata_keys.py @@ -24,10 +24,10 @@ def main(client): # Initialize appropriate service. cms_metadata_service = client.GetService( - 'CmsMetadataService', version='v202305') + 'CmsMetadataService', version='v202402') # Create a statement to select CmsMetadataKeys. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of keys at a time, paging # through until all keys have been retrieved. diff --git a/examples/ad_manager/v202305/cms_metadata_service/get_all_cms_metadata_values.py b/examples/ad_manager/v202402/cms_metadata_service/get_all_cms_metadata_values.py similarity index 94% rename from examples/ad_manager/v202305/cms_metadata_service/get_all_cms_metadata_values.py rename to examples/ad_manager/v202402/cms_metadata_service/get_all_cms_metadata_values.py index 4bc2a178..962f350b 100755 --- a/examples/ad_manager/v202305/cms_metadata_service/get_all_cms_metadata_values.py +++ b/examples/ad_manager/v202402/cms_metadata_service/get_all_cms_metadata_values.py @@ -24,10 +24,10 @@ def main(client): # Initialize appropriate service. cms_metadata_service = client.GetService( - 'CmsMetadataService', version='v202305') + 'CmsMetadataService', version='v202402') # Create a statement to select CmsMetadataValues. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of values at a time, paging # through until all values have been retrieved. diff --git a/examples/ad_manager/v202305/cms_metadata_service/get_cms_metadata_values_for_key.py b/examples/ad_manager/v202402/cms_metadata_service/get_cms_metadata_values_for_key.py similarity index 95% rename from examples/ad_manager/v202305/cms_metadata_service/get_cms_metadata_values_for_key.py rename to examples/ad_manager/v202402/cms_metadata_service/get_cms_metadata_values_for_key.py index 4b4a3caa..21509e81 100755 --- a/examples/ad_manager/v202305/cms_metadata_service/get_cms_metadata_values_for_key.py +++ b/examples/ad_manager/v202402/cms_metadata_service/get_cms_metadata_values_for_key.py @@ -26,11 +26,11 @@ def main(client, cms_metadata_key_name): # Initialize appropriate service. cms_metadata_service = client.GetService( - 'CmsMetadataService', version='v202305') + 'CmsMetadataService', version='v202402') # Create a statement to select CmsMetadataValues for a particular key. statement = ( - ad_manager.StatementBuilder(version='v202305').Where( + ad_manager.StatementBuilder(version='v202402').Where( 'cmsKey = :cmsMetadataKeyName').WithBindVariable( 'cmsMetadataKeyName', cms_metadata_key_name)) diff --git a/examples/ad_manager/v202305/company_service/__init__.py b/examples/ad_manager/v202402/company_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/company_service/__init__.py rename to examples/ad_manager/v202402/company_service/__init__.py diff --git a/examples/ad_manager/v202305/company_service/create_companies.py b/examples/ad_manager/v202402/company_service/create_companies.py similarity index 99% rename from examples/ad_manager/v202305/company_service/create_companies.py rename to examples/ad_manager/v202402/company_service/create_companies.py index 537a71b4..6430597b 100755 --- a/examples/ad_manager/v202305/company_service/create_companies.py +++ b/examples/ad_manager/v202402/company_service/create_companies.py @@ -34,7 +34,7 @@ def main(client): # Initialize appropriate service. - company_service = client.GetService('CompanyService', version='v202305') + company_service = client.GetService('CompanyService', version='v202402') # Create company objects. companies = [ diff --git a/examples/ad_manager/v202305/company_service/get_advertisers.py b/examples/ad_manager/v202402/company_service/get_advertisers.py similarity index 96% rename from examples/ad_manager/v202305/company_service/get_advertisers.py rename to examples/ad_manager/v202402/company_service/get_advertisers.py index 34772b03..af5d0222 100755 --- a/examples/ad_manager/v202305/company_service/get_advertisers.py +++ b/examples/ad_manager/v202402/company_service/get_advertisers.py @@ -22,9 +22,9 @@ def main(client): # Initialize appropriate service. - company_service = client.GetService('CompanyService', version='v202305') + company_service = client.GetService('CompanyService', version='v202402') # Create a statement to select companies. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('type = :type') .WithBindVariable('type', 'ADVERTISER')) diff --git a/examples/ad_manager/v202305/company_service/get_all_companies.py b/examples/ad_manager/v202402/company_service/get_all_companies.py similarity index 95% rename from examples/ad_manager/v202305/company_service/get_all_companies.py rename to examples/ad_manager/v202402/company_service/get_all_companies.py index f2381b84..86b4f791 100755 --- a/examples/ad_manager/v202305/company_service/get_all_companies.py +++ b/examples/ad_manager/v202402/company_service/get_all_companies.py @@ -22,10 +22,10 @@ def main(client): # Initialize appropriate service. - company_service = client.GetService('CompanyService', version='v202305') + company_service = client.GetService('CompanyService', version='v202402') # Create a statement to select companies. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of companies at a time, paging # through until all companies have been retrieved. diff --git a/examples/ad_manager/v202305/company_service/update_companies.py b/examples/ad_manager/v202402/company_service/update_companies.py similarity index 96% rename from examples/ad_manager/v202305/company_service/update_companies.py rename to examples/ad_manager/v202402/company_service/update_companies.py index 2a9d0312..db1e36ed 100755 --- a/examples/ad_manager/v202305/company_service/update_companies.py +++ b/examples/ad_manager/v202402/company_service/update_companies.py @@ -35,10 +35,10 @@ def main(client, company_id): # Initialize appropriate service. - company_service = client.GetService('CompanyService', version='v202305') + company_service = client.GetService('CompanyService', version='v202402') # Create statement object to only select a single company by ID. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :id') .WithBindVariable('id', int(company_id)) .Limit(1)) diff --git a/examples/ad_manager/v202305/contact_service/__init__.py b/examples/ad_manager/v202402/contact_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/contact_service/__init__.py rename to examples/ad_manager/v202402/contact_service/__init__.py diff --git a/examples/ad_manager/v202305/contact_service/create_contacts.py b/examples/ad_manager/v202402/contact_service/create_contacts.py similarity index 99% rename from examples/ad_manager/v202305/contact_service/create_contacts.py rename to examples/ad_manager/v202402/contact_service/create_contacts.py index ba10a72d..b633de20 100755 --- a/examples/ad_manager/v202305/contact_service/create_contacts.py +++ b/examples/ad_manager/v202402/contact_service/create_contacts.py @@ -40,7 +40,7 @@ def main(client, advertiser_company_id, agency_company_id): # Initialize appropriate service. - contact_service = client.GetService('ContactService', version='v202305') + contact_service = client.GetService('ContactService', version='v202402') # Create an advertiser contact. advertiser_contact = { diff --git a/examples/ad_manager/v202305/contact_service/get_all_contacts.py b/examples/ad_manager/v202402/contact_service/get_all_contacts.py similarity index 95% rename from examples/ad_manager/v202305/contact_service/get_all_contacts.py rename to examples/ad_manager/v202402/contact_service/get_all_contacts.py index c1c4cdfd..2bbae1cf 100755 --- a/examples/ad_manager/v202305/contact_service/get_all_contacts.py +++ b/examples/ad_manager/v202402/contact_service/get_all_contacts.py @@ -22,10 +22,10 @@ def main(client): # Initialize appropriate service. - contact_service = client.GetService('ContactService', version='v202305') + contact_service = client.GetService('ContactService', version='v202402') # Create a statement to select contacts. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of contacts at a time, paging # through until all contacts have been retrieved. diff --git a/examples/ad_manager/v202305/contact_service/get_uninvited_contacts.py b/examples/ad_manager/v202402/contact_service/get_uninvited_contacts.py similarity index 96% rename from examples/ad_manager/v202305/contact_service/get_uninvited_contacts.py rename to examples/ad_manager/v202402/contact_service/get_uninvited_contacts.py index 5934a23b..4ffcb3bd 100755 --- a/examples/ad_manager/v202305/contact_service/get_uninvited_contacts.py +++ b/examples/ad_manager/v202402/contact_service/get_uninvited_contacts.py @@ -22,9 +22,9 @@ def main(client): # Initialize appropriate service. - contact_service = client.GetService('ContactService', version='v202305') + contact_service = client.GetService('ContactService', version='v202402') # Create a statement to select contacts. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('status = :status') .WithBindVariable('status', 'UNINVITED')) diff --git a/examples/ad_manager/v202305/contact_service/update_contacts.py b/examples/ad_manager/v202402/contact_service/update_contacts.py similarity index 96% rename from examples/ad_manager/v202305/contact_service/update_contacts.py rename to examples/ad_manager/v202402/contact_service/update_contacts.py index 21889dec..5dcfaec9 100755 --- a/examples/ad_manager/v202305/contact_service/update_contacts.py +++ b/examples/ad_manager/v202402/contact_service/update_contacts.py @@ -35,10 +35,10 @@ def main(client, contact_id): # Initialize appropriate service. - contact_service = client.GetService('ContactService', version='v202305') + contact_service = client.GetService('ContactService', version='v202402') # Create statement object to select the single contact by ID. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :id') .WithBindVariable('id', int(contact_id)) .Limit(1)) diff --git a/examples/ad_manager/v202305/content_service/__init__.py b/examples/ad_manager/v202402/content_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/content_service/__init__.py rename to examples/ad_manager/v202402/content_service/__init__.py diff --git a/examples/ad_manager/v202305/content_service/get_all_content.py b/examples/ad_manager/v202402/content_service/get_all_content.py similarity index 96% rename from examples/ad_manager/v202305/content_service/get_all_content.py rename to examples/ad_manager/v202402/content_service/get_all_content.py index a82833b8..b9d07cc7 100755 --- a/examples/ad_manager/v202305/content_service/get_all_content.py +++ b/examples/ad_manager/v202402/content_service/get_all_content.py @@ -22,10 +22,10 @@ def main(client): # Initialize appropriate service. - content_service = client.GetService('ContentService', version='v202305') + content_service = client.GetService('ContentService', version='v202402') # Create a statement to select content. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of content at a time, paging # through until all content have been retrieved. diff --git a/examples/ad_manager/v202305/content_service/get_recently_modified_content.py b/examples/ad_manager/v202402/content_service/get_recently_modified_content.py similarity index 97% rename from examples/ad_manager/v202305/content_service/get_recently_modified_content.py rename to examples/ad_manager/v202402/content_service/get_recently_modified_content.py index a400f47e..e0ccc78d 100755 --- a/examples/ad_manager/v202305/content_service/get_recently_modified_content.py +++ b/examples/ad_manager/v202402/content_service/get_recently_modified_content.py @@ -26,7 +26,7 @@ def main(client): # Initialize appropriate service. - content_service = client.GetService('ContentService', version='v202305') + content_service = client.GetService('ContentService', version='v202402') last_modified = (datetime.now(tz=pytz.timezone('America/New_York')) - timedelta(days=1)) @@ -35,7 +35,7 @@ def main(client): # lastModifiedDateTime. Changes to content bundle associations will update # the lastModifiedDateTime, but CMS metadata changes may not change the # lastModifiedDateTime. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('lastModifiedDateTime >= :lastModifiedDateTime') .WithBindVariable('lastModifiedDateTime', last_modified)) diff --git a/examples/ad_manager/v202305/creative_service/__init__.py b/examples/ad_manager/v202402/creative_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/creative_service/__init__.py rename to examples/ad_manager/v202402/creative_service/__init__.py diff --git a/examples/ad_manager/v202305/creative_service/copy_image_creatives.py b/examples/ad_manager/v202402/creative_service/copy_image_creatives.py similarity index 96% rename from examples/ad_manager/v202305/creative_service/copy_image_creatives.py rename to examples/ad_manager/v202402/creative_service/copy_image_creatives.py index 3419713e..39bc30fc 100755 --- a/examples/ad_manager/v202305/creative_service/copy_image_creatives.py +++ b/examples/ad_manager/v202402/creative_service/copy_image_creatives.py @@ -28,10 +28,10 @@ def main(client): # Initialize appropriate service. - creative_service = client.GetService('CreativeService', version='v202305') + creative_service = client.GetService('CreativeService', version='v202402') # Create a statement to get the image creative. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :id') .OrderBy('id', ascending=True) .WithBindVariable('id', CREATIVE_ID)) diff --git a/examples/ad_manager/v202305/creative_service/create_creative_from_template.py b/examples/ad_manager/v202402/creative_service/create_creative_from_template.py similarity index 99% rename from examples/ad_manager/v202305/creative_service/create_creative_from_template.py rename to examples/ad_manager/v202402/creative_service/create_creative_from_template.py index 07539466..7c9d7f27 100755 --- a/examples/ad_manager/v202305/creative_service/create_creative_from_template.py +++ b/examples/ad_manager/v202402/creative_service/create_creative_from_template.py @@ -40,7 +40,7 @@ def main(client, advertiser_id): # Initialize appropriate service. - creative_service = client.GetService('CreativeService', version='v202305') + creative_service = client.GetService('CreativeService', version='v202402') # Use the image banner with optional third party tracking template. creative_template_id = '10000680' diff --git a/examples/ad_manager/v202305/creative_service/create_creatives.py b/examples/ad_manager/v202402/creative_service/create_creatives.py similarity index 99% rename from examples/ad_manager/v202305/creative_service/create_creatives.py rename to examples/ad_manager/v202402/creative_service/create_creatives.py index 1cd7e8ee..42444f5d 100755 --- a/examples/ad_manager/v202305/creative_service/create_creatives.py +++ b/examples/ad_manager/v202402/creative_service/create_creatives.py @@ -39,7 +39,7 @@ def main(client, advertiser_id): # Initialize appropriate service. - creative_service = client.GetService('CreativeService', version='v202305') + creative_service = client.GetService('CreativeService', version='v202402') # Create creative objects. creatives = [] diff --git a/examples/ad_manager/v202305/creative_service/create_custom_creative.py b/examples/ad_manager/v202402/creative_service/create_custom_creative.py similarity index 99% rename from examples/ad_manager/v202305/creative_service/create_custom_creative.py rename to examples/ad_manager/v202402/creative_service/create_custom_creative.py index 8cb99768..3cdf1d97 100755 --- a/examples/ad_manager/v202305/creative_service/create_custom_creative.py +++ b/examples/ad_manager/v202402/creative_service/create_custom_creative.py @@ -40,7 +40,7 @@ def main(client, advertiser_id): # Initialize appropriate service. - creative_service = client.GetService('CreativeService', version='v202305') + creative_service = client.GetService('CreativeService', version='v202402') # Get the image data for the creative. image_data = open(os.path.join(os.path.split(__file__)[0], '..', '..', 'data', diff --git a/examples/ad_manager/v202305/creative_service/create_native_creative.py b/examples/ad_manager/v202402/creative_service/create_native_creative.py similarity index 99% rename from examples/ad_manager/v202305/creative_service/create_native_creative.py rename to examples/ad_manager/v202402/creative_service/create_native_creative.py index 03150acf..6ae22851 100755 --- a/examples/ad_manager/v202305/creative_service/create_native_creative.py +++ b/examples/ad_manager/v202402/creative_service/create_native_creative.py @@ -45,7 +45,7 @@ def main(client, advertiser_id): # Initialize appropriate service. - creative_service = client.GetService('CreativeService', version='v202305') + creative_service = client.GetService('CreativeService', version='v202402') # Use the system defined native app install creative template. creative_template_id = '10004400' diff --git a/examples/ad_manager/v202305/creative_service/create_video_creatives.py b/examples/ad_manager/v202402/creative_service/create_video_creatives.py similarity index 99% rename from examples/ad_manager/v202305/creative_service/create_video_creatives.py rename to examples/ad_manager/v202402/creative_service/create_video_creatives.py index 1ee068d2..88dbfc17 100755 --- a/examples/ad_manager/v202305/creative_service/create_video_creatives.py +++ b/examples/ad_manager/v202402/creative_service/create_video_creatives.py @@ -36,7 +36,7 @@ def main(client, advertiser_id): # Initialize appropriate service. - creative_service = client.GetService('CreativeService', version='v202305') + creative_service = client.GetService('CreativeService', version='v202402') # Create a video creative. creative = { diff --git a/examples/ad_manager/v202305/creative_service/get_all_creatives.py b/examples/ad_manager/v202402/creative_service/get_all_creatives.py similarity index 95% rename from examples/ad_manager/v202305/creative_service/get_all_creatives.py rename to examples/ad_manager/v202402/creative_service/get_all_creatives.py index a47cf3ae..d2e1fc71 100755 --- a/examples/ad_manager/v202305/creative_service/get_all_creatives.py +++ b/examples/ad_manager/v202402/creative_service/get_all_creatives.py @@ -22,10 +22,10 @@ def main(client): # Initialize appropriate service. - creative_service = client.GetService('CreativeService', version='v202305') + creative_service = client.GetService('CreativeService', version='v202402') # Create a statement to select creatives. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of creatives at a time, paging # through until all creatives have been retrieved. diff --git a/examples/ad_manager/v202305/creative_service/get_image_creatives.py b/examples/ad_manager/v202402/creative_service/get_image_creatives.py similarity index 96% rename from examples/ad_manager/v202305/creative_service/get_image_creatives.py rename to examples/ad_manager/v202402/creative_service/get_image_creatives.py index 4410cd2e..13492477 100755 --- a/examples/ad_manager/v202305/creative_service/get_image_creatives.py +++ b/examples/ad_manager/v202402/creative_service/get_image_creatives.py @@ -22,9 +22,9 @@ def main(client): # Initialize appropriate service. - creative_service = client.GetService('CreativeService', version='v202305') + creative_service = client.GetService('CreativeService', version='v202402') # Create a statement to select creatives. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('creativeType = :creativeType') .WithBindVariable('creativeType', 'ImageCreative')) diff --git a/examples/ad_manager/v202305/creative_service/update_creatives.py b/examples/ad_manager/v202402/creative_service/update_creatives.py similarity index 97% rename from examples/ad_manager/v202305/creative_service/update_creatives.py rename to examples/ad_manager/v202402/creative_service/update_creatives.py index 9c40c0f6..f851bdc3 100755 --- a/examples/ad_manager/v202305/creative_service/update_creatives.py +++ b/examples/ad_manager/v202402/creative_service/update_creatives.py @@ -34,10 +34,10 @@ def main(client, image_creative_id): # Initialize appropriate service. - creative_service = client.GetService('CreativeService', version='v202305') + creative_service = client.GetService('CreativeService', version='v202402') # Create statement object to get the creative by ID. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('creativeType = :type AND id = :id') .WithBindVariable('type', 'ImageCreative') .WithBindVariable('id', int(image_creative_id)) diff --git a/examples/ad_manager/v202305/creative_set_service/__init__.py b/examples/ad_manager/v202402/creative_set_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/creative_set_service/__init__.py rename to examples/ad_manager/v202402/creative_set_service/__init__.py diff --git a/examples/ad_manager/v202305/creative_set_service/associate_creative_set_to_line_item.py b/examples/ad_manager/v202402/creative_set_service/associate_creative_set_to_line_item.py similarity index 96% rename from examples/ad_manager/v202305/creative_set_service/associate_creative_set_to_line_item.py rename to examples/ad_manager/v202402/creative_set_service/associate_creative_set_to_line_item.py index b0560cf1..7c7d17af 100755 --- a/examples/ad_manager/v202305/creative_set_service/associate_creative_set_to_line_item.py +++ b/examples/ad_manager/v202402/creative_set_service/associate_creative_set_to_line_item.py @@ -37,7 +37,7 @@ def main(client, creative_set_id, line_item_id): # Initialize appropriate service. lica_service = client.GetService( - 'LineItemCreativeAssociationService', version='v202305') + 'LineItemCreativeAssociationService', version='v202402') # Create LICA for a creative set. lica = {'creativeSetId': creative_set_id, 'lineItemId': line_item_id} diff --git a/examples/ad_manager/v202305/creative_set_service/create_creative_set.py b/examples/ad_manager/v202402/creative_set_service/create_creative_set.py similarity index 97% rename from examples/ad_manager/v202305/creative_set_service/create_creative_set.py rename to examples/ad_manager/v202402/creative_set_service/create_creative_set.py index 037da06b..1b4fe352 100755 --- a/examples/ad_manager/v202305/creative_set_service/create_creative_set.py +++ b/examples/ad_manager/v202402/creative_set_service/create_creative_set.py @@ -38,7 +38,7 @@ def main(client, master_creative_id, companion_creative_id): # Initialize appropriate service. creative_set_service = client.GetService('CreativeSetService', - version='v202305') + version='v202402') # Create creative set objects. creative_set = {'name': 'Creative set #%s' % uuid.uuid4(), diff --git a/examples/ad_manager/v202305/creative_set_service/get_all_creative_sets.py b/examples/ad_manager/v202402/creative_set_service/get_all_creative_sets.py similarity index 94% rename from examples/ad_manager/v202305/creative_set_service/get_all_creative_sets.py rename to examples/ad_manager/v202402/creative_set_service/get_all_creative_sets.py index cd53e5c9..0633355e 100755 --- a/examples/ad_manager/v202305/creative_set_service/get_all_creative_sets.py +++ b/examples/ad_manager/v202402/creative_set_service/get_all_creative_sets.py @@ -23,10 +23,10 @@ def main(client): # Initialize appropriate service. creative_set_service = client.GetService( - 'CreativeSetService', version='v202305') + 'CreativeSetService', version='v202402') # Create a statement to select creative sets. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of creative sets at a time, paging # through until all creative sets have been retrieved. diff --git a/examples/ad_manager/v202305/creative_set_service/get_creative_sets_for_master_creative.py b/examples/ad_manager/v202402/creative_set_service/get_creative_sets_for_master_creative.py similarity index 94% rename from examples/ad_manager/v202305/creative_set_service/get_creative_sets_for_master_creative.py rename to examples/ad_manager/v202402/creative_set_service/get_creative_sets_for_master_creative.py index c9f35964..9a232c46 100755 --- a/examples/ad_manager/v202305/creative_set_service/get_creative_sets_for_master_creative.py +++ b/examples/ad_manager/v202402/creative_set_service/get_creative_sets_for_master_creative.py @@ -25,9 +25,9 @@ def main(client, master_creative_id): # Initialize appropriate service. creative_set_service = client.GetService( - 'CreativeSetService', version='v202305') + 'CreativeSetService', version='v202402') # Create a statement to select creative sets. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('masterCreativeId = :masterCreativeId') .WithBindVariable('masterCreativeId', master_creative_id)) diff --git a/examples/ad_manager/v202305/creative_set_service/update_creative_set.py b/examples/ad_manager/v202402/creative_set_service/update_creative_set.py similarity index 95% rename from examples/ad_manager/v202305/creative_set_service/update_creative_set.py rename to examples/ad_manager/v202402/creative_set_service/update_creative_set.py index 4497fe97..a2d842cd 100755 --- a/examples/ad_manager/v202305/creative_set_service/update_creative_set.py +++ b/examples/ad_manager/v202402/creative_set_service/update_creative_set.py @@ -37,10 +37,10 @@ def main(client, creative_set_id, companion_creative_id): # Initialize appropriate service. creative_set_service = client.GetService('CreativeSetService', - version='v202305') + version='v202402') # Create statement to select a single creative set by ID. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :creativeSetId') .WithBindVariable('creativeSetId', int(creative_set_id))) diff --git a/examples/ad_manager/v202305/creative_template_service/__init__.py b/examples/ad_manager/v202402/creative_template_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/creative_template_service/__init__.py rename to examples/ad_manager/v202402/creative_template_service/__init__.py diff --git a/examples/ad_manager/v202305/creative_template_service/get_all_creative_templates.py b/examples/ad_manager/v202402/creative_template_service/get_all_creative_templates.py similarity index 94% rename from examples/ad_manager/v202305/creative_template_service/get_all_creative_templates.py rename to examples/ad_manager/v202402/creative_template_service/get_all_creative_templates.py index 3b70dbd9..b71bad12 100755 --- a/examples/ad_manager/v202305/creative_template_service/get_all_creative_templates.py +++ b/examples/ad_manager/v202402/creative_template_service/get_all_creative_templates.py @@ -23,10 +23,10 @@ def main(client): # Initialize appropriate service. creative_template_service = client.GetService( - 'CreativeTemplateService', version='v202305') + 'CreativeTemplateService', version='v202402') # Create a statement to select creative templates. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of creative templates at a time, paging # through until all creative templates have been retrieved. diff --git a/examples/ad_manager/v202305/creative_template_service/get_system_defined_creative_templates.py b/examples/ad_manager/v202402/creative_template_service/get_system_defined_creative_templates.py similarity index 94% rename from examples/ad_manager/v202305/creative_template_service/get_system_defined_creative_templates.py rename to examples/ad_manager/v202402/creative_template_service/get_system_defined_creative_templates.py index 26196c80..08113e7b 100755 --- a/examples/ad_manager/v202305/creative_template_service/get_system_defined_creative_templates.py +++ b/examples/ad_manager/v202402/creative_template_service/get_system_defined_creative_templates.py @@ -23,9 +23,9 @@ def main(client): # Initialize appropriate service. creative_template_service = client.GetService( - 'CreativeTemplateService', version='v202305') + 'CreativeTemplateService', version='v202402') # Create a statement to select creative templates. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('type = :type') .WithBindVariable('type', 'SYSTEM_DEFINED')) diff --git a/examples/ad_manager/v202305/creative_wrapper_service/create_creative_wrappers.py b/examples/ad_manager/v202402/creative_wrapper_service/create_creative_wrappers.py similarity index 97% rename from examples/ad_manager/v202305/creative_wrapper_service/create_creative_wrappers.py rename to examples/ad_manager/v202402/creative_wrapper_service/create_creative_wrappers.py index 00d33f96..4ce6cf30 100755 --- a/examples/ad_manager/v202305/creative_wrapper_service/create_creative_wrappers.py +++ b/examples/ad_manager/v202402/creative_wrapper_service/create_creative_wrappers.py @@ -37,7 +37,7 @@ def main(client, label_id): # Initialize appropriate service. creative_wrapper_service = client.GetService('CreativeWrapperService', - version='v202305') + version='v202402') # Create creative wrapper objects. creative_wrapper = { diff --git a/examples/ad_manager/v202305/creative_wrapper_service/deactivate_creative_wrapper.py b/examples/ad_manager/v202402/creative_wrapper_service/deactivate_creative_wrapper.py similarity index 95% rename from examples/ad_manager/v202305/creative_wrapper_service/deactivate_creative_wrapper.py rename to examples/ad_manager/v202402/creative_wrapper_service/deactivate_creative_wrapper.py index b1079fc5..91a0848b 100755 --- a/examples/ad_manager/v202305/creative_wrapper_service/deactivate_creative_wrapper.py +++ b/examples/ad_manager/v202402/creative_wrapper_service/deactivate_creative_wrapper.py @@ -33,10 +33,10 @@ def main(client, label_id): # Initialize appropriate service. creative_wrapper_service = client.GetService('CreativeWrapperService', - version='v202305') + version='v202402') # Create a query to select the active creative wrappers for the given label. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('status = :status AND labelId = :labelId') .WithBindVariable('status', 'ACTIVE') .WithBindVariable('labelId', int(label_id))) diff --git a/examples/ad_manager/v202305/creative_wrapper_service/get_active_creative_wrappers.py b/examples/ad_manager/v202402/creative_wrapper_service/get_active_creative_wrappers.py similarity index 94% rename from examples/ad_manager/v202305/creative_wrapper_service/get_active_creative_wrappers.py rename to examples/ad_manager/v202402/creative_wrapper_service/get_active_creative_wrappers.py index 3ce8c38d..61b9eccc 100755 --- a/examples/ad_manager/v202305/creative_wrapper_service/get_active_creative_wrappers.py +++ b/examples/ad_manager/v202402/creative_wrapper_service/get_active_creative_wrappers.py @@ -23,9 +23,9 @@ def main(client): # Initialize appropriate service. creative_wrapper_service = client.GetService( - 'CreativeWrapperService', version='v202305') + 'CreativeWrapperService', version='v202402') # Create a statement to select creative wrappers. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('status = :status') .WithBindVariable('status', 'ACTIVE')) diff --git a/examples/ad_manager/v202305/creative_wrapper_service/get_all_creative_wrappers.py b/examples/ad_manager/v202402/creative_wrapper_service/get_all_creative_wrappers.py similarity index 94% rename from examples/ad_manager/v202305/creative_wrapper_service/get_all_creative_wrappers.py rename to examples/ad_manager/v202402/creative_wrapper_service/get_all_creative_wrappers.py index ca495631..ffa67c80 100755 --- a/examples/ad_manager/v202305/creative_wrapper_service/get_all_creative_wrappers.py +++ b/examples/ad_manager/v202402/creative_wrapper_service/get_all_creative_wrappers.py @@ -23,10 +23,10 @@ def main(client): # Initialize appropriate service. creative_wrapper_service = client.GetService( - 'CreativeWrapperService', version='v202305') + 'CreativeWrapperService', version='v202402') # Create a statement to select creative wrappers. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of creative wrappers at a time, paging # through until all creative wrappers have been retrieved. diff --git a/examples/ad_manager/v202305/creative_wrapper_service/update_creative_wrappers.py b/examples/ad_manager/v202402/creative_wrapper_service/update_creative_wrappers.py similarity index 95% rename from examples/ad_manager/v202305/creative_wrapper_service/update_creative_wrappers.py rename to examples/ad_manager/v202402/creative_wrapper_service/update_creative_wrappers.py index 621123f1..5ecd002b 100755 --- a/examples/ad_manager/v202305/creative_wrapper_service/update_creative_wrappers.py +++ b/examples/ad_manager/v202402/creative_wrapper_service/update_creative_wrappers.py @@ -36,10 +36,10 @@ def main(client, creative_wrapper_id): # Initialize appropriate service. creative_wrapper_service = client.GetService('CreativeWrapperService', - version='v202305') + version='v202402') # Create statement to get a creative wrapper by ID. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :creativeWrapperId') .WithBindVariable('creativeWrapperId', int(creative_wrapper_id))) diff --git a/examples/ad_manager/v202305/custom_field_service/__init__.py b/examples/ad_manager/v202402/custom_field_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/custom_field_service/__init__.py rename to examples/ad_manager/v202402/custom_field_service/__init__.py diff --git a/examples/ad_manager/v202305/custom_field_service/create_custom_field_options.py b/examples/ad_manager/v202402/custom_field_service/create_custom_field_options.py similarity index 97% rename from examples/ad_manager/v202305/custom_field_service/create_custom_field_options.py rename to examples/ad_manager/v202402/custom_field_service/create_custom_field_options.py index 91b8ec13..f619d149 100755 --- a/examples/ad_manager/v202305/custom_field_service/create_custom_field_options.py +++ b/examples/ad_manager/v202402/custom_field_service/create_custom_field_options.py @@ -38,7 +38,7 @@ def main(client, custom_field_id): # Initialize appropriate service. custom_field_service = client.GetService( - 'CustomFieldService', version='v202305') + 'CustomFieldService', version='v202402') # Create custom field options. custom_field_options = [ diff --git a/examples/ad_manager/v202305/custom_field_service/create_custom_fields.py b/examples/ad_manager/v202402/custom_field_service/create_custom_fields.py similarity index 97% rename from examples/ad_manager/v202305/custom_field_service/create_custom_fields.py rename to examples/ad_manager/v202402/custom_field_service/create_custom_fields.py index ecf6e792..97a9afec 100755 --- a/examples/ad_manager/v202305/custom_field_service/create_custom_fields.py +++ b/examples/ad_manager/v202402/custom_field_service/create_custom_fields.py @@ -35,7 +35,7 @@ def main(client): # Initialize appropriate service. custom_field_service = client.GetService( - 'CustomFieldService', version='v202305') + 'CustomFieldService', version='v202402') # Create custom field objects. custom_fields = [ diff --git a/examples/ad_manager/v202305/custom_field_service/deactivate_all_line_item_custom_fields.py b/examples/ad_manager/v202402/custom_field_service/deactivate_all_line_item_custom_fields.py similarity index 95% rename from examples/ad_manager/v202305/custom_field_service/deactivate_all_line_item_custom_fields.py rename to examples/ad_manager/v202402/custom_field_service/deactivate_all_line_item_custom_fields.py index 4f1e00d6..f49f6012 100755 --- a/examples/ad_manager/v202305/custom_field_service/deactivate_all_line_item_custom_fields.py +++ b/examples/ad_manager/v202402/custom_field_service/deactivate_all_line_item_custom_fields.py @@ -33,11 +33,11 @@ def main(client): # Initialize appropriate service. custom_field_service = client.GetService( - 'CustomFieldService', version='v202305') + 'CustomFieldService', version='v202402') # Create statement to select only active custom fields that apply to # line items. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('entityType = :entityType and isActive = :isActive') .WithBindVariable('entityType', 'LINE_ITEM') .WithBindVariable('isActive', True)) diff --git a/examples/ad_manager/v202305/custom_field_service/get_all_custom_fields.py b/examples/ad_manager/v202402/custom_field_service/get_all_custom_fields.py similarity index 94% rename from examples/ad_manager/v202305/custom_field_service/get_all_custom_fields.py rename to examples/ad_manager/v202402/custom_field_service/get_all_custom_fields.py index 3635c81d..c4d3b199 100755 --- a/examples/ad_manager/v202305/custom_field_service/get_all_custom_fields.py +++ b/examples/ad_manager/v202402/custom_field_service/get_all_custom_fields.py @@ -23,10 +23,10 @@ def main(client): # Initialize appropriate service. custom_field_service = client.GetService( - 'CustomFieldService', version='v202305') + 'CustomFieldService', version='v202402') # Create a statement to select custom fields. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of custom fields at a time, paging # through until all custom fields have been retrieved. diff --git a/examples/ad_manager/v202305/custom_field_service/get_custom_fields_for_line_items.py b/examples/ad_manager/v202402/custom_field_service/get_custom_fields_for_line_items.py similarity index 94% rename from examples/ad_manager/v202305/custom_field_service/get_custom_fields_for_line_items.py rename to examples/ad_manager/v202402/custom_field_service/get_custom_fields_for_line_items.py index 5e53c7ec..55610285 100755 --- a/examples/ad_manager/v202305/custom_field_service/get_custom_fields_for_line_items.py +++ b/examples/ad_manager/v202402/custom_field_service/get_custom_fields_for_line_items.py @@ -23,9 +23,9 @@ def main(client): # Initialize appropriate service. custom_field_service = client.GetService( - 'CustomFieldService', version='v202305') + 'CustomFieldService', version='v202402') # Create a statement to select custom fields. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('entityType = :entityType') .WithBindVariable('entityType', 'LINE_ITEM')) diff --git a/examples/ad_manager/v202305/custom_field_service/set_line_item_custom_field_value.py b/examples/ad_manager/v202402/custom_field_service/set_line_item_custom_field_value.py similarity index 97% rename from examples/ad_manager/v202305/custom_field_service/set_line_item_custom_field_value.py rename to examples/ad_manager/v202402/custom_field_service/set_line_item_custom_field_value.py index 6ab06e82..5285efa6 100755 --- a/examples/ad_manager/v202305/custom_field_service/set_line_item_custom_field_value.py +++ b/examples/ad_manager/v202402/custom_field_service/set_line_item_custom_field_value.py @@ -42,12 +42,12 @@ def main(client, custom_field_id, drop_down_custom_field_id, custom_field_option_id, line_item_id): # Initialize appropriate services. custom_field_service = client.GetService( - 'CustomFieldService', version='v202305') + 'CustomFieldService', version='v202402') - line_item_service = client.GetService('LineItemService', version='v202305') + line_item_service = client.GetService('LineItemService', version='v202402') # Create statement to get a custom field. - custom_field_statement = (ad_manager.StatementBuilder(version='v202305') + custom_field_statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :customFieldId') .WithBindVariable('customFieldId', custom_field_id) .Limit(1)) @@ -58,7 +58,7 @@ def main(client, custom_field_id, drop_down_custom_field_id, # Create statement to get a drop down custom field. drop_down_custom_field_statement = ( - ad_manager.StatementBuilder(version='v202305') + ad_manager.StatementBuilder(version='v202402') .Where('id = :dropDownCustomFieldId') .WithBindVariable('dropDownCustomFieldId', drop_down_custom_field_id) .Limit(1)) @@ -68,7 +68,7 @@ def main(client, custom_field_id, drop_down_custom_field_id, drop_down_custom_field_statement.ToStatement())['results'][0] # Create statement to get a line item. - line_item_statement = (ad_manager.StatementBuilder(version='v202305') + line_item_statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :lineItemId') .WithBindVariable('lineItemId', line_item_id) .Limit(1)) diff --git a/examples/ad_manager/v202305/custom_field_service/update_custom_fields.py b/examples/ad_manager/v202402/custom_field_service/update_custom_fields.py similarity index 95% rename from examples/ad_manager/v202305/custom_field_service/update_custom_fields.py rename to examples/ad_manager/v202402/custom_field_service/update_custom_fields.py index 2aa17030..f3fdf462 100755 --- a/examples/ad_manager/v202305/custom_field_service/update_custom_fields.py +++ b/examples/ad_manager/v202402/custom_field_service/update_custom_fields.py @@ -36,10 +36,10 @@ def main(client, custom_field_id): # Initialize appropriate service. custom_field_service = client.GetService( - 'CustomFieldService', version='v202305') + 'CustomFieldService', version='v202402') # Create statement to get a custom field. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :customFieldId') .WithBindVariable('customFieldId', int(custom_field_id))) diff --git a/examples/ad_manager/v202305/custom_targeting_service/__init__.py b/examples/ad_manager/v202402/custom_targeting_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/custom_targeting_service/__init__.py rename to examples/ad_manager/v202402/custom_targeting_service/__init__.py diff --git a/examples/ad_manager/v202305/custom_targeting_service/create_custom_targeting_keys_and_values.py b/examples/ad_manager/v202402/custom_targeting_service/create_custom_targeting_keys_and_values.py similarity index 98% rename from examples/ad_manager/v202305/custom_targeting_service/create_custom_targeting_keys_and_values.py rename to examples/ad_manager/v202402/custom_targeting_service/create_custom_targeting_keys_and_values.py index 16ad1999..f86ff33e 100755 --- a/examples/ad_manager/v202305/custom_targeting_service/create_custom_targeting_keys_and_values.py +++ b/examples/ad_manager/v202402/custom_targeting_service/create_custom_targeting_keys_and_values.py @@ -35,7 +35,7 @@ def main(client): # Initialize appropriate service. custom_targeting_service = client.GetService( - 'CustomTargetingService', version='v202305') + 'CustomTargetingService', version='v202402') # Create custom targeting key objects. keys = [ diff --git a/examples/ad_manager/v202305/custom_targeting_service/delete_custom_targeting_keys.py b/examples/ad_manager/v202402/custom_targeting_service/delete_custom_targeting_keys.py similarity index 95% rename from examples/ad_manager/v202305/custom_targeting_service/delete_custom_targeting_keys.py rename to examples/ad_manager/v202402/custom_targeting_service/delete_custom_targeting_keys.py index 78d0b4dc..de2f2fc0 100755 --- a/examples/ad_manager/v202305/custom_targeting_service/delete_custom_targeting_keys.py +++ b/examples/ad_manager/v202402/custom_targeting_service/delete_custom_targeting_keys.py @@ -36,9 +36,9 @@ def main(client, key_name): # Initialize appropriate service. custom_targeting_service = client.GetService( - 'CustomTargetingService', version='v202305') + 'CustomTargetingService', version='v202402') - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('name = :name') .WithBindVariable('name', key_name)) @@ -51,7 +51,7 @@ def main(client, key_name): if 'results' in response and len(response['results']): key_ids = [str(key['id']) for key in response['results']] action = {'xsi_type': 'DeleteCustomTargetingKeys'} - key_statement = (ad_manager.StatementBuilder(version='v202305') + key_statement = (ad_manager.StatementBuilder(version='v202402') .Where('id IN (%s)' % ', '.join(key_ids))) # Delete custom targeting keys. diff --git a/examples/ad_manager/v202305/custom_targeting_service/delete_custom_targeting_values.py b/examples/ad_manager/v202402/custom_targeting_service/delete_custom_targeting_values.py similarity index 95% rename from examples/ad_manager/v202305/custom_targeting_service/delete_custom_targeting_values.py rename to examples/ad_manager/v202402/custom_targeting_service/delete_custom_targeting_values.py index 02194bda..4a5e763f 100755 --- a/examples/ad_manager/v202305/custom_targeting_service/delete_custom_targeting_values.py +++ b/examples/ad_manager/v202402/custom_targeting_service/delete_custom_targeting_values.py @@ -36,9 +36,9 @@ def main(client, key_id): # Initialize appropriate service. custom_targeting_service = client.GetService( - 'CustomTargetingService', version='v202305') + 'CustomTargetingService', version='v202402') - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('customTargetingKeyId = :keyId') .WithBindVariable('keyId', key_id)) @@ -51,7 +51,7 @@ def main(client, key_id): if 'results' in response and len(response['results']): value_ids = [str(value['id']) for value in response['results']] action = {'xsi_type': 'DeleteCustomTargetingValues'} - value_statement = (ad_manager.StatementBuilder(version='v202305') + value_statement = (ad_manager.StatementBuilder(version='v202402') .Where('customTargetingKeyId = :keyId ' 'AND id IN (%s)' % ', '.join(value_ids)) .WithBindVariable('keyId', key_id)) diff --git a/examples/ad_manager/v202305/custom_targeting_service/get_all_custom_targeting_keys_and_values.py b/examples/ad_manager/v202402/custom_targeting_service/get_all_custom_targeting_keys_and_values.py similarity index 95% rename from examples/ad_manager/v202305/custom_targeting_service/get_all_custom_targeting_keys_and_values.py rename to examples/ad_manager/v202402/custom_targeting_service/get_all_custom_targeting_keys_and_values.py index 27dcda72..d47f3d0e 100755 --- a/examples/ad_manager/v202305/custom_targeting_service/get_all_custom_targeting_keys_and_values.py +++ b/examples/ad_manager/v202402/custom_targeting_service/get_all_custom_targeting_keys_and_values.py @@ -23,10 +23,10 @@ def main(client): # Initialize appropriate service. custom_targeting_service = client.GetService( - 'CustomTargetingService', version='v202305') + 'CustomTargetingService', version='v202402') # Create statement to get all targeting keys. - targeting_key_statement = ad_manager.StatementBuilder(version='v202305') + targeting_key_statement = ad_manager.StatementBuilder(version='v202402') all_keys = [] @@ -42,7 +42,7 @@ def main(client): if all_keys: # Create a statement to select custom targeting values. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('customTargetingKeyId IN (%s)' % ', '.join([str(key['id']) for key in all_keys]))) diff --git a/examples/ad_manager/v202305/custom_targeting_service/get_predefined_custom_targeting_keys_and_values.py b/examples/ad_manager/v202402/custom_targeting_service/get_predefined_custom_targeting_keys_and_values.py similarity index 95% rename from examples/ad_manager/v202305/custom_targeting_service/get_predefined_custom_targeting_keys_and_values.py rename to examples/ad_manager/v202402/custom_targeting_service/get_predefined_custom_targeting_keys_and_values.py index a7f45c27..98b9801d 100755 --- a/examples/ad_manager/v202305/custom_targeting_service/get_predefined_custom_targeting_keys_and_values.py +++ b/examples/ad_manager/v202402/custom_targeting_service/get_predefined_custom_targeting_keys_and_values.py @@ -23,10 +23,10 @@ def main(client): # Initialize appropriate service. custom_targeting_service = client.GetService( - 'CustomTargetingService', version='v202305') + 'CustomTargetingService', version='v202402') # Create statement to get targeting keys for predefined values. - targeting_key_statement = (ad_manager.StatementBuilder(version='v202305') + targeting_key_statement = (ad_manager.StatementBuilder(version='v202402') .Where('type = :type') .WithBindVariable('type', 'PREDEFINED')) @@ -44,7 +44,7 @@ def main(client): if all_keys: # Create a statement to select custom targeting values. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('customTargetingKeyId IN (:ids)') .WithBindVariable('ids', [key['id'] for key in all_keys])) diff --git a/examples/ad_manager/v202305/custom_targeting_service/update_custom_targeting_keys.py b/examples/ad_manager/v202402/custom_targeting_service/update_custom_targeting_keys.py similarity index 95% rename from examples/ad_manager/v202305/custom_targeting_service/update_custom_targeting_keys.py rename to examples/ad_manager/v202402/custom_targeting_service/update_custom_targeting_keys.py index f9f65a6c..e0d299fa 100755 --- a/examples/ad_manager/v202305/custom_targeting_service/update_custom_targeting_keys.py +++ b/examples/ad_manager/v202402/custom_targeting_service/update_custom_targeting_keys.py @@ -30,9 +30,9 @@ def main(client, key_id): # Initialize appropriate service. custom_targeting_service = client.GetService( - 'CustomTargetingService', version='v202305') + 'CustomTargetingService', version='v202402') - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :keyId') .WithBindVariable('keyId', int(key_id)) .Limit(1)) diff --git a/examples/ad_manager/v202305/custom_targeting_service/update_custom_targeting_values.py b/examples/ad_manager/v202402/custom_targeting_service/update_custom_targeting_values.py similarity index 95% rename from examples/ad_manager/v202305/custom_targeting_service/update_custom_targeting_values.py rename to examples/ad_manager/v202402/custom_targeting_service/update_custom_targeting_values.py index 26190032..47d46bd3 100755 --- a/examples/ad_manager/v202305/custom_targeting_service/update_custom_targeting_values.py +++ b/examples/ad_manager/v202402/custom_targeting_service/update_custom_targeting_values.py @@ -30,9 +30,9 @@ def main(client, key_id): # Initialize appropriate service. custom_targeting_service = client.GetService( - 'CustomTargetingService', version='v202305') + 'CustomTargetingService', version='v202402') - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('customTargetingKeyId = :keyId') .WithBindVariable('keyId', int(key_id))) diff --git a/examples/ad_manager/v202305/forecast_service/get_availability_forecast.py b/examples/ad_manager/v202402/forecast_service/get_availability_forecast.py similarity index 99% rename from examples/ad_manager/v202305/forecast_service/get_availability_forecast.py rename to examples/ad_manager/v202402/forecast_service/get_availability_forecast.py index f416cd5d..efa777cb 100755 --- a/examples/ad_manager/v202305/forecast_service/get_availability_forecast.py +++ b/examples/ad_manager/v202402/forecast_service/get_availability_forecast.py @@ -37,8 +37,8 @@ def main(client, advertiser_id): # Initialize appropriate service. - forecast_service = client.GetService('ForecastService', version='v202305') - network_service = client.GetService('NetworkService', version='v202305') + forecast_service = client.GetService('ForecastService', version='v202402') + network_service = client.GetService('NetworkService', version='v202402') # get the root ad unit ID to target the entire network. root_ad_unit_id = network_service.getCurrentNetwork()['effectiveRootAdUnitId'] diff --git a/examples/ad_manager/v202305/forecast_service/get_availability_forecast_for_line_item.py b/examples/ad_manager/v202402/forecast_service/get_availability_forecast_for_line_item.py similarity index 99% rename from examples/ad_manager/v202305/forecast_service/get_availability_forecast_for_line_item.py rename to examples/ad_manager/v202402/forecast_service/get_availability_forecast_for_line_item.py index 4c55fbe1..54d4122e 100755 --- a/examples/ad_manager/v202305/forecast_service/get_availability_forecast_for_line_item.py +++ b/examples/ad_manager/v202402/forecast_service/get_availability_forecast_for_line_item.py @@ -30,7 +30,7 @@ def main(client, line_item_id): # Initialize appropriate service. - forecast_service = client.GetService('ForecastService', version='v202305') + forecast_service = client.GetService('ForecastService', version='v202402') # Set forecasting options. forecast_options = { diff --git a/examples/ad_manager/v202305/forecast_service/get_delivery_forecast_for_line_items.py b/examples/ad_manager/v202402/forecast_service/get_delivery_forecast_for_line_items.py similarity index 99% rename from examples/ad_manager/v202305/forecast_service/get_delivery_forecast_for_line_items.py rename to examples/ad_manager/v202402/forecast_service/get_delivery_forecast_for_line_items.py index fca45a4a..5326b600 100755 --- a/examples/ad_manager/v202305/forecast_service/get_delivery_forecast_for_line_items.py +++ b/examples/ad_manager/v202402/forecast_service/get_delivery_forecast_for_line_items.py @@ -31,7 +31,7 @@ def main(client, line_item_id1, line_item_id2): # Initialize appropriate service. - forecast_service = client.GetService('ForecastService', version='v202305') + forecast_service = client.GetService('ForecastService', version='v202402') # Get forecast for line item. forecast = forecast_service.getDeliveryForecastByIds( diff --git a/examples/ad_manager/v202305/forecast_service/get_traffic_data.py b/examples/ad_manager/v202402/forecast_service/get_traffic_data.py similarity index 99% rename from examples/ad_manager/v202305/forecast_service/get_traffic_data.py rename to examples/ad_manager/v202402/forecast_service/get_traffic_data.py index ff7517e2..a4a0f934 100755 --- a/examples/ad_manager/v202305/forecast_service/get_traffic_data.py +++ b/examples/ad_manager/v202402/forecast_service/get_traffic_data.py @@ -25,8 +25,8 @@ def main(client): # Initialize appropriate service. - forecast_service = client.GetService('ForecastService', version='v202305') - network_service = client.GetService('NetworkService', version='v202305') + forecast_service = client.GetService('ForecastService', version='v202402') + network_service = client.GetService('NetworkService', version='v202402') # get the root ad unit ID to target the entire network. root_ad_unit_id = network_service.getCurrentNetwork()['effectiveRootAdUnitId'] diff --git a/examples/ad_manager/v202305/inventory_service/__init__.py b/examples/ad_manager/v202402/inventory_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/inventory_service/__init__.py rename to examples/ad_manager/v202402/inventory_service/__init__.py diff --git a/examples/ad_manager/v202305/inventory_service/archive_ad_units.py b/examples/ad_manager/v202402/inventory_service/archive_ad_units.py similarity index 97% rename from examples/ad_manager/v202305/inventory_service/archive_ad_units.py rename to examples/ad_manager/v202402/inventory_service/archive_ad_units.py index 4de14c24..3c38ae13 100755 --- a/examples/ad_manager/v202305/inventory_service/archive_ad_units.py +++ b/examples/ad_manager/v202402/inventory_service/archive_ad_units.py @@ -35,11 +35,11 @@ def main(client, parent_id): # Initialize appropriate service. - inventory_service = client.GetService('InventoryService', version='v202305') + inventory_service = client.GetService('InventoryService', version='v202402') # Create a query to select ad units under the parent ad unit and the parent ad # unit. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('parentId = :parentId or id = :parentId') .WithBindVariable('parentId', int(parent_id))) diff --git a/examples/ad_manager/v202305/inventory_service/create_ad_units.py b/examples/ad_manager/v202402/inventory_service/create_ad_units.py similarity index 99% rename from examples/ad_manager/v202305/inventory_service/create_ad_units.py rename to examples/ad_manager/v202402/inventory_service/create_ad_units.py index aa46bf94..c42630a2 100755 --- a/examples/ad_manager/v202305/inventory_service/create_ad_units.py +++ b/examples/ad_manager/v202402/inventory_service/create_ad_units.py @@ -36,7 +36,7 @@ def main(client, parent_id): # Initialize appropriate service. - inventory_service = client.GetService('InventoryService', version='v202305') + inventory_service = client.GetService('InventoryService', version='v202402') # Create ad unit size. ad_unit_size = { diff --git a/examples/ad_manager/v202305/inventory_service/get_ad_unit_hierarchy.py b/examples/ad_manager/v202402/inventory_service/get_ad_unit_hierarchy.py similarity index 96% rename from examples/ad_manager/v202305/inventory_service/get_ad_unit_hierarchy.py rename to examples/ad_manager/v202402/inventory_service/get_ad_unit_hierarchy.py index c39ca02a..371d8a04 100755 --- a/examples/ad_manager/v202305/inventory_service/get_ad_unit_hierarchy.py +++ b/examples/ad_manager/v202402/inventory_service/get_ad_unit_hierarchy.py @@ -24,15 +24,15 @@ def main(client): # Initialize appropriate services. - network_service = client.GetService('NetworkService', version='v202305') - inventory_service = client.GetService('InventoryService', version='v202305') + network_service = client.GetService('NetworkService', version='v202402') + inventory_service = client.GetService('InventoryService', version='v202402') # Set the parent ad unit's ID for all children ad units to be fetched from. current_network = network_service.getCurrentNetwork() root_ad_unit_id = current_network['effectiveRootAdUnitId'] # Create a statement to select only the root ad unit by ID. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :id') .OrderBy('id', ascending=True) .Limit(1) @@ -57,7 +57,7 @@ def get_all_ad_units(inventory_service): A list containing all ad units. """ # Create a statement to get all ad units. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .OrderBy('id', ascending=True)) # Pull down all ad units into a list diff --git a/examples/ad_manager/v202305/inventory_service/get_all_ad_unit_sizes.py b/examples/ad_manager/v202402/inventory_service/get_all_ad_unit_sizes.py similarity index 93% rename from examples/ad_manager/v202305/inventory_service/get_all_ad_unit_sizes.py rename to examples/ad_manager/v202402/inventory_service/get_all_ad_unit_sizes.py index 148864fa..1fa31180 100755 --- a/examples/ad_manager/v202305/inventory_service/get_all_ad_unit_sizes.py +++ b/examples/ad_manager/v202402/inventory_service/get_all_ad_unit_sizes.py @@ -23,10 +23,10 @@ def main(client): # Initialize appropriate service. ad_unit_size_service = client.GetService( - 'InventoryService', version='v202305') + 'InventoryService', version='v202402') # Create a statement to select ad unit sizes. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of ad unit sizes at a time, paging # through until all ad unit sizes have been retrieved. diff --git a/examples/ad_manager/v202305/inventory_service/get_all_ad_units.py b/examples/ad_manager/v202402/inventory_service/get_all_ad_units.py similarity index 95% rename from examples/ad_manager/v202305/inventory_service/get_all_ad_units.py rename to examples/ad_manager/v202402/inventory_service/get_all_ad_units.py index 360a1732..623f1adf 100755 --- a/examples/ad_manager/v202305/inventory_service/get_all_ad_units.py +++ b/examples/ad_manager/v202402/inventory_service/get_all_ad_units.py @@ -22,10 +22,10 @@ def main(client): # Initialize appropriate service. - ad_unit_service = client.GetService('InventoryService', version='v202305') + ad_unit_service = client.GetService('InventoryService', version='v202402') # Create a statement to select ad units. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of ad units at a time, paging # through until all ad units have been retrieved. diff --git a/examples/ad_manager/v202305/inventory_service/get_top_level_ad_units.py b/examples/ad_manager/v202402/inventory_service/get_top_level_ad_units.py similarity index 96% rename from examples/ad_manager/v202305/inventory_service/get_top_level_ad_units.py rename to examples/ad_manager/v202402/inventory_service/get_top_level_ad_units.py index f4850841..3a69184a 100755 --- a/examples/ad_manager/v202305/inventory_service/get_top_level_ad_units.py +++ b/examples/ad_manager/v202402/inventory_service/get_top_level_ad_units.py @@ -23,15 +23,15 @@ def main(client): # Initialize appropriate services. - network_service = client.GetService('NetworkService', version='v202305') - inventory_service = client.GetService('InventoryService', version='v202305') + network_service = client.GetService('NetworkService', version='v202402') + inventory_service = client.GetService('InventoryService', version='v202402') # Set the parent ad unit's ID for all children ad units to be fetched from. current_network = network_service.getCurrentNetwork() parent_ad_unit_id = current_network['effectiveRootAdUnitId'] # Create a statement to select ad units under the parent ad unit. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('parentId = :parentId') .OrderBy('id', ascending=True) .WithBindVariable('parentId', parent_ad_unit_id)) diff --git a/examples/ad_manager/v202305/inventory_service/update_ad_units.py b/examples/ad_manager/v202402/inventory_service/update_ad_units.py similarity index 97% rename from examples/ad_manager/v202305/inventory_service/update_ad_units.py rename to examples/ad_manager/v202402/inventory_service/update_ad_units.py index fa017a94..b248f021 100755 --- a/examples/ad_manager/v202305/inventory_service/update_ad_units.py +++ b/examples/ad_manager/v202402/inventory_service/update_ad_units.py @@ -36,10 +36,10 @@ def main(client, ad_unit_id): # Initialize appropriate service. - inventory_service = client.GetService('InventoryService', version='v202305') + inventory_service = client.GetService('InventoryService', version='v202402') # Create a statement to select a single ad unit by ID. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :id') .WithBindVariable('id', ad_unit_id)) diff --git a/examples/ad_manager/v202305/label_service/__init__.py b/examples/ad_manager/v202402/label_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/label_service/__init__.py rename to examples/ad_manager/v202402/label_service/__init__.py diff --git a/examples/ad_manager/v202305/label_service/create_labels.py b/examples/ad_manager/v202402/label_service/create_labels.py similarity index 99% rename from examples/ad_manager/v202305/label_service/create_labels.py rename to examples/ad_manager/v202402/label_service/create_labels.py index 491ae71d..9e69edb8 100755 --- a/examples/ad_manager/v202305/label_service/create_labels.py +++ b/examples/ad_manager/v202402/label_service/create_labels.py @@ -29,7 +29,7 @@ def main(client): # Initialize appropriate service. - label_service = client.GetService('LabelService', version='v202305') + label_service = client.GetService('LabelService', version='v202402') # Create label objects. labels = [] diff --git a/examples/ad_manager/v202305/label_service/deactivate_labels.py b/examples/ad_manager/v202402/label_service/deactivate_labels.py similarity index 96% rename from examples/ad_manager/v202305/label_service/deactivate_labels.py rename to examples/ad_manager/v202402/label_service/deactivate_labels.py index fee4889e..20389b4b 100755 --- a/examples/ad_manager/v202305/label_service/deactivate_labels.py +++ b/examples/ad_manager/v202402/label_service/deactivate_labels.py @@ -27,10 +27,10 @@ def main(client): # Initialize appropriate service. - label_service = client.GetService('LabelService', version='v202305') + label_service = client.GetService('LabelService', version='v202402') # Create query. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('isActive = :isActive') .WithBindVariable('isActive', True)) diff --git a/examples/ad_manager/v202305/label_service/get_active_labels.py b/examples/ad_manager/v202402/label_service/get_active_labels.py similarity index 96% rename from examples/ad_manager/v202305/label_service/get_active_labels.py rename to examples/ad_manager/v202402/label_service/get_active_labels.py index 77698526..0fa007e4 100755 --- a/examples/ad_manager/v202305/label_service/get_active_labels.py +++ b/examples/ad_manager/v202402/label_service/get_active_labels.py @@ -22,9 +22,9 @@ def main(client): # Initialize appropriate service. - label_service = client.GetService('LabelService', version='v202305') + label_service = client.GetService('LabelService', version='v202402') # Create a statement to select labels. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('isActive = :isActive') .WithBindVariable('isActive', True)) diff --git a/examples/ad_manager/v202305/label_service/get_all_labels.py b/examples/ad_manager/v202402/label_service/get_all_labels.py similarity index 96% rename from examples/ad_manager/v202305/label_service/get_all_labels.py rename to examples/ad_manager/v202402/label_service/get_all_labels.py index c7fae939..798a6ef1 100755 --- a/examples/ad_manager/v202305/label_service/get_all_labels.py +++ b/examples/ad_manager/v202402/label_service/get_all_labels.py @@ -22,10 +22,10 @@ def main(client): # Initialize appropriate service. - label_service = client.GetService('LabelService', version='v202305') + label_service = client.GetService('LabelService', version='v202402') # Create a statement to select labels. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of labels at a time, paging # through until all labels have been retrieved. diff --git a/examples/ad_manager/v202305/label_service/update_labels.py b/examples/ad_manager/v202402/label_service/update_labels.py similarity index 96% rename from examples/ad_manager/v202305/label_service/update_labels.py rename to examples/ad_manager/v202402/label_service/update_labels.py index 746e68d4..3cf02be1 100755 --- a/examples/ad_manager/v202305/label_service/update_labels.py +++ b/examples/ad_manager/v202402/label_service/update_labels.py @@ -29,10 +29,10 @@ def main(client, label_id): # Initialize appropriate service. - label_service = client.GetService('LabelService', version='v202305') + label_service = client.GetService('LabelService', version='v202402') # Create a statement to select only active labels. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :labelId') .WithBindVariable('labelId', int(label_id))) diff --git a/examples/ad_manager/v202305/line_item_creative_association_service/__init__.py b/examples/ad_manager/v202402/line_item_creative_association_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/line_item_creative_association_service/__init__.py rename to examples/ad_manager/v202402/line_item_creative_association_service/__init__.py diff --git a/examples/ad_manager/v202305/line_item_creative_association_service/create_licas.py b/examples/ad_manager/v202402/line_item_creative_association_service/create_licas.py similarity index 96% rename from examples/ad_manager/v202305/line_item_creative_association_service/create_licas.py rename to examples/ad_manager/v202402/line_item_creative_association_service/create_licas.py index 03bbd09e..f7ca97ab 100755 --- a/examples/ad_manager/v202305/line_item_creative_association_service/create_licas.py +++ b/examples/ad_manager/v202402/line_item_creative_association_service/create_licas.py @@ -32,7 +32,7 @@ def main(client, line_item_id, creative_ids): # Initialize appropriate service. lica_service = client.GetService( - 'LineItemCreativeAssociationService', version='v202305') + 'LineItemCreativeAssociationService', version='v202402') licas = [] for creative_id in creative_ids: diff --git a/examples/ad_manager/v202305/line_item_creative_association_service/deactivate_licas.py b/examples/ad_manager/v202402/line_item_creative_association_service/deactivate_licas.py similarity index 95% rename from examples/ad_manager/v202305/line_item_creative_association_service/deactivate_licas.py rename to examples/ad_manager/v202402/line_item_creative_association_service/deactivate_licas.py index 3240a742..0fdfb3f4 100755 --- a/examples/ad_manager/v202305/line_item_creative_association_service/deactivate_licas.py +++ b/examples/ad_manager/v202402/line_item_creative_association_service/deactivate_licas.py @@ -30,10 +30,10 @@ def main(client, line_item_id): # Initialize appropriate service. lica_service = client.GetService( - 'LineItemCreativeAssociationService', version='v202305') + 'LineItemCreativeAssociationService', version='v202402') # Create query. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('lineItemId = :lineItemId AND status = :status') .WithBindVariable('status', 'ACTIVE') .WithBindVariable('lineItemId', int(line_item_id))) diff --git a/examples/ad_manager/v202305/line_item_creative_association_service/get_all_licas.py b/examples/ad_manager/v202402/line_item_creative_association_service/get_all_licas.py similarity index 94% rename from examples/ad_manager/v202305/line_item_creative_association_service/get_all_licas.py rename to examples/ad_manager/v202402/line_item_creative_association_service/get_all_licas.py index fed22b8e..d78c1904 100755 --- a/examples/ad_manager/v202305/line_item_creative_association_service/get_all_licas.py +++ b/examples/ad_manager/v202402/line_item_creative_association_service/get_all_licas.py @@ -23,10 +23,10 @@ def main(client): # Initialize appropriate service. lica_service = client.GetService( - 'LineItemCreativeAssociationService', version='v202305') + 'LineItemCreativeAssociationService', version='v202402') # Create a statement to select line item creative associations. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of line item creative associations at a time, paging # through until all line item creative associations have been retrieved. diff --git a/examples/ad_manager/v202305/line_item_creative_association_service/get_licas_for_line_item.py b/examples/ad_manager/v202402/line_item_creative_association_service/get_licas_for_line_item.py similarity index 94% rename from examples/ad_manager/v202305/line_item_creative_association_service/get_licas_for_line_item.py rename to examples/ad_manager/v202402/line_item_creative_association_service/get_licas_for_line_item.py index 690b127a..f6e5ee80 100755 --- a/examples/ad_manager/v202305/line_item_creative_association_service/get_licas_for_line_item.py +++ b/examples/ad_manager/v202402/line_item_creative_association_service/get_licas_for_line_item.py @@ -25,9 +25,9 @@ def main(client, line_item_id): # Initialize appropriate service. lica_service = client.GetService( - 'LineItemCreativeAssociationService', version='v202305') + 'LineItemCreativeAssociationService', version='v202402') # Create a statement to select line item creative associations. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('lineItemId = :lineItemId') .WithBindVariable('lineItemId', line_item_id)) diff --git a/examples/ad_manager/v202305/line_item_creative_association_service/push_creative_to_devices.py b/examples/ad_manager/v202402/line_item_creative_association_service/push_creative_to_devices.py similarity index 94% rename from examples/ad_manager/v202305/line_item_creative_association_service/push_creative_to_devices.py rename to examples/ad_manager/v202402/line_item_creative_association_service/push_creative_to_devices.py index 3af8f480..047040c3 100755 --- a/examples/ad_manager/v202305/line_item_creative_association_service/push_creative_to_devices.py +++ b/examples/ad_manager/v202402/line_item_creative_association_service/push_creative_to_devices.py @@ -34,11 +34,11 @@ def main(client, line_item_id, creative_id, linked_device_id): # Initialize appropriate service. lica_service = client.GetService( - 'LineItemCreativeAssociationService', version='v202305') + 'LineItemCreativeAssociationService', version='v202402') # Create query to select a single linked device. # Linked devices can be read from the linked_device PQL table. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :linkedDeviceId') .WithBindVariable('linkedDeviceId', int(linked_device_id))) diff --git a/examples/ad_manager/v202305/line_item_creative_association_service/update_licas.py b/examples/ad_manager/v202402/line_item_creative_association_service/update_licas.py similarity index 94% rename from examples/ad_manager/v202305/line_item_creative_association_service/update_licas.py rename to examples/ad_manager/v202402/line_item_creative_association_service/update_licas.py index 1785588a..4fb3b175 100755 --- a/examples/ad_manager/v202305/line_item_creative_association_service/update_licas.py +++ b/examples/ad_manager/v202402/line_item_creative_association_service/update_licas.py @@ -28,10 +28,10 @@ def main(client): # Initialize appropriate service. lica_service = client.GetService( - 'LineItemCreativeAssociationService', version='v202305') + 'LineItemCreativeAssociationService', version='v202402') # Create statement object to get all LICAs. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') while True: # Get LICAs by statement. diff --git a/examples/ad_manager/v202305/line_item_service/__init__.py b/examples/ad_manager/v202402/line_item_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/line_item_service/__init__.py rename to examples/ad_manager/v202402/line_item_service/__init__.py diff --git a/examples/ad_manager/v202305/line_item_service/activate_line_items.py b/examples/ad_manager/v202402/line_item_service/activate_line_items.py similarity index 97% rename from examples/ad_manager/v202305/line_item_service/activate_line_items.py rename to examples/ad_manager/v202402/line_item_service/activate_line_items.py index 97894915..1ace6e63 100755 --- a/examples/ad_manager/v202305/line_item_service/activate_line_items.py +++ b/examples/ad_manager/v202402/line_item_service/activate_line_items.py @@ -33,10 +33,10 @@ def main(client, order_id): # Initialize appropriate service. - line_item_service = client.GetService('LineItemService', version='v202305') + line_item_service = client.GetService('LineItemService', version='v202402') # Create query. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('orderId = :orderId AND status = :status') .WithBindVariable('status', 'NEEDS_CREATIVES') .WithBindVariable('orderId', int(order_id))) diff --git a/examples/ad_manager/v202305/line_item_service/create_line_items.py b/examples/ad_manager/v202402/line_item_service/create_line_items.py similarity index 99% rename from examples/ad_manager/v202305/line_item_service/create_line_items.py rename to examples/ad_manager/v202402/line_item_service/create_line_items.py index fea9b4f9..4fe5ff7e 100755 --- a/examples/ad_manager/v202305/line_item_service/create_line_items.py +++ b/examples/ad_manager/v202402/line_item_service/create_line_items.py @@ -37,7 +37,7 @@ def main(client, order_id, targeted_placement_ids): # Initialize appropriate service. - line_item_service = client.GetService('LineItemService', version='v202305') + line_item_service = client.GetService('LineItemService', version='v202402') end_datetime = datetime.datetime.now(tz=pytz.timezone('America/New_York')) end_datetime += datetime.timedelta(days=365) diff --git a/examples/ad_manager/v202305/line_item_service/create_video_line_item.py b/examples/ad_manager/v202402/line_item_service/create_video_line_item.py similarity index 99% rename from examples/ad_manager/v202305/line_item_service/create_video_line_item.py rename to examples/ad_manager/v202402/line_item_service/create_video_line_item.py index 40d5f294..466d299b 100755 --- a/examples/ad_manager/v202305/line_item_service/create_video_line_item.py +++ b/examples/ad_manager/v202402/line_item_service/create_video_line_item.py @@ -42,7 +42,7 @@ def main(client, order_id, targeted_video_ad_unit_id, content_id, content_bundle_id, cms_metadata_value_id): # Initialize appropriate service. - line_item_service = client.GetService('LineItemService', version='v202305') + line_item_service = client.GetService('LineItemService', version='v202402') end_datetime = datetime.datetime.now(tz=pytz.timezone('America/New_York')) end_datetime += datetime.timedelta(days=365) diff --git a/examples/ad_manager/v202305/line_item_service/get_all_line_items.py b/examples/ad_manager/v202402/line_item_service/get_all_line_items.py similarity index 95% rename from examples/ad_manager/v202305/line_item_service/get_all_line_items.py rename to examples/ad_manager/v202402/line_item_service/get_all_line_items.py index e0e9aa59..04e66e05 100755 --- a/examples/ad_manager/v202305/line_item_service/get_all_line_items.py +++ b/examples/ad_manager/v202402/line_item_service/get_all_line_items.py @@ -22,10 +22,10 @@ def main(client): # Initialize appropriate service. - line_item_service = client.GetService('LineItemService', version='v202305') + line_item_service = client.GetService('LineItemService', version='v202402') # Create a statement to select line items. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of line items at a time, paging # through until all line items have been retrieved. diff --git a/examples/ad_manager/v202305/line_item_service/get_line_items_that_need_creatives.py b/examples/ad_manager/v202402/line_item_service/get_line_items_that_need_creatives.py similarity index 96% rename from examples/ad_manager/v202305/line_item_service/get_line_items_that_need_creatives.py rename to examples/ad_manager/v202402/line_item_service/get_line_items_that_need_creatives.py index 24d82816..0c302114 100755 --- a/examples/ad_manager/v202305/line_item_service/get_line_items_that_need_creatives.py +++ b/examples/ad_manager/v202402/line_item_service/get_line_items_that_need_creatives.py @@ -22,9 +22,9 @@ def main(client): # Initialize appropriate service. - line_item_service = client.GetService('LineItemService', version='v202305') + line_item_service = client.GetService('LineItemService', version='v202402') # Create a statement to select line items. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('isMissingCreatives = :isMissingCreatives') .WithBindVariable('isMissingCreatives', True)) diff --git a/examples/ad_manager/v202305/line_item_service/get_recently_updated_line_items.py b/examples/ad_manager/v202402/line_item_service/get_recently_updated_line_items.py similarity index 96% rename from examples/ad_manager/v202305/line_item_service/get_recently_updated_line_items.py rename to examples/ad_manager/v202402/line_item_service/get_recently_updated_line_items.py index b9f5bf2c..ad76d498 100755 --- a/examples/ad_manager/v202305/line_item_service/get_recently_updated_line_items.py +++ b/examples/ad_manager/v202402/line_item_service/get_recently_updated_line_items.py @@ -26,13 +26,13 @@ def main(client): # Initialize appropriate service. - line_item_service = client.GetService('LineItemService', version='v202305') + line_item_service = client.GetService('LineItemService', version='v202402') last_modified = (datetime.now(tz=pytz.timezone('America/New_York')) - timedelta(days=1)) # Create a statement to select line items. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('lastModifiedDateTime >= :lastModifiedDateTime') .WithBindVariable('lastModifiedDateTime', last_modified)) diff --git a/examples/ad_manager/v202305/line_item_service/pause_line_items.py b/examples/ad_manager/v202402/line_item_service/pause_line_items.py similarity index 97% rename from examples/ad_manager/v202305/line_item_service/pause_line_items.py rename to examples/ad_manager/v202402/line_item_service/pause_line_items.py index 8ddfc87b..e6c823c3 100755 --- a/examples/ad_manager/v202305/line_item_service/pause_line_items.py +++ b/examples/ad_manager/v202402/line_item_service/pause_line_items.py @@ -29,11 +29,11 @@ def main(client): # Initialize appropriate service. - line_item_service = client.GetService('LineItemService', version='v202305') + line_item_service = client.GetService('LineItemService', version='v202402') # Create a statement to select the line item. # Change this to operate on more than one Line Item. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :id') .OrderBy('id', ascending=True) .WithBindVariable('id', LINE_ITEM_ID)) diff --git a/examples/ad_manager/v202305/line_item_service/target_custom_criteria.py b/examples/ad_manager/v202402/line_item_service/target_custom_criteria.py similarity index 97% rename from examples/ad_manager/v202305/line_item_service/target_custom_criteria.py rename to examples/ad_manager/v202402/line_item_service/target_custom_criteria.py index 597bba9b..350c5c9d 100755 --- a/examples/ad_manager/v202305/line_item_service/target_custom_criteria.py +++ b/examples/ad_manager/v202402/line_item_service/target_custom_criteria.py @@ -40,7 +40,7 @@ def main(client, line_item_id, key_id1, key_id2, key_id3, value_id1, value_id2, value_id3): # Initialize appropriate service. - line_item_service = client.GetService('LineItemService', version='v202305') + line_item_service = client.GetService('LineItemService', version='v202402') # create custom criterias custom_criteria1 = { @@ -81,7 +81,7 @@ def main(client, line_item_id, key_id1, key_id2, key_id3, value_id1, value_id2, } # Create statement to get the line item - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :lineItemId') .WithBindVariable('lineItemId', int(line_item_id)) .Limit(1)) diff --git a/examples/ad_manager/v202305/line_item_service/update_line_items.py b/examples/ad_manager/v202402/line_item_service/update_line_items.py similarity index 97% rename from examples/ad_manager/v202305/line_item_service/update_line_items.py rename to examples/ad_manager/v202402/line_item_service/update_line_items.py index 2c2c8d78..d5d7d4e4 100755 --- a/examples/ad_manager/v202305/line_item_service/update_line_items.py +++ b/examples/ad_manager/v202402/line_item_service/update_line_items.py @@ -29,11 +29,11 @@ def main(client, order_id): # Initialize appropriate service. - line_item_service = client.GetService('LineItemService', version='v202305') + line_item_service = client.GetService('LineItemService', version='v202402') # Create statement object to only select line items with even delivery rates. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where(('deliveryRateType = :deliveryRateType AND ' 'orderId = :orderId')) .WithBindVariable('orderId', int(order_id)) diff --git a/examples/ad_manager/v202305/live_stream_event_service/activate_live_stream_events.py b/examples/ad_manager/v202402/live_stream_event_service/activate_live_stream_events.py similarity index 95% rename from examples/ad_manager/v202305/live_stream_event_service/activate_live_stream_events.py rename to examples/ad_manager/v202402/live_stream_event_service/activate_live_stream_events.py index a1abe634..fc8caf35 100755 --- a/examples/ad_manager/v202305/live_stream_event_service/activate_live_stream_events.py +++ b/examples/ad_manager/v202402/live_stream_event_service/activate_live_stream_events.py @@ -26,10 +26,10 @@ def main(client, live_stream_event_id): # Initialize appropriate service. live_stream_event_service = client.GetService( - 'LiveStreamEventService', version='v202305') + 'LiveStreamEventService', version='v202402') # Create query to find paused live stream events. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where(('id = :id AND ' 'status = :status')) .WithBindVariable('status', 'PAUSED') diff --git a/examples/ad_manager/v202305/live_stream_event_service/create_live_stream_events.py b/examples/ad_manager/v202402/live_stream_event_service/create_live_stream_events.py similarity index 97% rename from examples/ad_manager/v202305/live_stream_event_service/create_live_stream_events.py rename to examples/ad_manager/v202402/live_stream_event_service/create_live_stream_events.py index 77100416..09af7c8d 100755 --- a/examples/ad_manager/v202305/live_stream_event_service/create_live_stream_events.py +++ b/examples/ad_manager/v202402/live_stream_event_service/create_live_stream_events.py @@ -35,7 +35,7 @@ def main(client, content_urls, ad_tags): # Initialize appropriate services. live_events_service = client.GetService( - 'LiveStreamEventService', version='v202305') + 'LiveStreamEventService', version='v202402') # Stream will play for 365 days start_datetime = datetime.datetime.now(tz=pytz.timezone('America/New_York')) diff --git a/examples/ad_manager/v202305/live_stream_event_service/get_all_live_stream_events.py b/examples/ad_manager/v202402/live_stream_event_service/get_all_live_stream_events.py similarity index 94% rename from examples/ad_manager/v202305/live_stream_event_service/get_all_live_stream_events.py rename to examples/ad_manager/v202402/live_stream_event_service/get_all_live_stream_events.py index 53d8592f..fab757f3 100755 --- a/examples/ad_manager/v202305/live_stream_event_service/get_all_live_stream_events.py +++ b/examples/ad_manager/v202402/live_stream_event_service/get_all_live_stream_events.py @@ -24,10 +24,10 @@ def main(client): # Initialize appropriate service. live_stream_event_service = client.GetService( - 'LiveStreamEventService', version='v202305') + 'LiveStreamEventService', version='v202402') # Create a statement to select live stream events. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of live stream events at a time, paging # through until all live stream events have been retrieved. diff --git a/examples/ad_manager/v202305/live_stream_event_service/register_sessions_for_monitoring.py b/examples/ad_manager/v202402/live_stream_event_service/register_sessions_for_monitoring.py similarity index 96% rename from examples/ad_manager/v202305/live_stream_event_service/register_sessions_for_monitoring.py rename to examples/ad_manager/v202402/live_stream_event_service/register_sessions_for_monitoring.py index 2e2edf04..91a784a4 100755 --- a/examples/ad_manager/v202305/live_stream_event_service/register_sessions_for_monitoring.py +++ b/examples/ad_manager/v202402/live_stream_event_service/register_sessions_for_monitoring.py @@ -26,7 +26,7 @@ def main(client, session_ids): # Initialize appropriate service. live_stream_event_service = client.GetService( - 'LiveStreamEventService', version='v202305') + 'LiveStreamEventService', version='v202402') # Retrieve all sessions id that are being monitored session_ids = live_stream_event_service.registerSessionsForMonitoring( diff --git a/examples/ad_manager/v202305/live_stream_event_service/update_live_stream_events.py b/examples/ad_manager/v202402/live_stream_event_service/update_live_stream_events.py similarity index 95% rename from examples/ad_manager/v202305/live_stream_event_service/update_live_stream_events.py rename to examples/ad_manager/v202402/live_stream_event_service/update_live_stream_events.py index e86d862f..604e9423 100755 --- a/examples/ad_manager/v202305/live_stream_event_service/update_live_stream_events.py +++ b/examples/ad_manager/v202402/live_stream_event_service/update_live_stream_events.py @@ -29,10 +29,10 @@ def main(client, live_stream_event_id): # Initialize appropriate services. live_stream_events_service = client.GetService( - 'LiveStreamEventService', version='v202305') + 'LiveStreamEventService', version='v202402') # Create statement object to only select matching live stream event. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where(('Id = :id')) .WithBindVariable('id', int(live_stream_event_id)) .Limit(500)) diff --git a/examples/ad_manager/v202305/native_style_service/__init__.py b/examples/ad_manager/v202402/native_style_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/native_style_service/__init__.py rename to examples/ad_manager/v202402/native_style_service/__init__.py diff --git a/examples/ad_manager/v202305/native_style_service/create_native_styles.py b/examples/ad_manager/v202402/native_style_service/create_native_styles.py similarity index 98% rename from examples/ad_manager/v202305/native_style_service/create_native_styles.py rename to examples/ad_manager/v202402/native_style_service/create_native_styles.py index 36c384dc..1ac78344 100755 --- a/examples/ad_manager/v202305/native_style_service/create_native_styles.py +++ b/examples/ad_manager/v202402/native_style_service/create_native_styles.py @@ -147,7 +147,7 @@ def main(client, html_snippet, css_snippet, creative_template_id, width, height): # Initialize appropriate service. native_style_service = client.GetService('NativeStyleService', - version='v202305') + version='v202402') native_style = { 'name': 'Native style #%d' % uuid.uuid4(), diff --git a/examples/ad_manager/v202305/native_style_service/get_all_native_styles.py b/examples/ad_manager/v202402/native_style_service/get_all_native_styles.py similarity index 93% rename from examples/ad_manager/v202305/native_style_service/get_all_native_styles.py rename to examples/ad_manager/v202402/native_style_service/get_all_native_styles.py index 4bb40e3b..91f612cb 100755 --- a/examples/ad_manager/v202305/native_style_service/get_all_native_styles.py +++ b/examples/ad_manager/v202402/native_style_service/get_all_native_styles.py @@ -23,10 +23,10 @@ def main(client): # Initialize appropriate service. native_style_service = client.GetService('NativeStyleService', - version='v202305') + version='v202402') # Create a statement to select native styles. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of native styles at a time, paging # through until all native styles have been retrieved. diff --git a/examples/ad_manager/v202305/network_service/__init__.py b/examples/ad_manager/v202402/network_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/network_service/__init__.py rename to examples/ad_manager/v202402/network_service/__init__.py diff --git a/examples/ad_manager/v202305/network_service/get_all_networks.py b/examples/ad_manager/v202402/network_service/get_all_networks.py similarity index 99% rename from examples/ad_manager/v202305/network_service/get_all_networks.py rename to examples/ad_manager/v202402/network_service/get_all_networks.py index 2cc9f8db..837a2661 100755 --- a/examples/ad_manager/v202305/network_service/get_all_networks.py +++ b/examples/ad_manager/v202402/network_service/get_all_networks.py @@ -22,7 +22,7 @@ def main(client): # Initialize appropriate service. - network_service = client.GetService('NetworkService', version='v202305') + network_service = client.GetService('NetworkService', version='v202402') networks = network_service.getAllNetworks() diff --git a/examples/ad_manager/v202305/network_service/get_current_network.py b/examples/ad_manager/v202402/network_service/get_current_network.py similarity index 99% rename from examples/ad_manager/v202305/network_service/get_current_network.py rename to examples/ad_manager/v202402/network_service/get_current_network.py index 526f868f..905048a8 100755 --- a/examples/ad_manager/v202305/network_service/get_current_network.py +++ b/examples/ad_manager/v202402/network_service/get_current_network.py @@ -23,7 +23,7 @@ def main(client): # Initialize appropriate service. - network_service = client.GetService('NetworkService', version='v202305') + network_service = client.GetService('NetworkService', version='v202402') current_network = network_service.getCurrentNetwork() diff --git a/examples/ad_manager/v202305/network_service/get_default_third_party_data_declaration.py b/examples/ad_manager/v202402/network_service/get_default_third_party_data_declaration.py similarity index 95% rename from examples/ad_manager/v202305/network_service/get_default_third_party_data_declaration.py rename to examples/ad_manager/v202402/network_service/get_default_third_party_data_declaration.py index b4f7ea42..1b6517d3 100755 --- a/examples/ad_manager/v202305/network_service/get_default_third_party_data_declaration.py +++ b/examples/ad_manager/v202402/network_service/get_default_third_party_data_declaration.py @@ -23,9 +23,9 @@ def main(client): # Initialize appropriate services. - network_service = client.GetService('NetworkService', version='v202305') + network_service = client.GetService('NetworkService', version='v202402') pql_service = client.GetService('PublisherQueryLanguageService', - version='v202305') + version='v202402') # Fetch the default third party data declarations. declarations = network_service.getDefaultThirdPartyDataDeclaration() @@ -44,7 +44,7 @@ def main(client): # In this case, there are third party companies to be displayed, so fetch # the company names from the Rich_Media_Ad_Company PQL table. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Select('Id, Name') .From('Rich_Media_Ad_Company') .Where('Id IN (:company_ids)') diff --git a/examples/ad_manager/v202305/network_service/make_test_network.py b/examples/ad_manager/v202402/network_service/make_test_network.py similarity index 99% rename from examples/ad_manager/v202305/network_service/make_test_network.py rename to examples/ad_manager/v202402/network_service/make_test_network.py index 4034eaee..4240db01 100755 --- a/examples/ad_manager/v202305/network_service/make_test_network.py +++ b/examples/ad_manager/v202402/network_service/make_test_network.py @@ -31,7 +31,7 @@ def main(client): # Initialize appropriate service. - network_service = client.GetService('NetworkService', version='v202305') + network_service = client.GetService('NetworkService', version='v202402') # Create a test network. network = network_service.makeTestNetwork() diff --git a/examples/ad_manager/v202305/order_service/__init__.py b/examples/ad_manager/v202402/order_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/order_service/__init__.py rename to examples/ad_manager/v202402/order_service/__init__.py diff --git a/examples/ad_manager/v202305/order_service/approve_orders.py b/examples/ad_manager/v202402/order_service/approve_orders.py similarity index 97% rename from examples/ad_manager/v202305/order_service/approve_orders.py rename to examples/ad_manager/v202402/order_service/approve_orders.py index bd6f0ee5..511d34c5 100755 --- a/examples/ad_manager/v202305/order_service/approve_orders.py +++ b/examples/ad_manager/v202402/order_service/approve_orders.py @@ -28,11 +28,11 @@ def main(client): # Initialize appropriate service. - order_service = client.GetService('OrderService', version='v202305') + order_service = client.GetService('OrderService', version='v202402') # Create a filter statement. today = datetime.date.today() - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where(('status in (\'DRAFT\', \'PENDING_APPROVAL\') ' 'AND endDateTime >= :today AND isArchived = FALSE')) .WithBindVariable('today', today)) diff --git a/examples/ad_manager/v202305/order_service/create_orders.py b/examples/ad_manager/v202402/order_service/create_orders.py similarity index 99% rename from examples/ad_manager/v202305/order_service/create_orders.py rename to examples/ad_manager/v202402/order_service/create_orders.py index 60901390..21c76c93 100755 --- a/examples/ad_manager/v202305/order_service/create_orders.py +++ b/examples/ad_manager/v202402/order_service/create_orders.py @@ -32,7 +32,7 @@ def main(client, company_id, salesperson_id, trafficker_id): # Initialize appropriate service. - order_service = client.GetService('OrderService', version='v202305') + order_service = client.GetService('OrderService', version='v202402') # Create order objects. orders = [] diff --git a/examples/ad_manager/v202305/order_service/get_all_orders.py b/examples/ad_manager/v202402/order_service/get_all_orders.py similarity index 96% rename from examples/ad_manager/v202305/order_service/get_all_orders.py rename to examples/ad_manager/v202402/order_service/get_all_orders.py index 995d7474..6b4d117e 100755 --- a/examples/ad_manager/v202305/order_service/get_all_orders.py +++ b/examples/ad_manager/v202402/order_service/get_all_orders.py @@ -22,10 +22,10 @@ def main(client): # Initialize appropriate service. - order_service = client.GetService('OrderService', version='v202305') + order_service = client.GetService('OrderService', version='v202402') # Create a statement to select orders. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of orders at a time, paging # through until all orders have been retrieved. diff --git a/examples/ad_manager/v202305/order_service/get_orders_starting_soon.py b/examples/ad_manager/v202402/order_service/get_orders_starting_soon.py similarity index 96% rename from examples/ad_manager/v202305/order_service/get_orders_starting_soon.py rename to examples/ad_manager/v202402/order_service/get_orders_starting_soon.py index 20e75710..9b997146 100755 --- a/examples/ad_manager/v202305/order_service/get_orders_starting_soon.py +++ b/examples/ad_manager/v202402/order_service/get_orders_starting_soon.py @@ -26,12 +26,12 @@ def main(client): # Initialize appropriate service. - order_service = client.GetService('OrderService', version='v202305') + order_service = client.GetService('OrderService', version='v202402') now = datetime.now(tz=pytz.timezone('America/New_York')) soon = now + timedelta(days=5) # Create a statement to select orders. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where(('status = :status AND startDateTime >= :now ' 'AND startDateTime <= :soon')) .WithBindVariable('status', 'APPROVED') diff --git a/examples/ad_manager/v202305/order_service/update_orders.py b/examples/ad_manager/v202402/order_service/update_orders.py similarity index 97% rename from examples/ad_manager/v202305/order_service/update_orders.py rename to examples/ad_manager/v202402/order_service/update_orders.py index 1b60970a..8041513c 100755 --- a/examples/ad_manager/v202305/order_service/update_orders.py +++ b/examples/ad_manager/v202402/order_service/update_orders.py @@ -28,11 +28,11 @@ def main(client, order_id): # Initialize appropriate service. - order_service = client.GetService('OrderService', version='v202305') + order_service = client.GetService('OrderService', version='v202402') # Create statement object to select a single order by an ID. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :orderId') .WithBindVariable('orderId', int(order_id))) diff --git a/examples/ad_manager/v202305/placement_service/create_placements.py b/examples/ad_manager/v202402/placement_service/create_placements.py similarity index 97% rename from examples/ad_manager/v202305/placement_service/create_placements.py rename to examples/ad_manager/v202402/placement_service/create_placements.py index 9feebd3d..db91aadf 100755 --- a/examples/ad_manager/v202305/placement_service/create_placements.py +++ b/examples/ad_manager/v202402/placement_service/create_placements.py @@ -28,8 +28,8 @@ def main(client): # Initialize appropriate service. - placement_service = client.GetService('PlacementService', version='v202305') - inventory_service = client.GetService('InventoryService', version='v202305') + placement_service = client.GetService('PlacementService', version='v202402') + inventory_service = client.GetService('InventoryService', version='v202402') # Create placement object to store medium rectangle ad units. medium_rectangle_ad_unit_placement = { @@ -55,7 +55,7 @@ def main(client): placement_list = [] # Create statement to get all the ad units. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') while True: response = inventory_service.getAdUnitsByStatement( diff --git a/examples/ad_manager/v202305/placement_service/deactivate_placements.py b/examples/ad_manager/v202402/placement_service/deactivate_placements.py similarity index 96% rename from examples/ad_manager/v202305/placement_service/deactivate_placements.py rename to examples/ad_manager/v202402/placement_service/deactivate_placements.py index f661a5f1..8f671f09 100755 --- a/examples/ad_manager/v202305/placement_service/deactivate_placements.py +++ b/examples/ad_manager/v202402/placement_service/deactivate_placements.py @@ -28,10 +28,10 @@ def main(client, placement_id): # Initialize appropriate service. - placement_service = client.GetService('PlacementService', version='v202305') + placement_service = client.GetService('PlacementService', version='v202402') # Create query. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :placementId') .WithBindVariable('placementId', int(placement_id)) .Limit(1)) diff --git a/examples/ad_manager/v202305/placement_service/get_active_placements.py b/examples/ad_manager/v202402/placement_service/get_active_placements.py similarity index 95% rename from examples/ad_manager/v202305/placement_service/get_active_placements.py rename to examples/ad_manager/v202402/placement_service/get_active_placements.py index cea1ff78..44c1e038 100755 --- a/examples/ad_manager/v202305/placement_service/get_active_placements.py +++ b/examples/ad_manager/v202402/placement_service/get_active_placements.py @@ -22,9 +22,9 @@ def main(client): # Initialize appropriate service. - placement_service = client.GetService('PlacementService', version='v202305') + placement_service = client.GetService('PlacementService', version='v202402') # Create a statement to select placements. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('status = :status') .WithBindVariable('status', 'ACTIVE')) diff --git a/examples/ad_manager/v202305/placement_service/get_all_placements.py b/examples/ad_manager/v202402/placement_service/get_all_placements.py similarity index 95% rename from examples/ad_manager/v202305/placement_service/get_all_placements.py rename to examples/ad_manager/v202402/placement_service/get_all_placements.py index eeebac67..d54535e5 100755 --- a/examples/ad_manager/v202305/placement_service/get_all_placements.py +++ b/examples/ad_manager/v202402/placement_service/get_all_placements.py @@ -22,10 +22,10 @@ def main(client): # Initialize appropriate service. - placement_service = client.GetService('PlacementService', version='v202305') + placement_service = client.GetService('PlacementService', version='v202402') # Create a statement to select placements. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of placements at a time, paging # through until all placements have been retrieved. diff --git a/examples/ad_manager/v202305/placement_service/update_placements.py b/examples/ad_manager/v202402/placement_service/update_placements.py similarity index 96% rename from examples/ad_manager/v202305/placement_service/update_placements.py rename to examples/ad_manager/v202402/placement_service/update_placements.py index e68c8bbd..bbb03e60 100755 --- a/examples/ad_manager/v202305/placement_service/update_placements.py +++ b/examples/ad_manager/v202402/placement_service/update_placements.py @@ -28,10 +28,10 @@ def main(client, placement_id): # Initialize appropriate service. - placement_service = client.GetService('PlacementService', version='v202305') + placement_service = client.GetService('PlacementService', version='v202402') # Create query. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :id') .OrderBy('id', ascending=True) .Limit(1) diff --git a/examples/ad_manager/v202305/proposal_line_item_service/__init__.py b/examples/ad_manager/v202402/proposal_line_item_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/proposal_line_item_service/__init__.py rename to examples/ad_manager/v202402/proposal_line_item_service/__init__.py diff --git a/examples/ad_manager/v202305/proposal_line_item_service/archive_proposal_line_items.py b/examples/ad_manager/v202402/proposal_line_item_service/archive_proposal_line_items.py similarity index 95% rename from examples/ad_manager/v202305/proposal_line_item_service/archive_proposal_line_items.py rename to examples/ad_manager/v202402/proposal_line_item_service/archive_proposal_line_items.py index 52510a74..54e7ce58 100755 --- a/examples/ad_manager/v202305/proposal_line_item_service/archive_proposal_line_items.py +++ b/examples/ad_manager/v202402/proposal_line_item_service/archive_proposal_line_items.py @@ -31,10 +31,10 @@ def main(client, proposal_line_item_id): # Initialize appropriate service. proposal_line_item_service = client.GetService( - 'ProposalLineItemService', version='v202305') + 'ProposalLineItemService', version='v202402') # Create query. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :id') .WithBindVariable('id', int(proposal_line_item_id)) .Limit(1)) diff --git a/examples/ad_manager/v202305/proposal_line_item_service/create_proposal_line_items.py b/examples/ad_manager/v202402/proposal_line_item_service/create_proposal_line_items.py similarity index 98% rename from examples/ad_manager/v202305/proposal_line_item_service/create_proposal_line_items.py rename to examples/ad_manager/v202402/proposal_line_item_service/create_proposal_line_items.py index 507b4665..7885c4c1 100755 --- a/examples/ad_manager/v202305/proposal_line_item_service/create_proposal_line_items.py +++ b/examples/ad_manager/v202402/proposal_line_item_service/create_proposal_line_items.py @@ -30,8 +30,8 @@ def main(client, proposal_id): proposal_line_item_service = client.GetService( - 'ProposalLineItemService', version='v202305') - network_service = client.GetService('NetworkService', version='v202305') + 'ProposalLineItemService', version='v202402') + network_service = client.GetService('NetworkService', version='v202402') start_datetime = datetime.datetime.now(tz=pytz.timezone('America/New_York')) end_datetime = start_datetime + datetime.timedelta(days=365) diff --git a/examples/ad_manager/v202305/proposal_line_item_service/get_all_proposal_line_items.py b/examples/ad_manager/v202402/proposal_line_item_service/get_all_proposal_line_items.py similarity index 94% rename from examples/ad_manager/v202305/proposal_line_item_service/get_all_proposal_line_items.py rename to examples/ad_manager/v202402/proposal_line_item_service/get_all_proposal_line_items.py index 91c2942f..f99b6c82 100755 --- a/examples/ad_manager/v202305/proposal_line_item_service/get_all_proposal_line_items.py +++ b/examples/ad_manager/v202402/proposal_line_item_service/get_all_proposal_line_items.py @@ -23,10 +23,10 @@ def main(client): # Initialize appropriate service. proposal_line_item_service = client.GetService( - 'ProposalLineItemService', version='v202305') + 'ProposalLineItemService', version='v202402') # Create a statement to select proposal line items. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of proposal line items at a time, paging # through until all proposal line items have been retrieved. diff --git a/examples/ad_manager/v202305/proposal_line_item_service/get_proposal_line_items_for_proposal.py b/examples/ad_manager/v202402/proposal_line_item_service/get_proposal_line_items_for_proposal.py similarity index 94% rename from examples/ad_manager/v202305/proposal_line_item_service/get_proposal_line_items_for_proposal.py rename to examples/ad_manager/v202402/proposal_line_item_service/get_proposal_line_items_for_proposal.py index 00931f48..d56af49e 100755 --- a/examples/ad_manager/v202305/proposal_line_item_service/get_proposal_line_items_for_proposal.py +++ b/examples/ad_manager/v202402/proposal_line_item_service/get_proposal_line_items_for_proposal.py @@ -25,9 +25,9 @@ def main(client, proposal_id): # Initialize appropriate service. proposal_line_item_service = client.GetService( - 'ProposalLineItemService', version='v202305') + 'ProposalLineItemService', version='v202402') # Create a statement to select proposal line items. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('proposalId = :proposalId') .WithBindVariable('proposalId', proposal_id)) diff --git a/examples/ad_manager/v202305/proposal_line_item_service/update_proposal_line_items.py b/examples/ad_manager/v202402/proposal_line_item_service/update_proposal_line_items.py similarity index 95% rename from examples/ad_manager/v202305/proposal_line_item_service/update_proposal_line_items.py rename to examples/ad_manager/v202402/proposal_line_item_service/update_proposal_line_items.py index 7f2ddf35..ed99eabb 100755 --- a/examples/ad_manager/v202305/proposal_line_item_service/update_proposal_line_items.py +++ b/examples/ad_manager/v202402/proposal_line_item_service/update_proposal_line_items.py @@ -31,11 +31,11 @@ def main(client, proposal_line_item_id): # Initialize appropriate service. proposal_line_item_service = client.GetService( - 'ProposalLineItemService', version='v202305') + 'ProposalLineItemService', version='v202402') # Create statement to select a proposal line item. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :id') .WithBindVariable('id', int(proposal_line_item_id)) .Limit(1)) diff --git a/examples/ad_manager/v202305/proposal_service/__init__.py b/examples/ad_manager/v202402/proposal_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/proposal_service/__init__.py rename to examples/ad_manager/v202402/proposal_service/__init__.py diff --git a/examples/ad_manager/v202305/proposal_service/create_proposals.py b/examples/ad_manager/v202402/proposal_service/create_proposals.py similarity index 99% rename from examples/ad_manager/v202305/proposal_service/create_proposals.py rename to examples/ad_manager/v202402/proposal_service/create_proposals.py index 5f4616e2..2ac3562b 100755 --- a/examples/ad_manager/v202305/proposal_service/create_proposals.py +++ b/examples/ad_manager/v202402/proposal_service/create_proposals.py @@ -28,7 +28,7 @@ def main(client, programmatic_buyer_id, primary_salesperson_id, primary_trafficker_id): - proposal_service = client.GetService('ProposalService', version='v202305') + proposal_service = client.GetService('ProposalService', version='v202402') proposal = { # Setting required Marketplace information. diff --git a/examples/ad_manager/v202305/proposal_service/get_all_proposals.py b/examples/ad_manager/v202402/proposal_service/get_all_proposals.py similarity index 95% rename from examples/ad_manager/v202305/proposal_service/get_all_proposals.py rename to examples/ad_manager/v202402/proposal_service/get_all_proposals.py index 8dca8834..ec584514 100755 --- a/examples/ad_manager/v202305/proposal_service/get_all_proposals.py +++ b/examples/ad_manager/v202402/proposal_service/get_all_proposals.py @@ -22,10 +22,10 @@ def main(client): # Initialize appropriate service. - proposal_service = client.GetService('ProposalService', version='v202305') + proposal_service = client.GetService('ProposalService', version='v202402') # Create a statement to select proposals. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of proposals at a time, paging # through until all proposals have been retrieved. diff --git a/examples/ad_manager/v202305/proposal_service/get_marketplace_comments.py b/examples/ad_manager/v202402/proposal_service/get_marketplace_comments.py similarity index 97% rename from examples/ad_manager/v202305/proposal_service/get_marketplace_comments.py rename to examples/ad_manager/v202402/proposal_service/get_marketplace_comments.py index df6a0ac4..4ad200a2 100755 --- a/examples/ad_manager/v202305/proposal_service/get_marketplace_comments.py +++ b/examples/ad_manager/v202402/proposal_service/get_marketplace_comments.py @@ -28,7 +28,7 @@ def main(client, proposal_id): # Initialize appropriate service. marketplace_comment_service = client.GetService( - 'ProposalService', version='v202305') + 'ProposalService', version='v202402') query = 'WHERE proposalId = %s' % proposal_id # Create a statement to select marketplace comments. statement = {'query': query} diff --git a/examples/ad_manager/v202305/proposal_service/get_proposals_awaiting_seller_review.py b/examples/ad_manager/v202402/proposal_service/get_proposals_awaiting_seller_review.py similarity index 96% rename from examples/ad_manager/v202305/proposal_service/get_proposals_awaiting_seller_review.py rename to examples/ad_manager/v202402/proposal_service/get_proposals_awaiting_seller_review.py index 1595297d..6bf0942a 100755 --- a/examples/ad_manager/v202305/proposal_service/get_proposals_awaiting_seller_review.py +++ b/examples/ad_manager/v202402/proposal_service/get_proposals_awaiting_seller_review.py @@ -21,9 +21,9 @@ def main(client): # Initialize appropriate service. - proposal_service = client.GetService('ProposalService', version='v202305') + proposal_service = client.GetService('ProposalService', version='v202402') # Create a statement to select proposals. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('negotiationStatus = :negotiationStatus') .WithBindVariable('negotiationStatus', 'AWAITING_SELLER_REVIEW')) diff --git a/examples/ad_manager/v202305/proposal_service/request_buyers_acceptance.py b/examples/ad_manager/v202402/proposal_service/request_buyers_acceptance.py similarity index 97% rename from examples/ad_manager/v202305/proposal_service/request_buyers_acceptance.py rename to examples/ad_manager/v202402/proposal_service/request_buyers_acceptance.py index f6b9f0a3..4d389f4d 100755 --- a/examples/ad_manager/v202305/proposal_service/request_buyers_acceptance.py +++ b/examples/ad_manager/v202402/proposal_service/request_buyers_acceptance.py @@ -26,10 +26,10 @@ def main(client, proposal_id): # Initialize appropriate service. - proposal_service = client.GetService('ProposalService', version='v202305') + proposal_service = client.GetService('ProposalService', version='v202402') # Create query. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :proposalId') .WithBindVariable('proposalId', proposal_id)) proposals_pushed_to_marketplace = 0 diff --git a/examples/ad_manager/v202305/proposal_service/update_proposals.py b/examples/ad_manager/v202402/proposal_service/update_proposals.py similarity index 96% rename from examples/ad_manager/v202305/proposal_service/update_proposals.py rename to examples/ad_manager/v202402/proposal_service/update_proposals.py index 6f72b93e..ac0b198e 100755 --- a/examples/ad_manager/v202305/proposal_service/update_proposals.py +++ b/examples/ad_manager/v202402/proposal_service/update_proposals.py @@ -28,11 +28,11 @@ def main(client, proposal_id): # Initialize appropriate service. - proposal_service = client.GetService('ProposalService', version='v202305') + proposal_service = client.GetService('ProposalService', version='v202402') # Create statement object to select a single proposal by an ID. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :proposalId') .WithBindVariable('proposalId', int(proposal_id)) .Limit(1)) diff --git a/examples/ad_manager/v202305/publisher_query_language_service/__init__.py b/examples/ad_manager/v202402/publisher_query_language_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/publisher_query_language_service/__init__.py rename to examples/ad_manager/v202402/publisher_query_language_service/__init__.py diff --git a/examples/ad_manager/v202305/publisher_query_language_service/fetch_match_tables.py b/examples/ad_manager/v202402/publisher_query_language_service/fetch_match_tables.py similarity index 96% rename from examples/ad_manager/v202305/publisher_query_language_service/fetch_match_tables.py rename to examples/ad_manager/v202402/publisher_query_language_service/fetch_match_tables.py index fcd20361..3c79b3aa 100755 --- a/examples/ad_manager/v202305/publisher_query_language_service/fetch_match_tables.py +++ b/examples/ad_manager/v202402/publisher_query_language_service/fetch_match_tables.py @@ -25,7 +25,7 @@ def main(client): # Initialize a report downloader. - report_downloader = client.GetDataDownloader(version='v202305') + report_downloader = client.GetDataDownloader(version='v202402') line_items_file = tempfile.NamedTemporaryFile( prefix='line_items_', suffix='.csv', mode='w', delete=False) diff --git a/examples/ad_manager/v202305/publisher_query_language_service/get_all_browsers.py b/examples/ad_manager/v202402/publisher_query_language_service/get_all_browsers.py similarity index 96% rename from examples/ad_manager/v202305/publisher_query_language_service/get_all_browsers.py rename to examples/ad_manager/v202402/publisher_query_language_service/get_all_browsers.py index 3675a93d..526b7fdb 100755 --- a/examples/ad_manager/v202305/publisher_query_language_service/get_all_browsers.py +++ b/examples/ad_manager/v202402/publisher_query_language_service/get_all_browsers.py @@ -32,7 +32,7 @@ def main(client): # Initialize a report downloader. - report_downloader = client.GetDataDownloader(version='v202305') + report_downloader = client.GetDataDownloader(version='v202402') with tempfile.NamedTemporaryFile( prefix='browser_data_', diff --git a/examples/ad_manager/v202305/publisher_query_language_service/get_all_programmatic_buyers.py b/examples/ad_manager/v202402/publisher_query_language_service/get_all_programmatic_buyers.py similarity index 96% rename from examples/ad_manager/v202305/publisher_query_language_service/get_all_programmatic_buyers.py rename to examples/ad_manager/v202402/publisher_query_language_service/get_all_programmatic_buyers.py index b2c2f0f4..a9c2c24d 100755 --- a/examples/ad_manager/v202305/publisher_query_language_service/get_all_programmatic_buyers.py +++ b/examples/ad_manager/v202402/publisher_query_language_service/get_all_programmatic_buyers.py @@ -25,7 +25,7 @@ def main(client): # Initialize a report downloader. - data_downloader = client.GetDataDownloader(version='v202305') + data_downloader = client.GetDataDownloader(version='v202402') programmatic_buyers_file = tempfile.NamedTemporaryFile( prefix='programmatic_buyers_', suffix='.csv', mode='w', delete=False) diff --git a/examples/ad_manager/v202305/publisher_query_language_service/get_geo_targets.py b/examples/ad_manager/v202402/publisher_query_language_service/get_geo_targets.py similarity index 96% rename from examples/ad_manager/v202305/publisher_query_language_service/get_geo_targets.py rename to examples/ad_manager/v202402/publisher_query_language_service/get_geo_targets.py index c138c7a8..1eeac270 100755 --- a/examples/ad_manager/v202305/publisher_query_language_service/get_geo_targets.py +++ b/examples/ad_manager/v202402/publisher_query_language_service/get_geo_targets.py @@ -28,7 +28,7 @@ def main(client): # Initialize a report downloader. - report_downloader = client.GetDataDownloader(version='v202305') + report_downloader = client.GetDataDownloader(version='v202402') with tempfile.NamedTemporaryFile( prefix='geo_data_', diff --git a/examples/ad_manager/v202305/publisher_query_language_service/get_line_items_named_like.py b/examples/ad_manager/v202402/publisher_query_language_service/get_line_items_named_like.py similarity index 96% rename from examples/ad_manager/v202305/publisher_query_language_service/get_line_items_named_like.py rename to examples/ad_manager/v202402/publisher_query_language_service/get_line_items_named_like.py index fd146972..3c340af2 100755 --- a/examples/ad_manager/v202305/publisher_query_language_service/get_line_items_named_like.py +++ b/examples/ad_manager/v202402/publisher_query_language_service/get_line_items_named_like.py @@ -25,7 +25,7 @@ def main(client): # Initialize a report downloader. - report_downloader = client.GetDataDownloader(version='v202305') + report_downloader = client.GetDataDownloader(version='v202402') with tempfile.NamedTemporaryFile( prefix='line_items_', diff --git a/examples/ad_manager/v202305/publisher_query_language_service/get_mcm_earnings.py b/examples/ad_manager/v202402/publisher_query_language_service/get_mcm_earnings.py similarity index 97% rename from examples/ad_manager/v202305/publisher_query_language_service/get_mcm_earnings.py rename to examples/ad_manager/v202402/publisher_query_language_service/get_mcm_earnings.py index 9a20eda4..9ca985a0 100755 --- a/examples/ad_manager/v202305/publisher_query_language_service/get_mcm_earnings.py +++ b/examples/ad_manager/v202402/publisher_query_language_service/get_mcm_earnings.py @@ -26,7 +26,7 @@ def main(client): # Initialize a report downloader. - data_downloader = client.GetDataDownloader(version='v202305') + data_downloader = client.GetDataDownloader(version='v202402') with tempfile.NamedTemporaryFile( prefix='mcm_earnings_', diff --git a/examples/ad_manager/v202305/publisher_query_language_service/get_recent_changes.py b/examples/ad_manager/v202402/publisher_query_language_service/get_recent_changes.py similarity index 98% rename from examples/ad_manager/v202305/publisher_query_language_service/get_recent_changes.py rename to examples/ad_manager/v202402/publisher_query_language_service/get_recent_changes.py index ce177b7a..5d39d5cb 100755 --- a/examples/ad_manager/v202305/publisher_query_language_service/get_recent_changes.py +++ b/examples/ad_manager/v202402/publisher_query_language_service/get_recent_changes.py @@ -31,7 +31,7 @@ def main(client): # Initialize appropriate service. - pql_service = client.GetService('PublisherQueryLanguageService', 'v202305') + pql_service = client.GetService('PublisherQueryLanguageService', 'v202402') end_date = datetime.now(tz=pytz.timezone('America/New_York')) start_date = end_date - timedelta(days=1) @@ -39,7 +39,7 @@ def main(client): 'AND ChangeDateTime < :endDateTime') pagination_query = 'Id < :id AND ' + initial_query - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Select(('Id, ChangeDateTime, EntityId, EntityType, ' 'Operation, UserId')) .From('Change_History') diff --git a/examples/ad_manager/v202305/report_service/__init__.py b/examples/ad_manager/v202402/report_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/report_service/__init__.py rename to examples/ad_manager/v202402/report_service/__init__.py diff --git a/examples/ad_manager/v202305/report_service/run_delivery_report.py b/examples/ad_manager/v202402/report_service/run_delivery_report.py similarity index 95% rename from examples/ad_manager/v202305/report_service/run_delivery_report.py rename to examples/ad_manager/v202402/report_service/run_delivery_report.py index 1fd27080..9f2d6339 100755 --- a/examples/ad_manager/v202305/report_service/run_delivery_report.py +++ b/examples/ad_manager/v202402/report_service/run_delivery_report.py @@ -32,7 +32,7 @@ def main(client, order_id): # Create statement object to filter for an order. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('ORDER_ID = :id') .WithBindVariable('id', int(order_id)) .Limit(None) # No limit or offset for reports @@ -59,7 +59,7 @@ def main(client, order_id): } # Initialize a DataDownloader. - report_downloader = client.GetDataDownloader(version='v202305') + report_downloader = client.GetDataDownloader(version='v202402') try: # Run the report and wait for it to finish. diff --git a/examples/ad_manager/v202305/report_service/run_inventory_report.py b/examples/ad_manager/v202402/report_service/run_inventory_report.py similarity index 97% rename from examples/ad_manager/v202305/report_service/run_inventory_report.py rename to examples/ad_manager/v202402/report_service/run_inventory_report.py index 0aad14bb..a73249c4 100755 --- a/examples/ad_manager/v202305/report_service/run_inventory_report.py +++ b/examples/ad_manager/v202402/report_service/run_inventory_report.py @@ -25,7 +25,7 @@ def main(client): # Initialize a DataDownloader. - report_downloader = client.GetDataDownloader(version='v202305') + report_downloader = client.GetDataDownloader(version='v202402') # Create report job. report_job = { diff --git a/examples/ad_manager/v202305/report_service/run_reach_report.py b/examples/ad_manager/v202402/report_service/run_reach_report.py similarity index 96% rename from examples/ad_manager/v202305/report_service/run_reach_report.py rename to examples/ad_manager/v202402/report_service/run_reach_report.py index 2c5291a5..f69ffbcc 100755 --- a/examples/ad_manager/v202305/report_service/run_reach_report.py +++ b/examples/ad_manager/v202402/report_service/run_reach_report.py @@ -25,7 +25,7 @@ def main(client): # Initialize a DataDownloader. - report_downloader = client.GetDataDownloader(version='v202305') + report_downloader = client.GetDataDownloader(version='v202402') # Create report job. report_job = { diff --git a/examples/ad_manager/v202305/report_service/run_reach_report_with_ad_unit_dimensions.py b/examples/ad_manager/v202402/report_service/run_reach_report_with_ad_unit_dimensions.py similarity index 97% rename from examples/ad_manager/v202305/report_service/run_reach_report_with_ad_unit_dimensions.py rename to examples/ad_manager/v202402/report_service/run_reach_report_with_ad_unit_dimensions.py index 16e62dcd..12d04454 100755 --- a/examples/ad_manager/v202305/report_service/run_reach_report_with_ad_unit_dimensions.py +++ b/examples/ad_manager/v202402/report_service/run_reach_report_with_ad_unit_dimensions.py @@ -25,7 +25,7 @@ def main(client): # Initialize a DataDownloader. - report_downloader = client.GetDataDownloader(version='v202305') + report_downloader = client.GetDataDownloader(version='v202402') # Create report job. report_job = { diff --git a/examples/ad_manager/v202305/report_service/run_report_and_create_match_table.py b/examples/ad_manager/v202402/report_service/run_report_and_create_match_table.py similarity index 97% rename from examples/ad_manager/v202305/report_service/run_report_and_create_match_table.py rename to examples/ad_manager/v202402/report_service/run_report_and_create_match_table.py index c569e76f..6f755791 100755 --- a/examples/ad_manager/v202305/report_service/run_report_and_create_match_table.py +++ b/examples/ad_manager/v202402/report_service/run_report_and_create_match_table.py @@ -54,7 +54,7 @@ def main(client): } # Initialize a DataDownloader. - report_downloader = client.GetDataDownloader(version='v202305') + report_downloader = client.GetDataDownloader(version='v202402') try: # Run the report and wait for it to finish. diff --git a/examples/ad_manager/v202305/report_service/run_report_with_custom_fields.py b/examples/ad_manager/v202402/report_service/run_report_with_custom_fields.py similarity index 97% rename from examples/ad_manager/v202305/report_service/run_report_with_custom_fields.py rename to examples/ad_manager/v202402/report_service/run_report_with_custom_fields.py index 1996309d..94353915 100755 --- a/examples/ad_manager/v202305/report_service/run_report_with_custom_fields.py +++ b/examples/ad_manager/v202402/report_service/run_report_with_custom_fields.py @@ -28,7 +28,7 @@ def main(client, custom_field_id, custom_dimension_key_id): # Initialize a DataDownloader. - report_downloader = client.GetDataDownloader(version='v202305') + report_downloader = client.GetDataDownloader(version='v202402') # Create report job. report_job = { diff --git a/examples/ad_manager/v202305/report_service/run_sales_report.py b/examples/ad_manager/v202402/report_service/run_sales_report.py similarity index 96% rename from examples/ad_manager/v202305/report_service/run_sales_report.py rename to examples/ad_manager/v202402/report_service/run_sales_report.py index 547dd248..42c19562 100755 --- a/examples/ad_manager/v202305/report_service/run_sales_report.py +++ b/examples/ad_manager/v202402/report_service/run_sales_report.py @@ -25,7 +25,7 @@ def main(client): # Initialize a DataDownloader. - report_downloader = client.GetDataDownloader(version='v202305') + report_downloader = client.GetDataDownloader(version='v202402') # Create report job. report_job = { diff --git a/examples/ad_manager/v202305/report_service/run_saved_query.py b/examples/ad_manager/v202402/report_service/run_saved_query.py similarity index 94% rename from examples/ad_manager/v202305/report_service/run_saved_query.py rename to examples/ad_manager/v202402/report_service/run_saved_query.py index 171b185d..3b2bbfbb 100755 --- a/examples/ad_manager/v202305/report_service/run_saved_query.py +++ b/examples/ad_manager/v202402/report_service/run_saved_query.py @@ -28,13 +28,13 @@ def main(client, saved_query_id): # Initialize appropriate service. - report_service = client.GetService('ReportService', version='v202305') + report_service = client.GetService('ReportService', version='v202402') # Initialize a DataDownloader. - report_downloader = client.GetDataDownloader(version='v202305') + report_downloader = client.GetDataDownloader(version='v202402') # Create statement object to filter for an order. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :id') .WithBindVariable('id', int(saved_query_id)) .Limit(1)) diff --git a/examples/ad_manager/v202305/site_service/create_sites.py b/examples/ad_manager/v202402/site_service/create_sites.py similarity index 60% rename from examples/ad_manager/v202305/site_service/create_sites.py rename to examples/ad_manager/v202402/site_service/create_sites.py index ada21822..d1df486a 100755 --- a/examples/ad_manager/v202305/site_service/create_sites.py +++ b/examples/ad_manager/v202402/site_service/create_sites.py @@ -17,7 +17,6 @@ """This example creates a Site for Multiple Customer Management.""" # Import appropriate modules from the client library. -import sys from googleads import ad_manager # Set the URL and child network code for the Site. @@ -27,28 +26,7 @@ def main(client, url, child_network_code): # Initialize appropriate services. - network_service = client.GetService('NetworkService', version='v202305') - site_service = client.GetService('SiteService', version='v202305') - - # Check that the child network code is approved for MANAGE_INVENTORY by this - # network. - current_network = network_service.getCurrentNetwork() - child_network = None - for child in current_network['childPublishers']: - if child['childNetworkCode'] == child_network_code: - child_network = child - - if child_network is None: - print(('Child network %s not found on the current network (%s). Cannot ' - 'create site.') % (child_network_code, - current_network['networkCode'])) - sys.exit(1) - - if child_network['approvedDelegationType'] != 'MANAGE_INVENTORY': - print(('Child network %s has not approved for the current network (%s) ' - 'to manage its inventory. Cannot create site.') % ( - child_network_code, current_network['networkCode'])) - sys.exit(1) + site_service = client.GetService('SiteService', version='v202402') # Create site object. site = {'url': url, 'childNetworkCode': child_network_code} diff --git a/examples/ad_manager/v202305/site_service/get_all_sites.py b/examples/ad_manager/v202402/site_service/get_all_sites.py similarity index 92% rename from examples/ad_manager/v202305/site_service/get_all_sites.py rename to examples/ad_manager/v202402/site_service/get_all_sites.py index bd3131e5..1f691479 100755 --- a/examples/ad_manager/v202305/site_service/get_all_sites.py +++ b/examples/ad_manager/v202402/site_service/get_all_sites.py @@ -22,10 +22,10 @@ def main(client): # Initialize appropriate service. - site_service = client.GetService('SiteService', version='v202305') + site_service = client.GetService('SiteService', version='v202402') # Create a statement to select Sites. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small number of sites at a time, paging through until all sites # have been retrieved. diff --git a/examples/ad_manager/v202305/site_service/get_sites_requiring_approval.py b/examples/ad_manager/v202402/site_service/get_sites_requiring_approval.py similarity index 92% rename from examples/ad_manager/v202305/site_service/get_sites_requiring_approval.py rename to examples/ad_manager/v202402/site_service/get_sites_requiring_approval.py index 52f936c4..767a6a88 100755 --- a/examples/ad_manager/v202305/site_service/get_sites_requiring_approval.py +++ b/examples/ad_manager/v202402/site_service/get_sites_requiring_approval.py @@ -22,10 +22,10 @@ def main(client): # Initialize appropriate service. - site_service = client.GetService('SiteService', version='v202305') + site_service = client.GetService('SiteService', version='v202402') # Create a statement to select Sites needing approval. - statement = ad_manager.StatementBuilder(version='v202305').Where( + statement = ad_manager.StatementBuilder(version='v202402').Where( "approvalStatus = 'REQUIRES_REVIEW'") # Retrieve a small number of sites at a time, paging through until all sites diff --git a/examples/ad_manager/v202305/site_service/submit_sites_for_approval.py b/examples/ad_manager/v202402/site_service/submit_sites_for_approval.py similarity index 91% rename from examples/ad_manager/v202305/site_service/submit_sites_for_approval.py rename to examples/ad_manager/v202402/site_service/submit_sites_for_approval.py index 904fed6a..1aeb7df1 100755 --- a/examples/ad_manager/v202305/site_service/submit_sites_for_approval.py +++ b/examples/ad_manager/v202402/site_service/submit_sites_for_approval.py @@ -25,10 +25,10 @@ def main(client): # Initialize appropriate service. - site_service = client.GetService('SiteService', version='v202305') + site_service = client.GetService('SiteService', version='v202402') # Create a statement to select Site. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :id') .WithBindVariable('id', SITE_ID)) diff --git a/examples/ad_manager/v202305/suggested_ad_unit_service/__init__.py b/examples/ad_manager/v202402/suggested_ad_unit_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/suggested_ad_unit_service/__init__.py rename to examples/ad_manager/v202402/suggested_ad_unit_service/__init__.py diff --git a/examples/ad_manager/v202305/suggested_ad_unit_service/approve_all_suggested_ad_units.py b/examples/ad_manager/v202402/suggested_ad_unit_service/approve_all_suggested_ad_units.py similarity index 95% rename from examples/ad_manager/v202305/suggested_ad_unit_service/approve_all_suggested_ad_units.py rename to examples/ad_manager/v202402/suggested_ad_unit_service/approve_all_suggested_ad_units.py index c99bdc07..318dc2ee 100755 --- a/examples/ad_manager/v202305/suggested_ad_unit_service/approve_all_suggested_ad_units.py +++ b/examples/ad_manager/v202402/suggested_ad_unit_service/approve_all_suggested_ad_units.py @@ -29,10 +29,10 @@ def main(client): # Initialize appropriate service. suggested_ad_unit_service = client.GetService( - 'SuggestedAdUnitService', version='v202305') + 'SuggestedAdUnitService', version='v202402') # Create a filter statement. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('numRequests > :numRequests') .WithBindVariable('numRequests', THRESHOLD_NUMBER_OF_REQUESTS)) num_approved_suggested_ad_units = 0 diff --git a/examples/ad_manager/v202305/suggested_ad_unit_service/get_all_suggested_ad_units.py b/examples/ad_manager/v202402/suggested_ad_unit_service/get_all_suggested_ad_units.py similarity index 94% rename from examples/ad_manager/v202305/suggested_ad_unit_service/get_all_suggested_ad_units.py rename to examples/ad_manager/v202402/suggested_ad_unit_service/get_all_suggested_ad_units.py index 643ad3e8..86fdf5a4 100755 --- a/examples/ad_manager/v202305/suggested_ad_unit_service/get_all_suggested_ad_units.py +++ b/examples/ad_manager/v202402/suggested_ad_unit_service/get_all_suggested_ad_units.py @@ -23,10 +23,10 @@ def main(client): # Initialize appropriate service. suggested_ad_unit_service = client.GetService( - 'SuggestedAdUnitService', version='v202305') + 'SuggestedAdUnitService', version='v202402') # Create a statement to select suggested ad units. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of suggested ad units at a time, paging # through until all suggested ad units have been retrieved. diff --git a/examples/ad_manager/v202305/suggested_ad_unit_service/get_highly_requested_suggested_ad_units.py b/examples/ad_manager/v202402/suggested_ad_unit_service/get_highly_requested_suggested_ad_units.py similarity index 94% rename from examples/ad_manager/v202305/suggested_ad_unit_service/get_highly_requested_suggested_ad_units.py rename to examples/ad_manager/v202402/suggested_ad_unit_service/get_highly_requested_suggested_ad_units.py index 978ca48f..3c3bda78 100755 --- a/examples/ad_manager/v202305/suggested_ad_unit_service/get_highly_requested_suggested_ad_units.py +++ b/examples/ad_manager/v202402/suggested_ad_unit_service/get_highly_requested_suggested_ad_units.py @@ -25,9 +25,9 @@ def main(client, num_requests): # Initialize appropriate service. suggested_ad_unit_service = client.GetService( - 'SuggestedAdUnitService', version='v202305') + 'SuggestedAdUnitService', version='v202402') # Create a statement to select suggested ad units. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('numRequests >= :numRequests') .WithBindVariable('numRequests', int(num_requests))) diff --git a/examples/ad_manager/v202305/targeting_preset_service/__init__.py b/examples/ad_manager/v202402/targeting_preset_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/targeting_preset_service/__init__.py rename to examples/ad_manager/v202402/targeting_preset_service/__init__.py diff --git a/examples/ad_manager/v202305/targeting_preset_service/get_all_targeting_presets.py b/examples/ad_manager/v202402/targeting_preset_service/get_all_targeting_presets.py similarity index 94% rename from examples/ad_manager/v202305/targeting_preset_service/get_all_targeting_presets.py rename to examples/ad_manager/v202402/targeting_preset_service/get_all_targeting_presets.py index ac3abb80..4bd27ba3 100755 --- a/examples/ad_manager/v202305/targeting_preset_service/get_all_targeting_presets.py +++ b/examples/ad_manager/v202402/targeting_preset_service/get_all_targeting_presets.py @@ -23,10 +23,10 @@ def main(client): # Initialize appropriate service. targeting_preset_service = client.GetService( - 'TargetingPresetService', version='v202305') + 'TargetingPresetService', version='v202402') # Create a statement to select suggested ad units. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small number of targeting presets at a time, paging # through until all targeting presets have been retrieved. diff --git a/examples/ad_manager/v202305/team_service/__init__.py b/examples/ad_manager/v202402/team_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/team_service/__init__.py rename to examples/ad_manager/v202402/team_service/__init__.py diff --git a/examples/ad_manager/v202305/team_service/create_teams.py b/examples/ad_manager/v202402/team_service/create_teams.py similarity index 96% rename from examples/ad_manager/v202305/team_service/create_teams.py rename to examples/ad_manager/v202402/team_service/create_teams.py index 26075fe8..1c56d11e 100755 --- a/examples/ad_manager/v202305/team_service/create_teams.py +++ b/examples/ad_manager/v202402/team_service/create_teams.py @@ -33,7 +33,7 @@ def main(client): # Initialize appropriate service. - team_service = client.GetService('TeamService', version='v202305') + team_service = client.GetService('TeamService', version='v202402') # Create team objects. teams = [] diff --git a/examples/ad_manager/v202305/team_service/get_all_teams.py b/examples/ad_manager/v202402/team_service/get_all_teams.py similarity index 92% rename from examples/ad_manager/v202305/team_service/get_all_teams.py rename to examples/ad_manager/v202402/team_service/get_all_teams.py index 177825d1..62030ad9 100755 --- a/examples/ad_manager/v202305/team_service/get_all_teams.py +++ b/examples/ad_manager/v202402/team_service/get_all_teams.py @@ -22,10 +22,10 @@ def main(client): # Initialize appropriate service. - team_service = client.GetService('TeamService', version='v202305') + team_service = client.GetService('TeamService', version='v202402') # Create a statement to select teams. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of teams at a time, paging # through until all teams have been retrieved. diff --git a/examples/ad_manager/v202305/team_service/update_teams.py b/examples/ad_manager/v202402/team_service/update_teams.py similarity index 94% rename from examples/ad_manager/v202305/team_service/update_teams.py rename to examples/ad_manager/v202402/team_service/update_teams.py index a0251189..b35936ab 100755 --- a/examples/ad_manager/v202305/team_service/update_teams.py +++ b/examples/ad_manager/v202402/team_service/update_teams.py @@ -34,10 +34,10 @@ def main(client, team_id): # Initialize appropriate service. - team_service = client.GetService('TeamService', version='v202305') + team_service = client.GetService('TeamService', version='v202402') # Create a filter statement to select a single team by ID. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :teamId') .WithBindVariable('teamId', int(team_id))) diff --git a/examples/ad_manager/v202305/user_service/__init__.py b/examples/ad_manager/v202402/user_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/user_service/__init__.py rename to examples/ad_manager/v202402/user_service/__init__.py diff --git a/examples/ad_manager/v202305/user_service/create_users.py b/examples/ad_manager/v202402/user_service/create_users.py similarity index 96% rename from examples/ad_manager/v202305/user_service/create_users.py rename to examples/ad_manager/v202402/user_service/create_users.py index d478f313..de118446 100755 --- a/examples/ad_manager/v202305/user_service/create_users.py +++ b/examples/ad_manager/v202402/user_service/create_users.py @@ -29,7 +29,7 @@ def main(client, email, name): # Initialize appropriate service. - user_service = client.GetService('UserService', version='v202305') + user_service = client.GetService('UserService', version='v202402') # Create user objects. users = [ diff --git a/examples/ad_manager/v202305/user_service/deactivate_users.py b/examples/ad_manager/v202402/user_service/deactivate_users.py similarity index 94% rename from examples/ad_manager/v202305/user_service/deactivate_users.py rename to examples/ad_manager/v202402/user_service/deactivate_users.py index d4d0459e..7d57ab2b 100755 --- a/examples/ad_manager/v202305/user_service/deactivate_users.py +++ b/examples/ad_manager/v202402/user_service/deactivate_users.py @@ -30,10 +30,10 @@ def main(client, user_id): # Initialize appropriate service. - user_service = client.GetService('UserService', version='v202305') + user_service = client.GetService('UserService', version='v202402') # Create query. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :userId') .WithBindVariable('userId', int(user_id))) diff --git a/examples/ad_manager/v202305/user_service/get_all_roles.py b/examples/ad_manager/v202402/user_service/get_all_roles.py similarity index 94% rename from examples/ad_manager/v202305/user_service/get_all_roles.py rename to examples/ad_manager/v202402/user_service/get_all_roles.py index 1bb76bb8..6b1859f8 100755 --- a/examples/ad_manager/v202305/user_service/get_all_roles.py +++ b/examples/ad_manager/v202402/user_service/get_all_roles.py @@ -22,7 +22,7 @@ def main(client): # Initialize appropriate service. - user_service = client.GetService('UserService', version='v202305') + user_service = client.GetService('UserService', version='v202402') roles = user_service.getAllRoles() diff --git a/examples/ad_manager/v202305/user_service/get_all_users.py b/examples/ad_manager/v202402/user_service/get_all_users.py similarity index 92% rename from examples/ad_manager/v202305/user_service/get_all_users.py rename to examples/ad_manager/v202402/user_service/get_all_users.py index f38605f8..8d661201 100755 --- a/examples/ad_manager/v202305/user_service/get_all_users.py +++ b/examples/ad_manager/v202402/user_service/get_all_users.py @@ -22,10 +22,10 @@ def main(client): # Initialize appropriate service. - user_service = client.GetService('UserService', version='v202305') + user_service = client.GetService('UserService', version='v202402') # Create a statement to select users. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of users at a time, paging # through until all users have been retrieved. diff --git a/examples/ad_manager/v202305/user_service/get_current_user.py b/examples/ad_manager/v202402/user_service/get_current_user.py similarity index 94% rename from examples/ad_manager/v202305/user_service/get_current_user.py rename to examples/ad_manager/v202402/user_service/get_current_user.py index 82d73c04..72a551de 100755 --- a/examples/ad_manager/v202305/user_service/get_current_user.py +++ b/examples/ad_manager/v202402/user_service/get_current_user.py @@ -22,7 +22,7 @@ def main(client): # Initialize appropriate service. - user_service = client.GetService('UserService', version='v202305') + user_service = client.GetService('UserService', version='v202402') # Get current user. user = user_service.getCurrentUser() diff --git a/examples/ad_manager/v202305/user_service/get_user_by_email_address.py b/examples/ad_manager/v202402/user_service/get_user_by_email_address.py similarity index 93% rename from examples/ad_manager/v202305/user_service/get_user_by_email_address.py rename to examples/ad_manager/v202402/user_service/get_user_by_email_address.py index 7936ae5d..24b4fa76 100755 --- a/examples/ad_manager/v202305/user_service/get_user_by_email_address.py +++ b/examples/ad_manager/v202402/user_service/get_user_by_email_address.py @@ -24,9 +24,9 @@ def main(client, email_address): # Initialize appropriate service. - user_service = client.GetService('UserService', version='v202305') + user_service = client.GetService('UserService', version='v202402') # Create a statement to select users. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('email = :email') .WithBindVariable('email', email_address)) diff --git a/examples/ad_manager/v202305/user_service/update_users.py b/examples/ad_manager/v202402/user_service/update_users.py similarity index 92% rename from examples/ad_manager/v202305/user_service/update_users.py rename to examples/ad_manager/v202402/user_service/update_users.py index 689c7953..85f0ae73 100755 --- a/examples/ad_manager/v202305/user_service/update_users.py +++ b/examples/ad_manager/v202402/user_service/update_users.py @@ -28,10 +28,10 @@ def main(client, user_id): # Initialize appropriate service. - user_service = client.GetService('UserService', version='v202305') + user_service = client.GetService('UserService', version='v202402') # Create query. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('id = :userId') .WithBindVariable('userId', int(user_id))) diff --git a/examples/ad_manager/v202305/user_team_association_service/__init__.py b/examples/ad_manager/v202402/user_team_association_service/__init__.py similarity index 100% rename from examples/ad_manager/v202305/user_team_association_service/__init__.py rename to examples/ad_manager/v202402/user_team_association_service/__init__.py diff --git a/examples/ad_manager/v202305/user_team_association_service/create_user_team_associations.py b/examples/ad_manager/v202402/user_team_association_service/create_user_team_associations.py similarity index 97% rename from examples/ad_manager/v202305/user_team_association_service/create_user_team_associations.py rename to examples/ad_manager/v202402/user_team_association_service/create_user_team_associations.py index 5df1879d..417c09c6 100755 --- a/examples/ad_manager/v202305/user_team_association_service/create_user_team_associations.py +++ b/examples/ad_manager/v202402/user_team_association_service/create_user_team_associations.py @@ -37,7 +37,7 @@ def main(client, team_id, user_ids): # Initialize appropriate service. user_team_association_service = client.GetService( - 'UserTeamAssociationService', version='v202305') + 'UserTeamAssociationService', version='v202402') user_team_associations = [] for user_id in user_ids: diff --git a/examples/ad_manager/v202305/user_team_association_service/delete_user_team_associations.py b/examples/ad_manager/v202402/user_team_association_service/delete_user_team_associations.py similarity index 95% rename from examples/ad_manager/v202305/user_team_association_service/delete_user_team_associations.py rename to examples/ad_manager/v202402/user_team_association_service/delete_user_team_associations.py index 971a98b0..c9a3063e 100755 --- a/examples/ad_manager/v202305/user_team_association_service/delete_user_team_associations.py +++ b/examples/ad_manager/v202402/user_team_association_service/delete_user_team_associations.py @@ -35,10 +35,10 @@ def main(client, user_id): # Initialize appropriate service. user_team_association_service = client.GetService( - 'UserTeamAssociationService', version='v202305') + 'UserTeamAssociationService', version='v202402') # Create filter text to select user team associations by the user ID. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('userId = :userId') .WithBindVariable('userId', int(user_id))) diff --git a/examples/ad_manager/v202305/user_team_association_service/get_all_user_team_associations.py b/examples/ad_manager/v202402/user_team_association_service/get_all_user_team_associations.py similarity index 94% rename from examples/ad_manager/v202305/user_team_association_service/get_all_user_team_associations.py rename to examples/ad_manager/v202402/user_team_association_service/get_all_user_team_associations.py index dff8329e..0b9bc594 100755 --- a/examples/ad_manager/v202305/user_team_association_service/get_all_user_team_associations.py +++ b/examples/ad_manager/v202402/user_team_association_service/get_all_user_team_associations.py @@ -23,10 +23,10 @@ def main(client): # Initialize appropriate service. user_team_association_service = client.GetService( - 'UserTeamAssociationService', version='v202305') + 'UserTeamAssociationService', version='v202402') # Create a statement to select user team associations. - statement = ad_manager.StatementBuilder(version='v202305') + statement = ad_manager.StatementBuilder(version='v202402') # Retrieve a small amount of user team associations at a time, paging # through until all user team associations have been retrieved. diff --git a/examples/ad_manager/v202305/user_team_association_service/get_user_team_associations_for_user.py b/examples/ad_manager/v202402/user_team_association_service/get_user_team_associations_for_user.py similarity index 94% rename from examples/ad_manager/v202305/user_team_association_service/get_user_team_associations_for_user.py rename to examples/ad_manager/v202402/user_team_association_service/get_user_team_associations_for_user.py index 561a3c05..b5b8ee40 100755 --- a/examples/ad_manager/v202305/user_team_association_service/get_user_team_associations_for_user.py +++ b/examples/ad_manager/v202402/user_team_association_service/get_user_team_associations_for_user.py @@ -25,9 +25,9 @@ def main(client, user_id): # Initialize appropriate service. user_team_association_service = client.GetService( - 'UserTeamAssociationService', version='v202305') + 'UserTeamAssociationService', version='v202402') # Create a statement to select user team associations. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('userId = :userId') .WithBindVariable('userId', int(user_id))) diff --git a/examples/ad_manager/v202305/user_team_association_service/update_user_team_associations.py b/examples/ad_manager/v202402/user_team_association_service/update_user_team_associations.py similarity index 96% rename from examples/ad_manager/v202305/user_team_association_service/update_user_team_associations.py rename to examples/ad_manager/v202402/user_team_association_service/update_user_team_associations.py index 15cdbed0..71b8421e 100755 --- a/examples/ad_manager/v202305/user_team_association_service/update_user_team_associations.py +++ b/examples/ad_manager/v202402/user_team_association_service/update_user_team_associations.py @@ -37,10 +37,10 @@ def main(client, user_id): # Initialize appropriate service. user_team_association_service = client.GetService( - 'UserTeamAssociationService', version='v202305') + 'UserTeamAssociationService', version='v202402') # Create filter text to select user team associations by the user ID. - statement = (ad_manager.StatementBuilder(version='v202305') + statement = (ad_manager.StatementBuilder(version='v202402') .Where('userId = :userId') .WithBindVariable('userId', int(user_id))) diff --git a/googleads/ad_manager.py b/googleads/ad_manager.py index 8d95412d..01e793a4 100644 --- a/googleads/ad_manager.py +++ b/googleads/ad_manager.py @@ -44,7 +44,7 @@ # A giant dictionary of Ad Manager versions and the services they support. _SERVICE_MAP = { - 'v202302': ( + 'v202305': ( 'ActivityGroupService', 'ActivityService', 'AdjustmentService', @@ -81,6 +81,7 @@ 'ProposalService', 'PublisherQueryLanguageService', 'ReportService', + 'SegmentPopulationService', 'SiteService', 'StreamActivityMonitorService', 'SuggestedAdUnitService', @@ -90,7 +91,7 @@ 'UserTeamAssociationService', 'YieldGroupService', ), - 'v202305': ( + 'v202308': ( 'ActivityGroupService', 'ActivityService', 'AdjustmentService', @@ -137,7 +138,7 @@ 'UserTeamAssociationService', 'YieldGroupService', ), - 'v202308': ( + 'v202311': ( 'ActivityGroupService', 'ActivityService', 'AdjustmentService', @@ -184,7 +185,7 @@ 'UserTeamAssociationService', 'YieldGroupService', ), - 'v202311': ( + 'v202402': ( 'ActivityGroupService', 'ActivityService', 'AdjustmentService', @@ -196,7 +197,6 @@ 'ContactService', 'ContentBundleService', 'ContentService', - 'CreativeReviewService', 'CreativeService', 'CreativeSetService', 'CreativeTemplateService', diff --git a/googleads/common.py b/googleads/common.py index 48aa59ea..52b41fd8 100644 --- a/googleads/common.py +++ b/googleads/common.py @@ -54,7 +54,7 @@ 'order to benefit from important security improvements and ensure ' 'compatibility with this library, upgrade to Python 3.6 or higher.') -VERSION = '40.0.0' +VERSION = '41.0.0' _COMMON_LIB_SIG = 'googleads/%s' % VERSION _LOGGING_KEY = 'logging' _HTTP_PROXY_YAML_KEY = 'http' diff --git a/tests/common_test.py b/tests/common_test.py index 6dac1290..7836b216 100644 --- a/tests/common_test.py +++ b/tests/common_test.py @@ -37,7 +37,7 @@ TEST_DIR = os.path.dirname(__file__) -CURRENT_VERSION = 'v202311' +CURRENT_VERSION = 'v202402' class CommonTest(