Skip to content

Commit

Permalink
Support for Ad Manager API v202208.
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherseeley committed Aug 16, 2022
1 parent de79e10 commit 1edd96b
Show file tree
Hide file tree
Showing 291 changed files with 1,661 additions and 1,752 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ programmatically access your accounts.
- Support for logging incoming and outgoing SOAP messages
- Support for logging request information
- Based on Savon library
- Ruby 2.1, 2.2, 2.3, and 2.4 compatible
- Ruby >=2.6 compatible
- OAuth2 and OAuth2 JWT built-in authentication
- Local validation for parameter number and type on API calls
- Thread-safe
Expand All @@ -44,12 +44,6 @@ programmatically access your accounts.

$ gem install google-dfp-api

Note: If you're using a version of Ruby lower than 2.2.2, you will need to
manually install a previous version of Rack, a dependency of our HTTP
library. You can do this with:

$ gem install rack -v 1.6.4

1. Copy the sample config file (**adwords_api.yml** or **ad_manager_api.yml**)
for your product to your home directory and fill out the required properties.

Expand Down
6 changes: 6 additions & 0 deletions ad_manager_api/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.0.0:
- Updated minimum Ruby version to 2.6.
- Added support for v202208.
- Removed examples for v202111.
- Removed support for v202108.

1.19.0:
- Added support for v202205.
- Removed support for v202105.
Expand Down
84 changes: 0 additions & 84 deletions ad_manager_api/examples/v202111/common/setup_oauth2.rb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def create_activity_groups(ad_manager, advertiser_company_id)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_active_activity_groups(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_all_activity_groups(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def update_activity_groups(ad_manager, advertiser_company_id, activity_group_id)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def create_activities(ad_manager, activity_group_id)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_active_activities(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_all_activities(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def update_activities(ad_manager, activity_id)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def create_forecast_adjustments(ad_manager, traffic_forecast_segment_id)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def create_traffic_forecast_segments(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_all_forecast_adjustments(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_all_traffic_forecast_segments(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_forecast_adjustments_for_traffic_forecast_segment(ad_manager,
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def update_forecast_adjustments(ad_manager, adjustment_id)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def create_audience_segments(ad_manager, custom_targeting_key_id,
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_all_audience_segments(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_first_party_audience_segments(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def populate_first_party_audience_segments(ad_manager, audience_segment_id)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def update_audience_segments(ad_manager, audience_segment_id)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def create_cdn_configurations(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_all_cdn_configurations(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def activate_cms_metadata_values(ad_manager, cms_metadata_key_id)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_all_cms_metadata_keys(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_all_cms_metadata_values(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_cms_metadata_values_for_key(ad_manager, cms_metadata_key_name)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def produce_api_error(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def oauth2_jwt_handling(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def create_companies(ad_manager, number_of_companies_to_create)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_advertisers(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_all_companies(ad_manager)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def update_companies(ad_manager, company_id)
end

if __FILE__ == $0
API_VERSION = :v202111
API_VERSION = :v202208

# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
ad_manager = AdManagerApi::Api.new
Expand Down
Loading

0 comments on commit 1edd96b

Please sign in to comment.