Skip to content

Commit 5faa06d

Browse files
committed
Support for Ad Manager API v202202.
1 parent fe5cf2a commit 5faa06d

292 files changed

Lines changed: 1765 additions & 1547 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ad_manager_api/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
1.18.0:
2+
- Added support for v202202.
3+
- Removed support for v202102.
4+
- Removed examples for v202105.
5+
16
1.17.0:
27
- Added support for v202111.
38
- Removed support for v202011.

ad_manager_api/examples/v202108/native_style_service/get_all_native_styles.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def get_all_native_styles(ad_manager)
4646

4747
# Increase the statement offset by the page size to get the next page.
4848
statement.offset += statement.limit
49-
end while statement.offset < page[:total_result_set_size]
49+
end while statement.offset < total_result_set_size
5050

5151
puts 'Total number of native styles: %d' % page[:total_result_set_size]
5252
end

ad_manager_api/examples/v202108/proposal_service/get_all_proposals.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_all_proposals(ad_manager)
4343

4444
# Increase the statement offset by the page size to get the next page.
4545
statement.offset += statement.limit
46-
end while statement.offset < page[:total_result_set_size]
46+
end while statement.offset < total_result_set_size
4747

4848
puts 'Total number of proposals: %d' % page[:total_result_set_size]
4949
end

ad_manager_api/examples/v202111/native_style_service/get_all_native_styles.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def get_all_native_styles(ad_manager)
4646

4747
# Increase the statement offset by the page size to get the next page.
4848
statement.offset += statement.limit
49-
end while statement.offset < page[:total_result_set_size]
49+
end while statement.offset < total_result_set_size
5050

5151
puts 'Total number of native styles: %d' % page[:total_result_set_size]
5252
end

ad_manager_api/examples/v202111/proposal_service/get_all_proposals.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_all_proposals(ad_manager)
4343

4444
# Increase the statement offset by the page size to get the next page.
4545
statement.offset += statement.limit
46-
end while statement.offset < page[:total_result_set_size]
46+
end while statement.offset < total_result_set_size
4747

4848
puts 'Total number of proposals: %d' % page[:total_result_set_size]
4949
end

ad_manager_api/examples/v202105/activity_group_service/create_activity_groups.rb renamed to ad_manager_api/examples/v202202/activity_group_service/create_activity_groups.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def create_activity_groups(ad_manager, advertiser_company_id)
5959
end
6060

6161
if __FILE__ == $0
62-
API_VERSION = :v202105
62+
API_VERSION = :v202202
6363

6464
# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
6565
ad_manager = AdManagerApi::Api.new

ad_manager_api/examples/v202105/activity_group_service/get_active_activity_groups.rb renamed to ad_manager_api/examples/v202202/activity_group_service/get_active_activity_groups.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_active_activity_groups(ad_manager)
5959
end
6060

6161
if __FILE__ == $0
62-
API_VERSION = :v202105
62+
API_VERSION = :v202202
6363

6464
# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
6565
ad_manager = AdManagerApi::Api.new

ad_manager_api/examples/v202105/activity_group_service/get_all_activity_groups.rb renamed to ad_manager_api/examples/v202202/activity_group_service/get_all_activity_groups.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_all_activity_groups(ad_manager)
5454
end
5555

5656
if __FILE__ == $0
57-
API_VERSION = :v202105
57+
API_VERSION = :v202202
5858

5959
# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
6060
ad_manager = AdManagerApi::Api.new

ad_manager_api/examples/v202105/activity_group_service/update_activity_groups.rb renamed to ad_manager_api/examples/v202202/activity_group_service/update_activity_groups.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def update_activity_groups(ad_manager, advertiser_company_id, activity_group_id)
5858
end
5959

6060
if __FILE__ == $0
61-
API_VERSION = :v202105
61+
API_VERSION = :v202202
6262

6363
# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
6464
ad_manager = AdManagerApi::Api.new

ad_manager_api/examples/v202105/activity_service/create_activities.rb renamed to ad_manager_api/examples/v202202/activity_service/create_activities.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def create_activities(ad_manager, activity_group_id)
5555
end
5656

5757
if __FILE__ == $0
58-
API_VERSION = :v202105
58+
API_VERSION = :v202202
5959

6060
# Get AdManagerApi instance and load configuration from ~/ad_manager_api.yml.
6161
ad_manager = AdManagerApi::Api.new

0 commit comments

Comments
 (0)