google-api-client 0.10.3 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +12 -18
- data/CHANGELOG.md +22 -2
- data/Gemfile +5 -7
- data/MIGRATING.md +33 -0
- data/README.md +10 -2
- data/Rakefile +1 -0
- data/bin/generate-api +7 -1
- data/dl.rb +0 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
- data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
- data/generated/google/apis/admin_directory_v1/service.rb +1 -0
- data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
- data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
- data/generated/google/apis/admin_reports_v1/service.rb +1 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
- data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
- data/generated/google/apis/adsense_v1_4/service.rb +1 -0
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
- data/generated/google/apis/analytics_v3/classes.rb +10 -10
- data/generated/google/apis/analytics_v3/representations.rb +10 -10
- data/generated/google/apis/analytics_v3/service.rb +1 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
- data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
- data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
- data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
- data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
- data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
- data/generated/google/apis/appengine_v1/classes.rb +2 -2
- data/generated/google/apis/appengine_v1/representations.rb +2 -2
- data/generated/google/apis/appengine_v1/service.rb +1 -0
- data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -0
- data/generated/google/apis/appsmarket_v2.rb +35 -0
- data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
- data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
- data/generated/google/apis/appsmarket_v2/service.rb +187 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +1 -0
- data/generated/google/apis/bigquery_v2/classes.rb +39 -39
- data/generated/google/apis/bigquery_v2/representations.rb +38 -38
- data/generated/google/apis/bigquery_v2/service.rb +3 -2
- data/generated/google/apis/blogger_v3/classes.rb +2 -2
- data/generated/google/apis/blogger_v3/representations.rb +2 -2
- data/generated/google/apis/blogger_v3/service.rb +1 -0
- data/generated/google/apis/books_v1/classes.rb +5 -5
- data/generated/google/apis/books_v1/representations.rb +4 -4
- data/generated/google/apis/books_v1/service.rb +1 -0
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/calendar_v3/representations.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +1 -0
- data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
- data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
- data/generated/google/apis/civicinfo_v2/service.rb +2 -1
- data/generated/google/apis/classroom_v1/service.rb +1 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
- data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
- data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
- data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
- data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
- data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
- data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
- data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
- data/generated/google/apis/cloudkms_v1/service.rb +168 -167
- data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
- data/generated/google/apis/cloudtrace_v1.rb +3 -3
- data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
- data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
- data/generated/google/apis/compute_beta/classes.rb +52 -52
- data/generated/google/apis/compute_beta/representations.rb +52 -52
- data/generated/google/apis/compute_beta/service.rb +2 -1
- data/generated/google/apis/compute_v1/classes.rb +48 -48
- data/generated/google/apis/compute_v1/representations.rb +48 -48
- data/generated/google/apis/compute_v1/service.rb +2 -1
- data/generated/google/apis/container_v1/service.rb +1 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +38 -660
- data/generated/google/apis/content_v2/representations.rb +37 -303
- data/generated/google/apis/content_v2/service.rb +63 -279
- data/generated/google/apis/customsearch_v1/classes.rb +2 -2
- data/generated/google/apis/customsearch_v1/representations.rb +2 -2
- data/generated/google/apis/customsearch_v1/service.rb +1 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
- data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
- data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
- data/generated/google/apis/dataproc_v1/classes.rb +395 -395
- data/generated/google/apis/dataproc_v1/representations.rb +91 -91
- data/generated/google/apis/dataproc_v1/service.rb +356 -355
- data/generated/google/apis/datastore_v1/classes.rb +506 -506
- data/generated/google/apis/datastore_v1/representations.rb +147 -147
- data/generated/google/apis/datastore_v1/service.rb +46 -45
- data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
- data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
- data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
- data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
- data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
- data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
- data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
- data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
- data/generated/google/apis/discovery_v1/service.rb +1 -0
- data/generated/google/apis/dns_v1/classes.rb +2 -2
- data/generated/google/apis/dns_v1/representations.rb +2 -2
- data/generated/google/apis/dns_v1/service.rb +1 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
- data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
- data/generated/google/apis/dns_v2beta1/service.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
- data/generated/google/apis/drive_v2/classes.rb +17 -17
- data/generated/google/apis/drive_v2/representations.rb +17 -17
- data/generated/google/apis/drive_v2/service.rb +5 -4
- data/generated/google/apis/drive_v3/classes.rb +13 -13
- data/generated/google/apis/drive_v3/representations.rb +12 -12
- data/generated/google/apis/drive_v3/service.rb +1 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
- data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
- data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
- data/generated/google/apis/firebaserules_v1/service.rb +1 -0
- data/generated/google/apis/fitness_v1/classes.rb +18 -18
- data/generated/google/apis/fitness_v1/representations.rb +18 -18
- data/generated/google/apis/fitness_v1/service.rb +6 -5
- data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
- data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
- data/generated/google/apis/fusiontables_v2/service.rb +1 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +6 -6
- data/generated/google/apis/games_management_v1management/representations.rb +6 -6
- data/generated/google/apis/games_management_v1management/service.rb +1 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +47 -47
- data/generated/google/apis/games_v1/representations.rb +47 -47
- data/generated/google/apis/games_v1/service.rb +58 -57
- data/generated/google/apis/genomics_v1.rb +6 -6
- data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
- data/generated/google/apis/genomics_v1/representations.rb +487 -487
- data/generated/google/apis/genomics_v1/service.rb +1188 -1187
- data/generated/google/apis/gmail_v1/classes.rb +11 -11
- data/generated/google/apis/gmail_v1/representations.rb +11 -11
- data/generated/google/apis/gmail_v1/service.rb +2 -1
- data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
- data/generated/google/apis/groupssettings_v1/service.rb +1 -0
- data/generated/google/apis/iam_v1/classes.rb +437 -437
- data/generated/google/apis/iam_v1/representations.rb +95 -95
- data/generated/google/apis/iam_v1/service.rb +87 -86
- data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
- data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
- data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
- data/generated/google/apis/kgsearch_v1/service.rb +9 -8
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +245 -245
- data/generated/google/apis/language_v1/representations.rb +65 -65
- data/generated/google/apis/language_v1/service.rb +1 -0
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +277 -277
- data/generated/google/apis/language_v1beta1/representations.rb +83 -83
- data/generated/google/apis/language_v1beta1/service.rb +31 -30
- data/generated/google/apis/licensing_v1/service.rb +1 -0
- data/generated/google/apis/logging_v2/classes.rb +408 -408
- data/generated/google/apis/logging_v2/representations.rb +93 -93
- data/generated/google/apis/logging_v2/service.rb +408 -407
- data/generated/google/apis/logging_v2beta1.rb +3 -3
- data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
- data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
- data/generated/google/apis/logging_v2beta1/service.rb +89 -88
- data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
- data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
- data/generated/google/apis/manufacturers_v1/service.rb +1 -0
- data/generated/google/apis/mirror_v1/service.rb +1 -0
- data/generated/google/apis/ml_v1/classes.rb +1185 -1185
- data/generated/google/apis/ml_v1/representations.rb +171 -171
- data/generated/google/apis/ml_v1/service.rb +282 -281
- data/generated/google/apis/monitoring_v3.rb +3 -3
- data/generated/google/apis/monitoring_v3/classes.rb +334 -334
- data/generated/google/apis/monitoring_v3/representations.rb +86 -86
- data/generated/google/apis/monitoring_v3/service.rb +344 -343
- data/generated/google/apis/mybusiness_v3/service.rb +1 -0
- data/generated/google/apis/oauth2_v2/service.rb +1 -0
- data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
- data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
- data/generated/google/apis/partners_v2/classes.rb +1466 -1466
- data/generated/google/apis/partners_v2/representations.rb +371 -371
- data/generated/google/apis/partners_v2/service.rb +530 -529
- data/generated/google/apis/people_v1.rb +4 -4
- data/generated/google/apis/people_v1/classes.rb +1009 -1009
- data/generated/google/apis/people_v1/representations.rb +249 -249
- data/generated/google/apis/people_v1/service.rb +13 -12
- data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
- data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
- data/generated/google/apis/plus_domains_v1/service.rb +1 -0
- data/generated/google/apis/plus_v1/service.rb +1 -0
- data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
- data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
- data/generated/google/apis/prediction_v1_6/service.rb +1 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
- data/generated/google/apis/pubsub_v1/classes.rb +99 -99
- data/generated/google/apis/pubsub_v1/representations.rb +25 -25
- data/generated/google/apis/pubsub_v1/service.rb +236 -235
- data/generated/google/apis/qpx_express_v1/service.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
- data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
- data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
- data/generated/google/apis/reseller_v1/classes.rb +5 -5
- data/generated/google/apis/reseller_v1/representations.rb +5 -5
- data/generated/google/apis/reseller_v1/service.rb +1 -0
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
- data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
- data/generated/google/apis/runtimeconfig_v1.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
- data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
- data/generated/google/apis/script_v1.rb +18 -18
- data/generated/google/apis/script_v1/classes.rb +84 -84
- data/generated/google/apis/script_v1/representations.rb +18 -18
- data/generated/google/apis/script_v1/service.rb +11 -10
- data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/searchconsole_v1/service.rb +11 -10
- data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
- data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
- data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
- data/generated/google/apis/servicemanagement_v1.rb +3 -3
- data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
- data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
- data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
- data/generated/google/apis/serviceuser_v1.rb +3 -3
- data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
- data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
- data/generated/google/apis/serviceuser_v1/service.rb +47 -46
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
- data/generated/google/apis/sheets_v4/representations.rb +859 -859
- data/generated/google/apis/sheets_v4/service.rb +180 -179
- data/generated/google/apis/site_verification_v1/service.rb +1 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2856 -2856
- data/generated/google/apis/slides_v1/representations.rb +683 -683
- data/generated/google/apis/slides_v1/service.rb +27 -26
- data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
- data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
- data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
- data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
- data/generated/google/apis/spanner_v1/representations.rb +325 -325
- data/generated/google/apis/spanner_v1/service.rb +374 -373
- data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
- data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
- data/generated/google/apis/speech_v1beta1/service.rb +27 -26
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
- data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +11 -11
- data/generated/google/apis/storage_v1/representations.rb +11 -11
- data/generated/google/apis/storage_v1/service.rb +65 -64
- data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
- data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
- data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
- data/generated/google/apis/surveys_v2/classes.rb +4 -4
- data/generated/google/apis/surveys_v2/representations.rb +4 -4
- data/generated/google/apis/surveys_v2/service.rb +1 -0
- data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
- data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
- data/generated/google/apis/tagmanager_v1/service.rb +1 -0
- data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
- data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
- data/generated/google/apis/tagmanager_v2/service.rb +1 -0
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
- data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
- data/generated/google/apis/tasks_v1/service.rb +3 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
- data/generated/google/apis/tracing_v1/classes.rb +421 -421
- data/generated/google/apis/tracing_v1/representations.rb +86 -86
- data/generated/google/apis/tracing_v1/service.rb +60 -59
- data/generated/google/apis/translate_v2/service.rb +1 -0
- data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
- data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
- data/generated/google/apis/urlshortener_v1/service.rb +1 -0
- data/generated/google/apis/vision_v1/classes.rb +1290 -1290
- data/generated/google/apis/vision_v1/representations.rb +184 -184
- data/generated/google/apis/vision_v1/service.rb +11 -10
- data/generated/google/apis/webfonts_v1/service.rb +1 -0
- data/generated/google/apis/webmasters_v3/classes.rb +5 -5
- data/generated/google/apis/webmasters_v3/representations.rb +5 -5
- data/generated/google/apis/webmasters_v3/service.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
- data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
- data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
- data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
- data/generated/google/apis/youtube_v3/classes.rb +31 -31
- data/generated/google/apis/youtube_v3/representations.rb +31 -31
- data/generated/google/apis/youtube_v3/service.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
- data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
- data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
- data/google-api-client.gemspec +4 -6
- data/lib/google/apis/core/api_command.rb +8 -3
- data/lib/google/apis/core/base_service.rb +47 -18
- data/lib/google/apis/core/batch.rb +13 -18
- data/lib/google/apis/core/composite_io.rb +97 -0
- data/lib/google/apis/core/download.rb +24 -20
- data/lib/google/apis/core/http_command.rb +49 -38
- data/lib/google/apis/core/json_representation.rb +5 -1
- data/lib/google/apis/core/multipart.rb +43 -95
- data/lib/google/apis/core/upload.rb +59 -84
- data/lib/google/apis/generator/model.rb +2 -0
- data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
- data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
- data/lib/google/apis/options.rb +24 -12
- data/lib/google/apis/version.rb +1 -1
- data/samples/web/Gemfile +0 -1
- metadata +39 -37
- data/lib/google/apis/core/http_client_adapter.rb +0 -82
- data/third_party/hurley_patches.rb +0 -103
@@ -33,25 +33,26 @@ module Google
|
|
33
33
|
#
|
34
34
|
# @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
|
35
35
|
class AdExchangeBuyerIIService < Google::Apis::Core::BaseService
|
36
|
-
# @return [String]
|
37
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
38
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
39
|
-
attr_accessor :quota_user
|
40
|
-
|
41
36
|
# @return [String]
|
42
37
|
# API key. Your API key identifies your project and provides you with API access,
|
43
38
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
44
39
|
attr_accessor :key
|
45
40
|
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
46
|
def initialize
|
47
47
|
super('https://adexchangebuyer.googleapis.com/', '')
|
48
|
+
@batch_path = 'batch'
|
48
49
|
end
|
49
50
|
|
50
|
-
# Gets a
|
51
|
-
# @param [
|
52
|
-
#
|
53
|
-
# @param [
|
54
|
-
#
|
51
|
+
# Gets a client buyer with a given client account ID.
|
52
|
+
# @param [Fixnum] account_id
|
53
|
+
# Numerical account ID of the client's sponsor buyer. (required)
|
54
|
+
# @param [Fixnum] client_account_id
|
55
|
+
# Numerical account ID of the client buyer to retrieve. (required)
|
55
56
|
# @param [String] quota_user
|
56
57
|
# Available to use for quota purposes for server-side applications. Can be any
|
57
58
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -61,36 +62,37 @@ module Google
|
|
61
62
|
# Request-specific options
|
62
63
|
#
|
63
64
|
# @yield [result, err] Result & error if block supplied
|
64
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
65
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
|
65
66
|
# @yieldparam err [StandardError] error object if request failed
|
66
67
|
#
|
67
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
68
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
|
68
69
|
#
|
69
70
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
71
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
72
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
-
def
|
73
|
-
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/
|
74
|
-
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::
|
75
|
-
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::
|
73
|
+
def get_account_client(account_id, client_account_id, quota_user: nil, fields: nil, options: nil, &block)
|
74
|
+
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
|
75
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
76
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
|
76
77
|
command.params['accountId'] = account_id unless account_id.nil?
|
77
|
-
command.params['
|
78
|
+
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
78
79
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
79
80
|
command.query['fields'] = fields unless fields.nil?
|
80
81
|
execute_or_queue_command(command, &block)
|
81
82
|
end
|
82
83
|
|
83
|
-
#
|
84
|
-
#
|
85
|
-
#
|
86
|
-
#
|
87
|
-
#
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
#
|
93
|
-
#
|
84
|
+
# Lists all the clients for the current sponsor buyer.
|
85
|
+
# @param [Fixnum] account_id
|
86
|
+
# Unique numerical account ID of the sponsor buyer to list the clients for.
|
87
|
+
# @param [String] page_token
|
88
|
+
# A token identifying a page of results the server should return.
|
89
|
+
# Typically, this is the value of
|
90
|
+
# ListClientsResponse.nextPageToken
|
91
|
+
# returned from the previous call to the
|
92
|
+
# accounts.clients.list method.
|
93
|
+
# @param [Fixnum] page_size
|
94
|
+
# Requested page size. The server may return fewer clients than requested.
|
95
|
+
# If unspecified, the server will pick an appropriate default.
|
94
96
|
# @param [String] quota_user
|
95
97
|
# Available to use for quota purposes for server-side applications. Can be any
|
96
98
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -100,39 +102,33 @@ module Google
|
|
100
102
|
# Request-specific options
|
101
103
|
#
|
102
104
|
# @yield [result, err] Result & error if block supplied
|
103
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
105
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse] parsed result object
|
104
106
|
# @yieldparam err [StandardError] error object if request failed
|
105
107
|
#
|
106
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
108
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse]
|
107
109
|
#
|
108
110
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
109
111
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
110
112
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
111
|
-
def
|
112
|
-
command = make_simple_command(:
|
113
|
-
command.
|
114
|
-
command.
|
115
|
-
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
|
116
|
-
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
|
113
|
+
def list_account_clients(account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
114
|
+
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options)
|
115
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation
|
116
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse
|
117
117
|
command.params['accountId'] = account_id unless account_id.nil?
|
118
|
-
command.
|
118
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
119
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
119
120
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
120
121
|
command.query['fields'] = fields unless fields.nil?
|
121
122
|
execute_or_queue_command(command, &block)
|
122
123
|
end
|
123
124
|
|
124
|
-
# Updates
|
125
|
-
# @param [
|
126
|
-
#
|
127
|
-
#
|
128
|
-
#
|
129
|
-
#
|
130
|
-
# @param [
|
131
|
-
# The buyer-defined creative ID of this creative.
|
132
|
-
# Can be used to filter the response of the
|
133
|
-
# creatives.list
|
134
|
-
# method.
|
135
|
-
# @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
|
125
|
+
# Updates an existing client buyer.
|
126
|
+
# @param [Fixnum] account_id
|
127
|
+
# Unique numerical account ID for the buyer of which the client buyer
|
128
|
+
# is a customer; the sponsor buyer to update a client for. (required)
|
129
|
+
# @param [Fixnum] client_account_id
|
130
|
+
# Unique numerical account ID of the client to update. (required)
|
131
|
+
# @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
|
136
132
|
# @param [String] quota_user
|
137
133
|
# Available to use for quota purposes for server-side applications. Can be any
|
138
134
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -142,57 +138,32 @@ module Google
|
|
142
138
|
# Request-specific options
|
143
139
|
#
|
144
140
|
# @yield [result, err] Result & error if block supplied
|
145
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
141
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
|
146
142
|
# @yieldparam err [StandardError] error object if request failed
|
147
143
|
#
|
148
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
144
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
|
149
145
|
#
|
150
146
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
151
147
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
152
148
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
153
|
-
def
|
154
|
-
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/
|
155
|
-
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::
|
156
|
-
command.request_object =
|
157
|
-
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::
|
158
|
-
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::
|
149
|
+
def update_account_client(account_id, client_account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
150
|
+
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
|
151
|
+
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
152
|
+
command.request_object = client_object
|
153
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
154
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
|
159
155
|
command.params['accountId'] = account_id unless account_id.nil?
|
160
|
-
command.params['
|
156
|
+
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
161
157
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
162
158
|
command.query['fields'] = fields unless fields.nil?
|
163
159
|
execute_or_queue_command(command, &block)
|
164
160
|
end
|
165
161
|
|
166
|
-
#
|
167
|
-
# @param [
|
168
|
-
#
|
169
|
-
#
|
170
|
-
# @param [
|
171
|
-
# A token identifying a page of results the server should return.
|
172
|
-
# Typically, this is the value of
|
173
|
-
# ListCreativesResponse.next_page_token
|
174
|
-
# returned from the previous call to 'ListCreatives' method.
|
175
|
-
# @param [Fixnum] page_size
|
176
|
-
# Requested page size. The server may return fewer creatives than requested
|
177
|
-
# (due to timeout constraint) even if more are available via another call.
|
178
|
-
# If unspecified, server will pick an appropriate default.
|
179
|
-
# Acceptable values are 1 to 1000, inclusive.
|
180
|
-
# @param [String] query
|
181
|
-
# An optional query string to filter creatives. If no filter is specified,
|
182
|
-
# all active creatives will be returned.
|
183
|
-
# Supported queries are:
|
184
|
-
# <ul>
|
185
|
-
# <li>accountId=<i>account_id_string</i>
|
186
|
-
# <li>creativeId=<i>creative_id_string</i>
|
187
|
-
# <li>dealsStatus: `approved, conditionally_approved, disapproved,
|
188
|
-
# not_checked`
|
189
|
-
# <li>openAuctionStatus: `approved, conditionally_approved, disapproved,
|
190
|
-
# not_checked`
|
191
|
-
# <li>attribute: `a numeric attribute from the list of attributes`
|
192
|
-
# <li>disapprovalReason: `a reason from DisapprovalReason
|
193
|
-
# </ul>
|
194
|
-
# Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:
|
195
|
-
# unacceptable_content) OR attribute:47'
|
162
|
+
# Creates a new client buyer.
|
163
|
+
# @param [Fixnum] account_id
|
164
|
+
# Unique numerical account ID for the buyer of which the client buyer
|
165
|
+
# is a customer; the sponsor buyer to create a client for. (required)
|
166
|
+
# @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
|
196
167
|
# @param [String] quota_user
|
197
168
|
# Available to use for quota purposes for server-side applications. Can be any
|
198
169
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -202,37 +173,34 @@ module Google
|
|
202
173
|
# Request-specific options
|
203
174
|
#
|
204
175
|
# @yield [result, err] Result & error if block supplied
|
205
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
176
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
|
206
177
|
# @yieldparam err [StandardError] error object if request failed
|
207
178
|
#
|
208
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
179
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
|
209
180
|
#
|
210
181
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
211
182
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
212
183
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
213
|
-
def
|
214
|
-
command = make_simple_command(:
|
215
|
-
command.
|
216
|
-
command.
|
184
|
+
def create_account_client(account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
185
|
+
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients', options)
|
186
|
+
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
187
|
+
command.request_object = client_object
|
188
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
189
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
|
217
190
|
command.params['accountId'] = account_id unless account_id.nil?
|
218
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
219
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
220
|
-
command.query['query'] = query unless query.nil?
|
221
191
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
222
192
|
command.query['fields'] = fields unless fields.nil?
|
223
193
|
execute_or_queue_command(command, &block)
|
224
194
|
end
|
225
195
|
|
226
|
-
#
|
227
|
-
# @param [
|
228
|
-
#
|
229
|
-
#
|
230
|
-
#
|
231
|
-
#
|
232
|
-
# @param [
|
233
|
-
#
|
234
|
-
# Indicates if multiple creatives can share an ID or not. Default is
|
235
|
-
# NO_DUPLICATES (one ID per creative).
|
196
|
+
# Retrieves an existing client user invitation.
|
197
|
+
# @param [Fixnum] account_id
|
198
|
+
# Numerical account ID of the client's sponsor buyer. (required)
|
199
|
+
# @param [Fixnum] client_account_id
|
200
|
+
# Numerical account ID of the client buyer that the user invitation
|
201
|
+
# to be retrieved is associated with. (required)
|
202
|
+
# @param [Fixnum] invitation_id
|
203
|
+
# Numerical identifier of the user invitation to retrieve. (required)
|
236
204
|
# @param [String] quota_user
|
237
205
|
# Available to use for quota purposes for server-side applications. Can be any
|
238
206
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -242,35 +210,47 @@ module Google
|
|
242
210
|
# Request-specific options
|
243
211
|
#
|
244
212
|
# @yield [result, err] Result & error if block supplied
|
245
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
213
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
|
246
214
|
# @yieldparam err [StandardError] error object if request failed
|
247
215
|
#
|
248
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
216
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
|
249
217
|
#
|
250
218
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
251
219
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
252
220
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
253
|
-
def
|
254
|
-
command = make_simple_command(:
|
255
|
-
command.
|
256
|
-
command.
|
257
|
-
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
|
258
|
-
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
|
221
|
+
def get_account_client_invitation(account_id, client_account_id, invitation_id, quota_user: nil, fields: nil, options: nil, &block)
|
222
|
+
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options)
|
223
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
224
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
|
259
225
|
command.params['accountId'] = account_id unless account_id.nil?
|
260
|
-
command.
|
226
|
+
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
227
|
+
command.params['invitationId'] = invitation_id unless invitation_id.nil?
|
261
228
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
262
229
|
command.query['fields'] = fields unless fields.nil?
|
263
230
|
execute_or_queue_command(command, &block)
|
264
231
|
end
|
265
232
|
|
266
|
-
#
|
267
|
-
#
|
268
|
-
# @param [
|
269
|
-
#
|
270
|
-
# @param [String]
|
271
|
-
#
|
272
|
-
#
|
273
|
-
#
|
233
|
+
# Lists all the client users invitations for a client
|
234
|
+
# with a given account ID.
|
235
|
+
# @param [Fixnum] account_id
|
236
|
+
# Numerical account ID of the client's sponsor buyer. (required)
|
237
|
+
# @param [String] client_account_id
|
238
|
+
# Numerical account ID of the client buyer to list invitations for.
|
239
|
+
# (required)
|
240
|
+
# You must either specify a string representation of a
|
241
|
+
# numerical account identifier or the `-` character
|
242
|
+
# to list all the invitations for all the clients
|
243
|
+
# of a given sponsor buyer.
|
244
|
+
# @param [String] page_token
|
245
|
+
# A token identifying a page of results the server should return.
|
246
|
+
# Typically, this is the value of
|
247
|
+
# ListClientUserInvitationsResponse.nextPageToken
|
248
|
+
# returned from the previous call to the
|
249
|
+
# clients.invitations.list
|
250
|
+
# method.
|
251
|
+
# @param [Fixnum] page_size
|
252
|
+
# Requested page size. Server may return fewer clients than requested.
|
253
|
+
# If unspecified, server will pick an appropriate default.
|
274
254
|
# @param [String] quota_user
|
275
255
|
# Available to use for quota purposes for server-side applications. Can be any
|
276
256
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -280,33 +260,35 @@ module Google
|
|
280
260
|
# Request-specific options
|
281
261
|
#
|
282
262
|
# @yield [result, err] Result & error if block supplied
|
283
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
263
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] parsed result object
|
284
264
|
# @yieldparam err [StandardError] error object if request failed
|
285
265
|
#
|
286
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
266
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse]
|
287
267
|
#
|
288
268
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
289
269
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
290
270
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
291
|
-
def
|
292
|
-
command = make_simple_command(:
|
293
|
-
command.
|
294
|
-
command.
|
295
|
-
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
|
296
|
-
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
|
271
|
+
def list_account_client_invitations(account_id, client_account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
272
|
+
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
|
273
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
|
274
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
|
297
275
|
command.params['accountId'] = account_id unless account_id.nil?
|
298
|
-
command.params['
|
276
|
+
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
277
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
278
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
299
279
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
300
280
|
command.query['fields'] = fields unless fields.nil?
|
301
281
|
execute_or_queue_command(command, &block)
|
302
282
|
end
|
303
283
|
|
304
|
-
#
|
305
|
-
#
|
306
|
-
#
|
307
|
-
#
|
308
|
-
#
|
309
|
-
#
|
284
|
+
# Creates and sends out an email invitation to access
|
285
|
+
# an Ad Exchange client buyer account.
|
286
|
+
# @param [Fixnum] account_id
|
287
|
+
# Numerical account ID of the client's sponsor buyer. (required)
|
288
|
+
# @param [Fixnum] client_account_id
|
289
|
+
# Numerical account ID of the client buyer that the user
|
290
|
+
# should be associated with. (required)
|
291
|
+
# @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
|
310
292
|
# @param [String] quota_user
|
311
293
|
# Available to use for quota purposes for server-side applications. Can be any
|
312
294
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -316,33 +298,47 @@ module Google
|
|
316
298
|
# Request-specific options
|
317
299
|
#
|
318
300
|
# @yield [result, err] Result & error if block supplied
|
319
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
301
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
|
320
302
|
# @yieldparam err [StandardError] error object if request failed
|
321
303
|
#
|
322
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
304
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
|
323
305
|
#
|
324
306
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
325
307
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
326
308
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
327
|
-
def
|
328
|
-
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/
|
329
|
-
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::
|
330
|
-
command.request_object =
|
331
|
-
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::
|
332
|
-
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::
|
309
|
+
def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
310
|
+
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
|
311
|
+
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
312
|
+
command.request_object = client_user_invitation_object
|
313
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
314
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
|
333
315
|
command.params['accountId'] = account_id unless account_id.nil?
|
334
|
-
command.params['
|
316
|
+
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
335
317
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
336
318
|
command.query['fields'] = fields unless fields.nil?
|
337
319
|
execute_or_queue_command(command, &block)
|
338
320
|
end
|
339
321
|
|
340
|
-
#
|
341
|
-
#
|
342
|
-
#
|
343
|
-
#
|
344
|
-
#
|
345
|
-
# @param [
|
322
|
+
# Lists all the known client users for a specified
|
323
|
+
# sponsor buyer account ID.
|
324
|
+
# @param [Fixnum] account_id
|
325
|
+
# Numerical account ID of the sponsor buyer of the client to list users for.
|
326
|
+
# (required)
|
327
|
+
# @param [String] client_account_id
|
328
|
+
# The account ID of the client buyer to list users for. (required)
|
329
|
+
# You must specify either a string representation of a
|
330
|
+
# numerical account identifier or the `-` character
|
331
|
+
# to list all the client users for all the clients
|
332
|
+
# of a given sponsor buyer.
|
333
|
+
# @param [String] page_token
|
334
|
+
# A token identifying a page of results the server should return.
|
335
|
+
# Typically, this is the value of
|
336
|
+
# ListClientUsersResponse.nextPageToken
|
337
|
+
# returned from the previous call to the
|
338
|
+
# accounts.clients.users.list method.
|
339
|
+
# @param [Fixnum] page_size
|
340
|
+
# Requested page size. The server may return fewer clients than requested.
|
341
|
+
# If unspecified, the server will pick an appropriate default.
|
346
342
|
# @param [String] quota_user
|
347
343
|
# Available to use for quota purposes for server-side applications. Can be any
|
348
344
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -352,56 +348,35 @@ module Google
|
|
352
348
|
# Request-specific options
|
353
349
|
#
|
354
350
|
# @yield [result, err] Result & error if block supplied
|
355
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
351
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
|
356
352
|
# @yieldparam err [StandardError] error object if request failed
|
357
353
|
#
|
358
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
354
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
|
359
355
|
#
|
360
356
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
361
357
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
362
358
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
363
|
-
def
|
364
|
-
command = make_simple_command(:
|
365
|
-
command.
|
366
|
-
command.
|
367
|
-
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
|
368
|
-
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
|
359
|
+
def list_account_client_users(account_id, client_account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
360
|
+
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
|
361
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
|
362
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
|
369
363
|
command.params['accountId'] = account_id unless account_id.nil?
|
370
|
-
command.params['
|
364
|
+
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
365
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
366
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
371
367
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
372
368
|
command.query['fields'] = fields unless fields.nil?
|
373
369
|
execute_or_queue_command(command, &block)
|
374
370
|
end
|
375
371
|
|
376
|
-
#
|
377
|
-
# @param [
|
378
|
-
#
|
379
|
-
#
|
380
|
-
#
|
381
|
-
#
|
382
|
-
#
|
383
|
-
#
|
384
|
-
# A token identifying a page of results the server should return.
|
385
|
-
# Typically, this is the value of
|
386
|
-
# ListDealAssociationsResponse.next_page_token
|
387
|
-
# returned from the previous call to 'ListDealAssociations' method.
|
388
|
-
# @param [Fixnum] page_size
|
389
|
-
# Requested page size. Server may return fewer associations than requested.
|
390
|
-
# If unspecified, server will pick an appropriate default.
|
391
|
-
# @param [String] query
|
392
|
-
# An optional query string to filter deal associations. If no filter is
|
393
|
-
# specified, all associations will be returned.
|
394
|
-
# Supported queries are:
|
395
|
-
# <ul>
|
396
|
-
# <li>accountId=<i>account_id_string</i>
|
397
|
-
# <li>creativeId=<i>creative_id_string</i>
|
398
|
-
# <li>dealsId=<i>deals_id_string</i>
|
399
|
-
# <li>dealsStatus:`approved, conditionally_approved, disapproved,
|
400
|
-
# not_checked`
|
401
|
-
# <li>openAuctionStatus:`approved, conditionally_approved, disapproved,
|
402
|
-
# not_checked`
|
403
|
-
# </ul>
|
404
|
-
# Example: 'dealsId=12345 AND dealsStatus:disapproved'
|
372
|
+
# Retrieves an existing client user.
|
373
|
+
# @param [Fixnum] account_id
|
374
|
+
# Numerical account ID of the client's sponsor buyer. (required)
|
375
|
+
# @param [Fixnum] client_account_id
|
376
|
+
# Numerical account ID of the client buyer
|
377
|
+
# that the user to be retrieved is associated with. (required)
|
378
|
+
# @param [Fixnum] user_id
|
379
|
+
# Numerical identifier of the user to retrieve. (required)
|
405
380
|
# @param [String] quota_user
|
406
381
|
# Available to use for quota purposes for server-side applications. Can be any
|
407
382
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -411,33 +386,36 @@ module Google
|
|
411
386
|
# Request-specific options
|
412
387
|
#
|
413
388
|
# @yield [result, err] Result & error if block supplied
|
414
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
389
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
|
415
390
|
# @yieldparam err [StandardError] error object if request failed
|
416
391
|
#
|
417
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
392
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
|
418
393
|
#
|
419
394
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
420
395
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
421
396
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
422
|
-
def
|
423
|
-
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/
|
424
|
-
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::
|
425
|
-
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::
|
397
|
+
def get_account_client_user(account_id, client_account_id, user_id, quota_user: nil, fields: nil, options: nil, &block)
|
398
|
+
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
|
399
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
400
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
|
426
401
|
command.params['accountId'] = account_id unless account_id.nil?
|
427
|
-
command.params['
|
428
|
-
command.
|
429
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
430
|
-
command.query['query'] = query unless query.nil?
|
402
|
+
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
403
|
+
command.params['userId'] = user_id unless user_id.nil?
|
431
404
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
432
405
|
command.query['fields'] = fields unless fields.nil?
|
433
406
|
execute_or_queue_command(command, &block)
|
434
407
|
end
|
435
408
|
|
436
|
-
#
|
437
|
-
#
|
409
|
+
# Updates an existing client user.
|
410
|
+
# Only the user status can be changed on update.
|
411
|
+
# @param [Fixnum] account_id
|
438
412
|
# Numerical account ID of the client's sponsor buyer. (required)
|
439
|
-
# @param [
|
440
|
-
# Numerical account ID of the client buyer to
|
413
|
+
# @param [Fixnum] client_account_id
|
414
|
+
# Numerical account ID of the client buyer that the user to be retrieved
|
415
|
+
# is associated with. (required)
|
416
|
+
# @param [Fixnum] user_id
|
417
|
+
# Numerical identifier of the user to retrieve. (required)
|
418
|
+
# @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
|
441
419
|
# @param [String] quota_user
|
442
420
|
# Available to use for quota purposes for server-side applications. Can be any
|
443
421
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -447,37 +425,58 @@ module Google
|
|
447
425
|
# Request-specific options
|
448
426
|
#
|
449
427
|
# @yield [result, err] Result & error if block supplied
|
450
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
428
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
|
451
429
|
# @yieldparam err [StandardError] error object if request failed
|
452
430
|
#
|
453
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
431
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
|
454
432
|
#
|
455
433
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
456
434
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
457
435
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
458
|
-
def
|
459
|
-
command = make_simple_command(:
|
460
|
-
command.
|
461
|
-
command.
|
436
|
+
def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
437
|
+
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
|
438
|
+
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
439
|
+
command.request_object = client_user_object
|
440
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
441
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
|
462
442
|
command.params['accountId'] = account_id unless account_id.nil?
|
463
443
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
444
|
+
command.params['userId'] = user_id unless user_id.nil?
|
464
445
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
465
446
|
command.query['fields'] = fields unless fields.nil?
|
466
447
|
execute_or_queue_command(command, &block)
|
467
448
|
end
|
468
449
|
|
469
|
-
# Lists
|
450
|
+
# Lists creatives.
|
470
451
|
# @param [String] account_id
|
471
|
-
#
|
452
|
+
# The account to list the creatives from.
|
453
|
+
# Specify "-" to list all creatives the current user has access to.
|
472
454
|
# @param [String] page_token
|
473
455
|
# A token identifying a page of results the server should return.
|
474
456
|
# Typically, this is the value of
|
475
|
-
#
|
476
|
-
# returned from the previous call to
|
477
|
-
# accounts.clients.list method.
|
457
|
+
# ListCreativesResponse.next_page_token
|
458
|
+
# returned from the previous call to 'ListCreatives' method.
|
478
459
|
# @param [Fixnum] page_size
|
479
|
-
# Requested page size. The server may return fewer
|
480
|
-
#
|
460
|
+
# Requested page size. The server may return fewer creatives than requested
|
461
|
+
# (due to timeout constraint) even if more are available via another call.
|
462
|
+
# If unspecified, server will pick an appropriate default.
|
463
|
+
# Acceptable values are 1 to 1000, inclusive.
|
464
|
+
# @param [String] query
|
465
|
+
# An optional query string to filter creatives. If no filter is specified,
|
466
|
+
# all active creatives will be returned.
|
467
|
+
# Supported queries are:
|
468
|
+
# <ul>
|
469
|
+
# <li>accountId=<i>account_id_string</i>
|
470
|
+
# <li>creativeId=<i>creative_id_string</i>
|
471
|
+
# <li>dealsStatus: `approved, conditionally_approved, disapproved,
|
472
|
+
# not_checked`
|
473
|
+
# <li>openAuctionStatus: `approved, conditionally_approved, disapproved,
|
474
|
+
# not_checked`
|
475
|
+
# <li>attribute: `a numeric attribute from the list of attributes`
|
476
|
+
# <li>disapprovalReason: `a reason from DisapprovalReason
|
477
|
+
# </ul>
|
478
|
+
# Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:
|
479
|
+
# unacceptable_content) OR attribute:47'
|
481
480
|
# @param [String] quota_user
|
482
481
|
# Available to use for quota purposes for server-side applications. Can be any
|
483
482
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -487,33 +486,37 @@ module Google
|
|
487
486
|
# Request-specific options
|
488
487
|
#
|
489
488
|
# @yield [result, err] Result & error if block supplied
|
490
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
489
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object
|
491
490
|
# @yieldparam err [StandardError] error object if request failed
|
492
491
|
#
|
493
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
492
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse]
|
494
493
|
#
|
495
494
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
496
495
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
497
496
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
498
|
-
def
|
499
|
-
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/
|
500
|
-
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::
|
501
|
-
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::
|
497
|
+
def list_account_creatives(account_id, page_token: nil, page_size: nil, query: nil, quota_user: nil, fields: nil, options: nil, &block)
|
498
|
+
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives', options)
|
499
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse::Representation
|
500
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse
|
502
501
|
command.params['accountId'] = account_id unless account_id.nil?
|
503
502
|
command.query['pageToken'] = page_token unless page_token.nil?
|
504
503
|
command.query['pageSize'] = page_size unless page_size.nil?
|
504
|
+
command.query['query'] = query unless query.nil?
|
505
505
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
506
506
|
command.query['fields'] = fields unless fields.nil?
|
507
507
|
execute_or_queue_command(command, &block)
|
508
508
|
end
|
509
509
|
|
510
|
-
#
|
510
|
+
# Creates a creative.
|
511
511
|
# @param [String] account_id
|
512
|
-
#
|
513
|
-
#
|
514
|
-
#
|
515
|
-
#
|
516
|
-
# @param [Google::Apis::Adexchangebuyer2V2beta1::
|
512
|
+
# The account that this creative belongs to.
|
513
|
+
# Can be used to filter the response of the
|
514
|
+
# creatives.list
|
515
|
+
# method.
|
516
|
+
# @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
|
517
|
+
# @param [String] duplicate_id_mode
|
518
|
+
# Indicates if multiple creatives can share an ID or not. Default is
|
519
|
+
# NO_DUPLICATES (one ID per creative).
|
517
520
|
# @param [String] quota_user
|
518
521
|
# Available to use for quota purposes for server-side applications. Can be any
|
519
522
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -523,32 +526,35 @@ module Google
|
|
523
526
|
# Request-specific options
|
524
527
|
#
|
525
528
|
# @yield [result, err] Result & error if block supplied
|
526
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
529
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
|
527
530
|
# @yieldparam err [StandardError] error object if request failed
|
528
531
|
#
|
529
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
532
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
|
530
533
|
#
|
531
534
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
532
535
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
533
536
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
534
|
-
def
|
535
|
-
command = make_simple_command(:
|
536
|
-
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::
|
537
|
-
command.request_object =
|
538
|
-
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::
|
539
|
-
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::
|
537
|
+
def create_account_creative(account_id, creative_object = nil, duplicate_id_mode: nil, quota_user: nil, fields: nil, options: nil, &block)
|
538
|
+
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives', options)
|
539
|
+
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
|
540
|
+
command.request_object = creative_object
|
541
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
|
542
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
|
540
543
|
command.params['accountId'] = account_id unless account_id.nil?
|
541
|
-
command.
|
544
|
+
command.query['duplicateIdMode'] = duplicate_id_mode unless duplicate_id_mode.nil?
|
542
545
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
543
546
|
command.query['fields'] = fields unless fields.nil?
|
544
547
|
execute_or_queue_command(command, &block)
|
545
548
|
end
|
546
549
|
|
547
|
-
#
|
550
|
+
# Stops watching a creative. Will stop push notifications being sent to the
|
551
|
+
# topics when the creative changes status.
|
548
552
|
# @param [String] account_id
|
549
|
-
#
|
550
|
-
#
|
551
|
-
#
|
553
|
+
# The account of the creative to stop notifications for.
|
554
|
+
# @param [String] creative_id
|
555
|
+
# The creative ID of the creative to stop notifications for.
|
556
|
+
# Specify "-" to specify stopping account level notifications.
|
557
|
+
# @param [Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest] stop_watching_creative_request_object
|
552
558
|
# @param [String] quota_user
|
553
559
|
# Available to use for quota purposes for server-side applications. Can be any
|
554
560
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -558,46 +564,32 @@ module Google
|
|
558
564
|
# Request-specific options
|
559
565
|
#
|
560
566
|
# @yield [result, err] Result & error if block supplied
|
561
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
567
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
|
562
568
|
# @yieldparam err [StandardError] error object if request failed
|
563
569
|
#
|
564
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
570
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
|
565
571
|
#
|
566
572
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
567
573
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
568
574
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
569
|
-
def
|
570
|
-
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/
|
571
|
-
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::
|
572
|
-
command.request_object =
|
573
|
-
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::
|
574
|
-
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::
|
575
|
+
def stop_watching_creative(account_id, creative_id, stop_watching_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
576
|
+
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching', options)
|
577
|
+
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest::Representation
|
578
|
+
command.request_object = stop_watching_creative_request_object
|
579
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
|
580
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
|
575
581
|
command.params['accountId'] = account_id unless account_id.nil?
|
582
|
+
command.params['creativeId'] = creative_id unless creative_id.nil?
|
576
583
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
577
584
|
command.query['fields'] = fields unless fields.nil?
|
578
585
|
execute_or_queue_command(command, &block)
|
579
586
|
end
|
580
587
|
|
581
|
-
#
|
582
|
-
# sponsor buyer account ID.
|
588
|
+
# Gets a creative.
|
583
589
|
# @param [String] account_id
|
584
|
-
#
|
585
|
-
#
|
586
|
-
#
|
587
|
-
# The account ID of the client buyer to list users for. (required)
|
588
|
-
# You must specify either a string representation of a
|
589
|
-
# numerical account identifier or the `-` character
|
590
|
-
# to list all the client users for all the clients
|
591
|
-
# of a given sponsor buyer.
|
592
|
-
# @param [String] page_token
|
593
|
-
# A token identifying a page of results the server should return.
|
594
|
-
# Typically, this is the value of
|
595
|
-
# ListClientUsersResponse.nextPageToken
|
596
|
-
# returned from the previous call to the
|
597
|
-
# accounts.clients.users.list method.
|
598
|
-
# @param [Fixnum] page_size
|
599
|
-
# Requested page size. The server may return fewer clients than requested.
|
600
|
-
# If unspecified, the server will pick an appropriate default.
|
590
|
+
# The account the creative belongs to.
|
591
|
+
# @param [String] creative_id
|
592
|
+
# The ID of the creative to retrieve.
|
601
593
|
# @param [String] quota_user
|
602
594
|
# Available to use for quota purposes for server-side applications. Can be any
|
603
595
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -607,35 +599,36 @@ module Google
|
|
607
599
|
# Request-specific options
|
608
600
|
#
|
609
601
|
# @yield [result, err] Result & error if block supplied
|
610
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
602
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
|
611
603
|
# @yieldparam err [StandardError] error object if request failed
|
612
604
|
#
|
613
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
605
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
|
614
606
|
#
|
615
607
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
616
608
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
617
609
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
618
|
-
def
|
619
|
-
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/
|
620
|
-
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::
|
621
|
-
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::
|
610
|
+
def get_account_creative(account_id, creative_id, quota_user: nil, fields: nil, options: nil, &block)
|
611
|
+
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
|
612
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
|
613
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
|
622
614
|
command.params['accountId'] = account_id unless account_id.nil?
|
623
|
-
command.params['
|
624
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
625
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
615
|
+
command.params['creativeId'] = creative_id unless creative_id.nil?
|
626
616
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
627
617
|
command.query['fields'] = fields unless fields.nil?
|
628
618
|
execute_or_queue_command(command, &block)
|
629
619
|
end
|
630
620
|
|
631
|
-
#
|
621
|
+
# Watches a creative. Will result in push notifications being sent to the
|
622
|
+
# topic when the creative changes status.
|
632
623
|
# @param [String] account_id
|
633
|
-
#
|
634
|
-
# @param [String]
|
635
|
-
#
|
636
|
-
#
|
637
|
-
#
|
638
|
-
#
|
624
|
+
# The account of the creative to watch.
|
625
|
+
# @param [String] creative_id
|
626
|
+
# The creative ID to watch for status changes.
|
627
|
+
# Specify "-" to watch all creatives under the above account.
|
628
|
+
# If both creative-level and account-level notifications are
|
629
|
+
# sent, only a single notification will be sent to the
|
630
|
+
# creative-level notification topic.
|
631
|
+
# @param [Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest] watch_creative_request_object
|
639
632
|
# @param [String] quota_user
|
640
633
|
# Available to use for quota purposes for server-side applications. Can be any
|
641
634
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -645,36 +638,39 @@ module Google
|
|
645
638
|
# Request-specific options
|
646
639
|
#
|
647
640
|
# @yield [result, err] Result & error if block supplied
|
648
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
641
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
|
649
642
|
# @yieldparam err [StandardError] error object if request failed
|
650
643
|
#
|
651
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
644
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
|
652
645
|
#
|
653
646
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
654
647
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
655
648
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
656
|
-
def
|
657
|
-
command = make_simple_command(:
|
658
|
-
command.
|
659
|
-
command.
|
649
|
+
def watch_creative(account_id, creative_id, watch_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
650
|
+
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:watch', options)
|
651
|
+
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest::Representation
|
652
|
+
command.request_object = watch_creative_request_object
|
653
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
|
654
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
|
660
655
|
command.params['accountId'] = account_id unless account_id.nil?
|
661
|
-
command.params['
|
662
|
-
command.params['userId'] = user_id unless user_id.nil?
|
656
|
+
command.params['creativeId'] = creative_id unless creative_id.nil?
|
663
657
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
664
658
|
command.query['fields'] = fields unless fields.nil?
|
665
659
|
execute_or_queue_command(command, &block)
|
666
660
|
end
|
667
661
|
|
668
|
-
# Updates
|
669
|
-
# Only the user status can be changed on update.
|
662
|
+
# Updates a creative.
|
670
663
|
# @param [String] account_id
|
671
|
-
#
|
672
|
-
#
|
673
|
-
#
|
674
|
-
#
|
675
|
-
# @param [String]
|
676
|
-
#
|
677
|
-
#
|
664
|
+
# The account that this creative belongs to.
|
665
|
+
# Can be used to filter the response of the
|
666
|
+
# creatives.list
|
667
|
+
# method.
|
668
|
+
# @param [String] creative_id
|
669
|
+
# The buyer-defined creative ID of this creative.
|
670
|
+
# Can be used to filter the response of the
|
671
|
+
# creatives.list
|
672
|
+
# method.
|
673
|
+
# @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
|
678
674
|
# @param [String] quota_user
|
679
675
|
# Available to use for quota purposes for server-side applications. Can be any
|
680
676
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -684,36 +680,56 @@ module Google
|
|
684
680
|
# Request-specific options
|
685
681
|
#
|
686
682
|
# @yield [result, err] Result & error if block supplied
|
687
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
683
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
|
688
684
|
# @yieldparam err [StandardError] error object if request failed
|
689
685
|
#
|
690
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
686
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
|
691
687
|
#
|
692
688
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
693
689
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
694
690
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
695
|
-
def
|
696
|
-
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/
|
697
|
-
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::
|
698
|
-
command.request_object =
|
699
|
-
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::
|
700
|
-
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::
|
691
|
+
def update_account_creative(account_id, creative_id, creative_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
692
|
+
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
|
693
|
+
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
|
694
|
+
command.request_object = creative_object
|
695
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
|
696
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
|
701
697
|
command.params['accountId'] = account_id unless account_id.nil?
|
702
|
-
command.params['
|
703
|
-
command.params['userId'] = user_id unless user_id.nil?
|
698
|
+
command.params['creativeId'] = creative_id unless creative_id.nil?
|
704
699
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
705
700
|
command.query['fields'] = fields unless fields.nil?
|
706
701
|
execute_or_queue_command(command, &block)
|
707
702
|
end
|
708
703
|
|
709
|
-
#
|
710
|
-
# an Ad Exchange client buyer account.
|
704
|
+
# List all creative-deal associations.
|
711
705
|
# @param [String] account_id
|
712
|
-
#
|
713
|
-
#
|
714
|
-
#
|
715
|
-
#
|
716
|
-
#
|
706
|
+
# The account to list the associations from.
|
707
|
+
# Specify "-" to list all creatives the current user has access to.
|
708
|
+
# @param [String] creative_id
|
709
|
+
# The creative ID to list the associations from.
|
710
|
+
# Specify "-" to list all creatives under the above account.
|
711
|
+
# @param [Fixnum] page_size
|
712
|
+
# Requested page size. Server may return fewer associations than requested.
|
713
|
+
# If unspecified, server will pick an appropriate default.
|
714
|
+
# @param [String] query
|
715
|
+
# An optional query string to filter deal associations. If no filter is
|
716
|
+
# specified, all associations will be returned.
|
717
|
+
# Supported queries are:
|
718
|
+
# <ul>
|
719
|
+
# <li>accountId=<i>account_id_string</i>
|
720
|
+
# <li>creativeId=<i>creative_id_string</i>
|
721
|
+
# <li>dealsId=<i>deals_id_string</i>
|
722
|
+
# <li>dealsStatus:`approved, conditionally_approved, disapproved,
|
723
|
+
# not_checked`
|
724
|
+
# <li>openAuctionStatus:`approved, conditionally_approved, disapproved,
|
725
|
+
# not_checked`
|
726
|
+
# </ul>
|
727
|
+
# Example: 'dealsId=12345 AND dealsStatus:disapproved'
|
728
|
+
# @param [String] page_token
|
729
|
+
# A token identifying a page of results the server should return.
|
730
|
+
# Typically, this is the value of
|
731
|
+
# ListDealAssociationsResponse.next_page_token
|
732
|
+
# returned from the previous call to 'ListDealAssociations' method.
|
717
733
|
# @param [String] quota_user
|
718
734
|
# Available to use for quota purposes for server-side applications. Can be any
|
719
735
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -723,35 +739,34 @@ module Google
|
|
723
739
|
# Request-specific options
|
724
740
|
#
|
725
741
|
# @yield [result, err] Result & error if block supplied
|
726
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
742
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse] parsed result object
|
727
743
|
# @yieldparam err [StandardError] error object if request failed
|
728
744
|
#
|
729
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
745
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse]
|
730
746
|
#
|
731
747
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
732
748
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
733
749
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
734
|
-
def
|
735
|
-
command = make_simple_command(:
|
736
|
-
command.
|
737
|
-
command.
|
738
|
-
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
739
|
-
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
|
750
|
+
def list_account_creative_deal_associations(account_id, creative_id, page_size: nil, query: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
751
|
+
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations', options)
|
752
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse::Representation
|
753
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse
|
740
754
|
command.params['accountId'] = account_id unless account_id.nil?
|
741
|
-
command.params['
|
755
|
+
command.params['creativeId'] = creative_id unless creative_id.nil?
|
756
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
757
|
+
command.query['query'] = query unless query.nil?
|
758
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
742
759
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
743
760
|
command.query['fields'] = fields unless fields.nil?
|
744
761
|
execute_or_queue_command(command, &block)
|
745
762
|
end
|
746
763
|
|
747
|
-
#
|
764
|
+
# Associate an existing deal with a creative.
|
748
765
|
# @param [String] account_id
|
749
|
-
#
|
750
|
-
# @param [String]
|
751
|
-
#
|
752
|
-
#
|
753
|
-
# @param [String] invitation_id
|
754
|
-
# Numerical identifier of the user invitation to retrieve. (required)
|
766
|
+
# The account the creative belongs to.
|
767
|
+
# @param [String] creative_id
|
768
|
+
# The ID of the creative associated with the deal.
|
769
|
+
# @param [Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest] add_deal_association_request_object
|
755
770
|
# @param [String] quota_user
|
756
771
|
# Available to use for quota purposes for server-side applications. Can be any
|
757
772
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -761,47 +776,33 @@ module Google
|
|
761
776
|
# Request-specific options
|
762
777
|
#
|
763
778
|
# @yield [result, err] Result & error if block supplied
|
764
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
779
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
|
765
780
|
# @yieldparam err [StandardError] error object if request failed
|
766
781
|
#
|
767
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
782
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
|
768
783
|
#
|
769
784
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
770
785
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
771
786
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
772
|
-
def
|
773
|
-
command = make_simple_command(:
|
774
|
-
command.
|
775
|
-
command.
|
787
|
+
def add_deal_association(account_id, creative_id, add_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
788
|
+
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add', options)
|
789
|
+
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest::Representation
|
790
|
+
command.request_object = add_deal_association_request_object
|
791
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
|
792
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
|
776
793
|
command.params['accountId'] = account_id unless account_id.nil?
|
777
|
-
command.params['
|
778
|
-
command.params['invitationId'] = invitation_id unless invitation_id.nil?
|
794
|
+
command.params['creativeId'] = creative_id unless creative_id.nil?
|
779
795
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
780
796
|
command.query['fields'] = fields unless fields.nil?
|
781
797
|
execute_or_queue_command(command, &block)
|
782
798
|
end
|
783
799
|
|
784
|
-
#
|
785
|
-
# with a given account ID.
|
800
|
+
# Remove the association between a deal and a creative.
|
786
801
|
# @param [String] account_id
|
787
|
-
#
|
788
|
-
# @param [String]
|
789
|
-
#
|
790
|
-
#
|
791
|
-
# You must either specify a string representation of a
|
792
|
-
# numerical account identifier or the `-` character
|
793
|
-
# to list all the invitations for all the clients
|
794
|
-
# of a given sponsor buyer.
|
795
|
-
# @param [String] page_token
|
796
|
-
# A token identifying a page of results the server should return.
|
797
|
-
# Typically, this is the value of
|
798
|
-
# ListClientUserInvitationsResponse.nextPageToken
|
799
|
-
# returned from the previous call to the
|
800
|
-
# clients.invitations.list
|
801
|
-
# method.
|
802
|
-
# @param [Fixnum] page_size
|
803
|
-
# Requested page size. Server may return fewer clients than requested.
|
804
|
-
# If unspecified, server will pick an appropriate default.
|
802
|
+
# The account the creative belongs to.
|
803
|
+
# @param [String] creative_id
|
804
|
+
# The ID of the creative associated with the deal.
|
805
|
+
# @param [Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest] remove_deal_association_request_object
|
805
806
|
# @param [String] quota_user
|
806
807
|
# Available to use for quota purposes for server-side applications. Can be any
|
807
808
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -811,22 +812,22 @@ module Google
|
|
811
812
|
# Request-specific options
|
812
813
|
#
|
813
814
|
# @yield [result, err] Result & error if block supplied
|
814
|
-
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::
|
815
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
|
815
816
|
# @yieldparam err [StandardError] error object if request failed
|
816
817
|
#
|
817
|
-
# @return [Google::Apis::Adexchangebuyer2V2beta1::
|
818
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
|
818
819
|
#
|
819
820
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
820
821
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
821
822
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
822
|
-
def
|
823
|
-
command = make_simple_command(:
|
824
|
-
command.
|
825
|
-
command.
|
823
|
+
def remove_deal_association(account_id, creative_id, remove_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
824
|
+
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove', options)
|
825
|
+
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest::Representation
|
826
|
+
command.request_object = remove_deal_association_request_object
|
827
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
|
828
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
|
826
829
|
command.params['accountId'] = account_id unless account_id.nil?
|
827
|
-
command.params['
|
828
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
829
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
830
|
+
command.params['creativeId'] = creative_id unless creative_id.nil?
|
830
831
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
831
832
|
command.query['fields'] = fields unless fields.nil?
|
832
833
|
execute_or_queue_command(command, &block)
|
@@ -835,8 +836,8 @@ module Google
|
|
835
836
|
protected
|
836
837
|
|
837
838
|
def apply_command_defaults(command)
|
838
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
839
839
|
command.query['key'] = key unless key.nil?
|
840
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
840
841
|
end
|
841
842
|
end
|
842
843
|
end
|