Class: Google::Apis::AdexchangebuyerV1_3::AdExchangeBuyerService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::AdexchangebuyerV1_3::AdExchangeBuyerService
- Defined in:
- generated/google/apis/adexchangebuyer_v1_3/service.rb
Overview
Ad Exchange Buyer API
Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
-
#user_ip ⇒ String
IP address of the site where the request originates.
Attributes inherited from Core::BaseService
#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path
Instance Method Summary collapse
-
#delete_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes an existing pretargeting config.
-
#get_account(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::Account
Gets one account by ID.
-
#get_billing_info(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::BillingInfo
Returns the billing information for one account specified by account ID.
-
#get_budget(account_id, billing_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::Budget
Returns the budget information for the adgroup specified by the accountId and billingId.
-
#get_creative(account_id, buyer_creative_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::Creative
Gets the status for a single creative.
-
#get_direct_deal(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::DirectDeal
Gets one direct deal by ID.
-
#get_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
Gets a specific pretargeting configuration.
-
#initialize ⇒ AdExchangeBuyerService
constructor
A new instance of AdExchangeBuyerService.
-
#insert_creative(creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::Creative
Submit a new creative.
-
#insert_pretargeting_config(account_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
Inserts a new pretargeting configuration.
-
#list_accounts(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::AccountsList
Retrieves the authenticated user's list of accounts.
-
#list_billing_infos(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::BillingInfoList
Retrieves a list of billing information for all accounts of the authenticated user.
-
#list_creatives(account_id: nil, buyer_creative_id: nil, max_results: nil, page_token: nil, status_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::CreativesList
Retrieves a list of the authenticated user's active creatives.
-
#list_direct_deals(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::DirectDealsList
Retrieves the authenticated user's list of direct deals.
-
#list_performance_reports(account_id, end_date_time, start_date_time, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::PerformanceReportList
Retrieves the authenticated user's list of performance metrics.
-
#list_pretargeting_configs(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList
Retrieves a list of the authenticated user's pretargeting configurations.
-
#patch_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::Account
Updates an existing account.
-
#patch_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::Budget
Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request.
-
#patch_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
Updates an existing pretargeting config.
-
#update_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::Account
Updates an existing account.
-
#update_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::Budget
Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request.
-
#update_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
Updates an existing pretargeting config.
Methods inherited from Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Methods included from Core::Logging
Constructor Details
#initialize ⇒ AdExchangeBuyerService
Returns a new instance of AdExchangeBuyerService
52 53 54 55 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 52 def initialize super('https://www.googleapis.com/', 'adexchangebuyer/v1.3/') @batch_path = 'batch/adexchangebuyer/v1.3' 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.
39 40 41 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 39 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. Overrides userIp if both are provided.
45 46 47 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 45 def quota_user @quota_user end |
#user_ip ⇒ String
Returns IP address of the site where the request originates. Use this if you want to enforce per-user limits.
50 51 52 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 50 def user_ip @user_ip end |
Instance Method Details
#delete_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes an existing pretargeting config.
660 661 662 663 664 665 666 667 668 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 660 def delete_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'pretargetingconfigs/{accountId}/{configId}', ) command.params['accountId'] = account_id unless account_id.nil? command.params['configId'] = config_id unless config_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_account(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::Account
Gets one account by ID.
81 82 83 84 85 86 87 88 89 90 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 81 def get_account(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/{id}', ) command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::Account command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_billing_info(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::BillingInfo
Returns the billing information for one account specified by account ID.
224 225 226 227 228 229 230 231 232 233 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 224 def get_billing_info(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'billinginfo/{accountId}', ) command.response_representation = Google::Apis::AdexchangebuyerV1_3::BillingInfo::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::BillingInfo command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_budget(account_id, billing_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::Budget
Returns the budget information for the adgroup specified by the accountId and billingId.
295 296 297 298 299 300 301 302 303 304 305 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 295 def get_budget(account_id, billing_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'billinginfo/{accountId}/{billingId}', ) command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::Budget command.params['accountId'] = account_id unless account_id.nil? command.params['billingId'] = billing_id unless billing_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_creative(account_id, buyer_creative_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::Creative
Gets the status for a single creative. A creative will be available 30-40 minutes after submission.
419 420 421 422 423 424 425 426 427 428 429 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 419 def get_creative(account_id, buyer_creative_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'creatives/{accountId}/{buyerCreativeId}', ) command.response_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::Creative command.params['accountId'] = account_id unless account_id.nil? command.params['buyerCreativeId'] = buyer_creative_id unless buyer_creative_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_direct_deal(id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::DirectDeal
Gets one direct deal by ID.
541 542 543 544 545 546 547 548 549 550 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 541 def get_direct_deal(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'directdeals/{id}', ) command.response_representation = Google::Apis::AdexchangebuyerV1_3::DirectDeal::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::DirectDeal command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
Gets a specific pretargeting configuration
696 697 698 699 700 701 702 703 704 705 706 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 696 def get_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'pretargetingconfigs/{accountId}/{configId}', ) command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig command.params['accountId'] = account_id unless account_id.nil? command.params['configId'] = config_id unless config_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_creative(creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::Creative
Submit a new creative.
454 455 456 457 458 459 460 461 462 463 464 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 454 def insert_creative(creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'creatives', ) command.request_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation command.request_object = creative_object command.response_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::Creative command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_pretargeting_config(account_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
Inserts a new pretargeting configuration.
733 734 735 736 737 738 739 740 741 742 743 744 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 733 def insert_pretargeting_config(account_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'pretargetingconfigs/{accountId}', ) command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation command.request_object = pretargeting_config_object command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_accounts(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::AccountsList
Retrieves the authenticated user's list of accounts.
114 115 116 117 118 119 120 121 122 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 114 def list_accounts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'accounts', ) command.response_representation = Google::Apis::AdexchangebuyerV1_3::AccountsList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::AccountsList command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_billing_infos(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::BillingInfoList
Retrieves a list of billing information for all accounts of the authenticated user.
258 259 260 261 262 263 264 265 266 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 258 def list_billing_infos(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'billinginfo', ) command.response_representation = Google::Apis::AdexchangebuyerV1_3::BillingInfoList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::BillingInfoList command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_creatives(account_id: nil, buyer_creative_id: nil, max_results: nil, page_token: nil, status_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::CreativesList
Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.
502 503 504 505 506 507 508 509 510 511 512 513 514 515 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 502 def list_creatives(account_id: nil, buyer_creative_id: nil, max_results: nil, page_token: nil, status_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'creatives', ) command.response_representation = Google::Apis::AdexchangebuyerV1_3::CreativesList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::CreativesList command.query['accountId'] = account_id unless account_id.nil? command.query['buyerCreativeId'] = buyer_creative_id unless buyer_creative_id.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['statusFilter'] = status_filter unless status_filter.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_direct_deals(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::DirectDealsList
Retrieves the authenticated user's list of direct deals.
574 575 576 577 578 579 580 581 582 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 574 def list_direct_deals(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'directdeals', ) command.response_representation = Google::Apis::AdexchangebuyerV1_3::DirectDealsList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::DirectDealsList command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_performance_reports(account_id, end_date_time, start_date_time, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::PerformanceReportList
Retrieves the authenticated user's list of performance metrics.
619 620 621 622 623 624 625 626 627 628 629 630 631 632 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 619 def list_performance_reports(account_id, end_date_time, start_date_time, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'performancereport', ) command.response_representation = Google::Apis::AdexchangebuyerV1_3::PerformanceReportList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::PerformanceReportList command.query['accountId'] = account_id unless account_id.nil? command.query['endDateTime'] = end_date_time unless end_date_time.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['startDateTime'] = start_date_time unless start_date_time.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_pretargeting_configs(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList
Retrieves a list of the authenticated user's pretargeting configurations.
770 771 772 773 774 775 776 777 778 779 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 770 def list_pretargeting_configs(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'pretargetingconfigs/{accountId}', ) command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::Account
Updates an existing account. This method supports patch semantics.
149 150 151 152 153 154 155 156 157 158 159 160 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 149 def patch_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'accounts/{id}', ) command.request_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::Account command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::Budget
Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request. This method supports patch semantics.
336 337 338 339 340 341 342 343 344 345 346 347 348 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 336 def patch_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'billinginfo/{accountId}/{billingId}', ) command.request_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation command.request_object = budget_object command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::Budget command.params['accountId'] = account_id unless account_id.nil? command.params['billingId'] = billing_id unless billing_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
Updates an existing pretargeting config. This method supports patch semantics.
808 809 810 811 812 813 814 815 816 817 818 819 820 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 808 def patch_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'pretargetingconfigs/{accountId}/{configId}', ) command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation command.request_object = pretargeting_config_object command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig command.params['accountId'] = account_id unless account_id.nil? command.params['configId'] = config_id unless config_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::Account
Updates an existing account.
187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 187 def update_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'accounts/{id}', ) command.request_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::Account command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::Budget
Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request.
378 379 380 381 382 383 384 385 386 387 388 389 390 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 378 def update_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'billinginfo/{accountId}/{billingId}', ) command.request_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation command.request_object = budget_object command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::Budget command.params['accountId'] = account_id unless account_id.nil? command.params['billingId'] = billing_id unless billing_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
Updates an existing pretargeting config.
849 850 851 852 853 854 855 856 857 858 859 860 861 |
# File 'generated/google/apis/adexchangebuyer_v1_3/service.rb', line 849 def update_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'pretargetingconfigs/{accountId}/{configId}', ) command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation command.request_object = pretargeting_config_object command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig command.params['accountId'] = account_id unless account_id.nil? command.params['configId'] = config_id unless config_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |