Class: Google::Apis::AdexchangebuyerV1_4::AdExchangeBuyerService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::AdexchangebuyerV1_4::AdExchangeBuyerService
- Defined in:
- generated/google/apis/adexchangebuyer_v1_4/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
-
#add_creative_deal(account_id, buyer_creative_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Add a deal id association for the creative.
-
#delete_marketplacedeal_order_deals(proposal_id, delete_order_deals_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::DeleteOrderDealsResponse
Delete the specified deals from the proposal.
-
#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_4::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_4::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_4::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_4::Creative
Gets the status for a single creative.
-
#get_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::PretargetingConfig
Gets a specific pretargeting configuration.
-
#get_product(product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::Product
Gets the requested product by id.
-
#get_proposal(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::Proposal
Get a proposal given its id.
-
#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_4::Creative
Submit a new creative.
-
#insert_marketplacedeal(proposal_id, add_order_deals_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::AddOrderDealsResponse
Add new deals for the specified proposal.
-
#insert_marketplacenote(proposal_id, add_order_notes_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::AddOrderNotesResponse
Add notes to the proposal.
-
#insert_pretargeting_config(account_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::PretargetingConfig
Inserts a new pretargeting configuration.
-
#insert_proposal(create_orders_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::CreateOrdersResponse
Create the given list of proposals.
-
#list_accounts(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::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_4::BillingInfoList
Retrieves a list of billing information for all accounts of the authenticated user.
-
#list_creative_deals(account_id, buyer_creative_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::CreativeDealIds
Lists the external deal ids associated with the creative.
-
#list_creatives(account_id: nil, buyer_creative_id: nil, deals_status_filter: nil, max_results: nil, open_auction_status_filter: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::CreativesList
Retrieves a list of the authenticated user's active creatives.
-
#list_marketplacedeals(proposal_id, pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::GetOrderDealsResponse
List all the deals for a given proposal.
-
#list_marketplacenotes(proposal_id, pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::GetOrderNotesResponse
Get all the notes associated with a proposal.
-
#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_4::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_4::PretargetingConfigList
Retrieves a list of the authenticated user's pretargeting configurations.
-
#list_pub_profiles(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::GetPublisherProfilesByAccountIdResponse
Gets the requested publisher profile(s) by publisher accountId.
-
#patch_account(id, account_object = nil, confirm_unsafe_account_change: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::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_4::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_4::PretargetingConfig
Updates an existing pretargeting config.
-
#patch_proposal(proposal_id, revision_number, update_action, proposal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::Proposal
Update the given proposal.
-
#proposal_setup_complete(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Update the given proposal to indicate that setup has been completed.
-
#remove_creative_deal(account_id, buyer_creative_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Remove a deal id associated with the creative.
-
#search_products(pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::GetOffersResponse
Gets the requested product.
-
#search_proposals(pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::GetOrdersResponse
Search for proposals using pql query.
-
#update_account(id, account_object = nil, confirm_unsafe_account_change: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::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_4::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_marketplace_private_auction_proposal(private_auction_id, update_private_auction_proposal_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Update a given private auction proposal.
-
#update_marketplacedeal(proposal_id, edit_all_order_deals_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsResponse
Replaces all the deals in the proposal with the passed in deals.
-
#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_4::PretargetingConfig
Updates an existing pretargeting config.
-
#update_proposal(proposal_id, revision_number, update_action, proposal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::Proposal
Update the given proposal.
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_4/service.rb', line 52 def initialize super('https://www.googleapis.com/', 'adexchangebuyer/v1.4/') @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.
39 40 41 |
# File 'generated/google/apis/adexchangebuyer_v1_4/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_4/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_4/service.rb', line 50 def user_ip @user_ip end |
Instance Method Details
#add_creative_deal(account_id, buyer_creative_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Add a deal id association for the creative.
426 427 428 429 430 431 432 433 434 435 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 426 def add_creative_deal(account_id, buyer_creative_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'creatives/{accountId}/{buyerCreativeId}/addDeal/{dealId}', ) command.params['accountId'] = account_id unless account_id.nil? command.params['buyerCreativeId'] = buyer_creative_id unless buyer_creative_id.nil? command.params['dealId'] = deal_id unless deal_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 |
#delete_marketplacedeal_order_deals(proposal_id, delete_order_deals_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::DeleteOrderDealsResponse
Delete the specified deals from the proposal
668 669 670 671 672 673 674 675 676 677 678 679 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 668 def delete_marketplacedeal_order_deals(proposal_id, delete_order_deals_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'proposals/{proposalId}/deals/delete', ) command.request_representation = Google::Apis::AdexchangebuyerV1_4::DeleteOrderDealsRequest::Representation command.request_object = delete_order_deals_request_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::DeleteOrderDealsResponse::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::DeleteOrderDealsResponse command.params['proposalId'] = proposal_id unless proposal_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 |
#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.
987 988 989 990 991 992 993 994 995 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 987 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_4::Account
Gets one account by ID.
81 82 83 84 85 86 87 88 89 90 |
# File 'generated/google/apis/adexchangebuyer_v1_4/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_4::Account::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::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_4::BillingInfo
Returns the billing information for one account specified by account ID.
230 231 232 233 234 235 236 237 238 239 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 230 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_4::BillingInfo::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::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_4::Budget
Returns the budget information for the adgroup specified by the accountId and billingId.
301 302 303 304 305 306 307 308 309 310 311 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 301 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_4::Budget::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::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_4::Creative
Gets the status for a single creative. A creative will be available 30-40 minutes after submission.
464 465 466 467 468 469 470 471 472 473 474 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 464 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_4::Creative::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::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_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::PretargetingConfig
Gets a specific pretargeting configuration
1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 1023 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_4::PretargetingConfig::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::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 |
#get_product(product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::Product
Gets the requested product by id.
1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 1214 def get_product(product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'products/{productId}', ) command.response_representation = Google::Apis::AdexchangebuyerV1_4::Product::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::Product command.params['productId'] = product_id unless product_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_proposal(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::Proposal
Get a proposal given its id
1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 1284 def get_proposal(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'proposals/{proposalId}', ) command.response_representation = Google::Apis::AdexchangebuyerV1_4::Proposal::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::Proposal command.params['proposalId'] = proposal_id unless proposal_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_4::Creative
Submit a new creative.
499 500 501 502 503 504 505 506 507 508 509 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 499 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_4::Creative::Representation command.request_object = creative_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::Creative::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::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_marketplacedeal(proposal_id, add_order_deals_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::AddOrderDealsResponse
Add new deals for the specified proposal
706 707 708 709 710 711 712 713 714 715 716 717 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 706 def insert_marketplacedeal(proposal_id, add_order_deals_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'proposals/{proposalId}/deals/insert', ) command.request_representation = Google::Apis::AdexchangebuyerV1_4::AddOrderDealsRequest::Representation command.request_object = add_order_deals_request_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::AddOrderDealsResponse::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::AddOrderDealsResponse command.params['proposalId'] = proposal_id unless proposal_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_marketplacenote(proposal_id, add_order_notes_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::AddOrderNotesResponse
Add notes to the proposal
821 822 823 824 825 826 827 828 829 830 831 832 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 821 def insert_marketplacenote(proposal_id, add_order_notes_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'proposals/{proposalId}/notes/insert', ) command.request_representation = Google::Apis::AdexchangebuyerV1_4::AddOrderNotesRequest::Representation command.request_object = add_order_notes_request_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::AddOrderNotesResponse::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::AddOrderNotesResponse command.params['proposalId'] = proposal_id unless proposal_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_pretargeting_config(account_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::PretargetingConfig
Inserts a new pretargeting configuration.
1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 1060 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_4::PretargetingConfig::Representation command.request_object = pretargeting_config_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::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 |
#insert_proposal(create_orders_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::CreateOrdersResponse
Create the given list of proposals
1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 1318 def insert_proposal(create_orders_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'proposals/insert', ) command.request_representation = Google::Apis::AdexchangebuyerV1_4::CreateOrdersRequest::Representation command.request_object = create_orders_request_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::CreateOrdersResponse::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::CreateOrdersResponse 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_4::AccountsList
Retrieves the authenticated user's list of accounts.
114 115 116 117 118 119 120 121 122 |
# File 'generated/google/apis/adexchangebuyer_v1_4/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_4::AccountsList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::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_4::BillingInfoList
Retrieves a list of billing information for all accounts of the authenticated user.
264 265 266 267 268 269 270 271 272 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 264 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_4::BillingInfoList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::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_creative_deals(account_id, buyer_creative_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::CreativeDealIds
Lists the external deal ids associated with the creative.
592 593 594 595 596 597 598 599 600 601 602 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 592 def list_creative_deals(account_id, buyer_creative_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'creatives/{accountId}/{buyerCreativeId}/listDeals', ) command.response_representation = Google::Apis::AdexchangebuyerV1_4::CreativeDealIds::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::CreativeDealIds 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 |
#list_creatives(account_id: nil, buyer_creative_id: nil, deals_status_filter: nil, max_results: nil, open_auction_status_filter: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::CreativesList
Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.
550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 550 def list_creatives(account_id: nil, buyer_creative_id: nil, deals_status_filter: nil, max_results: nil, open_auction_status_filter: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'creatives', ) command.response_representation = Google::Apis::AdexchangebuyerV1_4::CreativesList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::CreativesList command.query['accountId'] = account_id unless account_id.nil? command.query['buyerCreativeId'] = buyer_creative_id unless buyer_creative_id.nil? command.query['dealsStatusFilter'] = deals_status_filter unless deals_status_filter.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['openAuctionStatusFilter'] = open_auction_status_filter unless open_auction_status_filter.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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_marketplacedeals(proposal_id, pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::GetOrderDealsResponse
List all the deals for a given proposal
746 747 748 749 750 751 752 753 754 755 756 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 746 def list_marketplacedeals(proposal_id, pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'proposals/{proposalId}/deals', ) command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetOrderDealsResponse::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::GetOrderDealsResponse command.params['proposalId'] = proposal_id unless proposal_id.nil? command.query['pqlQuery'] = pql_query unless pql_query.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_marketplacenotes(proposal_id, pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::GetOrderNotesResponse
Get all the notes associated with a proposal
863 864 865 866 867 868 869 870 871 872 873 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 863 def list_marketplacenotes(proposal_id, pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'proposals/{proposalId}/notes', ) command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetOrderNotesResponse::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::GetOrderNotesResponse command.params['proposalId'] = proposal_id unless proposal_id.nil? command.query['pqlQuery'] = pql_query unless pql_query.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_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_4::PerformanceReportList
Retrieves the authenticated user's list of performance metrics.
946 947 948 949 950 951 952 953 954 955 956 957 958 959 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 946 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_4::PerformanceReportList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::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_4::PretargetingConfigList
Retrieves a list of the authenticated user's pretargeting configurations.
1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 1097 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_4::PretargetingConfigList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::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 |
#list_pub_profiles(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::GetPublisherProfilesByAccountIdResponse
Gets the requested publisher profile(s) by publisher accountId.
1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 1518 def list_pub_profiles(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'publisher/{accountId}/profiles', ) command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetPublisherProfilesByAccountIdResponse::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::GetPublisherProfilesByAccountIdResponse 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, confirm_unsafe_account_change: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::Account
Updates an existing account. This method supports patch semantics.
151 152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 151 def patch_account(id, account_object = nil, confirm_unsafe_account_change: 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_4::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::Account command.params['id'] = id unless id.nil? command.query['confirmUnsafeAccountChange'] = confirm_unsafe_account_change unless confirm_unsafe_account_change.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_4::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.
342 343 344 345 346 347 348 349 350 351 352 353 354 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 342 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_4::Budget::Representation command.request_object = budget_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::Budget::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::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_4::PretargetingConfig
Updates an existing pretargeting config. This method supports patch semantics.
1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 1135 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_4::PretargetingConfig::Representation command.request_object = pretargeting_config_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::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 |
#patch_proposal(proposal_id, revision_number, update_action, proposal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::Proposal
Update the given proposal. This method supports patch semantics.
1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 1363 def patch_proposal(proposal_id, revision_number, update_action, proposal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'proposals/{proposalId}/{revisionNumber}/{updateAction}', ) command.request_representation = Google::Apis::AdexchangebuyerV1_4::Proposal::Representation command.request_object = proposal_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::Proposal::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::Proposal command.params['proposalId'] = proposal_id unless proposal_id.nil? command.params['revisionNumber'] = revision_number unless revision_number.nil? command.params['updateAction'] = update_action unless update_action.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 |
#proposal_setup_complete(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Update the given proposal to indicate that setup has been completed.
1437 1438 1439 1440 1441 1442 1443 1444 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 1437 def proposal_setup_complete(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'proposals/{proposalId}/setupcomplete', ) command.params['proposalId'] = proposal_id unless proposal_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 |
#remove_creative_deal(account_id, buyer_creative_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Remove a deal id associated with the creative.
632 633 634 635 636 637 638 639 640 641 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 632 def remove_creative_deal(account_id, buyer_creative_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'creatives/{accountId}/{buyerCreativeId}/removeDeal/{dealId}', ) command.params['accountId'] = account_id unless account_id.nil? command.params['buyerCreativeId'] = buyer_creative_id unless buyer_creative_id.nil? command.params['dealId'] = deal_id unless deal_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 |
#search_products(pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::GetOffersResponse
Gets the requested product.
1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 1249 def search_products(pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'products/search', ) command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetOffersResponse::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::GetOffersResponse command.query['pqlQuery'] = pql_query unless pql_query.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 |
#search_proposals(pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::GetOrdersResponse
Search for proposals using pql query
1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 1402 def search_proposals(pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'proposals/search', ) command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetOrdersResponse::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::GetOrdersResponse command.query['pqlQuery'] = pql_query unless pql_query.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, confirm_unsafe_account_change: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::Account
Updates an existing account.
192 193 194 195 196 197 198 199 200 201 202 203 204 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 192 def update_account(id, account_object = nil, confirm_unsafe_account_change: 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_4::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::Account command.params['id'] = id unless id.nil? command.query['confirmUnsafeAccountChange'] = confirm_unsafe_account_change unless confirm_unsafe_account_change.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_4::Budget
Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request.
384 385 386 387 388 389 390 391 392 393 394 395 396 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 384 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_4::Budget::Representation command.request_object = budget_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::Budget::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::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_marketplace_private_auction_proposal(private_auction_id, update_private_auction_proposal_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Update a given private auction proposal
900 901 902 903 904 905 906 907 908 909 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 900 def update_marketplace_private_auction_proposal(private_auction_id, update_private_auction_proposal_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'privateauction/{privateAuctionId}/updateproposal', ) command.request_representation = Google::Apis::AdexchangebuyerV1_4::UpdatePrivateAuctionProposalRequest::Representation command.request_object = update_private_auction_proposal_request_object command.params['privateAuctionId'] = private_auction_id unless private_auction_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_marketplacedeal(proposal_id, edit_all_order_deals_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsResponse
Replaces all the deals in the proposal with the passed in deals
783 784 785 786 787 788 789 790 791 792 793 794 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 783 def update_marketplacedeal(proposal_id, edit_all_order_deals_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'proposals/{proposalId}/deals/update', ) command.request_representation = Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsRequest::Representation command.request_object = edit_all_order_deals_request_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsResponse::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsResponse command.params['proposalId'] = proposal_id unless proposal_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_4::PretargetingConfig
Updates an existing pretargeting config.
1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 1176 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_4::PretargetingConfig::Representation command.request_object = pretargeting_config_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::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_proposal(proposal_id, revision_number, update_action, proposal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AdexchangebuyerV1_4::Proposal
Update the given proposal
1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 |
# File 'generated/google/apis/adexchangebuyer_v1_4/service.rb', line 1479 def update_proposal(proposal_id, revision_number, update_action, proposal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'proposals/{proposalId}/{revisionNumber}/{updateAction}', ) command.request_representation = Google::Apis::AdexchangebuyerV1_4::Proposal::Representation command.request_object = proposal_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::Proposal::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::Proposal command.params['proposalId'] = proposal_id unless proposal_id.nil? command.params['revisionNumber'] = revision_number unless revision_number.nil? command.params['updateAction'] = update_action unless update_action.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 |