google-ads-googleads 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +2 -0
- data/lib/google/ads/google_ads/factories/v1/enums.rb +72 -0
- data/lib/google/ads/google_ads/factories/v1/operations.rb +125 -0
- data/lib/google/ads/google_ads/factories/v1/resources.rb +190 -86
- data/lib/google/ads/google_ads/factories/v1/services.rb +72 -0
- data/lib/google/ads/google_ads/google_ads_client.rb +12 -5
- data/lib/google/ads/google_ads/lookup_util.rb +1 -1
- data/lib/google/ads/google_ads/utils/v1/path_lookup_util.rb +14 -0
- data/lib/google/ads/google_ads/utils/v1/proto_lookup_util.rb +13 -0
- data/lib/google/ads/google_ads/v1/common/ad_type_infos_pb.rb +4 -0
- data/lib/google/ads/google_ads/v1/common/segments_pb.rb +4 -0
- data/lib/google/ads/google_ads/v1/common/simulation_pb.rb +16 -0
- data/lib/google/ads/google_ads/v1/enums/ad_group_type_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/enums/ad_type_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/enums/advertising_channel_sub_type_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/enums/bidding_strategy_type_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/enums/campaign_criterion_status_pb.rb +22 -0
- data/lib/google/ads/google_ads/v1/enums/campaign_draft_status_pb.rb +24 -0
- data/lib/google/ads/google_ads/v1/enums/campaign_experiment_status_pb.rb +28 -0
- data/lib/google/ads/google_ads/v1/enums/campaign_experiment_traffic_split_type_pb.rb +21 -0
- data/lib/google/ads/google_ads/v1/enums/click_type_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/enums/device_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/enums/google_ads_field_data_type_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/enums/hotel_rate_type_pb.rb +23 -0
- data/lib/google/ads/google_ads/v1/errors/bidding_error_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/errors/campaign_draft_error_pb.rb +29 -0
- data/lib/google/ads/google_ads/v1/errors/campaign_error_pb.rb +2 -0
- data/lib/google/ads/google_ads/v1/errors/campaign_experiment_error_pb.rb +29 -0
- data/lib/google/ads/google_ads/v1/errors/errors_pb.rb +8 -0
- data/lib/google/ads/google_ads/v1/errors/feed_error_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/errors/manager_link_error_pb.rb +33 -0
- data/lib/google/ads/google_ads/v1/errors/not_whitelisted_error_pb.rb +20 -0
- data/lib/google/ads/google_ads/v1/errors/url_field_error_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/resources/ad_group_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/resources/ad_group_simulation_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/resources/ad_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/resources/campaign_criterion_pb.rb +2 -0
- data/lib/google/ads/google_ads/v1/resources/campaign_draft_pb.rb +24 -0
- data/lib/google/ads/google_ads/v1/resources/campaign_experiment_pb.rb +29 -0
- data/lib/google/ads/google_ads/v1/resources/campaign_pb.rb +21 -20
- data/lib/google/ads/google_ads/v1/resources/extension_feed_item_pb.rb +5 -0
- data/lib/google/ads/google_ads/v1/resources/recommendation_pb.rb +21 -21
- data/lib/google/ads/google_ads/v1/services/asset_service_client.rb +3 -1
- data/lib/google/ads/google_ads/v1/services/asset_service_services_pb.rb +3 -1
- data/lib/google/ads/google_ads/v1/services/campaign_draft_service_client.rb +439 -0
- data/lib/google/ads/google_ads/v1/services/campaign_draft_service_client_config.json +46 -0
- data/lib/google/ads/google_ads/v1/services/campaign_draft_service_pb.rb +60 -0
- data/lib/google/ads/google_ads/v1/services/campaign_draft_service_services_pb.rb +59 -0
- data/lib/google/ads/google_ads/v1/services/campaign_experiment_service_client.rb +616 -0
- data/lib/google/ads/google_ads/v1/services/campaign_experiment_service_client_config.json +61 -0
- data/lib/google/ads/google_ads/v1/services/campaign_experiment_service_pb.rb +83 -0
- data/lib/google/ads/google_ads/v1/services/campaign_experiment_service_services_pb.rb +82 -0
- data/lib/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_client.rb +6 -1
- data/lib/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/services/conversion_upload_service_client.rb +12 -2
- data/lib/google/ads/google_ads/v1/services/conversion_upload_service_pb.rb +2 -0
- data/lib/google/ads/google_ads/v1/services/google_ads_service_pb.rb +10 -0
- data/lib/google/ads/google_ads/version.rb +1 -1
- metadata +21 -2
@@ -238,6 +238,19 @@ module Google
|
|
238
238
|
res
|
239
239
|
end
|
240
240
|
|
241
|
+
# Returns a new instance of CpvBidSimulationPointList, optionally
|
242
|
+
# yielding it to a passed block so that attributes can be set on it.
|
243
|
+
#
|
244
|
+
# @yield [Google::Ads::GoogleAds::V1::Common::CpvBidSimulationPointList] the new instance that will be returned so attributes
|
245
|
+
# can be set
|
246
|
+
# @return [Google::Ads::GoogleAds::V1::Common::CpvBidSimulationPointList] the created resource
|
247
|
+
def self.cpv_bid_simulation_point_list
|
248
|
+
require "google/ads/google_ads/v1/common/simulation_pb.rb"
|
249
|
+
res = Google::Ads::GoogleAds::V1::Common::CpvBidSimulationPointList.new
|
250
|
+
yield res if block_given?
|
251
|
+
res
|
252
|
+
end
|
253
|
+
|
241
254
|
# Returns a new instance of TargetCpaSimulationPointList, optionally
|
242
255
|
# yielding it to a passed block so that attributes can be set on it.
|
243
256
|
#
|
@@ -277,6 +290,19 @@ module Google
|
|
277
290
|
res
|
278
291
|
end
|
279
292
|
|
293
|
+
# Returns a new instance of CpvBidSimulationPoint, optionally
|
294
|
+
# yielding it to a passed block so that attributes can be set on it.
|
295
|
+
#
|
296
|
+
# @yield [Google::Ads::GoogleAds::V1::Common::CpvBidSimulationPoint] the new instance that will be returned so attributes
|
297
|
+
# can be set
|
298
|
+
# @return [Google::Ads::GoogleAds::V1::Common::CpvBidSimulationPoint] the created resource
|
299
|
+
def self.cpv_bid_simulation_point
|
300
|
+
require "google/ads/google_ads/v1/common/simulation_pb.rb"
|
301
|
+
res = Google::Ads::GoogleAds::V1::Common::CpvBidSimulationPoint.new
|
302
|
+
yield res if block_given?
|
303
|
+
res
|
304
|
+
end
|
305
|
+
|
280
306
|
# Returns a new instance of TargetCpaSimulationPoint, optionally
|
281
307
|
# yielding it to a passed block so that attributes can be set on it.
|
282
308
|
#
|
@@ -1200,6 +1226,19 @@ module Google
|
|
1200
1226
|
res
|
1201
1227
|
end
|
1202
1228
|
|
1229
|
+
# Returns a new instance of CampaignDraft, optionally
|
1230
|
+
# yielding it to a passed block so that attributes can be set on it.
|
1231
|
+
#
|
1232
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::CampaignDraft] the new instance that will be returned so attributes
|
1233
|
+
# can be set
|
1234
|
+
# @return [Google::Ads::GoogleAds::V1::Resources::CampaignDraft] the created resource
|
1235
|
+
def self.campaign_draft
|
1236
|
+
require "google/ads/google_ads/v1/resources/campaign_draft_pb.rb"
|
1237
|
+
res = Google::Ads::GoogleAds::V1::Resources::CampaignDraft.new
|
1238
|
+
yield res if block_given?
|
1239
|
+
res
|
1240
|
+
end
|
1241
|
+
|
1203
1242
|
# Returns a new instance of PolicyViolationKey, optionally
|
1204
1243
|
# yielding it to a passed block so that attributes can be set on it.
|
1205
1244
|
#
|
@@ -1512,6 +1551,19 @@ module Google
|
|
1512
1551
|
res
|
1513
1552
|
end
|
1514
1553
|
|
1554
|
+
# Returns a new instance of ShoppingComparisonListingAdInfo, optionally
|
1555
|
+
# yielding it to a passed block so that attributes can be set on it.
|
1556
|
+
#
|
1557
|
+
# @yield [Google::Ads::GoogleAds::V1::Common::ShoppingComparisonListingAdInfo] the new instance that will be returned so attributes
|
1558
|
+
# can be set
|
1559
|
+
# @return [Google::Ads::GoogleAds::V1::Common::ShoppingComparisonListingAdInfo] the created resource
|
1560
|
+
def self.shopping_comparison_listing_ad_info
|
1561
|
+
require "google/ads/google_ads/v1/common/ad_type_infos_pb.rb"
|
1562
|
+
res = Google::Ads::GoogleAds::V1::Common::ShoppingComparisonListingAdInfo.new
|
1563
|
+
yield res if block_given?
|
1564
|
+
res
|
1565
|
+
end
|
1566
|
+
|
1515
1567
|
# Returns a new instance of GmailAdInfo, optionally
|
1516
1568
|
# yielding it to a passed block so that attributes can be set on it.
|
1517
1569
|
#
|
@@ -2331,6 +2383,19 @@ module Google
|
|
2331
2383
|
res
|
2332
2384
|
end
|
2333
2385
|
|
2386
|
+
# Returns a new instance of CampaignExperiment, optionally
|
2387
|
+
# yielding it to a passed block so that attributes can be set on it.
|
2388
|
+
#
|
2389
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::CampaignExperiment] the new instance that will be returned so attributes
|
2390
|
+
# can be set
|
2391
|
+
# @return [Google::Ads::GoogleAds::V1::Resources::CampaignExperiment] the created resource
|
2392
|
+
def self.campaign_experiment
|
2393
|
+
require "google/ads/google_ads/v1/resources/campaign_experiment_pb.rb"
|
2394
|
+
res = Google::Ads::GoogleAds::V1::Resources::CampaignExperiment.new
|
2395
|
+
yield res if block_given?
|
2396
|
+
res
|
2397
|
+
end
|
2398
|
+
|
2334
2399
|
# Returns a new instance of ChangeStatus, optionally
|
2335
2400
|
# yielding it to a passed block so that attributes can be set on it.
|
2336
2401
|
#
|
@@ -3306,6 +3371,19 @@ module Google
|
|
3306
3371
|
res
|
3307
3372
|
end
|
3308
3373
|
|
3374
|
+
# Returns a new instance of KeywordMatchTypeRecommendation, optionally
|
3375
|
+
# yielding it to a passed block so that attributes can be set on it.
|
3376
|
+
#
|
3377
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Recommendation::KeywordMatchTypeRecommendation] the new instance that will be returned so attributes
|
3378
|
+
# can be set
|
3379
|
+
# @return [Google::Ads::GoogleAds::V1::Resources::Recommendation::KeywordMatchTypeRecommendation] the created resource
|
3380
|
+
def self.keyword_match_type_recommendation
|
3381
|
+
require "google/ads/google_ads/v1/resources/recommendation_pb.rb"
|
3382
|
+
res = Google::Ads::GoogleAds::V1::Resources::Recommendation::KeywordMatchTypeRecommendation.new
|
3383
|
+
yield res if block_given?
|
3384
|
+
res
|
3385
|
+
end
|
3386
|
+
|
3309
3387
|
# Returns a new instance of TextAdRecommendation, optionally
|
3310
3388
|
# yielding it to a passed block so that attributes can be set on it.
|
3311
3389
|
#
|
@@ -3319,28 +3397,28 @@ module Google
|
|
3319
3397
|
res
|
3320
3398
|
end
|
3321
3399
|
|
3322
|
-
# Returns a new instance of
|
3400
|
+
# Returns a new instance of SearchPartnersOptInRecommendation, optionally
|
3323
3401
|
# yielding it to a passed block so that attributes can be set on it.
|
3324
3402
|
#
|
3325
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3403
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Recommendation::SearchPartnersOptInRecommendation] the new instance that will be returned so attributes
|
3326
3404
|
# can be set
|
3327
|
-
# @return [Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3328
|
-
def self.
|
3405
|
+
# @return [Google::Ads::GoogleAds::V1::Resources::Recommendation::SearchPartnersOptInRecommendation] the created resource
|
3406
|
+
def self.search_partners_opt_in_recommendation
|
3329
3407
|
require "google/ads/google_ads/v1/resources/recommendation_pb.rb"
|
3330
|
-
res = Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3408
|
+
res = Google::Ads::GoogleAds::V1::Resources::Recommendation::SearchPartnersOptInRecommendation.new
|
3331
3409
|
yield res if block_given?
|
3332
3410
|
res
|
3333
3411
|
end
|
3334
3412
|
|
3335
|
-
# Returns a new instance of
|
3413
|
+
# Returns a new instance of MaximizeClicksOptInRecommendation, optionally
|
3336
3414
|
# yielding it to a passed block so that attributes can be set on it.
|
3337
3415
|
#
|
3338
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3416
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Recommendation::MaximizeClicksOptInRecommendation] the new instance that will be returned so attributes
|
3339
3417
|
# can be set
|
3340
|
-
# @return [Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3341
|
-
def self.
|
3418
|
+
# @return [Google::Ads::GoogleAds::V1::Resources::Recommendation::MaximizeClicksOptInRecommendation] the created resource
|
3419
|
+
def self.maximize_clicks_opt_in_recommendation
|
3342
3420
|
require "google/ads/google_ads/v1/resources/recommendation_pb.rb"
|
3343
|
-
res = Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3421
|
+
res = Google::Ads::GoogleAds::V1::Resources::Recommendation::MaximizeClicksOptInRecommendation.new
|
3344
3422
|
yield res if block_given?
|
3345
3423
|
res
|
3346
3424
|
end
|
@@ -3358,80 +3436,54 @@ module Google
|
|
3358
3436
|
res
|
3359
3437
|
end
|
3360
3438
|
|
3361
|
-
# Returns a new instance of
|
3362
|
-
# yielding it to a passed block so that attributes can be set on it.
|
3363
|
-
#
|
3364
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::Recommendation::MaximizeConversionsOptInRecommendation] the new instance that will be returned so attributes
|
3365
|
-
# can be set
|
3366
|
-
# @return [Google::Ads::GoogleAds::V1::Resources::Recommendation::MaximizeConversionsOptInRecommendation] the created resource
|
3367
|
-
def self.maximize_conversions_opt_in_recommendation
|
3368
|
-
require "google/ads/google_ads/v1/resources/recommendation_pb.rb"
|
3369
|
-
res = Google::Ads::GoogleAds::V1::Resources::Recommendation::MaximizeConversionsOptInRecommendation.new
|
3370
|
-
yield res if block_given?
|
3371
|
-
res
|
3372
|
-
end
|
3373
|
-
|
3374
|
-
# Returns a new instance of KeywordMatchTypeRecommendation, optionally
|
3375
|
-
# yielding it to a passed block so that attributes can be set on it.
|
3376
|
-
#
|
3377
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::Recommendation::KeywordMatchTypeRecommendation] the new instance that will be returned so attributes
|
3378
|
-
# can be set
|
3379
|
-
# @return [Google::Ads::GoogleAds::V1::Resources::Recommendation::KeywordMatchTypeRecommendation] the created resource
|
3380
|
-
def self.keyword_match_type_recommendation
|
3381
|
-
require "google/ads/google_ads/v1/resources/recommendation_pb.rb"
|
3382
|
-
res = Google::Ads::GoogleAds::V1::Resources::Recommendation::KeywordMatchTypeRecommendation.new
|
3383
|
-
yield res if block_given?
|
3384
|
-
res
|
3385
|
-
end
|
3386
|
-
|
3387
|
-
# Returns a new instance of EnhancedCpcOptInRecommendation, optionally
|
3439
|
+
# Returns a new instance of TargetCpaOptInRecommendation, optionally
|
3388
3440
|
# yielding it to a passed block so that attributes can be set on it.
|
3389
3441
|
#
|
3390
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3442
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Recommendation::TargetCpaOptInRecommendation] the new instance that will be returned so attributes
|
3391
3443
|
# can be set
|
3392
|
-
# @return [Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3393
|
-
def self.
|
3444
|
+
# @return [Google::Ads::GoogleAds::V1::Resources::Recommendation::TargetCpaOptInRecommendation] the created resource
|
3445
|
+
def self.target_cpa_opt_in_recommendation
|
3394
3446
|
require "google/ads/google_ads/v1/resources/recommendation_pb.rb"
|
3395
|
-
res = Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3447
|
+
res = Google::Ads::GoogleAds::V1::Resources::Recommendation::TargetCpaOptInRecommendation.new
|
3396
3448
|
yield res if block_given?
|
3397
3449
|
res
|
3398
3450
|
end
|
3399
3451
|
|
3400
|
-
# Returns a new instance of
|
3452
|
+
# Returns a new instance of TargetCpaOptInRecommendationOption, optionally
|
3401
3453
|
# yielding it to a passed block so that attributes can be set on it.
|
3402
3454
|
#
|
3403
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3455
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Recommendation::TargetCpaOptInRecommendation::TargetCpaOptInRecommendationOption] the new instance that will be returned so attributes
|
3404
3456
|
# can be set
|
3405
|
-
# @return [Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3406
|
-
def self.
|
3457
|
+
# @return [Google::Ads::GoogleAds::V1::Resources::Recommendation::TargetCpaOptInRecommendation::TargetCpaOptInRecommendationOption] the created resource
|
3458
|
+
def self.target_cpa_opt_in_recommendation_option
|
3407
3459
|
require "google/ads/google_ads/v1/resources/recommendation_pb.rb"
|
3408
|
-
res = Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3460
|
+
res = Google::Ads::GoogleAds::V1::Resources::Recommendation::TargetCpaOptInRecommendation::TargetCpaOptInRecommendationOption.new
|
3409
3461
|
yield res if block_given?
|
3410
3462
|
res
|
3411
3463
|
end
|
3412
3464
|
|
3413
|
-
# Returns a new instance of
|
3465
|
+
# Returns a new instance of MaximizeConversionsOptInRecommendation, optionally
|
3414
3466
|
# yielding it to a passed block so that attributes can be set on it.
|
3415
3467
|
#
|
3416
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3468
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Recommendation::MaximizeConversionsOptInRecommendation] the new instance that will be returned so attributes
|
3417
3469
|
# can be set
|
3418
|
-
# @return [Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3419
|
-
def self.
|
3470
|
+
# @return [Google::Ads::GoogleAds::V1::Resources::Recommendation::MaximizeConversionsOptInRecommendation] the created resource
|
3471
|
+
def self.maximize_conversions_opt_in_recommendation
|
3420
3472
|
require "google/ads/google_ads/v1/resources/recommendation_pb.rb"
|
3421
|
-
res = Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3473
|
+
res = Google::Ads::GoogleAds::V1::Resources::Recommendation::MaximizeConversionsOptInRecommendation.new
|
3422
3474
|
yield res if block_given?
|
3423
3475
|
res
|
3424
3476
|
end
|
3425
3477
|
|
3426
|
-
# Returns a new instance of
|
3478
|
+
# Returns a new instance of EnhancedCpcOptInRecommendation, optionally
|
3427
3479
|
# yielding it to a passed block so that attributes can be set on it.
|
3428
3480
|
#
|
3429
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3481
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Recommendation::EnhancedCpcOptInRecommendation] the new instance that will be returned so attributes
|
3430
3482
|
# can be set
|
3431
|
-
# @return [Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3432
|
-
def self.
|
3483
|
+
# @return [Google::Ads::GoogleAds::V1::Resources::Recommendation::EnhancedCpcOptInRecommendation] the created resource
|
3484
|
+
def self.enhanced_cpc_opt_in_recommendation
|
3433
3485
|
require "google/ads/google_ads/v1/resources/recommendation_pb.rb"
|
3434
|
-
res = Google::Ads::GoogleAds::V1::Resources::Recommendation::
|
3486
|
+
res = Google::Ads::GoogleAds::V1::Resources::Recommendation::EnhancedCpcOptInRecommendation.new
|
3435
3487
|
yield res if block_given?
|
3436
3488
|
res
|
3437
3489
|
end
|
@@ -3475,6 +3527,19 @@ module Google
|
|
3475
3527
|
res
|
3476
3528
|
end
|
3477
3529
|
|
3530
|
+
# Returns a new instance of MoveUnusedBudgetRecommendation, optionally
|
3531
|
+
# yielding it to a passed block so that attributes can be set on it.
|
3532
|
+
#
|
3533
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Recommendation::MoveUnusedBudgetRecommendation] the new instance that will be returned so attributes
|
3534
|
+
# can be set
|
3535
|
+
# @return [Google::Ads::GoogleAds::V1::Resources::Recommendation::MoveUnusedBudgetRecommendation] the created resource
|
3536
|
+
def self.move_unused_budget_recommendation
|
3537
|
+
require "google/ads/google_ads/v1/resources/recommendation_pb.rb"
|
3538
|
+
res = Google::Ads::GoogleAds::V1::Resources::Recommendation::MoveUnusedBudgetRecommendation.new
|
3539
|
+
yield res if block_given?
|
3540
|
+
res
|
3541
|
+
end
|
3542
|
+
|
3478
3543
|
# Returns a new instance of CustomInterest, optionally
|
3479
3544
|
# yielding it to a passed block so that attributes can be set on it.
|
3480
3545
|
#
|
@@ -3579,41 +3644,41 @@ module Google
|
|
3579
3644
|
res
|
3580
3645
|
end
|
3581
3646
|
|
3582
|
-
# Returns a new instance of
|
3647
|
+
# Returns a new instance of VanityPharma, optionally
|
3583
3648
|
# yielding it to a passed block so that attributes can be set on it.
|
3584
3649
|
#
|
3585
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3650
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Campaign::VanityPharma] the new instance that will be returned so attributes
|
3586
3651
|
# can be set
|
3587
|
-
# @return [Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3588
|
-
def self.
|
3652
|
+
# @return [Google::Ads::GoogleAds::V1::Resources::Campaign::VanityPharma] the created resource
|
3653
|
+
def self.vanity_pharma
|
3589
3654
|
require "google/ads/google_ads/v1/resources/campaign_pb.rb"
|
3590
|
-
res = Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3655
|
+
res = Google::Ads::GoogleAds::V1::Resources::Campaign::VanityPharma.new
|
3591
3656
|
yield res if block_given?
|
3592
3657
|
res
|
3593
3658
|
end
|
3594
3659
|
|
3595
|
-
# Returns a new instance of
|
3660
|
+
# Returns a new instance of DynamicSearchAdsSetting, optionally
|
3596
3661
|
# yielding it to a passed block so that attributes can be set on it.
|
3597
3662
|
#
|
3598
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3663
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Campaign::DynamicSearchAdsSetting] the new instance that will be returned so attributes
|
3599
3664
|
# can be set
|
3600
|
-
# @return [Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3601
|
-
def self.
|
3665
|
+
# @return [Google::Ads::GoogleAds::V1::Resources::Campaign::DynamicSearchAdsSetting] the created resource
|
3666
|
+
def self.dynamic_search_ads_setting
|
3602
3667
|
require "google/ads/google_ads/v1/resources/campaign_pb.rb"
|
3603
|
-
res = Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3668
|
+
res = Google::Ads::GoogleAds::V1::Resources::Campaign::DynamicSearchAdsSetting.new
|
3604
3669
|
yield res if block_given?
|
3605
3670
|
res
|
3606
3671
|
end
|
3607
3672
|
|
3608
|
-
# Returns a new instance of
|
3673
|
+
# Returns a new instance of ShoppingSetting, optionally
|
3609
3674
|
# yielding it to a passed block so that attributes can be set on it.
|
3610
3675
|
#
|
3611
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3676
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Campaign::ShoppingSetting] the new instance that will be returned so attributes
|
3612
3677
|
# can be set
|
3613
|
-
# @return [Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3614
|
-
def self.
|
3678
|
+
# @return [Google::Ads::GoogleAds::V1::Resources::Campaign::ShoppingSetting] the created resource
|
3679
|
+
def self.shopping_setting
|
3615
3680
|
require "google/ads/google_ads/v1/resources/campaign_pb.rb"
|
3616
|
-
res = Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3681
|
+
res = Google::Ads::GoogleAds::V1::Resources::Campaign::ShoppingSetting.new
|
3617
3682
|
yield res if block_given?
|
3618
3683
|
res
|
3619
3684
|
end
|
@@ -3631,41 +3696,41 @@ module Google
|
|
3631
3696
|
res
|
3632
3697
|
end
|
3633
3698
|
|
3634
|
-
# Returns a new instance of
|
3699
|
+
# Returns a new instance of SelectiveOptimization, optionally
|
3635
3700
|
# yielding it to a passed block so that attributes can be set on it.
|
3636
3701
|
#
|
3637
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3702
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Campaign::SelectiveOptimization] the new instance that will be returned so attributes
|
3638
3703
|
# can be set
|
3639
|
-
# @return [Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3640
|
-
def self.
|
3704
|
+
# @return [Google::Ads::GoogleAds::V1::Resources::Campaign::SelectiveOptimization] the created resource
|
3705
|
+
def self.selective_optimization
|
3641
3706
|
require "google/ads/google_ads/v1/resources/campaign_pb.rb"
|
3642
|
-
res = Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3707
|
+
res = Google::Ads::GoogleAds::V1::Resources::Campaign::SelectiveOptimization.new
|
3643
3708
|
yield res if block_given?
|
3644
3709
|
res
|
3645
3710
|
end
|
3646
3711
|
|
3647
|
-
# Returns a new instance of
|
3712
|
+
# Returns a new instance of AppCampaignSetting, optionally
|
3648
3713
|
# yielding it to a passed block so that attributes can be set on it.
|
3649
3714
|
#
|
3650
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3715
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Campaign::AppCampaignSetting] the new instance that will be returned so attributes
|
3651
3716
|
# can be set
|
3652
|
-
# @return [Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3653
|
-
def self.
|
3717
|
+
# @return [Google::Ads::GoogleAds::V1::Resources::Campaign::AppCampaignSetting] the created resource
|
3718
|
+
def self.app_campaign_setting
|
3654
3719
|
require "google/ads/google_ads/v1/resources/campaign_pb.rb"
|
3655
|
-
res = Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3720
|
+
res = Google::Ads::GoogleAds::V1::Resources::Campaign::AppCampaignSetting.new
|
3656
3721
|
yield res if block_given?
|
3657
3722
|
res
|
3658
3723
|
end
|
3659
3724
|
|
3660
|
-
# Returns a new instance of
|
3725
|
+
# Returns a new instance of GeoTargetTypeSetting, optionally
|
3661
3726
|
# yielding it to a passed block so that attributes can be set on it.
|
3662
3727
|
#
|
3663
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3728
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Campaign::GeoTargetTypeSetting] the new instance that will be returned so attributes
|
3664
3729
|
# can be set
|
3665
|
-
# @return [Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3666
|
-
def self.
|
3730
|
+
# @return [Google::Ads::GoogleAds::V1::Resources::Campaign::GeoTargetTypeSetting] the created resource
|
3731
|
+
def self.geo_target_type_setting
|
3667
3732
|
require "google/ads/google_ads/v1/resources/campaign_pb.rb"
|
3668
|
-
res = Google::Ads::GoogleAds::V1::Resources::Campaign::
|
3733
|
+
res = Google::Ads::GoogleAds::V1::Resources::Campaign::GeoTargetTypeSetting.new
|
3669
3734
|
yield res if block_given?
|
3670
3735
|
res
|
3671
3736
|
end
|
@@ -4450,6 +4515,45 @@ module Google
|
|
4450
4515
|
res
|
4451
4516
|
end
|
4452
4517
|
|
4518
|
+
# Returns a new instance of MutateCampaignDraftResult, optionally
|
4519
|
+
# yielding it to a passed block so that attributes can be set on it.
|
4520
|
+
#
|
4521
|
+
# @yield [Google::Ads::GoogleAds::V1::Services::MutateCampaignDraftResult] the new instance that will be returned so attributes
|
4522
|
+
# can be set
|
4523
|
+
# @return [Google::Ads::GoogleAds::V1::Services::MutateCampaignDraftResult] the created resource
|
4524
|
+
def self.mutate_campaign_draft_result
|
4525
|
+
require "google/ads/google_ads/v1/services/campaign_draft_service_pb.rb"
|
4526
|
+
res = Google::Ads::GoogleAds::V1::Services::MutateCampaignDraftResult.new
|
4527
|
+
yield res if block_given?
|
4528
|
+
res
|
4529
|
+
end
|
4530
|
+
|
4531
|
+
# Returns a new instance of MutateCampaignExperimentResult, optionally
|
4532
|
+
# yielding it to a passed block so that attributes can be set on it.
|
4533
|
+
#
|
4534
|
+
# @yield [Google::Ads::GoogleAds::V1::Services::MutateCampaignExperimentResult] the new instance that will be returned so attributes
|
4535
|
+
# can be set
|
4536
|
+
# @return [Google::Ads::GoogleAds::V1::Services::MutateCampaignExperimentResult] the created resource
|
4537
|
+
def self.mutate_campaign_experiment_result
|
4538
|
+
require "google/ads/google_ads/v1/services/campaign_experiment_service_pb.rb"
|
4539
|
+
res = Google::Ads::GoogleAds::V1::Services::MutateCampaignExperimentResult.new
|
4540
|
+
yield res if block_given?
|
4541
|
+
res
|
4542
|
+
end
|
4543
|
+
|
4544
|
+
# Returns a new instance of CreateCampaignExperimentMetadata, optionally
|
4545
|
+
# yielding it to a passed block so that attributes can be set on it.
|
4546
|
+
#
|
4547
|
+
# @yield [Google::Ads::GoogleAds::V1::Services::CreateCampaignExperimentMetadata] the new instance that will be returned so attributes
|
4548
|
+
# can be set
|
4549
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CreateCampaignExperimentMetadata] the created resource
|
4550
|
+
def self.create_campaign_experiment_metadata
|
4551
|
+
require "google/ads/google_ads/v1/services/campaign_experiment_service_pb.rb"
|
4552
|
+
res = Google::Ads::GoogleAds::V1::Services::CreateCampaignExperimentMetadata.new
|
4553
|
+
yield res if block_given?
|
4554
|
+
res
|
4555
|
+
end
|
4556
|
+
|
4453
4557
|
# Returns a new instance of MutateCampaignExtensionSettingResult, optionally
|
4454
4558
|
# yielding it to a passed block so that attributes can be set on it.
|
4455
4559
|
#
|
@@ -566,6 +566,42 @@ module Google
|
|
566
566
|
)
|
567
567
|
end
|
568
568
|
|
569
|
+
def campaign_draft
|
570
|
+
require "google/ads/google_ads/v1/services/campaign_draft_service_client.rb"
|
571
|
+
cls = Class.new(Google::Ads::GoogleAds::V1::Services::CampaignDraftServiceClient)
|
572
|
+
if have_service_path?
|
573
|
+
cls.const_set("SERVICE_PATH", @service_path)
|
574
|
+
end
|
575
|
+
|
576
|
+
if have_logging_interceptor?
|
577
|
+
cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor])
|
578
|
+
end
|
579
|
+
|
580
|
+
cls.new(
|
581
|
+
credentials: @credentials,
|
582
|
+
metadata: @metadata,
|
583
|
+
exception_transformer: @exception_transformer,
|
584
|
+
)
|
585
|
+
end
|
586
|
+
|
587
|
+
def operations_client
|
588
|
+
require "google/ads/google_ads/v1/services/campaign_draft_service_client.rb"
|
589
|
+
cls = Class.new(Google::Ads::GoogleAds::V1::Services::CampaignDraftServiceClient::OperationsClient)
|
590
|
+
if have_service_path?
|
591
|
+
cls.const_set("SERVICE_PATH", @service_path)
|
592
|
+
end
|
593
|
+
|
594
|
+
if have_logging_interceptor?
|
595
|
+
cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor])
|
596
|
+
end
|
597
|
+
|
598
|
+
cls.new(
|
599
|
+
credentials: @credentials,
|
600
|
+
metadata: @metadata,
|
601
|
+
exception_transformer: @exception_transformer,
|
602
|
+
)
|
603
|
+
end
|
604
|
+
|
569
605
|
def asset
|
570
606
|
require "google/ads/google_ads/v1/services/asset_service_client.rb"
|
571
607
|
cls = Class.new(Google::Ads::GoogleAds::V1::Services::AssetServiceClient)
|
@@ -800,6 +836,42 @@ module Google
|
|
800
836
|
)
|
801
837
|
end
|
802
838
|
|
839
|
+
def campaign_experiment
|
840
|
+
require "google/ads/google_ads/v1/services/campaign_experiment_service_client.rb"
|
841
|
+
cls = Class.new(Google::Ads::GoogleAds::V1::Services::CampaignExperimentServiceClient)
|
842
|
+
if have_service_path?
|
843
|
+
cls.const_set("SERVICE_PATH", @service_path)
|
844
|
+
end
|
845
|
+
|
846
|
+
if have_logging_interceptor?
|
847
|
+
cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor])
|
848
|
+
end
|
849
|
+
|
850
|
+
cls.new(
|
851
|
+
credentials: @credentials,
|
852
|
+
metadata: @metadata,
|
853
|
+
exception_transformer: @exception_transformer,
|
854
|
+
)
|
855
|
+
end
|
856
|
+
|
857
|
+
def operations_client
|
858
|
+
require "google/ads/google_ads/v1/services/campaign_experiment_service_client.rb"
|
859
|
+
cls = Class.new(Google::Ads::GoogleAds::V1::Services::CampaignExperimentServiceClient::OperationsClient)
|
860
|
+
if have_service_path?
|
861
|
+
cls.const_set("SERVICE_PATH", @service_path)
|
862
|
+
end
|
863
|
+
|
864
|
+
if have_logging_interceptor?
|
865
|
+
cls.const_set("GRPC_INTERCEPTORS", [@logging_interceptor])
|
866
|
+
end
|
867
|
+
|
868
|
+
cls.new(
|
869
|
+
credentials: @credentials,
|
870
|
+
metadata: @metadata,
|
871
|
+
exception_transformer: @exception_transformer,
|
872
|
+
)
|
873
|
+
end
|
874
|
+
|
803
875
|
def billing_setup
|
804
876
|
require "google/ads/google_ads/v1/services/billing_setup_service_client.rb"
|
805
877
|
cls = Class.new(Google::Ads::GoogleAds::V1::Services::BillingSetupServiceClient)
|
@@ -119,11 +119,18 @@ module Google
|
|
119
119
|
:"developer-token" => @config.developer_token
|
120
120
|
}
|
121
121
|
if @config.login_customer_id
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
122
|
+
begin
|
123
|
+
login_customer_id = Integer(@config.login_customer_id)
|
124
|
+
rescue ArgumentError => e
|
125
|
+
if e.message.start_with?("invalid value for Integer")
|
126
|
+
raise ArgumentError.new("Invalid value for login_customer_id, must be integer")
|
127
|
+
end
|
128
|
+
end
|
129
|
+
if login_customer_id <= 0 || login_customer_id > 9_999_999_999
|
130
|
+
raise ArgumentError.new(
|
131
|
+
"Invalid login_customer_id. Must be an integer " \
|
132
|
+
"0 < x <= 9,999,999,999. Got #{login_customer_id}"
|
133
|
+
)
|
127
134
|
end
|
128
135
|
headers[:"login-customer-id"] = login_customer_id.to_s # header values must be strings
|
129
136
|
end
|
@@ -234,6 +234,20 @@ module Google
|
|
234
234
|
)
|
235
235
|
end
|
236
236
|
|
237
|
+
def campaign_draft(customer_id, campaign_id, draft_id)
|
238
|
+
@proto_lookup_util.service(:CampaignDraft).campaign_draft_path(
|
239
|
+
customer_id.to_s,
|
240
|
+
"#{campaign_id}~#{draft_id}"
|
241
|
+
)
|
242
|
+
end
|
243
|
+
|
244
|
+
def campaign_experiment(customer_id, experiment_id)
|
245
|
+
@proto_lookup_util.service(:CampaignExperiment).campaign_experiment_path(
|
246
|
+
customer_id.to_s,
|
247
|
+
experiment_id.to_s,
|
248
|
+
)
|
249
|
+
end
|
250
|
+
|
237
251
|
def campaign_extension_setting(customer_id, campaign_id,
|
238
252
|
extension_type)
|
239
253
|
@proto_lookup_util.service(:CampaignExtensionSetting).
|
@@ -75,6 +75,8 @@ module Google
|
|
75
75
|
CampaignExtensionSetting: ['resources', 'campaign_extension_setting_pb', 'CampaignExtensionSetting'],
|
76
76
|
CampaignFeed: ['resources', 'campaign_feed_pb', 'CampaignFeed'],
|
77
77
|
CampaignLabel: ['resources', 'campaign_label_pb', 'CampaignLabel'],
|
78
|
+
CampaignDraft: ['resources', 'campaign_draft_pb', 'CampaignDraft'],
|
79
|
+
CampaignExperiment: ['resources', 'campaign_experiment_pb', 'CampaignExperiment'],
|
78
80
|
Campaign: ['resources', 'campaign_pb', 'Campaign'],
|
79
81
|
NetworkSettings: ['resources', 'campaign_pb', 'Campaign::NetworkSettings'],
|
80
82
|
HotelSettingInfo: ['resources', 'campaign_pb', 'Campaign::HotelSettingInfo'],
|
@@ -202,6 +204,7 @@ module Google
|
|
202
204
|
HotelAdInfo: ['common', 'ad_type_infos_pb', 'HotelAdInfo'],
|
203
205
|
ShoppingSmartAdInfo: ['common', 'ad_type_infos_pb', 'ShoppingSmartAdInfo'],
|
204
206
|
ShoppingProductAdInfo: ['common', 'ad_type_infos_pb', 'ShoppingProductAdInfo'],
|
207
|
+
ShoppingComparisonListingAdInfo: ['common', 'ad_type_infos_pb', 'ShoppingComparisonListingAdInfo'],
|
205
208
|
GmailAdInfo: ['common', 'ad_type_infos_pb', 'GmailAdInfo'],
|
206
209
|
GmailTeaser: ['common', 'ad_type_infos_pb', 'GmailTeaser'],
|
207
210
|
DisplayCallToAction: ['common', 'ad_type_infos_pb', 'DisplayCallToAction'],
|
@@ -342,9 +345,11 @@ module Google
|
|
342
345
|
Keyword: ['common', 'segments_pb', 'Keyword'],
|
343
346
|
BidModifierSimulationPointList: ['common', 'simulation_pb', 'BidModifierSimulationPointList'],
|
344
347
|
CpcBidSimulationPointList: ['common', 'simulation_pb', 'CpcBidSimulationPointList'],
|
348
|
+
CpvBidSimulationPointList: ['common', 'simulation_pb', 'CpvBidSimulationPointList'],
|
345
349
|
TargetCpaSimulationPointList: ['common', 'simulation_pb', 'TargetCpaSimulationPointList'],
|
346
350
|
BidModifierSimulationPoint: ['common', 'simulation_pb', 'BidModifierSimulationPoint'],
|
347
351
|
CpcBidSimulationPoint: ['common', 'simulation_pb', 'CpcBidSimulationPoint'],
|
352
|
+
CpvBidSimulationPoint: ['common', 'simulation_pb', 'CpvBidSimulationPoint'],
|
348
353
|
TargetCpaSimulationPoint: ['common', 'simulation_pb', 'TargetCpaSimulationPoint'],
|
349
354
|
TagSnippet: ['common', 'tag_snippet_pb', 'TagSnippet'],
|
350
355
|
TargetingSetting: ['common', 'targeting_setting_pb', 'TargetingSetting'],
|
@@ -429,6 +434,9 @@ module Google
|
|
429
434
|
CampaignServingStatus: ['campaign_serving_status_pb', 'CampaignServingStatus'],
|
430
435
|
CampaignSharedSetStatus: ['campaign_shared_set_status_pb', 'CampaignSharedSetStatus'],
|
431
436
|
CampaignStatus: ['campaign_status_pb', 'CampaignStatus'],
|
437
|
+
CampaignDraftStatus: ['campaign_draft_status_pb', 'CampaignDraftStatus'],
|
438
|
+
CampaignExperimentStatus: ['campaign_experiment_status_pb', 'CampaignExperimentStatus'],
|
439
|
+
CampaignExperimentTrafficSplitType: ['campaign_experiment_traffic_split_type_pb', 'CampaignExperimentTrafficSplitType'],
|
432
440
|
ChangeStatusOperation: ['change_status_operation_pb', 'ChangeStatusOperation'],
|
433
441
|
ChangeStatusResourceType: ['change_status_resource_type_pb', 'ChangeStatusResourceType'],
|
434
442
|
ClickType: ['click_type_pb', 'ClickType'],
|
@@ -485,6 +493,7 @@ module Google
|
|
485
493
|
GoogleAdsFieldDataType: ['google_ads_field_data_type_pb', 'GoogleAdsFieldDataType'],
|
486
494
|
HotelDateSelectionType: ['hotel_date_selection_type_pb', 'HotelDateSelectionType'],
|
487
495
|
HotelPlaceholderField: ['hotel_placeholder_field_pb', 'HotelPlaceholderField'],
|
496
|
+
HotelRateType: ['hotel_rate_type_pb', 'HotelRateType'],
|
488
497
|
IncomeRangeType: ['income_range_type_pb', 'IncomeRangeType'],
|
489
498
|
InteractionEventType: ['interaction_event_type_pb', 'InteractionEventType'],
|
490
499
|
InteractionType: ['interaction_type_pb', 'InteractionType'],
|
@@ -609,7 +618,9 @@ module Google
|
|
609
618
|
CampaignBudget: ['campaign_budget_service_client', 'CampaignBudgetServiceClient'],
|
610
619
|
CampaignCriterion: ['campaign_criterion_service_client', 'CampaignCriterionServiceClient'],
|
611
620
|
CampaignCriterionSimulation: ['campaign_criterion_simulation_service_client', 'CampaignCriterionSimulationServiceClient'],
|
621
|
+
CampaignDraft: ['campaign_draft_service_client', 'CampaignDraftServiceClient'],
|
612
622
|
CampaignExtensionSetting: ['campaign_extension_setting_service_client', 'CampaignExtensionSettingServiceClient'],
|
623
|
+
CampaignExperiment: ['campaign_experiment_service_client', 'CampaignExperimentServiceClient'],
|
613
624
|
CampaignFeed: ['campaign_feed_service_client', 'CampaignFeedServiceClient'],
|
614
625
|
CampaignLabel: ['campaign_label_service_client', 'CampaignLabelServiceClient'],
|
615
626
|
Campaign: ['campaign_service_client', 'CampaignServiceClient'],
|
@@ -703,6 +714,8 @@ module Google
|
|
703
714
|
CampaignCriterion: ['campaign_criterion_service_pb', 'CampaignCriterionOperation'],
|
704
715
|
CampaignExtensionSetting: ['campaign_extension_setting_service_pb', 'CampaignExtensionSettingOperation'],
|
705
716
|
CampaignFeed: ['campaign_feed_service_pb', 'CampaignFeedOperation'],
|
717
|
+
CampaignDraft: ['campaign_draft_service_pb', 'CampaignDraftOperation'],
|
718
|
+
CampaignExperiment: ['campaign_experiment_service_pb', 'CampaignExperimentOperation'],
|
706
719
|
CampaignLabel: ['campaign_label_service_pb', 'CampaignLabelOperation'],
|
707
720
|
Campaign: ['campaign_service_pb', 'CampaignOperation'],
|
708
721
|
CampaignSharedSet: ['campaign_shared_set_service_pb', 'CampaignSharedSetOperation'],
|