Class: Google::Apis::RealtimebiddingV1::RealtimeBiddingService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::RealtimebiddingV1::RealtimeBiddingService
- Defined in:
- generated/google/apis/realtimebidding_v1/service.rb
Overview
Real-time Bidding API
Allows external bidders to manage their RTB integration with Google. This includes managing bidder endpoints, QPS quotas, configuring what ad inventory to receive via pretargeting, submitting creatives for verification, and accessing creative metadata such as approval status.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#activate_pretargeting_config(name, activate_pretargeting_config_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Activates a pretargeting configuration.
-
#add_pretargeting_config_targeted_apps(pretargeting_config, add_targeted_apps_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Adds targeted apps to the pretargeting configuration.
-
#add_pretargeting_config_targeted_publishers(pretargeting_config, add_targeted_publishers_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Adds targeted publishers to the pretargeting config.
-
#add_pretargeting_config_targeted_sites(pretargeting_config, add_targeted_sites_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Adds targeted sites to the pretargeting configuration.
-
#close_user_list(name, close_user_list_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::UserList
Change the status of a user list to CLOSED.
-
#create_bidder_pretargeting_config(parent, pretargeting_config_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Creates a pretargeting configuration.
-
#create_buyer_creative(parent, creative_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::Creative
Creates a creative.
-
#create_buyer_user_list(parent, user_list_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::UserList
Create a new user list.
-
#delete_bidder_pretargeting_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::Empty
Deletes a pretargeting configuration.
-
#get_bidder_pretargeting_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Gets a pretargeting configuration.
-
#get_buyer_creative(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::Creative
Gets a creative.
-
#get_buyer_remarketing_tag(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::GetRemarketingTagResponse
Gets remarketing tag for a buyer.
-
#get_buyer_user_list(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::UserList
Gets a user list by its name.
-
#get_buyer_user_list_remarketing_tag(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::GetRemarketingTagResponse
Gets remarketing tag for a buyer.
-
#initialize ⇒ RealtimeBiddingService
constructor
A new instance of RealtimeBiddingService.
-
#list_bidder_creatives(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::ListCreativesResponse
Lists creatives.
-
#list_bidder_pretargeting_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::ListPretargetingConfigsResponse
Lists all pretargeting configurations for a single bidder.
-
#list_buyer_creatives(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::ListCreativesResponse
Lists creatives.
-
#list_buyer_user_lists(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::ListUserListsResponse
Lists the user lists visible to the current user.
-
#open_user_list(name, open_user_list_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::UserList
Change the status of a user list to OPEN.
-
#patch_bidder_pretargeting_config(name, pretargeting_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Updates a pretargeting configuration.
-
#patch_buyer_creative(name, creative_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::Creative
Updates a creative.
-
#remove_pretargeting_config_targeted_apps(pretargeting_config, remove_targeted_apps_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Removes targeted apps from the pretargeting configuration.
-
#remove_pretargeting_config_targeted_publishers(pretargeting_config, remove_targeted_publishers_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Removes targeted publishers from the pretargeting config.
-
#remove_pretargeting_config_targeted_sites(pretargeting_config, remove_targeted_sites_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Removes targeted sites from the pretargeting configuration.
-
#suspend_pretargeting_config(name, suspend_pretargeting_config_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Suspends a pretargeting configuration.
-
#update_buyer_user_list(name, user_list_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::UserList
Update the given user list.
-
#watch_creatives(parent, watch_creatives_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::WatchCreativesResponse
Watches all creatives pertaining to a bidder.
Constructor Details
#initialize ⇒ RealtimeBiddingService
Returns a new instance of RealtimeBiddingService.
48 49 50 51 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 48 def initialize super('https://realtimebidding.googleapis.com/', '') @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
41 42 43 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 41 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
46 47 48 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 46 def quota_user @quota_user end |
Instance Method Details
#activate_pretargeting_config(name, activate_pretargeting_config_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Activates a pretargeting configuration.
177 178 179 180 181 182 183 184 185 186 187 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 177 def activate_pretargeting_config(name, activate_pretargeting_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:activate', ) command.request_representation = Google::Apis::RealtimebiddingV1::ActivatePretargetingConfigRequest::Representation command.request_object = activate_pretargeting_config_request_object command.response_representation = Google::Apis::RealtimebiddingV1::PretargetingConfig::Representation command.response_class = Google::Apis::RealtimebiddingV1::PretargetingConfig command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#add_pretargeting_config_targeted_apps(pretargeting_config, add_targeted_apps_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Adds targeted apps to the pretargeting configuration.
211 212 213 214 215 216 217 218 219 220 221 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 211 def add_pretargeting_config_targeted_apps(pretargeting_config, add_targeted_apps_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+pretargetingConfig}:addTargetedApps', ) command.request_representation = Google::Apis::RealtimebiddingV1::AddTargetedAppsRequest::Representation command.request_object = add_targeted_apps_request_object command.response_representation = Google::Apis::RealtimebiddingV1::PretargetingConfig::Representation command.response_class = Google::Apis::RealtimebiddingV1::PretargetingConfig command.params['pretargetingConfig'] = pretargeting_config unless pretargeting_config.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#add_pretargeting_config_targeted_publishers(pretargeting_config, add_targeted_publishers_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Adds targeted publishers to the pretargeting config.
245 246 247 248 249 250 251 252 253 254 255 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 245 def add_pretargeting_config_targeted_publishers(pretargeting_config, add_targeted_publishers_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+pretargetingConfig}:addTargetedPublishers', ) command.request_representation = Google::Apis::RealtimebiddingV1::AddTargetedPublishersRequest::Representation command.request_object = add_targeted_publishers_request_object command.response_representation = Google::Apis::RealtimebiddingV1::PretargetingConfig::Representation command.response_class = Google::Apis::RealtimebiddingV1::PretargetingConfig command.params['pretargetingConfig'] = pretargeting_config unless pretargeting_config.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#add_pretargeting_config_targeted_sites(pretargeting_config, add_targeted_sites_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Adds targeted sites to the pretargeting configuration.
279 280 281 282 283 284 285 286 287 288 289 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 279 def add_pretargeting_config_targeted_sites(pretargeting_config, add_targeted_sites_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+pretargetingConfig}:addTargetedSites', ) command.request_representation = Google::Apis::RealtimebiddingV1::AddTargetedSitesRequest::Representation command.request_object = add_targeted_sites_request_object command.response_representation = Google::Apis::RealtimebiddingV1::PretargetingConfig::Representation command.response_class = Google::Apis::RealtimebiddingV1::PretargetingConfig command.params['pretargetingConfig'] = pretargeting_config unless pretargeting_config.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#close_user_list(name, close_user_list_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::UserList
Change the status of a user list to CLOSED. This prevents new users from being added to the user list.
839 840 841 842 843 844 845 846 847 848 849 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 839 def close_user_list(name, close_user_list_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:close', ) command.request_representation = Google::Apis::RealtimebiddingV1::CloseUserListRequest::Representation command.request_object = close_user_list_request_object command.response_representation = Google::Apis::RealtimebiddingV1::UserList::Representation command.response_class = Google::Apis::RealtimebiddingV1::UserList command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_bidder_pretargeting_config(parent, pretargeting_config_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Creates a pretargeting configuration. A pretargeting configuration's state ( PretargetingConfig.state) is active upon creation, and it will start to affect traffic shortly after. A bidder may create a maximum of 10 pretargeting configurations. Attempts to exceed this maximum results in a 400 bad request error.
317 318 319 320 321 322 323 324 325 326 327 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 317 def create_bidder_pretargeting_config(parent, pretargeting_config_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/pretargetingConfigs', ) command.request_representation = Google::Apis::RealtimebiddingV1::PretargetingConfig::Representation command.request_object = pretargeting_config_object command.response_representation = Google::Apis::RealtimebiddingV1::PretargetingConfig::Representation command.response_class = Google::Apis::RealtimebiddingV1::PretargetingConfig command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_buyer_creative(parent, creative_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::Creative
Creates a creative.
667 668 669 670 671 672 673 674 675 676 677 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 667 def create_buyer_creative(parent, creative_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/creatives', ) command.request_representation = Google::Apis::RealtimebiddingV1::Creative::Representation command.request_object = creative_object command.response_representation = Google::Apis::RealtimebiddingV1::Creative::Representation command.response_class = Google::Apis::RealtimebiddingV1::Creative command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_buyer_user_list(parent, user_list_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::UserList
Create a new user list.
876 877 878 879 880 881 882 883 884 885 886 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 876 def create_buyer_user_list(parent, user_list_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/userLists', ) command.request_representation = Google::Apis::RealtimebiddingV1::UserList::Representation command.request_object = user_list_object command.response_representation = Google::Apis::RealtimebiddingV1::UserList::Representation command.response_class = Google::Apis::RealtimebiddingV1::UserList command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_bidder_pretargeting_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::Empty
Deletes a pretargeting configuration.
350 351 352 353 354 355 356 357 358 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 350 def delete_bidder_pretargeting_config(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::RealtimebiddingV1::Empty::Representation command.response_class = Google::Apis::RealtimebiddingV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_bidder_pretargeting_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Gets a pretargeting configuration.
381 382 383 384 385 386 387 388 389 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 381 def get_bidder_pretargeting_config(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::RealtimebiddingV1::PretargetingConfig::Representation command.response_class = Google::Apis::RealtimebiddingV1::PretargetingConfig command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_buyer_creative(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::Creative
Gets a creative.
704 705 706 707 708 709 710 711 712 713 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 704 def get_buyer_creative(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::RealtimebiddingV1::Creative::Representation command.response_class = Google::Apis::RealtimebiddingV1::Creative command.params['name'] = name unless name.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_buyer_remarketing_tag(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::GetRemarketingTagResponse
Gets remarketing tag for a buyer. A remarketing tag is a piece of JavaScript code that can be placed on a web page. When a user visits a page containing a remarketing tag, Google adds the user to a user list.
632 633 634 635 636 637 638 639 640 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 632 def get_buyer_remarketing_tag(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}:getRemarketingTag', ) command.response_representation = Google::Apis::RealtimebiddingV1::GetRemarketingTagResponse::Representation command.response_class = Google::Apis::RealtimebiddingV1::GetRemarketingTagResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_buyer_user_list(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::UserList
Gets a user list by its name.
908 909 910 911 912 913 914 915 916 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 908 def get_buyer_user_list(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::RealtimebiddingV1::UserList::Representation command.response_class = Google::Apis::RealtimebiddingV1::UserList command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_buyer_user_list_remarketing_tag(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::GetRemarketingTagResponse
Gets remarketing tag for a buyer. A remarketing tag is a piece of JavaScript code that can be placed on a web page. When a user visits a page containing a remarketing tag, Google adds the user to a user list.
945 946 947 948 949 950 951 952 953 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 945 def get_buyer_user_list_remarketing_tag(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}:getRemarketingTag', ) command.response_representation = Google::Apis::RealtimebiddingV1::GetRemarketingTagResponse::Representation command.response_class = Google::Apis::RealtimebiddingV1::GetRemarketingTagResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_bidder_creatives(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::ListCreativesResponse
Lists creatives.
102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 102 def list_bidder_creatives(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/creatives', ) command.response_representation = Google::Apis::RealtimebiddingV1::ListCreativesResponse::Representation command.response_class = Google::Apis::RealtimebiddingV1::ListCreativesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_bidder_pretargeting_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::ListPretargetingConfigsResponse
Lists all pretargeting configurations for a single bidder.
420 421 422 423 424 425 426 427 428 429 430 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 420 def list_bidder_pretargeting_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/pretargetingConfigs', ) command.response_representation = Google::Apis::RealtimebiddingV1::ListPretargetingConfigsResponse::Representation command.response_class = Google::Apis::RealtimebiddingV1::ListPretargetingConfigsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_buyer_creatives(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::ListCreativesResponse
Lists creatives.
764 765 766 767 768 769 770 771 772 773 774 775 776 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 764 def list_buyer_creatives(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/creatives', ) command.response_representation = Google::Apis::RealtimebiddingV1::ListCreativesResponse::Representation command.response_class = Google::Apis::RealtimebiddingV1::ListCreativesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_buyer_user_lists(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::ListUserListsResponse
Lists the user lists visible to the current user.
983 984 985 986 987 988 989 990 991 992 993 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 983 def list_buyer_user_lists(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/userLists', ) command.response_representation = Google::Apis::RealtimebiddingV1::ListUserListsResponse::Representation command.response_class = Google::Apis::RealtimebiddingV1::ListUserListsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#open_user_list(name, open_user_list_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::UserList
Change the status of a user list to OPEN. This allows new users to be added to the user list.
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 1017 def open_user_list(name, open_user_list_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:open', ) command.request_representation = Google::Apis::RealtimebiddingV1::OpenUserListRequest::Representation command.request_object = open_user_list_request_object command.response_representation = Google::Apis::RealtimebiddingV1::UserList::Representation command.response_class = Google::Apis::RealtimebiddingV1::UserList command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_bidder_pretargeting_config(name, pretargeting_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Updates a pretargeting configuration.
456 457 458 459 460 461 462 463 464 465 466 467 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 456 def patch_bidder_pretargeting_config(name, pretargeting_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::RealtimebiddingV1::PretargetingConfig::Representation command.request_object = pretargeting_config_object command.response_representation = Google::Apis::RealtimebiddingV1::PretargetingConfig::Representation command.response_class = Google::Apis::RealtimebiddingV1::PretargetingConfig command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_buyer_creative(name, creative_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::Creative
Updates a creative.
804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 804 def patch_buyer_creative(name, creative_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::RealtimebiddingV1::Creative::Representation command.request_object = creative_object command.response_representation = Google::Apis::RealtimebiddingV1::Creative::Representation command.response_class = Google::Apis::RealtimebiddingV1::Creative command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#remove_pretargeting_config_targeted_apps(pretargeting_config, remove_targeted_apps_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Removes targeted apps from the pretargeting configuration.
491 492 493 494 495 496 497 498 499 500 501 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 491 def remove_pretargeting_config_targeted_apps(pretargeting_config, remove_targeted_apps_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+pretargetingConfig}:removeTargetedApps', ) command.request_representation = Google::Apis::RealtimebiddingV1::RemoveTargetedAppsRequest::Representation command.request_object = remove_targeted_apps_request_object command.response_representation = Google::Apis::RealtimebiddingV1::PretargetingConfig::Representation command.response_class = Google::Apis::RealtimebiddingV1::PretargetingConfig command.params['pretargetingConfig'] = pretargeting_config unless pretargeting_config.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#remove_pretargeting_config_targeted_publishers(pretargeting_config, remove_targeted_publishers_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Removes targeted publishers from the pretargeting config.
525 526 527 528 529 530 531 532 533 534 535 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 525 def remove_pretargeting_config_targeted_publishers(pretargeting_config, remove_targeted_publishers_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+pretargetingConfig}:removeTargetedPublishers', ) command.request_representation = Google::Apis::RealtimebiddingV1::RemoveTargetedPublishersRequest::Representation command.request_object = remove_targeted_publishers_request_object command.response_representation = Google::Apis::RealtimebiddingV1::PretargetingConfig::Representation command.response_class = Google::Apis::RealtimebiddingV1::PretargetingConfig command.params['pretargetingConfig'] = pretargeting_config unless pretargeting_config.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#remove_pretargeting_config_targeted_sites(pretargeting_config, remove_targeted_sites_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Removes targeted sites from the pretargeting configuration.
559 560 561 562 563 564 565 566 567 568 569 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 559 def remove_pretargeting_config_targeted_sites(pretargeting_config, remove_targeted_sites_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+pretargetingConfig}:removeTargetedSites', ) command.request_representation = Google::Apis::RealtimebiddingV1::RemoveTargetedSitesRequest::Representation command.request_object = remove_targeted_sites_request_object command.response_representation = Google::Apis::RealtimebiddingV1::PretargetingConfig::Representation command.response_class = Google::Apis::RealtimebiddingV1::PretargetingConfig command.params['pretargetingConfig'] = pretargeting_config unless pretargeting_config.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#suspend_pretargeting_config(name, suspend_pretargeting_config_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::PretargetingConfig
Suspends a pretargeting configuration.
593 594 595 596 597 598 599 600 601 602 603 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 593 def suspend_pretargeting_config(name, suspend_pretargeting_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:suspend', ) command.request_representation = Google::Apis::RealtimebiddingV1::SuspendPretargetingConfigRequest::Representation command.request_object = suspend_pretargeting_config_request_object command.response_representation = Google::Apis::RealtimebiddingV1::PretargetingConfig::Representation command.response_class = Google::Apis::RealtimebiddingV1::PretargetingConfig command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_buyer_user_list(name, user_list_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::UserList
Update the given user list. Only user lists with URLRestrictions can be updated.
1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 1056 def update_buyer_user_list(name, user_list_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v1/{+name}', ) command.request_representation = Google::Apis::RealtimebiddingV1::UserList::Representation command.request_object = user_list_object command.response_representation = Google::Apis::RealtimebiddingV1::UserList::Representation command.response_class = Google::Apis::RealtimebiddingV1::UserList command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#watch_creatives(parent, watch_creatives_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RealtimebiddingV1::WatchCreativesResponse
Watches all creatives pertaining to a bidder. It is sufficient to invoke this endpoint once per bidder. A Pub/Sub topic will be created and notifications will be pushed to the topic when any of the bidder's creatives change status. All of the bidder's service accounts will have access to read from the topic. Subsequent invocations of this method will return the existing Pub/Sub configuration.
143 144 145 146 147 148 149 150 151 152 153 |
# File 'generated/google/apis/realtimebidding_v1/service.rb', line 143 def watch_creatives(parent, watch_creatives_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/creatives:watch', ) command.request_representation = Google::Apis::RealtimebiddingV1::WatchCreativesRequest::Representation command.request_object = watch_creatives_request_object command.response_representation = Google::Apis::RealtimebiddingV1::WatchCreativesResponse::Representation command.response_class = Google::Apis::RealtimebiddingV1::WatchCreativesResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |